1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Type constraint objects now have an assert_coerce method which will either
9 return a valid value or throw an error. (rjbs)
11 * We now warn when an accessor for one attribute overwrites an accessor for
12 another attribute. RT #57510. (Dave Rolsky)
16 * The native Array and Hash delegation methods now coerce individual new
17 members if the _member type_ has a coercion. In other words, if the array
18 reference is defined as an ArrayRef[DateTime], and you've defined a
19 coercion from Int to DateTime, then pushing an integer via a delegation
20 method will coerce the integer to a DateTime object. Reported by Karen
21 Etheridge. RT #62351. (Dave Rolsky)
23 * An attribute using native delegations did not always properly coerce and
24 type check a lazily set default value. (doy and Dave Rolsky)
26 * Using a regexp to define delegations for a class which was not yet loaded
27 did not actually work, but did not explicitly fail. However, it caused an
28 error when the class was loaded later. Reported by Max Kanat-Alexander. RT
31 * Attempting to delegate to a class or role which is not yet loaded will now
32 throw an explicit error. (Dave Rolsky)
34 * Attempting to set lazy_build in an inherited attribute was ignored. RT
39 * The Moose test suite now uses Test::Fatal instead of
40 Test::Exception. (rjbs)
42 1.17 Tue, Oct 19, 2010
46 * Make native delegation inlining work with instance metaclasses where slot
47 access is an do {} block, like Kioku. This fixes the use of native
48 delegations together with Kioku. (Scott, doy)
50 1.16 Mon, Oct 18, 2010
54 * Almost every native delegation method which changes the attribute value
55 now has an explicitly documented return value. In general, this return
56 value matches what Perl would return for the same operation. (Dave Rolsky)
58 * Lots of work on native delegation documentation, including documenting
59 what arguments each native delegation method allows or requires. (Dave
62 * Passing an odd number of args to ->new() now gives a more useful warning
63 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
66 * Allow disabling stack traces by setting an environment variable. See
67 Moose::Error::Default for details. This feature is considered
68 experimental, and may change in a future release. (Marcus Ramberg)
70 * The deprecation warning for using alias and excludes without a leading
71 dash now tells you the role being applied and what it was being applied
76 * A number of native trait methods which expected strings as arguments did
77 not allow the empty string. This included Array->join, String->match,
78 String->replace, and String->substr. Reported by Whitney Jackson. RT
81 * 'no Moose' no longer inadvertently removes imports it didn't create
82 itself. RT #60013. (Florian Ragwitz, doy)
84 * Roles now support passing an array reference of method names to method
85 modifier sugar functions. (doy)
87 * Native traits no longer use optimized inlining routines if the instance
88 requests it (in particular, if inline_get_slot_value doesn't return
89 something that can be assigned to). This should fix issues with
92 * We now ignore all Class::MOP and Moose classes when determining what
93 package called a deprecated feature. This should make the deprecation
94 warnings saner, and make it possible to turn them off more easily. (Dave
97 * The deprecated "default is" warning no longer happens if the attribute has
98 any accessor method defined (accessor, reader, writer). Also, this warning
99 only happens when a method that was generated because of the "default is"
100 gets called, rather than when the attribute is defined. (Dave Rolsky)
102 * The "default default" code for some native delegations no longer issues a
103 deprecation warning when the attribute is required or has a builder. (Dave
106 * Setting a "default default" caused a fatal error if you used the builder
107 or lazy_build options for the attribute. Reported by Kent Fredric. RT
108 #59613. (Dave Rolsky)
110 1.15 Tue, Oct 5, 2010
114 * Major changes to Native Traits, most of which make them act more like
115 "normal" attributes. This should be mostly compatible with existing code,
116 but see Moose::Manual::Delta for details.
118 * A few native traits (String, Counter, Bool) provide default values of "is"
119 and "default" when you created an attribute. Allowing them to provide
120 these values is now deprecated. Supply the value yourself when creating
123 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
124 generate non-global aliases for your traits (and allow your users to
125 rename the aliases, etc). (doy)
127 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
128 determine which name to install the 'meta' name under. Passing 'undef'
129 to this option will suppress generation of the meta method entirely. (doy)
131 * Moose now warns if it overwrites an existing method named "meta" in your
132 class when you "use Moose". (doy)
136 * Native Trait delegations are now all generated as inline code. This should
137 be much faster than the previous method of delegation. In the best case,
138 native trait methods will be very highly optimized.
140 * Reinitializing a metaclass no longer removes the existing method and
141 attribute objects (it instead fixes them so they are correct for the
142 reinitialized metaclass). This should make the order of loading many
143 MooseX modules less of an issue. (doy)
145 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
149 * If an attribute was weak, setting it to a non-ref value after the object
150 was constructed caused an error. Now we only call weaken when the new
151 value is a reference.
153 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
154 based on a patch from Andreas Koenig.
156 1.14 Tue, Sep 21, 2010
160 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
161 a weird error when defining the same union type twice, but only when using
162 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
164 1.13 Mon, Sep 13, 2010
168 * The deprecation warnings for alias and excludes are back, use -alias and
169 -excludes instead. (Dave Rolsky)
173 * When composing one role into another and there is an attribute conflict,
174 the error message now includes the attribute name. Reported by Sam
175 Graham. RT #59985. (Dave Rolsky)
177 * When a class is made immutable, the does_role method is overridden with a
178 much faster version that simply looks role names up in a hash. Code which
179 uses lots of role-based type constraints should be faster. (Dave Rolsky)
181 1.12 Sat, Aug 28, 2010
185 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
187 1.11 Fri, Aug 27, 2010
191 * An attribute in a subclass can now override the value of "is". (doy)
193 * The deprecation warnings for alias and excludes have been turned back off
194 for this release, to give other module authors a chance to tweak their
199 * mro::get_linear_isa was being called as a function rather than a method,
200 which caused problems with Perl 5.8.x. (t0m)
202 * Union types always created a type constraint, even if their constituent
203 constraints did not have any coercions. This bogus coercion always
204 returned undef, which meant that a union which included Undef as a member
205 always coerced bad values to undef. Reported by Eric Brine. RT
206 #58411. (Dave Rolsky)
208 * Union types with coercions would always fall back to coercing the value to
209 undef (unintentionally). Now if all the coercions for a union type fail,
210 the value returned by the coercion is the original value that we attempted
211 to coerce. (Dave Rolsky).
213 1.10 Sun, Aug 22, 2010
217 * The long-deprecated alias and excludes options for role applications now
218 issue a deprecation warning. Use -alias and -excludes instead. (Dave
223 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
225 * default => undef now works properly. (doy)
227 * Enum type constraints now throw errors if their values are nonsensical.
232 * Optimizations that should help speed up compilation time (Dave Rolsky).
234 1.09 Tue, Jul 25, 2010
238 * You can no longer pass "coerce => 1" for an attribute unless its type
239 constraint has a coercion defined. Doing so will issue a deprecation
240 warning. (Dave Rolsky)
242 * Previously, '+foo' only allowed a specific set of options to be
243 overridden, which made it impossible to change attribute options related
244 to extensions. Now we blacklist some options, and anything else is
245 allowed. (doy, Tuomas Jormola)
247 * Most features which have been declared deprecated now issue a warning using
248 Moose::Deprecated. Warnings are issued once per calling package, not
249 repeatedly. See Moose::Deprecated for information on how you can shut
250 these warnings up entirely. Note that deprecated features will eventually
251 be removed, so shutting up the warnings may not be the best idea. (Dave
254 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
259 * We no longer unimport strict and warnings when Moose, Moose::Role, or
260 Moose::Exporter are unimported. Doing this was broken if the user
261 explicitly loaded strict and warnings themself, and the results could be
262 generally surprising. We decided that it was best to err on the side of
263 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
266 * New with_traits helper function in Moose::Util. (doy)
270 * Accessors will no longer be inlined if the instance metaclass isn't
273 * Use Perl 5.10's new recursive regex features, if possible, for the type
274 constraint parser. (doy, nothingmuch)
278 * Attributes now warn if their accessors overwrite a locally defined
279 function (not just method). (doy)
283 * Bump our required perl version to 5.8.3, since earlier versions fail tests
284 and aren't easily installable/testable.
286 1.08 Tue, Jun 15, 2010
290 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
291 to be overridden more easily (doy).
293 1.07 Sat, Jun 05, 2010
297 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
298 classes and non-class metaclass traits (doy, dougdude).
300 1.06 Tue, Jun 01, 2010
304 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
305 more uniformly compare type constraints between 'classic' Moose type
306 constraints and MooseX::Types based type constraints.
308 1.05 Thu, May 20, 2010
312 * Packages and modules no longer have methods - this functionality was
313 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
314 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
316 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
317 Moose::Object::new. (doy)
321 * strict and warnings are now unimported when Moose, Moose::Role, or
322 Moose::Exporter are unimported. (doy, Adam Kennedy)
324 * Added a 'consumers' method to Moose::Meta::Role for finding all
325 classes/roles which consume the given role. (doy)
329 * Fix has '+attr' in Roles to explode immediately, rather than when the role
330 is applied to a class (t0m).
332 * Fix type constraint validation messages to not include the string 'failed'
333 twice in the same sentence (Florian Ragwitz).
335 * New type constraints will default to being unequal, rather than equal
338 * The tests no longer check for perl's behavior of clobbering $@, which has
339 been fixed in perl-5.13.1 (Florian Ragwitz).
341 * Metaclass compatibility fixing has been completely rewritten, and should
342 be much more robust. (doy)
344 1.04 Thu, May 20, 2010
346 * This release was broken and has been deleted from CPAN shortly after its
349 1.03 Thu, May 06, 2010
353 * Allow specifying required versions when setting superclasses or applying
354 roles (Florian Ragwitz).
356 1.02 Sat, May 01, 2010
360 * Stop the natatime method provided by the native Array trait from returning
361 an exhausted iterator when being called with a callback. (Florian Ragwitz)
363 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
366 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
367 the class the TC represents as an argument incorrectly returned true. This
368 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
370 * Use File::Temp for temp files created during tests. Previously, files were
371 written to the t/ dir, which could cause problems of the user running the
372 tests did not have write access to that directory.. (Chris Weyl, Ævar
375 * Pass role arguments along when applying roles to instances. (doy, lsm)
377 1.01 Fri, Mar 26, 2010
381 * The handles option now also accepts a role type constraint in addition to a
382 plain role name. (Florian Ragwitz)
386 * Record the Sartak/doy debt properly in Changes (perigrin)
388 1.00 Tue, Mar 25, 2010
392 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
393 methods by default. (Florian Ragwitz)
397 * Improve various parts of the documentation and fix many typos.
398 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
402 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
404 0.99 Mon, Mar 8, 2010
408 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
409 which member of the union a given value validates for. (Cory Watson)
413 * DEMOLISH methods in mutable subclasses of immutable classes are now called
414 properly (Chia-liang Kao, Jesse Luehrs)
418 * Added Moose::Manual::Support that defines the support, compatiblity, and
419 release policies for Moose. (Chris Prather)
421 0.98 Wed, Feb 10, 2010
425 * An internals change in 0.97 broke role application to an instance in some
426 cases. The bug occurred when two different roles were applied to different
427 instances of the same class. (Rafael Kitover)
430 0.97 Tue, Feb 9, 2010
434 * Calling ->reinitialize on a cached anonymous class effectively uncached
435 the metaclass object, causing the metaclass to go out of scope
436 unexpectedly. This could easily happen at a distance by applying a
437 metarole to an anonymous class. (Dave Rolsky).
439 0.96 Sat, Feb 6, 2010
443 * ScalarRef is now a parameterized type. You can now specify a type
444 constraint for whatever the reference points to. (Closes RT#50857)
445 (Michael G. Schwern, Florian Ragwitz)
449 * ScalarRef now accepts references to other references. (Closes RT#50934)
452 0.95 Thu, Feb 4, 2010
456 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
457 a delegation option. This allows the code reference to be called as a
458 method on the object. (Florian Ragwitz)
462 * Moose::Object::does no longer checks the entire inheritance tree, since
463 Moose::Meta::Class::does_role already does this. (doy)
465 * Moose::Util::add_method_modifier (and subsequently the sugar functions
466 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
467 with the same behavior as lists. Types other than arrayref and regexp
468 result in an error. (Dylan Hardison)
470 0.94 Mon, Jan 18, 2010
474 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
478 * Improved support for anonymous roles by changing various APIs to take
479 Moose::Meta::Role objects as well as role names. This included
481 - Moose::Meta::Class->does_role
482 - Moose::Meta::Role->does_role
483 - Moose::Util::does_role
484 - Moose::Util::apply_all_roles
485 - Moose::Util::ensure_all_roles
486 - Moose::Util::search_class_by_role
488 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
492 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
493 work as long as the accessor method names are explicitly set to valid Perl
494 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
497 0.93_03 Tue, Jan 5, 2010
501 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
502 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
505 0.93_02 Tue, Jan 5, 2010
509 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
510 testers. (Dave Rolsky)
513 0.93_01 Mon, Jan 4, 2010
517 See Moose::Manual::Delta for more details on backwards compatiblity issues.
519 * Role attributes are now objects of the Moose::Meta::Role::Attribute
520 class. (Dave Rolsky).
522 * There were major changes to how metaroles are applied. We now distinguish
523 between metaroles for classes vs those for roles. See the
524 Moose::Util::MetaRole docs for details. (Dave Rolsky)
526 * The old MetaRole API has been deprecated, but will continue to
527 work. However, if you are applying an attribute metaclass role, this may
528 break because of the fact that roles now have an attribute metaclass
531 * Moose::Util::MetaRole::apply_metaclass_roles is now called
532 apply_metaroles. The old name is deprecated. Dave Rolsky>
534 * The unimport subs created by Moose::Exporter now clean up re-exported
535 functions like blessed and confess, unless the caller imported them from
536 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
538 [ENHANCEMENTS AND BUG FIXES]
540 * Changed the Str constraint to accept magic lvalue strings like one gets from
541 substr et al, again. (sorear)
543 * Sped up the type constraint parsing regex. (Sam Vilain)
545 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
548 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
549 easier testing of TypeConstraints from the command line. (perigrin)
551 * Added a with_immutable test function to Test::Moose, to run a block of tests
552 with and without certain classes being immutable. (doy)
554 * We now use Module::Install extensions explicitly to avoid confusing errors
555 if they're not installed. We use Module::Install::AuthorRequires to stop
556 test extraction and general failures if you don't have the author side
557 dependencies installed.
559 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
560 #51791. (Amir E. Aharoni)
563 0.93 Thu, Nov 19, 2009
565 - Calling $object->new() is no longer deprecated, and no longer
569 - The get_attribute_map method is now deprecated. (Dave Rolsky)
571 * Moose::Meta::Method::Delegation
572 - Preserve variable aliasing in @_ for delegated methods, so that
573 altering @_ affects the passed value. (doy)
575 * Moose::Util::TypeConstraints
576 - Allow array refs for non-anonymous form of enum and duck_type, not
577 just anonymous. The non-arrayref forms may be removed in the
579 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
580 - Properly document Int being a subtype of Str. (doy)
583 - Moose::Exporter using modules can now export their functions to the
584 main package. This applied to Moose and Moose::Role, among
585 others. (nothingmuch)
587 * Moose::Meta::Attribute
588 - Don't remove attribute accessors we never installed, during
589 remove_accessors. (doy)
591 * Moose::Meta::Attribute::Native::Trait::Array
592 - Don't bypass prototype checking when calling List::Util::first, to
593 avoid a segfault when it is called with a non-code argument. (doy)
595 * Moose::Meta::Attribute::Native::Trait::Code
596 - Fix passing arguments to code execute helpers. (doy)
598 0.92 Tue, Sep 22, 2009
599 * Moose::Util::TypeConstraints
600 - added the match_on_type operator (Stevan)
601 - added tests and docs for this (Stevan)
604 - Metaclass compat fixing should already happen recursively, there's no
605 need to explicitly walk up the inheritance tree. (doy)
607 * Moose::Meta::Attribute
608 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
610 0.91 Thu, Sep 17, 2009
612 - Don't import any functions, in order to avoid polluting our namespace
613 with things that can look like methods (blessed, try, etc)
616 * Moose::Meta::Method::Constructor
617 - The generated code needs to called Scalar::Util::blessed by its
618 fully-qualified name or else Perl can interpret the call to blessed as
619 an indirect method call. This broke Search::GIN, which in turn broke
620 KiokuDB. (nothingmuch)
622 0.90 Tue, Sep 15, 2009
623 * Moose::Meta::Attribute::Native::Trait::Counter
624 * Moose::Meta::Attribute::Native::Trait::String
625 - For these two traits, an attribute which did not explicitly provide
626 methods to handles magically ended up delegating *all* the helper
627 methods. This has been removed. You must be explicit in your handles
628 declaration for all Native Traits. (Dave Rolsky)
631 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
632 sure to rethrow its error message. However, we also localize $@ before
633 this so that if all the DEMOLISH methods success, the value of $@ will
634 be preserved. (nothingmuch and Dave Rolsky)
635 - We now also localize $? during object destruction. (nothingmuch and
637 - The handling of DEMOLISH methods was broken for immutablized classes,
638 which were not receiving the value of
639 Devel::GlobalDestruction::in_global_destruction.
640 - These two fixes address some of RT #48271, reported by Zefram.
641 - This is all now documented in Moose::Manual::Construction.
642 - Calling $object->new() is now deprecated. A warning will be
646 - Added more hooks to customize how roles are applied. The role
647 summation class, used to create composite roles, can now be changed
648 and/or have meta-roles applied to it. (rafl)
649 - The get_method_list method no longer explicitly excludes the "meta"
650 method. This was a hack that has been replaced by better hacks. (Dave
653 * Moose::Meta::Method::Delegation
654 - fixed delegated methods to make sure that any modifiers attached to
655 the accessor being delegated on will be called (Stevan)
656 - added tests for this (Stevan)
659 - Moose no longer warns when a class that is being made immutable has
660 mutable ancestors. While in theory this is a good thing to warn about,
661 we found so many exceptions to this that doing this properly became
664 0.89_02 Thu, Sep 10, 2009
665 * Moose::Meta::Attribute::Native
666 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
668 * Moose::Meta::Attribute::Native::Trait::Array
669 - Added a number of functions from List::Util and List::MoreUtils,
670 including reduce, shuffle, uniq, and natatime. (doy)
673 - This module will now generate an init_meta method for your exporting
674 class if you pass it options for
675 Moose::Util::MetaRole::apply_metaclass_roles or
676 apply_base_class_roles. This eliminates a lot of repetitive
677 boilerplate for typical MooseX modules. (doy).
678 - Documented the with_meta feature, which is a replacement for
679 with_caller. This feature was added by josh a while ago.
680 - The with_caller feature is now deprecated, but will not issue a
681 warning yet. (Dave Rolsky)
682 - If you try to wrap/export a subroutine which doesn't actually exist,
683 Moose::Exporter will warn you about this. (doy)
685 * Moose::Meta::Role::Application::ToRole
686 - When a role aliased a method from another role, it was only getting
687 the new (aliased) name, not the original name. This differed from what
688 happens when a class aliases a role's methods. If you _only_ want the
689 aliased name, make sure to also exclue the original name. (Dave
692 0.89_01 Wed Sep 2, 2009
693 * Moose::Meta::Attribute
694 - Added the currying syntax for delegation from AttributeHelpers to the
695 existing delegation API. (hdp)
697 * Moose::Meta::Attribute::Native
698 - We have merged the functionality of MooseX::AttributeHelpers into the
699 Moose core with some API tweaks. You can continue to use
700 MooseX::AttributeHelpers, but it will not be maintained except
701 (perhaps) for critical bug fixes in the future. See
702 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
705 * Moose::Error::Croak
706 * Moose::Error::Confess
707 - Clarify documentation on how to use different error-throwing
708 modules. (Curtis Jewell)
711 - Correct POD for builder to point to Recipe8, not 9. (gphat)
714 - When a nonexistent sub name is passed to as_is, with_caller, or
715 with_meta, throw a warning and skip the exporting, rather than
716 installing a broken sub. (doy)
719 - Moose now warns if you call C<make_immutable> for a class with mutable
722 0.89 Thu Aug 13, 2009
723 * Moose::Manual::Attributes
724 - Clarify "is", include discussion of "bare". (Sartak)
726 * Moose::Meta::Role::Method::Conflicting
727 * Moose::Meta::Role::Application::ToClass
728 - For the first set of roles involved in a conflict, report all
729 unresolved method conflicts, not just the first method. Fixes #47210
730 reported by Ovid. (Sartak)
732 * Moose::Meta::TypeConstraint
733 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
736 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
738 - Allow specifying role options (alias, excludes, MXRP stuff) in the
739 arrayref passed to "use Moose -traits" (doy)
742 - Add functions meta_class_alias and meta_attribute_alias for creating
743 aliases for class and attribute metaclasses and metatraits. (doy)
745 * Moose::Meta::Attribute
746 * Moose::Meta::Method::Accessor
747 - A trigger now receives the old value as a second argument, if the
748 attribute had one. (Dave Rolsky)
750 * Moose::Meta::Method::Constructor
751 - Fix a bug with $obj->new when $obj has stringify overloading.
752 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
753 - However, we will probably deprecate $obj->new, so please don't start
754 using it for new code!
756 * Moose::Meta::Role::Application
757 * Moose::Meta::Role::Application::RoleSummation
758 - Rename alias and excludes to -alias and -excludes (but keep the old
759 names for now, for backcompat) (doy)
761 0.88 Fri Jul 24, 2009
762 * Moose::Manual::Contributing
763 - Re-write the Moose::Manual::Contributing document to reflect
764 the new layout and methods of work for the Git repository. All
765 work now should be done in topic branches and reviewed by a
766 core committer before being applied to master. All releases
767 are done by a cabal member and merged from master to
768 stable. This plan was devised by Yuval, blame him. (perigrin)
771 - Create metaclass attributes for the different role application
774 * Moose::Util::MetaRole
775 - Allow applying roles to a meta role's role application
778 * Moose::Meta::Attribute
779 - Add weak_ref to allowed options for "has '+foo'" (mst)
781 * Moose::Meta::Method::Accessor
782 - No longer uses inline_slot_access in accessors, to support
783 non-lvalue-based meta instances. (sorear)
786 * Moose::Meta::Method::Delegation
787 - Once again allow class names as well as objects for
788 delegation. This was changed in 0.86.
791 * Moose::Meta::Class::Immutable::Trait
792 - Fixes to work with the latest Class::MOP.
794 * Moose::Meta::Method::Delegation
795 - Delegation now dies with a more useful error message if the
796 attribute's accessor returns something defined but
799 0.85 Fri, Jun 26, 2009
800 * Moose::Meta::Attribute
801 - The warning for 'no associated methods' is now split out into
802 the _check_associated_methods method, so that extensions can
803 safely call 'after install_accessors => ...'. This fixes a
804 warning from MooseX::AttributeHelpers. (hdp)
806 0.84 Fri, Jun 26, 2009
808 - has now sets definition_context for attributes defined in
811 * Moose::Meta::Attribute
812 - When adding an attribute to a metaclass, if the attribute has
813 no associated methods, it will give a deprecation
815 - Methods generated by delegation were not being added to
816 associated_methods. (hdp)
817 - Attribute accessors (reader, writer, accessor, predicate,
818 clearer) now warn if they overwrite an existing method. (doy)
819 - Attribute constructors now warn very noisily about unknown (or
820 misspelled) arguments
822 * Moose::Util::TypeConstraints
823 - Deprecated the totally useless Role type name, which just
824 checked if $object->can('does'). Note that this is _not_ the
825 same as a type created by calling role_type('RoleName').
827 * Moose::Util::TypeConstraints
828 * Moose::Meta::TypeConstraint::DuckType
829 - Reify duck type from a regular subtype into an actual class
831 - Document this because Sartak did all my work for me
834 * Moose::Meta::Attribute
835 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
836 it is just a list of methods (Sartak)
839 - The get_*_method_modifiers methods would die if the role had
840 no modifiers of the given type (Robert Buels).
842 0.83 Tue, Jun 23, 2009
844 - Fix _construct_instance not setting the special __MOP__ object
845 key in instances of anon classes. (doy)
847 0.82 Sun, Jun 21, 2009
848 * Moose::Manual::Types
849 - Mention MooseX::Types early to avoid users falling down the
850 string parsing rathole (mst)
852 * Moose::Manual::MooseX
853 - Add warnings about class-level extensions and mention considering
854 using plain objects instead
856 0.81 Sun, Jun 7, 2009
857 * Bumped our Class::MOP prereq to the latest version (0.85), since
860 0.80 Sat, Jun 6, 2009
862 - Add FAQ about the coercion change from 0.76 because it came up
863 three times today (perigrin)
864 - Win doy $10 dollars because Sartak didn't think anybody
865 would document this fast enough (perigrin)
867 * Moose::Meta::Method::Destructor
868 - Inline a DESTROY method even if there are no DEMOLISH methods
869 to prevent unnecessary introspection in
870 Moose::Object::DEMOLISHALL
873 - A role's required methods are now represented by
874 Moose::Meta::Role::Method::Required objects. Conflicts are now
875 represented by Moose::Meta::Role::Method::Conflicting
876 objects. The benefit for end-users in that unresolved
877 conflicts generate different, more instructive, errors,
878 resolving Ovid's #44895. (Sartak)
881 - Improve the error message of "extends" as suggested by Adam
882 Kennedy and confound (Sartak)
883 - Link to Moose::Manual::Roles from Moose::Role as we now have
884 excellent documentation (Adam Kennedy)
887 - Update test suite for subname change in Class::MOP
889 - Add TODO test for infinite recursion in Moose::Meta::Class
892 0.79 Wed, May 13, 2009
894 - More fixes for Win32 problems. Reported by Robert Krimen.
897 - The DEMOLISHALL method could still blow up in some cases
898 during global destruction. This method has been made more
899 resilient in the face of global destruction's random garbage
903 - If you "also" a module that isn't loaded, the error message
904 now acknowledges that (Sartak)
907 - When your ->meta method does not return a Moose::Meta::Class,
908 the error message gave the wrong output (Sartak)
910 0.78 Tue, May 12, 2009
911 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
912 - Merged these documents into what is now Moose::Manual::FAQ
915 - Moved to Moose::Manual::Unsweetened
917 * Moose::Cookbook::Basics::Recipes 9-12
918 - Renamed to be 8-11, since recipe 8 did not exist
921 - Make Moose::Exporter import strict and warnings into packages
925 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
926 methods during global destruction (doy)
929 * Moose::Meta::Role::Application::ToClass
930 - Track the Role::Application objects created during class-role
934 - Fix metaclass incompatibility errors when extending a vanilla perl
935 class which isa Moose class with a metaclass role applied (t0m)
938 - Add a role-combination hook, _role_for_combination, for the
939 benefit of MooseX::Role::Parameterized (Sartak)
942 - Some tests were failing on Win32 because they explicit checked
943 warning output for newlines. Reported by Nickolay Platonov.
945 0.77 Sat, May 2, 2009
947 - Add explicit use of Devel::GlobalDestruction and Sub::Name
951 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
952 or not we are currently in global destruction (doy)
953 - Add explicit use of Devel::GlobalDestruction and Sub::Name
956 * Moose::Cookbook::FAQ
957 - Reworked much of the existing content to be more useful to
958 modern Moose hackers (Sartak)
961 - Depend on Class::MOP 0.83 instead of 0.82_01.
963 0.76 Mon, April 27, 2009
964 * Moose::Meta::TypeConstraint
965 - Do not run coercions in coerce() if the value already passes the type
968 * Moose::Meta::TypeConstraint::Class
969 - In validation error messages, specifically say that the value is not
970 an instance of the class. This should alleviate some frustrating
971 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
973 * Moose::Meta::Role::Application::ToClass
974 - Revert the class-overrides-role warning in favor of a solution outside
975 of the Moose core (Sartak)
978 - Make Test::Output optional again, since it's only used in a few files
981 0.75_01 Thu, April 23, 2009
982 * Moose::Meta::Role::Application::ToClass
983 - Moose now warns about each class overriding methods from roles it
987 - Warnings tests have standardized on Test::Output which is now an
988 unconditionally dependency (Sartak)
991 - Changes to immutabilization to work with Class::MOP 0.82_01+.
993 0.75 Mon, April 20, 2009
996 - Move validation of not inheriting from roles from Moose::extends to
997 Moose::Meta::Class::superclasses (doy)
1000 - add ensure_all_roles() function to encapsulate the common "apply this
1001 role unless the object already does it" pattern (hdp)
1004 - Users can now select a different metaclass with the "-metaclass"
1005 option to import, for classes and roles (Sartak)
1008 - Make method_metaclass an attr so that it can accept a metarole
1011 0.74 Tue, April 7, 2009
1013 * Moose::Meta::Method::Destructor
1014 - Include stack traces in the deprecation warnings.
1017 * Moose::Meta::Class
1018 - Removed the long-deprecated _apply_all_roles method.
1020 * Moose::Meta::TypeConstraint
1021 - Removed the long-deprecated union method.
1024 0.73_02 Mon, April 6, 2009
1025 * More deprecations and renamings
1026 - Moose::Meta::Method::Constructor
1027 - initialize_body => _initialize_body (this is always called
1028 when an object is constructed)
1031 - The DEMOLISHALL method could throw an exception during global
1032 destruction, meaning that your class's DEMOLISH methods would
1033 not be properly called. Reported by t0m.
1035 * Moose::Meta::Method::Destructor
1036 - Destructor inlining was totally broken by the change to the
1037 is_needed method in 0.72_01. Now there is a test for this
1038 feature, and it works again.
1041 - Bold the word 'not' in the POD for find_meta (t0m)
1043 0.73_01 Sun, April 5, 2009
1045 - Call user_class->meta in fewer places, with the eventual goal
1046 of allowing the user to rename or exclude ->meta
1047 altogether. Instead uses Class::MOP::class_of. (Sartak)
1049 * Moose::Meta::Method::Accessor
1050 - If an attribute had a lazy default, and that value did not
1051 pass the attribute's type constraint, it did not get the
1052 message from the type constraint, instead using a generic
1053 message. Test provided by perigrin.
1055 * Moose::Util::TypeConstraints
1056 - Add duck_type keyword. It's sugar over making sure an object
1057 can() a list of methods. This is easier than jrockway's
1058 suggestion to fork all of CPAN. (perigrin)
1059 - add tests and documentation (perigrin)
1062 - Document the fact that init_meta() returns the target class's
1063 metaclass object. (hdp)
1065 * Moose::Cookbook::Extending::Recipe1
1066 * Moose::Cookbook::Extending::Recipe2
1067 * Moose::Cookbook::Extending::Recipe3
1068 * Moose::Cookbook::Extending::Recipe4
1069 - Make init_meta() examples explicitly return the metaclass and
1070 point out this fact. (hdp)
1072 * Moose::Cookbook::Basics::Recipe12
1073 - A new recipe, creating a custom meta-method class.
1075 * Moose::Cookbook::Meta::Recipe6
1076 - A new recipe, creating a custom meta-method class.
1078 * Moose::Meta::Class
1079 * Moose::Meta::Method::Constructor
1080 - Attribute triggers no longer receive the meta-attribute object
1081 as an argument in any circumstance. Previously, triggers
1082 called during instance construction were passed the
1083 meta-attribute, but triggers called by normal accessors were
1084 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1086 * Moose::Manual::Attributes
1087 - Remove references to triggers receving the meta-attribute object as an
1090 * Moose::Cookbook::FAQ
1091 - Remove recommendation for deprecated Moose::Policy and
1092 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1095 * Many methods have been renamed with a leading underscore, and a
1096 few have been deprecated entirely. The methods with a leading
1097 underscore are consider "internals only". People writing
1098 subclasses or extensions to Moose should feel free to override
1099 them, but they are not for "public" use.
1101 - Moose::Meta::Class
1102 - check_metaclass_compatibility => _check_metaclass_compatibility
1104 - Moose::Meta::Method::Accessor
1105 - initialize_body => _initialize_body (this is always called
1106 when an object is constructed)
1107 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1109 - Moose::Meta::Method::Constructor
1110 - initialize_body => _initialize_body (this is always called
1111 when an object is constructed)
1112 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1113 - attributes => _attributes (now inherited from parent)
1114 - meta_instance => _meta_instance (now inherited from parent)
1117 - alias_method is deprecated. Use add_method
1119 0.73 Fri, March 29, 2009
1120 * No changes from 0.72_01.
1122 0.72_01 Thu, March 26, 2009
1124 - Almost every module has complete API documentation. A few
1125 methods (and even whole classes) have been intentionally
1126 excluded pending some rethinking of their APIs.
1128 * Moose::Util::TypeConstraints
1129 - Calling subtype with a name as the only argument is now an
1130 exception. If you want an anonymous subtype do:
1132 my $subtype = subtype as 'Foo';
1134 * Moose::Cookbook::Meta::Recipe7
1135 - A new recipe, creating a custom meta-instance class.
1137 * Moose::Cookbook::Basics::Recipe5
1138 - Fix various typos and mistakes. Includes a patch from Radu
1141 * Moose::Cookbook::Basics::Recipe9
1142 - Link to this recipe from Moose.pm's builder blurb
1145 - When wrapping a function with a prototype, Moose::Exporter now
1146 makes sure the wrapped function still has the same
1147 prototype. (Daisuke Maki)
1149 * Moose::Meta::Attribute
1150 - Allow a subclass to set lazy_build for an inherited
1154 - Explicitly depend on Data::OptList. We already had this dependency
1155 via Sub::Exporter, but since we're using it directly we're
1156 better off with it listed. (Sartak)
1158 * Moose::Meta::Method::Constructor
1159 - Make it easier to subclass the inlining behaviour. (Ash
1162 * Moose::Manual::Delta
1163 - Details significant changes in the history of Moose, along
1164 with recommended workarounds.
1166 * Moose::Manual::Contributing
1167 - Contributor's guide to Moose.
1169 * Moose::Meta::Method::Constructor
1170 - The long-deprecated intialize_body method has been removed
1171 (yes, spelled like that).
1173 * Moose::Meta::Method::Destructor
1174 - This is_needed method is now always a class method.
1176 * Moose::Meta::Class
1177 - Changes to the internals of how make_immutable works to match
1178 changes in latest Class::MOP.
1180 0.72 Mon, February 23, 2009
1182 * Moose::Meta::Method::Constructor
1183 - A mutable class accepted Foo->new(undef) without complaint,
1184 while an immutable class would blow up with an unhelpful
1185 error. Now, in both cases we throw a helpful error
1186 instead. Reported by doy.
1188 0.71_01 Sun, February 22, 2009
1190 - Hopefully fixed some POD errors in a few recipes that caused
1191 them to display weird on search.cpan.org.
1193 * Moose::Util::TypeConstraints
1194 - Calling type or subtype without the sugar helpers (as, where,
1195 message) is now deprecated.
1196 - The subtype function tried hard to guess what you meant, but
1197 often got it wrong. For example:
1199 my $subtype = subtype as 'ArrayRef[Object]';
1201 This caused an error in the past, but now works as you'd
1205 - Make sure Moose.pm is loaded before calling
1206 Moose->throw_error. This wasn't normally an issue, but could
1207 bite you in weird cases.
1209 0.71 Thu, February 19, 2009
1210 * Moose::Cookbook::Basics::Recipe11
1211 - A new recipe which demonstrates the use of BUILDARGS and
1212 BUILD. (Dave Rolsky)
1214 * Moose::Cookbook::Roles::Recipe3
1215 - A new recipe, applying a role to an object instance. (Dave
1219 - Allow overriding specific keywords from "also" packages. (doy)
1222 - Replace hardcoded cookbook tests with Test::Inline to ensure
1223 the tests match the actual code in the recipes. (Dave Rolsky)
1226 - Working on the above turned up a number of little bugs in the
1227 recipe code. (Dave Rolsky)
1229 * Moose::Util::TypeConstraints::Optimized
1230 - Just use Class::MOP for the optimized ClassName check. (Dave
1233 0.70 Sat, February 14, 2009
1234 * Moose::Util::TypeConstraints
1235 - Added the RoleName type (stevan)
1236 - added tests for this (stevan)
1238 * Moose::Cookbook::Basics::Recipe3
1239 - Updated the before qw[left right] sub to be a little more
1240 defensive about what it accepts (stevan)
1241 - added more tests to t/000_recipies/basics/003_binary_tree.t
1245 - We now always call DEMOLISHALL, even if a class does not
1246 define DEMOLISH. This makes sure that method modifiers on
1247 DEMOLISHALL work as expected. (doy)
1248 - added tests for this (EvanCarroll)
1250 * Moose::Util::MetaRole
1251 - Accept roles for the wrapped_method_metaclass (rafl)
1252 - added tests for this (rafl)
1254 * Moose::Meta::Attribute
1255 - We no longer pass the meta-attribute object as a final
1256 argument to triggers. This actually changed for inlined code a
1257 while back, but the non-inlined version and the docs were
1261 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1262 they require 0.11. (Dave Rolsky)
1265 - Lots of small changes to the manual, cookbook, and
1266 elsewhere. These were based on feedback from various
1267 users, too many to list here. (Dave Rolsky)
1269 0.69 Thu, February 12, 2009
1271 - Make some keyword errors use throw_error instead of croak
1272 since Moose::Exporter wraps keywords now (Sartak)
1274 * Moose::Cookbook::*
1275 - Revised every recipe for style and clarity. Also moved some
1276 documentation out of cookbook recipes and into Moose::Manual
1277 pages. This work was funded as part of the Moose docs grant
1278 from TPF. (Dave Rolsky)
1280 * Moose::Meta::Method::Delegation
1281 - If the attribute doing the delegation was not populated, the
1282 error message did not specify the attribute name
1285 0.68 Wed, February 4, 2009
1287 - Many spelling, typo, and formatting fixes by daxim.
1289 * Moose::Manual::Attributes
1290 - The NAME section in the POD used "Attribute" so search.cpan
1291 didn't resolve links from other documents properly.
1293 * Moose::Meta::Method::Overriden
1294 - Now properly spelled as Overridden. Thanks to daxim for
1297 0.67 Tue, February 3, 2009
1299 - Lots of little typo fixes and a few clarifications. Several
1300 pages didn't have proper titles, and so weren't actually
1301 visible on search.cpan.org. Thanks to hanekomu for a variety
1302 of fixes and formatting improvements.
1304 0.66 Tue, February 3, 2009
1306 - This is a brand new, extensive manual for Moose. This aims to
1307 provide a complete introduction to all of Moose's
1308 features. This work was funded as part of the Moose docs grant
1309 from TPF. (Dave Rolsky)
1311 * Moose::Meta::Attribute
1312 - Added a delegation_metaclass method to replace a hard-coded
1313 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1315 * Moose::Util::TypeConstraints
1316 - If you created a subtype and passed a parent that Moose didn't
1317 know about, it simply ignored the parent. Now it automatically
1318 creates the parent as a class type. This may not be what you
1319 want, but is less broken than before. (Dave Rolsky)
1321 * Moose::Util::TypeConstraints
1322 - This module tried throw errors by calling Moose->throw_error,
1323 but it did not ensure that Moose was loaded first. This could
1324 cause very unhelpful errors when it tried to throw an error
1325 before Moose was loaded. (Dave Rolsky)
1327 * Moose::Util::TypeConstraints
1328 - You could declare a name with subtype such as "Foo!Bar" that
1329 would be allowed, but if you used it in a parameterized type
1330 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1331 vetting on names created via the sugar functions, so that they
1332 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1334 0.65 Thu, January 22, 2009
1335 * Moose and Moose::Meta::Method::Overridden
1336 - If an overridden method called super(), and then the
1337 superclass's method (not overridden) _also_ called super(),
1338 Moose went into an endless recursion loop. Test provided by
1339 Chris Prather. (Dave Rolsky)
1341 * Moose::Meta::TypeConstraint
1342 - All methods are now documented. (gphat)
1344 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1345 - Fixed some bogus failures that occurred because we tried to
1346 validate filesystem paths in a very ad-hoc and
1347 not-quite-correct way. (Dave Rolsky)
1349 * Moose::Util::TypeConstraints
1350 - Added maybe_type to exports. See docs for details. (rjbs)
1353 - Added Moose::Util::TypeConstraints to the SEE ALSO
1357 - Methods created via an attribute can now fulfill a "requires"
1358 declaration for a role. (nothingmuch)
1360 * Moose::Meta::Method::*
1361 - Stack traces from inlined code will now report its line and
1362 file as being in your class, as opposed to in Moose
1363 guts. (nothingmuch).
1365 0.64 Wed, December 31, 2008
1366 * Moose::Meta::Method::Accessor
1367 - Always inline predicate and clearer methods (Sartak)
1369 * Moose::Meta::Attribute
1370 - Support for parameterized traits (Sartak)
1371 - verify_against_type_constraint method to avoid duplication
1372 and enhance extensibility (Sartak)
1374 * Moose::Meta::Class
1375 - Tests (but no support yet) for parameterized traits (Sartak)
1378 - Require Class::MOP 0.75+, which has the side effect of making
1379 sure we work on Win32. (Dave Rolsky)
1381 0.63 Mon, December 8, 2008
1382 * Moose::Unsweetened
1383 - Some small grammar tweaks and bug fixes in non-Moose example
1386 0.62_02 Fri, December 5, 2008
1387 * Moose::Meta::Role::Application::ToClass
1388 - When a class does not provide all of a role's required
1389 methods, the error thrown now mentions all of the missing
1390 methods, as opposed to just the first one found. Requested by
1391 Curtis Poe (RT #41119). (Dave Rolsky)
1393 * Moose::Meta::Method::Constructor
1394 - Moose will no longer inline a constructor for your class
1395 unless it inherits its constructor from Moose::Object, and
1396 will warn when it doesn't inline. If you want to force
1397 inlining anyway, pass "replace_constructor => 1" to
1398 make_immutable. Addresses RT #40968, reported by Jon
1399 Swartz. (Dave Rolsky)
1400 - The quoting of default values could be broken if the default
1401 contained a single quote ('). Now we use quotemeta to escape
1402 anything potentially dangerous in the defaults. (Dave Rolsky)
1404 0.62_01 Wed, December 3, 2008
1406 - use the method->execute API for BUILDALL
1407 and DEMOLISHALL (Sartak)
1409 * Moose::Util::TypeConstraints
1410 - We now make all the type constraint meta classes immutable
1411 before creating the default types provided by Moose. This
1412 should make loading Moose a little faster. (Dave Rolsky)
1414 0.62 Wed November 26, 2008
1415 * Moose::Meta::Role::Application::ToClass
1416 Moose::Meta::Role::Application::ToRole
1417 - fixed issues where excluding and aliasing the
1418 same methods for a single role did not work
1419 right (worked just fine with multiple
1421 - added test for this (stevan)
1423 * Moose::Meta::Role::Application::RoleSummation
1424 - fixed the error message when trying to compose
1425 a role with a role it excludes (Sartak)
1428 - Catch another case where recursion caused the value
1429 of $CALLER to be stamped on (t0m)
1430 - added test for this (t0m)
1433 - Remove the make_immutable keyword, which has been
1434 deprecated since April. It breaks metaclasses that
1435 use Moose without no Moose (Sartak)
1437 * Moose::Meta::Attribute
1438 - Removing an attribute from a class now also removes delegation
1439 (handles) methods installed for that attribute (t0m)
1440 - added test for this (t0m)
1442 * Moose::Meta::Method::Constructor
1443 - An attribute with a default that looked like a number (but was
1444 really a string) would accidentally be treated as a number
1445 when the constructor was made immutable (perigrin)
1446 - added test for this (perigrin)
1449 - create method for constructing a role
1450 dynamically (Sartak)
1451 - added test for this (Sartak)
1452 - anonymous roles! (Sartak)
1453 - added test for this (Sartak)
1456 - more consistent error messages (Sartak)
1458 * Moose::Cookbook::Roles::Recipe1
1459 - attempt to explain why a role that just requires
1460 methods is useful (Sartak)
1462 0.61 Fri November 7, 2008
1463 * Moose::Meta::Attribute
1464 - When passing a role to handles, it will be loaded if necessary
1467 * Moose::Meta::Class
1468 - Method objects returned by get_method (and other methods)
1469 Could end up being returned without an associated_metaclass
1470 attribute. Removing get_method_map, which is provided by
1471 Class::MOP::Class, fixed this. The Moose version did nothing
1472 different from its parent except introduce a bug. (Dave Rolsky)
1473 - added tests for this (jdv79)
1476 - Added a $VERSION to all .pm files which didn't have one. Fixes
1477 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1479 * Moose::Cookbook::Basics::Recipe4
1480 * Moose::Cookbook::Basics::Recipe6
1481 - These files had spaces on the first line of the SYNOPSIS, as
1482 opposed to a totally empty line. According to RT #40432, this
1483 confuses POD parsers. (Dave Rolsky)
1485 0.60 Fri October 24, 2008
1487 - Passing "-traits" when loading Moose caused the Moose.pm
1488 exports to be broken. Reported by t0m. (Dave Rolsky)
1489 - Tests for this bug. (t0m)
1492 - Change resolve_metaclass alias to use the new
1493 load_first_existing_class function. This makes it a lot
1494 simpler, and also around 5 times faster. (t0m)
1495 - Add caching to resolve_metaclass_alias, which gives an order
1496 of magnitude speedup to things which repeatedly call the
1497 Moose::Meta::Attribute->does method, notably MooseX::Storage
1500 * Moose::Util::TypeConstraint
1501 - Put back the changes for parameterized constraints that
1502 shouldn't have been removed in 0.59. We still cannot parse
1503 them, but MooseX modules can create them in some other
1504 way. See the 0.58 changes for more details. (jnapiorkowski)
1505 - Changed the way subtypes are created so that the job is
1506 delegated to a type constraint parent. This clears up some
1507 hardcoded checking and should allow correct subtypes of
1508 Moose::Meta::Type::Constraint. Don't rely on this new API too
1509 much (create_child_type) because it may go away in the
1510 future. (jnapiorkowski)
1512 * Moose::Meta::TypeConstraint::Union
1513 - Type constraint names are sorted as strings, not numbers.
1516 * Moose::Meta::TypeConstraint::Parameterizable
1517 - New parameterize method. This can be used as a factory method
1518 to make a new type constraint with a given parameterized
1519 type. (jnapiorkowski)
1520 - added tests (jnapiorkowski)
1522 0.59 Tue October 14, 2008
1524 - Add abridged documentation for builder/default/initializer/
1525 predicate, and link to more details sections in
1526 Class::MOP::Attribute. (t0m)
1528 * Moose::Util::TypeConstraints
1529 - removed prototypes from all but the &-based stuff (mst)
1531 * Moose::Util::TypeConstraints
1532 - Creating a anonymous subtype with both a constraint and a
1533 message failed with a very unhelpful error, but should just
1534 work. Reported by t0m. (Dave Rolsky)
1537 - Some tests that used Test::Warn if it was available failed
1538 with older versions of Test::Warn. Reported by Fayland. (Dave
1540 - Test firing behavior of triggers in relation to builder/default/
1542 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1543 kinds of supported type. (t0m)
1545 * Moose::Meta::Class
1546 - In create(), do not pass "roles" option to the superclass
1547 - added related test that creates an anon metaclass with
1548 a required attribute
1550 * Moose::Meta::TypeConstraint::Class
1551 * Moose::Meta::TypeConstraint::Role
1552 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1553 other types (as per change in 0.55_02). (t0m)
1555 * Moose::Meta::TypeConstraint::Registry
1556 - Fix warning when dealing with unknown type names (t0m)
1558 * Moose::Util::TypeConstraints
1559 - Reverted changes from 0.58 related to handle parameterized
1560 types. This caused random failures on BSD and Win32 systems,
1561 apparently related to the regex engine. This means that Moose
1562 can no longer parse structured type constraints like
1563 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1564 supported in a slightly different way via MooseX::Types some
1565 time in the future. (Dave Rolsky)
1567 0.58 Sat September 20, 2008
1568 !! This release has an incompatible change regarding !!
1569 !! how roles add methods to a class !!
1571 * Roles and role application
1572 ! Roles now add methods by calling add_method, not
1573 alias_method. They make sure to always provide a method
1574 object, which will be cloned internally. This means that it is
1575 now possible to track the source of a method provided by a
1576 role, and even follow its history through intermediate roles.
1578 This means that methods added by a role now show up when
1579 looking at a class's method list/map. (Dave Rolsky)
1582 - From this release on, we'll try to maintain a list of
1583 conflicting modules, and warn you if you have one
1584 installed. For example, this release conflicts with ...
1585 - MooseX::Singleton <= 0.11
1586 - MooseX::Params::Validate <= 0.05
1589 In general, we try to not break backwards compatibility for
1590 most Moose users, but MooseX modules and other code which
1591 extends Moose's metaclasses is often affected by very small
1592 changes in the Moose internals.
1594 * Moose::Meta::Method::Delegation
1595 * Moose::Meta::Attribute
1596 - Delegation methods now have their own method class. (Dave
1599 * Moose::Meta::TypeConstraint::Parameterizable
1600 - Added a new method 'parameterize' which is basically a factory
1601 for the containing constraint. This makes it easier to create
1602 new types of parameterized constraints. (jnapiorkowski)
1604 * Moose::Meta::TypeConstraint::Union
1605 - Changed the way Union types canonicalize their names to follow
1606 the normalized TC naming rules, which means we strip all
1607 whitespace. (jnapiorkowski)
1609 * Moose::Util::TypeConstraints
1610 - Parameter and Union args are now sorted, this makes Int|Str
1611 the same constraint as Str|Int. (jnapiorkowski)
1612 - Changes to the way Union types are parsed to more correctly
1613 stringify their names. (jnapiorkowski)
1614 - When creating a parameterized type, we now use the new
1615 parameterize method. (jnapiorkowski)
1616 - Incoming type constraint strings are now normalized to remove
1617 all whitespace differences. (jnapiorkowski)
1618 - Changed the way we parse type constraint strings so that we now
1619 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1620 constraints. This lays the foundation for more flexible type
1621 constraint implementations.
1623 * Tests and docs for all the above. (jnapiorkowski)
1627 - Moose::Exporter will no longer remove a subroutine that the
1628 exporting package re-exports. Moose re-exports the
1629 Carp::confess function, among others. The reasoning is that we
1630 cannot know whether you have also explicitly imported those
1631 functions for your own use, so we err on the safe side and
1632 always keep them. (Dave Rolsky)
1633 - added tests for this (rafl)
1635 * Moose::Meta::Class
1636 - Changes to how we fix metaclass compatibility that are much
1637 too complicated to go into. The summary is that Moose is much
1638 less likely to complain about metaclass incompatibility
1639 now. In particular, if two metaclasses differ because
1640 Moose::Util::MetaRole was used on the two corresponding
1641 classes, then the difference in roles is reconciled for the
1642 subclass's metaclass. (Dave Rolsky)
1643 - Squashed an warning in _process_attribute (thepler)
1646 - throw exceptions (sooner) for invalid attribute names (thepler)
1647 - added tests for this (thepler)
1649 * Moose::Util::MetaRole
1650 - If you explicitly set a constructor or destructor class for a
1651 metaclass object, and then applied roles to the metaclass,
1652 that explicitly set class would be lost and replaced with the
1655 * Moose::Meta::Class
1656 * Moose::Meta::Attribute
1657 * Moose::Meta::Method
1660 * Moose::Error::Default
1661 * Moose::Error::Croak
1662 * Moose::Error::Confess
1663 - All instances of confess() changed to use overridable
1664 C<throw_error> method. This method ultimately calls a class
1665 constructor, and you can change the class being called. In
1666 addition, errors now pass more information than just a string.
1667 The default C<error_class> behaves like C<Carp::confess>, so
1668 the behavior is not visibly different for end users.
1670 0.57 Wed September 3, 2008
1672 - A new bit of doc intended to introduce folks familiar with
1673 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1675 * Moose::Unsweetened
1676 - Shows examples of two classes, each done first with and then
1677 without Moose. This makes a nice parallel to
1678 Moose::Intro. (Dave Rolsky)
1680 * Moose::Util::TypeConstraints
1681 - Fixed a bug in find_or_parse_type_constraint so that it
1682 accepts a Moose::Meta::TypeConstraint object as the parent
1683 type, not just a name (jnapiorkowski)
1684 - added tests (jnapiorkowski)
1687 - If Sub::Name was not present, unimporting failed to actually
1688 remove some sugar subs, causing test failures (Dave Rolsky)
1690 0.56 Mon September 1, 2008
1691 For those not following the series of dev releases, there are
1692 several major changes in this release of Moose.
1693 ! Moose::init_meta should now be called as a method. See the
1696 - Major performance improvements by nothingmuch.
1698 - New modules for extension writers, Moose::Exporter and
1699 Moose::Util::MetaRole by Dave Rolsky.
1701 - Lots of doc improvements and additions, especially in the
1704 - Various bug fixes.
1706 * Removed all references to the experimental-but-no-longer-needed
1707 Moose::Meta::Role::Application::ToMetaclassInstance.
1709 * Require Class::MOP 0.65.
1711 0.55_04 Sat August 30, 2008
1712 * Moose::Util::MetaRole
1713 * Moose::Cookbook::Extending::Recipe2
1714 - This simplifies the application of roles to any meta class, as
1715 well as the base object class. Reimplemented metaclass traits
1716 using this module. (Dave Rolsky)
1718 * Moose::Cookbook::Extending::Recipe1
1719 - This a new recipe, an overview of various ways to write Moose
1720 extensions (Dave Rolsky)
1722 * Moose::Cookbook::Extending::Recipe3
1723 * Moose::Cookbook::Extending::Recipe4
1724 - These used to be Extending::Recipe1 and Extending::Recipe2,
1727 0.55_03 Fri August 29, 2008
1728 * No changes from 0.55_02 except increasing the Class::MOP
1729 dependency to 0.64_07.
1731 0.55_02 Fri August 29, 2008
1732 * Makefile.PL and Moose.pm
1733 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1735 * Moose::Util::TypeConstraints
1736 - Fix warnings from find_type_constraint if the type is not
1739 * Moose::Meta::TypeConstraint
1740 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1741 return false if the type you specify cannot be found in the
1742 type registry, rather than throwing an unhelpful and
1743 coincidental exception. (t0m).
1744 - added docs & test for this (t0m)
1746 * Moose::Meta::TypeConstraint::Registry
1747 - add_type_constraint now throws an exception if a parameter is
1749 - added docs & test for this (t0m)
1751 * Moose::Cookbook::FAQ
1752 - Added a faq entry on the difference between "role" and "trait"
1756 - Fixed a bug that caused role composition to not see a required
1757 method when that method was provided by another role being
1758 composed at the same time. (Dave Rolsky)
1759 - test and bug finding (tokuhirom)
1761 0.55_01 Wed August 20, 2008
1763 !! Calling Moose::init_meta as a function is now !!
1764 !! deprecated. Please see the Moose.pm docs for details. !!
1766 * Moose::Meta::Method::Constructor
1767 - Fix inlined constructor so that values produced by default
1768 or builder methods are coerced as required. (t0m)
1769 - added test for this (t0m)
1771 * Moose::Meta::Attribute
1772 - A lazy attribute with a default or builder did not attempt to
1773 coerce the default value. The immutable code _did_
1775 - added test for this (t0m)
1778 - This is a new helper module for writing "Moose-alike"
1779 modules. This should make the lives of MooseX module authors
1780 much easier. (Dave Rolsky)
1783 * Moose::Cookbook::Meta::Recipe5
1784 - Implemented metaclass traits (and wrote a recipe for it):
1786 use Moose -traits => 'Foo'
1788 This should make writing small Moose extensions a little
1789 easier (Dave Rolsky)
1791 * Moose::Cookbook::Basics::Recipe1
1792 - Removed any examples of direct hashref access, and applied an
1793 editorial axe to reduce verbosity. (Dave Rolsky)
1795 * Moose::Cookbook::Basics::Recipe1
1796 - Also applied an editorial axe here. (Dave Rolsky)
1799 * Moose::Cookbook::Extending::Recipe1
1800 * Moose::Cookbook::Extending::Recipe2
1801 - Rewrote extending and embedding moose documentation and
1802 recipes to use Moose::Exporter (Dave Rolsky)
1806 - These two modules now warn when you load them from the main
1807 package "main" package, because we will not export sugar to
1808 main. Previously it just did nothing. (Dave Rolsky)
1811 - Now provide an init_meta method just like Moose.pm, and you
1812 can call this to provide an alternate role metaclass. (Dave
1813 Rolsky and nothingmuch)
1814 - get_method_map now respects the package cache flag (nothingmuch)
1817 - Two new methods - add_method and wrap_method_body
1821 - Optimizations including allowing constructors to accept hash
1822 refs, making many more classes immutable, and making
1823 constructors immutable. (nothingmuch)
1825 0.55 Sun August 3, 2008
1826 * Moose::Meta::Attribute
1827 - breaking down the way 'handles' methods are
1828 created so that the process can be more easily
1829 overridden by subclasses (stevan)
1831 * Moose::Meta::TypeConstraint
1832 - fixing what is passed into a ->message with
1833 the type constraints (RT #37569)
1834 - added tests for this (Charles Alderman)
1836 * Moose::Util::TypeConstraints
1837 - fix coerce to accept anon types like subtype can (mst)
1840 - reorganized the recipes into sections - Basics, Roles, Meta,
1841 Extending - and wrote abstracts for each section (Dave Rolsky)
1843 * Moose::Cookbook::Basics::Recipe10
1844 - A new recipe that demonstrates operator overloading
1845 in combination with Moose. (bluefeet)
1847 * Moose::Cookbook::Meta::Recipe1
1848 - an introduction to what meta is and why you'd want to make
1849 your own metaclass extensions (Dave Rolsky)
1851 * Moose::Cookbook::Meta::Recipe4
1852 - a very simple metaclass example (Dave Rolsky)
1854 * Moose::Cookbook::Extending::Recipe1
1855 - how to write a Moose-alike module to use your own object base
1858 * Moose::Cookbook::Extending::Recipe2
1859 - how to write modules with an API just like C<Moose.pm> (Dave
1863 - Tons of fixes, both syntactical and grammatical (Dave
1864 Rolsky, Paul Fenwick)
1866 0.54 Thurs. July 3, 2008
1867 ... this is not my day today ...
1869 * Moose::Meta::Attribute
1870 - fixed legal_options_for_inheritance such that
1871 clone_and_inherit options still works for
1872 Class::MOP::Attribute objects and therefore
1873 does not break MooseX::AttributeHelpers
1876 0.53 Thurs. July 3, 2008
1877 * Whoops, I guess I should run 'make manifest' before
1878 actually releasing the module. No actual changes
1879 in this release, except the fact that it includes
1880 the changes that I didn't include in the last
1883 0.52 Thurs. July 3, 2008
1885 - added "FEATURE REQUESTS" section to the Moose docs
1886 to properly direct people (stevan) (RT #34333)
1887 - making 'extends' croak if it is passed a Role since
1888 this is not ever something you want to do
1889 (fixed by stevan, found by obra)
1890 - added tests for this (stevan)
1893 - adding support for DOES (as in UNIVERSAL::DOES)
1895 - added test for this
1897 * Moose::Meta::Attribute
1898 - added legal_options_for_inheritance (wreis)
1899 - added tests for this (wreis)
1901 * Moose::Cookbook::Snacks::*
1902 - removed some of the unfinished snacks that should
1903 not have been released yet. Added some more examples
1904 to the 'Keywords' snack. (stevan)
1906 * Moose::Cookbook::Style
1907 - added general Moose "style guide" of sorts to the
1908 cookbook (nothingmuch) (RT #34335)
1911 - added more BUILDARGS tests (stevan)
1913 0.51 Thurs. Jun 26, 2008
1915 - add unimport so "no Moose::Role" actually does
1918 * Moose::Meta::Role::Application::ToRole
1919 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1920 order to provide its own implementation, that method still got
1921 added to the list of required methods for consumers of
1922 RoleB. Now an aliased method is only added to the list of
1923 required methods if the role doing the aliasing does not
1924 provide its own implementation. See Recipe 11 for an example
1925 of all this. (Dave Rolsky)
1926 - added tests for this
1928 * Moose::Meta::Method::Constructor
1929 - when a single argument that wasn't a hashref was provided to
1930 an immutabilized constructor, the error message was very
1931 unhelpful, as opposed to the non-immutable error. Reported by
1933 - added test for this (Dave Rolsky)
1935 * Moose::Meta::Attribute
1936 - added support for meta_attr->does("ShortAlias") (sartak)
1937 - added tests for this (sartak)
1938 - moved the bulk of the `handles` handling to the new
1939 install_delegation method (Stevan)
1942 - Added BUILDARGS, a new step in new()
1944 * Moose::Meta::Role::Application::RoleSummation
1945 - fix typos no one ever sees (sartak)
1947 * Moose::Util::TypeConstraints
1948 * Moose::Meta::TypeConstraint
1949 * Moose::Meta::TypeCoercion
1950 - Attempt to work around the ??{ } vs. threads issue
1952 - Some null_constraint optimizations
1954 0.50 Thurs. Jun 11, 2008
1955 - Fixed a version number issue by bumping all modules
1958 0.49 Thurs. Jun 11, 2008
1959 !! This version now approx. 20-25% !!
1960 !! faster with new Class::MOP 0.59 !!
1962 * Moose::Meta::Attribute
1963 - fixed how the is => (ro|rw) works with
1964 custom defined reader, writer and accessor
1966 - added docs for this (TODO).
1967 - added tests for this (Thanks to Penfold)
1968 - added the custom attribute alias for regular
1969 Moose attributes which is "Moose"
1970 - fix builder and default both being used
1975 Moose::Meta::Attribute
1977 Moose::Meta::Role::Composite
1978 Moose::Util::TypeConstraints
1979 - switched usage of reftype to ref because
1983 - changing add_package_symbol to use the new
1987 - fixed how DEMOLISHALL is called so that it
1988 can be overrided in subclasses (thanks to Sartak)
1989 - added test for this (thanks to Sartak)
1991 * Moose::Util::TypeConstraints
1992 - move the ClassName type check code to
1993 Class::MOP::is_class_loaded (thanks to Sartak)
1995 * Moose::Cookbook::Recipe11
1996 - add tests for this (thanks to tokuhirom)
1998 0.48 Thurs. May 29, 2008
1999 (early morning release engineering)--
2001 - fixing the version in Moose::Meta::Method::Destructor
2002 which was causing the indexer to choke
2004 0.47 Thurs. May 29, 2008
2005 (late night release engineering)--
2007 - fixing the version is META.yml, no functional
2008 changes in this release
2010 0.46 Wed. May 28, 2008
2011 !! This version now approx. 20-25% !!
2012 !! faster with new Class::MOP 0.57 !!
2014 * Moose::Meta::Class
2015 - some optimizations of the &initialize method
2016 since it is called so often by &meta
2018 * Moose::Meta::Class
2020 - now use the get_all_package_symbols from the
2021 updated Class::MOP, test suite is now 10 seconds
2024 * Moose::Meta::Method::Destructor
2025 - is_needed can now also be called as a class
2026 method for immutablization to check if the
2027 destructor object even needs to be created
2030 * Moose::Meta::Method::Destructor
2031 Moose::Meta::Method::Constructor
2032 - added more descriptive error message to help
2033 keep people from wasting time tracking an error
2034 that is easily fixed by upgrading.
2036 0.45 Saturday, May 24, 2008
2038 - Because of work in Class::MOP 0.57, all
2039 XS based functionality is now optional
2040 and a Pure Perl version is supplied
2041 - the CLASS_MOP_NO_XS environment variable
2042 can now be used to force non-XS versions
2044 - several of the packages have been tweaked
2045 to take care of this, mostly we added
2046 support for the package_name and name
2047 variables in all the Method metaclasses
2048 - before/around/after method modifiers now
2049 support regexp matching of names
2050 (thanks to Takatoshi Kitano)
2051 - tests added for this
2052 - NOTE: this only works for classes, it
2053 is currently not supported in roles,
2054 but, ... patches welcome
2055 - All usage of Carp::confess have been replaced
2056 by Carp::croak in the "keyword" functions since
2057 the stack trace is usually not helpful
2060 - All usage of Carp::confess have been replaced
2061 by Carp::croak in the "keyword" functions since
2062 the stack trace is usually not helpful
2063 - The 'has' keyword for roles now accepts the
2064 same array ref form that Moose.pm does
2065 (has [qw/foo bar/] => (is => 'rw', ...))
2066 - added test for this
2068 * Moose::Meta::Attribute
2069 - trigger on a ro-attribute is no longer an
2070 error, as it's useful to trigger off of the
2073 * Moose::Meta::Class
2074 - added same 'add_package_symbol' fix as in
2078 - does_role now handles non-Moose classes
2080 - added tests for this
2081 - added the 'add_method_modifier' function
2082 (thanks to Takatoshi Kitano)
2084 * Moose::Util::TypeConstraints
2085 - subtypes of parameterizable types now are
2086 themselves parameterizable types
2088 * Moose::Meta::Method::Constructor
2089 - fixed bug where trigger was not being
2090 called by the inlined immutable
2092 - added test for this (thanks to Caelum)
2094 * Moose::Meta::Role::Application::ToInstance
2095 - now uses the metaclass of the instance
2096 (if possible) to create the anon-class
2097 (thanks Jonathan Rockway)
2099 * Moose::Cookbook::Recipe22
2100 - added the meta-attribute trait recipe
2104 - fixed hash-ordering test bug that was
2105 causing occasional cpantester failures
2106 - renamed the t/000_recipe/*.t tests to be
2107 more descriptive (thanks to Sartak)
2109 0.44 Sat. May 10, 2008
2111 - made make_immutable warning cluck to
2112 show where the error is (thanks mst)
2115 - BUILDALL and DEMOLISHALL now call
2116 ->body when looping through the
2117 methods, to avoid the overloaded
2119 - fixed issue where DEMOLISHALL was
2120 eating the $@ values, and so not
2121 working correctly, it still kind of
2122 eats them, but so does vanilla perl
2123 - added tests for this
2125 * Moose::Cookbook::Recipe7
2126 - added new recipe for immutable
2127 functionality (thanks Dave Rolsky)
2129 * Moose::Cookbook::Recipe9
2130 - added new recipe for builder and
2131 lazy_build (thanks Dave Rolsky)
2133 * Moose::Cookbook::Recipe11
2134 - added new recipe for method aliasing
2135 and exclusion with Roles (thanks Dave Rolsky)
2138 - fixed Win32 test failure (thanks spicyjack)
2140 ~ removed Build.PL and Module::Build compat
2141 since Module::Install has done that.
2143 0.43 Wed. April, 30, 2008
2145 drink more coffee before
2146 doing release engineering
2148 - whoops, forgot to do the smolder tests,
2149 and we broke some of the custom meta-attr
2150 modules. This fixes that.
2152 0.42 Mon. April 28, 2008
2153 - some bad tests slipped by, nothing else
2154 changed in this release (cpantesters++)
2156 - upped the Class::MOP dependency to 0.55
2157 since we have tests which need the C3
2160 0.41 Mon. April 28, 2008
2161 ~~ numerous documentation updates ~~
2163 - Changed all usage of die to Carp::croak for better
2164 error reporting (initial patch by Tod Hagan)
2166 ** IMPORTANT NOTE **
2167 - the make_immutable keyword is now deprecated, don't
2168 use it in any new code and please fix your old code
2169 as well. There will be 2 releases, and then it will
2175 - refactored the way inner and super work to avoid
2176 any method/@ISA cache penalty (nothingmuch)
2178 * Moose::Meta::Class
2179 - fixing &new_object to make sure trigger gets the
2180 coerced value (spotted by Charles Alderman on the
2182 - added test for this
2184 * Moose::Meta::Method::Constructor
2185 - immutable classes which had non-lazy attributes were calling
2186 the default generating sub twice in the constructor. (bug
2187 found by Jesse Luehrs, fixed by Dave Rolsky)
2188 - added tests for this (Dave Rolsky)
2189 - fix typo in initialize_body method (nothingmuch)
2191 * Moose::Meta::Method::Destructor
2192 - fix typo in initialize_body method (nothingmuch)
2194 * Moose::Meta::Method::Overriden
2195 Moose::Meta::Method::Augmented
2196 - moved the logic for these into their own
2197 classes (nothingmuch)
2199 * Moose::Meta::Attribute
2200 - inherited attributes may now be extended without
2201 restriction on the type ('isa', 'does') (Sartak)
2202 - added tests for this (Sartak)
2203 - when an attribute property is malformed (such as lazy without
2204 a default), give the name of the attribute in the error
2206 - added the &applied_traits and &has_applied_traits methods
2207 to allow introspection of traits
2208 - added tests for this
2209 - moved 'trait' and 'metaclass' argument handling to here from
2211 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2212 '+foo' syntax) (nothingmuch)
2213 - added tests for this (t0m)
2216 - localize $@ inside DEMOLISHALL to avoid it
2217 eating $@ (found by Ernesto)
2218 - added test for this (thanks to Ernesto)
2220 * Moose::Util::TypeConstraints
2221 - &find_type_constraint now DWIMs when given an
2222 type constraint object or name (nothingmuch)
2223 - &find_or_create_type_constraint superseded with a number of more
2225 - find_or_create_{isa,does}_type_constraint
2226 - find_or_parse_type_constraint
2228 * Moose::Meta::TypeConstraint
2229 Moose::Meta::TypeConstraint::Class
2230 Moose::Meta::TypeConstraint::Role
2231 Moose::Meta::TypeConstraint::Enum
2232 Moose::Meta::TypeConstraint::Union
2233 Moose::Meta::TypeConstraint::Parameterized
2234 - added the &equals method for comparing two type
2235 constraints (nothingmuch)
2236 - added tests for this (nothingmuch)
2238 * Moose::Meta::TypeConstraint
2239 - add the &parents method, which is just an alias to &parent.
2240 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2242 * Moose::Meta::TypeConstraint::Class
2243 - added the class attribute for introspection purposes
2245 - added tests for this
2247 * Moose::Meta::TypeConstraint::Enum
2248 Moose::Meta::TypeConstraint::Role
2249 - broke these out into their own classes (nothingmuch)
2251 * Moose::Cookbook::Recipe*
2252 - fixed references to test file locations in the POD
2253 and updated up some text for new Moose features
2257 - Added &resolve_metaclass_alias, a helper function for finding an actual
2258 class for a short name (e.g. in the traits list)
2260 0.40 Fri. March 14, 2008
2261 - I hate Pod::Coverage
2263 0.39 Fri. March 14, 2008
2265 - documenting the use of '+name' with attributes
2266 that come from recently composed roles. It makes
2267 sense, people are using it, and so why not just
2268 officially support it.
2269 - fixing the 'extends' keyword so that it will not
2270 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2273 - added the perl -Moose=+Class::Name feature to allow
2274 monkeypatching of classes in one liners
2277 - fixing the 'apply_all_roles' keyword so that it will not
2278 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2280 * Moose::Meta::Class
2281 - added ->create method which now supports roles (thanks to jrockway)
2282 - added tests for this
2283 - added ->create_anon_class which now supports roles and caching of
2284 the results (thanks to jrockway)
2285 - added tests for this
2286 - made ->does_role a little more forgiving when it is
2287 checking a Class::MOP era metaclasses.
2289 * Moose::Meta::Role::Application::ToInstance
2290 - it is now possible to pass extra params to be used when
2291 a role is applied to an the instance (rebless_params)
2292 - added tests for this
2294 * Moose::Util::TypeConstraints
2295 - class_type now accepts an optional second argument for a
2296 custom message. POD anotated accordingly (groditi)
2297 - added tests for this
2298 - it is now possible to make anon-enums by passing 'enum' an
2299 ARRAY ref instead of the $name => @values. Everything else
2301 - added tests for this
2304 - making test for using '+name' on attributes consumed
2305 from a role, it works and makes sense too.
2307 * Moose::Meta::Attribute
2308 - fix handles so that it doesn't return nothing
2309 when the method cannot be found, not sure why
2310 it ever did this originally, this means we now
2311 have slightly better support for AUTOLOADed
2313 - added more delegation tests
2314 - adding ->does method to this so as to better
2315 support traits and their introspection.
2316 - added tests for this
2319 - localizing the Data::Dumper configurations so
2320 that it does not pollute others (RT #33509)
2321 - made ->does a little more forgiving when it is
2322 passed Class::MOP era metaclasses.
2324 0.38 Fri. Feb. 15, 2008
2325 * Moose::Meta::Attribute
2326 - fixed initializer to correctly do
2327 type checking and coercion in the
2329 - added tests for this
2332 - fixed some finicky tests (thanks to konobi)
2334 0.37 Thurs. Feb. 14, 2008
2336 - fixed some details in Moose::init_meta
2337 and its superclass handling (thanks thepler)
2338 - added tests for this (thanks thepler)
2339 - 'has' now dies if you don't pass in name
2341 - added the 'make_immutable' keyword as a shortcut
2344 * Moose::Meta::Class
2345 Moose::Meta::Method::Constructor
2346 Moose::Meta::Attribute
2347 - making (init_arg => undef) work here too
2348 (thanks to nothingmuch)
2350 * Moose::Meta::Attribute
2351 Moose::Meta::Method::Constructor
2352 Moose::Meta::Method::Accessor
2353 - make lazy attributes respect attr initializers (rjbs)
2354 - added tests for this
2356 * Moose::Util::TypeConstraints
2357 Moose::Util::TypeConstraints::OptimizedConstraints
2358 Moose::Meta::TypeConstraints
2359 Moose::Meta::Attribute
2360 Moose::Meta::Method::Constructor
2361 Moose::Meta::Method::Accessor
2362 - making type errors use the
2363 assigned message (thanks to Sartak)
2364 - added tests for this
2366 * Moose::Meta::Method::Destructor
2367 - making sure DESTROY gets inlined properly
2368 with successive DEMOLISH calls (thanks to manito)
2370 * Moose::Meta::Attribute
2371 Moose::Meta::Method::Accessor
2372 - fixed handling of undef with type constraints
2374 - added tests for this
2377 - added &get_all_init_args and &get_all_attribute_values
2378 (thanks to Sartak and nothingmuch)
2380 0.36 Sat. Jan. 26, 2008
2382 Moose::Meta::Attribute
2383 - role type tests now support when roles are
2384 applied to non-Moose classes (found by ash)
2385 - added tests for this (thanks to ash)
2386 - couple extra tests to boost code coverage
2388 * Moose::Meta::Method::Constructor
2389 - improved fix for handling Class::MOP attributes
2390 - added test for this
2392 * Moose::Meta::Class
2393 - handled the add_attribute($attribute_meta_object)
2395 - added test for this
2397 0.35 Tues. Jan. 22, 2008
2398 * Moose::Meta::Method::Constructor
2399 - fix to make sure even Class::MOP attributes
2400 are handled correctly (Thanks to Dave Rolsky)
2401 - added test for this (also Dave Rolsky)
2403 * Moose::Meta::Class
2404 - improved error message on _apply_all_roles,
2405 you should now use Moose::Util::apply_all_roles
2406 and you shouldnt have been using a _ prefixed
2407 method in the first place ;)
2409 0.34 Mon. Jan. 21, 2008
2410 ~~~ more misc. doc. fixes ~~~
2411 ~~ updated copyright dates ~~
2413 Moose is now a postmodern object system :)
2414 - (see the POD for details)
2416 * <<Role System Refactoring>>
2417 - this release contains a major reworking and
2418 cleanup of the role system
2419 - 100% backwards compat.
2420 - Role application now restructured into seperate
2421 classes based on type of applicants
2422 - Role summation (combining of more than one role)
2423 is much cleaner and anon-classes are no longer
2424 used in this process
2425 - new Composite role metaclass
2426 - runtime application of roles to instances
2427 is now more efficient and re-uses generated
2428 classes when applicable
2430 * <<New Role composition features>>
2431 - methods can now be excluded from a given role
2433 - methods can now be aliased to another name (and
2434 still retain the original as well)
2436 * Moose::Util::TypeConstraints::OptimizedConstraints
2437 - added this module (see above)
2439 * Moose::Meta::Class
2440 - fixed the &_process_attribute method to be called
2441 by &add_attribute, so that the API is now correct
2443 * Moose::Meta::Method::Accessor
2444 - fixed bug when passing a list of values to
2445 an accessor would get (incorrectly) ignored.
2446 Thanks to Sartak for finding this ;)
2447 - added tests for this (Sartak again)
2449 * Moose::Meta::Method::Accessor
2450 Moose::Meta::Method::Constructor
2451 Moose::Meta::Attribute
2452 Moose::Meta::TypeConstraint
2453 Moose::Meta::TypeCoercion
2454 - lots of cleanup of such things as:
2456 - type constraint handling
2457 - error handling/messages
2458 (thanks to nothingmuch)
2460 * Moose::Meta::TypeConstraint::Parameterizable
2461 - added this module to support the refactor
2462 in Moose::Meta::TypeConstraint::Parameterized
2464 * Moose::Meta::TypeConstraint::Parameterized
2465 - refactored how these types are handled so they
2466 are more generic and not confined to ArrayRef
2470 - shortened some file names for better VMS support (RT #32381)
2472 0.33 Fri. Dec. 14, 2007
2473 !! Moose now loads 2 x faster !!
2474 !! with new Class::MOP 0.49 !!
2476 ++ new oose.pm module to make command line
2477 Moose-ness easier (see POD docs for more)
2479 * Moose::Meta::Class
2481 - several tweaks to take advantage of the
2482 new method map caching in Class::MOP
2484 * Moose::Meta::TypeConstraint::Parameterized
2485 - allow subtypes of ArrayRef and HashRef to
2486 be used as a container (sartak)
2487 - added tests for this
2488 - basic support for coercion to ArrayRef and
2489 HashRef for containers (sartak)
2490 - added tests for this
2492 * Moose::Meta::TypeCoercion
2493 - coercions will now create subtypes as needed
2494 so you can now add coercions to parameterized
2495 types without having to explictly define them
2496 - added tests for this
2498 * Moose::Meta::Method::Accessor
2499 - allow subclasses to decide whether we need
2500 to copy the value into a new variable (sartak)
2502 0.32 Tues. Dec. 4, 2007
2503 * Moose::Util::TypeConstraints
2504 - fixing how subtype aliases of unions work
2505 they should inherit the parent's coercion
2506 - added tests for this
2507 - you can now define multiple coercions on
2508 a single type at different times instead of
2509 having to do it all in one place
2510 - added tests for this
2512 * Moose::Meta::TypeConstraint
2513 - there is now a default constraint of sub { 1 }
2514 instead of Moose::Util::TypeConstraints setting
2517 * Moose::Meta::TypeCoercion
2518 * Moose::Meta::TypeCoercion::Union
2519 - added the &has_coercion_for_type and
2520 &add_type_coercions methods to support the
2521 new features above (although you cannot add
2522 more type coercions for Union types)
2524 0.31 Mon. Nov. 26, 2007
2525 * Moose::Meta::Attribute
2526 - made the +attr syntax handle extending types with
2527 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2528 now works if the original foo is an ArrayRef.
2529 - added tests for this.
2530 - delegation now works even if the attribute does not
2531 have a reader method using the get_read_method_ref
2532 method from Class::MOP::Attribute.
2533 - added tests for this
2534 - added docs for this
2536 * Moose::Util::TypeConstraints
2537 - passing no "additional attribute info" to
2538 &find_or_create_type_constraint will no longer
2539 attempt to create an __ANON__ type for you,
2540 instead it will just return undef.
2541 - added docs for this
2543 0.30 Fri. Nov. 23, 2007
2544 * Moose::Meta::Method::Constructor
2545 -builder related bug in inlined constructor. (groditi)
2547 * Moose::Meta::Method::Accessor
2548 - genereate unnecessary calls to predicates and refactor
2549 code generation for runtime speed (groditi)
2551 * Moose::Util::TypeConstraints
2552 - fix ClassName constraint to introspect symbol table (mst)
2553 - added more tests for this (mst)
2554 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2555 with work correctly.
2556 - added tests for this
2559 - adding the link to Recipie 11 (written by Sartak)
2560 - adding test for SYNOPSIS code
2563 - New tests for builder bug. Upon instantiation, if an
2564 attribute had a builder, no value and was not lazy the
2565 builder default was not getting run, oops. (groditi)
2567 0.29 Tues. Nov. 13, 2007
2568 * Moose::Meta::Attribute
2569 - Fix error message on missing builder method (groditi)
2571 * Moose::Meta::Method::Accessor
2572 - Fix error message on missing builder method (groditi)
2575 - Add test to check for the correct error message when
2576 builder method is missing (groditi)
2578 0.28 Tues. Nov. 13, 2007
2579 - 0.27 packaged incorrectly (groditi)
2581 0.27 Tues. Nov. 13, 2007
2582 * Moose::Meta::Attribute
2583 - Added support for the new builder option (groditi)
2584 - Added support for lazy_build option (groditi)
2585 - Changed slot initialization for predicate changes (groditi)
2587 * Moose::Meta::Method::Accessor
2588 - Added support for lazy_build option (groditi)
2589 - Fix inline methods to work with corrected predicate
2592 * Moose::Meta::Method::Constructor
2593 - Added support for lazy_build option (groditi)
2596 - tests for builder and lazy_build (groditi)
2598 * fixing some misc. bits in the docs that
2599 got mentioned on CPAN Forum & perlmonks
2602 - fixed how required methods are handled
2603 when they encounter overriden or modified
2604 methods from a class (thanks to confound).
2605 - added tests for this
2607 * Moose::Util::TypeConstraint
2608 - fixed the type notation parser so that
2609 the | always creates a union and so is
2610 no longer a valid type char (thanks to
2611 konobi, mugwump and #moose for working
2613 - added more tests for this
2615 0.26 Thurs. Sept. 27, 2007
2618 * Parameterized Types
2619 We now support parameterized collection types, such as:
2620 ArrayRef[Int] # array or integers
2621 HashRef[Object] # a hash with object values
2622 They can also be nested:
2623 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2624 And work with the type unions as well:
2625 ArrayRef[Int | Str] # array of integers of strings
2627 * Better Framework Extendability
2628 Moose.pm is now "extendable" such that it is now much
2629 easier to extend the framework and add your own keywords
2630 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2631 section of the Moose.pm docs.
2634 In an effort to begin documenting some of the various
2635 details of Moose as well as some common idioms, we have
2636 created Moose::Cookbook::Snacks as a place to find
2637 small (easily digestable) nuggets of Moose code.
2640 ~ Several doc updates/cleanup thanks to castaway ~
2642 - converted build system to use Module::Install instead of
2643 Module::Build (thanks to jrockway)
2646 - added all the meta classes to the immutable list and
2647 set it to inline the accessors
2648 - fix import to allow Sub::Exporter like { into => }
2649 and { into_level => } (perigrin)
2650 - exposed and documented init_meta() to allow better
2651 embedding and extending of Moose (perigrin)
2654 - complete re-organization of the test suite
2655 - added some new tests as well
2656 - finally re-enabled the Moose::POOP test since
2657 the new version of DBM::Deep now works again
2660 * Moose::Meta::Class
2661 - fixed very odd and very nasty recursion bug with
2663 - added tests for this (eilara)
2665 * Moose::Meta::Attribute
2666 Moose::Meta::Method::Constructor
2667 Moose::Meta::Method::Accessor
2668 - fixed issue with overload::Overloaded getting called
2669 on non-blessed items. (RT #29269)
2670 - added tests for this
2672 * Moose::Meta::Method::Accessor
2673 - fixed issue with generated accessor code making
2674 assumptions about hash based classes (thanks to dexter)
2676 * Moose::Coookbook::Snacks
2677 - these are bits of documentation, not quite as big as
2678 Recipes but which have no clear place in the module docs.
2679 So they are Snacks! (horray for castaway++)
2681 * Moose::Cookbook::Recipe4
2682 - updated it to use the new ArrayRef[MyType] construct
2683 - updated the accompanying test as well
2685 +++ Major Refactor of the Type Constraint system +++
2686 +++ with new features added as well +++
2688 * Moose::Util::TypeConstraint
2689 - no longer uses package variable to keep track of
2690 the type constraints, now uses the an instance of
2691 Moose::Meta::TypeConstraint::Registry to do it
2692 - added more sophisticated type notation parsing
2694 - added tests for this
2696 * Moose::Meta::TypeConstraint
2697 - some minor adjustments to make subclassing easier
2698 - added the package_defined_in attribute so that we
2699 can track where the type constraints are created
2701 * Moose::Meta::TypeConstraint::Union
2702 - this is now been refactored to be a subclass of
2703 Moose::Meta::TypeConstraint
2705 * Moose::Meta::TypeCoercion::Union
2706 - this has been added to service the newly refactored
2707 Moose::Meta::TypeConstraint::Union and is itself
2708 a subclass of Moose::Meta::TypeCoercion
2710 * Moose::Meta::TypeConstraint::Parameterized
2711 - added this module (taken from MooseX::AttributeHelpers)
2712 to help construct nested collection types
2713 - added tests for this
2715 * Moose::Meta::TypeConstraint::Registry
2716 - added this class to keep track of type constraints
2718 0.25 Mon. Aug. 13, 2007
2720 - Documentation update to reference Moose::Util::TypeConstraints
2721 under 'isa' in 'has' for how to define a new type
2722 (thanks to shlomif).
2724 * Moose::Meta::Attribute
2725 - required attributes now will no longer accept undef
2726 from the constructor, even if there is a default and lazy
2727 - added tests for this
2728 - default subroutines must return a value which passes the
2730 - added tests for this
2732 * Moose::Meta::Attribute
2733 * Moose::Meta::Method::Constructor
2734 * Moose::Meta::Method::Accessor
2735 - type-constraint tests now handle overloaded objects correctly
2736 in the error message
2737 - added tests for this (thanks to EvanCarroll)
2739 * Moose::Meta::TypeConstraint::Union
2740 - added (has_)hand_optimized_constraint to this class so that
2741 it behaves as the regular Moose::Meta::TypeConstraint does.
2744 - large refactoring of this code
2745 - added several more tests
2746 - tests for subtle conflict resolition issues
2747 added, but not currently running
2750 * Moose::Cookbook::Recipe7
2751 - added new recipe for augment/inner functionality
2753 - added test for this
2756 - a formal definition of roles (still in progress)
2759 - utilities for easier working with Moose classes
2760 - added tests for these
2763 - This contains Moose specific test functions
2764 - added tests for these
2766 0.24 Tues. July 3, 2007
2767 ~ Some doc updates/cleanup ~
2769 * Moose::Meta::Attribute
2770 - added support for roles to be given as parameters
2771 to the 'handles' option.
2772 - added tests and docs for this
2773 - the has '+foo' attribute form now accepts changes to
2774 the lazy option, and the addition of a handles option
2775 (but not changing the handles option)
2776 - added tests and docs for this
2779 - required methods are now fetched using find_method_by_name
2780 so that required methods can come from superclasses
2781 - adjusted tests for this
2783 0.23 Mon. June 18, 2007
2784 * Moose::Meta::Method::Constructor
2785 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2786 * Moose::Meta::Class
2787 - Modify make_immutable to work with the new Class::MOP immutable
2788 mechanism + POD + very basic test (groditi)
2789 * Moose::Meta::Attribute
2790 - Fix handles to use goto() so that caller() comes out properly on
2791 the other side (perigrin)
2793 0.22 Thurs. May 31, 2007
2794 * Moose::Util::TypeConstraints
2795 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2796 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2797 prototypes for functions
2798 - added the ClassName type constraint, this checks for strings
2799 which will respond true to ->isa(UNIVERSAL).
2800 - added tests and docs for this
2801 - subtyping just in name now works correctly by making the
2802 default for where be { 1 }
2803 - added test for this
2805 * Moose::Meta::Method::Accessor
2806 - coerce and lazy now work together correctly, thanks to
2807 merlyn for finding this bug
2808 - tests added for this
2809 - fix reader presedence bug in Moose::Meta::Attribute + tests
2812 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2813 a HASH-ref and missed. This produces better error messages then
2814 having it die cause undef is not a HASH.
2815 - added tests for this
2817 0.21 Thursday, May 2nd, 2007
2819 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2820 - modified unimport to remove super and inner along with the rest
2821 - altered unimport tests to handle this
2824 - altered super export to populate SUPER_SLOT
2826 * Moose::Meta::Class
2827 - altered augment and override modifier application to use *_SLOT
2828 - modified tests for these to unimport one test class each to test
2831 - fixed issue where custom attribute metaclasses
2832 where not handled correctly in roles
2833 - added tests for this
2835 * Moose::Meta::Class
2836 - fixed issue where extending metaclasses with
2837 roles would blow up. Thanks to Aankhen`` for
2838 finding this insidious error, and it's solution.
2840 ~~ lots of spelling and grammer fixes in the docs,
2841 many many thanks to rlb3 and Aankhen for these :)
2843 0.20 Friday, April 6th, 2007
2844 >> I messed up the SKIP logic in one test
2845 so this release is just to fix that.
2848 - 'has' now also accepts an ARRAY ref
2849 to create multiple attrs (see docs)
2850 (thanks to konobi for this)
2851 - added tests and docs
2853 0.19 Thurs. April 5th, 2007
2854 ~~ More documentation updates ~~
2856 * Moose::Util::TypeConstraints
2857 - 'type' now supports messages as well
2858 thanks to phaylon for finding this
2859 - added tests for this
2860 - added &list_all_type_constraints and
2861 &list_all_builtin_type_constraints
2862 functions to facilitate introspection.
2864 * Moose::Meta::Attribute
2865 - fixed regexp 'handles' declarations
2866 to build the list of delegated methods
2867 correctly (and not override important
2868 things like &new) thanks to ashleyb
2870 - added tests and docs for this
2871 - added the 'documentation' attributes
2872 so that you can actually document your
2873 attributes and inspect them through the
2875 - added tests and docs for this
2877 * Moose::Meta::Class
2878 - when loading custom attribute metaclasses
2879 it will first look in for the class in the
2880 Moose::Meta::Attribute::Custom::$name, and
2881 then default to just loading $name.
2882 - added tests and docs for this
2884 * Moose::Meta::TypeConstraint
2885 - type constraints now stringify to their names.
2886 - added test for this
2889 - added tests to assure we work with Module::Refresh
2890 - added stricter test skip logic in the Moose POOP
2891 test, ask Rob Kinyon why.
2892 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2894 0.18 Sat. March 10, 2007
2895 ~~ Many, many documentation updates ~~
2898 - We now use Class::MOP::load_class to
2900 - added tests to show types and subtypes
2901 working with Declare::Constraints::Simple
2902 and Test::Deep as constraint engines.
2905 !! You must have Class::MOP 0.37_001 !!
2906 !! for this developer release to work !!
2908 This release was primarily adding the immutable
2909 feature to Moose. An immutable class is one which
2910 you promise not to alter. When you set the class
2911 as immutable it will perform various bits of
2912 memoization and inline certain part of the code
2913 (constructors, destructors and accessors). This
2914 minimizes (and in some cases totally eliminates)
2915 one of Moose's biggest performance hits. This
2916 feature is not on by default, and is 100% optional.
2917 It has several configurable bits as well, so you
2918 can pick and choose to your specific needs.
2920 The changes involved in this were fairly wide and
2921 highly specific, but 100% backwards compatible, so
2922 I am not going to enumerate them here. If you are
2923 truely interested in what was changed, please do
2926 0.17 Tues. Nov. 14, 2006
2927 * Moose::Meta::Method::Accessor
2928 - bugfix for read-only accessors which
2929 are have a type constraint and lazy.
2930 Thanks to chansen for finding it.
2932 0.16 Tues. Nov. 14, 2006
2934 There are some speed improvements in this release,
2935 but they are only the begining, so stay tuned.
2938 - BUILDALL and DEMOLISHALL no longer get
2939 called unless they actually need to be.
2940 This gave us a signifigant speed boost
2941 for the cases when there is no BUILD or
2942 DEMOLISH method present.
2944 * Moose::Util::TypeConstraints
2945 * Moose::Meta::TypeConstraint
2946 - added an 'optimize_as' option to the
2947 type constraint, which allows for a
2948 hand optimized version of the type
2949 constraint to be used when possible.
2950 - Any internally created type constraints
2951 now provide an optimized version as well.
2953 0.15 Sun. Nov. 5, 2006
2955 This version of Moose *must* have Class::MOP 0.36 in order
2956 to work correctly. A number of small internal tweaks have
2957 been made in order to be compatible with that release.
2959 * Moose::Util::TypeConstraints
2960 - added &unimport so that you can clean out
2961 your class namespace of these exported
2964 * Moose::Meta::Class
2965 - fixed minor issue which occasionally
2966 comes up during global destruction
2968 - moved Moose::Meta::Method::Overriden into
2972 - moved Moose::Meta::Role::Method into
2975 * Moose::Meta::Attribute
2976 - changed how we do type checks so that
2977 we reduce the overall cost, but still
2980 - moved accessor generation methods to
2981 Moose::Meta::Method::Accessor to
2982 conform to the API changes from
2985 * Moose::Meta::TypeConstraint
2986 - changed how constraints are compiled
2987 so that we do less recursion and more
2988 iteration. This makes the type check
2990 - moved Moose::Meta::TypeConstraint::Union
2993 * Moose::Meta::Method::Accessor
2994 - created this from methods formerly found in
2995 Moose::Meta::Attribute
2997 * Moose::Meta::Role::Method
2998 - moved this from Moose::Meta::Role
3000 * Moose::Meta::Method::Overriden
3001 - moved this from Moose::Meta::Class
3003 * Moose::Meta::TypeConstraint::Union
3004 - moved this from Moose::Meta::TypeConstraint
3006 0.14 Mon. Oct. 9, 2006
3008 * Moose::Meta::Attribute
3009 - fixed lazy attributes which were not getting
3010 checked with the type constraint (thanks ashley)
3011 - added tests for this
3012 - removed the over-enthusiastic DWIMery of the
3013 automatic ArrayRef and HashRef defaults, it
3014 broke predicates in an ugly way.
3015 - removed tests for this
3017 0.13 Sat. Sept. 30, 2006
3019 This version of Moose *must* have Class::MOP 0.35 in order
3020 to work correctly. A number of small internal tweaks have
3021 been made in order to be compatible with that release.
3024 - Removed the use of UNIVERSAL::require to be a better
3025 symbol table citizen and remove a dependency
3026 (thanks Adam Kennedy)
3028 **~~ removed experimental & undocumented feature ~~**
3029 - commented out the 'method' and 'self' keywords, see the
3030 comments for more info.
3033 - added a FAQ and WTF files to document frequently
3034 asked questions and common problems
3036 * Moose::Util::TypeConstraints
3037 - added GlobRef and FileHandle type constraint
3038 - added tests for this
3040 * Moose::Meta::Attribute
3041 - if your attribute 'isa' ArrayRef of HashRef, and you have
3042 not explicitly set a default, then make the default DWIM.
3043 This will also work for subtypes of ArrayRef and HashRef
3045 - you can now auto-deref subtypes of ArrayRef or HashRef too.
3046 - new test added for this (thanks to ashley)
3049 - added basic support for runtime role composition
3050 but this is still *highly experimental*, so feedback
3051 is much appreciated :)
3052 - added tests for this
3054 * Moose::Meta::TypeConstraint
3055 - the type constraint now handles the coercion process
3056 through delegation, this is to support the coercion
3059 * Moose::Meta::TypeConstraint::Union
3060 - it is now possible for coercions to be performed
3062 - added tests for this (thanks to konobi)
3064 * Moose::Meta::TypeCoercion
3065 - properly capturing error when type constraint
3069 - Scalar::Util 1.18 is bad on Win32, so temporarily
3070 only require version 1.17 for Win32 and cygwin.
3071 (thanks Adam Kennedy)
3073 0.12 Sat. Sept. 1, 2006
3075 - Recipe5 (subtypes & coercion) has been written
3078 - fixed "bad meta" error message to be more descriptive
3079 - fixed &unimport to not remove the &inner and &super
3080 keywords because we need to localize them.
3081 - fixed number of spelling/grammer issues, thanks Theory :)
3083 **~~ experimental & undocumented feature ~~**
3084 - added the method and self keywords, they are basically
3085 just sugar, and they may not stay around.
3088 - added &dump method to easily Data::Dumper
3091 * Moose::Meta::TypeConstraint
3092 - added the &is_a_type_of method to check both the current
3093 and the subtype of a method (similar to &isa with classes)
3096 - this is now a subclass of Class::MOP::Module, and no longer
3097 creates the _role_meta ugliness of before.
3098 - fixed tests to reflect this change
3100 0.11 Wed. July 12, 2006
3102 - added an &unimport method to remove all the keywords
3103 that Moose will import, simply add 'no Moose' to the
3104 bottom of your class file.
3107 - fixed some test failures caused by a forgotten test
3110 0.10 Thurs. July 6, 2006
3112 - improved error message when loading modules so
3113 it is less confusing when you load a role.
3114 - added &calculate_all_roles method to
3115 Moose::Meta::Class and Moose::Meta::Role
3118 This module has been tested against Class::MOP 0.30
3119 but it does not yet utilize the optimizations
3120 it makes available. Stay tuned for that ;)
3122 0.09_03 Fri. June 23, 2006
3123 ++ DEVELOPER RELEASE ++
3125 - 'use strict' and 'use warnings' are no longer
3126 needed in Moose classes, Moose itself will
3127 turn them on for you.
3128 - added tests for this
3129 - moved code from exported subs to private methods
3130 in Moose::Meta::Class
3133 - as with Moose, strict and warnings are
3134 automatically turned on for you.
3135 - added tests for this
3138 - now handles an edge case for override errors
3139 - added tests for this
3140 - added some more edge case tests
3142 0.09_02 Tues. May 16, 2006
3143 ++ DEVELOPER RELEASE ++
3145 - added prototypes to the exported subs
3149 - added prototypes to the exported subs
3152 * Moose::Util::TypeConstraints
3153 - cleaned up prototypes for the subs
3156 0.09_01 Fri. May 12, 2006
3157 ++ DEVELOPER RELEASE ++
3158 - This release works in combination with
3159 Class::MOP 0.29_01, it is a developer
3160 release because it uses the a new
3161 instance sub-protocol and a fairly
3162 complete Role implementation. It has
3163 not yet been optimized, so it slower
3164 the the previous CPAN version. This
3165 release also lacks good updated docs,
3166 the official release will have updated docs.
3169 - refactored the keyword exports
3170 - 'with' now checks Role validaity and
3171 accepts more than one Role at a time
3172 - 'extends' makes metaclass adjustments as
3173 needed to ensure metaclass compatibility
3176 - refactored the keyword exports
3177 - 'with' now checks Role validaity and
3178 accepts more than one Role at a time
3180 * Moose::Util::TypeConstraints
3181 - added the 'enum' keyword for simple
3182 string enumerations which can be used as
3184 - see example of usage in t/202_example.t
3187 - more careful checking of params to new()
3190 - much work done on the role composition
3191 - many new tests for conflict detection
3192 and composition edge cases
3193 - not enough documentation, I suggest
3194 looking at the tests
3196 * Moose::Meta::Instance
3197 - added new Instance metaclass to support
3198 the new Class::MOP instance protocol
3200 * Moose::Meta::Class
3201 - some small changes to support the new
3203 - some small additions to support Roles
3205 * Moose::Meta::Attribute
3206 - some improvements to the accessor generation code
3208 - some small changes to support the new
3210 - (still somewhat) experimental delegation support
3211 with the 'handles' option
3212 - added several tests for this
3213 - no docs for this yet
3215 0.05 Thurs. April 27, 2006
3217 - keywords are now exported with Sub::Exporter
3218 thanks to chansen for this commit
3219 - has keyword now takes a 'metaclass' option
3220 to support custom attribute meta-classes
3221 on a per-attribute basis
3222 - added tests for this
3223 - the 'has' keyword not accepts inherited slot
3224 specifications (has '+foo'). This is still an
3225 experimental feature and probably not finished
3226 see t/038_attribute_inherited_slot_specs.t for
3227 more details, or ask about it on #moose
3228 - added tests for this
3231 - keywords are now exported with Sub::Exporter
3233 * Moose::Utils::TypeConstraints
3234 - reorganized the type constraint hierarchy, thanks
3235 to nothingmuch and chansen for his help and advice
3237 - added some tests for this
3238 - keywords are now exported with Sub::Exporter
3239 thanks to chansen for this commit
3241 * Moose::Meta::Class
3242 - due to changes in Class::MOP, we had to change
3243 construct_instance (for the better)
3245 * Moose::Meta::Attribute
3246 - due to changes in Class::MOP, we had to add the
3247 initialize_instance_slot method (it's a good thing)
3249 * Moose::Meta::TypeConstraint
3250 - added type constraint unions
3251 - added tests for this
3252 - added the is_subtype_of predicate method
3253 - added tests for this
3255 0.04 Sun. April 16th, 2006
3257 - Roles can now consume other roles
3258 - added tests for this
3259 - Roles can specify required methods now with
3260 the requires() keyword
3261 - added tests for this
3264 - ripped out much of it's guts ,.. much cleaner now
3265 - added required methods and correct handling of
3266 them in apply() for both classes and roles
3267 - added tests for this
3268 - no longer adds a does() method to consuming classes
3269 it relys on the one in Moose::Object
3270 - added roles attribute and some methods to support
3271 roles consuming roles
3273 * Moose::Meta::Attribute
3274 - added support for triggers on attributes
3275 - added tests for this
3276 - added support for does option on an attribute
3277 - added tests for this
3279 * Moose::Meta::Class
3280 - added support for attribute triggers in the
3282 - added tests for this
3285 - Moose no longer creates a subtype for your class
3286 if a subtype of the same name already exists, this
3287 should DWIM in 99.9999% of all cases
3289 * Moose::Util::TypeConstraints
3290 - fixed bug where incorrect subtype conflicts were
3292 - added test for this
3295 - this class can now be extended with 'use base' if
3296 you need it, it properly loads the metaclass class now
3297 - added test for this
3299 0.03_02 Wed. April 12, 2006
3301 - you must now explictly use Moose::Util::TypeConstraints
3302 it no longer gets exported for you automatically
3305 - new() now accepts hash-refs as well as key/value lists
3306 - added does() method to check for Roles
3307 - added tests for this
3309 * Moose::Meta::Class
3310 - added roles attribute along with the add_role() and
3312 - added tests for this
3315 - now adds a does() method to consuming classes
3316 which tests the class's hierarchy for roles
3317 - added tests for this
3319 0.03_01 Mon. April 10, 2006
3321 - added new Role recipe (no content yet, only code)
3324 - added 'with' keyword for Role support
3325 - added test and docs for this
3326 - fixed subtype quoting bug
3327 - added test for this
3331 - added test and docs
3333 * Moose::Util::TypeConstraints
3334 - added the message keyword to add custom
3335 error messages to type constraints
3338 - the meta role to support Moose::Role
3339 - added tests and docs
3341 * Moose::Meta::Class
3342 - moved a number of things from Moose.pm
3343 to here, they should have been here
3346 * Moose::Meta::Attribute
3347 - moved the attribute option macros here
3348 instead of putting them in Moose.pm
3350 * Moose::Meta::TypeConstraint
3351 - added the message attributes and the
3353 - added tests and docs for this
3355 0.03 Thurs. March 30, 2006
3357 - added the Moose::Cookbook with 5 recipes,
3358 describing all the stuff Moose can do.
3361 - fixed an issue with &extends super class loading
3362 it now captures errors and deals with inline
3363 packages correctly (bug found by mst, solution
3365 - added super/override & inner/augment features
3366 - added tests and docs for these
3369 - BUILDALL now takes a reference of the %params
3370 that are passed to &new, and passes that to
3373 * Moose::Util::TypeConstraints
3374 - Type constraints now survive runtime reloading
3375 - added test for this
3377 * Moose::Meta::Class
3378 - fixed the way attribute defaults are handled
3379 during instance construction (bug found by chansen)
3381 * Moose::Meta::Attribute
3382 - read-only attributes now actually enforce their
3383 read-only-ness (this corrected in Class::MOP as
3386 0.02 Tues. March 21, 2006
3388 - many more tests, fixing some bugs and
3390 - &extends now loads the base module with
3392 - added UNIVERSAL::require to the
3395 - each new Moose class will also create
3396 and register a subtype of Object which
3397 correspond to the new Moose class.
3398 - the 'isa' option in &has now only
3399 accepts strings, and will DWIM in
3402 * Moose::Util::TypeConstraints
3403 - added type coercion features
3404 - added tests for this
3405 - added support for this in attributes
3406 and instance construction
3408 - type construction no longer creates a
3409 function, it registers the type instead.
3410 - added several functions to get the
3414 - BUILDALL and DEMOLISHALL were broken
3415 because of a mis-named hash key, Whoops :)
3417 * Moose::Meta::Attribute
3418 - adding support for coercion in the
3419 autogenerated accessors
3421 * Moose::Meta::Class
3422 - adding support for coercion in the
3423 instance construction
3425 * Moose::Meta::TypeConstraint
3426 * Moose::Meta::TypeCoercion
3427 - type constraints and coercions are now
3428 full fledges meta-objects
3430 0.01 Wed. March 15, 2006
3431 - Moooooooooooooooooose!!!