1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Several things that have been deprecated for a while have been removed. See
9 the 2.0000 section in Moose::Manual::Delta for details.
13 * duck_type type constraints now report reasonable errors when given
14 something which isn't an instance of an object. (t0m)
16 2.0102 Sat, Jun 18, 2011
20 * The native Array trait now has a 'first_index' method, which works just
21 like the version in List::MoreUtils. (Karen Etheridge)
23 * Clean up some internal code to help out extensions.
27 * Include changes from Moose 2.0008.
29 2.0101 Mon, Jun 06, 2011
33 * Various packaging issues.
35 2.0100 Mon, Jun 06, 2011
39 * Using a hand-optimized type constraint is now deprecated. In keeping with
40 our release policy, this won't actually start warning until the 2.0200
45 * Type constraints can now provide inlined versions, which should make
46 inlined code which uses type constraints (such as accessors) faster. This
47 replaces the existing hand-optimized constraint feature. (Dave Rolsky)
51 * Remove a lot of cases where generated methods closed over meta objects.
52 Most simple cases should now only close over simple data types and
53 coderefs. This should make deparsing simpler.
55 2.0008 Thu, Jun 16, 2011
59 * The 'accessor' native delegation for hashrefs now allows setting the value
60 to undef. (sugoik, doy)
64 * Various generated methods have more useful context information. (doy)
66 2.0007 Sun, May 15, 2011
70 * Make sure weak attributes remain weak when cloning. (doy, rafl)
72 2.0006 Mon, May 09, 2011
76 * Revert the List::MoreUtils version bump, as it breaks backwards
77 compatibility. The dependency will be bumped with Moose 2.0200.
79 2.0005 Mon, May 09, 2011
83 * Only sort the alias keys when determining caching.
85 2.0004 Mon, May 09, 2011
89 * Bump the List::MoreUtils dep to avoid buggy behavior in old versions.
91 * Sort the list of roles and the alias and excludes parameters when
92 determining caching, since their order doesn't matter.
94 2.0003 Mon, May 09, 2011
98 * Applying multiple role objects (rather than role names) at once no longer
99 skips every other role. (rjbs)
101 * Caching of anon classes now works more sanely in the presence of role
102 application parameters - alias and excludes options are taken into account,
103 and caching is disabled entirely if other parameters exist. Asking for
104 caching (instead of just not weakening) when parameters are given will
105 begin warning in Moose 2.0200. (doy, autarch)
107 2.0002 Thu, Apr 28, 2011
111 * Provide definition context information for constructors and destructors, so
112 that they will show up as something other than "generated method (unknown
113 origin)". Also, add the package that accessors are defined in to their
116 * Use Devel::PartialDump in type constraint error messages, if it is
121 * Stop hiding warnings produced by throwing errors in DEMOLISH methods.
123 * The 'reset' native delegation for Counter attributes will now also respect
124 builders (previously, it only respected defaults).
126 2.0001 Fri, Apr 22, 2011
130 * Anonymous classes and roles now have a unified implementation in
131 Class::MOP::Package. This means that anonymous packages are now also
132 possible. (Shawn M Moore, doy)
136 * No longer call XSLoader from multiple places, as this causes issues on
137 older perls. (doy, ribasushi)
139 * Moose::Meta::Role->create now accepts the 'roles' parameter, as it was
140 documented to. (Chris Weyl)
142 * Depend on Eval::Closure 0.04, which fixes some issues in mod_perl
143 environments. (doy, mateu)
145 2.0000 Mon, Apr 11, 2011
149 * The RegexpRef type constraint now accepts regular expressions blessed into
150 other classes, such as those found in pluggable regexp engines.
151 Additionally the 'Object' constraint no longer rejects objects implemented
152 as a blessed regular expression. (David Leadbeater)
156 * Moose::Manual::Support now explicitly states when major releases are
157 allowed to happen (January, April, July, or October).
159 1.9906-TRIAL Mon, Apr 04, 2011
163 * Update conflicts list.
166 1.9905-TRIAL Mon, Mar 28, 2011
170 * The Moose::Meta::Role::Attribute class now has an original_role method
171 which returns the role which first defined an attribute. See the docs for
172 details. (Dave Rolsky)
174 * Moose::Util::MetaRole will make sure that the class to which you're
175 applying metaroles or base class roles can actually have them applied. If
176 not (it's not a Moose class, it has a non-Moose metaclass, etc.), then it
177 gives a useful error message. Previously, this would just end up dying in
178 the MetaRole code without a useful message. (Dave Rolsky)
182 * When a role had its own applied_attribute metaclass (usually from MetaRole
183 application), that metaclass would get lost when that role participated in
184 role composition. It was also lost if that role was consumed by some other
185 role. Both of these cases have been fixed. Attributes are always applied
186 with the applied_attribute metaclass of the role which originally defined
189 1.9904-TRIAL Fri, Mar 04, 2011
193 * Reinitializing anonymous roles used to accidentally clear out the role's
194 stash in some circumstances. This is now fixed. (doy)
196 * The Int type constraint now rejects integers with trailing newlines.
199 1.9903-TRIAL Mon, Feb 28, 2011
203 * Reverse the order that Moose::Exporter 'also' exports are dispatched. When
204 trying to re-export from a package that itself exported a modified set of
205 Moose sugar, you'd get the original Moose sugar instead of the overrides.
206 There are also now tests for this. (perigrin)
208 * Don't initialize lazy attributes with defaults in the constructor (for
209 immutable classes). (mo)
211 * When reinitializing meta objects for classes and roles, we failed to
212 preserve roles and role applications. This led to weird bugs. Many MooseX
213 modules end up reinitializing your class or role. (Dave Rolsky)
215 1.9902-TRIAL Mon, Jan 03, 2011
219 * Fix generation of CCFLAGS.
221 * Add a bit more Dist::Zilla functionality.
223 1.9901-TRIAL Mon, Jan 03, 2011
227 * Fix some indexing issues.
229 * Fix a few issues with the conflict checking stuff.
231 1.9900-TRIAL Sat, Jan 01, 2011
235 * The entire Class::MOP distribution has been merged with Moose. In the
236 future, the Class::MOP code itself will be merged into Moose, and
237 eventually the Class::MOP namespace will disappear entirely. For the
238 current release, we have simply changed how Class::MOP is
239 distributed. (Dave Rolsky).
241 * Switched to Dist::Zilla for development. However, we still have a minimal
242 Makefile.PL in the repository that can be used for development. (Dave
247 * Roles now have their own default attribute metaclass to use during
248 application to a class, rather than just using the class's
249 attribute_metaclass. This is also overridable via ::MetaRole, with the
250 applied_attribute key in the role_metaroles hashref (doy).
252 * The internal code used to generate inlined methods (accessor, constructor,
253 etc.) has been massively rewritten. MooseX modules that do inlining will
254 almost certainly need to be updated as well.
258 * We now load the roles needed for native delegations only as needed. This
259 speeds up the compilation time for Moose itself. (doy)
262 1.25 Fri, Apr 1, 2011
266 * Reinitializing anonymous roles used to accidentally clear out the role's
267 stash in some circumstances. This is now fixed. (doy) (backported from
271 1.24 Tue, Feb 24, 2011
275 * Reverse the order that Moose::Exporter 'also' exports are dispatched. When
276 trying to re-export from a package that itself exported a modified set of
277 Moose sugar, you'd get the original Moose sugar instead of the overrides.
278 There are also now tests for this. (perigrin) (backported from 1.9903)
281 1.23 Sun, Feb 13, 2011
285 * The 1.22 release had a bad MANIFEST. This has been fixed.
288 1.22 Sun, Feb 13, 2011
292 * When reinitializing meta objects for classes and roles, we failed to
293 preserve roles and role applications. This led to weird bugs. Many MooseX
294 modules end up reinitializing your class or role. (Dave Rolsky) (backported
297 1.21 Wed, Nov 24, 2010
301 * The Support manual has been updated to reflect our new major/minor version
302 policy. (Chris Prather)
304 * The Contributing manual has been updated to reflect workflow changes based
305 on this new support policy. (doy)
309 * The role attribute metaclass did not inherit from Class::MOP::Object,
310 which could cause errors when trying to resolve metaclass compatibility
311 issues. Reported by Daniel Ruoso. (doy)
313 * The lazy_build feature was accidentally removed from all the docs. Now
314 it's listed in Moose.pm again. (Chris Prather)
316 1.20 Fri, Nov 19, 2010
320 * When using native delegations, if an array or hash ref member failed a
321 type constraint check, Moose ended up erroring out with "Can't call method
322 "get_message" on unblessed reference" instead of generating a useful error
323 based on the failed type constraint. Reported by t0m. RT #63113. (Dave
326 1.19 Tue, Nov 2, 2010
330 * There was still one place in the code trying to load Test::Exception
331 instead of Test::Fatal. (Karen Etheridge)
334 1.18 Sun, Oct 31, 2010
338 * Type constraint objects now have an assert_coerce method which will either
339 return a valid value or throw an error. (rjbs)
341 * We now warn when an accessor for one attribute overwrites an accessor for
342 another attribute. RT #57510. (Dave Rolsky)
346 * The native Array and Hash delegation methods now coerce individual new
347 members if the _member type_ has a coercion. In other words, if the array
348 reference is defined as an ArrayRef[DateTime], and you've defined a
349 coercion from Int to DateTime, then pushing an integer via a delegation
350 method will coerce the integer to a DateTime object. Reported by Karen
351 Etheridge. RT #62351. (Dave Rolsky)
353 * An attribute using native delegations did not always properly coerce and
354 type check a lazily set default value. (doy and Dave Rolsky)
356 * Using a regexp to define delegations for a class which was not yet loaded
357 did not actually work, but did not explicitly fail. However, it caused an
358 error when the class was loaded later. Reported by Max Kanat-Alexander. RT
359 #60596. (Dave Rolsky)
361 * Attempting to delegate to a class or role which is not yet loaded will now
362 throw an explicit error. (Dave Rolsky)
364 * Attempting to set lazy_build in an inherited attribute was ignored. RT
369 * The Moose test suite now uses Test::Fatal instead of
370 Test::Exception. (rjbs)
372 1.17 Tue, Oct 19, 2010
376 * Make native delegation inlining work with instance metaclasses where slot
377 access is an do {} block, like Kioku. This fixes the use of native
378 delegations together with Kioku. (Scott, doy)
380 1.16 Mon, Oct 18, 2010
384 * Almost every native delegation method which changes the attribute value
385 now has an explicitly documented return value. In general, this return
386 value matches what Perl would return for the same operation. (Dave Rolsky)
388 * Lots of work on native delegation documentation, including documenting
389 what arguments each native delegation method allows or requires. (Dave
392 * Passing an odd number of args to ->new() now gives a more useful warning
393 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
396 * Allow disabling stack traces by setting an environment variable. See
397 Moose::Error::Default for details. This feature is considered
398 experimental, and may change in a future release. (Marcus Ramberg)
400 * The deprecation warning for using alias and excludes without a leading
401 dash now tells you the role being applied and what it was being applied
406 * A number of native trait methods which expected strings as arguments did
407 not allow the empty string. This included Array->join, String->match,
408 String->replace, and String->substr. Reported by Whitney Jackson. RT
409 #61962. (Dave Rolsky)
411 * 'no Moose' no longer inadvertently removes imports it didn't create
412 itself. RT #60013. (Florian Ragwitz, doy)
414 * Roles now support passing an array reference of method names to method
415 modifier sugar functions. (doy)
417 * Native traits no longer use optimized inlining routines if the instance
418 requests it (in particular, if inline_get_slot_value doesn't return
419 something that can be assigned to). This should fix issues with
420 KiokuDB::Class. (doy)
422 * We now ignore all Class::MOP and Moose classes when determining what
423 package called a deprecated feature. This should make the deprecation
424 warnings saner, and make it possible to turn them off more easily. (Dave
427 * The deprecated "default is" warning no longer happens if the attribute has
428 any accessor method defined (accessor, reader, writer). Also, this warning
429 only happens when a method that was generated because of the "default is"
430 gets called, rather than when the attribute is defined. (Dave Rolsky)
432 * The "default default" code for some native delegations no longer issues a
433 deprecation warning when the attribute is required or has a builder. (Dave
436 * Setting a "default default" caused a fatal error if you used the builder
437 or lazy_build options for the attribute. Reported by Kent Fredric. RT
438 #59613. (Dave Rolsky)
440 1.15 Tue, Oct 5, 2010
444 * Major changes to Native Traits, most of which make them act more like
445 "normal" attributes. This should be mostly compatible with existing code,
446 but see Moose::Manual::Delta for details.
448 * A few native traits (String, Counter, Bool) provide default values of "is"
449 and "default" when you created an attribute. Allowing them to provide
450 these values is now deprecated. Supply the value yourself when creating
453 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
454 generate non-global aliases for your traits (and allow your users to
455 rename the aliases, etc). (doy)
457 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
458 determine which name to install the 'meta' name under. Passing 'undef'
459 to this option will suppress generation of the meta method entirely. (doy)
461 * Moose now warns if it overwrites an existing method named "meta" in your
462 class when you "use Moose". (doy)
466 * Native Trait delegations are now all generated as inline code. This should
467 be much faster than the previous method of delegation. In the best case,
468 native trait methods will be very highly optimized.
470 * Reinitializing a metaclass no longer removes the existing method and
471 attribute objects (it instead fixes them so they are correct for the
472 reinitialized metaclass). This should make the order of loading many
473 MooseX modules less of an issue. (doy)
475 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
479 * If an attribute was weak, setting it to a non-ref value after the object
480 was constructed caused an error. Now we only call weaken when the new
481 value is a reference.
483 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
484 based on a patch from Andreas Koenig.
486 1.14 Tue, Sep 21, 2010
490 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
491 a weird error when defining the same union type twice, but only when using
492 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
494 1.13 Mon, Sep 13, 2010
498 * The deprecation warnings for alias and excludes are back, use -alias and
499 -excludes instead. (Dave Rolsky)
503 * When composing one role into another and there is an attribute conflict,
504 the error message now includes the attribute name. Reported by Sam
505 Graham. RT #59985. (Dave Rolsky)
507 * When a class is made immutable, the does_role method is overridden with a
508 much faster version that simply looks role names up in a hash. Code which
509 uses lots of role-based type constraints should be faster. (Dave Rolsky)
511 1.12 Sat, Aug 28, 2010
515 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
517 1.11 Fri, Aug 27, 2010
521 * An attribute in a subclass can now override the value of "is". (doy)
523 * The deprecation warnings for alias and excludes have been turned back off
524 for this release, to give other module authors a chance to tweak their
529 * mro::get_linear_isa was being called as a function rather than a method,
530 which caused problems with Perl 5.8.x. (t0m)
532 * Union types always created a type constraint, even if their constituent
533 constraints did not have any coercions. This bogus coercion always
534 returned undef, which meant that a union which included Undef as a member
535 always coerced bad values to undef. Reported by Eric Brine. RT
536 #58411. (Dave Rolsky)
538 * Union types with coercions would always fall back to coercing the value to
539 undef (unintentionally). Now if all the coercions for a union type fail,
540 the value returned by the coercion is the original value that we attempted
541 to coerce. (Dave Rolsky).
543 1.10 Sun, Aug 22, 2010
547 * The long-deprecated alias and excludes options for role applications now
548 issue a deprecation warning. Use -alias and -excludes instead. (Dave
553 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
555 * default => undef now works properly. (doy)
557 * Enum type constraints now throw errors if their values are nonsensical.
562 * Optimizations that should help speed up compilation time (Dave Rolsky).
564 1.09 Tue, Jul 25, 2010
568 * You can no longer pass "coerce => 1" for an attribute unless its type
569 constraint has a coercion defined. Doing so will issue a deprecation
570 warning. (Dave Rolsky)
572 * Previously, '+foo' only allowed a specific set of options to be
573 overridden, which made it impossible to change attribute options related
574 to extensions. Now we blacklist some options, and anything else is
575 allowed. (doy, Tuomas Jormola)
577 * Most features which have been declared deprecated now issue a warning using
578 Moose::Deprecated. Warnings are issued once per calling package, not
579 repeatedly. See Moose::Deprecated for information on how you can shut
580 these warnings up entirely. Note that deprecated features will eventually
581 be removed, so shutting up the warnings may not be the best idea. (Dave
584 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
589 * We no longer unimport strict and warnings when Moose, Moose::Role, or
590 Moose::Exporter are unimported. Doing this was broken if the user
591 explicitly loaded strict and warnings themself, and the results could be
592 generally surprising. We decided that it was best to err on the side of
593 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
596 * New with_traits helper function in Moose::Util. (doy)
600 * Accessors will no longer be inlined if the instance metaclass isn't
603 * Use Perl 5.10's new recursive regex features, if possible, for the type
604 constraint parser. (doy, nothingmuch)
608 * Attributes now warn if their accessors overwrite a locally defined
609 function (not just method). (doy)
613 * Bump our required perl version to 5.8.3, since earlier versions fail tests
614 and aren't easily installable/testable.
616 1.08 Tue, Jun 15, 2010
620 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
621 to be overridden more easily (doy).
623 1.07 Sat, Jun 05, 2010
627 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
628 classes and non-class metaclass traits (doy, dougdude).
630 1.06 Tue, Jun 01, 2010
634 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
635 more uniformly compare type constraints between 'classic' Moose type
636 constraints and MooseX::Types based type constraints.
638 1.05 Thu, May 20, 2010
642 * Packages and modules no longer have methods - this functionality was
643 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
644 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
646 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
647 Moose::Object::new. (doy)
651 * strict and warnings are now unimported when Moose, Moose::Role, or
652 Moose::Exporter are unimported. (doy, Adam Kennedy)
654 * Added a 'consumers' method to Moose::Meta::Role for finding all
655 classes/roles which consume the given role. (doy)
659 * Fix has '+attr' in Roles to explode immediately, rather than when the role
660 is applied to a class (t0m).
662 * Fix type constraint validation messages to not include the string 'failed'
663 twice in the same sentence (Florian Ragwitz).
665 * New type constraints will default to being unequal, rather than equal
668 * The tests no longer check for perl's behavior of clobbering $@, which has
669 been fixed in perl-5.13.1 (Florian Ragwitz).
671 * Metaclass compatibility fixing has been completely rewritten, and should
672 be much more robust. (doy)
674 1.04 Thu, May 20, 2010
676 * This release was broken and has been deleted from CPAN shortly after its
679 1.03 Thu, May 06, 2010
683 * Allow specifying required versions when setting superclasses or applying
684 roles (Florian Ragwitz).
686 1.02 Sat, May 01, 2010
690 * Stop the natatime method provided by the native Array trait from returning
691 an exhausted iterator when being called with a callback. (Florian Ragwitz)
693 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
696 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
697 the class the TC represents as an argument incorrectly returned true. This
698 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
700 * Use File::Temp for temp files created during tests. Previously, files were
701 written to the t/ dir, which could cause problems of the user running the
702 tests did not have write access to that directory.. (Chris Weyl, Ævar
703 Arnfjörð Bjarmason)
705 * Pass role arguments along when applying roles to instances. (doy, lsm)
707 1.01 Fri, Mar 26, 2010
711 * The handles option now also accepts a role type constraint in addition to a
712 plain role name. (Florian Ragwitz)
716 * Record the Sartak/doy debt properly in Changes (perigrin)
718 1.00 Tue, Mar 25, 2010
722 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
723 methods by default. (Florian Ragwitz)
727 * Improve various parts of the documentation and fix many typos.
728 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
732 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
734 0.99 Mon, Mar 8, 2010
738 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
739 which member of the union a given value validates for. (Cory Watson)
743 * DEMOLISH methods in mutable subclasses of immutable classes are now called
744 properly (Chia-liang Kao, Jesse Luehrs)
748 * Added Moose::Manual::Support that defines the support, compatiblity, and
749 release policies for Moose. (Chris Prather)
751 0.98 Wed, Feb 10, 2010
755 * An internals change in 0.97 broke role application to an instance in some
756 cases. The bug occurred when two different roles were applied to different
757 instances of the same class. (Rafael Kitover)
760 0.97 Tue, Feb 9, 2010
764 * Calling ->reinitialize on a cached anonymous class effectively uncached
765 the metaclass object, causing the metaclass to go out of scope
766 unexpectedly. This could easily happen at a distance by applying a
767 metarole to an anonymous class. (Dave Rolsky).
769 0.96 Sat, Feb 6, 2010
773 * ScalarRef is now a parameterized type. You can now specify a type
774 constraint for whatever the reference points to. (Closes RT#50857)
775 (Michael G. Schwern, Florian Ragwitz)
779 * ScalarRef now accepts references to other references. (Closes RT#50934)
782 0.95 Thu, Feb 4, 2010
786 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
787 a delegation option. This allows the code reference to be called as a
788 method on the object. (Florian Ragwitz)
792 * Moose::Object::does no longer checks the entire inheritance tree, since
793 Moose::Meta::Class::does_role already does this. (doy)
795 * Moose::Util::add_method_modifier (and subsequently the sugar functions
796 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
797 with the same behavior as lists. Types other than arrayref and regexp
798 result in an error. (Dylan Hardison)
800 0.94 Mon, Jan 18, 2010
804 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
808 * Improved support for anonymous roles by changing various APIs to take
809 Moose::Meta::Role objects as well as role names. This included
811 - Moose::Meta::Class->does_role
812 - Moose::Meta::Role->does_role
813 - Moose::Util::does_role
814 - Moose::Util::apply_all_roles
815 - Moose::Util::ensure_all_roles
816 - Moose::Util::search_class_by_role
818 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
822 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
823 work as long as the accessor method names are explicitly set to valid Perl
824 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
827 0.93_03 Tue, Jan 5, 2010
831 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
832 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
835 0.93_02 Tue, Jan 5, 2010
839 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
840 testers. (Dave Rolsky)
843 0.93_01 Mon, Jan 4, 2010
847 See Moose::Manual::Delta for more details on backwards compatiblity issues.
849 * Role attributes are now objects of the Moose::Meta::Role::Attribute
850 class. (Dave Rolsky).
852 * There were major changes to how metaroles are applied. We now distinguish
853 between metaroles for classes vs those for roles. See the
854 Moose::Util::MetaRole docs for details. (Dave Rolsky)
856 * The old MetaRole API has been deprecated, but will continue to
857 work. However, if you are applying an attribute metaclass role, this may
858 break because of the fact that roles now have an attribute metaclass
861 * Moose::Util::MetaRole::apply_metaclass_roles is now called
862 apply_metaroles. The old name is deprecated. (Dave Rolsky)
864 * The unimport subs created by Moose::Exporter now clean up re-exported
865 functions like blessed and confess, unless the caller imported them from
866 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
868 [ENHANCEMENTS AND BUG FIXES]
870 * Changed the Str constraint to accept magic lvalue strings like one gets from
871 substr et al, again. (sorear)
873 * Sped up the type constraint parsing regex. (Sam Vilain)
875 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
878 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
879 easier testing of TypeConstraints from the command line. (perigrin)
881 * Added a with_immutable test function to Test::Moose, to run a block of tests
882 with and without certain classes being immutable. (doy)
884 * We now use Module::Install extensions explicitly to avoid confusing errors
885 if they're not installed. We use Module::Install::AuthorRequires to stop
886 test extraction and general failures if you don't have the author side
887 dependencies installed.
889 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
890 #51791. (Amir E. Aharoni)
893 0.93 Thu, Nov 19, 2009
895 - Calling $object->new() is no longer deprecated, and no longer
899 - The get_attribute_map method is now deprecated. (Dave Rolsky)
901 * Moose::Meta::Method::Delegation
902 - Preserve variable aliasing in @_ for delegated methods, so that
903 altering @_ affects the passed value. (doy)
905 * Moose::Util::TypeConstraints
906 - Allow array refs for non-anonymous form of enum and duck_type, not
907 just anonymous. The non-arrayref forms may be removed in the
909 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
910 - Properly document Int being a subtype of Str. (doy)
913 - Moose::Exporter using modules can now export their functions to the
914 main package. This applied to Moose and Moose::Role, among
915 others. (nothingmuch)
917 * Moose::Meta::Attribute
918 - Don't remove attribute accessors we never installed, during
919 remove_accessors. (doy)
921 * Moose::Meta::Attribute::Native::Trait::Array
922 - Don't bypass prototype checking when calling List::Util::first, to
923 avoid a segfault when it is called with a non-code argument. (doy)
925 * Moose::Meta::Attribute::Native::Trait::Code
926 - Fix passing arguments to code execute helpers. (doy)
928 0.92 Tue, Sep 22, 2009
929 * Moose::Util::TypeConstraints
930 - added the match_on_type operator (Stevan)
931 - added tests and docs for this (Stevan)
934 - Metaclass compat fixing should already happen recursively, there's no
935 need to explicitly walk up the inheritance tree. (doy)
937 * Moose::Meta::Attribute
938 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
940 0.91 Thu, Sep 17, 2009
942 - Don't import any functions, in order to avoid polluting our namespace
943 with things that can look like methods (blessed, try, etc)
946 * Moose::Meta::Method::Constructor
947 - The generated code needs to called Scalar::Util::blessed by its
948 fully-qualified name or else Perl can interpret the call to blessed as
949 an indirect method call. This broke Search::GIN, which in turn broke
950 KiokuDB. (nothingmuch)
952 0.90 Tue, Sep 15, 2009
953 * Moose::Meta::Attribute::Native::Trait::Counter
954 * Moose::Meta::Attribute::Native::Trait::String
955 - For these two traits, an attribute which did not explicitly provide
956 methods to handles magically ended up delegating *all* the helper
957 methods. This has been removed. You must be explicit in your handles
958 declaration for all Native Traits. (Dave Rolsky)
961 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
962 sure to rethrow its error message. However, we also localize $@ before
963 this so that if all the DEMOLISH methods success, the value of $@ will
964 be preserved. (nothingmuch and Dave Rolsky)
965 - We now also localize $? during object destruction. (nothingmuch and
967 - The handling of DEMOLISH methods was broken for immutablized classes,
968 which were not receiving the value of
969 Devel::GlobalDestruction::in_global_destruction.
970 - These two fixes address some of RT #48271, reported by Zefram.
971 - This is all now documented in Moose::Manual::Construction.
972 - Calling $object->new() is now deprecated. A warning will be
976 - Added more hooks to customize how roles are applied. The role
977 summation class, used to create composite roles, can now be changed
978 and/or have meta-roles applied to it. (rafl)
979 - The get_method_list method no longer explicitly excludes the "meta"
980 method. This was a hack that has been replaced by better hacks. (Dave
983 * Moose::Meta::Method::Delegation
984 - fixed delegated methods to make sure that any modifiers attached to
985 the accessor being delegated on will be called (Stevan)
986 - added tests for this (Stevan)
989 - Moose no longer warns when a class that is being made immutable has
990 mutable ancestors. While in theory this is a good thing to warn about,
991 we found so many exceptions to this that doing this properly became
994 0.89_02 Thu, Sep 10, 2009
995 * Moose::Meta::Attribute::Native
996 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
998 * Moose::Meta::Attribute::Native::Trait::Array
999 - Added a number of functions from List::Util and List::MoreUtils,
1000 including reduce, shuffle, uniq, and natatime. (doy)
1003 - This module will now generate an init_meta method for your exporting
1004 class if you pass it options for
1005 Moose::Util::MetaRole::apply_metaclass_roles or
1006 apply_base_class_roles. This eliminates a lot of repetitive
1007 boilerplate for typical MooseX modules. (doy).
1008 - Documented the with_meta feature, which is a replacement for
1009 with_caller. This feature was added by josh a while ago.
1010 - The with_caller feature is now deprecated, but will not issue a
1011 warning yet. (Dave Rolsky)
1012 - If you try to wrap/export a subroutine which doesn't actually exist,
1013 Moose::Exporter will warn you about this. (doy)
1015 * Moose::Meta::Role::Application::ToRole
1016 - When a role aliased a method from another role, it was only getting
1017 the new (aliased) name, not the original name. This differed from what
1018 happens when a class aliases a role's methods. If you _only_ want the
1019 aliased name, make sure to also exclue the original name. (Dave
1022 0.89_01 Wed Sep 2, 2009
1023 * Moose::Meta::Attribute
1024 - Added the currying syntax for delegation from AttributeHelpers to the
1025 existing delegation API. (hdp)
1027 * Moose::Meta::Attribute::Native
1028 - We have merged the functionality of MooseX::AttributeHelpers into the
1029 Moose core with some API tweaks. You can continue to use
1030 MooseX::AttributeHelpers, but it will not be maintained except
1031 (perhaps) for critical bug fixes in the future. See
1032 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
1035 * Moose::Error::Croak
1036 * Moose::Error::Confess
1037 - Clarify documentation on how to use different error-throwing
1038 modules. (Curtis Jewell)
1041 - Correct POD for builder to point to Recipe8, not 9. (gphat)
1044 - When a nonexistent sub name is passed to as_is, with_caller, or
1045 with_meta, throw a warning and skip the exporting, rather than
1046 installing a broken sub. (doy)
1048 * Moose::Meta::Class
1049 - Moose now warns if you call C<make_immutable> for a class with mutable
1052 0.89 Thu Aug 13, 2009
1053 * Moose::Manual::Attributes
1054 - Clarify "is", include discussion of "bare". (Sartak)
1056 * Moose::Meta::Role::Method::Conflicting
1057 * Moose::Meta::Role::Application::ToClass
1058 - For the first set of roles involved in a conflict, report all
1059 unresolved method conflicts, not just the first method. Fixes #47210
1060 reported by Ovid. (Sartak)
1062 * Moose::Meta::TypeConstraint
1063 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
1066 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
1068 - Allow specifying role options (alias, excludes, MXRP stuff) in the
1069 arrayref passed to "use Moose -traits" (doy)
1072 - Add functions meta_class_alias and meta_attribute_alias for creating
1073 aliases for class and attribute metaclasses and metatraits. (doy)
1075 * Moose::Meta::Attribute
1076 * Moose::Meta::Method::Accessor
1077 - A trigger now receives the old value as a second argument, if the
1078 attribute had one. (Dave Rolsky)
1080 * Moose::Meta::Method::Constructor
1081 - Fix a bug with $obj->new when $obj has stringify overloading.
1082 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
1083 - However, we will probably deprecate $obj->new, so please don't start
1084 using it for new code!
1086 * Moose::Meta::Role::Application
1087 * Moose::Meta::Role::Application::RoleSummation
1088 - Rename alias and excludes to -alias and -excludes (but keep the old
1089 names for now, for backcompat) (doy)
1091 0.88 Fri Jul 24, 2009
1092 * Moose::Manual::Contributing
1093 - Re-write the Moose::Manual::Contributing document to reflect
1094 the new layout and methods of work for the Git repository. All
1095 work now should be done in topic branches and reviewed by a
1096 core committer before being applied to master. All releases
1097 are done by a cabal member and merged from master to
1098 stable. This plan was devised by Yuval, blame him. (perigrin)
1101 - Create metaclass attributes for the different role application
1104 * Moose::Util::MetaRole
1105 - Allow applying roles to a meta role's role application
1108 * Moose::Meta::Attribute
1109 - Add weak_ref to allowed options for "has '+foo'" (mst)
1111 * Moose::Meta::Method::Accessor
1112 - No longer uses inline_slot_access in accessors, to support
1113 non-lvalue-based meta instances. (sorear)
1115 0.87 Tue Jul 7, 2009
1116 * Moose::Meta::Method::Delegation
1117 - Once again allow class names as well as objects for
1118 delegation. This was changed in 0.86.
1120 0.86 Fri Jul 3, 2009
1121 * Moose::Meta::Class::Immutable::Trait
1122 - Fixes to work with the latest Class::MOP.
1124 * Moose::Meta::Method::Delegation
1125 - Delegation now dies with a more useful error message if the
1126 attribute's accessor returns something defined but
1129 0.85 Fri, Jun 26, 2009
1130 * Moose::Meta::Attribute
1131 - The warning for 'no associated methods' is now split out into
1132 the _check_associated_methods method, so that extensions can
1133 safely call 'after install_accessors => ...'. This fixes a
1134 warning from MooseX::AttributeHelpers. (hdp)
1136 0.84 Fri, Jun 26, 2009
1138 - has now sets definition_context for attributes defined in
1141 * Moose::Meta::Attribute
1142 - When adding an attribute to a metaclass, if the attribute has
1143 no associated methods, it will give a deprecation
1145 - Methods generated by delegation were not being added to
1146 associated_methods. (hdp)
1147 - Attribute accessors (reader, writer, accessor, predicate,
1148 clearer) now warn if they overwrite an existing method. (doy)
1149 - Attribute constructors now warn very noisily about unknown (or
1150 misspelled) arguments
1152 * Moose::Util::TypeConstraints
1153 - Deprecated the totally useless Role type name, which just
1154 checked if $object->can('does'). Note that this is _not_ the
1155 same as a type created by calling role_type('RoleName').
1157 * Moose::Util::TypeConstraints
1158 * Moose::Meta::TypeConstraint::DuckType
1159 - Reify duck type from a regular subtype into an actual class
1161 - Document this because Sartak did all my work for me
1164 * Moose::Meta::Attribute
1165 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
1166 it is just a list of methods (Sartak)
1169 - The get_*_method_modifiers methods would die if the role had
1170 no modifiers of the given type (Robert Buels).
1172 0.83 Tue, Jun 23, 2009
1173 * Moose::Meta::Class
1174 - Fix _construct_instance not setting the special __MOP__ object
1175 key in instances of anon classes. (doy)
1177 0.82 Sun, Jun 21, 2009
1178 * Moose::Manual::Types
1179 - Mention MooseX::Types early to avoid users falling down the
1180 string parsing rathole (mst)
1182 * Moose::Manual::MooseX
1183 - Add warnings about class-level extensions and mention considering
1184 using plain objects instead
1186 0.81 Sun, Jun 7, 2009
1187 * Bumped our Class::MOP prereq to the latest version (0.85), since
1188 that's what we need.
1190 0.80 Sat, Jun 6, 2009
1191 * Moose::Manual::FAQ
1192 - Add FAQ about the coercion change from 0.76 because it came up
1193 three times today (perigrin)
1194 - Win doy $10 dollars because Sartak didn't think anybody
1195 would document this fast enough (perigrin)
1197 * Moose::Meta::Method::Destructor
1198 - Inline a DESTROY method even if there are no DEMOLISH methods
1199 to prevent unnecessary introspection in
1200 Moose::Object::DEMOLISHALL
1203 - A role's required methods are now represented by
1204 Moose::Meta::Role::Method::Required objects. Conflicts are now
1205 represented by Moose::Meta::Role::Method::Conflicting
1206 objects. The benefit for end-users in that unresolved
1207 conflicts generate different, more instructive, errors,
1208 resolving Ovid's #44895. (Sartak)
1211 - Improve the error message of "extends" as suggested by Adam
1212 Kennedy and confound (Sartak)
1213 - Link to Moose::Manual::Roles from Moose::Role as we now have
1214 excellent documentation (Adam Kennedy)
1217 - Update test suite for subname change in Class::MOP
1219 - Add TODO test for infinite recursion in Moose::Meta::Class
1222 0.79 Wed, May 13, 2009
1224 - More fixes for Win32 problems. Reported by Robert Krimen.
1227 - The DEMOLISHALL method could still blow up in some cases
1228 during global destruction. This method has been made more
1229 resilient in the face of global destruction's random garbage
1233 - If you "also" a module that isn't loaded, the error message
1234 now acknowledges that (Sartak)
1237 - When your ->meta method does not return a Moose::Meta::Class,
1238 the error message gave the wrong output (Sartak)
1240 0.78 Tue, May 12, 2009
1241 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
1242 - Merged these documents into what is now Moose::Manual::FAQ
1244 * Moose::Unsweetened
1245 - Moved to Moose::Manual::Unsweetened
1247 * Moose::Cookbook::Basics::Recipes 9-12
1248 - Renamed to be 8-11, since recipe 8 did not exist
1251 - Make Moose::Exporter import strict and warnings into packages
1255 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
1256 methods during global destruction (doy)
1258 * Moose::Meta::Class
1259 * Moose::Meta::Role::Application::ToClass
1260 - Track the Role::Application objects created during class-role
1261 consumption (Sartak)
1263 * Moose::Meta::Class
1264 - Fix metaclass incompatibility errors when extending a vanilla perl
1265 class which isa Moose class with a metaclass role applied (t0m)
1268 - Add a role-combination hook, _role_for_combination, for the
1269 benefit of MooseX::Role::Parameterized (Sartak)
1272 - Some tests were failing on Win32 because they explicit checked
1273 warning output for newlines. Reported by Nickolay Platonov.
1275 0.77 Sat, May 2, 2009
1277 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1281 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
1282 or not we are currently in global destruction (doy)
1283 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1286 * Moose::Cookbook::FAQ
1287 - Reworked much of the existing content to be more useful to
1288 modern Moose hackers (Sartak)
1291 - Depend on Class::MOP 0.83 instead of 0.82_01.
1293 0.76 Mon, April 27, 2009
1294 * Moose::Meta::TypeConstraint
1295 - Do not run coercions in coerce() if the value already passes the type
1298 * Moose::Meta::TypeConstraint::Class
1299 - In validation error messages, specifically say that the value is not
1300 an instance of the class. This should alleviate some frustrating
1301 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
1303 * Moose::Meta::Role::Application::ToClass
1304 - Revert the class-overrides-role warning in favor of a solution outside
1305 of the Moose core (Sartak)
1308 - Make Test::Output optional again, since it's only used in a few files
1311 0.75_01 Thu, April 23, 2009
1312 * Moose::Meta::Role::Application::ToClass
1313 - Moose now warns about each class overriding methods from roles it
1317 - Warnings tests have standardized on Test::Output which is now an
1318 unconditionally dependency (Sartak)
1320 * Moose::Meta::Class
1321 - Changes to immutabilization to work with Class::MOP 0.82_01+.
1323 0.75 Mon, April 20, 2009
1325 * Moose::Meta::Class
1326 - Move validation of not inheriting from roles from Moose::extends to
1327 Moose::Meta::Class::superclasses (doy)
1330 - add ensure_all_roles() function to encapsulate the common "apply this
1331 role unless the object already does it" pattern (hdp)
1334 - Users can now select a different metaclass with the "-metaclass"
1335 option to import, for classes and roles (Sartak)
1338 - Make method_metaclass an attr so that it can accept a metarole
1341 0.74 Tue, April 7, 2009
1343 * Moose::Meta::Method::Destructor
1344 - Include stack traces in the deprecation warnings.
1347 * Moose::Meta::Class
1348 - Removed the long-deprecated _apply_all_roles method.
1350 * Moose::Meta::TypeConstraint
1351 - Removed the long-deprecated union method.
1354 0.73_02 Mon, April 6, 2009
1355 * More deprecations and renamings
1356 - Moose::Meta::Method::Constructor
1357 - initialize_body => _initialize_body (this is always called
1358 when an object is constructed)
1361 - The DEMOLISHALL method could throw an exception during global
1362 destruction, meaning that your class's DEMOLISH methods would
1363 not be properly called. Reported by t0m.
1365 * Moose::Meta::Method::Destructor
1366 - Destructor inlining was totally broken by the change to the
1367 is_needed method in 0.72_01. Now there is a test for this
1368 feature, and it works again.
1371 - Bold the word 'not' in the POD for find_meta (t0m)
1373 0.73_01 Sun, April 5, 2009
1375 - Call user_class->meta in fewer places, with the eventual goal
1376 of allowing the user to rename or exclude ->meta
1377 altogether. Instead uses Class::MOP::class_of. (Sartak)
1379 * Moose::Meta::Method::Accessor
1380 - If an attribute had a lazy default, and that value did not
1381 pass the attribute's type constraint, it did not get the
1382 message from the type constraint, instead using a generic
1383 message. Test provided by perigrin.
1385 * Moose::Util::TypeConstraints
1386 - Add duck_type keyword. It's sugar over making sure an object
1387 can() a list of methods. This is easier than jrockway's
1388 suggestion to fork all of CPAN. (perigrin)
1389 - add tests and documentation (perigrin)
1392 - Document the fact that init_meta() returns the target class's
1393 metaclass object. (hdp)
1395 * Moose::Cookbook::Extending::Recipe1
1396 * Moose::Cookbook::Extending::Recipe2
1397 * Moose::Cookbook::Extending::Recipe3
1398 * Moose::Cookbook::Extending::Recipe4
1399 - Make init_meta() examples explicitly return the metaclass and
1400 point out this fact. (hdp)
1402 * Moose::Cookbook::Basics::Recipe12
1403 - A new recipe, creating a custom meta-method class.
1405 * Moose::Cookbook::Meta::Recipe6
1406 - A new recipe, creating a custom meta-method class.
1408 * Moose::Meta::Class
1409 * Moose::Meta::Method::Constructor
1410 - Attribute triggers no longer receive the meta-attribute object
1411 as an argument in any circumstance. Previously, triggers
1412 called during instance construction were passed the
1413 meta-attribute, but triggers called by normal accessors were
1414 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1416 * Moose::Manual::Attributes
1417 - Remove references to triggers receving the meta-attribute object as an
1420 * Moose::Cookbook::FAQ
1421 - Remove recommendation for deprecated Moose::Policy and
1422 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1425 * Many methods have been renamed with a leading underscore, and a
1426 few have been deprecated entirely. The methods with a leading
1427 underscore are consider "internals only". People writing
1428 subclasses or extensions to Moose should feel free to override
1429 them, but they are not for "public" use.
1431 - Moose::Meta::Class
1432 - check_metaclass_compatibility => _check_metaclass_compatibility
1434 - Moose::Meta::Method::Accessor
1435 - initialize_body => _initialize_body (this is always called
1436 when an object is constructed)
1437 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1439 - Moose::Meta::Method::Constructor
1440 - initialize_body => _initialize_body (this is always called
1441 when an object is constructed)
1442 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1443 - attributes => _attributes (now inherited from parent)
1444 - meta_instance => _meta_instance (now inherited from parent)
1447 - alias_method is deprecated. Use add_method
1449 0.73 Fri, March 29, 2009
1450 * No changes from 0.72_01.
1452 0.72_01 Thu, March 26, 2009
1454 - Almost every module has complete API documentation. A few
1455 methods (and even whole classes) have been intentionally
1456 excluded pending some rethinking of their APIs.
1458 * Moose::Util::TypeConstraints
1459 - Calling subtype with a name as the only argument is now an
1460 exception. If you want an anonymous subtype do:
1462 my $subtype = subtype as 'Foo';
1464 * Moose::Cookbook::Meta::Recipe7
1465 - A new recipe, creating a custom meta-instance class.
1467 * Moose::Cookbook::Basics::Recipe5
1468 - Fix various typos and mistakes. Includes a patch from Radu
1471 * Moose::Cookbook::Basics::Recipe9
1472 - Link to this recipe from Moose.pm's builder blurb
1475 - When wrapping a function with a prototype, Moose::Exporter now
1476 makes sure the wrapped function still has the same
1477 prototype. (Daisuke Maki)
1479 * Moose::Meta::Attribute
1480 - Allow a subclass to set lazy_build for an inherited
1484 - Explicitly depend on Data::OptList. We already had this dependency
1485 via Sub::Exporter, but since we're using it directly we're
1486 better off with it listed. (Sartak)
1488 * Moose::Meta::Method::Constructor
1489 - Make it easier to subclass the inlining behaviour. (Ash
1492 * Moose::Manual::Delta
1493 - Details significant changes in the history of Moose, along
1494 with recommended workarounds.
1496 * Moose::Manual::Contributing
1497 - Contributor's guide to Moose.
1499 * Moose::Meta::Method::Constructor
1500 - The long-deprecated intialize_body method has been removed
1501 (yes, spelled like that).
1503 * Moose::Meta::Method::Destructor
1504 - This is_needed method is now always a class method.
1506 * Moose::Meta::Class
1507 - Changes to the internals of how make_immutable works to match
1508 changes in latest Class::MOP.
1510 0.72 Mon, February 23, 2009
1512 * Moose::Meta::Method::Constructor
1513 - A mutable class accepted Foo->new(undef) without complaint,
1514 while an immutable class would blow up with an unhelpful
1515 error. Now, in both cases we throw a helpful error
1516 instead. Reported by doy.
1518 0.71_01 Sun, February 22, 2009
1520 - Hopefully fixed some POD errors in a few recipes that caused
1521 them to display weird on search.cpan.org.
1523 * Moose::Util::TypeConstraints
1524 - Calling type or subtype without the sugar helpers (as, where,
1525 message) is now deprecated.
1526 - The subtype function tried hard to guess what you meant, but
1527 often got it wrong. For example:
1529 my $subtype = subtype as 'ArrayRef[Object]';
1531 This caused an error in the past, but now works as you'd
1535 - Make sure Moose.pm is loaded before calling
1536 Moose->throw_error. This wasn't normally an issue, but could
1537 bite you in weird cases.
1539 0.71 Thu, February 19, 2009
1540 * Moose::Cookbook::Basics::Recipe11
1541 - A new recipe which demonstrates the use of BUILDARGS and
1542 BUILD. (Dave Rolsky)
1544 * Moose::Cookbook::Roles::Recipe3
1545 - A new recipe, applying a role to an object instance. (Dave
1549 - Allow overriding specific keywords from "also" packages. (doy)
1552 - Replace hardcoded cookbook tests with Test::Inline to ensure
1553 the tests match the actual code in the recipes. (Dave Rolsky)
1556 - Working on the above turned up a number of little bugs in the
1557 recipe code. (Dave Rolsky)
1559 * Moose::Util::TypeConstraints::Optimized
1560 - Just use Class::MOP for the optimized ClassName check. (Dave
1563 0.70 Sat, February 14, 2009
1564 * Moose::Util::TypeConstraints
1565 - Added the RoleName type (stevan)
1566 - added tests for this (stevan)
1568 * Moose::Cookbook::Basics::Recipe3
1569 - Updated the before qw[left right] sub to be a little more
1570 defensive about what it accepts (stevan)
1571 - added more tests to t/000_recipies/basics/003_binary_tree.t
1575 - We now always call DEMOLISHALL, even if a class does not
1576 define DEMOLISH. This makes sure that method modifiers on
1577 DEMOLISHALL work as expected. (doy)
1578 - added tests for this (EvanCarroll)
1580 * Moose::Util::MetaRole
1581 - Accept roles for the wrapped_method_metaclass (rafl)
1582 - added tests for this (rafl)
1584 * Moose::Meta::Attribute
1585 - We no longer pass the meta-attribute object as a final
1586 argument to triggers. This actually changed for inlined code a
1587 while back, but the non-inlined version and the docs were
1591 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1592 they require 0.11. (Dave Rolsky)
1595 - Lots of small changes to the manual, cookbook, and
1596 elsewhere. These were based on feedback from various
1597 users, too many to list here. (Dave Rolsky)
1599 0.69 Thu, February 12, 2009
1601 - Make some keyword errors use throw_error instead of croak
1602 since Moose::Exporter wraps keywords now (Sartak)
1604 * Moose::Cookbook::*
1605 - Revised every recipe for style and clarity. Also moved some
1606 documentation out of cookbook recipes and into Moose::Manual
1607 pages. This work was funded as part of the Moose docs grant
1608 from TPF. (Dave Rolsky)
1610 * Moose::Meta::Method::Delegation
1611 - If the attribute doing the delegation was not populated, the
1612 error message did not specify the attribute name
1615 0.68 Wed, February 4, 2009
1617 - Many spelling, typo, and formatting fixes by daxim.
1619 * Moose::Manual::Attributes
1620 - The NAME section in the POD used "Attribute" so search.cpan
1621 didn't resolve links from other documents properly.
1623 * Moose::Meta::Method::Overriden
1624 - Now properly spelled as Overridden. Thanks to daxim for
1627 0.67 Tue, February 3, 2009
1629 - Lots of little typo fixes and a few clarifications. Several
1630 pages didn't have proper titles, and so weren't actually
1631 visible on search.cpan.org. Thanks to hanekomu for a variety
1632 of fixes and formatting improvements.
1634 0.66 Tue, February 3, 2009
1636 - This is a brand new, extensive manual for Moose. This aims to
1637 provide a complete introduction to all of Moose's
1638 features. This work was funded as part of the Moose docs grant
1639 from TPF. (Dave Rolsky)
1641 * Moose::Meta::Attribute
1642 - Added a delegation_metaclass method to replace a hard-coded
1643 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1645 * Moose::Util::TypeConstraints
1646 - If you created a subtype and passed a parent that Moose didn't
1647 know about, it simply ignored the parent. Now it automatically
1648 creates the parent as a class type. This may not be what you
1649 want, but is less broken than before. (Dave Rolsky)
1651 * Moose::Util::TypeConstraints
1652 - This module tried throw errors by calling Moose->throw_error,
1653 but it did not ensure that Moose was loaded first. This could
1654 cause very unhelpful errors when it tried to throw an error
1655 before Moose was loaded. (Dave Rolsky)
1657 * Moose::Util::TypeConstraints
1658 - You could declare a name with subtype such as "Foo!Bar" that
1659 would be allowed, but if you used it in a parameterized type
1660 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1661 vetting on names created via the sugar functions, so that they
1662 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1664 0.65 Thu, January 22, 2009
1665 * Moose and Moose::Meta::Method::Overridden
1666 - If an overridden method called super(), and then the
1667 superclass's method (not overridden) _also_ called super(),
1668 Moose went into an endless recursion loop. Test provided by
1669 Chris Prather. (Dave Rolsky)
1671 * Moose::Meta::TypeConstraint
1672 - All methods are now documented. (gphat)
1674 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1675 - Fixed some bogus failures that occurred because we tried to
1676 validate filesystem paths in a very ad-hoc and
1677 not-quite-correct way. (Dave Rolsky)
1679 * Moose::Util::TypeConstraints
1680 - Added maybe_type to exports. See docs for details. (rjbs)
1683 - Added Moose::Util::TypeConstraints to the SEE ALSO
1687 - Methods created via an attribute can now fulfill a "requires"
1688 declaration for a role. (nothingmuch)
1690 * Moose::Meta::Method::*
1691 - Stack traces from inlined code will now report its line and
1692 file as being in your class, as opposed to in Moose
1693 guts. (nothingmuch).
1695 0.64 Wed, December 31, 2008
1696 * Moose::Meta::Method::Accessor
1697 - Always inline predicate and clearer methods (Sartak)
1699 * Moose::Meta::Attribute
1700 - Support for parameterized traits (Sartak)
1701 - verify_against_type_constraint method to avoid duplication
1702 and enhance extensibility (Sartak)
1704 * Moose::Meta::Class
1705 - Tests (but no support yet) for parameterized traits (Sartak)
1708 - Require Class::MOP 0.75+, which has the side effect of making
1709 sure we work on Win32. (Dave Rolsky)
1711 0.63 Mon, December 8, 2008
1712 * Moose::Unsweetened
1713 - Some small grammar tweaks and bug fixes in non-Moose example
1716 0.62_02 Fri, December 5, 2008
1717 * Moose::Meta::Role::Application::ToClass
1718 - When a class does not provide all of a role's required
1719 methods, the error thrown now mentions all of the missing
1720 methods, as opposed to just the first one found. Requested by
1721 Curtis Poe (RT #41119). (Dave Rolsky)
1723 * Moose::Meta::Method::Constructor
1724 - Moose will no longer inline a constructor for your class
1725 unless it inherits its constructor from Moose::Object, and
1726 will warn when it doesn't inline. If you want to force
1727 inlining anyway, pass "replace_constructor => 1" to
1728 make_immutable. Addresses RT #40968, reported by Jon
1729 Swartz. (Dave Rolsky)
1730 - The quoting of default values could be broken if the default
1731 contained a single quote ('). Now we use quotemeta to escape
1732 anything potentially dangerous in the defaults. (Dave Rolsky)
1734 0.62_01 Wed, December 3, 2008
1736 - use the method->execute API for BUILDALL
1737 and DEMOLISHALL (Sartak)
1739 * Moose::Util::TypeConstraints
1740 - We now make all the type constraint meta classes immutable
1741 before creating the default types provided by Moose. This
1742 should make loading Moose a little faster. (Dave Rolsky)
1744 0.62 Wed November 26, 2008
1745 * Moose::Meta::Role::Application::ToClass
1746 Moose::Meta::Role::Application::ToRole
1747 - fixed issues where excluding and aliasing the
1748 same methods for a single role did not work
1749 right (worked just fine with multiple
1751 - added test for this (stevan)
1753 * Moose::Meta::Role::Application::RoleSummation
1754 - fixed the error message when trying to compose
1755 a role with a role it excludes (Sartak)
1758 - Catch another case where recursion caused the value
1759 of $CALLER to be stamped on (t0m)
1760 - added test for this (t0m)
1763 - Remove the make_immutable keyword, which has been
1764 deprecated since April. It breaks metaclasses that
1765 use Moose without no Moose (Sartak)
1767 * Moose::Meta::Attribute
1768 - Removing an attribute from a class now also removes delegation
1769 (handles) methods installed for that attribute (t0m)
1770 - added test for this (t0m)
1772 * Moose::Meta::Method::Constructor
1773 - An attribute with a default that looked like a number (but was
1774 really a string) would accidentally be treated as a number
1775 when the constructor was made immutable (perigrin)
1776 - added test for this (perigrin)
1779 - create method for constructing a role
1780 dynamically (Sartak)
1781 - added test for this (Sartak)
1782 - anonymous roles! (Sartak)
1783 - added test for this (Sartak)
1786 - more consistent error messages (Sartak)
1788 * Moose::Cookbook::Roles::Recipe1
1789 - attempt to explain why a role that just requires
1790 methods is useful (Sartak)
1792 0.61 Fri November 7, 2008
1793 * Moose::Meta::Attribute
1794 - When passing a role to handles, it will be loaded if necessary
1797 * Moose::Meta::Class
1798 - Method objects returned by get_method (and other methods)
1799 Could end up being returned without an associated_metaclass
1800 attribute. Removing get_method_map, which is provided by
1801 Class::MOP::Class, fixed this. The Moose version did nothing
1802 different from its parent except introduce a bug. (Dave Rolsky)
1803 - added tests for this (jdv79)
1806 - Added a $VERSION to all .pm files which didn't have one. Fixes
1807 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1809 * Moose::Cookbook::Basics::Recipe4
1810 * Moose::Cookbook::Basics::Recipe6
1811 - These files had spaces on the first line of the SYNOPSIS, as
1812 opposed to a totally empty line. According to RT #40432, this
1813 confuses POD parsers. (Dave Rolsky)
1815 0.60 Fri October 24, 2008
1817 - Passing "-traits" when loading Moose caused the Moose.pm
1818 exports to be broken. Reported by t0m. (Dave Rolsky)
1819 - Tests for this bug. (t0m)
1822 - Change resolve_metaclass alias to use the new
1823 load_first_existing_class function. This makes it a lot
1824 simpler, and also around 5 times faster. (t0m)
1825 - Add caching to resolve_metaclass_alias, which gives an order
1826 of magnitude speedup to things which repeatedly call the
1827 Moose::Meta::Attribute->does method, notably MooseX::Storage
1830 * Moose::Util::TypeConstraint
1831 - Put back the changes for parameterized constraints that
1832 shouldn't have been removed in 0.59. We still cannot parse
1833 them, but MooseX modules can create them in some other
1834 way. See the 0.58 changes for more details. (jnapiorkowski)
1835 - Changed the way subtypes are created so that the job is
1836 delegated to a type constraint parent. This clears up some
1837 hardcoded checking and should allow correct subtypes of
1838 Moose::Meta::Type::Constraint. Don't rely on this new API too
1839 much (create_child_type) because it may go away in the
1840 future. (jnapiorkowski)
1842 * Moose::Meta::TypeConstraint::Union
1843 - Type constraint names are sorted as strings, not numbers.
1846 * Moose::Meta::TypeConstraint::Parameterizable
1847 - New parameterize method. This can be used as a factory method
1848 to make a new type constraint with a given parameterized
1849 type. (jnapiorkowski)
1850 - added tests (jnapiorkowski)
1852 0.59 Tue October 14, 2008
1854 - Add abridged documentation for builder/default/initializer/
1855 predicate, and link to more details sections in
1856 Class::MOP::Attribute. (t0m)
1858 * Moose::Util::TypeConstraints
1859 - removed prototypes from all but the &-based stuff (mst)
1861 * Moose::Util::TypeConstraints
1862 - Creating a anonymous subtype with both a constraint and a
1863 message failed with a very unhelpful error, but should just
1864 work. Reported by t0m. (Dave Rolsky)
1867 - Some tests that used Test::Warn if it was available failed
1868 with older versions of Test::Warn. Reported by Fayland. (Dave
1870 - Test firing behavior of triggers in relation to builder/default/
1872 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1873 kinds of supported type. (t0m)
1875 * Moose::Meta::Class
1876 - In create(), do not pass "roles" option to the superclass
1877 - added related test that creates an anon metaclass with
1878 a required attribute
1880 * Moose::Meta::TypeConstraint::Class
1881 * Moose::Meta::TypeConstraint::Role
1882 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1883 other types (as per change in 0.55_02). (t0m)
1885 * Moose::Meta::TypeConstraint::Registry
1886 - Fix warning when dealing with unknown type names (t0m)
1888 * Moose::Util::TypeConstraints
1889 - Reverted changes from 0.58 related to handle parameterized
1890 types. This caused random failures on BSD and Win32 systems,
1891 apparently related to the regex engine. This means that Moose
1892 can no longer parse structured type constraints like
1893 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1894 supported in a slightly different way via MooseX::Types some
1895 time in the future. (Dave Rolsky)
1897 0.58 Sat September 20, 2008
1898 !! This release has an incompatible change regarding !!
1899 !! how roles add methods to a class !!
1901 * Roles and role application
1902 ! Roles now add methods by calling add_method, not
1903 alias_method. They make sure to always provide a method
1904 object, which will be cloned internally. This means that it is
1905 now possible to track the source of a method provided by a
1906 role, and even follow its history through intermediate roles.
1908 This means that methods added by a role now show up when
1909 looking at a class's method list/map. (Dave Rolsky)
1912 - From this release on, we'll try to maintain a list of
1913 conflicting modules, and warn you if you have one
1914 installed. For example, this release conflicts with ...
1915 - MooseX::Singleton <= 0.11
1916 - MooseX::Params::Validate <= 0.05
1919 In general, we try to not break backwards compatibility for
1920 most Moose users, but MooseX modules and other code which
1921 extends Moose's metaclasses is often affected by very small
1922 changes in the Moose internals.
1924 * Moose::Meta::Method::Delegation
1925 * Moose::Meta::Attribute
1926 - Delegation methods now have their own method class. (Dave
1929 * Moose::Meta::TypeConstraint::Parameterizable
1930 - Added a new method 'parameterize' which is basically a factory
1931 for the containing constraint. This makes it easier to create
1932 new types of parameterized constraints. (jnapiorkowski)
1934 * Moose::Meta::TypeConstraint::Union
1935 - Changed the way Union types canonicalize their names to follow
1936 the normalized TC naming rules, which means we strip all
1937 whitespace. (jnapiorkowski)
1939 * Moose::Util::TypeConstraints
1940 - Parameter and Union args are now sorted, this makes Int|Str
1941 the same constraint as Str|Int. (jnapiorkowski)
1942 - Changes to the way Union types are parsed to more correctly
1943 stringify their names. (jnapiorkowski)
1944 - When creating a parameterized type, we now use the new
1945 parameterize method. (jnapiorkowski)
1946 - Incoming type constraint strings are now normalized to remove
1947 all whitespace differences. (jnapiorkowski)
1948 - Changed the way we parse type constraint strings so that we now
1949 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1950 constraints. This lays the foundation for more flexible type
1951 constraint implementations.
1953 * Tests and docs for all the above. (jnapiorkowski)
1957 - Moose::Exporter will no longer remove a subroutine that the
1958 exporting package re-exports. Moose re-exports the
1959 Carp::confess function, among others. The reasoning is that we
1960 cannot know whether you have also explicitly imported those
1961 functions for your own use, so we err on the safe side and
1962 always keep them. (Dave Rolsky)
1963 - added tests for this (rafl)
1965 * Moose::Meta::Class
1966 - Changes to how we fix metaclass compatibility that are much
1967 too complicated to go into. The summary is that Moose is much
1968 less likely to complain about metaclass incompatibility
1969 now. In particular, if two metaclasses differ because
1970 Moose::Util::MetaRole was used on the two corresponding
1971 classes, then the difference in roles is reconciled for the
1972 subclass's metaclass. (Dave Rolsky)
1973 - Squashed an warning in _process_attribute (thepler)
1976 - throw exceptions (sooner) for invalid attribute names (thepler)
1977 - added tests for this (thepler)
1979 * Moose::Util::MetaRole
1980 - If you explicitly set a constructor or destructor class for a
1981 metaclass object, and then applied roles to the metaclass,
1982 that explicitly set class would be lost and replaced with the
1985 * Moose::Meta::Class
1986 * Moose::Meta::Attribute
1987 * Moose::Meta::Method
1990 * Moose::Error::Default
1991 * Moose::Error::Croak
1992 * Moose::Error::Confess
1993 - All instances of confess() changed to use overridable
1994 C<throw_error> method. This method ultimately calls a class
1995 constructor, and you can change the class being called. In
1996 addition, errors now pass more information than just a string.
1997 The default C<error_class> behaves like C<Carp::confess>, so
1998 the behavior is not visibly different for end users.
2000 0.57 Wed September 3, 2008
2002 - A new bit of doc intended to introduce folks familiar with
2003 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
2005 * Moose::Unsweetened
2006 - Shows examples of two classes, each done first with and then
2007 without Moose. This makes a nice parallel to
2008 Moose::Intro. (Dave Rolsky)
2010 * Moose::Util::TypeConstraints
2011 - Fixed a bug in find_or_parse_type_constraint so that it
2012 accepts a Moose::Meta::TypeConstraint object as the parent
2013 type, not just a name (jnapiorkowski)
2014 - added tests (jnapiorkowski)
2017 - If Sub::Name was not present, unimporting failed to actually
2018 remove some sugar subs, causing test failures (Dave Rolsky)
2020 0.56 Mon September 1, 2008
2021 For those not following the series of dev releases, there are
2022 several major changes in this release of Moose.
2023 ! Moose::init_meta should now be called as a method. See the
2026 - Major performance improvements by nothingmuch.
2028 - New modules for extension writers, Moose::Exporter and
2029 Moose::Util::MetaRole by Dave Rolsky.
2031 - Lots of doc improvements and additions, especially in the
2034 - Various bug fixes.
2036 * Removed all references to the experimental-but-no-longer-needed
2037 Moose::Meta::Role::Application::ToMetaclassInstance.
2039 * Require Class::MOP 0.65.
2041 0.55_04 Sat August 30, 2008
2042 * Moose::Util::MetaRole
2043 * Moose::Cookbook::Extending::Recipe2
2044 - This simplifies the application of roles to any meta class, as
2045 well as the base object class. Reimplemented metaclass traits
2046 using this module. (Dave Rolsky)
2048 * Moose::Cookbook::Extending::Recipe1
2049 - This a new recipe, an overview of various ways to write Moose
2050 extensions (Dave Rolsky)
2052 * Moose::Cookbook::Extending::Recipe3
2053 * Moose::Cookbook::Extending::Recipe4
2054 - These used to be Extending::Recipe1 and Extending::Recipe2,
2057 0.55_03 Fri August 29, 2008
2058 * No changes from 0.55_02 except increasing the Class::MOP
2059 dependency to 0.64_07.
2061 0.55_02 Fri August 29, 2008
2062 * Makefile.PL and Moose.pm
2063 - explicitly require Perl 5.8.0+ (Dave Rolsky)
2065 * Moose::Util::TypeConstraints
2066 - Fix warnings from find_type_constraint if the type is not
2069 * Moose::Meta::TypeConstraint
2070 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
2071 return false if the type you specify cannot be found in the
2072 type registry, rather than throwing an unhelpful and
2073 coincidental exception. (t0m).
2074 - added docs & test for this (t0m)
2076 * Moose::Meta::TypeConstraint::Registry
2077 - add_type_constraint now throws an exception if a parameter is
2079 - added docs & test for this (t0m)
2081 * Moose::Cookbook::FAQ
2082 - Added a faq entry on the difference between "role" and "trait"
2086 - Fixed a bug that caused role composition to not see a required
2087 method when that method was provided by another role being
2088 composed at the same time. (Dave Rolsky)
2089 - test and bug finding (tokuhirom)
2091 0.55_01 Wed August 20, 2008
2093 !! Calling Moose::init_meta as a function is now !!
2094 !! deprecated. Please see the Moose.pm docs for details. !!
2096 * Moose::Meta::Method::Constructor
2097 - Fix inlined constructor so that values produced by default
2098 or builder methods are coerced as required. (t0m)
2099 - added test for this (t0m)
2101 * Moose::Meta::Attribute
2102 - A lazy attribute with a default or builder did not attempt to
2103 coerce the default value. The immutable code _did_
2105 - added test for this (t0m)
2108 - This is a new helper module for writing "Moose-alike"
2109 modules. This should make the lives of MooseX module authors
2110 much easier. (Dave Rolsky)
2113 * Moose::Cookbook::Meta::Recipe5
2114 - Implemented metaclass traits (and wrote a recipe for it):
2116 use Moose -traits => 'Foo'
2118 This should make writing small Moose extensions a little
2119 easier (Dave Rolsky)
2121 * Moose::Cookbook::Basics::Recipe1
2122 - Removed any examples of direct hashref access, and applied an
2123 editorial axe to reduce verbosity. (Dave Rolsky)
2125 * Moose::Cookbook::Basics::Recipe1
2126 - Also applied an editorial axe here. (Dave Rolsky)
2129 * Moose::Cookbook::Extending::Recipe1
2130 * Moose::Cookbook::Extending::Recipe2
2131 - Rewrote extending and embedding moose documentation and
2132 recipes to use Moose::Exporter (Dave Rolsky)
2136 - These two modules now warn when you load them from the main
2137 package "main" package, because we will not export sugar to
2138 main. Previously it just did nothing. (Dave Rolsky)
2141 - Now provide an init_meta method just like Moose.pm, and you
2142 can call this to provide an alternate role metaclass. (Dave
2143 Rolsky and nothingmuch)
2144 - get_method_map now respects the package cache flag (nothingmuch)
2147 - Two new methods - add_method and wrap_method_body
2151 - Optimizations including allowing constructors to accept hash
2152 refs, making many more classes immutable, and making
2153 constructors immutable. (nothingmuch)
2155 0.55 Sun August 3, 2008
2156 * Moose::Meta::Attribute
2157 - breaking down the way 'handles' methods are
2158 created so that the process can be more easily
2159 overridden by subclasses (stevan)
2161 * Moose::Meta::TypeConstraint
2162 - fixing what is passed into a ->message with
2163 the type constraints (RT #37569)
2164 - added tests for this (Charles Alderman)
2166 * Moose::Util::TypeConstraints
2167 - fix coerce to accept anon types like subtype can (mst)
2170 - reorganized the recipes into sections - Basics, Roles, Meta,
2171 Extending - and wrote abstracts for each section (Dave Rolsky)
2173 * Moose::Cookbook::Basics::Recipe10
2174 - A new recipe that demonstrates operator overloading
2175 in combination with Moose. (bluefeet)
2177 * Moose::Cookbook::Meta::Recipe1
2178 - an introduction to what meta is and why you'd want to make
2179 your own metaclass extensions (Dave Rolsky)
2181 * Moose::Cookbook::Meta::Recipe4
2182 - a very simple metaclass example (Dave Rolsky)
2184 * Moose::Cookbook::Extending::Recipe1
2185 - how to write a Moose-alike module to use your own object base
2188 * Moose::Cookbook::Extending::Recipe2
2189 - how to write modules with an API just like C<Moose.pm> (Dave
2193 - Tons of fixes, both syntactical and grammatical (Dave
2194 Rolsky, Paul Fenwick)
2196 0.54 Thurs. July 3, 2008
2197 ... this is not my day today ...
2199 * Moose::Meta::Attribute
2200 - fixed legal_options_for_inheritance such that
2201 clone_and_inherit options still works for
2202 Class::MOP::Attribute objects and therefore
2203 does not break MooseX::AttributeHelpers
2206 0.53 Thurs. July 3, 2008
2207 * Whoops, I guess I should run 'make manifest' before
2208 actually releasing the module. No actual changes
2209 in this release, except the fact that it includes
2210 the changes that I didn't include in the last
2213 0.52 Thurs. July 3, 2008
2215 - added "FEATURE REQUESTS" section to the Moose docs
2216 to properly direct people (stevan) (RT #34333)
2217 - making 'extends' croak if it is passed a Role since
2218 this is not ever something you want to do
2219 (fixed by stevan, found by obra)
2220 - added tests for this (stevan)
2223 - adding support for DOES (as in UNIVERSAL::DOES)
2225 - added test for this
2227 * Moose::Meta::Attribute
2228 - added legal_options_for_inheritance (wreis)
2229 - added tests for this (wreis)
2231 * Moose::Cookbook::Snacks::*
2232 - removed some of the unfinished snacks that should
2233 not have been released yet. Added some more examples
2234 to the 'Keywords' snack. (stevan)
2236 * Moose::Cookbook::Style
2237 - added general Moose "style guide" of sorts to the
2238 cookbook (nothingmuch) (RT #34335)
2241 - added more BUILDARGS tests (stevan)
2243 0.51 Thurs. Jun 26, 2008
2245 - add unimport so "no Moose::Role" actually does
2248 * Moose::Meta::Role::Application::ToRole
2249 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
2250 order to provide its own implementation, that method still got
2251 added to the list of required methods for consumers of
2252 RoleB. Now an aliased method is only added to the list of
2253 required methods if the role doing the aliasing does not
2254 provide its own implementation. See Recipe 11 for an example
2255 of all this. (Dave Rolsky)
2256 - added tests for this
2258 * Moose::Meta::Method::Constructor
2259 - when a single argument that wasn't a hashref was provided to
2260 an immutabilized constructor, the error message was very
2261 unhelpful, as opposed to the non-immutable error. Reported by
2263 - added test for this (Dave Rolsky)
2265 * Moose::Meta::Attribute
2266 - added support for meta_attr->does("ShortAlias") (sartak)
2267 - added tests for this (sartak)
2268 - moved the bulk of the `handles` handling to the new
2269 install_delegation method (Stevan)
2272 - Added BUILDARGS, a new step in new()
2274 * Moose::Meta::Role::Application::RoleSummation
2275 - fix typos no one ever sees (sartak)
2277 * Moose::Util::TypeConstraints
2278 * Moose::Meta::TypeConstraint
2279 * Moose::Meta::TypeCoercion
2280 - Attempt to work around the ??{ } vs. threads issue
2282 - Some null_constraint optimizations
2284 0.50 Thurs. Jun 11, 2008
2285 - Fixed a version number issue by bumping all modules
2288 0.49 Thurs. Jun 11, 2008
2289 !! This version now approx. 20-25% !!
2290 !! faster with new Class::MOP 0.59 !!
2292 * Moose::Meta::Attribute
2293 - fixed how the is => (ro|rw) works with
2294 custom defined reader, writer and accessor
2296 - added docs for this (TODO).
2297 - added tests for this (Thanks to Penfold)
2298 - added the custom attribute alias for regular
2299 Moose attributes which is "Moose"
2300 - fix builder and default both being used
2305 Moose::Meta::Attribute
2307 Moose::Meta::Role::Composite
2308 Moose::Util::TypeConstraints
2309 - switched usage of reftype to ref because
2313 - changing add_package_symbol to use the new
2317 - fixed how DEMOLISHALL is called so that it
2318 can be overrided in subclasses (thanks to Sartak)
2319 - added test for this (thanks to Sartak)
2321 * Moose::Util::TypeConstraints
2322 - move the ClassName type check code to
2323 Class::MOP::is_class_loaded (thanks to Sartak)
2325 * Moose::Cookbook::Recipe11
2326 - add tests for this (thanks to tokuhirom)
2328 0.48 Thurs. May 29, 2008
2329 (early morning release engineering)--
2331 - fixing the version in Moose::Meta::Method::Destructor
2332 which was causing the indexer to choke
2334 0.47 Thurs. May 29, 2008
2335 (late night release engineering)--
2337 - fixing the version is META.yml, no functional
2338 changes in this release
2340 0.46 Wed. May 28, 2008
2341 !! This version now approx. 20-25% !!
2342 !! faster with new Class::MOP 0.57 !!
2344 * Moose::Meta::Class
2345 - some optimizations of the &initialize method
2346 since it is called so often by &meta
2348 * Moose::Meta::Class
2350 - now use the get_all_package_symbols from the
2351 updated Class::MOP, test suite is now 10 seconds
2354 * Moose::Meta::Method::Destructor
2355 - is_needed can now also be called as a class
2356 method for immutablization to check if the
2357 destructor object even needs to be created
2360 * Moose::Meta::Method::Destructor
2361 Moose::Meta::Method::Constructor
2362 - added more descriptive error message to help
2363 keep people from wasting time tracking an error
2364 that is easily fixed by upgrading.
2366 0.45 Saturday, May 24, 2008
2368 - Because of work in Class::MOP 0.57, all
2369 XS based functionality is now optional
2370 and a Pure Perl version is supplied
2371 - the CLASS_MOP_NO_XS environment variable
2372 can now be used to force non-XS versions
2374 - several of the packages have been tweaked
2375 to take care of this, mostly we added
2376 support for the package_name and name
2377 variables in all the Method metaclasses
2378 - before/around/after method modifiers now
2379 support regexp matching of names
2380 (thanks to Takatoshi Kitano)
2381 - tests added for this
2382 - NOTE: this only works for classes, it
2383 is currently not supported in roles,
2384 but, ... patches welcome
2385 - All usage of Carp::confess have been replaced
2386 by Carp::croak in the "keyword" functions since
2387 the stack trace is usually not helpful
2390 - All usage of Carp::confess have been replaced
2391 by Carp::croak in the "keyword" functions since
2392 the stack trace is usually not helpful
2393 - The 'has' keyword for roles now accepts the
2394 same array ref form that Moose.pm does
2395 (has [qw/foo bar/] => (is => 'rw', ...))
2396 - added test for this
2398 * Moose::Meta::Attribute
2399 - trigger on a ro-attribute is no longer an
2400 error, as it's useful to trigger off of the
2403 * Moose::Meta::Class
2404 - added same 'add_package_symbol' fix as in
2408 - does_role now handles non-Moose classes
2410 - added tests for this
2411 - added the 'add_method_modifier' function
2412 (thanks to Takatoshi Kitano)
2414 * Moose::Util::TypeConstraints
2415 - subtypes of parameterizable types now are
2416 themselves parameterizable types
2418 * Moose::Meta::Method::Constructor
2419 - fixed bug where trigger was not being
2420 called by the inlined immutable
2422 - added test for this (thanks to Caelum)
2424 * Moose::Meta::Role::Application::ToInstance
2425 - now uses the metaclass of the instance
2426 (if possible) to create the anon-class
2427 (thanks Jonathan Rockway)
2429 * Moose::Cookbook::Recipe22
2430 - added the meta-attribute trait recipe
2434 - fixed hash-ordering test bug that was
2435 causing occasional cpantester failures
2436 - renamed the t/000_recipe/*.t tests to be
2437 more descriptive (thanks to Sartak)
2439 0.44 Sat. May 10, 2008
2441 - made make_immutable warning cluck to
2442 show where the error is (thanks mst)
2445 - BUILDALL and DEMOLISHALL now call
2446 ->body when looping through the
2447 methods, to avoid the overloaded
2449 - fixed issue where DEMOLISHALL was
2450 eating the $@ values, and so not
2451 working correctly, it still kind of
2452 eats them, but so does vanilla perl
2453 - added tests for this
2455 * Moose::Cookbook::Recipe7
2456 - added new recipe for immutable
2457 functionality (thanks Dave Rolsky)
2459 * Moose::Cookbook::Recipe9
2460 - added new recipe for builder and
2461 lazy_build (thanks Dave Rolsky)
2463 * Moose::Cookbook::Recipe11
2464 - added new recipe for method aliasing
2465 and exclusion with Roles (thanks Dave Rolsky)
2468 - fixed Win32 test failure (thanks spicyjack)
2470 ~ removed Build.PL and Module::Build compat
2471 since Module::Install has done that.
2473 0.43 Wed. April, 30, 2008
2475 drink more coffee before
2476 doing release engineering
2478 - whoops, forgot to do the smolder tests,
2479 and we broke some of the custom meta-attr
2480 modules. This fixes that.
2482 0.42 Mon. April 28, 2008
2483 - some bad tests slipped by, nothing else
2484 changed in this release (cpantesters++)
2486 - upped the Class::MOP dependency to 0.55
2487 since we have tests which need the C3
2490 0.41 Mon. April 28, 2008
2491 ~~ numerous documentation updates ~~
2493 - Changed all usage of die to Carp::croak for better
2494 error reporting (initial patch by Tod Hagan)
2496 ** IMPORTANT NOTE **
2497 - the make_immutable keyword is now deprecated, don't
2498 use it in any new code and please fix your old code
2499 as well. There will be 2 releases, and then it will
2505 - refactored the way inner and super work to avoid
2506 any method/@ISA cache penalty (nothingmuch)
2508 * Moose::Meta::Class
2509 - fixing &new_object to make sure trigger gets the
2510 coerced value (spotted by Charles Alderman on the
2512 - added test for this
2514 * Moose::Meta::Method::Constructor
2515 - immutable classes which had non-lazy attributes were calling
2516 the default generating sub twice in the constructor. (bug
2517 found by Jesse Luehrs, fixed by Dave Rolsky)
2518 - added tests for this (Dave Rolsky)
2519 - fix typo in initialize_body method (nothingmuch)
2521 * Moose::Meta::Method::Destructor
2522 - fix typo in initialize_body method (nothingmuch)
2524 * Moose::Meta::Method::Overriden
2525 Moose::Meta::Method::Augmented
2526 - moved the logic for these into their own
2527 classes (nothingmuch)
2529 * Moose::Meta::Attribute
2530 - inherited attributes may now be extended without
2531 restriction on the type ('isa', 'does') (Sartak)
2532 - added tests for this (Sartak)
2533 - when an attribute property is malformed (such as lazy without
2534 a default), give the name of the attribute in the error
2536 - added the &applied_traits and &has_applied_traits methods
2537 to allow introspection of traits
2538 - added tests for this
2539 - moved 'trait' and 'metaclass' argument handling to here from
2541 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2542 '+foo' syntax) (nothingmuch)
2543 - added tests for this (t0m)
2546 - localize $@ inside DEMOLISHALL to avoid it
2547 eating $@ (found by Ernesto)
2548 - added test for this (thanks to Ernesto)
2550 * Moose::Util::TypeConstraints
2551 - &find_type_constraint now DWIMs when given an
2552 type constraint object or name (nothingmuch)
2553 - &find_or_create_type_constraint superseded with a number of more
2555 - find_or_create_{isa,does}_type_constraint
2556 - find_or_parse_type_constraint
2558 * Moose::Meta::TypeConstraint
2559 Moose::Meta::TypeConstraint::Class
2560 Moose::Meta::TypeConstraint::Role
2561 Moose::Meta::TypeConstraint::Enum
2562 Moose::Meta::TypeConstraint::Union
2563 Moose::Meta::TypeConstraint::Parameterized
2564 - added the &equals method for comparing two type
2565 constraints (nothingmuch)
2566 - added tests for this (nothingmuch)
2568 * Moose::Meta::TypeConstraint
2569 - add the &parents method, which is just an alias to &parent.
2570 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2572 * Moose::Meta::TypeConstraint::Class
2573 - added the class attribute for introspection purposes
2575 - added tests for this
2577 * Moose::Meta::TypeConstraint::Enum
2578 Moose::Meta::TypeConstraint::Role
2579 - broke these out into their own classes (nothingmuch)
2581 * Moose::Cookbook::Recipe*
2582 - fixed references to test file locations in the POD
2583 and updated up some text for new Moose features
2587 - Added &resolve_metaclass_alias, a helper function for finding an actual
2588 class for a short name (e.g. in the traits list)
2590 0.40 Fri. March 14, 2008
2591 - I hate Pod::Coverage
2593 0.39 Fri. March 14, 2008
2595 - documenting the use of '+name' with attributes
2596 that come from recently composed roles. It makes
2597 sense, people are using it, and so why not just
2598 officially support it.
2599 - fixing the 'extends' keyword so that it will not
2600 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2603 - added the perl -Moose=+Class::Name feature to allow
2604 monkeypatching of classes in one liners
2607 - fixing the 'apply_all_roles' keyword so that it will not
2608 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2610 * Moose::Meta::Class
2611 - added ->create method which now supports roles (thanks to jrockway)
2612 - added tests for this
2613 - added ->create_anon_class which now supports roles and caching of
2614 the results (thanks to jrockway)
2615 - added tests for this
2616 - made ->does_role a little more forgiving when it is
2617 checking a Class::MOP era metaclasses.
2619 * Moose::Meta::Role::Application::ToInstance
2620 - it is now possible to pass extra params to be used when
2621 a role is applied to an the instance (rebless_params)
2622 - added tests for this
2624 * Moose::Util::TypeConstraints
2625 - class_type now accepts an optional second argument for a
2626 custom message. POD anotated accordingly (groditi)
2627 - added tests for this
2628 - it is now possible to make anon-enums by passing 'enum' an
2629 ARRAY ref instead of the $name => @values. Everything else
2631 - added tests for this
2634 - making test for using '+name' on attributes consumed
2635 from a role, it works and makes sense too.
2637 * Moose::Meta::Attribute
2638 - fix handles so that it doesn't return nothing
2639 when the method cannot be found, not sure why
2640 it ever did this originally, this means we now
2641 have slightly better support for AUTOLOADed
2643 - added more delegation tests
2644 - adding ->does method to this so as to better
2645 support traits and their introspection.
2646 - added tests for this
2649 - localizing the Data::Dumper configurations so
2650 that it does not pollute others (RT #33509)
2651 - made ->does a little more forgiving when it is
2652 passed Class::MOP era metaclasses.
2654 0.38 Fri. Feb. 15, 2008
2655 * Moose::Meta::Attribute
2656 - fixed initializer to correctly do
2657 type checking and coercion in the
2659 - added tests for this
2662 - fixed some finicky tests (thanks to konobi)
2664 0.37 Thurs. Feb. 14, 2008
2666 - fixed some details in Moose::init_meta
2667 and its superclass handling (thanks thepler)
2668 - added tests for this (thanks thepler)
2669 - 'has' now dies if you don't pass in name
2671 - added the 'make_immutable' keyword as a shortcut
2674 * Moose::Meta::Class
2675 Moose::Meta::Method::Constructor
2676 Moose::Meta::Attribute
2677 - making (init_arg => undef) work here too
2678 (thanks to nothingmuch)
2680 * Moose::Meta::Attribute
2681 Moose::Meta::Method::Constructor
2682 Moose::Meta::Method::Accessor
2683 - make lazy attributes respect attr initializers (rjbs)
2684 - added tests for this
2686 * Moose::Util::TypeConstraints
2687 Moose::Util::TypeConstraints::OptimizedConstraints
2688 Moose::Meta::TypeConstraints
2689 Moose::Meta::Attribute
2690 Moose::Meta::Method::Constructor
2691 Moose::Meta::Method::Accessor
2692 - making type errors use the
2693 assigned message (thanks to Sartak)
2694 - added tests for this
2696 * Moose::Meta::Method::Destructor
2697 - making sure DESTROY gets inlined properly
2698 with successive DEMOLISH calls (thanks to manito)
2700 * Moose::Meta::Attribute
2701 Moose::Meta::Method::Accessor
2702 - fixed handling of undef with type constraints
2704 - added tests for this
2707 - added &get_all_init_args and &get_all_attribute_values
2708 (thanks to Sartak and nothingmuch)
2710 0.36 Sat. Jan. 26, 2008
2712 Moose::Meta::Attribute
2713 - role type tests now support when roles are
2714 applied to non-Moose classes (found by ash)
2715 - added tests for this (thanks to ash)
2716 - couple extra tests to boost code coverage
2718 * Moose::Meta::Method::Constructor
2719 - improved fix for handling Class::MOP attributes
2720 - added test for this
2722 * Moose::Meta::Class
2723 - handled the add_attribute($attribute_meta_object)
2725 - added test for this
2727 0.35 Tues. Jan. 22, 2008
2728 * Moose::Meta::Method::Constructor
2729 - fix to make sure even Class::MOP attributes
2730 are handled correctly (Thanks to Dave Rolsky)
2731 - added test for this (also Dave Rolsky)
2733 * Moose::Meta::Class
2734 - improved error message on _apply_all_roles,
2735 you should now use Moose::Util::apply_all_roles
2736 and you shouldnt have been using a _ prefixed
2737 method in the first place ;)
2739 0.34 Mon. Jan. 21, 2008
2740 ~~~ more misc. doc. fixes ~~~
2741 ~~ updated copyright dates ~~
2743 Moose is now a postmodern object system :)
2744 - (see the POD for details)
2746 * <<Role System Refactoring>>
2747 - this release contains a major reworking and
2748 cleanup of the role system
2749 - 100% backwards compat.
2750 - Role application now restructured into seperate
2751 classes based on type of applicants
2752 - Role summation (combining of more than one role)
2753 is much cleaner and anon-classes are no longer
2754 used in this process
2755 - new Composite role metaclass
2756 - runtime application of roles to instances
2757 is now more efficient and re-uses generated
2758 classes when applicable
2760 * <<New Role composition features>>
2761 - methods can now be excluded from a given role
2763 - methods can now be aliased to another name (and
2764 still retain the original as well)
2766 * Moose::Util::TypeConstraints::OptimizedConstraints
2767 - added this module (see above)
2769 * Moose::Meta::Class
2770 - fixed the &_process_attribute method to be called
2771 by &add_attribute, so that the API is now correct
2773 * Moose::Meta::Method::Accessor
2774 - fixed bug when passing a list of values to
2775 an accessor would get (incorrectly) ignored.
2776 Thanks to Sartak for finding this ;)
2777 - added tests for this (Sartak again)
2779 * Moose::Meta::Method::Accessor
2780 Moose::Meta::Method::Constructor
2781 Moose::Meta::Attribute
2782 Moose::Meta::TypeConstraint
2783 Moose::Meta::TypeCoercion
2784 - lots of cleanup of such things as:
2786 - type constraint handling
2787 - error handling/messages
2788 (thanks to nothingmuch)
2790 * Moose::Meta::TypeConstraint::Parameterizable
2791 - added this module to support the refactor
2792 in Moose::Meta::TypeConstraint::Parameterized
2794 * Moose::Meta::TypeConstraint::Parameterized
2795 - refactored how these types are handled so they
2796 are more generic and not confined to ArrayRef
2800 - shortened some file names for better VMS support (RT #32381)
2802 0.33 Fri. Dec. 14, 2007
2803 !! Moose now loads 2 x faster !!
2804 !! with new Class::MOP 0.49 !!
2806 ++ new oose.pm module to make command line
2807 Moose-ness easier (see POD docs for more)
2809 * Moose::Meta::Class
2811 - several tweaks to take advantage of the
2812 new method map caching in Class::MOP
2814 * Moose::Meta::TypeConstraint::Parameterized
2815 - allow subtypes of ArrayRef and HashRef to
2816 be used as a container (sartak)
2817 - added tests for this
2818 - basic support for coercion to ArrayRef and
2819 HashRef for containers (sartak)
2820 - added tests for this
2822 * Moose::Meta::TypeCoercion
2823 - coercions will now create subtypes as needed
2824 so you can now add coercions to parameterized
2825 types without having to explictly define them
2826 - added tests for this
2828 * Moose::Meta::Method::Accessor
2829 - allow subclasses to decide whether we need
2830 to copy the value into a new variable (sartak)
2832 0.32 Tues. Dec. 4, 2007
2833 * Moose::Util::TypeConstraints
2834 - fixing how subtype aliases of unions work
2835 they should inherit the parent's coercion
2836 - added tests for this
2837 - you can now define multiple coercions on
2838 a single type at different times instead of
2839 having to do it all in one place
2840 - added tests for this
2842 * Moose::Meta::TypeConstraint
2843 - there is now a default constraint of sub { 1 }
2844 instead of Moose::Util::TypeConstraints setting
2847 * Moose::Meta::TypeCoercion
2848 * Moose::Meta::TypeCoercion::Union
2849 - added the &has_coercion_for_type and
2850 &add_type_coercions methods to support the
2851 new features above (although you cannot add
2852 more type coercions for Union types)
2854 0.31 Mon. Nov. 26, 2007
2855 * Moose::Meta::Attribute
2856 - made the +attr syntax handle extending types with
2857 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2858 now works if the original foo is an ArrayRef.
2859 - added tests for this.
2860 - delegation now works even if the attribute does not
2861 have a reader method using the get_read_method_ref
2862 method from Class::MOP::Attribute.
2863 - added tests for this
2864 - added docs for this
2866 * Moose::Util::TypeConstraints
2867 - passing no "additional attribute info" to
2868 &find_or_create_type_constraint will no longer
2869 attempt to create an __ANON__ type for you,
2870 instead it will just return undef.
2871 - added docs for this
2873 0.30 Fri. Nov. 23, 2007
2874 * Moose::Meta::Method::Constructor
2875 -builder related bug in inlined constructor. (groditi)
2877 * Moose::Meta::Method::Accessor
2878 - genereate unnecessary calls to predicates and refactor
2879 code generation for runtime speed (groditi)
2881 * Moose::Util::TypeConstraints
2882 - fix ClassName constraint to introspect symbol table (mst)
2883 - added more tests for this (mst)
2884 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2885 with work correctly.
2886 - added tests for this
2889 - adding the link to Recipie 11 (written by Sartak)
2890 - adding test for SYNOPSIS code
2893 - New tests for builder bug. Upon instantiation, if an
2894 attribute had a builder, no value and was not lazy the
2895 builder default was not getting run, oops. (groditi)
2897 0.29 Tues. Nov. 13, 2007
2898 * Moose::Meta::Attribute
2899 - Fix error message on missing builder method (groditi)
2901 * Moose::Meta::Method::Accessor
2902 - Fix error message on missing builder method (groditi)
2905 - Add test to check for the correct error message when
2906 builder method is missing (groditi)
2908 0.28 Tues. Nov. 13, 2007
2909 - 0.27 packaged incorrectly (groditi)
2911 0.27 Tues. Nov. 13, 2007
2912 * Moose::Meta::Attribute
2913 - Added support for the new builder option (groditi)
2914 - Added support for lazy_build option (groditi)
2915 - Changed slot initialization for predicate changes (groditi)
2917 * Moose::Meta::Method::Accessor
2918 - Added support for lazy_build option (groditi)
2919 - Fix inline methods to work with corrected predicate
2922 * Moose::Meta::Method::Constructor
2923 - Added support for lazy_build option (groditi)
2926 - tests for builder and lazy_build (groditi)
2928 * fixing some misc. bits in the docs that
2929 got mentioned on CPAN Forum & perlmonks
2932 - fixed how required methods are handled
2933 when they encounter overriden or modified
2934 methods from a class (thanks to confound).
2935 - added tests for this
2937 * Moose::Util::TypeConstraint
2938 - fixed the type notation parser so that
2939 the | always creates a union and so is
2940 no longer a valid type char (thanks to
2941 konobi, mugwump and #moose for working
2943 - added more tests for this
2945 0.26 Thurs. Sept. 27, 2007
2948 * Parameterized Types
2949 We now support parameterized collection types, such as:
2950 ArrayRef[Int] # array or integers
2951 HashRef[Object] # a hash with object values
2952 They can also be nested:
2953 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2954 And work with the type unions as well:
2955 ArrayRef[Int | Str] # array of integers of strings
2957 * Better Framework Extendability
2958 Moose.pm is now "extendable" such that it is now much
2959 easier to extend the framework and add your own keywords
2960 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2961 section of the Moose.pm docs.
2964 In an effort to begin documenting some of the various
2965 details of Moose as well as some common idioms, we have
2966 created Moose::Cookbook::Snacks as a place to find
2967 small (easily digestable) nuggets of Moose code.
2970 ~ Several doc updates/cleanup thanks to castaway ~
2972 - converted build system to use Module::Install instead of
2973 Module::Build (thanks to jrockway)
2976 - added all the meta classes to the immutable list and
2977 set it to inline the accessors
2978 - fix import to allow Sub::Exporter like { into => }
2979 and { into_level => } (perigrin)
2980 - exposed and documented init_meta() to allow better
2981 embedding and extending of Moose (perigrin)
2984 - complete re-organization of the test suite
2985 - added some new tests as well
2986 - finally re-enabled the Moose::POOP test since
2987 the new version of DBM::Deep now works again
2990 * Moose::Meta::Class
2991 - fixed very odd and very nasty recursion bug with
2993 - added tests for this (eilara)
2995 * Moose::Meta::Attribute
2996 Moose::Meta::Method::Constructor
2997 Moose::Meta::Method::Accessor
2998 - fixed issue with overload::Overloaded getting called
2999 on non-blessed items. (RT #29269)
3000 - added tests for this
3002 * Moose::Meta::Method::Accessor
3003 - fixed issue with generated accessor code making
3004 assumptions about hash based classes (thanks to dexter)
3006 * Moose::Coookbook::Snacks
3007 - these are bits of documentation, not quite as big as
3008 Recipes but which have no clear place in the module docs.
3009 So they are Snacks! (horray for castaway++)
3011 * Moose::Cookbook::Recipe4
3012 - updated it to use the new ArrayRef[MyType] construct
3013 - updated the accompanying test as well
3015 +++ Major Refactor of the Type Constraint system +++
3016 +++ with new features added as well +++
3018 * Moose::Util::TypeConstraint
3019 - no longer uses package variable to keep track of
3020 the type constraints, now uses the an instance of
3021 Moose::Meta::TypeConstraint::Registry to do it
3022 - added more sophisticated type notation parsing
3024 - added tests for this
3026 * Moose::Meta::TypeConstraint
3027 - some minor adjustments to make subclassing easier
3028 - added the package_defined_in attribute so that we
3029 can track where the type constraints are created
3031 * Moose::Meta::TypeConstraint::Union
3032 - this is now been refactored to be a subclass of
3033 Moose::Meta::TypeConstraint
3035 * Moose::Meta::TypeCoercion::Union
3036 - this has been added to service the newly refactored
3037 Moose::Meta::TypeConstraint::Union and is itself
3038 a subclass of Moose::Meta::TypeCoercion
3040 * Moose::Meta::TypeConstraint::Parameterized
3041 - added this module (taken from MooseX::AttributeHelpers)
3042 to help construct nested collection types
3043 - added tests for this
3045 * Moose::Meta::TypeConstraint::Registry
3046 - added this class to keep track of type constraints
3048 0.25 Mon. Aug. 13, 2007
3050 - Documentation update to reference Moose::Util::TypeConstraints
3051 under 'isa' in 'has' for how to define a new type
3052 (thanks to shlomif).
3054 * Moose::Meta::Attribute
3055 - required attributes now will no longer accept undef
3056 from the constructor, even if there is a default and lazy
3057 - added tests for this
3058 - default subroutines must return a value which passes the
3060 - added tests for this
3062 * Moose::Meta::Attribute
3063 * Moose::Meta::Method::Constructor
3064 * Moose::Meta::Method::Accessor
3065 - type-constraint tests now handle overloaded objects correctly
3066 in the error message
3067 - added tests for this (thanks to EvanCarroll)
3069 * Moose::Meta::TypeConstraint::Union
3070 - added (has_)hand_optimized_constraint to this class so that
3071 it behaves as the regular Moose::Meta::TypeConstraint does.
3074 - large refactoring of this code
3075 - added several more tests
3076 - tests for subtle conflict resolition issues
3077 added, but not currently running
3080 * Moose::Cookbook::Recipe7
3081 - added new recipe for augment/inner functionality
3083 - added test for this
3086 - a formal definition of roles (still in progress)
3089 - utilities for easier working with Moose classes
3090 - added tests for these
3093 - This contains Moose specific test functions
3094 - added tests for these
3096 0.24 Tues. July 3, 2007
3097 ~ Some doc updates/cleanup ~
3099 * Moose::Meta::Attribute
3100 - added support for roles to be given as parameters
3101 to the 'handles' option.
3102 - added tests and docs for this
3103 - the has '+foo' attribute form now accepts changes to
3104 the lazy option, and the addition of a handles option
3105 (but not changing the handles option)
3106 - added tests and docs for this
3109 - required methods are now fetched using find_method_by_name
3110 so that required methods can come from superclasses
3111 - adjusted tests for this
3113 0.23 Mon. June 18, 2007
3114 * Moose::Meta::Method::Constructor
3115 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
3116 * Moose::Meta::Class
3117 - Modify make_immutable to work with the new Class::MOP immutable
3118 mechanism + POD + very basic test (groditi)
3119 * Moose::Meta::Attribute
3120 - Fix handles to use goto() so that caller() comes out properly on
3121 the other side (perigrin)
3123 0.22 Thurs. May 31, 2007
3124 * Moose::Util::TypeConstraints
3125 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
3126 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
3127 prototypes for functions
3128 - added the ClassName type constraint, this checks for strings
3129 which will respond true to ->isa(UNIVERSAL).
3130 - added tests and docs for this
3131 - subtyping just in name now works correctly by making the
3132 default for where be { 1 }
3133 - added test for this
3135 * Moose::Meta::Method::Accessor
3136 - coerce and lazy now work together correctly, thanks to
3137 merlyn for finding this bug
3138 - tests added for this
3139 - fix reader presedence bug in Moose::Meta::Attribute + tests
3142 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
3143 a HASH-ref and missed. This produces better error messages then
3144 having it die cause undef is not a HASH.
3145 - added tests for this
3147 0.21 Thursday, May 2nd, 2007
3149 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
3150 - modified unimport to remove super and inner along with the rest
3151 - altered unimport tests to handle this
3154 - altered super export to populate SUPER_SLOT
3156 * Moose::Meta::Class
3157 - altered augment and override modifier application to use *_SLOT
3158 - modified tests for these to unimport one test class each to test
3161 - fixed issue where custom attribute metaclasses
3162 where not handled correctly in roles
3163 - added tests for this
3165 * Moose::Meta::Class
3166 - fixed issue where extending metaclasses with
3167 roles would blow up. Thanks to Aankhen`` for
3168 finding this insidious error, and it's solution.
3170 ~~ lots of spelling and grammer fixes in the docs,
3171 many many thanks to rlb3 and Aankhen for these :)
3173 0.20 Friday, April 6th, 2007
3174 >> I messed up the SKIP logic in one test
3175 so this release is just to fix that.
3178 - 'has' now also accepts an ARRAY ref
3179 to create multiple attrs (see docs)
3180 (thanks to konobi for this)
3181 - added tests and docs
3183 0.19 Thurs. April 5th, 2007
3184 ~~ More documentation updates ~~
3186 * Moose::Util::TypeConstraints
3187 - 'type' now supports messages as well
3188 thanks to phaylon for finding this
3189 - added tests for this
3190 - added &list_all_type_constraints and
3191 &list_all_builtin_type_constraints
3192 functions to facilitate introspection.
3194 * Moose::Meta::Attribute
3195 - fixed regexp 'handles' declarations
3196 to build the list of delegated methods
3197 correctly (and not override important
3198 things like &new) thanks to ashleyb
3200 - added tests and docs for this
3201 - added the 'documentation' attributes
3202 so that you can actually document your
3203 attributes and inspect them through the
3205 - added tests and docs for this
3207 * Moose::Meta::Class
3208 - when loading custom attribute metaclasses
3209 it will first look in for the class in the
3210 Moose::Meta::Attribute::Custom::$name, and
3211 then default to just loading $name.
3212 - added tests and docs for this
3214 * Moose::Meta::TypeConstraint
3215 - type constraints now stringify to their names.
3216 - added test for this
3219 - added tests to assure we work with Module::Refresh
3220 - added stricter test skip logic in the Moose POOP
3221 test, ask Rob Kinyon why.
3222 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
3224 0.18 Sat. March 10, 2007
3225 ~~ Many, many documentation updates ~~
3228 - We now use Class::MOP::load_class to
3230 - added tests to show types and subtypes
3231 working with Declare::Constraints::Simple
3232 and Test::Deep as constraint engines.
3235 !! You must have Class::MOP 0.37_001 !!
3236 !! for this developer release to work !!
3238 This release was primarily adding the immutable
3239 feature to Moose. An immutable class is one which
3240 you promise not to alter. When you set the class
3241 as immutable it will perform various bits of
3242 memoization and inline certain part of the code
3243 (constructors, destructors and accessors). This
3244 minimizes (and in some cases totally eliminates)
3245 one of Moose's biggest performance hits. This
3246 feature is not on by default, and is 100% optional.
3247 It has several configurable bits as well, so you
3248 can pick and choose to your specific needs.
3250 The changes involved in this were fairly wide and
3251 highly specific, but 100% backwards compatible, so
3252 I am not going to enumerate them here. If you are
3253 truely interested in what was changed, please do
3256 0.17 Tues. Nov. 14, 2006
3257 * Moose::Meta::Method::Accessor
3258 - bugfix for read-only accessors which
3259 are have a type constraint and lazy.
3260 Thanks to chansen for finding it.
3262 0.16 Tues. Nov. 14, 2006
3264 There are some speed improvements in this release,
3265 but they are only the begining, so stay tuned.
3268 - BUILDALL and DEMOLISHALL no longer get
3269 called unless they actually need to be.
3270 This gave us a signifigant speed boost
3271 for the cases when there is no BUILD or
3272 DEMOLISH method present.
3274 * Moose::Util::TypeConstraints
3275 * Moose::Meta::TypeConstraint
3276 - added an 'optimize_as' option to the
3277 type constraint, which allows for a
3278 hand optimized version of the type
3279 constraint to be used when possible.
3280 - Any internally created type constraints
3281 now provide an optimized version as well.
3283 0.15 Sun. Nov. 5, 2006
3285 This version of Moose *must* have Class::MOP 0.36 in order
3286 to work correctly. A number of small internal tweaks have
3287 been made in order to be compatible with that release.
3289 * Moose::Util::TypeConstraints
3290 - added &unimport so that you can clean out
3291 your class namespace of these exported
3294 * Moose::Meta::Class
3295 - fixed minor issue which occasionally
3296 comes up during global destruction
3298 - moved Moose::Meta::Method::Overriden into
3302 - moved Moose::Meta::Role::Method into
3305 * Moose::Meta::Attribute
3306 - changed how we do type checks so that
3307 we reduce the overall cost, but still
3310 - moved accessor generation methods to
3311 Moose::Meta::Method::Accessor to
3312 conform to the API changes from
3315 * Moose::Meta::TypeConstraint
3316 - changed how constraints are compiled
3317 so that we do less recursion and more
3318 iteration. This makes the type check
3320 - moved Moose::Meta::TypeConstraint::Union
3323 * Moose::Meta::Method::Accessor
3324 - created this from methods formerly found in
3325 Moose::Meta::Attribute
3327 * Moose::Meta::Role::Method
3328 - moved this from Moose::Meta::Role
3330 * Moose::Meta::Method::Overriden
3331 - moved this from Moose::Meta::Class
3333 * Moose::Meta::TypeConstraint::Union
3334 - moved this from Moose::Meta::TypeConstraint
3336 0.14 Mon. Oct. 9, 2006
3338 * Moose::Meta::Attribute
3339 - fixed lazy attributes which were not getting
3340 checked with the type constraint (thanks ashley)
3341 - added tests for this
3342 - removed the over-enthusiastic DWIMery of the
3343 automatic ArrayRef and HashRef defaults, it
3344 broke predicates in an ugly way.
3345 - removed tests for this
3347 0.13 Sat. Sept. 30, 2006
3349 This version of Moose *must* have Class::MOP 0.35 in order
3350 to work correctly. A number of small internal tweaks have
3351 been made in order to be compatible with that release.
3354 - Removed the use of UNIVERSAL::require to be a better
3355 symbol table citizen and remove a dependency
3356 (thanks Adam Kennedy)
3358 **~~ removed experimental & undocumented feature ~~**
3359 - commented out the 'method' and 'self' keywords, see the
3360 comments for more info.
3363 - added a FAQ and WTF files to document frequently
3364 asked questions and common problems
3366 * Moose::Util::TypeConstraints
3367 - added GlobRef and FileHandle type constraint
3368 - added tests for this
3370 * Moose::Meta::Attribute
3371 - if your attribute 'isa' ArrayRef of HashRef, and you have
3372 not explicitly set a default, then make the default DWIM.
3373 This will also work for subtypes of ArrayRef and HashRef
3375 - you can now auto-deref subtypes of ArrayRef or HashRef too.
3376 - new test added for this (thanks to ashley)
3379 - added basic support for runtime role composition
3380 but this is still *highly experimental*, so feedback
3381 is much appreciated :)
3382 - added tests for this
3384 * Moose::Meta::TypeConstraint
3385 - the type constraint now handles the coercion process
3386 through delegation, this is to support the coercion
3389 * Moose::Meta::TypeConstraint::Union
3390 - it is now possible for coercions to be performed
3392 - added tests for this (thanks to konobi)
3394 * Moose::Meta::TypeCoercion
3395 - properly capturing error when type constraint
3399 - Scalar::Util 1.18 is bad on Win32, so temporarily
3400 only require version 1.17 for Win32 and cygwin.
3401 (thanks Adam Kennedy)
3403 0.12 Sat. Sept. 1, 2006
3405 - Recipe5 (subtypes & coercion) has been written
3408 - fixed "bad meta" error message to be more descriptive
3409 - fixed &unimport to not remove the &inner and &super
3410 keywords because we need to localize them.
3411 - fixed number of spelling/grammer issues, thanks Theory :)
3413 **~~ experimental & undocumented feature ~~**
3414 - added the method and self keywords, they are basically
3415 just sugar, and they may not stay around.
3418 - added &dump method to easily Data::Dumper
3421 * Moose::Meta::TypeConstraint
3422 - added the &is_a_type_of method to check both the current
3423 and the subtype of a method (similar to &isa with classes)
3426 - this is now a subclass of Class::MOP::Module, and no longer
3427 creates the _role_meta ugliness of before.
3428 - fixed tests to reflect this change
3430 0.11 Wed. July 12, 2006
3432 - added an &unimport method to remove all the keywords
3433 that Moose will import, simply add 'no Moose' to the
3434 bottom of your class file.
3437 - fixed some test failures caused by a forgotten test
3440 0.10 Thurs. July 6, 2006
3442 - improved error message when loading modules so
3443 it is less confusing when you load a role.
3444 - added &calculate_all_roles method to
3445 Moose::Meta::Class and Moose::Meta::Role
3448 This module has been tested against Class::MOP 0.30
3449 but it does not yet utilize the optimizations
3450 it makes available. Stay tuned for that ;)
3452 0.09_03 Fri. June 23, 2006
3453 ++ DEVELOPER RELEASE ++
3455 - 'use strict' and 'use warnings' are no longer
3456 needed in Moose classes, Moose itself will
3457 turn them on for you.
3458 - added tests for this
3459 - moved code from exported subs to private methods
3460 in Moose::Meta::Class
3463 - as with Moose, strict and warnings are
3464 automatically turned on for you.
3465 - added tests for this
3468 - now handles an edge case for override errors
3469 - added tests for this
3470 - added some more edge case tests
3472 0.09_02 Tues. May 16, 2006
3473 ++ DEVELOPER RELEASE ++
3475 - added prototypes to the exported subs
3479 - added prototypes to the exported subs
3482 * Moose::Util::TypeConstraints
3483 - cleaned up prototypes for the subs
3486 0.09_01 Fri. May 12, 2006
3487 ++ DEVELOPER RELEASE ++
3488 - This release works in combination with
3489 Class::MOP 0.29_01, it is a developer
3490 release because it uses the a new
3491 instance sub-protocol and a fairly
3492 complete Role implementation. It has
3493 not yet been optimized, so it slower
3494 the the previous CPAN version. This
3495 release also lacks good updated docs,
3496 the official release will have updated docs.
3499 - refactored the keyword exports
3500 - 'with' now checks Role validaity and
3501 accepts more than one Role at a time
3502 - 'extends' makes metaclass adjustments as
3503 needed to ensure metaclass compatibility
3506 - refactored the keyword exports
3507 - 'with' now checks Role validaity and
3508 accepts more than one Role at a time
3510 * Moose::Util::TypeConstraints
3511 - added the 'enum' keyword for simple
3512 string enumerations which can be used as
3514 - see example of usage in t/202_example.t
3517 - more careful checking of params to new()
3520 - much work done on the role composition
3521 - many new tests for conflict detection
3522 and composition edge cases
3523 - not enough documentation, I suggest
3524 looking at the tests
3526 * Moose::Meta::Instance
3527 - added new Instance metaclass to support
3528 the new Class::MOP instance protocol
3530 * Moose::Meta::Class
3531 - some small changes to support the new
3533 - some small additions to support Roles
3535 * Moose::Meta::Attribute
3536 - some improvements to the accessor generation code
3538 - some small changes to support the new
3540 - (still somewhat) experimental delegation support
3541 with the 'handles' option
3542 - added several tests for this
3543 - no docs for this yet
3545 0.05 Thurs. April 27, 2006
3547 - keywords are now exported with Sub::Exporter
3548 thanks to chansen for this commit
3549 - has keyword now takes a 'metaclass' option
3550 to support custom attribute meta-classes
3551 on a per-attribute basis
3552 - added tests for this
3553 - the 'has' keyword not accepts inherited slot
3554 specifications (has '+foo'). This is still an
3555 experimental feature and probably not finished
3556 see t/038_attribute_inherited_slot_specs.t for
3557 more details, or ask about it on #moose
3558 - added tests for this
3561 - keywords are now exported with Sub::Exporter
3563 * Moose::Utils::TypeConstraints
3564 - reorganized the type constraint hierarchy, thanks
3565 to nothingmuch and chansen for his help and advice
3567 - added some tests for this
3568 - keywords are now exported with Sub::Exporter
3569 thanks to chansen for this commit
3571 * Moose::Meta::Class
3572 - due to changes in Class::MOP, we had to change
3573 construct_instance (for the better)
3575 * Moose::Meta::Attribute
3576 - due to changes in Class::MOP, we had to add the
3577 initialize_instance_slot method (it's a good thing)
3579 * Moose::Meta::TypeConstraint
3580 - added type constraint unions
3581 - added tests for this
3582 - added the is_subtype_of predicate method
3583 - added tests for this
3585 0.04 Sun. April 16th, 2006
3587 - Roles can now consume other roles
3588 - added tests for this
3589 - Roles can specify required methods now with
3590 the requires() keyword
3591 - added tests for this
3594 - ripped out much of it's guts ,.. much cleaner now
3595 - added required methods and correct handling of
3596 them in apply() for both classes and roles
3597 - added tests for this
3598 - no longer adds a does() method to consuming classes
3599 it relys on the one in Moose::Object
3600 - added roles attribute and some methods to support
3601 roles consuming roles
3603 * Moose::Meta::Attribute
3604 - added support for triggers on attributes
3605 - added tests for this
3606 - added support for does option on an attribute
3607 - added tests for this
3609 * Moose::Meta::Class
3610 - added support for attribute triggers in the
3612 - added tests for this
3615 - Moose no longer creates a subtype for your class
3616 if a subtype of the same name already exists, this
3617 should DWIM in 99.9999% of all cases
3619 * Moose::Util::TypeConstraints
3620 - fixed bug where incorrect subtype conflicts were
3622 - added test for this
3625 - this class can now be extended with 'use base' if
3626 you need it, it properly loads the metaclass class now
3627 - added test for this
3629 0.03_02 Wed. April 12, 2006
3631 - you must now explictly use Moose::Util::TypeConstraints
3632 it no longer gets exported for you automatically
3635 - new() now accepts hash-refs as well as key/value lists
3636 - added does() method to check for Roles
3637 - added tests for this
3639 * Moose::Meta::Class
3640 - added roles attribute along with the add_role() and
3642 - added tests for this
3645 - now adds a does() method to consuming classes
3646 which tests the class's hierarchy for roles
3647 - added tests for this
3649 0.03_01 Mon. April 10, 2006
3651 - added new Role recipe (no content yet, only code)
3654 - added 'with' keyword for Role support
3655 - added test and docs for this
3656 - fixed subtype quoting bug
3657 - added test for this
3661 - added test and docs
3663 * Moose::Util::TypeConstraints
3664 - added the message keyword to add custom
3665 error messages to type constraints
3668 - the meta role to support Moose::Role
3669 - added tests and docs
3671 * Moose::Meta::Class
3672 - moved a number of things from Moose.pm
3673 to here, they should have been here
3676 * Moose::Meta::Attribute
3677 - moved the attribute option macros here
3678 instead of putting them in Moose.pm
3680 * Moose::Meta::TypeConstraint
3681 - added the message attributes and the
3683 - added tests and docs for this
3685 0.03 Thurs. March 30, 2006
3687 - added the Moose::Cookbook with 5 recipes,
3688 describing all the stuff Moose can do.
3691 - fixed an issue with &extends super class loading
3692 it now captures errors and deals with inline
3693 packages correctly (bug found by mst, solution
3695 - added super/override & inner/augment features
3696 - added tests and docs for these
3699 - BUILDALL now takes a reference of the %params
3700 that are passed to &new, and passes that to
3703 * Moose::Util::TypeConstraints
3704 - Type constraints now survive runtime reloading
3705 - added test for this
3707 * Moose::Meta::Class
3708 - fixed the way attribute defaults are handled
3709 during instance construction (bug found by chansen)
3711 * Moose::Meta::Attribute
3712 - read-only attributes now actually enforce their
3713 read-only-ness (this corrected in Class::MOP as
3716 0.02 Tues. March 21, 2006
3718 - many more tests, fixing some bugs and
3720 - &extends now loads the base module with
3722 - added UNIVERSAL::require to the
3725 - each new Moose class will also create
3726 and register a subtype of Object which
3727 correspond to the new Moose class.
3728 - the 'isa' option in &has now only
3729 accepts strings, and will DWIM in
3732 * Moose::Util::TypeConstraints
3733 - added type coercion features
3734 - added tests for this
3735 - added support for this in attributes
3736 and instance construction
3738 - type construction no longer creates a
3739 function, it registers the type instead.
3740 - added several functions to get the
3744 - BUILDALL and DEMOLISHALL were broken
3745 because of a mis-named hash key, Whoops :)
3747 * Moose::Meta::Attribute
3748 - adding support for coercion in the
3749 autogenerated accessors
3751 * Moose::Meta::Class
3752 - adding support for coercion in the
3753 instance construction
3755 * Moose::Meta::TypeConstraint
3756 * Moose::Meta::TypeCoercion
3757 - type constraints and coercions are now
3758 full fledges meta-objects
3760 0.01 Wed. March 15, 2006
3761 - Moooooooooooooooooose!!!