1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Almost every native delegation method which changes the attribute value
9 now has an explicitly documented return value. In general, this return
10 value matches what Perl would return for the same operation. (Dave Rolsky)
12 * Lots of work on native delegation documentation, including documenting
13 what arguments each native delegation method allows or requires. (Dave
18 * A number of native trait methods which expected strings as arguments did
19 not allow the empty string. This included Array->join, String->match,
20 String->replace, and String->substr. Reported by Whitney Jackson. RT
23 * 'no Moose' no longer inadvertently removes imports it didn't create
24 itself. RT #60013. (Florian Ragwitz, doy)
26 * Roles now support passing an array reference of method names to method
27 modifier sugar functions. (doy)
29 * Native traits no longer use optimized inlining routines if the instance
30 requests it (in particular, if inline_get_slot_value doesn't return
31 something that can be assigned to). This should fix issues with
34 * We now ignore all Class::MOP and Moose classes when determining what
35 package called a deprecated feature. This should make the deprecation
36 warnings saner, and make it possible to turn them off more easily.
38 * The deprecated "default is" warning no longer happens is the attribute has
39 any accessor method defined (accessor, reader, writer). Also, this warning
40 only happens when a method generated because of the default is is actually
41 called, rather than when the attribute is defined.
43 * The "default default" code for some native delegations no longer issues a
44 deprecation warning when the attribute is required or has a builder.
46 * Setting a "default default" caused a fatal error if you used the builder
47 or lazy_build options for the attribute. Reported by Kent Fredric. RT
54 * Major changes to Native Traits, most of which make them act more like
55 "normal" attributes. This should be mostly compatible with existing code,
56 but see Moose::Manual::Delta for details.
58 * A few native traits (String, Counter, Bool) provide default values of "is"
59 and "default" when you created an attribute. Allowing them to provide
60 these values is now deprecated. Supply the value yourself when creating
63 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
64 generate non-global aliases for your traits (and allow your users to
65 rename the aliases, etc). (doy)
67 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
68 determine which name to install the 'meta' name under. Passing 'undef'
69 to this option will suppress generation of the meta method entirely. (doy)
71 * Moose now warns if it overwrites an existing method named "meta" in your
72 class when you "use Moose". (doy)
76 * Native Trait delegations are now all generated as inline code. This should
77 be much faster than the previous method of delegation. In the best case,
78 native trait methods will be very highly optimized.
80 * Reinitializing a metaclass no longer removes the existing method and
81 attribute objects (it instead fixes them so they are correct for the
82 reinitialized metaclass). This should make the order of loading many
83 MooseX modules less of an issue. (doy)
85 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
89 * If an attribute was weak, setting it to a non-ref value after the object
90 was constructed caused an error. Now we only call weaken when the new
93 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
94 based on a patch from Andreas Koenig.
96 1.14 Tue, Sep 21, 2010
100 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
101 a weird error when defining the same union type twice, but only when using
102 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
104 1.13 Mon, Sep 13, 2010
108 * The deprecation warnings for alias and excludes are back, use -alias and
109 -excludes instead. (Dave Rolsky)
113 * When composing one role into another and there is an attribute conflict,
114 the error message now includes the attribute name. Reported by Sam
115 Graham. RT #59985. (Dave Rolsky)
117 * When a class is made immutable, the does_role method is overridden with a
118 much faster version that simply looks role names up in a hash. Code which
119 uses lots of role-based type constraints should be faster. (Dave Rolsky)
121 1.12 Sat, Aug 28, 2010
125 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
127 1.11 Fri, Aug 27, 2010
131 * An attribute in a subclass can now override the value of "is". (doy)
133 * The deprecation warnings for alias and excludes have been turned back off
134 for this release, to give other module authors a chance to tweak their
139 * mro::get_linear_isa was being called as a function rather than a method,
140 which caused problems with Perl 5.8.x. (t0m)
142 * Union types always created a type constraint, even if their constituent
143 constraints did not have any coercions. This bogus coercion always
144 returned undef, which meant that a union which included Undef as a member
145 always coerced bad values to undef. Reported by Eric Brine. RT
146 #58411. (Dave Rolsky)
148 * Union types with coercions would always fall back to coercing the value to
149 undef (unintentionally). Now if all the coercions for a union type fail,
150 the value returned by the coercion is the original value that we attempted
151 to coerce. (Dave Rolsky).
153 1.10 Sun, Aug 22, 2010
157 * The long-deprecated alias and excludes options for role applications now
158 issue a deprecation warning. Use -alias and -excludes instead. (Dave
163 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
165 * default => undef now works properly. (doy)
167 * Enum type constraints now throw errors if their values are nonsensical.
172 * Optimizations that should help speed up compilation time (Dave Rolsky).
174 1.09 Tue, Jul 25, 2010
178 * You can no longer pass "coerce => 1" for an attribute unless its type
179 constraint has a coercion defined. Doing so will issue a deprecation
180 warning. (Dave Rolsky)
182 * Previously, '+foo' only allowed a specific set of options to be
183 overridden, which made it impossible to change attribute options related
184 to extensions. Now we blacklist some options, and anything else is
185 allowed. (doy, Tuomas Jormola)
187 * Most features which have been declared deprecated now issue a warning using
188 Moose::Deprecated. Warnings are issued once per calling package, not
189 repeatedly. See Moose::Deprecated for information on how you can shut
190 these warnings up entirely. Note that deprecated features will eventually
191 be removed, so shutting up the warnings may not be the best idea. (Dave
194 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
199 * We no longer unimport strict and warnings when Moose, Moose::Role, or
200 Moose::Exporter are unimported. Doing this was broken if the user
201 explicitly loaded strict and warnings themself, and the results could be
202 generally surprising. We decided that it was best to err on the side of
203 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
206 * New with_traits helper function in Moose::Util. (doy)
210 * Accessors will no longer be inlined if the instance metaclass isn't
213 * Use Perl 5.10's new recursive regex features, if possible, for the type
214 constraint parser. (doy, nothingmuch)
218 * Attributes now warn if their accessors overwrite a locally defined
219 function (not just method). (doy)
223 * Bump our required perl version to 5.8.3, since earlier versions fail tests
224 and aren't easily installable/testable.
226 1.08 Tue, Jun 15, 2010
230 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
231 to be overridden more easily (doy).
233 1.07 Sat, Jun 05, 2010
237 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
238 classes and non-class metaclass traits (doy, dougdude).
240 1.06 Tue, Jun 01, 2010
244 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
245 more uniformly compare type constraints between 'classic' Moose type
246 constraints and MooseX::Types based type constraints.
248 1.05 Thu, May 20, 2010
252 * Packages and modules no longer have methods - this functionality was
253 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
254 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
256 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
257 Moose::Object::new. (doy)
261 * strict and warnings are now unimported when Moose, Moose::Role, or
262 Moose::Exporter are unimported. (doy, Adam Kennedy)
264 * Added a 'consumers' method to Moose::Meta::Role for finding all
265 classes/roles which consume the given role. (doy)
269 * Fix has '+attr' in Roles to explode immediately, rather than when the role
270 is applied to a class (t0m).
272 * Fix type constraint validation messages to not include the string 'failed'
273 twice in the same sentence (Florian Ragwitz).
275 * New type constraints will default to being unequal, rather than equal
278 * The tests no longer check for perl's behavior of clobbering $@, which has
279 been fixed in perl-5.13.1 (Florian Ragwitz).
281 * Metaclass compatibility fixing has been completely rewritten, and should
282 be much more robust. (doy)
284 1.04 Thu, May 20, 2010
286 * This release was broken and has been deleted from CPAN shortly after its
289 1.03 Thu, May 06, 2010
293 * Allow specifying required versions when setting superclasses or applying
294 roles (Florian Ragwitz).
296 1.02 Sat, May 01, 2010
300 * Stop the natatime method provided by the native Array trait from returning
301 an exhausted iterator when being called with a callback. (Florian Ragwitz)
303 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
306 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
307 the class the TC represents as an argument incorrectly returned true. This
308 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
310 * Use File::Temp for temp files created during tests. Previously, files were
311 written to the t/ dir, which could cause problems of the user running the
312 tests did not have write access to that directory.. (Chris Weyl, Ævar
315 * Pass role arguments along when applying roles to instances. (doy, lsm)
317 1.01 Fri, Mar 26, 2010
321 * The handles option now also accepts a role type constraint in addition to a
322 plain role name. (Florian Ragwitz)
326 * Record the Sartak/doy debt properly in Changes (perigrin)
328 1.00 Tue, Mar 25, 2010
332 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
333 methods by default. (Florian Ragwitz)
337 * Improve various parts of the documentation and fix many typos.
338 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
342 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
344 0.99 Mon, Mar 8, 2010
348 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
349 which member of the union a given value validates for. (Cory Watson)
353 * DEMOLISH methods in mutable subclasses of immutable classes are now called
354 properly (Chia-liang Kao, Jesse Luehrs)
358 * Added Moose::Manual::Support that defines the support, compatiblity, and
359 release policies for Moose. (Chris Prather)
361 0.98 Wed, Feb 10, 2010
365 * An internals change in 0.97 broke role application to an instance in some
366 cases. The bug occurred when two different roles were applied to different
367 instances of the same class. (Rafael Kitover)
370 0.97 Tue, Feb 9, 2010
374 * Calling ->reinitialize on a cached anonymous class effectively uncached
375 the metaclass object, causing the metaclass to go out of scope
376 unexpectedly. This could easily happen at a distance by applying a
377 metarole to an anonymous class. (Dave Rolsky).
379 0.96 Sat, Feb 6, 2010
383 * ScalarRef is now a parameterized type. You can now specify a type
384 constraint for whatever the reference points to. (Closes RT#50857)
385 (Michael G. Schwern, Florian Ragwitz)
389 * ScalarRef now accepts references to other references. (Closes RT#50934)
392 0.95 Thu, Feb 4, 2010
396 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
397 a delegation option. This allows the code reference to be called as a
398 method on the object. (Florian Ragwitz)
402 * Moose::Object::does no longer checks the entire inheritance tree, since
403 Moose::Meta::Class::does_role already does this. (doy)
405 * Moose::Util::add_method_modifier (and subsequently the sugar functions
406 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
407 with the same behavior as lists. Types other than arrayref and regexp
408 result in an error. (Dylan Hardison)
410 0.94 Mon, Jan 18, 2010
414 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
418 * Improved support for anonymous roles by changing various APIs to take
419 Moose::Meta::Role objects as well as role names. This included
421 - Moose::Meta::Class->does_role
422 - Moose::Meta::Role->does_role
423 - Moose::Util::does_role
424 - Moose::Util::apply_all_roles
425 - Moose::Util::ensure_all_roles
426 - Moose::Util::search_class_by_role
428 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
432 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
433 work as long as the accessor method names are explicitly set to valid Perl
434 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
437 0.93_03 Tue, Jan 5, 2010
441 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
442 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
445 0.93_02 Tue, Jan 5, 2010
449 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
450 testers. (Dave Rolsky)
453 0.93_01 Mon, Jan 4, 2010
457 See Moose::Manual::Delta for more details on backwards compatiblity issues.
459 * Role attributes are now objects of the Moose::Meta::Role::Attribute
460 class. (Dave Rolsky).
462 * There were major changes to how metaroles are applied. We now distinguish
463 between metaroles for classes vs those for roles. See the
464 Moose::Util::MetaRole docs for details. (Dave Rolsky)
466 * The old MetaRole API has been deprecated, but will continue to
467 work. However, if you are applying an attribute metaclass role, this may
468 break because of the fact that roles now have an attribute metaclass
471 * Moose::Util::MetaRole::apply_metaclass_roles is now called
472 apply_metaroles. The old name is deprecated. Dave Rolsky>
474 * The unimport subs created by Moose::Exporter now clean up re-exported
475 functions like blessed and confess, unless the caller imported them from
476 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
478 [ENHANCEMENTS AND BUG FIXES]
480 * Changed the Str constraint to accept magic lvalue strings like one gets from
481 substr et al, again. (sorear)
483 * Sped up the type constraint parsing regex. (Sam Vilain)
485 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
488 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
489 easier testing of TypeConstraints from the command line. (perigrin)
491 * Added a with_immutable test function to Test::Moose, to run a block of tests
492 with and without certain classes being immutable. (doy)
494 * We now use Module::Install extensions explicitly to avoid confusing errors
495 if they're not installed. We use Module::Install::AuthorRequires to stop
496 test extraction and general failures if you don't have the author side
497 dependencies installed.
499 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
500 #51791. (Amir E. Aharoni)
503 0.93 Thu, Nov 19, 2009
505 - Calling $object->new() is no longer deprecated, and no longer
509 - The get_attribute_map method is now deprecated. (Dave Rolsky)
511 * Moose::Meta::Method::Delegation
512 - Preserve variable aliasing in @_ for delegated methods, so that
513 altering @_ affects the passed value. (doy)
515 * Moose::Util::TypeConstraints
516 - Allow array refs for non-anonymous form of enum and duck_type, not
517 just anonymous. The non-arrayref forms may be removed in the
519 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
520 - Properly document Int being a subtype of Str. (doy)
523 - Moose::Exporter using modules can now export their functions to the
524 main package. This applied to Moose and Moose::Role, among
525 others. (nothingmuch)
527 * Moose::Meta::Attribute
528 - Don't remove attribute accessors we never installed, during
529 remove_accessors. (doy)
531 * Moose::Meta::Attribute::Native::Trait::Array
532 - Don't bypass prototype checking when calling List::Util::first, to
533 avoid a segfault when it is called with a non-code argument. (doy)
535 * Moose::Meta::Attribute::Native::Trait::Code
536 - Fix passing arguments to code execute helpers. (doy)
538 0.92 Tue, Sep 22, 2009
539 * Moose::Util::TypeConstraints
540 - added the match_on_type operator (Stevan)
541 - added tests and docs for this (Stevan)
544 - Metaclass compat fixing should already happen recursively, there's no
545 need to explicitly walk up the inheritance tree. (doy)
547 * Moose::Meta::Attribute
548 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
550 0.91 Thu, Sep 17, 2009
552 - Don't import any functions, in order to avoid polluting our namespace
553 with things that can look like methods (blessed, try, etc)
556 * Moose::Meta::Method::Constructor
557 - The generated code needs to called Scalar::Util::blessed by its
558 fully-qualified name or else Perl can interpret the call to blessed as
559 an indirect method call. This broke Search::GIN, which in turn broke
560 KiokuDB. (nothingmuch)
562 0.90 Tue, Sep 15, 2009
563 * Moose::Meta::Attribute::Native::Trait::Counter
564 * Moose::Meta::Attribute::Native::Trait::String
565 - For these two traits, an attribute which did not explicitly provide
566 methods to handles magically ended up delegating *all* the helper
567 methods. This has been removed. You must be explicit in your handles
568 declaration for all Native Traits. (Dave Rolsky)
571 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
572 sure to rethrow its error message. However, we also localize $@ before
573 this so that if all the DEMOLISH methods success, the value of $@ will
574 be preserved. (nothingmuch and Dave Rolsky)
575 - We now also localize $? during object destruction. (nothingmuch and
577 - The handling of DEMOLISH methods was broken for immutablized classes,
578 which were not receiving the value of
579 Devel::GlobalDestruction::in_global_destruction.
580 - These two fixes address some of RT #48271, reported by Zefram.
581 - This is all now documented in Moose::Manual::Construction.
582 - Calling $object->new() is now deprecated. A warning will be
586 - Added more hooks to customize how roles are applied. The role
587 summation class, used to create composite roles, can now be changed
588 and/or have meta-roles applied to it. (rafl)
589 - The get_method_list method no longer explicitly excludes the "meta"
590 method. This was a hack that has been replaced by better hacks. (Dave
593 * Moose::Meta::Method::Delegation
594 - fixed delegated methods to make sure that any modifiers attached to
595 the accessor being delegated on will be called (Stevan)
596 - added tests for this (Stevan)
599 - Moose no longer warns when a class that is being made immutable has
600 mutable ancestors. While in theory this is a good thing to warn about,
601 we found so many exceptions to this that doing this properly became
604 0.89_02 Thu, Sep 10, 2009
605 * Moose::Meta::Attribute::Native
606 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
608 * Moose::Meta::Attribute::Native::Trait::Array
609 - Added a number of functions from List::Util and List::MoreUtils,
610 including reduce, shuffle, uniq, and natatime. (doy)
613 - This module will now generate an init_meta method for your exporting
614 class if you pass it options for
615 Moose::Util::MetaRole::apply_metaclass_roles or
616 apply_base_class_roles. This eliminates a lot of repetitive
617 boilerplate for typical MooseX modules. (doy).
618 - Documented the with_meta feature, which is a replacement for
619 with_caller. This feature was added by josh a while ago.
620 - The with_caller feature is now deprecated, but will not issue a
621 warning yet. (Dave Rolsky)
622 - If you try to wrap/export a subroutine which doesn't actually exist,
623 Moose::Exporter will warn you about this. (doy)
625 * Moose::Meta::Role::Application::ToRole
626 - When a role aliased a method from another role, it was only getting
627 the new (aliased) name, not the original name. This differed from what
628 happens when a class aliases a role's methods. If you _only_ want the
629 aliased name, make sure to also exclue the original name. (Dave
632 0.89_01 Wed Sep 2, 2009
633 * Moose::Meta::Attribute
634 - Added the currying syntax for delegation from AttributeHelpers to the
635 existing delegation API. (hdp)
637 * Moose::Meta::Attribute::Native
638 - We have merged the functionality of MooseX::AttributeHelpers into the
639 Moose core with some API tweaks. You can continue to use
640 MooseX::AttributeHelpers, but it will not be maintained except
641 (perhaps) for critical bug fixes in the future. See
642 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
645 * Moose::Error::Croak
646 * Moose::Error::Confess
647 - Clarify documentation on how to use different error-throwing
648 modules. (Curtis Jewell)
651 - Correct POD for builder to point to Recipe8, not 9. (gphat)
654 - When a nonexistent sub name is passed to as_is, with_caller, or
655 with_meta, throw a warning and skip the exporting, rather than
656 installing a broken sub. (doy)
659 - Moose now warns if you call C<make_immutable> for a class with mutable
662 0.89 Thu Aug 13, 2009
663 * Moose::Manual::Attributes
664 - Clarify "is", include discussion of "bare". (Sartak)
666 * Moose::Meta::Role::Method::Conflicting
667 * Moose::Meta::Role::Application::ToClass
668 - For the first set of roles involved in a conflict, report all
669 unresolved method conflicts, not just the first method. Fixes #47210
670 reported by Ovid. (Sartak)
672 * Moose::Meta::TypeConstraint
673 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
676 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
678 - Allow specifying role options (alias, excludes, MXRP stuff) in the
679 arrayref passed to "use Moose -traits" (doy)
682 - Add functions meta_class_alias and meta_attribute_alias for creating
683 aliases for class and attribute metaclasses and metatraits. (doy)
685 * Moose::Meta::Attribute
686 * Moose::Meta::Method::Accessor
687 - A trigger now receives the old value as a second argument, if the
688 attribute had one. (Dave Rolsky)
690 * Moose::Meta::Method::Constructor
691 - Fix a bug with $obj->new when $obj has stringify overloading.
692 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
693 - However, we will probably deprecate $obj->new, so please don't start
694 using it for new code!
696 * Moose::Meta::Role::Application
697 * Moose::Meta::Role::Application::RoleSummation
698 - Rename alias and excludes to -alias and -excludes (but keep the old
699 names for now, for backcompat) (doy)
701 0.88 Fri Jul 24, 2009
702 * Moose::Manual::Contributing
703 - Re-write the Moose::Manual::Contributing document to reflect
704 the new layout and methods of work for the Git repository. All
705 work now should be done in topic branches and reviewed by a
706 core committer before being applied to master. All releases
707 are done by a cabal member and merged from master to
708 stable. This plan was devised by Yuval, blame him. (perigrin)
711 - Create metaclass attributes for the different role application
714 * Moose::Util::MetaRole
715 - Allow applying roles to a meta role's role application
718 * Moose::Meta::Attribute
719 - Add weak_ref to allowed options for "has '+foo'" (mst)
721 * Moose::Meta::Method::Accessor
722 - No longer uses inline_slot_access in accessors, to support
723 non-lvalue-based meta instances. (sorear)
726 * Moose::Meta::Method::Delegation
727 - Once again allow class names as well as objects for
728 delegation. This was changed in 0.86.
731 * Moose::Meta::Class::Immutable::Trait
732 - Fixes to work with the latest Class::MOP.
734 * Moose::Meta::Method::Delegation
735 - Delegation now dies with a more useful error message if the
736 attribute's accessor returns something defined but
739 0.85 Fri, Jun 26, 2009
740 * Moose::Meta::Attribute
741 - The warning for 'no associated methods' is now split out into
742 the _check_associated_methods method, so that extensions can
743 safely call 'after install_accessors => ...'. This fixes a
744 warning from MooseX::AttributeHelpers. (hdp)
746 0.84 Fri, Jun 26, 2009
748 - has now sets definition_context for attributes defined in
751 * Moose::Meta::Attribute
752 - When adding an attribute to a metaclass, if the attribute has
753 no associated methods, it will give a deprecation
755 - Methods generated by delegation were not being added to
756 associated_methods. (hdp)
757 - Attribute accessors (reader, writer, accessor, predicate,
758 clearer) now warn if they overwrite an existing method. (doy)
759 - Attribute constructors now warn very noisily about unknown (or
760 misspelled) arguments
762 * Moose::Util::TypeConstraints
763 - Deprecated the totally useless Role type name, which just
764 checked if $object->can('does'). Note that this is _not_ the
765 same as a type created by calling role_type('RoleName').
767 * Moose::Util::TypeConstraints
768 * Moose::Meta::TypeConstraint::DuckType
769 - Reify duck type from a regular subtype into an actual class
771 - Document this because Sartak did all my work for me
774 * Moose::Meta::Attribute
775 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
776 it is just a list of methods (Sartak)
779 - The get_*_method_modifiers methods would die if the role had
780 no modifiers of the given type (Robert Buels).
782 0.83 Tue, Jun 23, 2009
784 - Fix _construct_instance not setting the special __MOP__ object
785 key in instances of anon classes. (doy)
787 0.82 Sun, Jun 21, 2009
788 * Moose::Manual::Types
789 - Mention MooseX::Types early to avoid users falling down the
790 string parsing rathole (mst)
792 * Moose::Manual::MooseX
793 - Add warnings about class-level extensions and mention considering
794 using plain objects instead
796 0.81 Sun, Jun 7, 2009
797 * Bumped our Class::MOP prereq to the latest version (0.85), since
800 0.80 Sat, Jun 6, 2009
802 - Add FAQ about the coercion change from 0.76 because it came up
803 three times today (perigrin)
804 - Win doy $10 dollars because Sartak didn't think anybody
805 would document this fast enough (perigrin)
807 * Moose::Meta::Method::Destructor
808 - Inline a DESTROY method even if there are no DEMOLISH methods
809 to prevent unnecessary introspection in
810 Moose::Object::DEMOLISHALL
813 - A role's required methods are now represented by
814 Moose::Meta::Role::Method::Required objects. Conflicts are now
815 represented by Moose::Meta::Role::Method::Conflicting
816 objects. The benefit for end-users in that unresolved
817 conflicts generate different, more instructive, errors,
818 resolving Ovid's #44895. (Sartak)
821 - Improve the error message of "extends" as suggested by Adam
822 Kennedy and confound (Sartak)
823 - Link to Moose::Manual::Roles from Moose::Role as we now have
824 excellent documentation (Adam Kennedy)
827 - Update test suite for subname change in Class::MOP
829 - Add TODO test for infinite recursion in Moose::Meta::Class
832 0.79 Wed, May 13, 2009
834 - More fixes for Win32 problems. Reported by Robert Krimen.
837 - The DEMOLISHALL method could still blow up in some cases
838 during global destruction. This method has been made more
839 resilient in the face of global destruction's random garbage
843 - If you "also" a module that isn't loaded, the error message
844 now acknowledges that (Sartak)
847 - When your ->meta method does not return a Moose::Meta::Class,
848 the error message gave the wrong output (Sartak)
850 0.78 Tue, May 12, 2009
851 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
852 - Merged these documents into what is now Moose::Manual::FAQ
855 - Moved to Moose::Manual::Unsweetened
857 * Moose::Cookbook::Basics::Recipes 9-12
858 - Renamed to be 8-11, since recipe 8 did not exist
861 - Make Moose::Exporter import strict and warnings into packages
865 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
866 methods during global destruction (doy)
869 * Moose::Meta::Role::Application::ToClass
870 - Track the Role::Application objects created during class-role
874 - Fix metaclass incompatibility errors when extending a vanilla perl
875 class which isa Moose class with a metaclass role applied (t0m)
878 - Add a role-combination hook, _role_for_combination, for the
879 benefit of MooseX::Role::Parameterized (Sartak)
882 - Some tests were failing on Win32 because they explicit checked
883 warning output for newlines. Reported by Nickolay Platonov.
885 0.77 Sat, May 2, 2009
887 - Add explicit use of Devel::GlobalDestruction and Sub::Name
891 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
892 or not we are currently in global destruction (doy)
893 - Add explicit use of Devel::GlobalDestruction and Sub::Name
896 * Moose::Cookbook::FAQ
897 - Reworked much of the existing content to be more useful to
898 modern Moose hackers (Sartak)
901 - Depend on Class::MOP 0.83 instead of 0.82_01.
903 0.76 Mon, April 27, 2009
904 * Moose::Meta::TypeConstraint
905 - Do not run coercions in coerce() if the value already passes the type
908 * Moose::Meta::TypeConstraint::Class
909 - In validation error messages, specifically say that the value is not
910 an instance of the class. This should alleviate some frustrating
911 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
913 * Moose::Meta::Role::Application::ToClass
914 - Revert the class-overrides-role warning in favor of a solution outside
915 of the Moose core (Sartak)
918 - Make Test::Output optional again, since it's only used in a few files
921 0.75_01 Thu, April 23, 2009
922 * Moose::Meta::Role::Application::ToClass
923 - Moose now warns about each class overriding methods from roles it
927 - Warnings tests have standardized on Test::Output which is now an
928 unconditionally dependency (Sartak)
931 - Changes to immutabilization to work with Class::MOP 0.82_01+.
933 0.75 Mon, April 20, 2009
936 - Move validation of not inheriting from roles from Moose::extends to
937 Moose::Meta::Class::superclasses (doy)
940 - add ensure_all_roles() function to encapsulate the common "apply this
941 role unless the object already does it" pattern (hdp)
944 - Users can now select a different metaclass with the "-metaclass"
945 option to import, for classes and roles (Sartak)
948 - Make method_metaclass an attr so that it can accept a metarole
951 0.74 Tue, April 7, 2009
953 * Moose::Meta::Method::Destructor
954 - Include stack traces in the deprecation warnings.
958 - Removed the long-deprecated _apply_all_roles method.
960 * Moose::Meta::TypeConstraint
961 - Removed the long-deprecated union method.
964 0.73_02 Mon, April 6, 2009
965 * More deprecations and renamings
966 - Moose::Meta::Method::Constructor
967 - initialize_body => _initialize_body (this is always called
968 when an object is constructed)
971 - The DEMOLISHALL method could throw an exception during global
972 destruction, meaning that your class's DEMOLISH methods would
973 not be properly called. Reported by t0m.
975 * Moose::Meta::Method::Destructor
976 - Destructor inlining was totally broken by the change to the
977 is_needed method in 0.72_01. Now there is a test for this
978 feature, and it works again.
981 - Bold the word 'not' in the POD for find_meta (t0m)
983 0.73_01 Sun, April 5, 2009
985 - Call user_class->meta in fewer places, with the eventual goal
986 of allowing the user to rename or exclude ->meta
987 altogether. Instead uses Class::MOP::class_of. (Sartak)
989 * Moose::Meta::Method::Accessor
990 - If an attribute had a lazy default, and that value did not
991 pass the attribute's type constraint, it did not get the
992 message from the type constraint, instead using a generic
993 message. Test provided by perigrin.
995 * Moose::Util::TypeConstraints
996 - Add duck_type keyword. It's sugar over making sure an object
997 can() a list of methods. This is easier than jrockway's
998 suggestion to fork all of CPAN. (perigrin)
999 - add tests and documentation (perigrin)
1002 - Document the fact that init_meta() returns the target class's
1003 metaclass object. (hdp)
1005 * Moose::Cookbook::Extending::Recipe1
1006 * Moose::Cookbook::Extending::Recipe2
1007 * Moose::Cookbook::Extending::Recipe3
1008 * Moose::Cookbook::Extending::Recipe4
1009 - Make init_meta() examples explicitly return the metaclass and
1010 point out this fact. (hdp)
1012 * Moose::Cookbook::Basics::Recipe12
1013 - A new recipe, creating a custom meta-method class.
1015 * Moose::Cookbook::Meta::Recipe6
1016 - A new recipe, creating a custom meta-method class.
1018 * Moose::Meta::Class
1019 * Moose::Meta::Method::Constructor
1020 - Attribute triggers no longer receive the meta-attribute object
1021 as an argument in any circumstance. Previously, triggers
1022 called during instance construction were passed the
1023 meta-attribute, but triggers called by normal accessors were
1024 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1026 * Moose::Manual::Attributes
1027 - Remove references to triggers receving the meta-attribute object as an
1030 * Moose::Cookbook::FAQ
1031 - Remove recommendation for deprecated Moose::Policy and
1032 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1035 * Many methods have been renamed with a leading underscore, and a
1036 few have been deprecated entirely. The methods with a leading
1037 underscore are consider "internals only". People writing
1038 subclasses or extensions to Moose should feel free to override
1039 them, but they are not for "public" use.
1041 - Moose::Meta::Class
1042 - check_metaclass_compatibility => _check_metaclass_compatibility
1044 - Moose::Meta::Method::Accessor
1045 - initialize_body => _initialize_body (this is always called
1046 when an object is constructed)
1047 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1049 - Moose::Meta::Method::Constructor
1050 - initialize_body => _initialize_body (this is always called
1051 when an object is constructed)
1052 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1053 - attributes => _attributes (now inherited from parent)
1054 - meta_instance => _meta_instance (now inherited from parent)
1057 - alias_method is deprecated. Use add_method
1059 0.73 Fri, March 29, 2009
1060 * No changes from 0.72_01.
1062 0.72_01 Thu, March 26, 2009
1064 - Almost every module has complete API documentation. A few
1065 methods (and even whole classes) have been intentionally
1066 excluded pending some rethinking of their APIs.
1068 * Moose::Util::TypeConstraints
1069 - Calling subtype with a name as the only argument is now an
1070 exception. If you want an anonymous subtype do:
1072 my $subtype = subtype as 'Foo';
1074 * Moose::Cookbook::Meta::Recipe7
1075 - A new recipe, creating a custom meta-instance class.
1077 * Moose::Cookbook::Basics::Recipe5
1078 - Fix various typos and mistakes. Includes a patch from Radu
1081 * Moose::Cookbook::Basics::Recipe9
1082 - Link to this recipe from Moose.pm's builder blurb
1085 - When wrapping a function with a prototype, Moose::Exporter now
1086 makes sure the wrapped function still has the same
1087 prototype. (Daisuke Maki)
1089 * Moose::Meta::Attribute
1090 - Allow a subclass to set lazy_build for an inherited
1094 - Explicitly depend on Data::OptList. We already had this dependency
1095 via Sub::Exporter, but since we're using it directly we're
1096 better off with it listed. (Sartak)
1098 * Moose::Meta::Method::Constructor
1099 - Make it easier to subclass the inlining behaviour. (Ash
1102 * Moose::Manual::Delta
1103 - Details significant changes in the history of Moose, along
1104 with recommended workarounds.
1106 * Moose::Manual::Contributing
1107 - Contributor's guide to Moose.
1109 * Moose::Meta::Method::Constructor
1110 - The long-deprecated intialize_body method has been removed
1111 (yes, spelled like that).
1113 * Moose::Meta::Method::Destructor
1114 - This is_needed method is now always a class method.
1116 * Moose::Meta::Class
1117 - Changes to the internals of how make_immutable works to match
1118 changes in latest Class::MOP.
1120 0.72 Mon, February 23, 2009
1122 * Moose::Meta::Method::Constructor
1123 - A mutable class accepted Foo->new(undef) without complaint,
1124 while an immutable class would blow up with an unhelpful
1125 error. Now, in both cases we throw a helpful error
1126 instead. Reported by doy.
1128 0.71_01 Sun, February 22, 2009
1130 - Hopefully fixed some POD errors in a few recipes that caused
1131 them to display weird on search.cpan.org.
1133 * Moose::Util::TypeConstraints
1134 - Calling type or subtype without the sugar helpers (as, where,
1135 message) is now deprecated.
1136 - The subtype function tried hard to guess what you meant, but
1137 often got it wrong. For example:
1139 my $subtype = subtype as 'ArrayRef[Object]';
1141 This caused an error in the past, but now works as you'd
1145 - Make sure Moose.pm is loaded before calling
1146 Moose->throw_error. This wasn't normally an issue, but could
1147 bite you in weird cases.
1149 0.71 Thu, February 19, 2009
1150 * Moose::Cookbook::Basics::Recipe11
1151 - A new recipe which demonstrates the use of BUILDARGS and
1152 BUILD. (Dave Rolsky)
1154 * Moose::Cookbook::Roles::Recipe3
1155 - A new recipe, applying a role to an object instance. (Dave
1159 - Allow overriding specific keywords from "also" packages. (doy)
1162 - Replace hardcoded cookbook tests with Test::Inline to ensure
1163 the tests match the actual code in the recipes. (Dave Rolsky)
1166 - Working on the above turned up a number of little bugs in the
1167 recipe code. (Dave Rolsky)
1169 * Moose::Util::TypeConstraints::Optimized
1170 - Just use Class::MOP for the optimized ClassName check. (Dave
1173 0.70 Sat, February 14, 2009
1174 * Moose::Util::TypeConstraints
1175 - Added the RoleName type (stevan)
1176 - added tests for this (stevan)
1178 * Moose::Cookbook::Basics::Recipe3
1179 - Updated the before qw[left right] sub to be a little more
1180 defensive about what it accepts (stevan)
1181 - added more tests to t/000_recipies/basics/003_binary_tree.t
1185 - We now always call DEMOLISHALL, even if a class does not
1186 define DEMOLISH. This makes sure that method modifiers on
1187 DEMOLISHALL work as expected. (doy)
1188 - added tests for this (EvanCarroll)
1190 * Moose::Util::MetaRole
1191 - Accept roles for the wrapped_method_metaclass (rafl)
1192 - added tests for this (rafl)
1194 * Moose::Meta::Attribute
1195 - We no longer pass the meta-attribute object as a final
1196 argument to triggers. This actually changed for inlined code a
1197 while back, but the non-inlined version and the docs were
1201 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1202 they require 0.11. (Dave Rolsky)
1205 - Lots of small changes to the manual, cookbook, and
1206 elsewhere. These were based on feedback from various
1207 users, too many to list here. (Dave Rolsky)
1209 0.69 Thu, February 12, 2009
1211 - Make some keyword errors use throw_error instead of croak
1212 since Moose::Exporter wraps keywords now (Sartak)
1214 * Moose::Cookbook::*
1215 - Revised every recipe for style and clarity. Also moved some
1216 documentation out of cookbook recipes and into Moose::Manual
1217 pages. This work was funded as part of the Moose docs grant
1218 from TPF. (Dave Rolsky)
1220 * Moose::Meta::Method::Delegation
1221 - If the attribute doing the delegation was not populated, the
1222 error message did not specify the attribute name
1225 0.68 Wed, February 4, 2009
1227 - Many spelling, typo, and formatting fixes by daxim.
1229 * Moose::Manual::Attributes
1230 - The NAME section in the POD used "Attribute" so search.cpan
1231 didn't resolve links from other documents properly.
1233 * Moose::Meta::Method::Overriden
1234 - Now properly spelled as Overridden. Thanks to daxim for
1237 0.67 Tue, February 3, 2009
1239 - Lots of little typo fixes and a few clarifications. Several
1240 pages didn't have proper titles, and so weren't actually
1241 visible on search.cpan.org. Thanks to hanekomu for a variety
1242 of fixes and formatting improvements.
1244 0.66 Tue, February 3, 2009
1246 - This is a brand new, extensive manual for Moose. This aims to
1247 provide a complete introduction to all of Moose's
1248 features. This work was funded as part of the Moose docs grant
1249 from TPF. (Dave Rolsky)
1251 * Moose::Meta::Attribute
1252 - Added a delegation_metaclass method to replace a hard-coded
1253 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1255 * Moose::Util::TypeConstraints
1256 - If you created a subtype and passed a parent that Moose didn't
1257 know about, it simply ignored the parent. Now it automatically
1258 creates the parent as a class type. This may not be what you
1259 want, but is less broken than before. (Dave Rolsky)
1261 * Moose::Util::TypeConstraints
1262 - This module tried throw errors by calling Moose->throw_error,
1263 but it did not ensure that Moose was loaded first. This could
1264 cause very unhelpful errors when it tried to throw an error
1265 before Moose was loaded. (Dave Rolsky)
1267 * Moose::Util::TypeConstraints
1268 - You could declare a name with subtype such as "Foo!Bar" that
1269 would be allowed, but if you used it in a parameterized type
1270 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1271 vetting on names created via the sugar functions, so that they
1272 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1274 0.65 Thu, January 22, 2009
1275 * Moose and Moose::Meta::Method::Overridden
1276 - If an overridden method called super(), and then the
1277 superclass's method (not overridden) _also_ called super(),
1278 Moose went into an endless recursion loop. Test provided by
1279 Chris Prather. (Dave Rolsky)
1281 * Moose::Meta::TypeConstraint
1282 - All methods are now documented. (gphat)
1284 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1285 - Fixed some bogus failures that occurred because we tried to
1286 validate filesystem paths in a very ad-hoc and
1287 not-quite-correct way. (Dave Rolsky)
1289 * Moose::Util::TypeConstraints
1290 - Added maybe_type to exports. See docs for details. (rjbs)
1293 - Added Moose::Util::TypeConstraints to the SEE ALSO
1297 - Methods created via an attribute can now fulfill a "requires"
1298 declaration for a role. (nothingmuch)
1300 * Moose::Meta::Method::*
1301 - Stack traces from inlined code will now report its line and
1302 file as being in your class, as opposed to in Moose
1303 guts. (nothingmuch).
1305 0.64 Wed, December 31, 2008
1306 * Moose::Meta::Method::Accessor
1307 - Always inline predicate and clearer methods (Sartak)
1309 * Moose::Meta::Attribute
1310 - Support for parameterized traits (Sartak)
1311 - verify_against_type_constraint method to avoid duplication
1312 and enhance extensibility (Sartak)
1314 * Moose::Meta::Class
1315 - Tests (but no support yet) for parameterized traits (Sartak)
1318 - Require Class::MOP 0.75+, which has the side effect of making
1319 sure we work on Win32. (Dave Rolsky)
1321 0.63 Mon, December 8, 2008
1322 * Moose::Unsweetened
1323 - Some small grammar tweaks and bug fixes in non-Moose example
1326 0.62_02 Fri, December 5, 2008
1327 * Moose::Meta::Role::Application::ToClass
1328 - When a class does not provide all of a role's required
1329 methods, the error thrown now mentions all of the missing
1330 methods, as opposed to just the first one found. Requested by
1331 Curtis Poe (RT #41119). (Dave Rolsky)
1333 * Moose::Meta::Method::Constructor
1334 - Moose will no longer inline a constructor for your class
1335 unless it inherits its constructor from Moose::Object, and
1336 will warn when it doesn't inline. If you want to force
1337 inlining anyway, pass "replace_constructor => 1" to
1338 make_immutable. Addresses RT #40968, reported by Jon
1339 Swartz. (Dave Rolsky)
1340 - The quoting of default values could be broken if the default
1341 contained a single quote ('). Now we use quotemeta to escape
1342 anything potentially dangerous in the defaults. (Dave Rolsky)
1344 0.62_01 Wed, December 3, 2008
1346 - use the method->execute API for BUILDALL
1347 and DEMOLISHALL (Sartak)
1349 * Moose::Util::TypeConstraints
1350 - We now make all the type constraint meta classes immutable
1351 before creating the default types provided by Moose. This
1352 should make loading Moose a little faster. (Dave Rolsky)
1354 0.62 Wed November 26, 2008
1355 * Moose::Meta::Role::Application::ToClass
1356 Moose::Meta::Role::Application::ToRole
1357 - fixed issues where excluding and aliasing the
1358 same methods for a single role did not work
1359 right (worked just fine with multiple
1361 - added test for this (stevan)
1363 * Moose::Meta::Role::Application::RoleSummation
1364 - fixed the error message when trying to compose
1365 a role with a role it excludes (Sartak)
1368 - Catch another case where recursion caused the value
1369 of $CALLER to be stamped on (t0m)
1370 - added test for this (t0m)
1373 - Remove the make_immutable keyword, which has been
1374 deprecated since April. It breaks metaclasses that
1375 use Moose without no Moose (Sartak)
1377 * Moose::Meta::Attribute
1378 - Removing an attribute from a class now also removes delegation
1379 (handles) methods installed for that attribute (t0m)
1380 - added test for this (t0m)
1382 * Moose::Meta::Method::Constructor
1383 - An attribute with a default that looked like a number (but was
1384 really a string) would accidentally be treated as a number
1385 when the constructor was made immutable (perigrin)
1386 - added test for this (perigrin)
1389 - create method for constructing a role
1390 dynamically (Sartak)
1391 - added test for this (Sartak)
1392 - anonymous roles! (Sartak)
1393 - added test for this (Sartak)
1396 - more consistent error messages (Sartak)
1398 * Moose::Cookbook::Roles::Recipe1
1399 - attempt to explain why a role that just requires
1400 methods is useful (Sartak)
1402 0.61 Fri November 7, 2008
1403 * Moose::Meta::Attribute
1404 - When passing a role to handles, it will be loaded if necessary
1407 * Moose::Meta::Class
1408 - Method objects returned by get_method (and other methods)
1409 Could end up being returned without an associated_metaclass
1410 attribute. Removing get_method_map, which is provided by
1411 Class::MOP::Class, fixed this. The Moose version did nothing
1412 different from its parent except introduce a bug. (Dave Rolsky)
1413 - added tests for this (jdv79)
1416 - Added a $VERSION to all .pm files which didn't have one. Fixes
1417 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1419 * Moose::Cookbook::Basics::Recipe4
1420 * Moose::Cookbook::Basics::Recipe6
1421 - These files had spaces on the first line of the SYNOPSIS, as
1422 opposed to a totally empty line. According to RT #40432, this
1423 confuses POD parsers. (Dave Rolsky)
1425 0.60 Fri October 24, 2008
1427 - Passing "-traits" when loading Moose caused the Moose.pm
1428 exports to be broken. Reported by t0m. (Dave Rolsky)
1429 - Tests for this bug. (t0m)
1432 - Change resolve_metaclass alias to use the new
1433 load_first_existing_class function. This makes it a lot
1434 simpler, and also around 5 times faster. (t0m)
1435 - Add caching to resolve_metaclass_alias, which gives an order
1436 of magnitude speedup to things which repeatedly call the
1437 Moose::Meta::Attribute->does method, notably MooseX::Storage
1440 * Moose::Util::TypeConstraint
1441 - Put back the changes for parameterized constraints that
1442 shouldn't have been removed in 0.59. We still cannot parse
1443 them, but MooseX modules can create them in some other
1444 way. See the 0.58 changes for more details. (jnapiorkowski)
1445 - Changed the way subtypes are created so that the job is
1446 delegated to a type constraint parent. This clears up some
1447 hardcoded checking and should allow correct subtypes of
1448 Moose::Meta::Type::Constraint. Don't rely on this new API too
1449 much (create_child_type) because it may go away in the
1450 future. (jnapiorkowski)
1452 * Moose::Meta::TypeConstraint::Union
1453 - Type constraint names are sorted as strings, not numbers.
1456 * Moose::Meta::TypeConstraint::Parameterizable
1457 - New parameterize method. This can be used as a factory method
1458 to make a new type constraint with a given parameterized
1459 type. (jnapiorkowski)
1460 - added tests (jnapiorkowski)
1462 0.59 Tue October 14, 2008
1464 - Add abridged documentation for builder/default/initializer/
1465 predicate, and link to more details sections in
1466 Class::MOP::Attribute. (t0m)
1468 * Moose::Util::TypeConstraints
1469 - removed prototypes from all but the &-based stuff (mst)
1471 * Moose::Util::TypeConstraints
1472 - Creating a anonymous subtype with both a constraint and a
1473 message failed with a very unhelpful error, but should just
1474 work. Reported by t0m. (Dave Rolsky)
1477 - Some tests that used Test::Warn if it was available failed
1478 with older versions of Test::Warn. Reported by Fayland. (Dave
1480 - Test firing behavior of triggers in relation to builder/default/
1482 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1483 kinds of supported type. (t0m)
1485 * Moose::Meta::Class
1486 - In create(), do not pass "roles" option to the superclass
1487 - added related test that creates an anon metaclass with
1488 a required attribute
1490 * Moose::Meta::TypeConstraint::Class
1491 * Moose::Meta::TypeConstraint::Role
1492 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1493 other types (as per change in 0.55_02). (t0m)
1495 * Moose::Meta::TypeConstraint::Registry
1496 - Fix warning when dealing with unknown type names (t0m)
1498 * Moose::Util::TypeConstraints
1499 - Reverted changes from 0.58 related to handle parameterized
1500 types. This caused random failures on BSD and Win32 systems,
1501 apparently related to the regex engine. This means that Moose
1502 can no longer parse structured type constraints like
1503 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1504 supported in a slightly different way via MooseX::Types some
1505 time in the future. (Dave Rolsky)
1507 0.58 Sat September 20, 2008
1508 !! This release has an incompatible change regarding !!
1509 !! how roles add methods to a class !!
1511 * Roles and role application
1512 ! Roles now add methods by calling add_method, not
1513 alias_method. They make sure to always provide a method
1514 object, which will be cloned internally. This means that it is
1515 now possible to track the source of a method provided by a
1516 role, and even follow its history through intermediate roles.
1518 This means that methods added by a role now show up when
1519 looking at a class's method list/map. (Dave Rolsky)
1522 - From this release on, we'll try to maintain a list of
1523 conflicting modules, and warn you if you have one
1524 installed. For example, this release conflicts with ...
1525 - MooseX::Singleton <= 0.11
1526 - MooseX::Params::Validate <= 0.05
1529 In general, we try to not break backwards compatibility for
1530 most Moose users, but MooseX modules and other code which
1531 extends Moose's metaclasses is often affected by very small
1532 changes in the Moose internals.
1534 * Moose::Meta::Method::Delegation
1535 * Moose::Meta::Attribute
1536 - Delegation methods now have their own method class. (Dave
1539 * Moose::Meta::TypeConstraint::Parameterizable
1540 - Added a new method 'parameterize' which is basically a factory
1541 for the containing constraint. This makes it easier to create
1542 new types of parameterized constraints. (jnapiorkowski)
1544 * Moose::Meta::TypeConstraint::Union
1545 - Changed the way Union types canonicalize their names to follow
1546 the normalized TC naming rules, which means we strip all
1547 whitespace. (jnapiorkowski)
1549 * Moose::Util::TypeConstraints
1550 - Parameter and Union args are now sorted, this makes Int|Str
1551 the same constraint as Str|Int. (jnapiorkowski)
1552 - Changes to the way Union types are parsed to more correctly
1553 stringify their names. (jnapiorkowski)
1554 - When creating a parameterized type, we now use the new
1555 parameterize method. (jnapiorkowski)
1556 - Incoming type constraint strings are now normalized to remove
1557 all whitespace differences. (jnapiorkowski)
1558 - Changed the way we parse type constraint strings so that we now
1559 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1560 constraints. This lays the foundation for more flexible type
1561 constraint implementations.
1563 * Tests and docs for all the above. (jnapiorkowski)
1567 - Moose::Exporter will no longer remove a subroutine that the
1568 exporting package re-exports. Moose re-exports the
1569 Carp::confess function, among others. The reasoning is that we
1570 cannot know whether you have also explicitly imported those
1571 functions for your own use, so we err on the safe side and
1572 always keep them. (Dave Rolsky)
1573 - added tests for this (rafl)
1575 * Moose::Meta::Class
1576 - Changes to how we fix metaclass compatibility that are much
1577 too complicated to go into. The summary is that Moose is much
1578 less likely to complain about metaclass incompatibility
1579 now. In particular, if two metaclasses differ because
1580 Moose::Util::MetaRole was used on the two corresponding
1581 classes, then the difference in roles is reconciled for the
1582 subclass's metaclass. (Dave Rolsky)
1583 - Squashed an warning in _process_attribute (thepler)
1586 - throw exceptions (sooner) for invalid attribute names (thepler)
1587 - added tests for this (thepler)
1589 * Moose::Util::MetaRole
1590 - If you explicitly set a constructor or destructor class for a
1591 metaclass object, and then applied roles to the metaclass,
1592 that explicitly set class would be lost and replaced with the
1595 * Moose::Meta::Class
1596 * Moose::Meta::Attribute
1597 * Moose::Meta::Method
1600 * Moose::Error::Default
1601 * Moose::Error::Croak
1602 * Moose::Error::Confess
1603 - All instances of confess() changed to use overridable
1604 C<throw_error> method. This method ultimately calls a class
1605 constructor, and you can change the class being called. In
1606 addition, errors now pass more information than just a string.
1607 The default C<error_class> behaves like C<Carp::confess>, so
1608 the behavior is not visibly different for end users.
1610 0.57 Wed September 3, 2008
1612 - A new bit of doc intended to introduce folks familiar with
1613 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1615 * Moose::Unsweetened
1616 - Shows examples of two classes, each done first with and then
1617 without Moose. This makes a nice parallel to
1618 Moose::Intro. (Dave Rolsky)
1620 * Moose::Util::TypeConstraints
1621 - Fixed a bug in find_or_parse_type_constraint so that it
1622 accepts a Moose::Meta::TypeConstraint object as the parent
1623 type, not just a name (jnapiorkowski)
1624 - added tests (jnapiorkowski)
1627 - If Sub::Name was not present, unimporting failed to actually
1628 remove some sugar subs, causing test failures (Dave Rolsky)
1630 0.56 Mon September 1, 2008
1631 For those not following the series of dev releases, there are
1632 several major changes in this release of Moose.
1633 ! Moose::init_meta should now be called as a method. See the
1636 - Major performance improvements by nothingmuch.
1638 - New modules for extension writers, Moose::Exporter and
1639 Moose::Util::MetaRole by Dave Rolsky.
1641 - Lots of doc improvements and additions, especially in the
1644 - Various bug fixes.
1646 * Removed all references to the experimental-but-no-longer-needed
1647 Moose::Meta::Role::Application::ToMetaclassInstance.
1649 * Require Class::MOP 0.65.
1651 0.55_04 Sat August 30, 2008
1652 * Moose::Util::MetaRole
1653 * Moose::Cookbook::Extending::Recipe2
1654 - This simplifies the application of roles to any meta class, as
1655 well as the base object class. Reimplemented metaclass traits
1656 using this module. (Dave Rolsky)
1658 * Moose::Cookbook::Extending::Recipe1
1659 - This a new recipe, an overview of various ways to write Moose
1660 extensions (Dave Rolsky)
1662 * Moose::Cookbook::Extending::Recipe3
1663 * Moose::Cookbook::Extending::Recipe4
1664 - These used to be Extending::Recipe1 and Extending::Recipe2,
1667 0.55_03 Fri August 29, 2008
1668 * No changes from 0.55_02 except increasing the Class::MOP
1669 dependency to 0.64_07.
1671 0.55_02 Fri August 29, 2008
1672 * Makefile.PL and Moose.pm
1673 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1675 * Moose::Util::TypeConstraints
1676 - Fix warnings from find_type_constraint if the type is not
1679 * Moose::Meta::TypeConstraint
1680 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1681 return false if the type you specify cannot be found in the
1682 type registry, rather than throwing an unhelpful and
1683 coincidental exception. (t0m).
1684 - added docs & test for this (t0m)
1686 * Moose::Meta::TypeConstraint::Registry
1687 - add_type_constraint now throws an exception if a parameter is
1689 - added docs & test for this (t0m)
1691 * Moose::Cookbook::FAQ
1692 - Added a faq entry on the difference between "role" and "trait"
1696 - Fixed a bug that caused role composition to not see a required
1697 method when that method was provided by another role being
1698 composed at the same time. (Dave Rolsky)
1699 - test and bug finding (tokuhirom)
1701 0.55_01 Wed August 20, 2008
1703 !! Calling Moose::init_meta as a function is now !!
1704 !! deprecated. Please see the Moose.pm docs for details. !!
1706 * Moose::Meta::Method::Constructor
1707 - Fix inlined constructor so that values produced by default
1708 or builder methods are coerced as required. (t0m)
1709 - added test for this (t0m)
1711 * Moose::Meta::Attribute
1712 - A lazy attribute with a default or builder did not attempt to
1713 coerce the default value. The immutable code _did_
1715 - added test for this (t0m)
1718 - This is a new helper module for writing "Moose-alike"
1719 modules. This should make the lives of MooseX module authors
1720 much easier. (Dave Rolsky)
1723 * Moose::Cookbook::Meta::Recipe5
1724 - Implemented metaclass traits (and wrote a recipe for it):
1726 use Moose -traits => 'Foo'
1728 This should make writing small Moose extensions a little
1729 easier (Dave Rolsky)
1731 * Moose::Cookbook::Basics::Recipe1
1732 - Removed any examples of direct hashref access, and applied an
1733 editorial axe to reduce verbosity. (Dave Rolsky)
1735 * Moose::Cookbook::Basics::Recipe1
1736 - Also applied an editorial axe here. (Dave Rolsky)
1739 * Moose::Cookbook::Extending::Recipe1
1740 * Moose::Cookbook::Extending::Recipe2
1741 - Rewrote extending and embedding moose documentation and
1742 recipes to use Moose::Exporter (Dave Rolsky)
1746 - These two modules now warn when you load them from the main
1747 package "main" package, because we will not export sugar to
1748 main. Previously it just did nothing. (Dave Rolsky)
1751 - Now provide an init_meta method just like Moose.pm, and you
1752 can call this to provide an alternate role metaclass. (Dave
1753 Rolsky and nothingmuch)
1754 - get_method_map now respects the package cache flag (nothingmuch)
1757 - Two new methods - add_method and wrap_method_body
1761 - Optimizations including allowing constructors to accept hash
1762 refs, making many more classes immutable, and making
1763 constructors immutable. (nothingmuch)
1765 0.55 Sun August 3, 2008
1766 * Moose::Meta::Attribute
1767 - breaking down the way 'handles' methods are
1768 created so that the process can be more easily
1769 overridden by subclasses (stevan)
1771 * Moose::Meta::TypeConstraint
1772 - fixing what is passed into a ->message with
1773 the type constraints (RT #37569)
1774 - added tests for this (Charles Alderman)
1776 * Moose::Util::TypeConstraints
1777 - fix coerce to accept anon types like subtype can (mst)
1780 - reorganized the recipes into sections - Basics, Roles, Meta,
1781 Extending - and wrote abstracts for each section (Dave Rolsky)
1783 * Moose::Cookbook::Basics::Recipe10
1784 - A new recipe that demonstrates operator overloading
1785 in combination with Moose. (bluefeet)
1787 * Moose::Cookbook::Meta::Recipe1
1788 - an introduction to what meta is and why you'd want to make
1789 your own metaclass extensions (Dave Rolsky)
1791 * Moose::Cookbook::Meta::Recipe4
1792 - a very simple metaclass example (Dave Rolsky)
1794 * Moose::Cookbook::Extending::Recipe1
1795 - how to write a Moose-alike module to use your own object base
1798 * Moose::Cookbook::Extending::Recipe2
1799 - how to write modules with an API just like C<Moose.pm> (Dave
1803 - Tons of fixes, both syntactical and grammatical (Dave
1804 Rolsky, Paul Fenwick)
1806 0.54 Thurs. July 3, 2008
1807 ... this is not my day today ...
1809 * Moose::Meta::Attribute
1810 - fixed legal_options_for_inheritance such that
1811 clone_and_inherit options still works for
1812 Class::MOP::Attribute objects and therefore
1813 does not break MooseX::AttributeHelpers
1816 0.53 Thurs. July 3, 2008
1817 * Whoops, I guess I should run 'make manifest' before
1818 actually releasing the module. No actual changes
1819 in this release, except the fact that it includes
1820 the changes that I didn't include in the last
1823 0.52 Thurs. July 3, 2008
1825 - added "FEATURE REQUESTS" section to the Moose docs
1826 to properly direct people (stevan) (RT #34333)
1827 - making 'extends' croak if it is passed a Role since
1828 this is not ever something you want to do
1829 (fixed by stevan, found by obra)
1830 - added tests for this (stevan)
1833 - adding support for DOES (as in UNIVERSAL::DOES)
1835 - added test for this
1837 * Moose::Meta::Attribute
1838 - added legal_options_for_inheritance (wreis)
1839 - added tests for this (wreis)
1841 * Moose::Cookbook::Snacks::*
1842 - removed some of the unfinished snacks that should
1843 not have been released yet. Added some more examples
1844 to the 'Keywords' snack. (stevan)
1846 * Moose::Cookbook::Style
1847 - added general Moose "style guide" of sorts to the
1848 cookbook (nothingmuch) (RT #34335)
1851 - added more BUILDARGS tests (stevan)
1853 0.51 Thurs. Jun 26, 2008
1855 - add unimport so "no Moose::Role" actually does
1858 * Moose::Meta::Role::Application::ToRole
1859 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1860 order to provide its own implementation, that method still got
1861 added to the list of required methods for consumers of
1862 RoleB. Now an aliased method is only added to the list of
1863 required methods if the role doing the aliasing does not
1864 provide its own implementation. See Recipe 11 for an example
1865 of all this. (Dave Rolsky)
1866 - added tests for this
1868 * Moose::Meta::Method::Constructor
1869 - when a single argument that wasn't a hashref was provided to
1870 an immutabilized constructor, the error message was very
1871 unhelpful, as opposed to the non-immutable error. Reported by
1873 - added test for this (Dave Rolsky)
1875 * Moose::Meta::Attribute
1876 - added support for meta_attr->does("ShortAlias") (sartak)
1877 - added tests for this (sartak)
1878 - moved the bulk of the `handles` handling to the new
1879 install_delegation method (Stevan)
1882 - Added BUILDARGS, a new step in new()
1884 * Moose::Meta::Role::Application::RoleSummation
1885 - fix typos no one ever sees (sartak)
1887 * Moose::Util::TypeConstraints
1888 * Moose::Meta::TypeConstraint
1889 * Moose::Meta::TypeCoercion
1890 - Attempt to work around the ??{ } vs. threads issue
1892 - Some null_constraint optimizations
1894 0.50 Thurs. Jun 11, 2008
1895 - Fixed a version number issue by bumping all modules
1898 0.49 Thurs. Jun 11, 2008
1899 !! This version now approx. 20-25% !!
1900 !! faster with new Class::MOP 0.59 !!
1902 * Moose::Meta::Attribute
1903 - fixed how the is => (ro|rw) works with
1904 custom defined reader, writer and accessor
1906 - added docs for this (TODO).
1907 - added tests for this (Thanks to Penfold)
1908 - added the custom attribute alias for regular
1909 Moose attributes which is "Moose"
1910 - fix builder and default both being used
1915 Moose::Meta::Attribute
1917 Moose::Meta::Role::Composite
1918 Moose::Util::TypeConstraints
1919 - switched usage of reftype to ref because
1923 - changing add_package_symbol to use the new
1927 - fixed how DEMOLISHALL is called so that it
1928 can be overrided in subclasses (thanks to Sartak)
1929 - added test for this (thanks to Sartak)
1931 * Moose::Util::TypeConstraints
1932 - move the ClassName type check code to
1933 Class::MOP::is_class_loaded (thanks to Sartak)
1935 * Moose::Cookbook::Recipe11
1936 - add tests for this (thanks to tokuhirom)
1938 0.48 Thurs. May 29, 2008
1939 (early morning release engineering)--
1941 - fixing the version in Moose::Meta::Method::Destructor
1942 which was causing the indexer to choke
1944 0.47 Thurs. May 29, 2008
1945 (late night release engineering)--
1947 - fixing the version is META.yml, no functional
1948 changes in this release
1950 0.46 Wed. May 28, 2008
1951 !! This version now approx. 20-25% !!
1952 !! faster with new Class::MOP 0.57 !!
1954 * Moose::Meta::Class
1955 - some optimizations of the &initialize method
1956 since it is called so often by &meta
1958 * Moose::Meta::Class
1960 - now use the get_all_package_symbols from the
1961 updated Class::MOP, test suite is now 10 seconds
1964 * Moose::Meta::Method::Destructor
1965 - is_needed can now also be called as a class
1966 method for immutablization to check if the
1967 destructor object even needs to be created
1970 * Moose::Meta::Method::Destructor
1971 Moose::Meta::Method::Constructor
1972 - added more descriptive error message to help
1973 keep people from wasting time tracking an error
1974 that is easily fixed by upgrading.
1976 0.45 Saturday, May 24, 2008
1978 - Because of work in Class::MOP 0.57, all
1979 XS based functionality is now optional
1980 and a Pure Perl version is supplied
1981 - the CLASS_MOP_NO_XS environment variable
1982 can now be used to force non-XS versions
1984 - several of the packages have been tweaked
1985 to take care of this, mostly we added
1986 support for the package_name and name
1987 variables in all the Method metaclasses
1988 - before/around/after method modifiers now
1989 support regexp matching of names
1990 (thanks to Takatoshi Kitano)
1991 - tests added for this
1992 - NOTE: this only works for classes, it
1993 is currently not supported in roles,
1994 but, ... patches welcome
1995 - All usage of Carp::confess have been replaced
1996 by Carp::croak in the "keyword" functions since
1997 the stack trace is usually not helpful
2000 - All usage of Carp::confess have been replaced
2001 by Carp::croak in the "keyword" functions since
2002 the stack trace is usually not helpful
2003 - The 'has' keyword for roles now accepts the
2004 same array ref form that Moose.pm does
2005 (has [qw/foo bar/] => (is => 'rw', ...))
2006 - added test for this
2008 * Moose::Meta::Attribute
2009 - trigger on a ro-attribute is no longer an
2010 error, as it's useful to trigger off of the
2013 * Moose::Meta::Class
2014 - added same 'add_package_symbol' fix as in
2018 - does_role now handles non-Moose classes
2020 - added tests for this
2021 - added the 'add_method_modifier' function
2022 (thanks to Takatoshi Kitano)
2024 * Moose::Util::TypeConstraints
2025 - subtypes of parameterizable types now are
2026 themselves parameterizable types
2028 * Moose::Meta::Method::Constructor
2029 - fixed bug where trigger was not being
2030 called by the inlined immutable
2032 - added test for this (thanks to Caelum)
2034 * Moose::Meta::Role::Application::ToInstance
2035 - now uses the metaclass of the instance
2036 (if possible) to create the anon-class
2037 (thanks Jonathan Rockway)
2039 * Moose::Cookbook::Recipe22
2040 - added the meta-attribute trait recipe
2044 - fixed hash-ordering test bug that was
2045 causing occasional cpantester failures
2046 - renamed the t/000_recipe/*.t tests to be
2047 more descriptive (thanks to Sartak)
2049 0.44 Sat. May 10, 2008
2051 - made make_immutable warning cluck to
2052 show where the error is (thanks mst)
2055 - BUILDALL and DEMOLISHALL now call
2056 ->body when looping through the
2057 methods, to avoid the overloaded
2059 - fixed issue where DEMOLISHALL was
2060 eating the $@ values, and so not
2061 working correctly, it still kind of
2062 eats them, but so does vanilla perl
2063 - added tests for this
2065 * Moose::Cookbook::Recipe7
2066 - added new recipe for immutable
2067 functionality (thanks Dave Rolsky)
2069 * Moose::Cookbook::Recipe9
2070 - added new recipe for builder and
2071 lazy_build (thanks Dave Rolsky)
2073 * Moose::Cookbook::Recipe11
2074 - added new recipe for method aliasing
2075 and exclusion with Roles (thanks Dave Rolsky)
2078 - fixed Win32 test failure (thanks spicyjack)
2080 ~ removed Build.PL and Module::Build compat
2081 since Module::Install has done that.
2083 0.43 Wed. April, 30, 2008
2085 drink more coffee before
2086 doing release engineering
2088 - whoops, forgot to do the smolder tests,
2089 and we broke some of the custom meta-attr
2090 modules. This fixes that.
2092 0.42 Mon. April 28, 2008
2093 - some bad tests slipped by, nothing else
2094 changed in this release (cpantesters++)
2096 - upped the Class::MOP dependency to 0.55
2097 since we have tests which need the C3
2100 0.41 Mon. April 28, 2008
2101 ~~ numerous documentation updates ~~
2103 - Changed all usage of die to Carp::croak for better
2104 error reporting (initial patch by Tod Hagan)
2106 ** IMPORTANT NOTE **
2107 - the make_immutable keyword is now deprecated, don't
2108 use it in any new code and please fix your old code
2109 as well. There will be 2 releases, and then it will
2115 - refactored the way inner and super work to avoid
2116 any method/@ISA cache penalty (nothingmuch)
2118 * Moose::Meta::Class
2119 - fixing &new_object to make sure trigger gets the
2120 coerced value (spotted by Charles Alderman on the
2122 - added test for this
2124 * Moose::Meta::Method::Constructor
2125 - immutable classes which had non-lazy attributes were calling
2126 the default generating sub twice in the constructor. (bug
2127 found by Jesse Luehrs, fixed by Dave Rolsky)
2128 - added tests for this (Dave Rolsky)
2129 - fix typo in initialize_body method (nothingmuch)
2131 * Moose::Meta::Method::Destructor
2132 - fix typo in initialize_body method (nothingmuch)
2134 * Moose::Meta::Method::Overriden
2135 Moose::Meta::Method::Augmented
2136 - moved the logic for these into their own
2137 classes (nothingmuch)
2139 * Moose::Meta::Attribute
2140 - inherited attributes may now be extended without
2141 restriction on the type ('isa', 'does') (Sartak)
2142 - added tests for this (Sartak)
2143 - when an attribute property is malformed (such as lazy without
2144 a default), give the name of the attribute in the error
2146 - added the &applied_traits and &has_applied_traits methods
2147 to allow introspection of traits
2148 - added tests for this
2149 - moved 'trait' and 'metaclass' argument handling to here from
2151 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2152 '+foo' syntax) (nothingmuch)
2153 - added tests for this (t0m)
2156 - localize $@ inside DEMOLISHALL to avoid it
2157 eating $@ (found by Ernesto)
2158 - added test for this (thanks to Ernesto)
2160 * Moose::Util::TypeConstraints
2161 - &find_type_constraint now DWIMs when given an
2162 type constraint object or name (nothingmuch)
2163 - &find_or_create_type_constraint superseded with a number of more
2165 - find_or_create_{isa,does}_type_constraint
2166 - find_or_parse_type_constraint
2168 * Moose::Meta::TypeConstraint
2169 Moose::Meta::TypeConstraint::Class
2170 Moose::Meta::TypeConstraint::Role
2171 Moose::Meta::TypeConstraint::Enum
2172 Moose::Meta::TypeConstraint::Union
2173 Moose::Meta::TypeConstraint::Parameterized
2174 - added the &equals method for comparing two type
2175 constraints (nothingmuch)
2176 - added tests for this (nothingmuch)
2178 * Moose::Meta::TypeConstraint
2179 - add the &parents method, which is just an alias to &parent.
2180 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2182 * Moose::Meta::TypeConstraint::Class
2183 - added the class attribute for introspection purposes
2185 - added tests for this
2187 * Moose::Meta::TypeConstraint::Enum
2188 Moose::Meta::TypeConstraint::Role
2189 - broke these out into their own classes (nothingmuch)
2191 * Moose::Cookbook::Recipe*
2192 - fixed references to test file locations in the POD
2193 and updated up some text for new Moose features
2197 - Added &resolve_metaclass_alias, a helper function for finding an actual
2198 class for a short name (e.g. in the traits list)
2200 0.40 Fri. March 14, 2008
2201 - I hate Pod::Coverage
2203 0.39 Fri. March 14, 2008
2205 - documenting the use of '+name' with attributes
2206 that come from recently composed roles. It makes
2207 sense, people are using it, and so why not just
2208 officially support it.
2209 - fixing the 'extends' keyword so that it will not
2210 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2213 - added the perl -Moose=+Class::Name feature to allow
2214 monkeypatching of classes in one liners
2217 - fixing the 'apply_all_roles' keyword so that it will not
2218 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2220 * Moose::Meta::Class
2221 - added ->create method which now supports roles (thanks to jrockway)
2222 - added tests for this
2223 - added ->create_anon_class which now supports roles and caching of
2224 the results (thanks to jrockway)
2225 - added tests for this
2226 - made ->does_role a little more forgiving when it is
2227 checking a Class::MOP era metaclasses.
2229 * Moose::Meta::Role::Application::ToInstance
2230 - it is now possible to pass extra params to be used when
2231 a role is applied to an the instance (rebless_params)
2232 - added tests for this
2234 * Moose::Util::TypeConstraints
2235 - class_type now accepts an optional second argument for a
2236 custom message. POD anotated accordingly (groditi)
2237 - added tests for this
2238 - it is now possible to make anon-enums by passing 'enum' an
2239 ARRAY ref instead of the $name => @values. Everything else
2241 - added tests for this
2244 - making test for using '+name' on attributes consumed
2245 from a role, it works and makes sense too.
2247 * Moose::Meta::Attribute
2248 - fix handles so that it doesn't return nothing
2249 when the method cannot be found, not sure why
2250 it ever did this originally, this means we now
2251 have slightly better support for AUTOLOADed
2253 - added more delegation tests
2254 - adding ->does method to this so as to better
2255 support traits and their introspection.
2256 - added tests for this
2259 - localizing the Data::Dumper configurations so
2260 that it does not pollute others (RT #33509)
2261 - made ->does a little more forgiving when it is
2262 passed Class::MOP era metaclasses.
2264 0.38 Fri. Feb. 15, 2008
2265 * Moose::Meta::Attribute
2266 - fixed initializer to correctly do
2267 type checking and coercion in the
2269 - added tests for this
2272 - fixed some finicky tests (thanks to konobi)
2274 0.37 Thurs. Feb. 14, 2008
2276 - fixed some details in Moose::init_meta
2277 and its superclass handling (thanks thepler)
2278 - added tests for this (thanks thepler)
2279 - 'has' now dies if you don't pass in name
2281 - added the 'make_immutable' keyword as a shortcut
2284 * Moose::Meta::Class
2285 Moose::Meta::Method::Constructor
2286 Moose::Meta::Attribute
2287 - making (init_arg => undef) work here too
2288 (thanks to nothingmuch)
2290 * Moose::Meta::Attribute
2291 Moose::Meta::Method::Constructor
2292 Moose::Meta::Method::Accessor
2293 - make lazy attributes respect attr initializers (rjbs)
2294 - added tests for this
2296 * Moose::Util::TypeConstraints
2297 Moose::Util::TypeConstraints::OptimizedConstraints
2298 Moose::Meta::TypeConstraints
2299 Moose::Meta::Attribute
2300 Moose::Meta::Method::Constructor
2301 Moose::Meta::Method::Accessor
2302 - making type errors use the
2303 assigned message (thanks to Sartak)
2304 - added tests for this
2306 * Moose::Meta::Method::Destructor
2307 - making sure DESTROY gets inlined properly
2308 with successive DEMOLISH calls (thanks to manito)
2310 * Moose::Meta::Attribute
2311 Moose::Meta::Method::Accessor
2312 - fixed handling of undef with type constraints
2314 - added tests for this
2317 - added &get_all_init_args and &get_all_attribute_values
2318 (thanks to Sartak and nothingmuch)
2320 0.36 Sat. Jan. 26, 2008
2322 Moose::Meta::Attribute
2323 - role type tests now support when roles are
2324 applied to non-Moose classes (found by ash)
2325 - added tests for this (thanks to ash)
2326 - couple extra tests to boost code coverage
2328 * Moose::Meta::Method::Constructor
2329 - improved fix for handling Class::MOP attributes
2330 - added test for this
2332 * Moose::Meta::Class
2333 - handled the add_attribute($attribute_meta_object)
2335 - added test for this
2337 0.35 Tues. Jan. 22, 2008
2338 * Moose::Meta::Method::Constructor
2339 - fix to make sure even Class::MOP attributes
2340 are handled correctly (Thanks to Dave Rolsky)
2341 - added test for this (also Dave Rolsky)
2343 * Moose::Meta::Class
2344 - improved error message on _apply_all_roles,
2345 you should now use Moose::Util::apply_all_roles
2346 and you shouldnt have been using a _ prefixed
2347 method in the first place ;)
2349 0.34 Mon. Jan. 21, 2008
2350 ~~~ more misc. doc. fixes ~~~
2351 ~~ updated copyright dates ~~
2353 Moose is now a postmodern object system :)
2354 - (see the POD for details)
2356 * <<Role System Refactoring>>
2357 - this release contains a major reworking and
2358 cleanup of the role system
2359 - 100% backwards compat.
2360 - Role application now restructured into seperate
2361 classes based on type of applicants
2362 - Role summation (combining of more than one role)
2363 is much cleaner and anon-classes are no longer
2364 used in this process
2365 - new Composite role metaclass
2366 - runtime application of roles to instances
2367 is now more efficient and re-uses generated
2368 classes when applicable
2370 * <<New Role composition features>>
2371 - methods can now be excluded from a given role
2373 - methods can now be aliased to another name (and
2374 still retain the original as well)
2376 * Moose::Util::TypeConstraints::OptimizedConstraints
2377 - added this module (see above)
2379 * Moose::Meta::Class
2380 - fixed the &_process_attribute method to be called
2381 by &add_attribute, so that the API is now correct
2383 * Moose::Meta::Method::Accessor
2384 - fixed bug when passing a list of values to
2385 an accessor would get (incorrectly) ignored.
2386 Thanks to Sartak for finding this ;)
2387 - added tests for this (Sartak again)
2389 * Moose::Meta::Method::Accessor
2390 Moose::Meta::Method::Constructor
2391 Moose::Meta::Attribute
2392 Moose::Meta::TypeConstraint
2393 Moose::Meta::TypeCoercion
2394 - lots of cleanup of such things as:
2396 - type constraint handling
2397 - error handling/messages
2398 (thanks to nothingmuch)
2400 * Moose::Meta::TypeConstraint::Parameterizable
2401 - added this module to support the refactor
2402 in Moose::Meta::TypeConstraint::Parameterized
2404 * Moose::Meta::TypeConstraint::Parameterized
2405 - refactored how these types are handled so they
2406 are more generic and not confined to ArrayRef
2410 - shortened some file names for better VMS support (RT #32381)
2412 0.33 Fri. Dec. 14, 2007
2413 !! Moose now loads 2 x faster !!
2414 !! with new Class::MOP 0.49 !!
2416 ++ new oose.pm module to make command line
2417 Moose-ness easier (see POD docs for more)
2419 * Moose::Meta::Class
2421 - several tweaks to take advantage of the
2422 new method map caching in Class::MOP
2424 * Moose::Meta::TypeConstraint::Parameterized
2425 - allow subtypes of ArrayRef and HashRef to
2426 be used as a container (sartak)
2427 - added tests for this
2428 - basic support for coercion to ArrayRef and
2429 HashRef for containers (sartak)
2430 - added tests for this
2432 * Moose::Meta::TypeCoercion
2433 - coercions will now create subtypes as needed
2434 so you can now add coercions to parameterized
2435 types without having to explictly define them
2436 - added tests for this
2438 * Moose::Meta::Method::Accessor
2439 - allow subclasses to decide whether we need
2440 to copy the value into a new variable (sartak)
2442 0.32 Tues. Dec. 4, 2007
2443 * Moose::Util::TypeConstraints
2444 - fixing how subtype aliases of unions work
2445 they should inherit the parent's coercion
2446 - added tests for this
2447 - you can now define multiple coercions on
2448 a single type at different times instead of
2449 having to do it all in one place
2450 - added tests for this
2452 * Moose::Meta::TypeConstraint
2453 - there is now a default constraint of sub { 1 }
2454 instead of Moose::Util::TypeConstraints setting
2457 * Moose::Meta::TypeCoercion
2458 * Moose::Meta::TypeCoercion::Union
2459 - added the &has_coercion_for_type and
2460 &add_type_coercions methods to support the
2461 new features above (although you cannot add
2462 more type coercions for Union types)
2464 0.31 Mon. Nov. 26, 2007
2465 * Moose::Meta::Attribute
2466 - made the +attr syntax handle extending types with
2467 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2468 now works if the original foo is an ArrayRef.
2469 - added tests for this.
2470 - delegation now works even if the attribute does not
2471 have a reader method using the get_read_method_ref
2472 method from Class::MOP::Attribute.
2473 - added tests for this
2474 - added docs for this
2476 * Moose::Util::TypeConstraints
2477 - passing no "additional attribute info" to
2478 &find_or_create_type_constraint will no longer
2479 attempt to create an __ANON__ type for you,
2480 instead it will just return undef.
2481 - added docs for this
2483 0.30 Fri. Nov. 23, 2007
2484 * Moose::Meta::Method::Constructor
2485 -builder related bug in inlined constructor. (groditi)
2487 * Moose::Meta::Method::Accessor
2488 - genereate unnecessary calls to predicates and refactor
2489 code generation for runtime speed (groditi)
2491 * Moose::Util::TypeConstraints
2492 - fix ClassName constraint to introspect symbol table (mst)
2493 - added more tests for this (mst)
2494 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2495 with work correctly.
2496 - added tests for this
2499 - adding the link to Recipie 11 (written by Sartak)
2500 - adding test for SYNOPSIS code
2503 - New tests for builder bug. Upon instantiation, if an
2504 attribute had a builder, no value and was not lazy the
2505 builder default was not getting run, oops. (groditi)
2507 0.29 Tues. Nov. 13, 2007
2508 * Moose::Meta::Attribute
2509 - Fix error message on missing builder method (groditi)
2511 * Moose::Meta::Method::Accessor
2512 - Fix error message on missing builder method (groditi)
2515 - Add test to check for the correct error message when
2516 builder method is missing (groditi)
2518 0.28 Tues. Nov. 13, 2007
2519 - 0.27 packaged incorrectly (groditi)
2521 0.27 Tues. Nov. 13, 2007
2522 * Moose::Meta::Attribute
2523 - Added support for the new builder option (groditi)
2524 - Added support for lazy_build option (groditi)
2525 - Changed slot initialization for predicate changes (groditi)
2527 * Moose::Meta::Method::Accessor
2528 - Added support for lazy_build option (groditi)
2529 - Fix inline methods to work with corrected predicate
2532 * Moose::Meta::Method::Constructor
2533 - Added support for lazy_build option (groditi)
2536 - tests for builder and lazy_build (groditi)
2538 * fixing some misc. bits in the docs that
2539 got mentioned on CPAN Forum & perlmonks
2542 - fixed how required methods are handled
2543 when they encounter overriden or modified
2544 methods from a class (thanks to confound).
2545 - added tests for this
2547 * Moose::Util::TypeConstraint
2548 - fixed the type notation parser so that
2549 the | always creates a union and so is
2550 no longer a valid type char (thanks to
2551 konobi, mugwump and #moose for working
2553 - added more tests for this
2555 0.26 Thurs. Sept. 27, 2007
2558 * Parameterized Types
2559 We now support parameterized collection types, such as:
2560 ArrayRef[Int] # array or integers
2561 HashRef[Object] # a hash with object values
2562 They can also be nested:
2563 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2564 And work with the type unions as well:
2565 ArrayRef[Int | Str] # array of integers of strings
2567 * Better Framework Extendability
2568 Moose.pm is now "extendable" such that it is now much
2569 easier to extend the framework and add your own keywords
2570 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2571 section of the Moose.pm docs.
2574 In an effort to begin documenting some of the various
2575 details of Moose as well as some common idioms, we have
2576 created Moose::Cookbook::Snacks as a place to find
2577 small (easily digestable) nuggets of Moose code.
2580 ~ Several doc updates/cleanup thanks to castaway ~
2582 - converted build system to use Module::Install instead of
2583 Module::Build (thanks to jrockway)
2586 - added all the meta classes to the immutable list and
2587 set it to inline the accessors
2588 - fix import to allow Sub::Exporter like { into => }
2589 and { into_level => } (perigrin)
2590 - exposed and documented init_meta() to allow better
2591 embedding and extending of Moose (perigrin)
2594 - complete re-organization of the test suite
2595 - added some new tests as well
2596 - finally re-enabled the Moose::POOP test since
2597 the new version of DBM::Deep now works again
2600 * Moose::Meta::Class
2601 - fixed very odd and very nasty recursion bug with
2603 - added tests for this (eilara)
2605 * Moose::Meta::Attribute
2606 Moose::Meta::Method::Constructor
2607 Moose::Meta::Method::Accessor
2608 - fixed issue with overload::Overloaded getting called
2609 on non-blessed items. (RT #29269)
2610 - added tests for this
2612 * Moose::Meta::Method::Accessor
2613 - fixed issue with generated accessor code making
2614 assumptions about hash based classes (thanks to dexter)
2616 * Moose::Coookbook::Snacks
2617 - these are bits of documentation, not quite as big as
2618 Recipes but which have no clear place in the module docs.
2619 So they are Snacks! (horray for castaway++)
2621 * Moose::Cookbook::Recipe4
2622 - updated it to use the new ArrayRef[MyType] construct
2623 - updated the accompanying test as well
2625 +++ Major Refactor of the Type Constraint system +++
2626 +++ with new features added as well +++
2628 * Moose::Util::TypeConstraint
2629 - no longer uses package variable to keep track of
2630 the type constraints, now uses the an instance of
2631 Moose::Meta::TypeConstraint::Registry to do it
2632 - added more sophisticated type notation parsing
2634 - added tests for this
2636 * Moose::Meta::TypeConstraint
2637 - some minor adjustments to make subclassing easier
2638 - added the package_defined_in attribute so that we
2639 can track where the type constraints are created
2641 * Moose::Meta::TypeConstraint::Union
2642 - this is now been refactored to be a subclass of
2643 Moose::Meta::TypeConstraint
2645 * Moose::Meta::TypeCoercion::Union
2646 - this has been added to service the newly refactored
2647 Moose::Meta::TypeConstraint::Union and is itself
2648 a subclass of Moose::Meta::TypeCoercion
2650 * Moose::Meta::TypeConstraint::Parameterized
2651 - added this module (taken from MooseX::AttributeHelpers)
2652 to help construct nested collection types
2653 - added tests for this
2655 * Moose::Meta::TypeConstraint::Registry
2656 - added this class to keep track of type constraints
2658 0.25 Mon. Aug. 13, 2007
2660 - Documentation update to reference Moose::Util::TypeConstraints
2661 under 'isa' in 'has' for how to define a new type
2662 (thanks to shlomif).
2664 * Moose::Meta::Attribute
2665 - required attributes now will no longer accept undef
2666 from the constructor, even if there is a default and lazy
2667 - added tests for this
2668 - default subroutines must return a value which passes the
2670 - added tests for this
2672 * Moose::Meta::Attribute
2673 * Moose::Meta::Method::Constructor
2674 * Moose::Meta::Method::Accessor
2675 - type-constraint tests now handle overloaded objects correctly
2676 in the error message
2677 - added tests for this (thanks to EvanCarroll)
2679 * Moose::Meta::TypeConstraint::Union
2680 - added (has_)hand_optimized_constraint to this class so that
2681 it behaves as the regular Moose::Meta::TypeConstraint does.
2684 - large refactoring of this code
2685 - added several more tests
2686 - tests for subtle conflict resolition issues
2687 added, but not currently running
2690 * Moose::Cookbook::Recipe7
2691 - added new recipe for augment/inner functionality
2693 - added test for this
2696 - a formal definition of roles (still in progress)
2699 - utilities for easier working with Moose classes
2700 - added tests for these
2703 - This contains Moose specific test functions
2704 - added tests for these
2706 0.24 Tues. July 3, 2007
2707 ~ Some doc updates/cleanup ~
2709 * Moose::Meta::Attribute
2710 - added support for roles to be given as parameters
2711 to the 'handles' option.
2712 - added tests and docs for this
2713 - the has '+foo' attribute form now accepts changes to
2714 the lazy option, and the addition of a handles option
2715 (but not changing the handles option)
2716 - added tests and docs for this
2719 - required methods are now fetched using find_method_by_name
2720 so that required methods can come from superclasses
2721 - adjusted tests for this
2723 0.23 Mon. June 18, 2007
2724 * Moose::Meta::Method::Constructor
2725 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2726 * Moose::Meta::Class
2727 - Modify make_immutable to work with the new Class::MOP immutable
2728 mechanism + POD + very basic test (groditi)
2729 * Moose::Meta::Attribute
2730 - Fix handles to use goto() so that caller() comes out properly on
2731 the other side (perigrin)
2733 0.22 Thurs. May 31, 2007
2734 * Moose::Util::TypeConstraints
2735 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2736 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2737 prototypes for functions
2738 - added the ClassName type constraint, this checks for strings
2739 which will respond true to ->isa(UNIVERSAL).
2740 - added tests and docs for this
2741 - subtyping just in name now works correctly by making the
2742 default for where be { 1 }
2743 - added test for this
2745 * Moose::Meta::Method::Accessor
2746 - coerce and lazy now work together correctly, thanks to
2747 merlyn for finding this bug
2748 - tests added for this
2749 - fix reader presedence bug in Moose::Meta::Attribute + tests
2752 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2753 a HASH-ref and missed. This produces better error messages then
2754 having it die cause undef is not a HASH.
2755 - added tests for this
2757 0.21 Thursday, May 2nd, 2007
2759 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2760 - modified unimport to remove super and inner along with the rest
2761 - altered unimport tests to handle this
2764 - altered super export to populate SUPER_SLOT
2766 * Moose::Meta::Class
2767 - altered augment and override modifier application to use *_SLOT
2768 - modified tests for these to unimport one test class each to test
2771 - fixed issue where custom attribute metaclasses
2772 where not handled correctly in roles
2773 - added tests for this
2775 * Moose::Meta::Class
2776 - fixed issue where extending metaclasses with
2777 roles would blow up. Thanks to Aankhen`` for
2778 finding this insidious error, and it's solution.
2780 ~~ lots of spelling and grammer fixes in the docs,
2781 many many thanks to rlb3 and Aankhen for these :)
2783 0.20 Friday, April 6th, 2007
2784 >> I messed up the SKIP logic in one test
2785 so this release is just to fix that.
2788 - 'has' now also accepts an ARRAY ref
2789 to create multiple attrs (see docs)
2790 (thanks to konobi for this)
2791 - added tests and docs
2793 0.19 Thurs. April 5th, 2007
2794 ~~ More documentation updates ~~
2796 * Moose::Util::TypeConstraints
2797 - 'type' now supports messages as well
2798 thanks to phaylon for finding this
2799 - added tests for this
2800 - added &list_all_type_constraints and
2801 &list_all_builtin_type_constraints
2802 functions to facilitate introspection.
2804 * Moose::Meta::Attribute
2805 - fixed regexp 'handles' declarations
2806 to build the list of delegated methods
2807 correctly (and not override important
2808 things like &new) thanks to ashleyb
2810 - added tests and docs for this
2811 - added the 'documentation' attributes
2812 so that you can actually document your
2813 attributes and inspect them through the
2815 - added tests and docs for this
2817 * Moose::Meta::Class
2818 - when loading custom attribute metaclasses
2819 it will first look in for the class in the
2820 Moose::Meta::Attribute::Custom::$name, and
2821 then default to just loading $name.
2822 - added tests and docs for this
2824 * Moose::Meta::TypeConstraint
2825 - type constraints now stringify to their names.
2826 - added test for this
2829 - added tests to assure we work with Module::Refresh
2830 - added stricter test skip logic in the Moose POOP
2831 test, ask Rob Kinyon why.
2832 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2834 0.18 Sat. March 10, 2007
2835 ~~ Many, many documentation updates ~~
2838 - We now use Class::MOP::load_class to
2840 - added tests to show types and subtypes
2841 working with Declare::Constraints::Simple
2842 and Test::Deep as constraint engines.
2845 !! You must have Class::MOP 0.37_001 !!
2846 !! for this developer release to work !!
2848 This release was primarily adding the immutable
2849 feature to Moose. An immutable class is one which
2850 you promise not to alter. When you set the class
2851 as immutable it will perform various bits of
2852 memoization and inline certain part of the code
2853 (constructors, destructors and accessors). This
2854 minimizes (and in some cases totally eliminates)
2855 one of Moose's biggest performance hits. This
2856 feature is not on by default, and is 100% optional.
2857 It has several configurable bits as well, so you
2858 can pick and choose to your specific needs.
2860 The changes involved in this were fairly wide and
2861 highly specific, but 100% backwards compatible, so
2862 I am not going to enumerate them here. If you are
2863 truely interested in what was changed, please do
2866 0.17 Tues. Nov. 14, 2006
2867 * Moose::Meta::Method::Accessor
2868 - bugfix for read-only accessors which
2869 are have a type constraint and lazy.
2870 Thanks to chansen for finding it.
2872 0.16 Tues. Nov. 14, 2006
2874 There are some speed improvements in this release,
2875 but they are only the begining, so stay tuned.
2878 - BUILDALL and DEMOLISHALL no longer get
2879 called unless they actually need to be.
2880 This gave us a signifigant speed boost
2881 for the cases when there is no BUILD or
2882 DEMOLISH method present.
2884 * Moose::Util::TypeConstraints
2885 * Moose::Meta::TypeConstraint
2886 - added an 'optimize_as' option to the
2887 type constraint, which allows for a
2888 hand optimized version of the type
2889 constraint to be used when possible.
2890 - Any internally created type constraints
2891 now provide an optimized version as well.
2893 0.15 Sun. Nov. 5, 2006
2895 This version of Moose *must* have Class::MOP 0.36 in order
2896 to work correctly. A number of small internal tweaks have
2897 been made in order to be compatible with that release.
2899 * Moose::Util::TypeConstraints
2900 - added &unimport so that you can clean out
2901 your class namespace of these exported
2904 * Moose::Meta::Class
2905 - fixed minor issue which occasionally
2906 comes up during global destruction
2908 - moved Moose::Meta::Method::Overriden into
2912 - moved Moose::Meta::Role::Method into
2915 * Moose::Meta::Attribute
2916 - changed how we do type checks so that
2917 we reduce the overall cost, but still
2920 - moved accessor generation methods to
2921 Moose::Meta::Method::Accessor to
2922 conform to the API changes from
2925 * Moose::Meta::TypeConstraint
2926 - changed how constraints are compiled
2927 so that we do less recursion and more
2928 iteration. This makes the type check
2930 - moved Moose::Meta::TypeConstraint::Union
2933 * Moose::Meta::Method::Accessor
2934 - created this from methods formerly found in
2935 Moose::Meta::Attribute
2937 * Moose::Meta::Role::Method
2938 - moved this from Moose::Meta::Role
2940 * Moose::Meta::Method::Overriden
2941 - moved this from Moose::Meta::Class
2943 * Moose::Meta::TypeConstraint::Union
2944 - moved this from Moose::Meta::TypeConstraint
2946 0.14 Mon. Oct. 9, 2006
2948 * Moose::Meta::Attribute
2949 - fixed lazy attributes which were not getting
2950 checked with the type constraint (thanks ashley)
2951 - added tests for this
2952 - removed the over-enthusiastic DWIMery of the
2953 automatic ArrayRef and HashRef defaults, it
2954 broke predicates in an ugly way.
2955 - removed tests for this
2957 0.13 Sat. Sept. 30, 2006
2959 This version of Moose *must* have Class::MOP 0.35 in order
2960 to work correctly. A number of small internal tweaks have
2961 been made in order to be compatible with that release.
2964 - Removed the use of UNIVERSAL::require to be a better
2965 symbol table citizen and remove a dependency
2966 (thanks Adam Kennedy)
2968 **~~ removed experimental & undocumented feature ~~**
2969 - commented out the 'method' and 'self' keywords, see the
2970 comments for more info.
2973 - added a FAQ and WTF files to document frequently
2974 asked questions and common problems
2976 * Moose::Util::TypeConstraints
2977 - added GlobRef and FileHandle type constraint
2978 - added tests for this
2980 * Moose::Meta::Attribute
2981 - if your attribute 'isa' ArrayRef of HashRef, and you have
2982 not explicitly set a default, then make the default DWIM.
2983 This will also work for subtypes of ArrayRef and HashRef
2985 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2986 - new test added for this (thanks to ashley)
2989 - added basic support for runtime role composition
2990 but this is still *highly experimental*, so feedback
2991 is much appreciated :)
2992 - added tests for this
2994 * Moose::Meta::TypeConstraint
2995 - the type constraint now handles the coercion process
2996 through delegation, this is to support the coercion
2999 * Moose::Meta::TypeConstraint::Union
3000 - it is now possible for coercions to be performed
3002 - added tests for this (thanks to konobi)
3004 * Moose::Meta::TypeCoercion
3005 - properly capturing error when type constraint
3009 - Scalar::Util 1.18 is bad on Win32, so temporarily
3010 only require version 1.17 for Win32 and cygwin.
3011 (thanks Adam Kennedy)
3013 0.12 Sat. Sept. 1, 2006
3015 - Recipe5 (subtypes & coercion) has been written
3018 - fixed "bad meta" error message to be more descriptive
3019 - fixed &unimport to not remove the &inner and &super
3020 keywords because we need to localize them.
3021 - fixed number of spelling/grammer issues, thanks Theory :)
3023 **~~ experimental & undocumented feature ~~**
3024 - added the method and self keywords, they are basically
3025 just sugar, and they may not stay around.
3028 - added &dump method to easily Data::Dumper
3031 * Moose::Meta::TypeConstraint
3032 - added the &is_a_type_of method to check both the current
3033 and the subtype of a method (similar to &isa with classes)
3036 - this is now a subclass of Class::MOP::Module, and no longer
3037 creates the _role_meta ugliness of before.
3038 - fixed tests to reflect this change
3040 0.11 Wed. July 12, 2006
3042 - added an &unimport method to remove all the keywords
3043 that Moose will import, simply add 'no Moose' to the
3044 bottom of your class file.
3047 - fixed some test failures caused by a forgotten test
3050 0.10 Thurs. July 6, 2006
3052 - improved error message when loading modules so
3053 it is less confusing when you load a role.
3054 - added &calculate_all_roles method to
3055 Moose::Meta::Class and Moose::Meta::Role
3058 This module has been tested against Class::MOP 0.30
3059 but it does not yet utilize the optimizations
3060 it makes available. Stay tuned for that ;)
3062 0.09_03 Fri. June 23, 2006
3063 ++ DEVELOPER RELEASE ++
3065 - 'use strict' and 'use warnings' are no longer
3066 needed in Moose classes, Moose itself will
3067 turn them on for you.
3068 - added tests for this
3069 - moved code from exported subs to private methods
3070 in Moose::Meta::Class
3073 - as with Moose, strict and warnings are
3074 automatically turned on for you.
3075 - added tests for this
3078 - now handles an edge case for override errors
3079 - added tests for this
3080 - added some more edge case tests
3082 0.09_02 Tues. May 16, 2006
3083 ++ DEVELOPER RELEASE ++
3085 - added prototypes to the exported subs
3089 - added prototypes to the exported subs
3092 * Moose::Util::TypeConstraints
3093 - cleaned up prototypes for the subs
3096 0.09_01 Fri. May 12, 2006
3097 ++ DEVELOPER RELEASE ++
3098 - This release works in combination with
3099 Class::MOP 0.29_01, it is a developer
3100 release because it uses the a new
3101 instance sub-protocol and a fairly
3102 complete Role implementation. It has
3103 not yet been optimized, so it slower
3104 the the previous CPAN version. This
3105 release also lacks good updated docs,
3106 the official release will have updated docs.
3109 - refactored the keyword exports
3110 - 'with' now checks Role validaity and
3111 accepts more than one Role at a time
3112 - 'extends' makes metaclass adjustments as
3113 needed to ensure metaclass compatibility
3116 - refactored the keyword exports
3117 - 'with' now checks Role validaity and
3118 accepts more than one Role at a time
3120 * Moose::Util::TypeConstraints
3121 - added the 'enum' keyword for simple
3122 string enumerations which can be used as
3124 - see example of usage in t/202_example.t
3127 - more careful checking of params to new()
3130 - much work done on the role composition
3131 - many new tests for conflict detection
3132 and composition edge cases
3133 - not enough documentation, I suggest
3134 looking at the tests
3136 * Moose::Meta::Instance
3137 - added new Instance metaclass to support
3138 the new Class::MOP instance protocol
3140 * Moose::Meta::Class
3141 - some small changes to support the new
3143 - some small additions to support Roles
3145 * Moose::Meta::Attribute
3146 - some improvements to the accessor generation code
3148 - some small changes to support the new
3150 - (still somewhat) experimental delegation support
3151 with the 'handles' option
3152 - added several tests for this
3153 - no docs for this yet
3155 0.05 Thurs. April 27, 2006
3157 - keywords are now exported with Sub::Exporter
3158 thanks to chansen for this commit
3159 - has keyword now takes a 'metaclass' option
3160 to support custom attribute meta-classes
3161 on a per-attribute basis
3162 - added tests for this
3163 - the 'has' keyword not accepts inherited slot
3164 specifications (has '+foo'). This is still an
3165 experimental feature and probably not finished
3166 see t/038_attribute_inherited_slot_specs.t for
3167 more details, or ask about it on #moose
3168 - added tests for this
3171 - keywords are now exported with Sub::Exporter
3173 * Moose::Utils::TypeConstraints
3174 - reorganized the type constraint hierarchy, thanks
3175 to nothingmuch and chansen for his help and advice
3177 - added some tests for this
3178 - keywords are now exported with Sub::Exporter
3179 thanks to chansen for this commit
3181 * Moose::Meta::Class
3182 - due to changes in Class::MOP, we had to change
3183 construct_instance (for the better)
3185 * Moose::Meta::Attribute
3186 - due to changes in Class::MOP, we had to add the
3187 initialize_instance_slot method (it's a good thing)
3189 * Moose::Meta::TypeConstraint
3190 - added type constraint unions
3191 - added tests for this
3192 - added the is_subtype_of predicate method
3193 - added tests for this
3195 0.04 Sun. April 16th, 2006
3197 - Roles can now consume other roles
3198 - added tests for this
3199 - Roles can specify required methods now with
3200 the requires() keyword
3201 - added tests for this
3204 - ripped out much of it's guts ,.. much cleaner now
3205 - added required methods and correct handling of
3206 them in apply() for both classes and roles
3207 - added tests for this
3208 - no longer adds a does() method to consuming classes
3209 it relys on the one in Moose::Object
3210 - added roles attribute and some methods to support
3211 roles consuming roles
3213 * Moose::Meta::Attribute
3214 - added support for triggers on attributes
3215 - added tests for this
3216 - added support for does option on an attribute
3217 - added tests for this
3219 * Moose::Meta::Class
3220 - added support for attribute triggers in the
3222 - added tests for this
3225 - Moose no longer creates a subtype for your class
3226 if a subtype of the same name already exists, this
3227 should DWIM in 99.9999% of all cases
3229 * Moose::Util::TypeConstraints
3230 - fixed bug where incorrect subtype conflicts were
3232 - added test for this
3235 - this class can now be extended with 'use base' if
3236 you need it, it properly loads the metaclass class now
3237 - added test for this
3239 0.03_02 Wed. April 12, 2006
3241 - you must now explictly use Moose::Util::TypeConstraints
3242 it no longer gets exported for you automatically
3245 - new() now accepts hash-refs as well as key/value lists
3246 - added does() method to check for Roles
3247 - added tests for this
3249 * Moose::Meta::Class
3250 - added roles attribute along with the add_role() and
3252 - added tests for this
3255 - now adds a does() method to consuming classes
3256 which tests the class's hierarchy for roles
3257 - added tests for this
3259 0.03_01 Mon. April 10, 2006
3261 - added new Role recipe (no content yet, only code)
3264 - added 'with' keyword for Role support
3265 - added test and docs for this
3266 - fixed subtype quoting bug
3267 - added test for this
3271 - added test and docs
3273 * Moose::Util::TypeConstraints
3274 - added the message keyword to add custom
3275 error messages to type constraints
3278 - the meta role to support Moose::Role
3279 - added tests and docs
3281 * Moose::Meta::Class
3282 - moved a number of things from Moose.pm
3283 to here, they should have been here
3286 * Moose::Meta::Attribute
3287 - moved the attribute option macros here
3288 instead of putting them in Moose.pm
3290 * Moose::Meta::TypeConstraint
3291 - added the message attributes and the
3293 - added tests and docs for this
3295 0.03 Thurs. March 30, 2006
3297 - added the Moose::Cookbook with 5 recipes,
3298 describing all the stuff Moose can do.
3301 - fixed an issue with &extends super class loading
3302 it now captures errors and deals with inline
3303 packages correctly (bug found by mst, solution
3305 - added super/override & inner/augment features
3306 - added tests and docs for these
3309 - BUILDALL now takes a reference of the %params
3310 that are passed to &new, and passes that to
3313 * Moose::Util::TypeConstraints
3314 - Type constraints now survive runtime reloading
3315 - added test for this
3317 * Moose::Meta::Class
3318 - fixed the way attribute defaults are handled
3319 during instance construction (bug found by chansen)
3321 * Moose::Meta::Attribute
3322 - read-only attributes now actually enforce their
3323 read-only-ness (this corrected in Class::MOP as
3326 0.02 Tues. March 21, 2006
3328 - many more tests, fixing some bugs and
3330 - &extends now loads the base module with
3332 - added UNIVERSAL::require to the
3335 - each new Moose class will also create
3336 and register a subtype of Object which
3337 correspond to the new Moose class.
3338 - the 'isa' option in &has now only
3339 accepts strings, and will DWIM in
3342 * Moose::Util::TypeConstraints
3343 - added type coercion features
3344 - added tests for this
3345 - added support for this in attributes
3346 and instance construction
3348 - type construction no longer creates a
3349 function, it registers the type instead.
3350 - added several functions to get the
3354 - BUILDALL and DEMOLISHALL were broken
3355 because of a mis-named hash key, Whoops :)
3357 * Moose::Meta::Attribute
3358 - adding support for coercion in the
3359 autogenerated accessors
3361 * Moose::Meta::Class
3362 - adding support for coercion in the
3363 instance construction
3365 * Moose::Meta::TypeConstraint
3366 * Moose::Meta::TypeCoercion
3367 - type constraints and coercions are now
3368 full fledges meta-objects
3370 0.01 Wed. March 15, 2006
3371 - Moooooooooooooooooose!!!