1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * An attribute in a subclass can now override the value of "is". (doy)
10 * The deprecation warnings for alias and excludes have been turned back off
11 for this release, to give other module authors a chance to tweak their
16 * mro::get_linear_isa was being called as a function rather than a method,
17 which caused problems with Perl 5.8.x. (t0m)
19 * Union types always created a type constraint, even if their constituent
20 constraints did not have any coercions. This bogus coercion always
21 returned undef, which meant that a union which included Undef as a member
22 always coerced bad values to undef. Reported by Eric Brine. RT
25 * Union types with coercions would always fall back to coercing the value to
26 undef (unintentionally). Now if all the coercions for a union type fail,
27 the value returned by the coercion is the original value that we attempted
28 to coerce. (Dave Rolsky).
30 1.10 Sun, Aug 22, 2010
34 * The long-deprecated alias and excludes options for role applications now
35 issue a deprecation warning. Use -alias and -excludes instead. (Dave
40 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
42 * default => undef now works properly. (doy)
44 * Enum type constraints now throw errors if their values are nonsensical.
49 * Optimizations that should help speed up compilation time (Dave Rolsky).
51 1.09 Tue, Jul 25, 2010
55 * You can no longer pass "coerce => 1" for an attribute unless its type
56 constraint has a coercion defined. Doing so will issue a deprecation
57 warning. (Dave Rolsky)
59 * Previously, '+foo' only allowed a specific set of options to be
60 overridden, which made it impossible to change attribute options related
61 to extensions. Now we blacklist some options, and anything else is
62 allowed. (doy, Tuomas Jormola)
64 * Most features which have been declared deprecated now issue a warning using
65 Moose::Deprecated. Warnings are issued once per calling package, not
66 repeatedly. See Moose::Deprecated for information on how you can shut
67 these warnings up entirely. Note that deprecated features will eventually
68 be removed, so shutting up the warnings may not be the best idea. (Dave
71 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
76 * We no longer unimport strict and warnings when Moose, Moose::Role, or
77 Moose::Exporter are unimported. Doing this was broken if the user
78 explicitly loaded strict and warnings themself, and the results could be
79 generally surprising. We decided that it was best to err on the side of
80 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
83 * New with_traits helper function in Moose::Util. (doy)
87 * Accessors will no longer be inlined if the instance metaclass isn't
90 * Use Perl 5.10's new recursive regex features, if possible, for the type
91 constraint parser. (doy, nothingmuch)
95 * Attributes now warn if their accessors overwrite a locally defined
96 function (not just method). (doy)
100 * Bump our required perl version to 5.8.3, since earlier versions fail tests
101 and aren't easily installable/testable.
103 1.08 Tue, Jun 15, 2010
107 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
108 to be overridden more easily (doy).
110 1.07 Sat, Jun 05, 2010
114 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
115 classes and non-class metaclass traits (doy, dougdude).
117 1.06 Tue, Jun 01, 2010
121 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
122 more uniformly compare type constraints between 'classic' Moose type
123 constraints and MooseX::Types based type constraints.
125 1.05 Thu, May 20, 2010
129 * Packages and modules no longer have methods - this functionality was
130 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
131 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
133 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
134 Moose::Object::new. (doy)
138 * strict and warnings are now unimported when Moose, Moose::Role, or
139 Moose::Exporter are unimported. (doy, Adam Kennedy)
141 * Added a 'consumers' method to Moose::Meta::Role for finding all
142 classes/roles which consume the given role. (doy)
146 * Fix has '+attr' in Roles to explode immediately, rather than when the role
147 is applied to a class (t0m).
149 * Fix type constraint validation messages to not include the string 'failed'
150 twice in the same sentence (Florian Ragwitz).
152 * New type constraints will default to being unequal, rather than equal
155 * The tests no longer check for perl's behavior of clobbering $@, which has
156 been fixed in perl-5.13.1 (Florian Ragwitz).
158 * Metaclass compatibility fixing has been completely rewritten, and should
159 be much more robust. (doy)
161 1.04 Thu, May 20, 2010
163 * This release was broken and has been deleted from CPAN shortly after its
166 1.03 Thu, May 06, 2010
170 * Allow specifying required versions when setting superclasses or applying
171 roles (Florian Ragwitz).
173 1.02 Sat, May 01, 2010
177 * Stop the natatime method provided by the native Array trait from returning
178 an exhausted iterator when being called with a callback. (Florian Ragwitz)
180 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
183 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
184 the class the TC represents as an argument incorrectly returned true. This
185 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
187 * Use File::Temp for temp files created during tests. Previously, files were
188 written to the t/ dir, which could cause problems of the user running the
189 tests did not have write access to that directory.. (Chris Weyl, Ævar
192 * Pass role arguments along when applying roles to instances. (doy, lsm)
194 1.01 Fri, Mar 26, 2010
198 * The handles option now also accepts a role type constraint in addition to a
199 plain role name. (Florian Ragwitz)
203 * Record the Sartak/doy debt properly in Changes (perigrin)
205 1.00 Tue, Mar 25, 2010
209 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
210 methods by default. (Florian Ragwitz)
214 * Improve various parts of the documentation and fix many typos.
215 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
219 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
221 0.99 Mon, Mar 8, 2010
225 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
226 which member of the union a given value validates for. (Cory Watson)
230 * DEMOLISH methods in mutable subclasses of immutable classes are now called
231 properly (Chia-liang Kao, Jesse Luehrs)
235 * Added Moose::Manual::Support that defines the support, compatiblity, and
236 release policies for Moose. (Chris Prather)
238 0.98 Wed, Feb 10, 2010
242 * An internals change in 0.97 broke role application to an instance in some
243 cases. The bug occurred when two different roles were applied to different
244 instances of the same class. (Rafael Kitover)
247 0.97 Tue, Feb 9, 2010
251 * Calling ->reinitialize on a cached anonymous class effectively uncached
252 the metaclass object, causing the metaclass to go out of scope
253 unexpectedly. This could easily happen at a distance by applying a
254 metarole to an anonymous class. (Dave Rolsky).
256 0.96 Sat, Feb 6, 2010
260 * ScalarRef is now a parameterized type. You can now specify a type
261 constraint for whatever the reference points to. (Closes RT#50857)
262 (Michael G. Schwern, Florian Ragwitz)
266 * ScalarRef now accepts references to other references. (Closes RT#50934)
269 0.95 Thu, Feb 4, 2010
273 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
274 a delegation option. This allows the code reference to be called as a
275 method on the object. (Florian Ragwitz)
279 * Moose::Object::does no longer checks the entire inheritance tree, since
280 Moose::Meta::Class::does_role already does this. (doy)
282 * Moose::Util::add_method_modifier (and subsequently the sugar functions
283 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
284 with the same behavior as lists. Types other than arrayref and regexp
285 result in an error. (Dylan Hardison)
287 0.94 Mon, Jan 18, 2010
291 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
295 * Improved support for anonymous roles by changing various APIs to take
296 Moose::Meta::Role objects as well as role names. This included
298 - Moose::Meta::Class->does_role
299 - Moose::Meta::Role->does_role
300 - Moose::Util::does_role
301 - Moose::Util::apply_all_roles
302 - Moose::Util::ensure_all_roles
303 - Moose::Util::search_class_by_role
305 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
309 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
310 work as long as the accessor method names are explicitly set to valid Perl
311 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
314 0.93_03 Tue, Jan 5, 2010
318 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
319 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
322 0.93_02 Tue, Jan 5, 2010
326 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
327 testers. (Dave Rolsky)
330 0.93_01 Mon, Jan 4, 2010
334 See Moose::Manual::Delta for more details on backwards compatiblity issues.
336 * Role attributes are now objects of the Moose::Meta::Role::Attribute
337 class. (Dave Rolsky).
339 * There were major changes to how metaroles are applied. We now distinguish
340 between metaroles for classes vs those for roles. See the
341 Moose::Util::MetaRole docs for details. (Dave Rolsky)
343 * The old MetaRole API has been deprecated, but will continue to
344 work. However, if you are applying an attribute metaclass role, this may
345 break because of the fact that roles now have an attribute metaclass
348 * Moose::Util::MetaRole::apply_metaclass_roles is now called
349 apply_metaroles. The old name is deprecated. Dave Rolsky>
351 * The unimport subs created by Moose::Exporter now clean up re-exported
352 functions like blessed and confess, unless the caller imported them from
353 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
355 [ENHANCEMENTS AND BUG FIXES]
357 * Changed the Str constraint to accept magic lvalue strings like one gets from
358 substr et al, again. (sorear)
360 * Sped up the type constraint parsing regex. (Sam Vilain)
362 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
365 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
366 easier testing of TypeConstraints from the command line. (perigrin)
368 * Added a with_immutable test function to Test::Moose, to run a block of tests
369 with and without certain classes being immutable. (doy)
371 * We now use Module::Install extensions explicitly to avoid confusing errors
372 if they're not installed. We use Module::Install::AuthorRequires to stop
373 test extraction and general failures if you don't have the author side
374 dependencies installed.
376 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
377 #51791. (Amir E. Aharoni)
380 0.93 Thu, Nov 19, 2009
382 - Calling $object->new() is no longer deprecated, and no longer
386 - The get_attribute_map method is now deprecated. (Dave Rolsky)
388 * Moose::Meta::Method::Delegation
389 - Preserve variable aliasing in @_ for delegated methods, so that
390 altering @_ affects the passed value. (doy)
392 * Moose::Util::TypeConstraints
393 - Allow array refs for non-anonymous form of enum and duck_type, not
394 just anonymous. The non-arrayref forms may be removed in the
396 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
397 - Properly document Int being a subtype of Str. (doy)
400 - Moose::Exporter using modules can now export their functions to the
401 main package. This applied to Moose and Moose::Role, among
402 others. (nothingmuch)
404 * Moose::Meta::Attribute
405 - Don't remove attribute accessors we never installed, during
406 remove_accessors. (doy)
408 * Moose::Meta::Attribute::Native::Trait::Array
409 - Don't bypass prototype checking when calling List::Util::first, to
410 avoid a segfault when it is called with a non-code argument. (doy)
412 * Moose::Meta::Attribute::Native::Trait::Code
413 - Fix passing arguments to code execute helpers. (doy)
415 0.92 Tue, Sep 22, 2009
416 * Moose::Util::TypeConstraints
417 - added the match_on_type operator (Stevan)
418 - added tests and docs for this (Stevan)
421 - Metaclass compat fixing should already happen recursively, there's no
422 need to explicitly walk up the inheritance tree. (doy)
424 * Moose::Meta::Attribute
425 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
427 0.91 Thu, Sep 17, 2009
429 - Don't import any functions, in order to avoid polluting our namespace
430 with things that can look like methods (blessed, try, etc)
433 * Moose::Meta::Method::Constructor
434 - The generated code needs to called Scalar::Util::blessed by its
435 fully-qualified name or else Perl can interpret the call to blessed as
436 an indirect method call. This broke Search::GIN, which in turn broke
437 KiokuDB. (nothingmuch)
439 0.90 Tue, Sep 15, 2009
440 * Moose::Meta::Attribute::Native::Trait::Counter
441 * Moose::Meta::Attribute::Native::Trait::String
442 - For these two traits, an attribute which did not explicitly provide
443 methods to handles magically ended up delegating *all* the helper
444 methods. This has been removed. You must be explicit in your handles
445 declaration for all Native Traits. (Dave Rolsky)
448 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
449 sure to rethrow its error message. However, we also localize $@ before
450 this so that if all the DEMOLISH methods success, the value of $@ will
451 be preserved. (nothingmuch and Dave Rolsky)
452 - We now also localize $? during object destruction. (nothingmuch and
454 - The handling of DEMOLISH methods was broken for immutablized classes,
455 which were not receiving the value of
456 Devel::GlobalDestruction::in_global_destruction.
457 - These two fixes address some of RT #48271, reported by Zefram.
458 - This is all now documented in Moose::Manual::Construction.
459 - Calling $object->new() is now deprecated. A warning will be
463 - Added more hooks to customize how roles are applied. The role
464 summation class, used to create composite roles, can now be changed
465 and/or have meta-roles applied to it. (rafl)
466 - The get_method_list method no longer explicitly excludes the "meta"
467 method. This was a hack that has been replaced by better hacks. (Dave
470 * Moose::Meta::Method::Delegation
471 - fixed delegated methods to make sure that any modifiers attached to
472 the accessor being delegated on will be called (Stevan)
473 - added tests for this (Stevan)
476 - Moose no longer warns when a class that is being made immutable has
477 mutable ancestors. While in theory this is a good thing to warn about,
478 we found so many exceptions to this that doing this properly became
481 0.89_02 Thu, Sep 10, 2009
482 * Moose::Meta::Attribute::Native
483 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
485 * Moose::Meta::Attribute::Native::Trait::Array
486 - Added a number of functions from List::Util and List::MoreUtils,
487 including reduce, shuffle, uniq, and natatime. (doy)
490 - This module will now generate an init_meta method for your exporting
491 class if you pass it options for
492 Moose::Util::MetaRole::apply_metaclass_roles or
493 apply_base_class_roles. This eliminates a lot of repetitive
494 boilerplate for typical MooseX modules. (doy).
495 - Documented the with_meta feature, which is a replacement for
496 with_caller. This feature was added by josh a while ago.
497 - The with_caller feature is now deprecated, but will not issue a
498 warning yet. (Dave Rolsky)
499 - If you try to wrap/export a subroutine which doesn't actually exist,
500 Moose::Exporter will warn you about this. (doy)
502 * Moose::Meta::Role::Application::ToRole
503 - When a role aliased a method from another role, it was only getting
504 the new (aliased) name, not the original name. This differed from what
505 happens when a class aliases a role's methods. If you _only_ want the
506 aliased name, make sure to also exclue the original name. (Dave
509 0.89_01 Wed Sep 2, 2009
510 * Moose::Meta::Attribute
511 - Added the currying syntax for delegation from AttributeHelpers to the
512 existing delegation API. (hdp)
514 * Moose::Meta::Attribute::Native
515 - We have merged the functionality of MooseX::AttributeHelpers into the
516 Moose core with some API tweaks. You can continue to use
517 MooseX::AttributeHelpers, but it will not be maintained except
518 (perhaps) for critical bug fixes in the future. See
519 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
522 * Moose::Error::Croak
523 * Moose::Error::Confess
524 - Clarify documentation on how to use different error-throwing
525 modules. (Curtis Jewell)
528 - Correct POD for builder to point to Recipe8, not 9. (gphat)
531 - When a nonexistent sub name is passed to as_is, with_caller, or
532 with_meta, throw a warning and skip the exporting, rather than
533 installing a broken sub. (doy)
536 - Moose now warns if you call C<make_immutable> for a class with mutable
539 0.89 Thu Aug 13, 2009
540 * Moose::Manual::Attributes
541 - Clarify "is", include discussion of "bare". (Sartak)
543 * Moose::Meta::Role::Method::Conflicting
544 * Moose::Meta::Role::Application::ToClass
545 - For the first set of roles involved in a conflict, report all
546 unresolved method conflicts, not just the first method. Fixes #47210
547 reported by Ovid. (Sartak)
549 * Moose::Meta::TypeConstraint
550 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
553 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
555 - Allow specifying role options (alias, excludes, MXRP stuff) in the
556 arrayref passed to "use Moose -traits" (doy)
559 - Add functions meta_class_alias and meta_attribute_alias for creating
560 aliases for class and attribute metaclasses and metatraits. (doy)
562 * Moose::Meta::Attribute
563 * Moose::Meta::Method::Accessor
564 - A trigger now receives the old value as a second argument, if the
565 attribute had one. (Dave Rolsky)
567 * Moose::Meta::Method::Constructor
568 - Fix a bug with $obj->new when $obj has stringify overloading.
569 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
570 - However, we will probably deprecate $obj->new, so please don't start
571 using it for new code!
573 * Moose::Meta::Role::Application
574 * Moose::Meta::Role::Application::RoleSummation
575 - Rename alias and excludes to -alias and -excludes (but keep the old
576 names for now, for backcompat) (doy)
578 0.88 Fri Jul 24, 2009
579 * Moose::Manual::Contributing
580 - Re-write the Moose::Manual::Contributing document to reflect
581 the new layout and methods of work for the Git repository. All
582 work now should be done in topic branches and reviewed by a
583 core committer before being applied to master. All releases
584 are done by a cabal member and merged from master to
585 stable. This plan was devised by Yuval, blame him. (perigrin)
588 - Create metaclass attributes for the different role application
591 * Moose::Util::MetaRole
592 - Allow applying roles to a meta role's role application
595 * Moose::Meta::Attribute
596 - Add weak_ref to allowed options for "has '+foo'" (mst)
598 * Moose::Meta::Method::Accessor
599 - No longer uses inline_slot_access in accessors, to support
600 non-lvalue-based meta instances. (sorear)
603 * Moose::Meta::Method::Delegation
604 - Once again allow class names as well as objects for
605 delegation. This was changed in 0.86.
608 * Moose::Meta::Class::Immutable::Trait
609 - Fixes to work with the latest Class::MOP.
611 * Moose::Meta::Method::Delegation
612 - Delegation now dies with a more useful error message if the
613 attribute's accessor returns something defined but
616 0.85 Fri, Jun 26, 2009
617 * Moose::Meta::Attribute
618 - The warning for 'no associated methods' is now split out into
619 the _check_associated_methods method, so that extensions can
620 safely call 'after install_accessors => ...'. This fixes a
621 warning from MooseX::AttributeHelpers. (hdp)
623 0.84 Fri, Jun 26, 2009
625 - has now sets definition_context for attributes defined in
628 * Moose::Meta::Attribute
629 - When adding an attribute to a metaclass, if the attribute has
630 no associated methods, it will give a deprecation
632 - Methods generated by delegation were not being added to
633 associated_methods. (hdp)
634 - Attribute accessors (reader, writer, accessor, predicate,
635 clearer) now warn if they overwrite an existing method. (doy)
636 - Attribute constructors now warn very noisily about unknown (or
637 misspelled) arguments
639 * Moose::Util::TypeConstraints
640 - Deprecated the totally useless Role type name, which just
641 checked if $object->can('does'). Note that this is _not_ the
642 same as a type created by calling role_type('RoleName').
644 * Moose::Util::TypeConstraints
645 * Moose::Meta::TypeConstraint::DuckType
646 - Reify duck type from a regular subtype into an actual class
648 - Document this because Sartak did all my work for me
651 * Moose::Meta::Attribute
652 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
653 it is just a list of methods (Sartak)
656 - The get_*_method_modifiers methods would die if the role had
657 no modifiers of the given type (Robert Buels).
659 0.83 Tue, Jun 23, 2009
661 - Fix _construct_instance not setting the special __MOP__ object
662 key in instances of anon classes. (doy)
664 0.82 Sun, Jun 21, 2009
665 * Moose::Manual::Types
666 - Mention MooseX::Types early to avoid users falling down the
667 string parsing rathole (mst)
669 * Moose::Manual::MooseX
670 - Add warnings about class-level extensions and mention considering
671 using plain objects instead
673 0.81 Sun, Jun 7, 2009
674 * Bumped our Class::MOP prereq to the latest version (0.85), since
677 0.80 Sat, Jun 6, 2009
679 - Add FAQ about the coercion change from 0.76 because it came up
680 three times today (perigrin)
681 - Win doy $10 dollars because Sartak didn't think anybody
682 would document this fast enough (perigrin)
684 * Moose::Meta::Method::Destructor
685 - Inline a DESTROY method even if there are no DEMOLISH methods
686 to prevent unnecessary introspection in
687 Moose::Object::DEMOLISHALL
690 - A role's required methods are now represented by
691 Moose::Meta::Role::Method::Required objects. Conflicts are now
692 represented by Moose::Meta::Role::Method::Conflicting
693 objects. The benefit for end-users in that unresolved
694 conflicts generate different, more instructive, errors,
695 resolving Ovid's #44895. (Sartak)
698 - Improve the error message of "extends" as suggested by Adam
699 Kennedy and confound (Sartak)
700 - Link to Moose::Manual::Roles from Moose::Role as we now have
701 excellent documentation (Adam Kennedy)
704 - Update test suite for subname change in Class::MOP
706 - Add TODO test for infinite recursion in Moose::Meta::Class
709 0.79 Wed, May 13, 2009
711 - More fixes for Win32 problems. Reported by Robert Krimen.
714 - The DEMOLISHALL method could still blow up in some cases
715 during global destruction. This method has been made more
716 resilient in the face of global destruction's random garbage
720 - If you "also" a module that isn't loaded, the error message
721 now acknowledges that (Sartak)
724 - When your ->meta method does not return a Moose::Meta::Class,
725 the error message gave the wrong output (Sartak)
727 0.78 Tue, May 12, 2009
728 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
729 - Merged these documents into what is now Moose::Manual::FAQ
732 - Moved to Moose::Manual::Unsweetened
734 * Moose::Cookbook::Basics::Recipes 9-12
735 - Renamed to be 8-11, since recipe 8 did not exist
738 - Make Moose::Exporter import strict and warnings into packages
742 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
743 methods during global destruction (doy)
746 * Moose::Meta::Role::Application::ToClass
747 - Track the Role::Application objects created during class-role
751 - Fix metaclass incompatibility errors when extending a vanilla perl
752 class which isa Moose class with a metaclass role applied (t0m)
755 - Add a role-combination hook, _role_for_combination, for the
756 benefit of MooseX::Role::Parameterized (Sartak)
759 - Some tests were failing on Win32 because they explicit checked
760 warning output for newlines. Reported by Nickolay Platonov.
762 0.77 Sat, May 2, 2009
764 - Add explicit use of Devel::GlobalDestruction and Sub::Name
768 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
769 or not we are currently in global destruction (doy)
770 - Add explicit use of Devel::GlobalDestruction and Sub::Name
773 * Moose::Cookbook::FAQ
774 - Reworked much of the existing content to be more useful to
775 modern Moose hackers (Sartak)
778 - Depend on Class::MOP 0.83 instead of 0.82_01.
780 0.76 Mon, April 27, 2009
781 * Moose::Meta::TypeConstraint
782 - Do not run coercions in coerce() if the value already passes the type
785 * Moose::Meta::TypeConstraint::Class
786 - In validation error messages, specifically say that the value is not
787 an instance of the class. This should alleviate some frustrating
788 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
790 * Moose::Meta::Role::Application::ToClass
791 - Revert the class-overrides-role warning in favor of a solution outside
792 of the Moose core (Sartak)
795 - Make Test::Output optional again, since it's only used in a few files
798 0.75_01 Thu, April 23, 2009
799 * Moose::Meta::Role::Application::ToClass
800 - Moose now warns about each class overriding methods from roles it
804 - Warnings tests have standardized on Test::Output which is now an
805 unconditionally dependency (Sartak)
808 - Changes to immutabilization to work with Class::MOP 0.82_01+.
810 0.75 Mon, April 20, 2009
813 - Move validation of not inheriting from roles from Moose::extends to
814 Moose::Meta::Class::superclasses (doy)
817 - add ensure_all_roles() function to encapsulate the common "apply this
818 role unless the object already does it" pattern (hdp)
821 - Users can now select a different metaclass with the "-metaclass"
822 option to import, for classes and roles (Sartak)
825 - Make method_metaclass an attr so that it can accept a metarole
828 0.74 Tue, April 7, 2009
830 * Moose::Meta::Method::Destructor
831 - Include stack traces in the deprecation warnings.
835 - Removed the long-deprecated _apply_all_roles method.
837 * Moose::Meta::TypeConstraint
838 - Removed the long-deprecated union method.
841 0.73_02 Mon, April 6, 2009
842 * More deprecations and renamings
843 - Moose::Meta::Method::Constructor
844 - initialize_body => _initialize_body (this is always called
845 when an object is constructed)
848 - The DEMOLISHALL method could throw an exception during global
849 destruction, meaning that your class's DEMOLISH methods would
850 not be properly called. Reported by t0m.
852 * Moose::Meta::Method::Destructor
853 - Destructor inlining was totally broken by the change to the
854 is_needed method in 0.72_01. Now there is a test for this
855 feature, and it works again.
858 - Bold the word 'not' in the POD for find_meta (t0m)
860 0.73_01 Sun, April 5, 2009
862 - Call user_class->meta in fewer places, with the eventual goal
863 of allowing the user to rename or exclude ->meta
864 altogether. Instead uses Class::MOP::class_of. (Sartak)
866 * Moose::Meta::Method::Accessor
867 - If an attribute had a lazy default, and that value did not
868 pass the attribute's type constraint, it did not get the
869 message from the type constraint, instead using a generic
870 message. Test provided by perigrin.
872 * Moose::Util::TypeConstraints
873 - Add duck_type keyword. It's sugar over making sure an object
874 can() a list of methods. This is easier than jrockway's
875 suggestion to fork all of CPAN. (perigrin)
876 - add tests and documentation (perigrin)
879 - Document the fact that init_meta() returns the target class's
880 metaclass object. (hdp)
882 * Moose::Cookbook::Extending::Recipe1
883 * Moose::Cookbook::Extending::Recipe2
884 * Moose::Cookbook::Extending::Recipe3
885 * Moose::Cookbook::Extending::Recipe4
886 - Make init_meta() examples explicitly return the metaclass and
887 point out this fact. (hdp)
889 * Moose::Cookbook::Basics::Recipe12
890 - A new recipe, creating a custom meta-method class.
892 * Moose::Cookbook::Meta::Recipe6
893 - A new recipe, creating a custom meta-method class.
896 * Moose::Meta::Method::Constructor
897 - Attribute triggers no longer receive the meta-attribute object
898 as an argument in any circumstance. Previously, triggers
899 called during instance construction were passed the
900 meta-attribute, but triggers called by normal accessors were
901 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
903 * Moose::Manual::Attributes
904 - Remove references to triggers receving the meta-attribute object as an
907 * Moose::Cookbook::FAQ
908 - Remove recommendation for deprecated Moose::Policy and
909 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
912 * Many methods have been renamed with a leading underscore, and a
913 few have been deprecated entirely. The methods with a leading
914 underscore are consider "internals only". People writing
915 subclasses or extensions to Moose should feel free to override
916 them, but they are not for "public" use.
919 - check_metaclass_compatibility => _check_metaclass_compatibility
921 - Moose::Meta::Method::Accessor
922 - initialize_body => _initialize_body (this is always called
923 when an object is constructed)
924 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
926 - Moose::Meta::Method::Constructor
927 - initialize_body => _initialize_body (this is always called
928 when an object is constructed)
929 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
930 - attributes => _attributes (now inherited from parent)
931 - meta_instance => _meta_instance (now inherited from parent)
934 - alias_method is deprecated. Use add_method
936 0.73 Fri, March 29, 2009
937 * No changes from 0.72_01.
939 0.72_01 Thu, March 26, 2009
941 - Almost every module has complete API documentation. A few
942 methods (and even whole classes) have been intentionally
943 excluded pending some rethinking of their APIs.
945 * Moose::Util::TypeConstraints
946 - Calling subtype with a name as the only argument is now an
947 exception. If you want an anonymous subtype do:
949 my $subtype = subtype as 'Foo';
951 * Moose::Cookbook::Meta::Recipe7
952 - A new recipe, creating a custom meta-instance class.
954 * Moose::Cookbook::Basics::Recipe5
955 - Fix various typos and mistakes. Includes a patch from Radu
958 * Moose::Cookbook::Basics::Recipe9
959 - Link to this recipe from Moose.pm's builder blurb
962 - When wrapping a function with a prototype, Moose::Exporter now
963 makes sure the wrapped function still has the same
964 prototype. (Daisuke Maki)
966 * Moose::Meta::Attribute
967 - Allow a subclass to set lazy_build for an inherited
971 - Explicitly depend on Data::OptList. We already had this dependency
972 via Sub::Exporter, but since we're using it directly we're
973 better off with it listed. (Sartak)
975 * Moose::Meta::Method::Constructor
976 - Make it easier to subclass the inlining behaviour. (Ash
979 * Moose::Manual::Delta
980 - Details significant changes in the history of Moose, along
981 with recommended workarounds.
983 * Moose::Manual::Contributing
984 - Contributor's guide to Moose.
986 * Moose::Meta::Method::Constructor
987 - The long-deprecated intialize_body method has been removed
988 (yes, spelled like that).
990 * Moose::Meta::Method::Destructor
991 - This is_needed method is now always a class method.
994 - Changes to the internals of how make_immutable works to match
995 changes in latest Class::MOP.
997 0.72 Mon, February 23, 2009
999 * Moose::Meta::Method::Constructor
1000 - A mutable class accepted Foo->new(undef) without complaint,
1001 while an immutable class would blow up with an unhelpful
1002 error. Now, in both cases we throw a helpful error
1003 instead. Reported by doy.
1005 0.71_01 Sun, February 22, 2009
1007 - Hopefully fixed some POD errors in a few recipes that caused
1008 them to display weird on search.cpan.org.
1010 * Moose::Util::TypeConstraints
1011 - Calling type or subtype without the sugar helpers (as, where,
1012 message) is now deprecated.
1013 - The subtype function tried hard to guess what you meant, but
1014 often got it wrong. For example:
1016 my $subtype = subtype as 'ArrayRef[Object]';
1018 This caused an error in the past, but now works as you'd
1022 - Make sure Moose.pm is loaded before calling
1023 Moose->throw_error. This wasn't normally an issue, but could
1024 bite you in weird cases.
1026 0.71 Thu, February 19, 2009
1027 * Moose::Cookbook::Basics::Recipe11
1028 - A new recipe which demonstrates the use of BUILDARGS and
1029 BUILD. (Dave Rolsky)
1031 * Moose::Cookbook::Roles::Recipe3
1032 - A new recipe, applying a role to an object instance. (Dave
1036 - Allow overriding specific keywords from "also" packages. (doy)
1039 - Replace hardcoded cookbook tests with Test::Inline to ensure
1040 the tests match the actual code in the recipes. (Dave Rolsky)
1043 - Working on the above turned up a number of little bugs in the
1044 recipe code. (Dave Rolsky)
1046 * Moose::Util::TypeConstraints::Optimized
1047 - Just use Class::MOP for the optimized ClassName check. (Dave
1050 0.70 Sat, February 14, 2009
1051 * Moose::Util::TypeConstraints
1052 - Added the RoleName type (stevan)
1053 - added tests for this (stevan)
1055 * Moose::Cookbook::Basics::Recipe3
1056 - Updated the before qw[left right] sub to be a little more
1057 defensive about what it accepts (stevan)
1058 - added more tests to t/000_recipies/basics/003_binary_tree.t
1062 - We now always call DEMOLISHALL, even if a class does not
1063 define DEMOLISH. This makes sure that method modifiers on
1064 DEMOLISHALL work as expected. (doy)
1065 - added tests for this (EvanCarroll)
1067 * Moose::Util::MetaRole
1068 - Accept roles for the wrapped_method_metaclass (rafl)
1069 - added tests for this (rafl)
1071 * Moose::Meta::Attribute
1072 - We no longer pass the meta-attribute object as a final
1073 argument to triggers. This actually changed for inlined code a
1074 while back, but the non-inlined version and the docs were
1078 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1079 they require 0.11. (Dave Rolsky)
1082 - Lots of small changes to the manual, cookbook, and
1083 elsewhere. These were based on feedback from various
1084 users, too many to list here. (Dave Rolsky)
1086 0.69 Thu, February 12, 2009
1088 - Make some keyword errors use throw_error instead of croak
1089 since Moose::Exporter wraps keywords now (Sartak)
1091 * Moose::Cookbook::*
1092 - Revised every recipe for style and clarity. Also moved some
1093 documentation out of cookbook recipes and into Moose::Manual
1094 pages. This work was funded as part of the Moose docs grant
1095 from TPF. (Dave Rolsky)
1097 * Moose::Meta::Method::Delegation
1098 - If the attribute doing the delegation was not populated, the
1099 error message did not specify the attribute name
1102 0.68 Wed, February 4, 2009
1104 - Many spelling, typo, and formatting fixes by daxim.
1106 * Moose::Manual::Attributes
1107 - The NAME section in the POD used "Attribute" so search.cpan
1108 didn't resolve links from other documents properly.
1110 * Moose::Meta::Method::Overriden
1111 - Now properly spelled as Overridden. Thanks to daxim for
1114 0.67 Tue, February 3, 2009
1116 - Lots of little typo fixes and a few clarifications. Several
1117 pages didn't have proper titles, and so weren't actually
1118 visible on search.cpan.org. Thanks to hanekomu for a variety
1119 of fixes and formatting improvements.
1121 0.66 Tue, February 3, 2009
1123 - This is a brand new, extensive manual for Moose. This aims to
1124 provide a complete introduction to all of Moose's
1125 features. This work was funded as part of the Moose docs grant
1126 from TPF. (Dave Rolsky)
1128 * Moose::Meta::Attribute
1129 - Added a delegation_metaclass method to replace a hard-coded
1130 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1132 * Moose::Util::TypeConstraints
1133 - If you created a subtype and passed a parent that Moose didn't
1134 know about, it simply ignored the parent. Now it automatically
1135 creates the parent as a class type. This may not be what you
1136 want, but is less broken than before. (Dave Rolsky)
1138 * Moose::Util::TypeConstraints
1139 - This module tried throw errors by calling Moose->throw_error,
1140 but it did not ensure that Moose was loaded first. This could
1141 cause very unhelpful errors when it tried to throw an error
1142 before Moose was loaded. (Dave Rolsky)
1144 * Moose::Util::TypeConstraints
1145 - You could declare a name with subtype such as "Foo!Bar" that
1146 would be allowed, but if you used it in a parameterized type
1147 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1148 vetting on names created via the sugar functions, so that they
1149 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1151 0.65 Thu, January 22, 2008
1152 * Moose and Moose::Meta::Method::Overridden
1153 - If an overridden method called super(), and then the
1154 superclass's method (not overridden) _also_ called super(),
1155 Moose went into an endless recursion loop. Test provided by
1156 Chris Prather. (Dave Rolsky)
1158 * Moose::Meta::TypeConstraint
1159 - All methods are now documented. (gphat)
1161 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1162 - Fixed some bogus failures that occurred because we tried to
1163 validate filesystem paths in a very ad-hoc and
1164 not-quite-correct way. (Dave Rolsky)
1166 * Moose::Util::TypeConstraints
1167 - Added maybe_type to exports. See docs for details. (rjbs)
1170 - Added Moose::Util::TypeConstraints to the SEE ALSO
1174 - Methods created via an attribute can now fulfill a "requires"
1175 declaration for a role. (nothingmuch)
1177 * Moose::Meta::Method::*
1178 - Stack traces from inlined code will now report its line and
1179 file as being in your class, as opposed to in Moose
1180 guts. (nothingmuch).
1182 0.64 Wed, December 31, 2008
1183 * Moose::Meta::Method::Accessor
1184 - Always inline predicate and clearer methods (Sartak)
1186 * Moose::Meta::Attribute
1187 - Support for parameterized traits (Sartak)
1188 - verify_against_type_constraint method to avoid duplication
1189 and enhance extensibility (Sartak)
1191 * Moose::Meta::Class
1192 - Tests (but no support yet) for parameterized traits (Sartak)
1195 - Require Class::MOP 0.75+, which has the side effect of making
1196 sure we work on Win32. (Dave Rolsky)
1198 0.63 Mon, December 8, 2008
1199 * Moose::Unsweetened
1200 - Some small grammar tweaks and bug fixes in non-Moose example
1203 0.62_02 Fri, December 5, 2008
1204 * Moose::Meta::Role::Application::ToClass
1205 - When a class does not provide all of a role's required
1206 methods, the error thrown now mentions all of the missing
1207 methods, as opposed to just the first one found. Requested by
1208 Curtis Poe (RT #41119). (Dave Rolsky)
1210 * Moose::Meta::Method::Constructor
1211 - Moose will no longer inline a constructor for your class
1212 unless it inherits its constructor from Moose::Object, and
1213 will warn when it doesn't inline. If you want to force
1214 inlining anyway, pass "replace_constructor => 1" to
1215 make_immutable. Addresses RT #40968, reported by Jon
1216 Swartz. (Dave Rolsky)
1217 - The quoting of default values could be broken if the default
1218 contained a single quote ('). Now we use quotemeta to escape
1219 anything potentially dangerous in the defaults. (Dave Rolsky)
1221 0.62_01 Wed, December 3, 2008
1223 - use the method->execute API for BUILDALL
1224 and DEMOLISHALL (Sartak)
1226 * Moose::Util::TypeConstraints
1227 - We now make all the type constraint meta classes immutable
1228 before creating the default types provided by Moose. This
1229 should make loading Moose a little faster. (Dave Rolsky)
1231 0.62 Wed November 26, 2008
1232 * Moose::Meta::Role::Application::ToClass
1233 Moose::Meta::Role::Application::ToRole
1234 - fixed issues where excluding and aliasing the
1235 same methods for a single role did not work
1236 right (worked just fine with multiple
1238 - added test for this (stevan)
1240 * Moose::Meta::Role::Application::RoleSummation
1241 - fixed the error message when trying to compose
1242 a role with a role it excludes (Sartak)
1245 - Catch another case where recursion caused the value
1246 of $CALLER to be stamped on (t0m)
1247 - added test for this (t0m)
1250 - Remove the make_immutable keyword, which has been
1251 deprecated since April. It breaks metaclasses that
1252 use Moose without no Moose (Sartak)
1254 * Moose::Meta::Attribute
1255 - Removing an attribute from a class now also removes delegation
1256 (handles) methods installed for that attribute (t0m)
1257 - added test for this (t0m)
1259 * Moose::Meta::Method::Constructor
1260 - An attribute with a default that looked like a number (but was
1261 really a string) would accidentally be treated as a number
1262 when the constructor was made immutable (perigrin)
1263 - added test for this (perigrin)
1266 - create method for constructing a role
1267 dynamically (Sartak)
1268 - added test for this (Sartak)
1269 - anonymous roles! (Sartak)
1270 - added test for this (Sartak)
1273 - more consistent error messages (Sartak)
1275 * Moose::Cookbook::Roles::Recipe1
1276 - attempt to explain why a role that just requires
1277 methods is useful (Sartak)
1279 0.61 Fri November 7, 2008
1280 * Moose::Meta::Attribute
1281 - When passing a role to handles, it will be loaded if necessary
1284 * Moose::Meta::Class
1285 - Method objects returned by get_method (and other methods)
1286 Could end up being returned without an associated_metaclass
1287 attribute. Removing get_method_map, which is provided by
1288 Class::MOP::Class, fixed this. The Moose version did nothing
1289 different from its parent except introduce a bug. (Dave Rolsky)
1290 - added tests for this (jdv79)
1293 - Added a $VERSION to all .pm files which didn't have one. Fixes
1294 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1296 * Moose::Cookbook::Basics::Recipe4
1297 * Moose::Cookbook::Basics::Recipe6
1298 - These files had spaces on the first line of the SYNOPSIS, as
1299 opposed to a totally empty line. According to RT #40432, this
1300 confuses POD parsers. (Dave Rolsky)
1302 0.60 Fri October 24, 2008
1304 - Passing "-traits" when loading Moose caused the Moose.pm
1305 exports to be broken. Reported by t0m. (Dave Rolsky)
1306 - Tests for this bug. (t0m)
1309 - Change resolve_metaclass alias to use the new
1310 load_first_existing_class function. This makes it a lot
1311 simpler, and also around 5 times faster. (t0m)
1312 - Add caching to resolve_metaclass_alias, which gives an order
1313 of magnitude speedup to things which repeatedly call the
1314 Moose::Meta::Attribute->does method, notably MooseX::Storage
1317 * Moose::Util::TypeConstraint
1318 - Put back the changes for parameterized constraints that
1319 shouldn't have been removed in 0.59. We still cannot parse
1320 them, but MooseX modules can create them in some other
1321 way. See the 0.58 changes for more details. (jnapiorkowski)
1322 - Changed the way subtypes are created so that the job is
1323 delegated to a type constraint parent. This clears up some
1324 hardcoded checking and should allow correct subtypes of
1325 Moose::Meta::Type::Constraint. Don't rely on this new API too
1326 much (create_child_type) because it may go away in the
1327 future. (jnapiorkowski)
1329 * Moose::Meta::TypeConstraint::Union
1330 - Type constraint names are sorted as strings, not numbers.
1333 * Moose::Meta::TypeConstraint::Parameterizable
1334 - New parameterize method. This can be used as a factory method
1335 to make a new type constraint with a given parameterized
1336 type. (jnapiorkowski)
1337 - added tests (jnapiorkowski)
1339 0.59 Tue October 14, 2008
1341 - Add abridged documentation for builder/default/initializer/
1342 predicate, and link to more details sections in
1343 Class::MOP::Attribute. (t0m)
1345 * Moose::Util::TypeConstraints
1346 - removed prototypes from all but the &-based stuff (mst)
1348 * Moose::Util::TypeConstraints
1349 - Creating a anonymous subtype with both a constraint and a
1350 message failed with a very unhelpful error, but should just
1351 work. Reported by t0m. (Dave Rolsky)
1354 - Some tests that used Test::Warn if it was available failed
1355 with older versions of Test::Warn. Reported by Fayland. (Dave
1357 - Test firing behavior of triggers in relation to builder/default/
1359 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1360 kinds of supported type. (t0m)
1362 * Moose::Meta::Class
1363 - In create(), do not pass "roles" option to the superclass
1364 - added related test that creates an anon metaclass with
1365 a required attribute
1367 * Moose::Meta::TypeConstraint::Class
1368 * Moose::Meta::TypeConstraint::Role
1369 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1370 other types (as per change in 0.55_02). (t0m)
1372 * Moose::Meta::TypeConstraint::Registry
1373 - Fix warning when dealing with unknown type names (t0m)
1375 * Moose::Util::TypeConstraints
1376 - Reverted changes from 0.58 related to handle parameterized
1377 types. This caused random failures on BSD and Win32 systems,
1378 apparently related to the regex engine. This means that Moose
1379 can no longer parse structured type constraints like
1380 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1381 supported in a slightly different way via MooseX::Types some
1382 time in the future. (Dave Rolsky)
1384 0.58 Sat September 20, 2008
1385 !! This release has an incompatible change regarding !!
1386 !! how roles add methods to a class !!
1388 * Roles and role application
1389 ! Roles now add methods by calling add_method, not
1390 alias_method. They make sure to always provide a method
1391 object, which will be cloned internally. This means that it is
1392 now possible to track the source of a method provided by a
1393 role, and even follow its history through intermediate roles.
1395 This means that methods added by a role now show up when
1396 looking at a class's method list/map. (Dave Rolsky)
1399 - From this release on, we'll try to maintain a list of
1400 conflicting modules, and warn you if you have one
1401 installed. For example, this release conflicts with ...
1402 - MooseX::Singleton <= 0.11
1403 - MooseX::Params::Validate <= 0.05
1406 In general, we try to not break backwards compatibility for
1407 most Moose users, but MooseX modules and other code which
1408 extends Moose's metaclasses is often affected by very small
1409 changes in the Moose internals.
1411 * Moose::Meta::Method::Delegation
1412 * Moose::Meta::Attribute
1413 - Delegation methods now have their own method class. (Dave
1416 * Moose::Meta::TypeConstraint::Parameterizable
1417 - Added a new method 'parameterize' which is basically a factory
1418 for the containing constraint. This makes it easier to create
1419 new types of parameterized constraints. (jnapiorkowski)
1421 * Moose::Meta::TypeConstraint::Union
1422 - Changed the way Union types canonicalize their names to follow
1423 the normalized TC naming rules, which means we strip all
1424 whitespace. (jnapiorkowski)
1426 * Moose::Util::TypeConstraints
1427 - Parameter and Union args are now sorted, this makes Int|Str
1428 the same constraint as Str|Int. (jnapiorkowski)
1429 - Changes to the way Union types are parsed to more correctly
1430 stringify their names. (jnapiorkowski)
1431 - When creating a parameterized type, we now use the new
1432 parameterize method. (jnapiorkowski)
1433 - Incoming type constraint strings are now normalized to remove
1434 all whitespace differences. (jnapiorkowski)
1435 - Changed the way we parse type constraint strings so that we now
1436 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1437 constraints. This lays the foundation for more flexible type
1438 constraint implementations.
1440 * Tests and docs for all the above. (jnapiorkowski)
1444 - Moose::Exporter will no longer remove a subroutine that the
1445 exporting package re-exports. Moose re-exports the
1446 Carp::confess function, among others. The reasoning is that we
1447 cannot know whether you have also explicitly imported those
1448 functions for your own use, so we err on the safe side and
1449 always keep them. (Dave Rolsky)
1450 - added tests for this (rafl)
1452 * Moose::Meta::Class
1453 - Changes to how we fix metaclass compatibility that are much
1454 too complicated to go into. The summary is that Moose is much
1455 less likely to complain about metaclass incompatibility
1456 now. In particular, if two metaclasses differ because
1457 Moose::Util::MetaRole was used on the two corresponding
1458 classes, then the difference in roles is reconciled for the
1459 subclass's metaclass. (Dave Rolsky)
1460 - Squashed an warning in _process_attribute (thepler)
1463 - throw exceptions (sooner) for invalid attribute names (thepler)
1464 - added tests for this (thepler)
1466 * Moose::Util::MetaRole
1467 - If you explicitly set a constructor or destructor class for a
1468 metaclass object, and then applied roles to the metaclass,
1469 that explicitly set class would be lost and replaced with the
1472 * Moose::Meta::Class
1473 * Moose::Meta::Attribute
1474 * Moose::Meta::Method
1477 * Moose::Error::Default
1478 * Moose::Error::Croak
1479 * Moose::Error::Confess
1480 - All instances of confess() changed to use overridable
1481 C<throw_error> method. This method ultimately calls a class
1482 constructor, and you can change the class being called. In
1483 addition, errors now pass more information than just a string.
1484 The default C<error_class> behaves like C<Carp::confess>, so
1485 the behavior is not visibly different for end users.
1487 0.57 Wed September 3, 2008
1489 - A new bit of doc intended to introduce folks familiar with
1490 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1492 * Moose::Unsweetened
1493 - Shows examples of two classes, each done first with and then
1494 without Moose. This makes a nice parallel to
1495 Moose::Intro. (Dave Rolsky)
1497 * Moose::Util::TypeConstraints
1498 - Fixed a bug in find_or_parse_type_constraint so that it
1499 accepts a Moose::Meta::TypeConstraint object as the parent
1500 type, not just a name (jnapiorkowski)
1501 - added tests (jnapiorkowski)
1504 - If Sub::Name was not present, unimporting failed to actually
1505 remove some sugar subs, causing test failures (Dave Rolsky)
1507 0.56 Mon September 1, 2008
1508 For those not following the series of dev releases, there are
1509 several major changes in this release of Moose.
1510 ! Moose::init_meta should now be called as a method. See the
1513 - Major performance improvements by nothingmuch.
1515 - New modules for extension writers, Moose::Exporter and
1516 Moose::Util::MetaRole by Dave Rolsky.
1518 - Lots of doc improvements and additions, especially in the
1521 - Various bug fixes.
1523 * Removed all references to the experimental-but-no-longer-needed
1524 Moose::Meta::Role::Application::ToMetaclassInstance.
1526 * Require Class::MOP 0.65.
1528 0.55_04 Sat August 30, 2008
1529 * Moose::Util::MetaRole
1530 * Moose::Cookbook::Extending::Recipe2
1531 - This simplifies the application of roles to any meta class, as
1532 well as the base object class. Reimplemented metaclass traits
1533 using this module. (Dave Rolsky)
1535 * Moose::Cookbook::Extending::Recipe1
1536 - This a new recipe, an overview of various ways to write Moose
1537 extensions (Dave Rolsky)
1539 * Moose::Cookbook::Extending::Recipe3
1540 * Moose::Cookbook::Extending::Recipe4
1541 - These used to be Extending::Recipe1 and Extending::Recipe2,
1544 0.55_03 Fri August 29, 2008
1545 * No changes from 0.55_02 except increasing the Class::MOP
1546 dependency to 0.64_07.
1548 0.55_02 Fri August 29, 2008
1549 * Makefile.PL and Moose.pm
1550 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1552 * Moose::Util::TypeConstraints
1553 - Fix warnings from find_type_constraint if the type is not
1556 * Moose::Meta::TypeConstraint
1557 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1558 return false if the type you specify cannot be found in the
1559 type registry, rather than throwing an unhelpful and
1560 coincidental exception. (t0m).
1561 - added docs & test for this (t0m)
1563 * Moose::Meta::TypeConstraint::Registry
1564 - add_type_constraint now throws an exception if a parameter is
1566 - added docs & test for this (t0m)
1568 * Moose::Cookbook::FAQ
1569 - Added a faq entry on the difference between "role" and "trait"
1573 - Fixed a bug that caused role composition to not see a required
1574 method when that method was provided by another role being
1575 composed at the same time. (Dave Rolsky)
1576 - test and bug finding (tokuhirom)
1578 0.55_01 Wed August 20, 2008
1580 !! Calling Moose::init_meta as a function is now !!
1581 !! deprecated. Please see the Moose.pm docs for details. !!
1583 * Moose::Meta::Method::Constructor
1584 - Fix inlined constructor so that values produced by default
1585 or builder methods are coerced as required. (t0m)
1586 - added test for this (t0m)
1588 * Moose::Meta::Attribute
1589 - A lazy attribute with a default or builder did not attempt to
1590 coerce the default value. The immutable code _did_
1592 - added test for this (t0m)
1595 - This is a new helper module for writing "Moose-alike"
1596 modules. This should make the lives of MooseX module authors
1597 much easier. (Dave Rolsky)
1600 * Moose::Cookbook::Meta::Recipe5
1601 - Implemented metaclass traits (and wrote a recipe for it):
1603 use Moose -traits => 'Foo'
1605 This should make writing small Moose extensions a little
1606 easier (Dave Rolsky)
1608 * Moose::Cookbook::Basics::Recipe1
1609 - Removed any examples of direct hashref access, and applied an
1610 editorial axe to reduce verbosity. (Dave Rolsky)
1612 * Moose::Cookbook::Basics::Recipe1
1613 - Also applied an editorial axe here. (Dave Rolsky)
1616 * Moose::Cookbook::Extending::Recipe1
1617 * Moose::Cookbook::Extending::Recipe2
1618 - Rewrote extending and embedding moose documentation and
1619 recipes to use Moose::Exporter (Dave Rolsky)
1623 - These two modules now warn when you load them from the main
1624 package "main" package, because we will not export sugar to
1625 main. Previously it just did nothing. (Dave Rolsky)
1628 - Now provide an init_meta method just like Moose.pm, and you
1629 can call this to provide an alternate role metaclass. (Dave
1630 Rolsky and nothingmuch)
1631 - get_method_map now respects the package cache flag (nothingmuch)
1634 - Two new methods - add_method and wrap_method_body
1638 - Optimizations including allowing constructors to accept hash
1639 refs, making many more classes immutable, and making
1640 constructors immutable. (nothingmuch)
1642 0.55 Sun August 3, 2008
1643 * Moose::Meta::Attribute
1644 - breaking down the way 'handles' methods are
1645 created so that the process can be more easily
1646 overridden by subclasses (stevan)
1648 * Moose::Meta::TypeConstraint
1649 - fixing what is passed into a ->message with
1650 the type constraints (RT #37569)
1651 - added tests for this (Charles Alderman)
1653 * Moose::Util::TypeConstraints
1654 - fix coerce to accept anon types like subtype can (mst)
1657 - reorganized the recipes into sections - Basics, Roles, Meta,
1658 Extending - and wrote abstracts for each section (Dave Rolsky)
1660 * Moose::Cookbook::Basics::Recipe10
1661 - A new recipe that demonstrates operator overloading
1662 in combination with Moose. (bluefeet)
1664 * Moose::Cookbook::Meta::Recipe1
1665 - an introduction to what meta is and why you'd want to make
1666 your own metaclass extensions (Dave Rolsky)
1668 * Moose::Cookbook::Meta::Recipe4
1669 - a very simple metaclass example (Dave Rolsky)
1671 * Moose::Cookbook::Extending::Recipe1
1672 - how to write a Moose-alike module to use your own object base
1675 * Moose::Cookbook::Extending::Recipe2
1676 - how to write modules with an API just like C<Moose.pm> (Dave
1680 - Tons of fixes, both syntactical and grammatical (Dave
1681 Rolsky, Paul Fenwick)
1683 0.54 Thurs. July 3, 2008
1684 ... this is not my day today ...
1686 * Moose::Meta::Attribute
1687 - fixed legal_options_for_inheritance such that
1688 clone_and_inherit options still works for
1689 Class::MOP::Attribute objects and therefore
1690 does not break MooseX::AttributeHelpers
1693 0.53 Thurs. July 3, 2008
1694 * Whoops, I guess I should run 'make manifest' before
1695 actually releasing the module. No actual changes
1696 in this release, except the fact that it includes
1697 the changes that I didn't include in the last
1700 0.52 Thurs. July 3, 2008
1702 - added "FEATURE REQUESTS" section to the Moose docs
1703 to properly direct people (stevan) (RT #34333)
1704 - making 'extends' croak if it is passed a Role since
1705 this is not ever something you want to do
1706 (fixed by stevan, found by obra)
1707 - added tests for this (stevan)
1710 - adding support for DOES (as in UNIVERSAL::DOES)
1712 - added test for this
1714 * Moose::Meta::Attribute
1715 - added legal_options_for_inheritance (wreis)
1716 - added tests for this (wreis)
1718 * Moose::Cookbook::Snacks::*
1719 - removed some of the unfinished snacks that should
1720 not have been released yet. Added some more examples
1721 to the 'Keywords' snack. (stevan)
1723 * Moose::Cookbook::Style
1724 - added general Moose "style guide" of sorts to the
1725 cookbook (nothingmuch) (RT #34335)
1728 - added more BUILDARGS tests (stevan)
1730 0.51 Thurs. Jun 26, 2008
1732 - add unimport so "no Moose::Role" actually does
1735 * Moose::Meta::Role::Application::ToRole
1736 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1737 order to provide its own implementation, that method still got
1738 added to the list of required methods for consumers of
1739 RoleB. Now an aliased method is only added to the list of
1740 required methods if the role doing the aliasing does not
1741 provide its own implementation. See Recipe 11 for an example
1742 of all this. (Dave Rolsky)
1743 - added tests for this
1745 * Moose::Meta::Method::Constructor
1746 - when a single argument that wasn't a hashref was provided to
1747 an immutabilized constructor, the error message was very
1748 unhelpful, as opposed to the non-immutable error. Reported by
1750 - added test for this (Dave Rolsky)
1752 * Moose::Meta::Attribute
1753 - added support for meta_attr->does("ShortAlias") (sartak)
1754 - added tests for this (sartak)
1755 - moved the bulk of the `handles` handling to the new
1756 install_delegation method (Stevan)
1759 - Added BUILDARGS, a new step in new()
1761 * Moose::Meta::Role::Application::RoleSummation
1762 - fix typos no one ever sees (sartak)
1764 * Moose::Util::TypeConstraints
1765 * Moose::Meta::TypeConstraint
1766 * Moose::Meta::TypeCoercion
1767 - Attempt to work around the ??{ } vs. threads issue
1769 - Some null_constraint optimizations
1771 0.50 Thurs. Jun 11, 2008
1772 - Fixed a version number issue by bumping all modules
1775 0.49 Thurs. Jun 11, 2008
1776 !! This version now approx. 20-25% !!
1777 !! faster with new Class::MOP 0.59 !!
1779 * Moose::Meta::Attribute
1780 - fixed how the is => (ro|rw) works with
1781 custom defined reader, writer and accessor
1783 - added docs for this (TODO).
1784 - added tests for this (Thanks to Penfold)
1785 - added the custom attribute alias for regular
1786 Moose attributes which is "Moose"
1787 - fix builder and default both being used
1792 Moose::Meta::Attribute
1794 Moose::Meta::Role::Composite
1795 Moose::Util::TypeConstraints
1796 - switched usage of reftype to ref because
1800 - changing add_package_symbol to use the new
1804 - fixed how DEMOLISHALL is called so that it
1805 can be overrided in subclasses (thanks to Sartak)
1806 - added test for this (thanks to Sartak)
1808 * Moose::Util::TypeConstraints
1809 - move the ClassName type check code to
1810 Class::MOP::is_class_loaded (thanks to Sartak)
1812 * Moose::Cookbook::Recipe11
1813 - add tests for this (thanks to tokuhirom)
1815 0.48 Thurs. May 29, 2008
1816 (early morning release engineering)--
1818 - fixing the version in Moose::Meta::Method::Destructor
1819 which was causing the indexer to choke
1821 0.47 Thurs. May 29, 2008
1822 (late night release engineering)--
1824 - fixing the version is META.yml, no functional
1825 changes in this release
1827 0.46 Wed. May 28, 2008
1828 !! This version now approx. 20-25% !!
1829 !! faster with new Class::MOP 0.57 !!
1831 * Moose::Meta::Class
1832 - some optimizations of the &initialize method
1833 since it is called so often by &meta
1835 * Moose::Meta::Class
1837 - now use the get_all_package_symbols from the
1838 updated Class::MOP, test suite is now 10 seconds
1841 * Moose::Meta::Method::Destructor
1842 - is_needed can now also be called as a class
1843 method for immutablization to check if the
1844 destructor object even needs to be created
1847 * Moose::Meta::Method::Destructor
1848 Moose::Meta::Method::Constructor
1849 - added more descriptive error message to help
1850 keep people from wasting time tracking an error
1851 that is easily fixed by upgrading.
1853 0.45 Saturday, May 24, 2008
1855 - Because of work in Class::MOP 0.57, all
1856 XS based functionality is now optional
1857 and a Pure Perl version is supplied
1858 - the CLASS_MOP_NO_XS environment variable
1859 can now be used to force non-XS versions
1861 - several of the packages have been tweaked
1862 to take care of this, mostly we added
1863 support for the package_name and name
1864 variables in all the Method metaclasses
1865 - before/around/after method modifiers now
1866 support regexp matching of names
1867 (thanks to Takatoshi Kitano)
1868 - tests added for this
1869 - NOTE: this only works for classes, it
1870 is currently not supported in roles,
1871 but, ... patches welcome
1872 - All usage of Carp::confess have been replaced
1873 by Carp::croak in the "keyword" functions since
1874 the stack trace is usually not helpful
1877 - All usage of Carp::confess have been replaced
1878 by Carp::croak in the "keyword" functions since
1879 the stack trace is usually not helpful
1880 - The 'has' keyword for roles now accepts the
1881 same array ref form that Moose.pm does
1882 (has [qw/foo bar/] => (is => 'rw', ...))
1883 - added test for this
1885 * Moose::Meta::Attribute
1886 - trigger on a ro-attribute is no longer an
1887 error, as it's useful to trigger off of the
1890 * Moose::Meta::Class
1891 - added same 'add_package_symbol' fix as in
1895 - does_role now handles non-Moose classes
1897 - added tests for this
1898 - added the 'add_method_modifier' function
1899 (thanks to Takatoshi Kitano)
1901 * Moose::Util::TypeConstraints
1902 - subtypes of parameterizable types now are
1903 themselves parameterizable types
1905 * Moose::Meta::Method::Constructor
1906 - fixed bug where trigger was not being
1907 called by the inlined immutable
1909 - added test for this (thanks to Caelum)
1911 * Moose::Meta::Role::Application::ToInstance
1912 - now uses the metaclass of the instance
1913 (if possible) to create the anon-class
1914 (thanks Jonathan Rockway)
1916 * Moose::Cookbook::Recipe22
1917 - added the meta-attribute trait recipe
1921 - fixed hash-ordering test bug that was
1922 causing occasional cpantester failures
1923 - renamed the t/000_recipe/*.t tests to be
1924 more descriptive (thanks to Sartak)
1926 0.44 Sat. May 10, 2008
1928 - made make_immutable warning cluck to
1929 show where the error is (thanks mst)
1932 - BUILDALL and DEMOLISHALL now call
1933 ->body when looping through the
1934 methods, to avoid the overloaded
1936 - fixed issue where DEMOLISHALL was
1937 eating the $@ values, and so not
1938 working correctly, it still kind of
1939 eats them, but so does vanilla perl
1940 - added tests for this
1942 * Moose::Cookbook::Recipe7
1943 - added new recipe for immutable
1944 functionality (thanks Dave Rolsky)
1946 * Moose::Cookbook::Recipe9
1947 - added new recipe for builder and
1948 lazy_build (thanks Dave Rolsky)
1950 * Moose::Cookbook::Recipe11
1951 - added new recipe for method aliasing
1952 and exclusion with Roles (thanks Dave Rolsky)
1955 - fixed Win32 test failure (thanks spicyjack)
1957 ~ removed Build.PL and Module::Build compat
1958 since Module::Install has done that.
1960 0.43 Wed. April, 30, 2008
1962 drink more coffee before
1963 doing release engineering
1965 - whoops, forgot to do the smolder tests,
1966 and we broke some of the custom meta-attr
1967 modules. This fixes that.
1969 0.42 Mon. April 28, 2008
1970 - some bad tests slipped by, nothing else
1971 changed in this release (cpantesters++)
1973 - upped the Class::MOP dependency to 0.55
1974 since we have tests which need the C3
1977 0.41 Mon. April 28, 2008
1978 ~~ numerous documentation updates ~~
1980 - Changed all usage of die to Carp::croak for better
1981 error reporting (initial patch by Tod Hagan)
1983 ** IMPORTANT NOTE **
1984 - the make_immutable keyword is now deprecated, don't
1985 use it in any new code and please fix your old code
1986 as well. There will be 2 releases, and then it will
1992 - refactored the way inner and super work to avoid
1993 any method/@ISA cache penalty (nothingmuch)
1995 * Moose::Meta::Class
1996 - fixing &new_object to make sure trigger gets the
1997 coerced value (spotted by Charles Alderman on the
1999 - added test for this
2001 * Moose::Meta::Method::Constructor
2002 - immutable classes which had non-lazy attributes were calling
2003 the default generating sub twice in the constructor. (bug
2004 found by Jesse Luehrs, fixed by Dave Rolsky)
2005 - added tests for this (Dave Rolsky)
2006 - fix typo in initialize_body method (nothingmuch)
2008 * Moose::Meta::Method::Destructor
2009 - fix typo in initialize_body method (nothingmuch)
2011 * Moose::Meta::Method::Overriden
2012 Moose::Meta::Method::Augmented
2013 - moved the logic for these into their own
2014 classes (nothingmuch)
2016 * Moose::Meta::Attribute
2017 - inherited attributes may now be extended without
2018 restriction on the type ('isa', 'does') (Sartak)
2019 - added tests for this (Sartak)
2020 - when an attribute property is malformed (such as lazy without
2021 a default), give the name of the attribute in the error
2023 - added the &applied_traits and &has_applied_traits methods
2024 to allow introspection of traits
2025 - added tests for this
2026 - moved 'trait' and 'metaclass' argument handling to here from
2028 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2029 '+foo' syntax) (nothingmuch)
2030 - added tests for this (t0m)
2033 - localize $@ inside DEMOLISHALL to avoid it
2034 eating $@ (found by Ernesto)
2035 - added test for this (thanks to Ernesto)
2037 * Moose::Util::TypeConstraints
2038 - &find_type_constraint now DWIMs when given an
2039 type constraint object or name (nothingmuch)
2040 - &find_or_create_type_constraint superseded with a number of more
2042 - find_or_create_{isa,does}_type_constraint
2043 - find_or_parse_type_constraint
2045 * Moose::Meta::TypeConstraint
2046 Moose::Meta::TypeConstraint::Class
2047 Moose::Meta::TypeConstraint::Role
2048 Moose::Meta::TypeConstraint::Enum
2049 Moose::Meta::TypeConstraint::Union
2050 Moose::Meta::TypeConstraint::Parameterized
2051 - added the &equals method for comparing two type
2052 constraints (nothingmuch)
2053 - added tests for this (nothingmuch)
2055 * Moose::Meta::TypeConstraint
2056 - add the &parents method, which is just an alias to &parent.
2057 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2059 * Moose::Meta::TypeConstraint::Class
2060 - added the class attribute for introspection purposes
2062 - added tests for this
2064 * Moose::Meta::TypeConstraint::Enum
2065 Moose::Meta::TypeConstraint::Role
2066 - broke these out into their own classes (nothingmuch)
2068 * Moose::Cookbook::Recipe*
2069 - fixed references to test file locations in the POD
2070 and updated up some text for new Moose features
2074 - Added &resolve_metaclass_alias, a helper function for finding an actual
2075 class for a short name (e.g. in the traits list)
2077 0.40 Fri. March 14, 2008
2078 - I hate Pod::Coverage
2080 0.39 Fri. March 14, 2008
2082 - documenting the use of '+name' with attributes
2083 that come from recently composed roles. It makes
2084 sense, people are using it, and so why not just
2085 officially support it.
2086 - fixing the 'extends' keyword so that it will not
2087 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2090 - added the perl -Moose=+Class::Name feature to allow
2091 monkeypatching of classes in one liners
2094 - fixing the 'apply_all_roles' keyword so that it will not
2095 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2097 * Moose::Meta::Class
2098 - added ->create method which now supports roles (thanks to jrockway)
2099 - added tests for this
2100 - added ->create_anon_class which now supports roles and caching of
2101 the results (thanks to jrockway)
2102 - added tests for this
2103 - made ->does_role a little more forgiving when it is
2104 checking a Class::MOP era metaclasses.
2106 * Moose::Meta::Role::Application::ToInstance
2107 - it is now possible to pass extra params to be used when
2108 a role is applied to an the instance (rebless_params)
2109 - added tests for this
2111 * Moose::Util::TypeConstraints
2112 - class_type now accepts an optional second argument for a
2113 custom message. POD anotated accordingly (groditi)
2114 - added tests for this
2115 - it is now possible to make anon-enums by passing 'enum' an
2116 ARRAY ref instead of the $name => @values. Everything else
2118 - added tests for this
2121 - making test for using '+name' on attributes consumed
2122 from a role, it works and makes sense too.
2124 * Moose::Meta::Attribute
2125 - fix handles so that it doesn't return nothing
2126 when the method cannot be found, not sure why
2127 it ever did this originally, this means we now
2128 have slightly better support for AUTOLOADed
2130 - added more delegation tests
2131 - adding ->does method to this so as to better
2132 support traits and their introspection.
2133 - added tests for this
2136 - localizing the Data::Dumper configurations so
2137 that it does not pollute others (RT #33509)
2138 - made ->does a little more forgiving when it is
2139 passed Class::MOP era metaclasses.
2141 0.38 Fri. Feb. 15, 2008
2142 * Moose::Meta::Attribute
2143 - fixed initializer to correctly do
2144 type checking and coercion in the
2146 - added tests for this
2149 - fixed some finicky tests (thanks to konobi)
2151 0.37 Thurs. Feb. 14, 2008
2153 - fixed some details in Moose::init_meta
2154 and its superclass handling (thanks thepler)
2155 - added tests for this (thanks thepler)
2156 - 'has' now dies if you don't pass in name
2158 - added the 'make_immutable' keyword as a shortcut
2161 * Moose::Meta::Class
2162 Moose::Meta::Method::Constructor
2163 Moose::Meta::Attribute
2164 - making (init_arg => undef) work here too
2165 (thanks to nothingmuch)
2167 * Moose::Meta::Attribute
2168 Moose::Meta::Method::Constructor
2169 Moose::Meta::Method::Accessor
2170 - make lazy attributes respect attr initializers (rjbs)
2171 - added tests for this
2173 * Moose::Util::TypeConstraints
2174 Moose::Util::TypeConstraints::OptimizedConstraints
2175 Moose::Meta::TypeConstraints
2176 Moose::Meta::Attribute
2177 Moose::Meta::Method::Constructor
2178 Moose::Meta::Method::Accessor
2179 - making type errors use the
2180 assigned message (thanks to Sartak)
2181 - added tests for this
2183 * Moose::Meta::Method::Destructor
2184 - making sure DESTROY gets inlined properly
2185 with successive DEMOLISH calls (thanks to manito)
2187 * Moose::Meta::Attribute
2188 Moose::Meta::Method::Accessor
2189 - fixed handling of undef with type constraints
2191 - added tests for this
2194 - added &get_all_init_args and &get_all_attribute_values
2195 (thanks to Sartak and nothingmuch)
2197 0.36 Sat. Jan. 26, 2008
2199 Moose::Meta::Attribute
2200 - role type tests now support when roles are
2201 applied to non-Moose classes (found by ash)
2202 - added tests for this (thanks to ash)
2203 - couple extra tests to boost code coverage
2205 * Moose::Meta::Method::Constructor
2206 - improved fix for handling Class::MOP attributes
2207 - added test for this
2209 * Moose::Meta::Class
2210 - handled the add_attribute($attribute_meta_object)
2212 - added test for this
2214 0.35 Tues. Jan. 22, 2008
2215 * Moose::Meta::Method::Constructor
2216 - fix to make sure even Class::MOP attributes
2217 are handled correctly (Thanks to Dave Rolsky)
2218 - added test for this (also Dave Rolsky)
2220 * Moose::Meta::Class
2221 - improved error message on _apply_all_roles,
2222 you should now use Moose::Util::apply_all_roles
2223 and you shouldnt have been using a _ prefixed
2224 method in the first place ;)
2226 0.34 Mon. Jan. 21, 2008
2227 ~~~ more misc. doc. fixes ~~~
2228 ~~ updated copyright dates ~~
2230 Moose is now a postmodern object system :)
2231 - (see the POD for details)
2233 * <<Role System Refactoring>>
2234 - this release contains a major reworking and
2235 cleanup of the role system
2236 - 100% backwards compat.
2237 - Role application now restructured into seperate
2238 classes based on type of applicants
2239 - Role summation (combining of more than one role)
2240 is much cleaner and anon-classes are no longer
2241 used in this process
2242 - new Composite role metaclass
2243 - runtime application of roles to instances
2244 is now more efficient and re-uses generated
2245 classes when applicable
2247 * <<New Role composition features>>
2248 - methods can now be excluded from a given role
2250 - methods can now be aliased to another name (and
2251 still retain the original as well)
2253 * Moose::Util::TypeConstraints::OptimizedConstraints
2254 - added this module (see above)
2256 * Moose::Meta::Class
2257 - fixed the &_process_attribute method to be called
2258 by &add_attribute, so that the API is now correct
2260 * Moose::Meta::Method::Accessor
2261 - fixed bug when passing a list of values to
2262 an accessor would get (incorrectly) ignored.
2263 Thanks to Sartak for finding this ;)
2264 - added tests for this (Sartak again)
2266 * Moose::Meta::Method::Accessor
2267 Moose::Meta::Method::Constructor
2268 Moose::Meta::Attribute
2269 Moose::Meta::TypeConstraint
2270 Moose::Meta::TypeCoercion
2271 - lots of cleanup of such things as:
2273 - type constraint handling
2274 - error handling/messages
2275 (thanks to nothingmuch)
2277 * Moose::Meta::TypeConstraint::Parameterizable
2278 - added this module to support the refactor
2279 in Moose::Meta::TypeConstraint::Parameterized
2281 * Moose::Meta::TypeConstraint::Parameterized
2282 - refactored how these types are handled so they
2283 are more generic and not confined to ArrayRef
2287 - shortened some file names for better VMS support (RT #32381)
2289 0.33 Fri. Dec. 14, 2007
2290 !! Moose now loads 2 x faster !!
2291 !! with new Class::MOP 0.49 !!
2293 ++ new oose.pm module to make command line
2294 Moose-ness easier (see POD docs for more)
2296 * Moose::Meta::Class
2298 - several tweaks to take advantage of the
2299 new method map caching in Class::MOP
2301 * Moose::Meta::TypeConstraint::Parameterized
2302 - allow subtypes of ArrayRef and HashRef to
2303 be used as a container (sartak)
2304 - added tests for this
2305 - basic support for coercion to ArrayRef and
2306 HashRef for containers (sartak)
2307 - added tests for this
2309 * Moose::Meta::TypeCoercion
2310 - coercions will now create subtypes as needed
2311 so you can now add coercions to parameterized
2312 types without having to explictly define them
2313 - added tests for this
2315 * Moose::Meta::Method::Accessor
2316 - allow subclasses to decide whether we need
2317 to copy the value into a new variable (sartak)
2319 0.32 Tues. Dec. 4, 2007
2320 * Moose::Util::TypeConstraints
2321 - fixing how subtype aliases of unions work
2322 they should inherit the parent's coercion
2323 - added tests for this
2324 - you can now define multiple coercions on
2325 a single type at different times instead of
2326 having to do it all in one place
2327 - added tests for this
2329 * Moose::Meta::TypeConstraint
2330 - there is now a default constraint of sub { 1 }
2331 instead of Moose::Util::TypeConstraints setting
2334 * Moose::Meta::TypeCoercion
2335 * Moose::Meta::TypeCoercion::Union
2336 - added the &has_coercion_for_type and
2337 &add_type_coercions methods to support the
2338 new features above (although you cannot add
2339 more type coercions for Union types)
2341 0.31 Mon. Nov. 26, 2007
2342 * Moose::Meta::Attribute
2343 - made the +attr syntax handle extending types with
2344 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2345 now works if the original foo is an ArrayRef.
2346 - added tests for this.
2347 - delegation now works even if the attribute does not
2348 have a reader method using the get_read_method_ref
2349 method from Class::MOP::Attribute.
2350 - added tests for this
2351 - added docs for this
2353 * Moose::Util::TypeConstraints
2354 - passing no "additional attribute info" to
2355 &find_or_create_type_constraint will no longer
2356 attempt to create an __ANON__ type for you,
2357 instead it will just return undef.
2358 - added docs for this
2360 0.30 Fri. Nov. 23, 2007
2361 * Moose::Meta::Method::Constructor
2362 -builder related bug in inlined constructor. (groditi)
2364 * Moose::Meta::Method::Accessor
2365 - genereate unnecessary calls to predicates and refactor
2366 code generation for runtime speed (groditi)
2368 * Moose::Util::TypeConstraints
2369 - fix ClassName constraint to introspect symbol table (mst)
2370 - added more tests for this (mst)
2371 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2372 with work correctly.
2373 - added tests for this
2376 - adding the link to Recipie 11 (written by Sartak)
2377 - adding test for SYNOPSIS code
2380 - New tests for builder bug. Upon instantiation, if an
2381 attribute had a builder, no value and was not lazy the
2382 builder default was not getting run, oops. (groditi)
2384 0.29 Tues. Nov. 13, 2007
2385 * Moose::Meta::Attribute
2386 - Fix error message on missing builder method (groditi)
2388 * Moose::Meta::Method::Accessor
2389 - Fix error message on missing builder method (groditi)
2392 - Add test to check for the correct error message when
2393 builder method is missing (groditi)
2395 0.28 Tues. Nov. 13, 2007
2396 - 0.27 packaged incorrectly (groditi)
2398 0.27 Tues. Nov. 13, 2007
2399 * Moose::Meta::Attribute
2400 - Added support for the new builder option (groditi)
2401 - Added support for lazy_build option (groditi)
2402 - Changed slot initialization for predicate changes (groditi)
2404 * Moose::Meta::Method::Accessor
2405 - Added support for lazy_build option (groditi)
2406 - Fix inline methods to work with corrected predicate
2409 * Moose::Meta::Method::Constructor
2410 - Added support for lazy_build option (groditi)
2413 - tests for builder and lazy_build (groditi)
2415 * fixing some misc. bits in the docs that
2416 got mentioned on CPAN Forum & perlmonks
2419 - fixed how required methods are handled
2420 when they encounter overriden or modified
2421 methods from a class (thanks to confound).
2422 - added tests for this
2424 * Moose::Util::TypeConstraint
2425 - fixed the type notation parser so that
2426 the | always creates a union and so is
2427 no longer a valid type char (thanks to
2428 konobi, mugwump and #moose for working
2430 - added more tests for this
2432 0.26 Thurs. Sept. 27, 2007
2435 * Parameterized Types
2436 We now support parameterized collection types, such as:
2437 ArrayRef[Int] # array or integers
2438 HashRef[Object] # a hash with object values
2439 They can also be nested:
2440 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2441 And work with the type unions as well:
2442 ArrayRef[Int | Str] # array of integers of strings
2444 * Better Framework Extendability
2445 Moose.pm is now "extendable" such that it is now much
2446 easier to extend the framework and add your own keywords
2447 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2448 section of the Moose.pm docs.
2451 In an effort to begin documenting some of the various
2452 details of Moose as well as some common idioms, we have
2453 created Moose::Cookbook::Snacks as a place to find
2454 small (easily digestable) nuggets of Moose code.
2457 ~ Several doc updates/cleanup thanks to castaway ~
2459 - converted build system to use Module::Install instead of
2460 Module::Build (thanks to jrockway)
2463 - added all the meta classes to the immutable list and
2464 set it to inline the accessors
2465 - fix import to allow Sub::Exporter like { into => }
2466 and { into_level => } (perigrin)
2467 - exposed and documented init_meta() to allow better
2468 embedding and extending of Moose (perigrin)
2471 - complete re-organization of the test suite
2472 - added some new tests as well
2473 - finally re-enabled the Moose::POOP test since
2474 the new version of DBM::Deep now works again
2477 * Moose::Meta::Class
2478 - fixed very odd and very nasty recursion bug with
2480 - added tests for this (eilara)
2482 * Moose::Meta::Attribute
2483 Moose::Meta::Method::Constructor
2484 Moose::Meta::Method::Accessor
2485 - fixed issue with overload::Overloaded getting called
2486 on non-blessed items. (RT #29269)
2487 - added tests for this
2489 * Moose::Meta::Method::Accessor
2490 - fixed issue with generated accessor code making
2491 assumptions about hash based classes (thanks to dexter)
2493 * Moose::Coookbook::Snacks
2494 - these are bits of documentation, not quite as big as
2495 Recipes but which have no clear place in the module docs.
2496 So they are Snacks! (horray for castaway++)
2498 * Moose::Cookbook::Recipe4
2499 - updated it to use the new ArrayRef[MyType] construct
2500 - updated the accompanying test as well
2502 +++ Major Refactor of the Type Constraint system +++
2503 +++ with new features added as well +++
2505 * Moose::Util::TypeConstraint
2506 - no longer uses package variable to keep track of
2507 the type constraints, now uses the an instance of
2508 Moose::Meta::TypeConstraint::Registry to do it
2509 - added more sophisticated type notation parsing
2511 - added tests for this
2513 * Moose::Meta::TypeConstraint
2514 - some minor adjustments to make subclassing easier
2515 - added the package_defined_in attribute so that we
2516 can track where the type constraints are created
2518 * Moose::Meta::TypeConstraint::Union
2519 - this is now been refactored to be a subclass of
2520 Moose::Meta::TypeConstraint
2522 * Moose::Meta::TypeCoercion::Union
2523 - this has been added to service the newly refactored
2524 Moose::Meta::TypeConstraint::Union and is itself
2525 a subclass of Moose::Meta::TypeCoercion
2527 * Moose::Meta::TypeConstraint::Parameterized
2528 - added this module (taken from MooseX::AttributeHelpers)
2529 to help construct nested collection types
2530 - added tests for this
2532 * Moose::Meta::TypeConstraint::Registry
2533 - added this class to keep track of type constraints
2535 0.25 Mon. Aug. 13, 2007
2537 - Documentation update to reference Moose::Util::TypeConstraints
2538 under 'isa' in 'has' for how to define a new type
2539 (thanks to shlomif).
2541 * Moose::Meta::Attribute
2542 - required attributes now will no longer accept undef
2543 from the constructor, even if there is a default and lazy
2544 - added tests for this
2545 - default subroutines must return a value which passes the
2547 - added tests for this
2549 * Moose::Meta::Attribute
2550 * Moose::Meta::Method::Constructor
2551 * Moose::Meta::Method::Accessor
2552 - type-constraint tests now handle overloaded objects correctly
2553 in the error message
2554 - added tests for this (thanks to EvanCarroll)
2556 * Moose::Meta::TypeConstraint::Union
2557 - added (has_)hand_optimized_constraint to this class so that
2558 it behaves as the regular Moose::Meta::TypeConstraint does.
2561 - large refactoring of this code
2562 - added several more tests
2563 - tests for subtle conflict resolition issues
2564 added, but not currently running
2567 * Moose::Cookbook::Recipe7
2568 - added new recipe for augment/inner functionality
2570 - added test for this
2573 - a formal definition of roles (still in progress)
2576 - utilities for easier working with Moose classes
2577 - added tests for these
2580 - This contains Moose specific test functions
2581 - added tests for these
2583 0.24 Tues. July 3, 2007
2584 ~ Some doc updates/cleanup ~
2586 * Moose::Meta::Attribute
2587 - added support for roles to be given as parameters
2588 to the 'handles' option.
2589 - added tests and docs for this
2590 - the has '+foo' attribute form now accepts changes to
2591 the lazy option, and the addition of a handles option
2592 (but not changing the handles option)
2593 - added tests and docs for this
2596 - required methods are now fetched using find_method_by_name
2597 so that required methods can come from superclasses
2598 - adjusted tests for this
2600 0.23 Mon. June 18, 2007
2601 * Moose::Meta::Method::Constructor
2602 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2603 * Moose::Meta::Class
2604 - Modify make_immutable to work with the new Class::MOP immutable
2605 mechanism + POD + very basic test (groditi)
2606 * Moose::Meta::Attribute
2607 - Fix handles to use goto() so that caller() comes out properly on
2608 the other side (perigrin)
2610 0.22 Thurs. May 31, 2007
2611 * Moose::Util::TypeConstraints
2612 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2613 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2614 prototypes for functions
2615 - added the ClassName type constraint, this checks for strings
2616 which will respond true to ->isa(UNIVERSAL).
2617 - added tests and docs for this
2618 - subtyping just in name now works correctly by making the
2619 default for where be { 1 }
2620 - added test for this
2622 * Moose::Meta::Method::Accessor
2623 - coerce and lazy now work together correctly, thanks to
2624 merlyn for finding this bug
2625 - tests added for this
2626 - fix reader presedence bug in Moose::Meta::Attribute + tests
2629 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2630 a HASH-ref and missed. This produces better error messages then
2631 having it die cause undef is not a HASH.
2632 - added tests for this
2634 0.21 Thursday, May 2nd, 2007
2636 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2637 - modified unimport to remove super and inner along with the rest
2638 - altered unimport tests to handle this
2641 - altered super export to populate SUPER_SLOT
2643 * Moose::Meta::Class
2644 - altered augment and override modifier application to use *_SLOT
2645 - modified tests for these to unimport one test class each to test
2648 - fixed issue where custom attribute metaclasses
2649 where not handled correctly in roles
2650 - added tests for this
2652 * Moose::Meta::Class
2653 - fixed issue where extending metaclasses with
2654 roles would blow up. Thanks to Aankhen`` for
2655 finding this insidious error, and it's solution.
2657 ~~ lots of spelling and grammer fixes in the docs,
2658 many many thanks to rlb3 and Aankhen for these :)
2660 0.20 Friday, April 6th, 2007
2661 >> I messed up the SKIP logic in one test
2662 so this release is just to fix that.
2665 - 'has' now also accepts an ARRAY ref
2666 to create multiple attrs (see docs)
2667 (thanks to konobi for this)
2668 - added tests and docs
2670 0.19 Thurs. April 5th, 2007
2671 ~~ More documentation updates ~~
2673 * Moose::Util::TypeConstraints
2674 - 'type' now supports messages as well
2675 thanks to phaylon for finding this
2676 - added tests for this
2677 - added &list_all_type_constraints and
2678 &list_all_builtin_type_constraints
2679 functions to facilitate introspection.
2681 * Moose::Meta::Attribute
2682 - fixed regexp 'handles' declarations
2683 to build the list of delegated methods
2684 correctly (and not override important
2685 things like &new) thanks to ashleyb
2687 - added tests and docs for this
2688 - added the 'documentation' attributes
2689 so that you can actually document your
2690 attributes and inspect them through the
2692 - added tests and docs for this
2694 * Moose::Meta::Class
2695 - when loading custom attribute metaclasses
2696 it will first look in for the class in the
2697 Moose::Meta::Attribute::Custom::$name, and
2698 then default to just loading $name.
2699 - added tests and docs for this
2701 * Moose::Meta::TypeConstraint
2702 - type constraints now stringify to their names.
2703 - added test for this
2706 - added tests to assure we work with Module::Refresh
2707 - added stricter test skip logic in the Moose POOP
2708 test, ask Rob Kinyon why.
2709 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2711 0.18 Sat. March 10, 2007
2712 ~~ Many, many documentation updates ~~
2715 - We now use Class::MOP::load_class to
2717 - added tests to show types and subtypes
2718 working with Declare::Constraints::Simple
2719 and Test::Deep as constraint engines.
2722 !! You must have Class::MOP 0.37_001 !!
2723 !! for this developer release to work !!
2725 This release was primarily adding the immutable
2726 feature to Moose. An immutable class is one which
2727 you promise not to alter. When you set the class
2728 as immutable it will perform various bits of
2729 memoization and inline certain part of the code
2730 (constructors, destructors and accessors). This
2731 minimizes (and in some cases totally eliminates)
2732 one of Moose's biggest performance hits. This
2733 feature is not on by default, and is 100% optional.
2734 It has several configurable bits as well, so you
2735 can pick and choose to your specific needs.
2737 The changes involved in this were fairly wide and
2738 highly specific, but 100% backwards compatible, so
2739 I am not going to enumerate them here. If you are
2740 truely interested in what was changed, please do
2743 0.17 Tues. Nov. 14, 2006
2744 * Moose::Meta::Method::Accessor
2745 - bugfix for read-only accessors which
2746 are have a type constraint and lazy.
2747 Thanks to chansen for finding it.
2749 0.16 Tues. Nov. 14, 2006
2751 There are some speed improvements in this release,
2752 but they are only the begining, so stay tuned.
2755 - BUILDALL and DEMOLISHALL no longer get
2756 called unless they actually need to be.
2757 This gave us a signifigant speed boost
2758 for the cases when there is no BUILD or
2759 DEMOLISH method present.
2761 * Moose::Util::TypeConstraints
2762 * Moose::Meta::TypeConstraint
2763 - added an 'optimize_as' option to the
2764 type constraint, which allows for a
2765 hand optimized version of the type
2766 constraint to be used when possible.
2767 - Any internally created type constraints
2768 now provide an optimized version as well.
2770 0.15 Sun. Nov. 5, 2006
2772 This version of Moose *must* have Class::MOP 0.36 in order
2773 to work correctly. A number of small internal tweaks have
2774 been made in order to be compatible with that release.
2776 * Moose::Util::TypeConstraints
2777 - added &unimport so that you can clean out
2778 your class namespace of these exported
2781 * Moose::Meta::Class
2782 - fixed minor issue which occasionally
2783 comes up during global destruction
2785 - moved Moose::Meta::Method::Overriden into
2789 - moved Moose::Meta::Role::Method into
2792 * Moose::Meta::Attribute
2793 - changed how we do type checks so that
2794 we reduce the overall cost, but still
2797 - moved accessor generation methods to
2798 Moose::Meta::Method::Accessor to
2799 conform to the API changes from
2802 * Moose::Meta::TypeConstraint
2803 - changed how constraints are compiled
2804 so that we do less recursion and more
2805 iteration. This makes the type check
2807 - moved Moose::Meta::TypeConstraint::Union
2810 * Moose::Meta::Method::Accessor
2811 - created this from methods formerly found in
2812 Moose::Meta::Attribute
2814 * Moose::Meta::Role::Method
2815 - moved this from Moose::Meta::Role
2817 * Moose::Meta::Method::Overriden
2818 - moved this from Moose::Meta::Class
2820 * Moose::Meta::TypeConstraint::Union
2821 - moved this from Moose::Meta::TypeConstraint
2823 0.14 Mon. Oct. 9, 2006
2825 * Moose::Meta::Attribute
2826 - fixed lazy attributes which were not getting
2827 checked with the type constraint (thanks ashley)
2828 - added tests for this
2829 - removed the over-enthusiastic DWIMery of the
2830 automatic ArrayRef and HashRef defaults, it
2831 broke predicates in an ugly way.
2832 - removed tests for this
2834 0.13 Sat. Sept. 30, 2006
2836 This version of Moose *must* have Class::MOP 0.35 in order
2837 to work correctly. A number of small internal tweaks have
2838 been made in order to be compatible with that release.
2841 - Removed the use of UNIVERSAL::require to be a better
2842 symbol table citizen and remove a dependency
2843 (thanks Adam Kennedy)
2845 **~~ removed experimental & undocumented feature ~~**
2846 - commented out the 'method' and 'self' keywords, see the
2847 comments for more info.
2850 - added a FAQ and WTF files to document frequently
2851 asked questions and common problems
2853 * Moose::Util::TypeConstraints
2854 - added GlobRef and FileHandle type constraint
2855 - added tests for this
2857 * Moose::Meta::Attribute
2858 - if your attribute 'isa' ArrayRef of HashRef, and you have
2859 not explicitly set a default, then make the default DWIM.
2860 This will also work for subtypes of ArrayRef and HashRef
2862 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2863 - new test added for this (thanks to ashley)
2866 - added basic support for runtime role composition
2867 but this is still *highly experimental*, so feedback
2868 is much appreciated :)
2869 - added tests for this
2871 * Moose::Meta::TypeConstraint
2872 - the type constraint now handles the coercion process
2873 through delegation, this is to support the coercion
2876 * Moose::Meta::TypeConstraint::Union
2877 - it is now possible for coercions to be performed
2879 - added tests for this (thanks to konobi)
2881 * Moose::Meta::TypeCoercion
2882 - properly capturing error when type constraint
2886 - Scalar::Util 1.18 is bad on Win32, so temporarily
2887 only require version 1.17 for Win32 and cygwin.
2888 (thanks Adam Kennedy)
2890 0.12 Sat. Sept. 1, 2006
2892 - Recipe5 (subtypes & coercion) has been written
2895 - fixed "bad meta" error message to be more descriptive
2896 - fixed &unimport to not remove the &inner and &super
2897 keywords because we need to localize them.
2898 - fixed number of spelling/grammer issues, thanks Theory :)
2900 **~~ experimental & undocumented feature ~~**
2901 - added the method and self keywords, they are basically
2902 just sugar, and they may not stay around.
2905 - added &dump method to easily Data::Dumper
2908 * Moose::Meta::TypeConstraint
2909 - added the &is_a_type_of method to check both the current
2910 and the subtype of a method (similar to &isa with classes)
2913 - this is now a subclass of Class::MOP::Module, and no longer
2914 creates the _role_meta ugliness of before.
2915 - fixed tests to reflect this change
2917 0.11 Wed. July 12, 2006
2919 - added an &unimport method to remove all the keywords
2920 that Moose will import, simply add 'no Moose' to the
2921 bottom of your class file.
2924 - fixed some test failures caused by a forgotten test
2927 0.10 Thurs. July 6, 2006
2929 - improved error message when loading modules so
2930 it is less confusing when you load a role.
2931 - added &calculate_all_roles method to
2932 Moose::Meta::Class and Moose::Meta::Role
2935 This module has been tested against Class::MOP 0.30
2936 but it does not yet utilize the optimizations
2937 it makes available. Stay tuned for that ;)
2939 0.09_03 Fri. June 23, 2006
2940 ++ DEVELOPER RELEASE ++
2942 - 'use strict' and 'use warnings' are no longer
2943 needed in Moose classes, Moose itself will
2944 turn them on for you.
2945 - added tests for this
2946 - moved code from exported subs to private methods
2947 in Moose::Meta::Class
2950 - as with Moose, strict and warnings are
2951 automatically turned on for you.
2952 - added tests for this
2955 - now handles an edge case for override errors
2956 - added tests for this
2957 - added some more edge case tests
2959 0.09_02 Tues. May 16, 2006
2960 ++ DEVELOPER RELEASE ++
2962 - added prototypes to the exported subs
2966 - added prototypes to the exported subs
2969 * Moose::Util::TypeConstraints
2970 - cleaned up prototypes for the subs
2973 0.09_01 Fri. May 12, 2006
2974 ++ DEVELOPER RELEASE ++
2975 - This release works in combination with
2976 Class::MOP 0.29_01, it is a developer
2977 release because it uses the a new
2978 instance sub-protocol and a fairly
2979 complete Role implementation. It has
2980 not yet been optimized, so it slower
2981 the the previous CPAN version. This
2982 release also lacks good updated docs,
2983 the official release will have updated docs.
2986 - refactored the keyword exports
2987 - 'with' now checks Role validaity and
2988 accepts more than one Role at a time
2989 - 'extends' makes metaclass adjustments as
2990 needed to ensure metaclass compatibility
2993 - refactored the keyword exports
2994 - 'with' now checks Role validaity and
2995 accepts more than one Role at a time
2997 * Moose::Util::TypeConstraints
2998 - added the 'enum' keyword for simple
2999 string enumerations which can be used as
3001 - see example of usage in t/202_example.t
3004 - more careful checking of params to new()
3007 - much work done on the role composition
3008 - many new tests for conflict detection
3009 and composition edge cases
3010 - not enough documentation, I suggest
3011 looking at the tests
3013 * Moose::Meta::Instance
3014 - added new Instance metaclass to support
3015 the new Class::MOP instance protocol
3017 * Moose::Meta::Class
3018 - some small changes to support the new
3020 - some small additions to support Roles
3022 * Moose::Meta::Attribute
3023 - some improvements to the accessor generation code
3025 - some small changes to support the new
3027 - (still somewhat) experimental delegation support
3028 with the 'handles' option
3029 - added several tests for this
3030 - no docs for this yet
3032 0.05 Thurs. April 27, 2006
3034 - keywords are now exported with Sub::Exporter
3035 thanks to chansen for this commit
3036 - has keyword now takes a 'metaclass' option
3037 to support custom attribute meta-classes
3038 on a per-attribute basis
3039 - added tests for this
3040 - the 'has' keyword not accepts inherited slot
3041 specifications (has '+foo'). This is still an
3042 experimental feature and probably not finished
3043 see t/038_attribute_inherited_slot_specs.t for
3044 more details, or ask about it on #moose
3045 - added tests for this
3048 - keywords are now exported with Sub::Exporter
3050 * Moose::Utils::TypeConstraints
3051 - reorganized the type constraint hierarchy, thanks
3052 to nothingmuch and chansen for his help and advice
3054 - added some tests for this
3055 - keywords are now exported with Sub::Exporter
3056 thanks to chansen for this commit
3058 * Moose::Meta::Class
3059 - due to changes in Class::MOP, we had to change
3060 construct_instance (for the better)
3062 * Moose::Meta::Attribute
3063 - due to changes in Class::MOP, we had to add the
3064 initialize_instance_slot method (it's a good thing)
3066 * Moose::Meta::TypeConstraint
3067 - added type constraint unions
3068 - added tests for this
3069 - added the is_subtype_of predicate method
3070 - added tests for this
3072 0.04 Sun. April 16th, 2006
3074 - Roles can now consume other roles
3075 - added tests for this
3076 - Roles can specify required methods now with
3077 the requires() keyword
3078 - added tests for this
3081 - ripped out much of it's guts ,.. much cleaner now
3082 - added required methods and correct handling of
3083 them in apply() for both classes and roles
3084 - added tests for this
3085 - no longer adds a does() method to consuming classes
3086 it relys on the one in Moose::Object
3087 - added roles attribute and some methods to support
3088 roles consuming roles
3090 * Moose::Meta::Attribute
3091 - added support for triggers on attributes
3092 - added tests for this
3093 - added support for does option on an attribute
3094 - added tests for this
3096 * Moose::Meta::Class
3097 - added support for attribute triggers in the
3099 - added tests for this
3102 - Moose no longer creates a subtype for your class
3103 if a subtype of the same name already exists, this
3104 should DWIM in 99.9999% of all cases
3106 * Moose::Util::TypeConstraints
3107 - fixed bug where incorrect subtype conflicts were
3109 - added test for this
3112 - this class can now be extended with 'use base' if
3113 you need it, it properly loads the metaclass class now
3114 - added test for this
3116 0.03_02 Wed. April 12, 2006
3118 - you must now explictly use Moose::Util::TypeConstraints
3119 it no longer gets exported for you automatically
3122 - new() now accepts hash-refs as well as key/value lists
3123 - added does() method to check for Roles
3124 - added tests for this
3126 * Moose::Meta::Class
3127 - added roles attribute along with the add_role() and
3129 - added tests for this
3132 - now adds a does() method to consuming classes
3133 which tests the class's hierarchy for roles
3134 - added tests for this
3136 0.03_01 Mon. April 10, 2006
3138 - added new Role recipe (no content yet, only code)
3141 - added 'with' keyword for Role support
3142 - added test and docs for this
3143 - fixed subtype quoting bug
3144 - added test for this
3148 - added test and docs
3150 * Moose::Util::TypeConstraints
3151 - added the message keyword to add custom
3152 error messages to type constraints
3155 - the meta role to support Moose::Role
3156 - added tests and docs
3158 * Moose::Meta::Class
3159 - moved a number of things from Moose.pm
3160 to here, they should have been here
3163 * Moose::Meta::Attribute
3164 - moved the attribute option macros here
3165 instead of putting them in Moose.pm
3167 * Moose::Meta::TypeConstraint
3168 - added the message attributes and the
3170 - added tests and docs for this
3172 0.03 Thurs. March 30, 2006
3174 - added the Moose::Cookbook with 5 recipes,
3175 describing all the stuff Moose can do.
3178 - fixed an issue with &extends super class loading
3179 it now captures errors and deals with inline
3180 packages correctly (bug found by mst, solution
3182 - added super/override & inner/augment features
3183 - added tests and docs for these
3186 - BUILDALL now takes a reference of the %params
3187 that are passed to &new, and passes that to
3190 * Moose::Util::TypeConstraints
3191 - Type constraints now survive runtime reloading
3192 - added test for this
3194 * Moose::Meta::Class
3195 - fixed the way attribute defaults are handled
3196 during instance construction (bug found by chansen)
3198 * Moose::Meta::Attribute
3199 - read-only attributes now actually enforce their
3200 read-only-ness (this corrected in Class::MOP as
3203 0.02 Tues. March 21, 2006
3205 - many more tests, fixing some bugs and
3207 - &extends now loads the base module with
3209 - added UNIVERSAL::require to the
3212 - each new Moose class will also create
3213 and register a subtype of Object which
3214 correspond to the new Moose class.
3215 - the 'isa' option in &has now only
3216 accepts strings, and will DWIM in
3219 * Moose::Util::TypeConstraints
3220 - added type coercion features
3221 - added tests for this
3222 - added support for this in attributes
3223 and instance construction
3225 - type construction no longer creates a
3226 function, it registers the type instead.
3227 - added several functions to get the
3231 - BUILDALL and DEMOLISHALL were broken
3232 because of a mis-named hash key, Whoops :)
3234 * Moose::Meta::Attribute
3235 - adding support for coercion in the
3236 autogenerated accessors
3238 * Moose::Meta::Class
3239 - adding support for coercion in the
3240 instance construction
3242 * Moose::Meta::TypeConstraint
3243 * Moose::Meta::TypeCoercion
3244 - type constraints and coercions are now
3245 full fledges meta-objects
3247 0.01 Wed. March 15, 2006
3248 - Moooooooooooooooooose!!!