1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * The long-deprecated alias and excludes options for role applications now
9 issue a deprecation warning. Use -alias and -excludes instead. (Dave
14 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
16 * default => undef now works properly. (doy)
18 * Enum type constraints now throw errors if their values are nonsensical.
21 1.09 Tue, Jul 25, 2010
25 * You can no longer pass "coerce => 1" for an attribute unless its type
26 constraint has a coercion defined. Doing so will issue a deprecation
27 warning. (Dave Rolsky)
29 * Previously, '+foo' only allowed a specific set of options to be
30 overridden, which made it impossible to change attribute options related
31 to extensions. Now we blacklist some options, and anything else is
32 allowed. (doy, Tuomas Jormola)
34 * Most features which have been declared deprecated now issue a warning using
35 Moose::Deprecated. Warnings are issued once per calling package, not
36 repeatedly. See Moose::Deprecated for information on how you can shut
37 these warnings up entirely. Note that deprecated features will eventually
38 be removed, so shutting up the warnings may not be the best idea. (Dave
41 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
46 * We no longer unimport strict and warnings when Moose, Moose::Role, or
47 Moose::Exporter are unimported. Doing this was broken if the user
48 explicitly loaded strict and warnings themself, and the results could be
49 generally surprising. We decided that it was best to err on the side of
50 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
53 * New with_traits helper function in Moose::Util. (doy)
57 * Accessors will no longer be inlined if the instance metaclass isn't
60 * Use Perl 5.10's new recursive regex features, if possible, for the type
61 constraint parser. (doy, nothingmuch)
65 * Attributes now warn if their accessors overwrite a locally defined
66 function (not just method). (doy)
70 * Bump our required perl version to 5.8.3, since earlier versions fail tests
71 and aren't easily installable/testable.
73 1.08 Tue, Jun 15, 2010
77 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
78 to be overridden more easily (doy).
80 1.07 Sat, Jun 05, 2010
84 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
85 classes and non-class metaclass traits (doy, dougdude).
87 1.06 Tue, Jun 01, 2010
91 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
92 more uniformly compare type constraints between 'classic' Moose type
93 constraints and MooseX::Types based type constraints.
95 1.05 Thu, May 20, 2010
99 * Packages and modules no longer have methods - this functionality was
100 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
101 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
103 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
104 Moose::Object::new. (doy)
108 * strict and warnings are now unimported when Moose, Moose::Role, or
109 Moose::Exporter are unimported. (doy, Adam Kennedy)
111 * Added a 'consumers' method to Moose::Meta::Role for finding all
112 classes/roles which consume the given role. (doy)
116 * Fix has '+attr' in Roles to explode immediately, rather than when the role
117 is applied to a class (t0m).
119 * Fix type constraint validation messages to not include the string 'failed'
120 twice in the same sentence (Florian Ragwitz).
122 * New type constraints will default to being unequal, rather than equal
125 * The tests no longer check for perl's behavior of clobbering $@, which has
126 been fixed in perl-5.13.1 (Florian Ragwitz).
128 * Metaclass compatibility fixing has been completely rewritten, and should
129 be much more robust. (doy)
131 1.04 Thu, May 20, 2010
133 * This release was broken and has been deleted from CPAN shortly after its
136 1.03 Thu, May 06, 2010
140 * Allow specifying required versions when setting superclasses or applying
141 roles (Florian Ragwitz).
143 1.02 Sat, May 01, 2010
147 * Stop the natatime method provided by the native Array trait from returning
148 an exhausted iterator when being called with a callback. (Florian Ragwitz)
150 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
153 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
154 the class the TC represents as an argument incorrectly returned true. This
155 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
157 * Use File::Temp for temp files created during tests. Previously, files were
158 written to the t/ dir, which could cause problems of the user running the
159 tests did not have write access to that directory.. (Chris Weyl, Ævar
162 * Pass role arguments along when applying roles to instances. (doy, lsm)
164 1.01 Fri, Mar 26, 2010
168 * The handles option now also accepts a role type constraint in addition to a
169 plain role name. (Florian Ragwitz)
173 * Record the Sartak/doy debt properly in Changes (perigrin)
175 1.00 Tue, Mar 25, 2010
179 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
180 methods by default. (Florian Ragwitz)
184 * Improve various parts of the documentation and fix many typos.
185 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
189 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
191 0.99 Mon, Mar 8, 2010
195 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
196 which member of the union a given value validates for. (Cory Watson)
200 * DEMOLISH methods in mutable subclasses of immutable classes are now called
201 properly (Chia-liang Kao, Jesse Luehrs)
205 * Added Moose::Manual::Support that defines the support, compatiblity, and
206 release policies for Moose. (Chris Prather)
208 0.98 Wed, Feb 10, 2010
212 * An internals change in 0.97 broke role application to an instance in some
213 cases. The bug occurred when two different roles were applied to different
214 instances of the same class. (Rafael Kitover)
217 0.97 Tue, Feb 9, 2010
221 * Calling ->reinitialize on a cached anonymous class effectively uncached
222 the metaclass object, causing the metaclass to go out of scope
223 unexpectedly. This could easily happen at a distance by applying a
224 metarole to an anonymous class. (Dave Rolsky).
226 0.96 Sat, Feb 6, 2010
230 * ScalarRef is now a parameterized type. You can now specify a type
231 constraint for whatever the reference points to. (Closes RT#50857)
232 (Michael G. Schwern, Florian Ragwitz)
236 * ScalarRef now accepts references to other references. (Closes RT#50934)
239 0.95 Thu, Feb 4, 2010
243 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
244 a delegation option. This allows the code reference to be called as a
245 method on the object. (Florian Ragwitz)
249 * Moose::Object::does no longer checks the entire inheritance tree, since
250 Moose::Meta::Class::does_role already does this. (doy)
252 * Moose::Util::add_method_modifier (and subsequently the sugar functions
253 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
254 with the same behavior as lists. Types other than arrayref and regexp
255 result in an error. (Dylan Hardison)
257 0.94 Mon, Jan 18, 2010
261 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
265 * Improved support for anonymous roles by changing various APIs to take
266 Moose::Meta::Role objects as well as role names. This included
268 - Moose::Meta::Class->does_role
269 - Moose::Meta::Role->does_role
270 - Moose::Util::does_role
271 - Moose::Util::apply_all_roles
272 - Moose::Util::ensure_all_roles
273 - Moose::Util::search_class_by_role
275 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
279 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
280 work as long as the accessor method names are explicitly set to valid Perl
281 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
284 0.93_03 Tue, Jan 5, 2010
288 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
289 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
292 0.93_02 Tue, Jan 5, 2010
296 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
297 testers. (Dave Rolsky)
300 0.93_01 Mon, Jan 4, 2010
304 See Moose::Manual::Delta for more details on backwards compatiblity issues.
306 * Role attributes are now objects of the Moose::Meta::Role::Attribute
307 class. (Dave Rolsky).
309 * There were major changes to how metaroles are applied. We now distinguish
310 between metaroles for classes vs those for roles. See the
311 Moose::Util::MetaRole docs for details. (Dave Rolsky)
313 * The old MetaRole API has been deprecated, but will continue to
314 work. However, if you are applying an attribute metaclass role, this may
315 break because of the fact that roles now have an attribute metaclass
318 * Moose::Util::MetaRole::apply_metaclass_roles is now called
319 apply_metaroles. The old name is deprecated. Dave Rolsky>
321 * The unimport subs created by Moose::Exporter now clean up re-exported
322 functions like blessed and confess, unless the caller imported them from
323 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
325 [ENHANCEMENTS AND BUG FIXES]
327 * Changed the Str constraint to accept magic lvalue strings like one gets from
328 substr et al, again. (sorear)
330 * Sped up the type constraint parsing regex. (Sam Vilain)
332 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
335 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
336 easier testing of TypeConstraints from the command line. (perigrin)
338 * Added a with_immutable test function to Test::Moose, to run a block of tests
339 with and without certain classes being immutable. (doy)
341 * We now use Module::Install extensions explicitly to avoid confusing errors
342 if they're not installed. We use Module::Install::AuthorRequires to stop
343 test extraction and general failures if you don't have the author side
344 dependencies installed.
346 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
347 #51791. (Amir E. Aharoni)
350 0.93 Thu, Nov 19, 2009
352 - Calling $object->new() is no longer deprecated, and no longer
356 - The get_attribute_map method is now deprecated. (Dave Rolsky)
358 * Moose::Meta::Method::Delegation
359 - Preserve variable aliasing in @_ for delegated methods, so that
360 altering @_ affects the passed value. (doy)
362 * Moose::Util::TypeConstraints
363 - Allow array refs for non-anonymous form of enum and duck_type, not
364 just anonymous. The non-arrayref forms may be removed in the
366 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
367 - Properly document Int being a subtype of Str. (doy)
370 - Moose::Exporter using modules can now export their functions to the
371 main package. This applied to Moose and Moose::Role, among
372 others. (nothingmuch)
374 * Moose::Meta::Attribute
375 - Don't remove attribute accessors we never installed, during
376 remove_accessors. (doy)
378 * Moose::Meta::Attribute::Native::Trait::Array
379 - Don't bypass prototype checking when calling List::Util::first, to
380 avoid a segfault when it is called with a non-code argument. (doy)
382 * Moose::Meta::Attribute::Native::Trait::Code
383 - Fix passing arguments to code execute helpers. (doy)
385 0.92 Tue, Sep 22, 2009
386 * Moose::Util::TypeConstraints
387 - added the match_on_type operator (Stevan)
388 - added tests and docs for this (Stevan)
391 - Metaclass compat fixing should already happen recursively, there's no
392 need to explicitly walk up the inheritance tree. (doy)
394 * Moose::Meta::Attribute
395 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
397 0.91 Thu, Sep 17, 2009
399 - Don't import any functions, in order to avoid polluting our namespace
400 with things that can look like methods (blessed, try, etc)
403 * Moose::Meta::Method::Constructor
404 - The generated code needs to called Scalar::Util::blessed by its
405 fully-qualified name or else Perl can interpret the call to blessed as
406 an indirect method call. This broke Search::GIN, which in turn broke
407 KiokuDB. (nothingmuch)
409 0.90 Tue, Sep 15, 2009
410 * Moose::Meta::Attribute::Native::Trait::Counter
411 * Moose::Meta::Attribute::Native::Trait::String
412 - For these two traits, an attribute which did not explicitly provide
413 methods to handles magically ended up delegating *all* the helper
414 methods. This has been removed. You must be explicit in your handles
415 declaration for all Native Traits. (Dave Rolsky)
418 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
419 sure to rethrow its error message. However, we also localize $@ before
420 this so that if all the DEMOLISH methods success, the value of $@ will
421 be preserved. (nothingmuch and Dave Rolsky)
422 - We now also localize $? during object destruction. (nothingmuch and
424 - The handling of DEMOLISH methods was broken for immutablized classes,
425 which were not receiving the value of
426 Devel::GlobalDestruction::in_global_destruction.
427 - These two fixes address some of RT #48271, reported by Zefram.
428 - This is all now documented in Moose::Manual::Construction.
429 - Calling $object->new() is now deprecated. A warning will be
433 - Added more hooks to customize how roles are applied. The role
434 summation class, used to create composite roles, can now be changed
435 and/or have meta-roles applied to it. (rafl)
436 - The get_method_list method no longer explicitly excludes the "meta"
437 method. This was a hack that has been replaced by better hacks. (Dave
440 * Moose::Meta::Method::Delegation
441 - fixed delegated methods to make sure that any modifiers attached to
442 the accessor being delegated on will be called (Stevan)
443 - added tests for this (Stevan)
446 - Moose no longer warns when a class that is being made immutable has
447 mutable ancestors. While in theory this is a good thing to warn about,
448 we found so many exceptions to this that doing this properly became
451 0.89_02 Thu, Sep 10, 2009
452 * Moose::Meta::Attribute::Native
453 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
455 * Moose::Meta::Attribute::Native::Trait::Array
456 - Added a number of functions from List::Util and List::MoreUtils,
457 including reduce, shuffle, uniq, and natatime. (doy)
460 - This module will now generate an init_meta method for your exporting
461 class if you pass it options for
462 Moose::Util::MetaRole::apply_metaclass_roles or
463 apply_base_class_roles. This eliminates a lot of repetitive
464 boilerplate for typical MooseX modules. (doy).
465 - Documented the with_meta feature, which is a replacement for
466 with_caller. This feature was added by josh a while ago.
467 - The with_caller feature is now deprecated, but will not issue a
468 warning yet. (Dave Rolsky)
469 - If you try to wrap/export a subroutine which doesn't actually exist,
470 Moose::Exporter will warn you about this. (doy)
472 * Moose::Meta::Role::Application::ToRole
473 - When a role aliased a method from another role, it was only getting
474 the new (aliased) name, not the original name. This differed from what
475 happens when a class aliases a role's methods. If you _only_ want the
476 aliased name, make sure to also exclue the original name. (Dave
479 0.89_01 Wed Sep 2, 2009
480 * Moose::Meta::Attribute
481 - Added the currying syntax for delegation from AttributeHelpers to the
482 existing delegation API. (hdp)
484 * Moose::Meta::Attribute::Native
485 - We have merged the functionality of MooseX::AttributeHelpers into the
486 Moose core with some API tweaks. You can continue to use
487 MooseX::AttributeHelpers, but it will not be maintained except
488 (perhaps) for critical bug fixes in the future. See
489 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
492 * Moose::Error::Croak
493 * Moose::Error::Confess
494 - Clarify documentation on how to use different error-throwing
495 modules. (Curtis Jewell)
498 - Correct POD for builder to point to Recipe8, not 9. (gphat)
501 - When a nonexistent sub name is passed to as_is, with_caller, or
502 with_meta, throw a warning and skip the exporting, rather than
503 installing a broken sub. (doy)
506 - Moose now warns if you call C<make_immutable> for a class with mutable
509 0.89 Thu Aug 13, 2009
510 * Moose::Manual::Attributes
511 - Clarify "is", include discussion of "bare". (Sartak)
513 * Moose::Meta::Role::Method::Conflicting
514 * Moose::Meta::Role::Application::ToClass
515 - For the first set of roles involved in a conflict, report all
516 unresolved method conflicts, not just the first method. Fixes #47210
517 reported by Ovid. (Sartak)
519 * Moose::Meta::TypeConstraint
520 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
523 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
525 - Allow specifying role options (alias, excludes, MXRP stuff) in the
526 arrayref passed to "use Moose -traits" (doy)
529 - Add functions meta_class_alias and meta_attribute_alias for creating
530 aliases for class and attribute metaclasses and metatraits. (doy)
532 * Moose::Meta::Attribute
533 * Moose::Meta::Method::Accessor
534 - A trigger now receives the old value as a second argument, if the
535 attribute had one. (Dave Rolsky)
537 * Moose::Meta::Method::Constructor
538 - Fix a bug with $obj->new when $obj has stringify overloading.
539 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
540 - However, we will probably deprecate $obj->new, so please don't start
541 using it for new code!
543 * Moose::Meta::Role::Application
544 * Moose::Meta::Role::Application::RoleSummation
545 - Rename alias and excludes to -alias and -excludes (but keep the old
546 names for now, for backcompat) (doy)
548 0.88 Fri Jul 24, 2009
549 * Moose::Manual::Contributing
550 - Re-write the Moose::Manual::Contributing document to reflect
551 the new layout and methods of work for the Git repository. All
552 work now should be done in topic branches and reviewed by a
553 core committer before being applied to master. All releases
554 are done by a cabal member and merged from master to
555 stable. This plan was devised by Yuval, blame him. (perigrin)
558 - Create metaclass attributes for the different role application
561 * Moose::Util::MetaRole
562 - Allow applying roles to a meta role's role application
565 * Moose::Meta::Attribute
566 - Add weak_ref to allowed options for "has '+foo'" (mst)
568 * Moose::Meta::Method::Accessor
569 - No longer uses inline_slot_access in accessors, to support
570 non-lvalue-based meta instances. (sorear)
573 * Moose::Meta::Method::Delegation
574 - Once again allow class names as well as objects for
575 delegation. This was changed in 0.86.
578 * Moose::Meta::Class::Immutable::Trait
579 - Fixes to work with the latest Class::MOP.
581 * Moose::Meta::Method::Delegation
582 - Delegation now dies with a more useful error message if the
583 attribute's accessor returns something defined but
586 0.85 Fri, Jun 26, 2009
587 * Moose::Meta::Attribute
588 - The warning for 'no associated methods' is now split out into
589 the _check_associated_methods method, so that extensions can
590 safely call 'after install_accessors => ...'. This fixes a
591 warning from MooseX::AttributeHelpers. (hdp)
593 0.84 Fri, Jun 26, 2009
595 - has now sets definition_context for attributes defined in
598 * Moose::Meta::Attribute
599 - When adding an attribute to a metaclass, if the attribute has
600 no associated methods, it will give a deprecation
602 - Methods generated by delegation were not being added to
603 associated_methods. (hdp)
604 - Attribute accessors (reader, writer, accessor, predicate,
605 clearer) now warn if they overwrite an existing method. (doy)
606 - Attribute constructors now warn very noisily about unknown (or
607 misspelled) arguments
609 * Moose::Util::TypeConstraints
610 - Deprecated the totally useless Role type name, which just
611 checked if $object->can('does'). Note that this is _not_ the
612 same as a type created by calling role_type('RoleName').
614 * Moose::Util::TypeConstraints
615 * Moose::Meta::TypeConstraint::DuckType
616 - Reify duck type from a regular subtype into an actual class
618 - Document this because Sartak did all my work for me
621 * Moose::Meta::Attribute
622 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
623 it is just a list of methods (Sartak)
626 - The get_*_method_modifiers methods would die if the role had
627 no modifiers of the given type (Robert Buels).
629 0.83 Tue, Jun 23, 2009
631 - Fix _construct_instance not setting the special __MOP__ object
632 key in instances of anon classes. (doy)
634 0.82 Sun, Jun 21, 2009
635 * Moose::Manual::Types
636 - Mention MooseX::Types early to avoid users falling down the
637 string parsing rathole (mst)
639 * Moose::Manual::MooseX
640 - Add warnings about class-level extensions and mention considering
641 using plain objects instead
643 0.81 Sun, Jun 7, 2009
644 * Bumped our Class::MOP prereq to the latest version (0.85), since
647 0.80 Sat, Jun 6, 2009
649 - Add FAQ about the coercion change from 0.76 because it came up
650 three times today (perigrin)
651 - Win doy $10 dollars because Sartak didn't think anybody
652 would document this fast enough (perigrin)
654 * Moose::Meta::Method::Destructor
655 - Inline a DESTROY method even if there are no DEMOLISH methods
656 to prevent unnecessary introspection in
657 Moose::Object::DEMOLISHALL
660 - A role's required methods are now represented by
661 Moose::Meta::Role::Method::Required objects. Conflicts are now
662 represented by Moose::Meta::Role::Method::Conflicting
663 objects. The benefit for end-users in that unresolved
664 conflicts generate different, more instructive, errors,
665 resolving Ovid's #44895. (Sartak)
668 - Improve the error message of "extends" as suggested by Adam
669 Kennedy and confound (Sartak)
670 - Link to Moose::Manual::Roles from Moose::Role as we now have
671 excellent documentation (Adam Kennedy)
674 - Update test suite for subname change in Class::MOP
676 - Add TODO test for infinite recursion in Moose::Meta::Class
679 0.79 Wed, May 13, 2009
681 - More fixes for Win32 problems. Reported by Robert Krimen.
684 - The DEMOLISHALL method could still blow up in some cases
685 during global destruction. This method has been made more
686 resilient in the face of global destruction's random garbage
690 - If you "also" a module that isn't loaded, the error message
691 now acknowledges that (Sartak)
694 - When your ->meta method does not return a Moose::Meta::Class,
695 the error message gave the wrong output (Sartak)
697 0.78 Tue, May 12, 2009
698 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
699 - Merged these documents into what is now Moose::Manual::FAQ
702 - Moved to Moose::Manual::Unsweetened
704 * Moose::Cookbook::Basics::Recipes 9-12
705 - Renamed to be 8-11, since recipe 8 did not exist
708 - Make Moose::Exporter import strict and warnings into packages
712 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
713 methods during global destruction (doy)
716 * Moose::Meta::Role::Application::ToClass
717 - Track the Role::Application objects created during class-role
721 - Fix metaclass incompatibility errors when extending a vanilla perl
722 class which isa Moose class with a metaclass role applied (t0m)
725 - Add a role-combination hook, _role_for_combination, for the
726 benefit of MooseX::Role::Parameterized (Sartak)
729 - Some tests were failing on Win32 because they explicit checked
730 warning output for newlines. Reported by Nickolay Platonov.
732 0.77 Sat, May 2, 2009
734 - Add explicit use of Devel::GlobalDestruction and Sub::Name
738 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
739 or not we are currently in global destruction (doy)
740 - Add explicit use of Devel::GlobalDestruction and Sub::Name
743 * Moose::Cookbook::FAQ
744 - Reworked much of the existing content to be more useful to
745 modern Moose hackers (Sartak)
748 - Depend on Class::MOP 0.83 instead of 0.82_01.
750 0.76 Mon, April 27, 2009
751 * Moose::Meta::TypeConstraint
752 - Do not run coercions in coerce() if the value already passes the type
755 * Moose::Meta::TypeConstraint::Class
756 - In validation error messages, specifically say that the value is not
757 an instance of the class. This should alleviate some frustrating
758 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
760 * Moose::Meta::Role::Application::ToClass
761 - Revert the class-overrides-role warning in favor of a solution outside
762 of the Moose core (Sartak)
765 - Make Test::Output optional again, since it's only used in a few files
768 0.75_01 Thu, April 23, 2009
769 * Moose::Meta::Role::Application::ToClass
770 - Moose now warns about each class overriding methods from roles it
774 - Warnings tests have standardized on Test::Output which is now an
775 unconditionally dependency (Sartak)
778 - Changes to immutabilization to work with Class::MOP 0.82_01+.
780 0.75 Mon, April 20, 2009
783 - Move validation of not inheriting from roles from Moose::extends to
784 Moose::Meta::Class::superclasses (doy)
787 - add ensure_all_roles() function to encapsulate the common "apply this
788 role unless the object already does it" pattern (hdp)
791 - Users can now select a different metaclass with the "-metaclass"
792 option to import, for classes and roles (Sartak)
795 - Make method_metaclass an attr so that it can accept a metarole
798 0.74 Tue, April 7, 2009
800 * Moose::Meta::Method::Destructor
801 - Include stack traces in the deprecation warnings.
805 - Removed the long-deprecated _apply_all_roles method.
807 * Moose::Meta::TypeConstraint
808 - Removed the long-deprecated union method.
811 0.73_02 Mon, April 6, 2009
812 * More deprecations and renamings
813 - Moose::Meta::Method::Constructor
814 - initialize_body => _initialize_body (this is always called
815 when an object is constructed)
818 - The DEMOLISHALL method could throw an exception during global
819 destruction, meaning that your class's DEMOLISH methods would
820 not be properly called. Reported by t0m.
822 * Moose::Meta::Method::Destructor
823 - Destructor inlining was totally broken by the change to the
824 is_needed method in 0.72_01. Now there is a test for this
825 feature, and it works again.
828 - Bold the word 'not' in the POD for find_meta (t0m)
830 0.73_01 Sun, April 5, 2009
832 - Call user_class->meta in fewer places, with the eventual goal
833 of allowing the user to rename or exclude ->meta
834 altogether. Instead uses Class::MOP::class_of. (Sartak)
836 * Moose::Meta::Method::Accessor
837 - If an attribute had a lazy default, and that value did not
838 pass the attribute's type constraint, it did not get the
839 message from the type constraint, instead using a generic
840 message. Test provided by perigrin.
842 * Moose::Util::TypeConstraints
843 - Add duck_type keyword. It's sugar over making sure an object
844 can() a list of methods. This is easier than jrockway's
845 suggestion to fork all of CPAN. (perigrin)
846 - add tests and documentation (perigrin)
849 - Document the fact that init_meta() returns the target class's
850 metaclass object. (hdp)
852 * Moose::Cookbook::Extending::Recipe1
853 * Moose::Cookbook::Extending::Recipe2
854 * Moose::Cookbook::Extending::Recipe3
855 * Moose::Cookbook::Extending::Recipe4
856 - Make init_meta() examples explicitly return the metaclass and
857 point out this fact. (hdp)
859 * Moose::Cookbook::Basics::Recipe12
860 - A new recipe, creating a custom meta-method class.
862 * Moose::Cookbook::Meta::Recipe6
863 - A new recipe, creating a custom meta-method class.
866 * Moose::Meta::Method::Constructor
867 - Attribute triggers no longer receive the meta-attribute object
868 as an argument in any circumstance. Previously, triggers
869 called during instance construction were passed the
870 meta-attribute, but triggers called by normal accessors were
871 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
873 * Moose::Manual::Attributes
874 - Remove references to triggers receving the meta-attribute object as an
877 * Moose::Cookbook::FAQ
878 - Remove recommendation for deprecated Moose::Policy and
879 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
882 * Many methods have been renamed with a leading underscore, and a
883 few have been deprecated entirely. The methods with a leading
884 underscore are consider "internals only". People writing
885 subclasses or extensions to Moose should feel free to override
886 them, but they are not for "public" use.
889 - check_metaclass_compatibility => _check_metaclass_compatibility
891 - Moose::Meta::Method::Accessor
892 - initialize_body => _initialize_body (this is always called
893 when an object is constructed)
894 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
896 - Moose::Meta::Method::Constructor
897 - initialize_body => _initialize_body (this is always called
898 when an object is constructed)
899 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
900 - attributes => _attributes (now inherited from parent)
901 - meta_instance => _meta_instance (now inherited from parent)
904 - alias_method is deprecated. Use add_method
906 0.73 Fri, March 29, 2009
907 * No changes from 0.72_01.
909 0.72_01 Thu, March 26, 2009
911 - Almost every module has complete API documentation. A few
912 methods (and even whole classes) have been intentionally
913 excluded pending some rethinking of their APIs.
915 * Moose::Util::TypeConstraints
916 - Calling subtype with a name as the only argument is now an
917 exception. If you want an anonymous subtype do:
919 my $subtype = subtype as 'Foo';
921 * Moose::Cookbook::Meta::Recipe7
922 - A new recipe, creating a custom meta-instance class.
924 * Moose::Cookbook::Basics::Recipe5
925 - Fix various typos and mistakes. Includes a patch from Radu
928 * Moose::Cookbook::Basics::Recipe9
929 - Link to this recipe from Moose.pm's builder blurb
932 - When wrapping a function with a prototype, Moose::Exporter now
933 makes sure the wrapped function still has the same
934 prototype. (Daisuke Maki)
936 * Moose::Meta::Attribute
937 - Allow a subclass to set lazy_build for an inherited
941 - Explicitly depend on Data::OptList. We already had this dependency
942 via Sub::Exporter, but since we're using it directly we're
943 better off with it listed. (Sartak)
945 * Moose::Meta::Method::Constructor
946 - Make it easier to subclass the inlining behaviour. (Ash
949 * Moose::Manual::Delta
950 - Details significant changes in the history of Moose, along
951 with recommended workarounds.
953 * Moose::Manual::Contributing
954 - Contributor's guide to Moose.
956 * Moose::Meta::Method::Constructor
957 - The long-deprecated intialize_body method has been removed
958 (yes, spelled like that).
960 * Moose::Meta::Method::Destructor
961 - This is_needed method is now always a class method.
964 - Changes to the internals of how make_immutable works to match
965 changes in latest Class::MOP.
967 0.72 Mon, February 23, 2009
969 * Moose::Meta::Method::Constructor
970 - A mutable class accepted Foo->new(undef) without complaint,
971 while an immutable class would blow up with an unhelpful
972 error. Now, in both cases we throw a helpful error
973 instead. Reported by doy.
975 0.71_01 Sun, February 22, 2009
977 - Hopefully fixed some POD errors in a few recipes that caused
978 them to display weird on search.cpan.org.
980 * Moose::Util::TypeConstraints
981 - Calling type or subtype without the sugar helpers (as, where,
982 message) is now deprecated.
983 - The subtype function tried hard to guess what you meant, but
984 often got it wrong. For example:
986 my $subtype = subtype as 'ArrayRef[Object]';
988 This caused an error in the past, but now works as you'd
992 - Make sure Moose.pm is loaded before calling
993 Moose->throw_error. This wasn't normally an issue, but could
994 bite you in weird cases.
996 0.71 Thu, February 19, 2009
997 * Moose::Cookbook::Basics::Recipe11
998 - A new recipe which demonstrates the use of BUILDARGS and
1001 * Moose::Cookbook::Roles::Recipe3
1002 - A new recipe, applying a role to an object instance. (Dave
1006 - Allow overriding specific keywords from "also" packages. (doy)
1009 - Replace hardcoded cookbook tests with Test::Inline to ensure
1010 the tests match the actual code in the recipes. (Dave Rolsky)
1013 - Working on the above turned up a number of little bugs in the
1014 recipe code. (Dave Rolsky)
1016 * Moose::Util::TypeConstraints::Optimized
1017 - Just use Class::MOP for the optimized ClassName check. (Dave
1020 0.70 Sat, February 14, 2009
1021 * Moose::Util::TypeConstraints
1022 - Added the RoleName type (stevan)
1023 - added tests for this (stevan)
1025 * Moose::Cookbook::Basics::Recipe3
1026 - Updated the before qw[left right] sub to be a little more
1027 defensive about what it accepts (stevan)
1028 - added more tests to t/000_recipies/basics/003_binary_tree.t
1032 - We now always call DEMOLISHALL, even if a class does not
1033 define DEMOLISH. This makes sure that method modifiers on
1034 DEMOLISHALL work as expected. (doy)
1035 - added tests for this (EvanCarroll)
1037 * Moose::Util::MetaRole
1038 - Accept roles for the wrapped_method_metaclass (rafl)
1039 - added tests for this (rafl)
1041 * Moose::Meta::Attribute
1042 - We no longer pass the meta-attribute object as a final
1043 argument to triggers. This actually changed for inlined code a
1044 while back, but the non-inlined version and the docs were
1048 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1049 they require 0.11. (Dave Rolsky)
1052 - Lots of small changes to the manual, cookbook, and
1053 elsewhere. These were based on feedback from various
1054 users, too many to list here. (Dave Rolsky)
1056 0.69 Thu, February 12, 2009
1058 - Make some keyword errors use throw_error instead of croak
1059 since Moose::Exporter wraps keywords now (Sartak)
1061 * Moose::Cookbook::*
1062 - Revised every recipe for style and clarity. Also moved some
1063 documentation out of cookbook recipes and into Moose::Manual
1064 pages. This work was funded as part of the Moose docs grant
1065 from TPF. (Dave Rolsky)
1067 * Moose::Meta::Method::Delegation
1068 - If the attribute doing the delegation was not populated, the
1069 error message did not specify the attribute name
1072 0.68 Wed, February 4, 2009
1074 - Many spelling, typo, and formatting fixes by daxim.
1076 * Moose::Manual::Attributes
1077 - The NAME section in the POD used "Attribute" so search.cpan
1078 didn't resolve links from other documents properly.
1080 * Moose::Meta::Method::Overriden
1081 - Now properly spelled as Overridden. Thanks to daxim for
1084 0.67 Tue, February 3, 2009
1086 - Lots of little typo fixes and a few clarifications. Several
1087 pages didn't have proper titles, and so weren't actually
1088 visible on search.cpan.org. Thanks to hanekomu for a variety
1089 of fixes and formatting improvements.
1091 0.66 Tue, February 3, 2009
1093 - This is a brand new, extensive manual for Moose. This aims to
1094 provide a complete introduction to all of Moose's
1095 features. This work was funded as part of the Moose docs grant
1096 from TPF. (Dave Rolsky)
1098 * Moose::Meta::Attribute
1099 - Added a delegation_metaclass method to replace a hard-coded
1100 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1102 * Moose::Util::TypeConstraints
1103 - If you created a subtype and passed a parent that Moose didn't
1104 know about, it simply ignored the parent. Now it automatically
1105 creates the parent as a class type. This may not be what you
1106 want, but is less broken than before. (Dave Rolsky)
1108 * Moose::Util::TypeConstraints
1109 - This module tried throw errors by calling Moose->throw_error,
1110 but it did not ensure that Moose was loaded first. This could
1111 cause very unhelpful errors when it tried to throw an error
1112 before Moose was loaded. (Dave Rolsky)
1114 * Moose::Util::TypeConstraints
1115 - You could declare a name with subtype such as "Foo!Bar" that
1116 would be allowed, but if you used it in a parameterized type
1117 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1118 vetting on names created via the sugar functions, so that they
1119 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1121 0.65 Thu, January 22, 2008
1122 * Moose and Moose::Meta::Method::Overridden
1123 - If an overridden method called super(), and then the
1124 superclass's method (not overridden) _also_ called super(),
1125 Moose went into an endless recursion loop. Test provided by
1126 Chris Prather. (Dave Rolsky)
1128 * Moose::Meta::TypeConstraint
1129 - All methods are now documented. (gphat)
1131 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1132 - Fixed some bogus failures that occurred because we tried to
1133 validate filesystem paths in a very ad-hoc and
1134 not-quite-correct way. (Dave Rolsky)
1136 * Moose::Util::TypeConstraints
1137 - Added maybe_type to exports. See docs for details. (rjbs)
1140 - Added Moose::Util::TypeConstraints to the SEE ALSO
1144 - Methods created via an attribute can now fulfill a "requires"
1145 declaration for a role. (nothingmuch)
1147 * Moose::Meta::Method::*
1148 - Stack traces from inlined code will now report its line and
1149 file as being in your class, as opposed to in Moose
1150 guts. (nothingmuch).
1152 0.64 Wed, December 31, 2008
1153 * Moose::Meta::Method::Accessor
1154 - Always inline predicate and clearer methods (Sartak)
1156 * Moose::Meta::Attribute
1157 - Support for parameterized traits (Sartak)
1158 - verify_against_type_constraint method to avoid duplication
1159 and enhance extensibility (Sartak)
1161 * Moose::Meta::Class
1162 - Tests (but no support yet) for parameterized traits (Sartak)
1165 - Require Class::MOP 0.75+, which has the side effect of making
1166 sure we work on Win32. (Dave Rolsky)
1168 0.63 Mon, December 8, 2008
1169 * Moose::Unsweetened
1170 - Some small grammar tweaks and bug fixes in non-Moose example
1173 0.62_02 Fri, December 5, 2008
1174 * Moose::Meta::Role::Application::ToClass
1175 - When a class does not provide all of a role's required
1176 methods, the error thrown now mentions all of the missing
1177 methods, as opposed to just the first one found. Requested by
1178 Curtis Poe (RT #41119). (Dave Rolsky)
1180 * Moose::Meta::Method::Constructor
1181 - Moose will no longer inline a constructor for your class
1182 unless it inherits its constructor from Moose::Object, and
1183 will warn when it doesn't inline. If you want to force
1184 inlining anyway, pass "replace_constructor => 1" to
1185 make_immutable. Addresses RT #40968, reported by Jon
1186 Swartz. (Dave Rolsky)
1187 - The quoting of default values could be broken if the default
1188 contained a single quote ('). Now we use quotemeta to escape
1189 anything potentially dangerous in the defaults. (Dave Rolsky)
1191 0.62_01 Wed, December 3, 2008
1193 - use the method->execute API for BUILDALL
1194 and DEMOLISHALL (Sartak)
1196 * Moose::Util::TypeConstraints
1197 - We now make all the type constraint meta classes immutable
1198 before creating the default types provided by Moose. This
1199 should make loading Moose a little faster. (Dave Rolsky)
1201 0.62 Wed November 26, 2008
1202 * Moose::Meta::Role::Application::ToClass
1203 Moose::Meta::Role::Application::ToRole
1204 - fixed issues where excluding and aliasing the
1205 same methods for a single role did not work
1206 right (worked just fine with multiple
1208 - added test for this (stevan)
1210 * Moose::Meta::Role::Application::RoleSummation
1211 - fixed the error message when trying to compose
1212 a role with a role it excludes (Sartak)
1215 - Catch another case where recursion caused the value
1216 of $CALLER to be stamped on (t0m)
1217 - added test for this (t0m)
1220 - Remove the make_immutable keyword, which has been
1221 deprecated since April. It breaks metaclasses that
1222 use Moose without no Moose (Sartak)
1224 * Moose::Meta::Attribute
1225 - Removing an attribute from a class now also removes delegation
1226 (handles) methods installed for that attribute (t0m)
1227 - added test for this (t0m)
1229 * Moose::Meta::Method::Constructor
1230 - An attribute with a default that looked like a number (but was
1231 really a string) would accidentally be treated as a number
1232 when the constructor was made immutable (perigrin)
1233 - added test for this (perigrin)
1236 - create method for constructing a role
1237 dynamically (Sartak)
1238 - added test for this (Sartak)
1239 - anonymous roles! (Sartak)
1240 - added test for this (Sartak)
1243 - more consistent error messages (Sartak)
1245 * Moose::Cookbook::Roles::Recipe1
1246 - attempt to explain why a role that just requires
1247 methods is useful (Sartak)
1249 0.61 Fri November 7, 2008
1250 * Moose::Meta::Attribute
1251 - When passing a role to handles, it will be loaded if necessary
1254 * Moose::Meta::Class
1255 - Method objects returned by get_method (and other methods)
1256 Could end up being returned without an associated_metaclass
1257 attribute. Removing get_method_map, which is provided by
1258 Class::MOP::Class, fixed this. The Moose version did nothing
1259 different from its parent except introduce a bug. (Dave Rolsky)
1260 - added tests for this (jdv79)
1263 - Added a $VERSION to all .pm files which didn't have one. Fixes
1264 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1266 * Moose::Cookbook::Basics::Recipe4
1267 * Moose::Cookbook::Basics::Recipe6
1268 - These files had spaces on the first line of the SYNOPSIS, as
1269 opposed to a totally empty line. According to RT #40432, this
1270 confuses POD parsers. (Dave Rolsky)
1272 0.60 Fri October 24, 2008
1274 - Passing "-traits" when loading Moose caused the Moose.pm
1275 exports to be broken. Reported by t0m. (Dave Rolsky)
1276 - Tests for this bug. (t0m)
1279 - Change resolve_metaclass alias to use the new
1280 load_first_existing_class function. This makes it a lot
1281 simpler, and also around 5 times faster. (t0m)
1282 - Add caching to resolve_metaclass_alias, which gives an order
1283 of magnitude speedup to things which repeatedly call the
1284 Moose::Meta::Attribute->does method, notably MooseX::Storage
1287 * Moose::Util::TypeConstraint
1288 - Put back the changes for parameterized constraints that
1289 shouldn't have been removed in 0.59. We still cannot parse
1290 them, but MooseX modules can create them in some other
1291 way. See the 0.58 changes for more details. (jnapiorkowski)
1292 - Changed the way subtypes are created so that the job is
1293 delegated to a type constraint parent. This clears up some
1294 hardcoded checking and should allow correct subtypes of
1295 Moose::Meta::Type::Constraint. Don't rely on this new API too
1296 much (create_child_type) because it may go away in the
1297 future. (jnapiorkowski)
1299 * Moose::Meta::TypeConstraint::Union
1300 - Type constraint names are sorted as strings, not numbers.
1303 * Moose::Meta::TypeConstraint::Parameterizable
1304 - New parameterize method. This can be used as a factory method
1305 to make a new type constraint with a given parameterized
1306 type. (jnapiorkowski)
1307 - added tests (jnapiorkowski)
1309 0.59 Tue October 14, 2008
1311 - Add abridged documentation for builder/default/initializer/
1312 predicate, and link to more details sections in
1313 Class::MOP::Attribute. (t0m)
1315 * Moose::Util::TypeConstraints
1316 - removed prototypes from all but the &-based stuff (mst)
1318 * Moose::Util::TypeConstraints
1319 - Creating a anonymous subtype with both a constraint and a
1320 message failed with a very unhelpful error, but should just
1321 work. Reported by t0m. (Dave Rolsky)
1324 - Some tests that used Test::Warn if it was available failed
1325 with older versions of Test::Warn. Reported by Fayland. (Dave
1327 - Test firing behavior of triggers in relation to builder/default/
1329 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1330 kinds of supported type. (t0m)
1332 * Moose::Meta::Class
1333 - In create(), do not pass "roles" option to the superclass
1334 - added related test that creates an anon metaclass with
1335 a required attribute
1337 * Moose::Meta::TypeConstraint::Class
1338 * Moose::Meta::TypeConstraint::Role
1339 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1340 other types (as per change in 0.55_02). (t0m)
1342 * Moose::Meta::TypeConstraint::Registry
1343 - Fix warning when dealing with unknown type names (t0m)
1345 * Moose::Util::TypeConstraints
1346 - Reverted changes from 0.58 related to handle parameterized
1347 types. This caused random failures on BSD and Win32 systems,
1348 apparently related to the regex engine. This means that Moose
1349 can no longer parse structured type constraints like
1350 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1351 supported in a slightly different way via MooseX::Types some
1352 time in the future. (Dave Rolsky)
1354 0.58 Sat September 20, 2008
1355 !! This release has an incompatible change regarding !!
1356 !! how roles add methods to a class !!
1358 * Roles and role application
1359 ! Roles now add methods by calling add_method, not
1360 alias_method. They make sure to always provide a method
1361 object, which will be cloned internally. This means that it is
1362 now possible to track the source of a method provided by a
1363 role, and even follow its history through intermediate roles.
1365 This means that methods added by a role now show up when
1366 looking at a class's method list/map. (Dave Rolsky)
1369 - From this release on, we'll try to maintain a list of
1370 conflicting modules, and warn you if you have one
1371 installed. For example, this release conflicts with ...
1372 - MooseX::Singleton <= 0.11
1373 - MooseX::Params::Validate <= 0.05
1376 In general, we try to not break backwards compatibility for
1377 most Moose users, but MooseX modules and other code which
1378 extends Moose's metaclasses is often affected by very small
1379 changes in the Moose internals.
1381 * Moose::Meta::Method::Delegation
1382 * Moose::Meta::Attribute
1383 - Delegation methods now have their own method class. (Dave
1386 * Moose::Meta::TypeConstraint::Parameterizable
1387 - Added a new method 'parameterize' which is basically a factory
1388 for the containing constraint. This makes it easier to create
1389 new types of parameterized constraints. (jnapiorkowski)
1391 * Moose::Meta::TypeConstraint::Union
1392 - Changed the way Union types canonicalize their names to follow
1393 the normalized TC naming rules, which means we strip all
1394 whitespace. (jnapiorkowski)
1396 * Moose::Util::TypeConstraints
1397 - Parameter and Union args are now sorted, this makes Int|Str
1398 the same constraint as Str|Int. (jnapiorkowski)
1399 - Changes to the way Union types are parsed to more correctly
1400 stringify their names. (jnapiorkowski)
1401 - When creating a parameterized type, we now use the new
1402 parameterize method. (jnapiorkowski)
1403 - Incoming type constraint strings are now normalized to remove
1404 all whitespace differences. (jnapiorkowski)
1405 - Changed the way we parse type constraint strings so that we now
1406 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1407 constraints. This lays the foundation for more flexible type
1408 constraint implementations.
1410 * Tests and docs for all the above. (jnapiorkowski)
1414 - Moose::Exporter will no longer remove a subroutine that the
1415 exporting package re-exports. Moose re-exports the
1416 Carp::confess function, among others. The reasoning is that we
1417 cannot know whether you have also explicitly imported those
1418 functions for your own use, so we err on the safe side and
1419 always keep them. (Dave Rolsky)
1420 - added tests for this (rafl)
1422 * Moose::Meta::Class
1423 - Changes to how we fix metaclass compatibility that are much
1424 too complicated to go into. The summary is that Moose is much
1425 less likely to complain about metaclass incompatibility
1426 now. In particular, if two metaclasses differ because
1427 Moose::Util::MetaRole was used on the two corresponding
1428 classes, then the difference in roles is reconciled for the
1429 subclass's metaclass. (Dave Rolsky)
1430 - Squashed an warning in _process_attribute (thepler)
1433 - throw exceptions (sooner) for invalid attribute names (thepler)
1434 - added tests for this (thepler)
1436 * Moose::Util::MetaRole
1437 - If you explicitly set a constructor or destructor class for a
1438 metaclass object, and then applied roles to the metaclass,
1439 that explicitly set class would be lost and replaced with the
1442 * Moose::Meta::Class
1443 * Moose::Meta::Attribute
1444 * Moose::Meta::Method
1447 * Moose::Error::Default
1448 * Moose::Error::Croak
1449 * Moose::Error::Confess
1450 - All instances of confess() changed to use overridable
1451 C<throw_error> method. This method ultimately calls a class
1452 constructor, and you can change the class being called. In
1453 addition, errors now pass more information than just a string.
1454 The default C<error_class> behaves like C<Carp::confess>, so
1455 the behavior is not visibly different for end users.
1457 0.57 Wed September 3, 2008
1459 - A new bit of doc intended to introduce folks familiar with
1460 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1462 * Moose::Unsweetened
1463 - Shows examples of two classes, each done first with and then
1464 without Moose. This makes a nice parallel to
1465 Moose::Intro. (Dave Rolsky)
1467 * Moose::Util::TypeConstraints
1468 - Fixed a bug in find_or_parse_type_constraint so that it
1469 accepts a Moose::Meta::TypeConstraint object as the parent
1470 type, not just a name (jnapiorkowski)
1471 - added tests (jnapiorkowski)
1474 - If Sub::Name was not present, unimporting failed to actually
1475 remove some sugar subs, causing test failures (Dave Rolsky)
1477 0.56 Mon September 1, 2008
1478 For those not following the series of dev releases, there are
1479 several major changes in this release of Moose.
1480 ! Moose::init_meta should now be called as a method. See the
1483 - Major performance improvements by nothingmuch.
1485 - New modules for extension writers, Moose::Exporter and
1486 Moose::Util::MetaRole by Dave Rolsky.
1488 - Lots of doc improvements and additions, especially in the
1491 - Various bug fixes.
1493 * Removed all references to the experimental-but-no-longer-needed
1494 Moose::Meta::Role::Application::ToMetaclassInstance.
1496 * Require Class::MOP 0.65.
1498 0.55_04 Sat August 30, 2008
1499 * Moose::Util::MetaRole
1500 * Moose::Cookbook::Extending::Recipe2
1501 - This simplifies the application of roles to any meta class, as
1502 well as the base object class. Reimplemented metaclass traits
1503 using this module. (Dave Rolsky)
1505 * Moose::Cookbook::Extending::Recipe1
1506 - This a new recipe, an overview of various ways to write Moose
1507 extensions (Dave Rolsky)
1509 * Moose::Cookbook::Extending::Recipe3
1510 * Moose::Cookbook::Extending::Recipe4
1511 - These used to be Extending::Recipe1 and Extending::Recipe2,
1514 0.55_03 Fri August 29, 2008
1515 * No changes from 0.55_02 except increasing the Class::MOP
1516 dependency to 0.64_07.
1518 0.55_02 Fri August 29, 2008
1519 * Makefile.PL and Moose.pm
1520 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1522 * Moose::Util::TypeConstraints
1523 - Fix warnings from find_type_constraint if the type is not
1526 * Moose::Meta::TypeConstraint
1527 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1528 return false if the type you specify cannot be found in the
1529 type registry, rather than throwing an unhelpful and
1530 coincidental exception. (t0m).
1531 - added docs & test for this (t0m)
1533 * Moose::Meta::TypeConstraint::Registry
1534 - add_type_constraint now throws an exception if a parameter is
1536 - added docs & test for this (t0m)
1538 * Moose::Cookbook::FAQ
1539 - Added a faq entry on the difference between "role" and "trait"
1543 - Fixed a bug that caused role composition to not see a required
1544 method when that method was provided by another role being
1545 composed at the same time. (Dave Rolsky)
1546 - test and bug finding (tokuhirom)
1548 0.55_01 Wed August 20, 2008
1550 !! Calling Moose::init_meta as a function is now !!
1551 !! deprecated. Please see the Moose.pm docs for details. !!
1553 * Moose::Meta::Method::Constructor
1554 - Fix inlined constructor so that values produced by default
1555 or builder methods are coerced as required. (t0m)
1556 - added test for this (t0m)
1558 * Moose::Meta::Attribute
1559 - A lazy attribute with a default or builder did not attempt to
1560 coerce the default value. The immutable code _did_
1562 - added test for this (t0m)
1565 - This is a new helper module for writing "Moose-alike"
1566 modules. This should make the lives of MooseX module authors
1567 much easier. (Dave Rolsky)
1570 * Moose::Cookbook::Meta::Recipe5
1571 - Implemented metaclass traits (and wrote a recipe for it):
1573 use Moose -traits => 'Foo'
1575 This should make writing small Moose extensions a little
1576 easier (Dave Rolsky)
1578 * Moose::Cookbook::Basics::Recipe1
1579 - Removed any examples of direct hashref access, and applied an
1580 editorial axe to reduce verbosity. (Dave Rolsky)
1582 * Moose::Cookbook::Basics::Recipe1
1583 - Also applied an editorial axe here. (Dave Rolsky)
1586 * Moose::Cookbook::Extending::Recipe1
1587 * Moose::Cookbook::Extending::Recipe2
1588 - Rewrote extending and embedding moose documentation and
1589 recipes to use Moose::Exporter (Dave Rolsky)
1593 - These two modules now warn when you load them from the main
1594 package "main" package, because we will not export sugar to
1595 main. Previously it just did nothing. (Dave Rolsky)
1598 - Now provide an init_meta method just like Moose.pm, and you
1599 can call this to provide an alternate role metaclass. (Dave
1600 Rolsky and nothingmuch)
1601 - get_method_map now respects the package cache flag (nothingmuch)
1604 - Two new methods - add_method and wrap_method_body
1608 - Optimizations including allowing constructors to accept hash
1609 refs, making many more classes immutable, and making
1610 constructors immutable. (nothingmuch)
1612 0.55 Sun August 3, 2008
1613 * Moose::Meta::Attribute
1614 - breaking down the way 'handles' methods are
1615 created so that the process can be more easily
1616 overridden by subclasses (stevan)
1618 * Moose::Meta::TypeConstraint
1619 - fixing what is passed into a ->message with
1620 the type constraints (RT #37569)
1621 - added tests for this (Charles Alderman)
1623 * Moose::Util::TypeConstraints
1624 - fix coerce to accept anon types like subtype can (mst)
1627 - reorganized the recipes into sections - Basics, Roles, Meta,
1628 Extending - and wrote abstracts for each section (Dave Rolsky)
1630 * Moose::Cookbook::Basics::Recipe10
1631 - A new recipe that demonstrates operator overloading
1632 in combination with Moose. (bluefeet)
1634 * Moose::Cookbook::Meta::Recipe1
1635 - an introduction to what meta is and why you'd want to make
1636 your own metaclass extensions (Dave Rolsky)
1638 * Moose::Cookbook::Meta::Recipe4
1639 - a very simple metaclass example (Dave Rolsky)
1641 * Moose::Cookbook::Extending::Recipe1
1642 - how to write a Moose-alike module to use your own object base
1645 * Moose::Cookbook::Extending::Recipe2
1646 - how to write modules with an API just like C<Moose.pm> (Dave
1650 - Tons of fixes, both syntactical and grammatical (Dave
1651 Rolsky, Paul Fenwick)
1653 0.54 Thurs. July 3, 2008
1654 ... this is not my day today ...
1656 * Moose::Meta::Attribute
1657 - fixed legal_options_for_inheritance such that
1658 clone_and_inherit options still works for
1659 Class::MOP::Attribute objects and therefore
1660 does not break MooseX::AttributeHelpers
1663 0.53 Thurs. July 3, 2008
1664 * Whoops, I guess I should run 'make manifest' before
1665 actually releasing the module. No actual changes
1666 in this release, except the fact that it includes
1667 the changes that I didn't include in the last
1670 0.52 Thurs. July 3, 2008
1672 - added "FEATURE REQUESTS" section to the Moose docs
1673 to properly direct people (stevan) (RT #34333)
1674 - making 'extends' croak if it is passed a Role since
1675 this is not ever something you want to do
1676 (fixed by stevan, found by obra)
1677 - added tests for this (stevan)
1680 - adding support for DOES (as in UNIVERSAL::DOES)
1682 - added test for this
1684 * Moose::Meta::Attribute
1685 - added legal_options_for_inheritance (wreis)
1686 - added tests for this (wreis)
1688 * Moose::Cookbook::Snacks::*
1689 - removed some of the unfinished snacks that should
1690 not have been released yet. Added some more examples
1691 to the 'Keywords' snack. (stevan)
1693 * Moose::Cookbook::Style
1694 - added general Moose "style guide" of sorts to the
1695 cookbook (nothingmuch) (RT #34335)
1698 - added more BUILDARGS tests (stevan)
1700 0.51 Thurs. Jun 26, 2008
1702 - add unimport so "no Moose::Role" actually does
1705 * Moose::Meta::Role::Application::ToRole
1706 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1707 order to provide its own implementation, that method still got
1708 added to the list of required methods for consumers of
1709 RoleB. Now an aliased method is only added to the list of
1710 required methods if the role doing the aliasing does not
1711 provide its own implementation. See Recipe 11 for an example
1712 of all this. (Dave Rolsky)
1713 - added tests for this
1715 * Moose::Meta::Method::Constructor
1716 - when a single argument that wasn't a hashref was provided to
1717 an immutabilized constructor, the error message was very
1718 unhelpful, as opposed to the non-immutable error. Reported by
1720 - added test for this (Dave Rolsky)
1722 * Moose::Meta::Attribute
1723 - added support for meta_attr->does("ShortAlias") (sartak)
1724 - added tests for this (sartak)
1725 - moved the bulk of the `handles` handling to the new
1726 install_delegation method (Stevan)
1729 - Added BUILDARGS, a new step in new()
1731 * Moose::Meta::Role::Application::RoleSummation
1732 - fix typos no one ever sees (sartak)
1734 * Moose::Util::TypeConstraints
1735 * Moose::Meta::TypeConstraint
1736 * Moose::Meta::TypeCoercion
1737 - Attempt to work around the ??{ } vs. threads issue
1739 - Some null_constraint optimizations
1741 0.50 Thurs. Jun 11, 2008
1742 - Fixed a version number issue by bumping all modules
1745 0.49 Thurs. Jun 11, 2008
1746 !! This version now approx. 20-25% !!
1747 !! faster with new Class::MOP 0.59 !!
1749 * Moose::Meta::Attribute
1750 - fixed how the is => (ro|rw) works with
1751 custom defined reader, writer and accessor
1753 - added docs for this (TODO).
1754 - added tests for this (Thanks to Penfold)
1755 - added the custom attribute alias for regular
1756 Moose attributes which is "Moose"
1757 - fix builder and default both being used
1762 Moose::Meta::Attribute
1764 Moose::Meta::Role::Composite
1765 Moose::Util::TypeConstraints
1766 - switched usage of reftype to ref because
1770 - changing add_package_symbol to use the new
1774 - fixed how DEMOLISHALL is called so that it
1775 can be overrided in subclasses (thanks to Sartak)
1776 - added test for this (thanks to Sartak)
1778 * Moose::Util::TypeConstraints
1779 - move the ClassName type check code to
1780 Class::MOP::is_class_loaded (thanks to Sartak)
1782 * Moose::Cookbook::Recipe11
1783 - add tests for this (thanks to tokuhirom)
1785 0.48 Thurs. May 29, 2008
1786 (early morning release engineering)--
1788 - fixing the version in Moose::Meta::Method::Destructor
1789 which was causing the indexer to choke
1791 0.47 Thurs. May 29, 2008
1792 (late night release engineering)--
1794 - fixing the version is META.yml, no functional
1795 changes in this release
1797 0.46 Wed. May 28, 2008
1798 !! This version now approx. 20-25% !!
1799 !! faster with new Class::MOP 0.57 !!
1801 * Moose::Meta::Class
1802 - some optimizations of the &initialize method
1803 since it is called so often by &meta
1805 * Moose::Meta::Class
1807 - now use the get_all_package_symbols from the
1808 updated Class::MOP, test suite is now 10 seconds
1811 * Moose::Meta::Method::Destructor
1812 - is_needed can now also be called as a class
1813 method for immutablization to check if the
1814 destructor object even needs to be created
1817 * Moose::Meta::Method::Destructor
1818 Moose::Meta::Method::Constructor
1819 - added more descriptive error message to help
1820 keep people from wasting time tracking an error
1821 that is easily fixed by upgrading.
1823 0.45 Saturday, May 24, 2008
1825 - Because of work in Class::MOP 0.57, all
1826 XS based functionality is now optional
1827 and a Pure Perl version is supplied
1828 - the CLASS_MOP_NO_XS environment variable
1829 can now be used to force non-XS versions
1831 - several of the packages have been tweaked
1832 to take care of this, mostly we added
1833 support for the package_name and name
1834 variables in all the Method metaclasses
1835 - before/around/after method modifiers now
1836 support regexp matching of names
1837 (thanks to Takatoshi Kitano)
1838 - tests added for this
1839 - NOTE: this only works for classes, it
1840 is currently not supported in roles,
1841 but, ... patches welcome
1842 - All usage of Carp::confess have been replaced
1843 by Carp::croak in the "keyword" functions since
1844 the stack trace is usually not helpful
1847 - All usage of Carp::confess have been replaced
1848 by Carp::croak in the "keyword" functions since
1849 the stack trace is usually not helpful
1850 - The 'has' keyword for roles now accepts the
1851 same array ref form that Moose.pm does
1852 (has [qw/foo bar/] => (is => 'rw', ...))
1853 - added test for this
1855 * Moose::Meta::Attribute
1856 - trigger on a ro-attribute is no longer an
1857 error, as it's useful to trigger off of the
1860 * Moose::Meta::Class
1861 - added same 'add_package_symbol' fix as in
1865 - does_role now handles non-Moose classes
1867 - added tests for this
1868 - added the 'add_method_modifier' function
1869 (thanks to Takatoshi Kitano)
1871 * Moose::Util::TypeConstraints
1872 - subtypes of parameterizable types now are
1873 themselves parameterizable types
1875 * Moose::Meta::Method::Constructor
1876 - fixed bug where trigger was not being
1877 called by the inlined immutable
1879 - added test for this (thanks to Caelum)
1881 * Moose::Meta::Role::Application::ToInstance
1882 - now uses the metaclass of the instance
1883 (if possible) to create the anon-class
1884 (thanks Jonathan Rockway)
1886 * Moose::Cookbook::Recipe22
1887 - added the meta-attribute trait recipe
1891 - fixed hash-ordering test bug that was
1892 causing occasional cpantester failures
1893 - renamed the t/000_recipe/*.t tests to be
1894 more descriptive (thanks to Sartak)
1896 0.44 Sat. May 10, 2008
1898 - made make_immutable warning cluck to
1899 show where the error is (thanks mst)
1902 - BUILDALL and DEMOLISHALL now call
1903 ->body when looping through the
1904 methods, to avoid the overloaded
1906 - fixed issue where DEMOLISHALL was
1907 eating the $@ values, and so not
1908 working correctly, it still kind of
1909 eats them, but so does vanilla perl
1910 - added tests for this
1912 * Moose::Cookbook::Recipe7
1913 - added new recipe for immutable
1914 functionality (thanks Dave Rolsky)
1916 * Moose::Cookbook::Recipe9
1917 - added new recipe for builder and
1918 lazy_build (thanks Dave Rolsky)
1920 * Moose::Cookbook::Recipe11
1921 - added new recipe for method aliasing
1922 and exclusion with Roles (thanks Dave Rolsky)
1925 - fixed Win32 test failure (thanks spicyjack)
1927 ~ removed Build.PL and Module::Build compat
1928 since Module::Install has done that.
1930 0.43 Wed. April, 30, 2008
1932 drink more coffee before
1933 doing release engineering
1935 - whoops, forgot to do the smolder tests,
1936 and we broke some of the custom meta-attr
1937 modules. This fixes that.
1939 0.42 Mon. April 28, 2008
1940 - some bad tests slipped by, nothing else
1941 changed in this release (cpantesters++)
1943 - upped the Class::MOP dependency to 0.55
1944 since we have tests which need the C3
1947 0.41 Mon. April 28, 2008
1948 ~~ numerous documentation updates ~~
1950 - Changed all usage of die to Carp::croak for better
1951 error reporting (initial patch by Tod Hagan)
1953 ** IMPORTANT NOTE **
1954 - the make_immutable keyword is now deprecated, don't
1955 use it in any new code and please fix your old code
1956 as well. There will be 2 releases, and then it will
1962 - refactored the way inner and super work to avoid
1963 any method/@ISA cache penalty (nothingmuch)
1965 * Moose::Meta::Class
1966 - fixing &new_object to make sure trigger gets the
1967 coerced value (spotted by Charles Alderman on the
1969 - added test for this
1971 * Moose::Meta::Method::Constructor
1972 - immutable classes which had non-lazy attributes were calling
1973 the default generating sub twice in the constructor. (bug
1974 found by Jesse Luehrs, fixed by Dave Rolsky)
1975 - added tests for this (Dave Rolsky)
1976 - fix typo in initialize_body method (nothingmuch)
1978 * Moose::Meta::Method::Destructor
1979 - fix typo in initialize_body method (nothingmuch)
1981 * Moose::Meta::Method::Overriden
1982 Moose::Meta::Method::Augmented
1983 - moved the logic for these into their own
1984 classes (nothingmuch)
1986 * Moose::Meta::Attribute
1987 - inherited attributes may now be extended without
1988 restriction on the type ('isa', 'does') (Sartak)
1989 - added tests for this (Sartak)
1990 - when an attribute property is malformed (such as lazy without
1991 a default), give the name of the attribute in the error
1993 - added the &applied_traits and &has_applied_traits methods
1994 to allow introspection of traits
1995 - added tests for this
1996 - moved 'trait' and 'metaclass' argument handling to here from
1998 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1999 '+foo' syntax) (nothingmuch)
2000 - added tests for this (t0m)
2003 - localize $@ inside DEMOLISHALL to avoid it
2004 eating $@ (found by Ernesto)
2005 - added test for this (thanks to Ernesto)
2007 * Moose::Util::TypeConstraints
2008 - &find_type_constraint now DWIMs when given an
2009 type constraint object or name (nothingmuch)
2010 - &find_or_create_type_constraint superseded with a number of more
2012 - find_or_create_{isa,does}_type_constraint
2013 - find_or_parse_type_constraint
2015 * Moose::Meta::TypeConstraint
2016 Moose::Meta::TypeConstraint::Class
2017 Moose::Meta::TypeConstraint::Role
2018 Moose::Meta::TypeConstraint::Enum
2019 Moose::Meta::TypeConstraint::Union
2020 Moose::Meta::TypeConstraint::Parameterized
2021 - added the &equals method for comparing two type
2022 constraints (nothingmuch)
2023 - added tests for this (nothingmuch)
2025 * Moose::Meta::TypeConstraint
2026 - add the &parents method, which is just an alias to &parent.
2027 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2029 * Moose::Meta::TypeConstraint::Class
2030 - added the class attribute for introspection purposes
2032 - added tests for this
2034 * Moose::Meta::TypeConstraint::Enum
2035 Moose::Meta::TypeConstraint::Role
2036 - broke these out into their own classes (nothingmuch)
2038 * Moose::Cookbook::Recipe*
2039 - fixed references to test file locations in the POD
2040 and updated up some text for new Moose features
2044 - Added &resolve_metaclass_alias, a helper function for finding an actual
2045 class for a short name (e.g. in the traits list)
2047 0.40 Fri. March 14, 2008
2048 - I hate Pod::Coverage
2050 0.39 Fri. March 14, 2008
2052 - documenting the use of '+name' with attributes
2053 that come from recently composed roles. It makes
2054 sense, people are using it, and so why not just
2055 officially support it.
2056 - fixing the 'extends' keyword so that it will not
2057 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2060 - added the perl -Moose=+Class::Name feature to allow
2061 monkeypatching of classes in one liners
2064 - fixing the 'apply_all_roles' keyword so that it will not
2065 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2067 * Moose::Meta::Class
2068 - added ->create method which now supports roles (thanks to jrockway)
2069 - added tests for this
2070 - added ->create_anon_class which now supports roles and caching of
2071 the results (thanks to jrockway)
2072 - added tests for this
2073 - made ->does_role a little more forgiving when it is
2074 checking a Class::MOP era metaclasses.
2076 * Moose::Meta::Role::Application::ToInstance
2077 - it is now possible to pass extra params to be used when
2078 a role is applied to an the instance (rebless_params)
2079 - added tests for this
2081 * Moose::Util::TypeConstraints
2082 - class_type now accepts an optional second argument for a
2083 custom message. POD anotated accordingly (groditi)
2084 - added tests for this
2085 - it is now possible to make anon-enums by passing 'enum' an
2086 ARRAY ref instead of the $name => @values. Everything else
2088 - added tests for this
2091 - making test for using '+name' on attributes consumed
2092 from a role, it works and makes sense too.
2094 * Moose::Meta::Attribute
2095 - fix handles so that it doesn't return nothing
2096 when the method cannot be found, not sure why
2097 it ever did this originally, this means we now
2098 have slightly better support for AUTOLOADed
2100 - added more delegation tests
2101 - adding ->does method to this so as to better
2102 support traits and their introspection.
2103 - added tests for this
2106 - localizing the Data::Dumper configurations so
2107 that it does not pollute others (RT #33509)
2108 - made ->does a little more forgiving when it is
2109 passed Class::MOP era metaclasses.
2111 0.38 Fri. Feb. 15, 2008
2112 * Moose::Meta::Attribute
2113 - fixed initializer to correctly do
2114 type checking and coercion in the
2116 - added tests for this
2119 - fixed some finicky tests (thanks to konobi)
2121 0.37 Thurs. Feb. 14, 2008
2123 - fixed some details in Moose::init_meta
2124 and its superclass handling (thanks thepler)
2125 - added tests for this (thanks thepler)
2126 - 'has' now dies if you don't pass in name
2128 - added the 'make_immutable' keyword as a shortcut
2131 * Moose::Meta::Class
2132 Moose::Meta::Method::Constructor
2133 Moose::Meta::Attribute
2134 - making (init_arg => undef) work here too
2135 (thanks to nothingmuch)
2137 * Moose::Meta::Attribute
2138 Moose::Meta::Method::Constructor
2139 Moose::Meta::Method::Accessor
2140 - make lazy attributes respect attr initializers (rjbs)
2141 - added tests for this
2143 * Moose::Util::TypeConstraints
2144 Moose::Util::TypeConstraints::OptimizedConstraints
2145 Moose::Meta::TypeConstraints
2146 Moose::Meta::Attribute
2147 Moose::Meta::Method::Constructor
2148 Moose::Meta::Method::Accessor
2149 - making type errors use the
2150 assigned message (thanks to Sartak)
2151 - added tests for this
2153 * Moose::Meta::Method::Destructor
2154 - making sure DESTROY gets inlined properly
2155 with successive DEMOLISH calls (thanks to manito)
2157 * Moose::Meta::Attribute
2158 Moose::Meta::Method::Accessor
2159 - fixed handling of undef with type constraints
2161 - added tests for this
2164 - added &get_all_init_args and &get_all_attribute_values
2165 (thanks to Sartak and nothingmuch)
2167 0.36 Sat. Jan. 26, 2008
2169 Moose::Meta::Attribute
2170 - role type tests now support when roles are
2171 applied to non-Moose classes (found by ash)
2172 - added tests for this (thanks to ash)
2173 - couple extra tests to boost code coverage
2175 * Moose::Meta::Method::Constructor
2176 - improved fix for handling Class::MOP attributes
2177 - added test for this
2179 * Moose::Meta::Class
2180 - handled the add_attribute($attribute_meta_object)
2182 - added test for this
2184 0.35 Tues. Jan. 22, 2008
2185 * Moose::Meta::Method::Constructor
2186 - fix to make sure even Class::MOP attributes
2187 are handled correctly (Thanks to Dave Rolsky)
2188 - added test for this (also Dave Rolsky)
2190 * Moose::Meta::Class
2191 - improved error message on _apply_all_roles,
2192 you should now use Moose::Util::apply_all_roles
2193 and you shouldnt have been using a _ prefixed
2194 method in the first place ;)
2196 0.34 Mon. Jan. 21, 2008
2197 ~~~ more misc. doc. fixes ~~~
2198 ~~ updated copyright dates ~~
2200 Moose is now a postmodern object system :)
2201 - (see the POD for details)
2203 * <<Role System Refactoring>>
2204 - this release contains a major reworking and
2205 cleanup of the role system
2206 - 100% backwards compat.
2207 - Role application now restructured into seperate
2208 classes based on type of applicants
2209 - Role summation (combining of more than one role)
2210 is much cleaner and anon-classes are no longer
2211 used in this process
2212 - new Composite role metaclass
2213 - runtime application of roles to instances
2214 is now more efficient and re-uses generated
2215 classes when applicable
2217 * <<New Role composition features>>
2218 - methods can now be excluded from a given role
2220 - methods can now be aliased to another name (and
2221 still retain the original as well)
2223 * Moose::Util::TypeConstraints::OptimizedConstraints
2224 - added this module (see above)
2226 * Moose::Meta::Class
2227 - fixed the &_process_attribute method to be called
2228 by &add_attribute, so that the API is now correct
2230 * Moose::Meta::Method::Accessor
2231 - fixed bug when passing a list of values to
2232 an accessor would get (incorrectly) ignored.
2233 Thanks to Sartak for finding this ;)
2234 - added tests for this (Sartak again)
2236 * Moose::Meta::Method::Accessor
2237 Moose::Meta::Method::Constructor
2238 Moose::Meta::Attribute
2239 Moose::Meta::TypeConstraint
2240 Moose::Meta::TypeCoercion
2241 - lots of cleanup of such things as:
2243 - type constraint handling
2244 - error handling/messages
2245 (thanks to nothingmuch)
2247 * Moose::Meta::TypeConstraint::Parameterizable
2248 - added this module to support the refactor
2249 in Moose::Meta::TypeConstraint::Parameterized
2251 * Moose::Meta::TypeConstraint::Parameterized
2252 - refactored how these types are handled so they
2253 are more generic and not confined to ArrayRef
2257 - shortened some file names for better VMS support (RT #32381)
2259 0.33 Fri. Dec. 14, 2007
2260 !! Moose now loads 2 x faster !!
2261 !! with new Class::MOP 0.49 !!
2263 ++ new oose.pm module to make command line
2264 Moose-ness easier (see POD docs for more)
2266 * Moose::Meta::Class
2268 - several tweaks to take advantage of the
2269 new method map caching in Class::MOP
2271 * Moose::Meta::TypeConstraint::Parameterized
2272 - allow subtypes of ArrayRef and HashRef to
2273 be used as a container (sartak)
2274 - added tests for this
2275 - basic support for coercion to ArrayRef and
2276 HashRef for containers (sartak)
2277 - added tests for this
2279 * Moose::Meta::TypeCoercion
2280 - coercions will now create subtypes as needed
2281 so you can now add coercions to parameterized
2282 types without having to explictly define them
2283 - added tests for this
2285 * Moose::Meta::Method::Accessor
2286 - allow subclasses to decide whether we need
2287 to copy the value into a new variable (sartak)
2289 0.32 Tues. Dec. 4, 2007
2290 * Moose::Util::TypeConstraints
2291 - fixing how subtype aliases of unions work
2292 they should inherit the parent's coercion
2293 - added tests for this
2294 - you can now define multiple coercions on
2295 a single type at different times instead of
2296 having to do it all in one place
2297 - added tests for this
2299 * Moose::Meta::TypeConstraint
2300 - there is now a default constraint of sub { 1 }
2301 instead of Moose::Util::TypeConstraints setting
2304 * Moose::Meta::TypeCoercion
2305 * Moose::Meta::TypeCoercion::Union
2306 - added the &has_coercion_for_type and
2307 &add_type_coercions methods to support the
2308 new features above (although you cannot add
2309 more type coercions for Union types)
2311 0.31 Mon. Nov. 26, 2007
2312 * Moose::Meta::Attribute
2313 - made the +attr syntax handle extending types with
2314 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2315 now works if the original foo is an ArrayRef.
2316 - added tests for this.
2317 - delegation now works even if the attribute does not
2318 have a reader method using the get_read_method_ref
2319 method from Class::MOP::Attribute.
2320 - added tests for this
2321 - added docs for this
2323 * Moose::Util::TypeConstraints
2324 - passing no "additional attribute info" to
2325 &find_or_create_type_constraint will no longer
2326 attempt to create an __ANON__ type for you,
2327 instead it will just return undef.
2328 - added docs for this
2330 0.30 Fri. Nov. 23, 2007
2331 * Moose::Meta::Method::Constructor
2332 -builder related bug in inlined constructor. (groditi)
2334 * Moose::Meta::Method::Accessor
2335 - genereate unnecessary calls to predicates and refactor
2336 code generation for runtime speed (groditi)
2338 * Moose::Util::TypeConstraints
2339 - fix ClassName constraint to introspect symbol table (mst)
2340 - added more tests for this (mst)
2341 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2342 with work correctly.
2343 - added tests for this
2346 - adding the link to Recipie 11 (written by Sartak)
2347 - adding test for SYNOPSIS code
2350 - New tests for builder bug. Upon instantiation, if an
2351 attribute had a builder, no value and was not lazy the
2352 builder default was not getting run, oops. (groditi)
2354 0.29 Tues. Nov. 13, 2007
2355 * Moose::Meta::Attribute
2356 - Fix error message on missing builder method (groditi)
2358 * Moose::Meta::Method::Accessor
2359 - Fix error message on missing builder method (groditi)
2362 - Add test to check for the correct error message when
2363 builder method is missing (groditi)
2365 0.28 Tues. Nov. 13, 2007
2366 - 0.27 packaged incorrectly (groditi)
2368 0.27 Tues. Nov. 13, 2007
2369 * Moose::Meta::Attribute
2370 - Added support for the new builder option (groditi)
2371 - Added support for lazy_build option (groditi)
2372 - Changed slot initialization for predicate changes (groditi)
2374 * Moose::Meta::Method::Accessor
2375 - Added support for lazy_build option (groditi)
2376 - Fix inline methods to work with corrected predicate
2379 * Moose::Meta::Method::Constructor
2380 - Added support for lazy_build option (groditi)
2383 - tests for builder and lazy_build (groditi)
2385 * fixing some misc. bits in the docs that
2386 got mentioned on CPAN Forum & perlmonks
2389 - fixed how required methods are handled
2390 when they encounter overriden or modified
2391 methods from a class (thanks to confound).
2392 - added tests for this
2394 * Moose::Util::TypeConstraint
2395 - fixed the type notation parser so that
2396 the | always creates a union and so is
2397 no longer a valid type char (thanks to
2398 konobi, mugwump and #moose for working
2400 - added more tests for this
2402 0.26 Thurs. Sept. 27, 2007
2405 * Parameterized Types
2406 We now support parameterized collection types, such as:
2407 ArrayRef[Int] # array or integers
2408 HashRef[Object] # a hash with object values
2409 They can also be nested:
2410 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2411 And work with the type unions as well:
2412 ArrayRef[Int | Str] # array of integers of strings
2414 * Better Framework Extendability
2415 Moose.pm is now "extendable" such that it is now much
2416 easier to extend the framework and add your own keywords
2417 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2418 section of the Moose.pm docs.
2421 In an effort to begin documenting some of the various
2422 details of Moose as well as some common idioms, we have
2423 created Moose::Cookbook::Snacks as a place to find
2424 small (easily digestable) nuggets of Moose code.
2427 ~ Several doc updates/cleanup thanks to castaway ~
2429 - converted build system to use Module::Install instead of
2430 Module::Build (thanks to jrockway)
2433 - added all the meta classes to the immutable list and
2434 set it to inline the accessors
2435 - fix import to allow Sub::Exporter like { into => }
2436 and { into_level => } (perigrin)
2437 - exposed and documented init_meta() to allow better
2438 embedding and extending of Moose (perigrin)
2441 - complete re-organization of the test suite
2442 - added some new tests as well
2443 - finally re-enabled the Moose::POOP test since
2444 the new version of DBM::Deep now works again
2447 * Moose::Meta::Class
2448 - fixed very odd and very nasty recursion bug with
2450 - added tests for this (eilara)
2452 * Moose::Meta::Attribute
2453 Moose::Meta::Method::Constructor
2454 Moose::Meta::Method::Accessor
2455 - fixed issue with overload::Overloaded getting called
2456 on non-blessed items. (RT #29269)
2457 - added tests for this
2459 * Moose::Meta::Method::Accessor
2460 - fixed issue with generated accessor code making
2461 assumptions about hash based classes (thanks to dexter)
2463 * Moose::Coookbook::Snacks
2464 - these are bits of documentation, not quite as big as
2465 Recipes but which have no clear place in the module docs.
2466 So they are Snacks! (horray for castaway++)
2468 * Moose::Cookbook::Recipe4
2469 - updated it to use the new ArrayRef[MyType] construct
2470 - updated the accompanying test as well
2472 +++ Major Refactor of the Type Constraint system +++
2473 +++ with new features added as well +++
2475 * Moose::Util::TypeConstraint
2476 - no longer uses package variable to keep track of
2477 the type constraints, now uses the an instance of
2478 Moose::Meta::TypeConstraint::Registry to do it
2479 - added more sophisticated type notation parsing
2481 - added tests for this
2483 * Moose::Meta::TypeConstraint
2484 - some minor adjustments to make subclassing easier
2485 - added the package_defined_in attribute so that we
2486 can track where the type constraints are created
2488 * Moose::Meta::TypeConstraint::Union
2489 - this is now been refactored to be a subclass of
2490 Moose::Meta::TypeConstraint
2492 * Moose::Meta::TypeCoercion::Union
2493 - this has been added to service the newly refactored
2494 Moose::Meta::TypeConstraint::Union and is itself
2495 a subclass of Moose::Meta::TypeCoercion
2497 * Moose::Meta::TypeConstraint::Parameterized
2498 - added this module (taken from MooseX::AttributeHelpers)
2499 to help construct nested collection types
2500 - added tests for this
2502 * Moose::Meta::TypeConstraint::Registry
2503 - added this class to keep track of type constraints
2505 0.25 Mon. Aug. 13, 2007
2507 - Documentation update to reference Moose::Util::TypeConstraints
2508 under 'isa' in 'has' for how to define a new type
2509 (thanks to shlomif).
2511 * Moose::Meta::Attribute
2512 - required attributes now will no longer accept undef
2513 from the constructor, even if there is a default and lazy
2514 - added tests for this
2515 - default subroutines must return a value which passes the
2517 - added tests for this
2519 * Moose::Meta::Attribute
2520 * Moose::Meta::Method::Constructor
2521 * Moose::Meta::Method::Accessor
2522 - type-constraint tests now handle overloaded objects correctly
2523 in the error message
2524 - added tests for this (thanks to EvanCarroll)
2526 * Moose::Meta::TypeConstraint::Union
2527 - added (has_)hand_optimized_constraint to this class so that
2528 it behaves as the regular Moose::Meta::TypeConstraint does.
2531 - large refactoring of this code
2532 - added several more tests
2533 - tests for subtle conflict resolition issues
2534 added, but not currently running
2537 * Moose::Cookbook::Recipe7
2538 - added new recipe for augment/inner functionality
2540 - added test for this
2543 - a formal definition of roles (still in progress)
2546 - utilities for easier working with Moose classes
2547 - added tests for these
2550 - This contains Moose specific test functions
2551 - added tests for these
2553 0.24 Tues. July 3, 2007
2554 ~ Some doc updates/cleanup ~
2556 * Moose::Meta::Attribute
2557 - added support for roles to be given as parameters
2558 to the 'handles' option.
2559 - added tests and docs for this
2560 - the has '+foo' attribute form now accepts changes to
2561 the lazy option, and the addition of a handles option
2562 (but not changing the handles option)
2563 - added tests and docs for this
2566 - required methods are now fetched using find_method_by_name
2567 so that required methods can come from superclasses
2568 - adjusted tests for this
2570 0.23 Mon. June 18, 2007
2571 * Moose::Meta::Method::Constructor
2572 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2573 * Moose::Meta::Class
2574 - Modify make_immutable to work with the new Class::MOP immutable
2575 mechanism + POD + very basic test (groditi)
2576 * Moose::Meta::Attribute
2577 - Fix handles to use goto() so that caller() comes out properly on
2578 the other side (perigrin)
2580 0.22 Thurs. May 31, 2007
2581 * Moose::Util::TypeConstraints
2582 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2583 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2584 prototypes for functions
2585 - added the ClassName type constraint, this checks for strings
2586 which will respond true to ->isa(UNIVERSAL).
2587 - added tests and docs for this
2588 - subtyping just in name now works correctly by making the
2589 default for where be { 1 }
2590 - added test for this
2592 * Moose::Meta::Method::Accessor
2593 - coerce and lazy now work together correctly, thanks to
2594 merlyn for finding this bug
2595 - tests added for this
2596 - fix reader presedence bug in Moose::Meta::Attribute + tests
2599 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2600 a HASH-ref and missed. This produces better error messages then
2601 having it die cause undef is not a HASH.
2602 - added tests for this
2604 0.21 Thursday, May 2nd, 2007
2606 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2607 - modified unimport to remove super and inner along with the rest
2608 - altered unimport tests to handle this
2611 - altered super export to populate SUPER_SLOT
2613 * Moose::Meta::Class
2614 - altered augment and override modifier application to use *_SLOT
2615 - modified tests for these to unimport one test class each to test
2618 - fixed issue where custom attribute metaclasses
2619 where not handled correctly in roles
2620 - added tests for this
2622 * Moose::Meta::Class
2623 - fixed issue where extending metaclasses with
2624 roles would blow up. Thanks to Aankhen`` for
2625 finding this insidious error, and it's solution.
2627 ~~ lots of spelling and grammer fixes in the docs,
2628 many many thanks to rlb3 and Aankhen for these :)
2630 0.20 Friday, April 6th, 2007
2631 >> I messed up the SKIP logic in one test
2632 so this release is just to fix that.
2635 - 'has' now also accepts an ARRAY ref
2636 to create multiple attrs (see docs)
2637 (thanks to konobi for this)
2638 - added tests and docs
2640 0.19 Thurs. April 5th, 2007
2641 ~~ More documentation updates ~~
2643 * Moose::Util::TypeConstraints
2644 - 'type' now supports messages as well
2645 thanks to phaylon for finding this
2646 - added tests for this
2647 - added &list_all_type_constraints and
2648 &list_all_builtin_type_constraints
2649 functions to facilitate introspection.
2651 * Moose::Meta::Attribute
2652 - fixed regexp 'handles' declarations
2653 to build the list of delegated methods
2654 correctly (and not override important
2655 things like &new) thanks to ashleyb
2657 - added tests and docs for this
2658 - added the 'documentation' attributes
2659 so that you can actually document your
2660 attributes and inspect them through the
2662 - added tests and docs for this
2664 * Moose::Meta::Class
2665 - when loading custom attribute metaclasses
2666 it will first look in for the class in the
2667 Moose::Meta::Attribute::Custom::$name, and
2668 then default to just loading $name.
2669 - added tests and docs for this
2671 * Moose::Meta::TypeConstraint
2672 - type constraints now stringify to their names.
2673 - added test for this
2676 - added tests to assure we work with Module::Refresh
2677 - added stricter test skip logic in the Moose POOP
2678 test, ask Rob Kinyon why.
2679 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2681 0.18 Sat. March 10, 2007
2682 ~~ Many, many documentation updates ~~
2685 - We now use Class::MOP::load_class to
2687 - added tests to show types and subtypes
2688 working with Declare::Constraints::Simple
2689 and Test::Deep as constraint engines.
2692 !! You must have Class::MOP 0.37_001 !!
2693 !! for this developer release to work !!
2695 This release was primarily adding the immutable
2696 feature to Moose. An immutable class is one which
2697 you promise not to alter. When you set the class
2698 as immutable it will perform various bits of
2699 memoization and inline certain part of the code
2700 (constructors, destructors and accessors). This
2701 minimizes (and in some cases totally eliminates)
2702 one of Moose's biggest performance hits. This
2703 feature is not on by default, and is 100% optional.
2704 It has several configurable bits as well, so you
2705 can pick and choose to your specific needs.
2707 The changes involved in this were fairly wide and
2708 highly specific, but 100% backwards compatible, so
2709 I am not going to enumerate them here. If you are
2710 truely interested in what was changed, please do
2713 0.17 Tues. Nov. 14, 2006
2714 * Moose::Meta::Method::Accessor
2715 - bugfix for read-only accessors which
2716 are have a type constraint and lazy.
2717 Thanks to chansen for finding it.
2719 0.16 Tues. Nov. 14, 2006
2721 There are some speed improvements in this release,
2722 but they are only the begining, so stay tuned.
2725 - BUILDALL and DEMOLISHALL no longer get
2726 called unless they actually need to be.
2727 This gave us a signifigant speed boost
2728 for the cases when there is no BUILD or
2729 DEMOLISH method present.
2731 * Moose::Util::TypeConstraints
2732 * Moose::Meta::TypeConstraint
2733 - added an 'optimize_as' option to the
2734 type constraint, which allows for a
2735 hand optimized version of the type
2736 constraint to be used when possible.
2737 - Any internally created type constraints
2738 now provide an optimized version as well.
2740 0.15 Sun. Nov. 5, 2006
2742 This version of Moose *must* have Class::MOP 0.36 in order
2743 to work correctly. A number of small internal tweaks have
2744 been made in order to be compatible with that release.
2746 * Moose::Util::TypeConstraints
2747 - added &unimport so that you can clean out
2748 your class namespace of these exported
2751 * Moose::Meta::Class
2752 - fixed minor issue which occasionally
2753 comes up during global destruction
2755 - moved Moose::Meta::Method::Overriden into
2759 - moved Moose::Meta::Role::Method into
2762 * Moose::Meta::Attribute
2763 - changed how we do type checks so that
2764 we reduce the overall cost, but still
2767 - moved accessor generation methods to
2768 Moose::Meta::Method::Accessor to
2769 conform to the API changes from
2772 * Moose::Meta::TypeConstraint
2773 - changed how constraints are compiled
2774 so that we do less recursion and more
2775 iteration. This makes the type check
2777 - moved Moose::Meta::TypeConstraint::Union
2780 * Moose::Meta::Method::Accessor
2781 - created this from methods formerly found in
2782 Moose::Meta::Attribute
2784 * Moose::Meta::Role::Method
2785 - moved this from Moose::Meta::Role
2787 * Moose::Meta::Method::Overriden
2788 - moved this from Moose::Meta::Class
2790 * Moose::Meta::TypeConstraint::Union
2791 - moved this from Moose::Meta::TypeConstraint
2793 0.14 Mon. Oct. 9, 2006
2795 * Moose::Meta::Attribute
2796 - fixed lazy attributes which were not getting
2797 checked with the type constraint (thanks ashley)
2798 - added tests for this
2799 - removed the over-enthusiastic DWIMery of the
2800 automatic ArrayRef and HashRef defaults, it
2801 broke predicates in an ugly way.
2802 - removed tests for this
2804 0.13 Sat. Sept. 30, 2006
2806 This version of Moose *must* have Class::MOP 0.35 in order
2807 to work correctly. A number of small internal tweaks have
2808 been made in order to be compatible with that release.
2811 - Removed the use of UNIVERSAL::require to be a better
2812 symbol table citizen and remove a dependency
2813 (thanks Adam Kennedy)
2815 **~~ removed experimental & undocumented feature ~~**
2816 - commented out the 'method' and 'self' keywords, see the
2817 comments for more info.
2820 - added a FAQ and WTF files to document frequently
2821 asked questions and common problems
2823 * Moose::Util::TypeConstraints
2824 - added GlobRef and FileHandle type constraint
2825 - added tests for this
2827 * Moose::Meta::Attribute
2828 - if your attribute 'isa' ArrayRef of HashRef, and you have
2829 not explicitly set a default, then make the default DWIM.
2830 This will also work for subtypes of ArrayRef and HashRef
2832 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2833 - new test added for this (thanks to ashley)
2836 - added basic support for runtime role composition
2837 but this is still *highly experimental*, so feedback
2838 is much appreciated :)
2839 - added tests for this
2841 * Moose::Meta::TypeConstraint
2842 - the type constraint now handles the coercion process
2843 through delegation, this is to support the coercion
2846 * Moose::Meta::TypeConstraint::Union
2847 - it is now possible for coercions to be performed
2849 - added tests for this (thanks to konobi)
2851 * Moose::Meta::TypeCoercion
2852 - properly capturing error when type constraint
2856 - Scalar::Util 1.18 is bad on Win32, so temporarily
2857 only require version 1.17 for Win32 and cygwin.
2858 (thanks Adam Kennedy)
2860 0.12 Sat. Sept. 1, 2006
2862 - Recipe5 (subtypes & coercion) has been written
2865 - fixed "bad meta" error message to be more descriptive
2866 - fixed &unimport to not remove the &inner and &super
2867 keywords because we need to localize them.
2868 - fixed number of spelling/grammer issues, thanks Theory :)
2870 **~~ experimental & undocumented feature ~~**
2871 - added the method and self keywords, they are basically
2872 just sugar, and they may not stay around.
2875 - added &dump method to easily Data::Dumper
2878 * Moose::Meta::TypeConstraint
2879 - added the &is_a_type_of method to check both the current
2880 and the subtype of a method (similar to &isa with classes)
2883 - this is now a subclass of Class::MOP::Module, and no longer
2884 creates the _role_meta ugliness of before.
2885 - fixed tests to reflect this change
2887 0.11 Wed. July 12, 2006
2889 - added an &unimport method to remove all the keywords
2890 that Moose will import, simply add 'no Moose' to the
2891 bottom of your class file.
2894 - fixed some test failures caused by a forgotten test
2897 0.10 Thurs. July 6, 2006
2899 - improved error message when loading modules so
2900 it is less confusing when you load a role.
2901 - added &calculate_all_roles method to
2902 Moose::Meta::Class and Moose::Meta::Role
2905 This module has been tested against Class::MOP 0.30
2906 but it does not yet utilize the optimizations
2907 it makes available. Stay tuned for that ;)
2909 0.09_03 Fri. June 23, 2006
2910 ++ DEVELOPER RELEASE ++
2912 - 'use strict' and 'use warnings' are no longer
2913 needed in Moose classes, Moose itself will
2914 turn them on for you.
2915 - added tests for this
2916 - moved code from exported subs to private methods
2917 in Moose::Meta::Class
2920 - as with Moose, strict and warnings are
2921 automatically turned on for you.
2922 - added tests for this
2925 - now handles an edge case for override errors
2926 - added tests for this
2927 - added some more edge case tests
2929 0.09_02 Tues. May 16, 2006
2930 ++ DEVELOPER RELEASE ++
2932 - added prototypes to the exported subs
2936 - added prototypes to the exported subs
2939 * Moose::Util::TypeConstraints
2940 - cleaned up prototypes for the subs
2943 0.09_01 Fri. May 12, 2006
2944 ++ DEVELOPER RELEASE ++
2945 - This release works in combination with
2946 Class::MOP 0.29_01, it is a developer
2947 release because it uses the a new
2948 instance sub-protocol and a fairly
2949 complete Role implementation. It has
2950 not yet been optimized, so it slower
2951 the the previous CPAN version. This
2952 release also lacks good updated docs,
2953 the official release will have updated docs.
2956 - refactored the keyword exports
2957 - 'with' now checks Role validaity and
2958 accepts more than one Role at a time
2959 - 'extends' makes metaclass adjustments as
2960 needed to ensure metaclass compatibility
2963 - refactored the keyword exports
2964 - 'with' now checks Role validaity and
2965 accepts more than one Role at a time
2967 * Moose::Util::TypeConstraints
2968 - added the 'enum' keyword for simple
2969 string enumerations which can be used as
2971 - see example of usage in t/202_example.t
2974 - more careful checking of params to new()
2977 - much work done on the role composition
2978 - many new tests for conflict detection
2979 and composition edge cases
2980 - not enough documentation, I suggest
2981 looking at the tests
2983 * Moose::Meta::Instance
2984 - added new Instance metaclass to support
2985 the new Class::MOP instance protocol
2987 * Moose::Meta::Class
2988 - some small changes to support the new
2990 - some small additions to support Roles
2992 * Moose::Meta::Attribute
2993 - some improvements to the accessor generation code
2995 - some small changes to support the new
2997 - (still somewhat) experimental delegation support
2998 with the 'handles' option
2999 - added several tests for this
3000 - no docs for this yet
3002 0.05 Thurs. April 27, 2006
3004 - keywords are now exported with Sub::Exporter
3005 thanks to chansen for this commit
3006 - has keyword now takes a 'metaclass' option
3007 to support custom attribute meta-classes
3008 on a per-attribute basis
3009 - added tests for this
3010 - the 'has' keyword not accepts inherited slot
3011 specifications (has '+foo'). This is still an
3012 experimental feature and probably not finished
3013 see t/038_attribute_inherited_slot_specs.t for
3014 more details, or ask about it on #moose
3015 - added tests for this
3018 - keywords are now exported with Sub::Exporter
3020 * Moose::Utils::TypeConstraints
3021 - reorganized the type constraint hierarchy, thanks
3022 to nothingmuch and chansen for his help and advice
3024 - added some tests for this
3025 - keywords are now exported with Sub::Exporter
3026 thanks to chansen for this commit
3028 * Moose::Meta::Class
3029 - due to changes in Class::MOP, we had to change
3030 construct_instance (for the better)
3032 * Moose::Meta::Attribute
3033 - due to changes in Class::MOP, we had to add the
3034 initialize_instance_slot method (it's a good thing)
3036 * Moose::Meta::TypeConstraint
3037 - added type constraint unions
3038 - added tests for this
3039 - added the is_subtype_of predicate method
3040 - added tests for this
3042 0.04 Sun. April 16th, 2006
3044 - Roles can now consume other roles
3045 - added tests for this
3046 - Roles can specify required methods now with
3047 the requires() keyword
3048 - added tests for this
3051 - ripped out much of it's guts ,.. much cleaner now
3052 - added required methods and correct handling of
3053 them in apply() for both classes and roles
3054 - added tests for this
3055 - no longer adds a does() method to consuming classes
3056 it relys on the one in Moose::Object
3057 - added roles attribute and some methods to support
3058 roles consuming roles
3060 * Moose::Meta::Attribute
3061 - added support for triggers on attributes
3062 - added tests for this
3063 - added support for does option on an attribute
3064 - added tests for this
3066 * Moose::Meta::Class
3067 - added support for attribute triggers in the
3069 - added tests for this
3072 - Moose no longer creates a subtype for your class
3073 if a subtype of the same name already exists, this
3074 should DWIM in 99.9999% of all cases
3076 * Moose::Util::TypeConstraints
3077 - fixed bug where incorrect subtype conflicts were
3079 - added test for this
3082 - this class can now be extended with 'use base' if
3083 you need it, it properly loads the metaclass class now
3084 - added test for this
3086 0.03_02 Wed. April 12, 2006
3088 - you must now explictly use Moose::Util::TypeConstraints
3089 it no longer gets exported for you automatically
3092 - new() now accepts hash-refs as well as key/value lists
3093 - added does() method to check for Roles
3094 - added tests for this
3096 * Moose::Meta::Class
3097 - added roles attribute along with the add_role() and
3099 - added tests for this
3102 - now adds a does() method to consuming classes
3103 which tests the class's hierarchy for roles
3104 - added tests for this
3106 0.03_01 Mon. April 10, 2006
3108 - added new Role recipe (no content yet, only code)
3111 - added 'with' keyword for Role support
3112 - added test and docs for this
3113 - fixed subtype quoting bug
3114 - added test for this
3118 - added test and docs
3120 * Moose::Util::TypeConstraints
3121 - added the message keyword to add custom
3122 error messages to type constraints
3125 - the meta role to support Moose::Role
3126 - added tests and docs
3128 * Moose::Meta::Class
3129 - moved a number of things from Moose.pm
3130 to here, they should have been here
3133 * Moose::Meta::Attribute
3134 - moved the attribute option macros here
3135 instead of putting them in Moose.pm
3137 * Moose::Meta::TypeConstraint
3138 - added the message attributes and the
3140 - added tests and docs for this
3142 0.03 Thurs. March 30, 2006
3144 - added the Moose::Cookbook with 5 recipes,
3145 describing all the stuff Moose can do.
3148 - fixed an issue with &extends super class loading
3149 it now captures errors and deals with inline
3150 packages correctly (bug found by mst, solution
3152 - added super/override & inner/augment features
3153 - added tests and docs for these
3156 - BUILDALL now takes a reference of the %params
3157 that are passed to &new, and passes that to
3160 * Moose::Util::TypeConstraints
3161 - Type constraints now survive runtime reloading
3162 - added test for this
3164 * Moose::Meta::Class
3165 - fixed the way attribute defaults are handled
3166 during instance construction (bug found by chansen)
3168 * Moose::Meta::Attribute
3169 - read-only attributes now actually enforce their
3170 read-only-ness (this corrected in Class::MOP as
3173 0.02 Tues. March 21, 2006
3175 - many more tests, fixing some bugs and
3177 - &extends now loads the base module with
3179 - added UNIVERSAL::require to the
3182 - each new Moose class will also create
3183 and register a subtype of Object which
3184 correspond to the new Moose class.
3185 - the 'isa' option in &has now only
3186 accepts strings, and will DWIM in
3189 * Moose::Util::TypeConstraints
3190 - added type coercion features
3191 - added tests for this
3192 - added support for this in attributes
3193 and instance construction
3195 - type construction no longer creates a
3196 function, it registers the type instead.
3197 - added several functions to get the
3201 - BUILDALL and DEMOLISHALL were broken
3202 because of a mis-named hash key, Whoops :)
3204 * Moose::Meta::Attribute
3205 - adding support for coercion in the
3206 autogenerated accessors
3208 * Moose::Meta::Class
3209 - adding support for coercion in the
3210 instance construction
3212 * Moose::Meta::TypeConstraint
3213 * Moose::Meta::TypeCoercion
3214 - type constraints and coercions are now
3215 full fledges meta-objects
3217 0.01 Wed. March 15, 2006
3218 - Moooooooooooooooooose!!!