1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Make sure weak attributes remain weak when cloning. (doy, rafl)
10 2.0006 Mon, May 09, 2011
14 * Revert the List::MoreUtils version bump, as it breaks backwards
15 compatibility. The dependency will be bumped with Moose 2.0200.
17 2.0005 Mon, May 09, 2011
21 * Only sort the alias keys when determining caching.
23 2.0004 Mon, May 09, 2011
27 * Bump the List::MoreUtils dep to avoid buggy behavior in old versions.
29 * Sort the list of roles and the alias and excludes parameters when
30 determining caching, since their order doesn't matter.
32 2.0003 Mon, May 09, 2011
36 * Applying multiple role objects (rather than role names) at once no longer
37 skips every other role. (rjbs)
39 * Caching of anon classes now works more sanely in the presence of role
40 application parameters - alias and excludes options are taken into account,
41 and caching is disabled entirely if other parameters exist. Asking for
42 caching (instead of just not weakening) when parameters are given will
43 begin warning in Moose 2.0200. (doy, autarch)
45 2.0002 Thu, Apr 28, 2011
49 * Provide definition context information for constructors and destructors, so
50 that they will show up as something other than "generated method (unknown
51 origin)". Also, add the package that accessors are defined in to their
54 * Use Devel::PartialDump in type constraint error messages, if it is
59 * Stop hiding warnings produced by throwing errors in DEMOLISH methods.
61 * The 'reset' native delegation for Counter attributes will now also respect
62 builders (previously, it only respected defaults).
64 2.0001 Fri, Apr 22, 2011
68 * Anonymous classes and roles now have a unified implementation in
69 Class::MOP::Package. This means that anonymous packages are now also
70 possible. (Shawn M Moore, doy)
74 * No longer call XSLoader from multiple places, as this causes issues on
75 older perls. (doy, ribasushi)
77 * Moose::Meta::Role->create now accepts the 'roles' parameter, as it was
78 documented to. (Chris Weyl)
80 * Depend on Eval::Closure 0.04, which fixes some issues in mod_perl
81 environments. (doy, mateu)
83 2.0000 Mon, Apr 11, 2011
87 * The RegexpRef type constraint now accepts regular expressions blessed into
88 other classes, such as those found in pluggable regexp engines.
89 Additionally the 'Object' constraint no longer rejects objects implemented
90 as a blessed regular expression. (David Leadbeater)
94 * Moose::Manual::Support now explicitly states when major releases are
95 allowed to happen (January, April, July, or October).
97 1.9906-TRIAL Mon, Apr 04, 2011
101 * Update conflicts list.
104 1.9905-TRIAL Mon, Mar 28, 2011
108 * The Moose::Meta::Role::Attribute class now has an original_role method
109 which returns the role which first defined an attribute. See the docs for
110 details. (Dave Rolsky)
112 * Moose::Util::MetaRole will make sure that the class to which you're
113 applying metaroles or base class roles can actually have them applied. If
114 not (it's not a Moose class, it has a non-Moose metaclass, etc.), then it
115 gives a useful error message. Previously, this would just end up dying in
116 the MetaRole code without a useful message. (Dave Rolsky)
120 * When a role had its own applied_attribute metaclass (usually from MetaRole
121 application), that metaclass would get lost when that role participated in
122 role composition. It was also lost if that role was consumed by some other
123 role. Both of these cases have been fixed. Attributes are always applied
124 with the applied_attribute metaclass of the role which originally defined
127 1.9904-TRIAL Fri, Mar 04, 2011
131 * Reinitializing anonymous roles used to accidentally clear out the role's
132 stash in some circumstances. This is now fixed. (doy)
134 * The Int type constraint now rejects integers with trailing newlines.
137 1.9903-TRIAL Mon, Feb 28, 2011
141 * Reverse the order that Moose::Exporter 'also' exports are dispatched. When
142 trying to re-export from a package that itself exported a modified set of
143 Moose sugar, you'd get the original Moose sugar instead of the overrides.
144 There are also now tests for this. (perigrin)
146 * Don't initialize lazy attributes with defaults in the constructor (for
147 immutable classes). (mo)
149 * When reinitializing meta objects for classes and roles, we failed to
150 preserve roles and role applications. This led to weird bugs. Many MooseX
151 modules end up reinitializing your class or role. (Dave Rolsky)
153 1.9902-TRIAL Mon, Jan 03, 2011
157 * Fix generation of CCFLAGS.
159 * Add a bit more Dist::Zilla functionality.
161 1.9901-TRIAL Mon, Jan 03, 2011
165 * Fix some indexing issues.
167 * Fix a few issues with the conflict checking stuff.
169 1.9900-TRIAL Sat, Jan 01, 2011
173 * The entire Class::MOP distribution has been merged with Moose. In the
174 future, the Class::MOP code itself will be merged into Moose, and
175 eventually the Class::MOP namespace will disappear entirely. For the
176 current release, we have simply changed how Class::MOP is
177 distributed. (Dave Rolsky).
179 * Switched to Dist::Zilla for development. However, we still have a minimal
180 Makefile.PL in the repository that can be used for development. (Dave
185 * Roles now have their own default attribute metaclass to use during
186 application to a class, rather than just using the class's
187 attribute_metaclass. This is also overridable via ::MetaRole, with the
188 applied_attribute key in the role_metaroles hashref (doy).
190 * The internal code used to generate inlined methods (accessor, constructor,
191 etc.) has been massively rewritten. MooseX modules that do inlining will
192 almost certainly need to be updated as well.
196 * We now load the roles needed for native delegations only as needed. This
197 speeds up the compilation time for Moose itself. (doy)
200 1.25 Fri, Apr 1, 2011
204 * Reinitializing anonymous roles used to accidentally clear out the role's
205 stash in some circumstances. This is now fixed. (doy) (backported from
209 1.24 Tue, Feb 24, 2011
213 * Reverse the order that Moose::Exporter 'also' exports are dispatched. When
214 trying to re-export from a package that itself exported a modified set of
215 Moose sugar, you'd get the original Moose sugar instead of the overrides.
216 There are also now tests for this. (perigrin) (backported from 1.9903)
219 1.23 Sun, Feb 13, 2011
223 * The 1.22 release had a bad MANIFEST. This has been fixed.
226 1.22 Sun, Feb 13, 2011
230 * When reinitializing meta objects for classes and roles, we failed to
231 preserve roles and role applications. This led to weird bugs. Many MooseX
232 modules end up reinitializing your class or role. (Dave Rolsky) (backported
235 1.21 Wed, Nov 24, 2010
239 * The Support manual has been updated to reflect our new major/minor version
240 policy. (Chris Prather)
242 * The Contributing manual has been updated to reflect workflow changes based
243 on this new support policy. (doy)
247 * The role attribute metaclass did not inherit from Class::MOP::Object,
248 which could cause errors when trying to resolve metaclass compatibility
249 issues. Reported by Daniel Ruoso. (doy)
251 * The lazy_build feature was accidentally removed from all the docs. Now
252 it's listed in Moose.pm again. (Chris Prather)
254 1.20 Fri, Nov 19, 2010
258 * When using native delegations, if an array or hash ref member failed a
259 type constraint check, Moose ended up erroring out with "Can't call method
260 "get_message" on unblessed reference" instead of generating a useful error
261 based on the failed type constraint. Reported by t0m. RT #63113. (Dave
264 1.19 Tue, Nov 2, 2010
268 * There was still one place in the code trying to load Test::Exception
269 instead of Test::Fatal. (Karen Etheridge)
272 1.18 Sun, Oct 31, 2010
276 * Type constraint objects now have an assert_coerce method which will either
277 return a valid value or throw an error. (rjbs)
279 * We now warn when an accessor for one attribute overwrites an accessor for
280 another attribute. RT #57510. (Dave Rolsky)
284 * The native Array and Hash delegation methods now coerce individual new
285 members if the _member type_ has a coercion. In other words, if the array
286 reference is defined as an ArrayRef[DateTime], and you've defined a
287 coercion from Int to DateTime, then pushing an integer via a delegation
288 method will coerce the integer to a DateTime object. Reported by Karen
289 Etheridge. RT #62351. (Dave Rolsky)
291 * An attribute using native delegations did not always properly coerce and
292 type check a lazily set default value. (doy and Dave Rolsky)
294 * Using a regexp to define delegations for a class which was not yet loaded
295 did not actually work, but did not explicitly fail. However, it caused an
296 error when the class was loaded later. Reported by Max Kanat-Alexander. RT
297 #60596. (Dave Rolsky)
299 * Attempting to delegate to a class or role which is not yet loaded will now
300 throw an explicit error. (Dave Rolsky)
302 * Attempting to set lazy_build in an inherited attribute was ignored. RT
307 * The Moose test suite now uses Test::Fatal instead of
308 Test::Exception. (rjbs)
310 1.17 Tue, Oct 19, 2010
314 * Make native delegation inlining work with instance metaclasses where slot
315 access is an do {} block, like Kioku. This fixes the use of native
316 delegations together with Kioku. (Scott, doy)
318 1.16 Mon, Oct 18, 2010
322 * Almost every native delegation method which changes the attribute value
323 now has an explicitly documented return value. In general, this return
324 value matches what Perl would return for the same operation. (Dave Rolsky)
326 * Lots of work on native delegation documentation, including documenting
327 what arguments each native delegation method allows or requires. (Dave
330 * Passing an odd number of args to ->new() now gives a more useful warning
331 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
334 * Allow disabling stack traces by setting an environment variable. See
335 Moose::Error::Default for details. This feature is considered
336 experimental, and may change in a future release. (Marcus Ramberg)
338 * The deprecation warning for using alias and excludes without a leading
339 dash now tells you the role being applied and what it was being applied
344 * A number of native trait methods which expected strings as arguments did
345 not allow the empty string. This included Array->join, String->match,
346 String->replace, and String->substr. Reported by Whitney Jackson. RT
347 #61962. (Dave Rolsky)
349 * 'no Moose' no longer inadvertently removes imports it didn't create
350 itself. RT #60013. (Florian Ragwitz, doy)
352 * Roles now support passing an array reference of method names to method
353 modifier sugar functions. (doy)
355 * Native traits no longer use optimized inlining routines if the instance
356 requests it (in particular, if inline_get_slot_value doesn't return
357 something that can be assigned to). This should fix issues with
358 KiokuDB::Class. (doy)
360 * We now ignore all Class::MOP and Moose classes when determining what
361 package called a deprecated feature. This should make the deprecation
362 warnings saner, and make it possible to turn them off more easily. (Dave
365 * The deprecated "default is" warning no longer happens if the attribute has
366 any accessor method defined (accessor, reader, writer). Also, this warning
367 only happens when a method that was generated because of the "default is"
368 gets called, rather than when the attribute is defined. (Dave Rolsky)
370 * The "default default" code for some native delegations no longer issues a
371 deprecation warning when the attribute is required or has a builder. (Dave
374 * Setting a "default default" caused a fatal error if you used the builder
375 or lazy_build options for the attribute. Reported by Kent Fredric. RT
376 #59613. (Dave Rolsky)
378 1.15 Tue, Oct 5, 2010
382 * Major changes to Native Traits, most of which make them act more like
383 "normal" attributes. This should be mostly compatible with existing code,
384 but see Moose::Manual::Delta for details.
386 * A few native traits (String, Counter, Bool) provide default values of "is"
387 and "default" when you created an attribute. Allowing them to provide
388 these values is now deprecated. Supply the value yourself when creating
391 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
392 generate non-global aliases for your traits (and allow your users to
393 rename the aliases, etc). (doy)
395 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
396 determine which name to install the 'meta' name under. Passing 'undef'
397 to this option will suppress generation of the meta method entirely. (doy)
399 * Moose now warns if it overwrites an existing method named "meta" in your
400 class when you "use Moose". (doy)
404 * Native Trait delegations are now all generated as inline code. This should
405 be much faster than the previous method of delegation. In the best case,
406 native trait methods will be very highly optimized.
408 * Reinitializing a metaclass no longer removes the existing method and
409 attribute objects (it instead fixes them so they are correct for the
410 reinitialized metaclass). This should make the order of loading many
411 MooseX modules less of an issue. (doy)
413 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
417 * If an attribute was weak, setting it to a non-ref value after the object
418 was constructed caused an error. Now we only call weaken when the new
419 value is a reference.
421 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
422 based on a patch from Andreas Koenig.
424 1.14 Tue, Sep 21, 2010
428 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
429 a weird error when defining the same union type twice, but only when using
430 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
432 1.13 Mon, Sep 13, 2010
436 * The deprecation warnings for alias and excludes are back, use -alias and
437 -excludes instead. (Dave Rolsky)
441 * When composing one role into another and there is an attribute conflict,
442 the error message now includes the attribute name. Reported by Sam
443 Graham. RT #59985. (Dave Rolsky)
445 * When a class is made immutable, the does_role method is overridden with a
446 much faster version that simply looks role names up in a hash. Code which
447 uses lots of role-based type constraints should be faster. (Dave Rolsky)
449 1.12 Sat, Aug 28, 2010
453 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
455 1.11 Fri, Aug 27, 2010
459 * An attribute in a subclass can now override the value of "is". (doy)
461 * The deprecation warnings for alias and excludes have been turned back off
462 for this release, to give other module authors a chance to tweak their
467 * mro::get_linear_isa was being called as a function rather than a method,
468 which caused problems with Perl 5.8.x. (t0m)
470 * Union types always created a type constraint, even if their constituent
471 constraints did not have any coercions. This bogus coercion always
472 returned undef, which meant that a union which included Undef as a member
473 always coerced bad values to undef. Reported by Eric Brine. RT
474 #58411. (Dave Rolsky)
476 * Union types with coercions would always fall back to coercing the value to
477 undef (unintentionally). Now if all the coercions for a union type fail,
478 the value returned by the coercion is the original value that we attempted
479 to coerce. (Dave Rolsky).
481 1.10 Sun, Aug 22, 2010
485 * The long-deprecated alias and excludes options for role applications now
486 issue a deprecation warning. Use -alias and -excludes instead. (Dave
491 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
493 * default => undef now works properly. (doy)
495 * Enum type constraints now throw errors if their values are nonsensical.
500 * Optimizations that should help speed up compilation time (Dave Rolsky).
502 1.09 Tue, Jul 25, 2010
506 * You can no longer pass "coerce => 1" for an attribute unless its type
507 constraint has a coercion defined. Doing so will issue a deprecation
508 warning. (Dave Rolsky)
510 * Previously, '+foo' only allowed a specific set of options to be
511 overridden, which made it impossible to change attribute options related
512 to extensions. Now we blacklist some options, and anything else is
513 allowed. (doy, Tuomas Jormola)
515 * Most features which have been declared deprecated now issue a warning using
516 Moose::Deprecated. Warnings are issued once per calling package, not
517 repeatedly. See Moose::Deprecated for information on how you can shut
518 these warnings up entirely. Note that deprecated features will eventually
519 be removed, so shutting up the warnings may not be the best idea. (Dave
522 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
527 * We no longer unimport strict and warnings when Moose, Moose::Role, or
528 Moose::Exporter are unimported. Doing this was broken if the user
529 explicitly loaded strict and warnings themself, and the results could be
530 generally surprising. We decided that it was best to err on the side of
531 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
534 * New with_traits helper function in Moose::Util. (doy)
538 * Accessors will no longer be inlined if the instance metaclass isn't
541 * Use Perl 5.10's new recursive regex features, if possible, for the type
542 constraint parser. (doy, nothingmuch)
546 * Attributes now warn if their accessors overwrite a locally defined
547 function (not just method). (doy)
551 * Bump our required perl version to 5.8.3, since earlier versions fail tests
552 and aren't easily installable/testable.
554 1.08 Tue, Jun 15, 2010
558 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
559 to be overridden more easily (doy).
561 1.07 Sat, Jun 05, 2010
565 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
566 classes and non-class metaclass traits (doy, dougdude).
568 1.06 Tue, Jun 01, 2010
572 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
573 more uniformly compare type constraints between 'classic' Moose type
574 constraints and MooseX::Types based type constraints.
576 1.05 Thu, May 20, 2010
580 * Packages and modules no longer have methods - this functionality was
581 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
582 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
584 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
585 Moose::Object::new. (doy)
589 * strict and warnings are now unimported when Moose, Moose::Role, or
590 Moose::Exporter are unimported. (doy, Adam Kennedy)
592 * Added a 'consumers' method to Moose::Meta::Role for finding all
593 classes/roles which consume the given role. (doy)
597 * Fix has '+attr' in Roles to explode immediately, rather than when the role
598 is applied to a class (t0m).
600 * Fix type constraint validation messages to not include the string 'failed'
601 twice in the same sentence (Florian Ragwitz).
603 * New type constraints will default to being unequal, rather than equal
606 * The tests no longer check for perl's behavior of clobbering $@, which has
607 been fixed in perl-5.13.1 (Florian Ragwitz).
609 * Metaclass compatibility fixing has been completely rewritten, and should
610 be much more robust. (doy)
612 1.04 Thu, May 20, 2010
614 * This release was broken and has been deleted from CPAN shortly after its
617 1.03 Thu, May 06, 2010
621 * Allow specifying required versions when setting superclasses or applying
622 roles (Florian Ragwitz).
624 1.02 Sat, May 01, 2010
628 * Stop the natatime method provided by the native Array trait from returning
629 an exhausted iterator when being called with a callback. (Florian Ragwitz)
631 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
634 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
635 the class the TC represents as an argument incorrectly returned true. This
636 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
638 * Use File::Temp for temp files created during tests. Previously, files were
639 written to the t/ dir, which could cause problems of the user running the
640 tests did not have write access to that directory.. (Chris Weyl, Ævar
641 Arnfjörð Bjarmason)
643 * Pass role arguments along when applying roles to instances. (doy, lsm)
645 1.01 Fri, Mar 26, 2010
649 * The handles option now also accepts a role type constraint in addition to a
650 plain role name. (Florian Ragwitz)
654 * Record the Sartak/doy debt properly in Changes (perigrin)
656 1.00 Tue, Mar 25, 2010
660 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
661 methods by default. (Florian Ragwitz)
665 * Improve various parts of the documentation and fix many typos.
666 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
670 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
672 0.99 Mon, Mar 8, 2010
676 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
677 which member of the union a given value validates for. (Cory Watson)
681 * DEMOLISH methods in mutable subclasses of immutable classes are now called
682 properly (Chia-liang Kao, Jesse Luehrs)
686 * Added Moose::Manual::Support that defines the support, compatiblity, and
687 release policies for Moose. (Chris Prather)
689 0.98 Wed, Feb 10, 2010
693 * An internals change in 0.97 broke role application to an instance in some
694 cases. The bug occurred when two different roles were applied to different
695 instances of the same class. (Rafael Kitover)
698 0.97 Tue, Feb 9, 2010
702 * Calling ->reinitialize on a cached anonymous class effectively uncached
703 the metaclass object, causing the metaclass to go out of scope
704 unexpectedly. This could easily happen at a distance by applying a
705 metarole to an anonymous class. (Dave Rolsky).
707 0.96 Sat, Feb 6, 2010
711 * ScalarRef is now a parameterized type. You can now specify a type
712 constraint for whatever the reference points to. (Closes RT#50857)
713 (Michael G. Schwern, Florian Ragwitz)
717 * ScalarRef now accepts references to other references. (Closes RT#50934)
720 0.95 Thu, Feb 4, 2010
724 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
725 a delegation option. This allows the code reference to be called as a
726 method on the object. (Florian Ragwitz)
730 * Moose::Object::does no longer checks the entire inheritance tree, since
731 Moose::Meta::Class::does_role already does this. (doy)
733 * Moose::Util::add_method_modifier (and subsequently the sugar functions
734 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
735 with the same behavior as lists. Types other than arrayref and regexp
736 result in an error. (Dylan Hardison)
738 0.94 Mon, Jan 18, 2010
742 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
746 * Improved support for anonymous roles by changing various APIs to take
747 Moose::Meta::Role objects as well as role names. This included
749 - Moose::Meta::Class->does_role
750 - Moose::Meta::Role->does_role
751 - Moose::Util::does_role
752 - Moose::Util::apply_all_roles
753 - Moose::Util::ensure_all_roles
754 - Moose::Util::search_class_by_role
756 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
760 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
761 work as long as the accessor method names are explicitly set to valid Perl
762 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
765 0.93_03 Tue, Jan 5, 2010
769 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
770 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
773 0.93_02 Tue, Jan 5, 2010
777 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
778 testers. (Dave Rolsky)
781 0.93_01 Mon, Jan 4, 2010
785 See Moose::Manual::Delta for more details on backwards compatiblity issues.
787 * Role attributes are now objects of the Moose::Meta::Role::Attribute
788 class. (Dave Rolsky).
790 * There were major changes to how metaroles are applied. We now distinguish
791 between metaroles for classes vs those for roles. See the
792 Moose::Util::MetaRole docs for details. (Dave Rolsky)
794 * The old MetaRole API has been deprecated, but will continue to
795 work. However, if you are applying an attribute metaclass role, this may
796 break because of the fact that roles now have an attribute metaclass
799 * Moose::Util::MetaRole::apply_metaclass_roles is now called
800 apply_metaroles. The old name is deprecated. (Dave Rolsky)
802 * The unimport subs created by Moose::Exporter now clean up re-exported
803 functions like blessed and confess, unless the caller imported them from
804 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
806 [ENHANCEMENTS AND BUG FIXES]
808 * Changed the Str constraint to accept magic lvalue strings like one gets from
809 substr et al, again. (sorear)
811 * Sped up the type constraint parsing regex. (Sam Vilain)
813 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
816 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
817 easier testing of TypeConstraints from the command line. (perigrin)
819 * Added a with_immutable test function to Test::Moose, to run a block of tests
820 with and without certain classes being immutable. (doy)
822 * We now use Module::Install extensions explicitly to avoid confusing errors
823 if they're not installed. We use Module::Install::AuthorRequires to stop
824 test extraction and general failures if you don't have the author side
825 dependencies installed.
827 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
828 #51791. (Amir E. Aharoni)
831 0.93 Thu, Nov 19, 2009
833 - Calling $object->new() is no longer deprecated, and no longer
837 - The get_attribute_map method is now deprecated. (Dave Rolsky)
839 * Moose::Meta::Method::Delegation
840 - Preserve variable aliasing in @_ for delegated methods, so that
841 altering @_ affects the passed value. (doy)
843 * Moose::Util::TypeConstraints
844 - Allow array refs for non-anonymous form of enum and duck_type, not
845 just anonymous. The non-arrayref forms may be removed in the
847 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
848 - Properly document Int being a subtype of Str. (doy)
851 - Moose::Exporter using modules can now export their functions to the
852 main package. This applied to Moose and Moose::Role, among
853 others. (nothingmuch)
855 * Moose::Meta::Attribute
856 - Don't remove attribute accessors we never installed, during
857 remove_accessors. (doy)
859 * Moose::Meta::Attribute::Native::Trait::Array
860 - Don't bypass prototype checking when calling List::Util::first, to
861 avoid a segfault when it is called with a non-code argument. (doy)
863 * Moose::Meta::Attribute::Native::Trait::Code
864 - Fix passing arguments to code execute helpers. (doy)
866 0.92 Tue, Sep 22, 2009
867 * Moose::Util::TypeConstraints
868 - added the match_on_type operator (Stevan)
869 - added tests and docs for this (Stevan)
872 - Metaclass compat fixing should already happen recursively, there's no
873 need to explicitly walk up the inheritance tree. (doy)
875 * Moose::Meta::Attribute
876 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
878 0.91 Thu, Sep 17, 2009
880 - Don't import any functions, in order to avoid polluting our namespace
881 with things that can look like methods (blessed, try, etc)
884 * Moose::Meta::Method::Constructor
885 - The generated code needs to called Scalar::Util::blessed by its
886 fully-qualified name or else Perl can interpret the call to blessed as
887 an indirect method call. This broke Search::GIN, which in turn broke
888 KiokuDB. (nothingmuch)
890 0.90 Tue, Sep 15, 2009
891 * Moose::Meta::Attribute::Native::Trait::Counter
892 * Moose::Meta::Attribute::Native::Trait::String
893 - For these two traits, an attribute which did not explicitly provide
894 methods to handles magically ended up delegating *all* the helper
895 methods. This has been removed. You must be explicit in your handles
896 declaration for all Native Traits. (Dave Rolsky)
899 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
900 sure to rethrow its error message. However, we also localize $@ before
901 this so that if all the DEMOLISH methods success, the value of $@ will
902 be preserved. (nothingmuch and Dave Rolsky)
903 - We now also localize $? during object destruction. (nothingmuch and
905 - The handling of DEMOLISH methods was broken for immutablized classes,
906 which were not receiving the value of
907 Devel::GlobalDestruction::in_global_destruction.
908 - These two fixes address some of RT #48271, reported by Zefram.
909 - This is all now documented in Moose::Manual::Construction.
910 - Calling $object->new() is now deprecated. A warning will be
914 - Added more hooks to customize how roles are applied. The role
915 summation class, used to create composite roles, can now be changed
916 and/or have meta-roles applied to it. (rafl)
917 - The get_method_list method no longer explicitly excludes the "meta"
918 method. This was a hack that has been replaced by better hacks. (Dave
921 * Moose::Meta::Method::Delegation
922 - fixed delegated methods to make sure that any modifiers attached to
923 the accessor being delegated on will be called (Stevan)
924 - added tests for this (Stevan)
927 - Moose no longer warns when a class that is being made immutable has
928 mutable ancestors. While in theory this is a good thing to warn about,
929 we found so many exceptions to this that doing this properly became
932 0.89_02 Thu, Sep 10, 2009
933 * Moose::Meta::Attribute::Native
934 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
936 * Moose::Meta::Attribute::Native::Trait::Array
937 - Added a number of functions from List::Util and List::MoreUtils,
938 including reduce, shuffle, uniq, and natatime. (doy)
941 - This module will now generate an init_meta method for your exporting
942 class if you pass it options for
943 Moose::Util::MetaRole::apply_metaclass_roles or
944 apply_base_class_roles. This eliminates a lot of repetitive
945 boilerplate for typical MooseX modules. (doy).
946 - Documented the with_meta feature, which is a replacement for
947 with_caller. This feature was added by josh a while ago.
948 - The with_caller feature is now deprecated, but will not issue a
949 warning yet. (Dave Rolsky)
950 - If you try to wrap/export a subroutine which doesn't actually exist,
951 Moose::Exporter will warn you about this. (doy)
953 * Moose::Meta::Role::Application::ToRole
954 - When a role aliased a method from another role, it was only getting
955 the new (aliased) name, not the original name. This differed from what
956 happens when a class aliases a role's methods. If you _only_ want the
957 aliased name, make sure to also exclue the original name. (Dave
960 0.89_01 Wed Sep 2, 2009
961 * Moose::Meta::Attribute
962 - Added the currying syntax for delegation from AttributeHelpers to the
963 existing delegation API. (hdp)
965 * Moose::Meta::Attribute::Native
966 - We have merged the functionality of MooseX::AttributeHelpers into the
967 Moose core with some API tweaks. You can continue to use
968 MooseX::AttributeHelpers, but it will not be maintained except
969 (perhaps) for critical bug fixes in the future. See
970 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
973 * Moose::Error::Croak
974 * Moose::Error::Confess
975 - Clarify documentation on how to use different error-throwing
976 modules. (Curtis Jewell)
979 - Correct POD for builder to point to Recipe8, not 9. (gphat)
982 - When a nonexistent sub name is passed to as_is, with_caller, or
983 with_meta, throw a warning and skip the exporting, rather than
984 installing a broken sub. (doy)
987 - Moose now warns if you call C<make_immutable> for a class with mutable
990 0.89 Thu Aug 13, 2009
991 * Moose::Manual::Attributes
992 - Clarify "is", include discussion of "bare". (Sartak)
994 * Moose::Meta::Role::Method::Conflicting
995 * Moose::Meta::Role::Application::ToClass
996 - For the first set of roles involved in a conflict, report all
997 unresolved method conflicts, not just the first method. Fixes #47210
998 reported by Ovid. (Sartak)
1000 * Moose::Meta::TypeConstraint
1001 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
1004 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
1006 - Allow specifying role options (alias, excludes, MXRP stuff) in the
1007 arrayref passed to "use Moose -traits" (doy)
1010 - Add functions meta_class_alias and meta_attribute_alias for creating
1011 aliases for class and attribute metaclasses and metatraits. (doy)
1013 * Moose::Meta::Attribute
1014 * Moose::Meta::Method::Accessor
1015 - A trigger now receives the old value as a second argument, if the
1016 attribute had one. (Dave Rolsky)
1018 * Moose::Meta::Method::Constructor
1019 - Fix a bug with $obj->new when $obj has stringify overloading.
1020 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
1021 - However, we will probably deprecate $obj->new, so please don't start
1022 using it for new code!
1024 * Moose::Meta::Role::Application
1025 * Moose::Meta::Role::Application::RoleSummation
1026 - Rename alias and excludes to -alias and -excludes (but keep the old
1027 names for now, for backcompat) (doy)
1029 0.88 Fri Jul 24, 2009
1030 * Moose::Manual::Contributing
1031 - Re-write the Moose::Manual::Contributing document to reflect
1032 the new layout and methods of work for the Git repository. All
1033 work now should be done in topic branches and reviewed by a
1034 core committer before being applied to master. All releases
1035 are done by a cabal member and merged from master to
1036 stable. This plan was devised by Yuval, blame him. (perigrin)
1039 - Create metaclass attributes for the different role application
1042 * Moose::Util::MetaRole
1043 - Allow applying roles to a meta role's role application
1046 * Moose::Meta::Attribute
1047 - Add weak_ref to allowed options for "has '+foo'" (mst)
1049 * Moose::Meta::Method::Accessor
1050 - No longer uses inline_slot_access in accessors, to support
1051 non-lvalue-based meta instances. (sorear)
1053 0.87 Tue Jul 7, 2009
1054 * Moose::Meta::Method::Delegation
1055 - Once again allow class names as well as objects for
1056 delegation. This was changed in 0.86.
1058 0.86 Fri Jul 3, 2009
1059 * Moose::Meta::Class::Immutable::Trait
1060 - Fixes to work with the latest Class::MOP.
1062 * Moose::Meta::Method::Delegation
1063 - Delegation now dies with a more useful error message if the
1064 attribute's accessor returns something defined but
1067 0.85 Fri, Jun 26, 2009
1068 * Moose::Meta::Attribute
1069 - The warning for 'no associated methods' is now split out into
1070 the _check_associated_methods method, so that extensions can
1071 safely call 'after install_accessors => ...'. This fixes a
1072 warning from MooseX::AttributeHelpers. (hdp)
1074 0.84 Fri, Jun 26, 2009
1076 - has now sets definition_context for attributes defined in
1079 * Moose::Meta::Attribute
1080 - When adding an attribute to a metaclass, if the attribute has
1081 no associated methods, it will give a deprecation
1083 - Methods generated by delegation were not being added to
1084 associated_methods. (hdp)
1085 - Attribute accessors (reader, writer, accessor, predicate,
1086 clearer) now warn if they overwrite an existing method. (doy)
1087 - Attribute constructors now warn very noisily about unknown (or
1088 misspelled) arguments
1090 * Moose::Util::TypeConstraints
1091 - Deprecated the totally useless Role type name, which just
1092 checked if $object->can('does'). Note that this is _not_ the
1093 same as a type created by calling role_type('RoleName').
1095 * Moose::Util::TypeConstraints
1096 * Moose::Meta::TypeConstraint::DuckType
1097 - Reify duck type from a regular subtype into an actual class
1099 - Document this because Sartak did all my work for me
1102 * Moose::Meta::Attribute
1103 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
1104 it is just a list of methods (Sartak)
1107 - The get_*_method_modifiers methods would die if the role had
1108 no modifiers of the given type (Robert Buels).
1110 0.83 Tue, Jun 23, 2009
1111 * Moose::Meta::Class
1112 - Fix _construct_instance not setting the special __MOP__ object
1113 key in instances of anon classes. (doy)
1115 0.82 Sun, Jun 21, 2009
1116 * Moose::Manual::Types
1117 - Mention MooseX::Types early to avoid users falling down the
1118 string parsing rathole (mst)
1120 * Moose::Manual::MooseX
1121 - Add warnings about class-level extensions and mention considering
1122 using plain objects instead
1124 0.81 Sun, Jun 7, 2009
1125 * Bumped our Class::MOP prereq to the latest version (0.85), since
1126 that's what we need.
1128 0.80 Sat, Jun 6, 2009
1129 * Moose::Manual::FAQ
1130 - Add FAQ about the coercion change from 0.76 because it came up
1131 three times today (perigrin)
1132 - Win doy $10 dollars because Sartak didn't think anybody
1133 would document this fast enough (perigrin)
1135 * Moose::Meta::Method::Destructor
1136 - Inline a DESTROY method even if there are no DEMOLISH methods
1137 to prevent unnecessary introspection in
1138 Moose::Object::DEMOLISHALL
1141 - A role's required methods are now represented by
1142 Moose::Meta::Role::Method::Required objects. Conflicts are now
1143 represented by Moose::Meta::Role::Method::Conflicting
1144 objects. The benefit for end-users in that unresolved
1145 conflicts generate different, more instructive, errors,
1146 resolving Ovid's #44895. (Sartak)
1149 - Improve the error message of "extends" as suggested by Adam
1150 Kennedy and confound (Sartak)
1151 - Link to Moose::Manual::Roles from Moose::Role as we now have
1152 excellent documentation (Adam Kennedy)
1155 - Update test suite for subname change in Class::MOP
1157 - Add TODO test for infinite recursion in Moose::Meta::Class
1160 0.79 Wed, May 13, 2009
1162 - More fixes for Win32 problems. Reported by Robert Krimen.
1165 - The DEMOLISHALL method could still blow up in some cases
1166 during global destruction. This method has been made more
1167 resilient in the face of global destruction's random garbage
1171 - If you "also" a module that isn't loaded, the error message
1172 now acknowledges that (Sartak)
1175 - When your ->meta method does not return a Moose::Meta::Class,
1176 the error message gave the wrong output (Sartak)
1178 0.78 Tue, May 12, 2009
1179 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
1180 - Merged these documents into what is now Moose::Manual::FAQ
1182 * Moose::Unsweetened
1183 - Moved to Moose::Manual::Unsweetened
1185 * Moose::Cookbook::Basics::Recipes 9-12
1186 - Renamed to be 8-11, since recipe 8 did not exist
1189 - Make Moose::Exporter import strict and warnings into packages
1193 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
1194 methods during global destruction (doy)
1196 * Moose::Meta::Class
1197 * Moose::Meta::Role::Application::ToClass
1198 - Track the Role::Application objects created during class-role
1199 consumption (Sartak)
1201 * Moose::Meta::Class
1202 - Fix metaclass incompatibility errors when extending a vanilla perl
1203 class which isa Moose class with a metaclass role applied (t0m)
1206 - Add a role-combination hook, _role_for_combination, for the
1207 benefit of MooseX::Role::Parameterized (Sartak)
1210 - Some tests were failing on Win32 because they explicit checked
1211 warning output for newlines. Reported by Nickolay Platonov.
1213 0.77 Sat, May 2, 2009
1215 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1219 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
1220 or not we are currently in global destruction (doy)
1221 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1224 * Moose::Cookbook::FAQ
1225 - Reworked much of the existing content to be more useful to
1226 modern Moose hackers (Sartak)
1229 - Depend on Class::MOP 0.83 instead of 0.82_01.
1231 0.76 Mon, April 27, 2009
1232 * Moose::Meta::TypeConstraint
1233 - Do not run coercions in coerce() if the value already passes the type
1236 * Moose::Meta::TypeConstraint::Class
1237 - In validation error messages, specifically say that the value is not
1238 an instance of the class. This should alleviate some frustrating
1239 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
1241 * Moose::Meta::Role::Application::ToClass
1242 - Revert the class-overrides-role warning in favor of a solution outside
1243 of the Moose core (Sartak)
1246 - Make Test::Output optional again, since it's only used in a few files
1249 0.75_01 Thu, April 23, 2009
1250 * Moose::Meta::Role::Application::ToClass
1251 - Moose now warns about each class overriding methods from roles it
1255 - Warnings tests have standardized on Test::Output which is now an
1256 unconditionally dependency (Sartak)
1258 * Moose::Meta::Class
1259 - Changes to immutabilization to work with Class::MOP 0.82_01+.
1261 0.75 Mon, April 20, 2009
1263 * Moose::Meta::Class
1264 - Move validation of not inheriting from roles from Moose::extends to
1265 Moose::Meta::Class::superclasses (doy)
1268 - add ensure_all_roles() function to encapsulate the common "apply this
1269 role unless the object already does it" pattern (hdp)
1272 - Users can now select a different metaclass with the "-metaclass"
1273 option to import, for classes and roles (Sartak)
1276 - Make method_metaclass an attr so that it can accept a metarole
1279 0.74 Tue, April 7, 2009
1281 * Moose::Meta::Method::Destructor
1282 - Include stack traces in the deprecation warnings.
1285 * Moose::Meta::Class
1286 - Removed the long-deprecated _apply_all_roles method.
1288 * Moose::Meta::TypeConstraint
1289 - Removed the long-deprecated union method.
1292 0.73_02 Mon, April 6, 2009
1293 * More deprecations and renamings
1294 - Moose::Meta::Method::Constructor
1295 - initialize_body => _initialize_body (this is always called
1296 when an object is constructed)
1299 - The DEMOLISHALL method could throw an exception during global
1300 destruction, meaning that your class's DEMOLISH methods would
1301 not be properly called. Reported by t0m.
1303 * Moose::Meta::Method::Destructor
1304 - Destructor inlining was totally broken by the change to the
1305 is_needed method in 0.72_01. Now there is a test for this
1306 feature, and it works again.
1309 - Bold the word 'not' in the POD for find_meta (t0m)
1311 0.73_01 Sun, April 5, 2009
1313 - Call user_class->meta in fewer places, with the eventual goal
1314 of allowing the user to rename or exclude ->meta
1315 altogether. Instead uses Class::MOP::class_of. (Sartak)
1317 * Moose::Meta::Method::Accessor
1318 - If an attribute had a lazy default, and that value did not
1319 pass the attribute's type constraint, it did not get the
1320 message from the type constraint, instead using a generic
1321 message. Test provided by perigrin.
1323 * Moose::Util::TypeConstraints
1324 - Add duck_type keyword. It's sugar over making sure an object
1325 can() a list of methods. This is easier than jrockway's
1326 suggestion to fork all of CPAN. (perigrin)
1327 - add tests and documentation (perigrin)
1330 - Document the fact that init_meta() returns the target class's
1331 metaclass object. (hdp)
1333 * Moose::Cookbook::Extending::Recipe1
1334 * Moose::Cookbook::Extending::Recipe2
1335 * Moose::Cookbook::Extending::Recipe3
1336 * Moose::Cookbook::Extending::Recipe4
1337 - Make init_meta() examples explicitly return the metaclass and
1338 point out this fact. (hdp)
1340 * Moose::Cookbook::Basics::Recipe12
1341 - A new recipe, creating a custom meta-method class.
1343 * Moose::Cookbook::Meta::Recipe6
1344 - A new recipe, creating a custom meta-method class.
1346 * Moose::Meta::Class
1347 * Moose::Meta::Method::Constructor
1348 - Attribute triggers no longer receive the meta-attribute object
1349 as an argument in any circumstance. Previously, triggers
1350 called during instance construction were passed the
1351 meta-attribute, but triggers called by normal accessors were
1352 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1354 * Moose::Manual::Attributes
1355 - Remove references to triggers receving the meta-attribute object as an
1358 * Moose::Cookbook::FAQ
1359 - Remove recommendation for deprecated Moose::Policy and
1360 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1363 * Many methods have been renamed with a leading underscore, and a
1364 few have been deprecated entirely. The methods with a leading
1365 underscore are consider "internals only". People writing
1366 subclasses or extensions to Moose should feel free to override
1367 them, but they are not for "public" use.
1369 - Moose::Meta::Class
1370 - check_metaclass_compatibility => _check_metaclass_compatibility
1372 - Moose::Meta::Method::Accessor
1373 - initialize_body => _initialize_body (this is always called
1374 when an object is constructed)
1375 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1377 - Moose::Meta::Method::Constructor
1378 - initialize_body => _initialize_body (this is always called
1379 when an object is constructed)
1380 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1381 - attributes => _attributes (now inherited from parent)
1382 - meta_instance => _meta_instance (now inherited from parent)
1385 - alias_method is deprecated. Use add_method
1387 0.73 Fri, March 29, 2009
1388 * No changes from 0.72_01.
1390 0.72_01 Thu, March 26, 2009
1392 - Almost every module has complete API documentation. A few
1393 methods (and even whole classes) have been intentionally
1394 excluded pending some rethinking of their APIs.
1396 * Moose::Util::TypeConstraints
1397 - Calling subtype with a name as the only argument is now an
1398 exception. If you want an anonymous subtype do:
1400 my $subtype = subtype as 'Foo';
1402 * Moose::Cookbook::Meta::Recipe7
1403 - A new recipe, creating a custom meta-instance class.
1405 * Moose::Cookbook::Basics::Recipe5
1406 - Fix various typos and mistakes. Includes a patch from Radu
1409 * Moose::Cookbook::Basics::Recipe9
1410 - Link to this recipe from Moose.pm's builder blurb
1413 - When wrapping a function with a prototype, Moose::Exporter now
1414 makes sure the wrapped function still has the same
1415 prototype. (Daisuke Maki)
1417 * Moose::Meta::Attribute
1418 - Allow a subclass to set lazy_build for an inherited
1422 - Explicitly depend on Data::OptList. We already had this dependency
1423 via Sub::Exporter, but since we're using it directly we're
1424 better off with it listed. (Sartak)
1426 * Moose::Meta::Method::Constructor
1427 - Make it easier to subclass the inlining behaviour. (Ash
1430 * Moose::Manual::Delta
1431 - Details significant changes in the history of Moose, along
1432 with recommended workarounds.
1434 * Moose::Manual::Contributing
1435 - Contributor's guide to Moose.
1437 * Moose::Meta::Method::Constructor
1438 - The long-deprecated intialize_body method has been removed
1439 (yes, spelled like that).
1441 * Moose::Meta::Method::Destructor
1442 - This is_needed method is now always a class method.
1444 * Moose::Meta::Class
1445 - Changes to the internals of how make_immutable works to match
1446 changes in latest Class::MOP.
1448 0.72 Mon, February 23, 2009
1450 * Moose::Meta::Method::Constructor
1451 - A mutable class accepted Foo->new(undef) without complaint,
1452 while an immutable class would blow up with an unhelpful
1453 error. Now, in both cases we throw a helpful error
1454 instead. Reported by doy.
1456 0.71_01 Sun, February 22, 2009
1458 - Hopefully fixed some POD errors in a few recipes that caused
1459 them to display weird on search.cpan.org.
1461 * Moose::Util::TypeConstraints
1462 - Calling type or subtype without the sugar helpers (as, where,
1463 message) is now deprecated.
1464 - The subtype function tried hard to guess what you meant, but
1465 often got it wrong. For example:
1467 my $subtype = subtype as 'ArrayRef[Object]';
1469 This caused an error in the past, but now works as you'd
1473 - Make sure Moose.pm is loaded before calling
1474 Moose->throw_error. This wasn't normally an issue, but could
1475 bite you in weird cases.
1477 0.71 Thu, February 19, 2009
1478 * Moose::Cookbook::Basics::Recipe11
1479 - A new recipe which demonstrates the use of BUILDARGS and
1480 BUILD. (Dave Rolsky)
1482 * Moose::Cookbook::Roles::Recipe3
1483 - A new recipe, applying a role to an object instance. (Dave
1487 - Allow overriding specific keywords from "also" packages. (doy)
1490 - Replace hardcoded cookbook tests with Test::Inline to ensure
1491 the tests match the actual code in the recipes. (Dave Rolsky)
1494 - Working on the above turned up a number of little bugs in the
1495 recipe code. (Dave Rolsky)
1497 * Moose::Util::TypeConstraints::Optimized
1498 - Just use Class::MOP for the optimized ClassName check. (Dave
1501 0.70 Sat, February 14, 2009
1502 * Moose::Util::TypeConstraints
1503 - Added the RoleName type (stevan)
1504 - added tests for this (stevan)
1506 * Moose::Cookbook::Basics::Recipe3
1507 - Updated the before qw[left right] sub to be a little more
1508 defensive about what it accepts (stevan)
1509 - added more tests to t/000_recipies/basics/003_binary_tree.t
1513 - We now always call DEMOLISHALL, even if a class does not
1514 define DEMOLISH. This makes sure that method modifiers on
1515 DEMOLISHALL work as expected. (doy)
1516 - added tests for this (EvanCarroll)
1518 * Moose::Util::MetaRole
1519 - Accept roles for the wrapped_method_metaclass (rafl)
1520 - added tests for this (rafl)
1522 * Moose::Meta::Attribute
1523 - We no longer pass the meta-attribute object as a final
1524 argument to triggers. This actually changed for inlined code a
1525 while back, but the non-inlined version and the docs were
1529 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1530 they require 0.11. (Dave Rolsky)
1533 - Lots of small changes to the manual, cookbook, and
1534 elsewhere. These were based on feedback from various
1535 users, too many to list here. (Dave Rolsky)
1537 0.69 Thu, February 12, 2009
1539 - Make some keyword errors use throw_error instead of croak
1540 since Moose::Exporter wraps keywords now (Sartak)
1542 * Moose::Cookbook::*
1543 - Revised every recipe for style and clarity. Also moved some
1544 documentation out of cookbook recipes and into Moose::Manual
1545 pages. This work was funded as part of the Moose docs grant
1546 from TPF. (Dave Rolsky)
1548 * Moose::Meta::Method::Delegation
1549 - If the attribute doing the delegation was not populated, the
1550 error message did not specify the attribute name
1553 0.68 Wed, February 4, 2009
1555 - Many spelling, typo, and formatting fixes by daxim.
1557 * Moose::Manual::Attributes
1558 - The NAME section in the POD used "Attribute" so search.cpan
1559 didn't resolve links from other documents properly.
1561 * Moose::Meta::Method::Overriden
1562 - Now properly spelled as Overridden. Thanks to daxim for
1565 0.67 Tue, February 3, 2009
1567 - Lots of little typo fixes and a few clarifications. Several
1568 pages didn't have proper titles, and so weren't actually
1569 visible on search.cpan.org. Thanks to hanekomu for a variety
1570 of fixes and formatting improvements.
1572 0.66 Tue, February 3, 2009
1574 - This is a brand new, extensive manual for Moose. This aims to
1575 provide a complete introduction to all of Moose's
1576 features. This work was funded as part of the Moose docs grant
1577 from TPF. (Dave Rolsky)
1579 * Moose::Meta::Attribute
1580 - Added a delegation_metaclass method to replace a hard-coded
1581 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1583 * Moose::Util::TypeConstraints
1584 - If you created a subtype and passed a parent that Moose didn't
1585 know about, it simply ignored the parent. Now it automatically
1586 creates the parent as a class type. This may not be what you
1587 want, but is less broken than before. (Dave Rolsky)
1589 * Moose::Util::TypeConstraints
1590 - This module tried throw errors by calling Moose->throw_error,
1591 but it did not ensure that Moose was loaded first. This could
1592 cause very unhelpful errors when it tried to throw an error
1593 before Moose was loaded. (Dave Rolsky)
1595 * Moose::Util::TypeConstraints
1596 - You could declare a name with subtype such as "Foo!Bar" that
1597 would be allowed, but if you used it in a parameterized type
1598 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1599 vetting on names created via the sugar functions, so that they
1600 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1602 0.65 Thu, January 22, 2009
1603 * Moose and Moose::Meta::Method::Overridden
1604 - If an overridden method called super(), and then the
1605 superclass's method (not overridden) _also_ called super(),
1606 Moose went into an endless recursion loop. Test provided by
1607 Chris Prather. (Dave Rolsky)
1609 * Moose::Meta::TypeConstraint
1610 - All methods are now documented. (gphat)
1612 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1613 - Fixed some bogus failures that occurred because we tried to
1614 validate filesystem paths in a very ad-hoc and
1615 not-quite-correct way. (Dave Rolsky)
1617 * Moose::Util::TypeConstraints
1618 - Added maybe_type to exports. See docs for details. (rjbs)
1621 - Added Moose::Util::TypeConstraints to the SEE ALSO
1625 - Methods created via an attribute can now fulfill a "requires"
1626 declaration for a role. (nothingmuch)
1628 * Moose::Meta::Method::*
1629 - Stack traces from inlined code will now report its line and
1630 file as being in your class, as opposed to in Moose
1631 guts. (nothingmuch).
1633 0.64 Wed, December 31, 2008
1634 * Moose::Meta::Method::Accessor
1635 - Always inline predicate and clearer methods (Sartak)
1637 * Moose::Meta::Attribute
1638 - Support for parameterized traits (Sartak)
1639 - verify_against_type_constraint method to avoid duplication
1640 and enhance extensibility (Sartak)
1642 * Moose::Meta::Class
1643 - Tests (but no support yet) for parameterized traits (Sartak)
1646 - Require Class::MOP 0.75+, which has the side effect of making
1647 sure we work on Win32. (Dave Rolsky)
1649 0.63 Mon, December 8, 2008
1650 * Moose::Unsweetened
1651 - Some small grammar tweaks and bug fixes in non-Moose example
1654 0.62_02 Fri, December 5, 2008
1655 * Moose::Meta::Role::Application::ToClass
1656 - When a class does not provide all of a role's required
1657 methods, the error thrown now mentions all of the missing
1658 methods, as opposed to just the first one found. Requested by
1659 Curtis Poe (RT #41119). (Dave Rolsky)
1661 * Moose::Meta::Method::Constructor
1662 - Moose will no longer inline a constructor for your class
1663 unless it inherits its constructor from Moose::Object, and
1664 will warn when it doesn't inline. If you want to force
1665 inlining anyway, pass "replace_constructor => 1" to
1666 make_immutable. Addresses RT #40968, reported by Jon
1667 Swartz. (Dave Rolsky)
1668 - The quoting of default values could be broken if the default
1669 contained a single quote ('). Now we use quotemeta to escape
1670 anything potentially dangerous in the defaults. (Dave Rolsky)
1672 0.62_01 Wed, December 3, 2008
1674 - use the method->execute API for BUILDALL
1675 and DEMOLISHALL (Sartak)
1677 * Moose::Util::TypeConstraints
1678 - We now make all the type constraint meta classes immutable
1679 before creating the default types provided by Moose. This
1680 should make loading Moose a little faster. (Dave Rolsky)
1682 0.62 Wed November 26, 2008
1683 * Moose::Meta::Role::Application::ToClass
1684 Moose::Meta::Role::Application::ToRole
1685 - fixed issues where excluding and aliasing the
1686 same methods for a single role did not work
1687 right (worked just fine with multiple
1689 - added test for this (stevan)
1691 * Moose::Meta::Role::Application::RoleSummation
1692 - fixed the error message when trying to compose
1693 a role with a role it excludes (Sartak)
1696 - Catch another case where recursion caused the value
1697 of $CALLER to be stamped on (t0m)
1698 - added test for this (t0m)
1701 - Remove the make_immutable keyword, which has been
1702 deprecated since April. It breaks metaclasses that
1703 use Moose without no Moose (Sartak)
1705 * Moose::Meta::Attribute
1706 - Removing an attribute from a class now also removes delegation
1707 (handles) methods installed for that attribute (t0m)
1708 - added test for this (t0m)
1710 * Moose::Meta::Method::Constructor
1711 - An attribute with a default that looked like a number (but was
1712 really a string) would accidentally be treated as a number
1713 when the constructor was made immutable (perigrin)
1714 - added test for this (perigrin)
1717 - create method for constructing a role
1718 dynamically (Sartak)
1719 - added test for this (Sartak)
1720 - anonymous roles! (Sartak)
1721 - added test for this (Sartak)
1724 - more consistent error messages (Sartak)
1726 * Moose::Cookbook::Roles::Recipe1
1727 - attempt to explain why a role that just requires
1728 methods is useful (Sartak)
1730 0.61 Fri November 7, 2008
1731 * Moose::Meta::Attribute
1732 - When passing a role to handles, it will be loaded if necessary
1735 * Moose::Meta::Class
1736 - Method objects returned by get_method (and other methods)
1737 Could end up being returned without an associated_metaclass
1738 attribute. Removing get_method_map, which is provided by
1739 Class::MOP::Class, fixed this. The Moose version did nothing
1740 different from its parent except introduce a bug. (Dave Rolsky)
1741 - added tests for this (jdv79)
1744 - Added a $VERSION to all .pm files which didn't have one. Fixes
1745 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1747 * Moose::Cookbook::Basics::Recipe4
1748 * Moose::Cookbook::Basics::Recipe6
1749 - These files had spaces on the first line of the SYNOPSIS, as
1750 opposed to a totally empty line. According to RT #40432, this
1751 confuses POD parsers. (Dave Rolsky)
1753 0.60 Fri October 24, 2008
1755 - Passing "-traits" when loading Moose caused the Moose.pm
1756 exports to be broken. Reported by t0m. (Dave Rolsky)
1757 - Tests for this bug. (t0m)
1760 - Change resolve_metaclass alias to use the new
1761 load_first_existing_class function. This makes it a lot
1762 simpler, and also around 5 times faster. (t0m)
1763 - Add caching to resolve_metaclass_alias, which gives an order
1764 of magnitude speedup to things which repeatedly call the
1765 Moose::Meta::Attribute->does method, notably MooseX::Storage
1768 * Moose::Util::TypeConstraint
1769 - Put back the changes for parameterized constraints that
1770 shouldn't have been removed in 0.59. We still cannot parse
1771 them, but MooseX modules can create them in some other
1772 way. See the 0.58 changes for more details. (jnapiorkowski)
1773 - Changed the way subtypes are created so that the job is
1774 delegated to a type constraint parent. This clears up some
1775 hardcoded checking and should allow correct subtypes of
1776 Moose::Meta::Type::Constraint. Don't rely on this new API too
1777 much (create_child_type) because it may go away in the
1778 future. (jnapiorkowski)
1780 * Moose::Meta::TypeConstraint::Union
1781 - Type constraint names are sorted as strings, not numbers.
1784 * Moose::Meta::TypeConstraint::Parameterizable
1785 - New parameterize method. This can be used as a factory method
1786 to make a new type constraint with a given parameterized
1787 type. (jnapiorkowski)
1788 - added tests (jnapiorkowski)
1790 0.59 Tue October 14, 2008
1792 - Add abridged documentation for builder/default/initializer/
1793 predicate, and link to more details sections in
1794 Class::MOP::Attribute. (t0m)
1796 * Moose::Util::TypeConstraints
1797 - removed prototypes from all but the &-based stuff (mst)
1799 * Moose::Util::TypeConstraints
1800 - Creating a anonymous subtype with both a constraint and a
1801 message failed with a very unhelpful error, but should just
1802 work. Reported by t0m. (Dave Rolsky)
1805 - Some tests that used Test::Warn if it was available failed
1806 with older versions of Test::Warn. Reported by Fayland. (Dave
1808 - Test firing behavior of triggers in relation to builder/default/
1810 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1811 kinds of supported type. (t0m)
1813 * Moose::Meta::Class
1814 - In create(), do not pass "roles" option to the superclass
1815 - added related test that creates an anon metaclass with
1816 a required attribute
1818 * Moose::Meta::TypeConstraint::Class
1819 * Moose::Meta::TypeConstraint::Role
1820 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1821 other types (as per change in 0.55_02). (t0m)
1823 * Moose::Meta::TypeConstraint::Registry
1824 - Fix warning when dealing with unknown type names (t0m)
1826 * Moose::Util::TypeConstraints
1827 - Reverted changes from 0.58 related to handle parameterized
1828 types. This caused random failures on BSD and Win32 systems,
1829 apparently related to the regex engine. This means that Moose
1830 can no longer parse structured type constraints like
1831 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1832 supported in a slightly different way via MooseX::Types some
1833 time in the future. (Dave Rolsky)
1835 0.58 Sat September 20, 2008
1836 !! This release has an incompatible change regarding !!
1837 !! how roles add methods to a class !!
1839 * Roles and role application
1840 ! Roles now add methods by calling add_method, not
1841 alias_method. They make sure to always provide a method
1842 object, which will be cloned internally. This means that it is
1843 now possible to track the source of a method provided by a
1844 role, and even follow its history through intermediate roles.
1846 This means that methods added by a role now show up when
1847 looking at a class's method list/map. (Dave Rolsky)
1850 - From this release on, we'll try to maintain a list of
1851 conflicting modules, and warn you if you have one
1852 installed. For example, this release conflicts with ...
1853 - MooseX::Singleton <= 0.11
1854 - MooseX::Params::Validate <= 0.05
1857 In general, we try to not break backwards compatibility for
1858 most Moose users, but MooseX modules and other code which
1859 extends Moose's metaclasses is often affected by very small
1860 changes in the Moose internals.
1862 * Moose::Meta::Method::Delegation
1863 * Moose::Meta::Attribute
1864 - Delegation methods now have their own method class. (Dave
1867 * Moose::Meta::TypeConstraint::Parameterizable
1868 - Added a new method 'parameterize' which is basically a factory
1869 for the containing constraint. This makes it easier to create
1870 new types of parameterized constraints. (jnapiorkowski)
1872 * Moose::Meta::TypeConstraint::Union
1873 - Changed the way Union types canonicalize their names to follow
1874 the normalized TC naming rules, which means we strip all
1875 whitespace. (jnapiorkowski)
1877 * Moose::Util::TypeConstraints
1878 - Parameter and Union args are now sorted, this makes Int|Str
1879 the same constraint as Str|Int. (jnapiorkowski)
1880 - Changes to the way Union types are parsed to more correctly
1881 stringify their names. (jnapiorkowski)
1882 - When creating a parameterized type, we now use the new
1883 parameterize method. (jnapiorkowski)
1884 - Incoming type constraint strings are now normalized to remove
1885 all whitespace differences. (jnapiorkowski)
1886 - Changed the way we parse type constraint strings so that we now
1887 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1888 constraints. This lays the foundation for more flexible type
1889 constraint implementations.
1891 * Tests and docs for all the above. (jnapiorkowski)
1895 - Moose::Exporter will no longer remove a subroutine that the
1896 exporting package re-exports. Moose re-exports the
1897 Carp::confess function, among others. The reasoning is that we
1898 cannot know whether you have also explicitly imported those
1899 functions for your own use, so we err on the safe side and
1900 always keep them. (Dave Rolsky)
1901 - added tests for this (rafl)
1903 * Moose::Meta::Class
1904 - Changes to how we fix metaclass compatibility that are much
1905 too complicated to go into. The summary is that Moose is much
1906 less likely to complain about metaclass incompatibility
1907 now. In particular, if two metaclasses differ because
1908 Moose::Util::MetaRole was used on the two corresponding
1909 classes, then the difference in roles is reconciled for the
1910 subclass's metaclass. (Dave Rolsky)
1911 - Squashed an warning in _process_attribute (thepler)
1914 - throw exceptions (sooner) for invalid attribute names (thepler)
1915 - added tests for this (thepler)
1917 * Moose::Util::MetaRole
1918 - If you explicitly set a constructor or destructor class for a
1919 metaclass object, and then applied roles to the metaclass,
1920 that explicitly set class would be lost and replaced with the
1923 * Moose::Meta::Class
1924 * Moose::Meta::Attribute
1925 * Moose::Meta::Method
1928 * Moose::Error::Default
1929 * Moose::Error::Croak
1930 * Moose::Error::Confess
1931 - All instances of confess() changed to use overridable
1932 C<throw_error> method. This method ultimately calls a class
1933 constructor, and you can change the class being called. In
1934 addition, errors now pass more information than just a string.
1935 The default C<error_class> behaves like C<Carp::confess>, so
1936 the behavior is not visibly different for end users.
1938 0.57 Wed September 3, 2008
1940 - A new bit of doc intended to introduce folks familiar with
1941 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1943 * Moose::Unsweetened
1944 - Shows examples of two classes, each done first with and then
1945 without Moose. This makes a nice parallel to
1946 Moose::Intro. (Dave Rolsky)
1948 * Moose::Util::TypeConstraints
1949 - Fixed a bug in find_or_parse_type_constraint so that it
1950 accepts a Moose::Meta::TypeConstraint object as the parent
1951 type, not just a name (jnapiorkowski)
1952 - added tests (jnapiorkowski)
1955 - If Sub::Name was not present, unimporting failed to actually
1956 remove some sugar subs, causing test failures (Dave Rolsky)
1958 0.56 Mon September 1, 2008
1959 For those not following the series of dev releases, there are
1960 several major changes in this release of Moose.
1961 ! Moose::init_meta should now be called as a method. See the
1964 - Major performance improvements by nothingmuch.
1966 - New modules for extension writers, Moose::Exporter and
1967 Moose::Util::MetaRole by Dave Rolsky.
1969 - Lots of doc improvements and additions, especially in the
1972 - Various bug fixes.
1974 * Removed all references to the experimental-but-no-longer-needed
1975 Moose::Meta::Role::Application::ToMetaclassInstance.
1977 * Require Class::MOP 0.65.
1979 0.55_04 Sat August 30, 2008
1980 * Moose::Util::MetaRole
1981 * Moose::Cookbook::Extending::Recipe2
1982 - This simplifies the application of roles to any meta class, as
1983 well as the base object class. Reimplemented metaclass traits
1984 using this module. (Dave Rolsky)
1986 * Moose::Cookbook::Extending::Recipe1
1987 - This a new recipe, an overview of various ways to write Moose
1988 extensions (Dave Rolsky)
1990 * Moose::Cookbook::Extending::Recipe3
1991 * Moose::Cookbook::Extending::Recipe4
1992 - These used to be Extending::Recipe1 and Extending::Recipe2,
1995 0.55_03 Fri August 29, 2008
1996 * No changes from 0.55_02 except increasing the Class::MOP
1997 dependency to 0.64_07.
1999 0.55_02 Fri August 29, 2008
2000 * Makefile.PL and Moose.pm
2001 - explicitly require Perl 5.8.0+ (Dave Rolsky)
2003 * Moose::Util::TypeConstraints
2004 - Fix warnings from find_type_constraint if the type is not
2007 * Moose::Meta::TypeConstraint
2008 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
2009 return false if the type you specify cannot be found in the
2010 type registry, rather than throwing an unhelpful and
2011 coincidental exception. (t0m).
2012 - added docs & test for this (t0m)
2014 * Moose::Meta::TypeConstraint::Registry
2015 - add_type_constraint now throws an exception if a parameter is
2017 - added docs & test for this (t0m)
2019 * Moose::Cookbook::FAQ
2020 - Added a faq entry on the difference between "role" and "trait"
2024 - Fixed a bug that caused role composition to not see a required
2025 method when that method was provided by another role being
2026 composed at the same time. (Dave Rolsky)
2027 - test and bug finding (tokuhirom)
2029 0.55_01 Wed August 20, 2008
2031 !! Calling Moose::init_meta as a function is now !!
2032 !! deprecated. Please see the Moose.pm docs for details. !!
2034 * Moose::Meta::Method::Constructor
2035 - Fix inlined constructor so that values produced by default
2036 or builder methods are coerced as required. (t0m)
2037 - added test for this (t0m)
2039 * Moose::Meta::Attribute
2040 - A lazy attribute with a default or builder did not attempt to
2041 coerce the default value. The immutable code _did_
2043 - added test for this (t0m)
2046 - This is a new helper module for writing "Moose-alike"
2047 modules. This should make the lives of MooseX module authors
2048 much easier. (Dave Rolsky)
2051 * Moose::Cookbook::Meta::Recipe5
2052 - Implemented metaclass traits (and wrote a recipe for it):
2054 use Moose -traits => 'Foo'
2056 This should make writing small Moose extensions a little
2057 easier (Dave Rolsky)
2059 * Moose::Cookbook::Basics::Recipe1
2060 - Removed any examples of direct hashref access, and applied an
2061 editorial axe to reduce verbosity. (Dave Rolsky)
2063 * Moose::Cookbook::Basics::Recipe1
2064 - Also applied an editorial axe here. (Dave Rolsky)
2067 * Moose::Cookbook::Extending::Recipe1
2068 * Moose::Cookbook::Extending::Recipe2
2069 - Rewrote extending and embedding moose documentation and
2070 recipes to use Moose::Exporter (Dave Rolsky)
2074 - These two modules now warn when you load them from the main
2075 package "main" package, because we will not export sugar to
2076 main. Previously it just did nothing. (Dave Rolsky)
2079 - Now provide an init_meta method just like Moose.pm, and you
2080 can call this to provide an alternate role metaclass. (Dave
2081 Rolsky and nothingmuch)
2082 - get_method_map now respects the package cache flag (nothingmuch)
2085 - Two new methods - add_method and wrap_method_body
2089 - Optimizations including allowing constructors to accept hash
2090 refs, making many more classes immutable, and making
2091 constructors immutable. (nothingmuch)
2093 0.55 Sun August 3, 2008
2094 * Moose::Meta::Attribute
2095 - breaking down the way 'handles' methods are
2096 created so that the process can be more easily
2097 overridden by subclasses (stevan)
2099 * Moose::Meta::TypeConstraint
2100 - fixing what is passed into a ->message with
2101 the type constraints (RT #37569)
2102 - added tests for this (Charles Alderman)
2104 * Moose::Util::TypeConstraints
2105 - fix coerce to accept anon types like subtype can (mst)
2108 - reorganized the recipes into sections - Basics, Roles, Meta,
2109 Extending - and wrote abstracts for each section (Dave Rolsky)
2111 * Moose::Cookbook::Basics::Recipe10
2112 - A new recipe that demonstrates operator overloading
2113 in combination with Moose. (bluefeet)
2115 * Moose::Cookbook::Meta::Recipe1
2116 - an introduction to what meta is and why you'd want to make
2117 your own metaclass extensions (Dave Rolsky)
2119 * Moose::Cookbook::Meta::Recipe4
2120 - a very simple metaclass example (Dave Rolsky)
2122 * Moose::Cookbook::Extending::Recipe1
2123 - how to write a Moose-alike module to use your own object base
2126 * Moose::Cookbook::Extending::Recipe2
2127 - how to write modules with an API just like C<Moose.pm> (Dave
2131 - Tons of fixes, both syntactical and grammatical (Dave
2132 Rolsky, Paul Fenwick)
2134 0.54 Thurs. July 3, 2008
2135 ... this is not my day today ...
2137 * Moose::Meta::Attribute
2138 - fixed legal_options_for_inheritance such that
2139 clone_and_inherit options still works for
2140 Class::MOP::Attribute objects and therefore
2141 does not break MooseX::AttributeHelpers
2144 0.53 Thurs. July 3, 2008
2145 * Whoops, I guess I should run 'make manifest' before
2146 actually releasing the module. No actual changes
2147 in this release, except the fact that it includes
2148 the changes that I didn't include in the last
2151 0.52 Thurs. July 3, 2008
2153 - added "FEATURE REQUESTS" section to the Moose docs
2154 to properly direct people (stevan) (RT #34333)
2155 - making 'extends' croak if it is passed a Role since
2156 this is not ever something you want to do
2157 (fixed by stevan, found by obra)
2158 - added tests for this (stevan)
2161 - adding support for DOES (as in UNIVERSAL::DOES)
2163 - added test for this
2165 * Moose::Meta::Attribute
2166 - added legal_options_for_inheritance (wreis)
2167 - added tests for this (wreis)
2169 * Moose::Cookbook::Snacks::*
2170 - removed some of the unfinished snacks that should
2171 not have been released yet. Added some more examples
2172 to the 'Keywords' snack. (stevan)
2174 * Moose::Cookbook::Style
2175 - added general Moose "style guide" of sorts to the
2176 cookbook (nothingmuch) (RT #34335)
2179 - added more BUILDARGS tests (stevan)
2181 0.51 Thurs. Jun 26, 2008
2183 - add unimport so "no Moose::Role" actually does
2186 * Moose::Meta::Role::Application::ToRole
2187 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
2188 order to provide its own implementation, that method still got
2189 added to the list of required methods for consumers of
2190 RoleB. Now an aliased method is only added to the list of
2191 required methods if the role doing the aliasing does not
2192 provide its own implementation. See Recipe 11 for an example
2193 of all this. (Dave Rolsky)
2194 - added tests for this
2196 * Moose::Meta::Method::Constructor
2197 - when a single argument that wasn't a hashref was provided to
2198 an immutabilized constructor, the error message was very
2199 unhelpful, as opposed to the non-immutable error. Reported by
2201 - added test for this (Dave Rolsky)
2203 * Moose::Meta::Attribute
2204 - added support for meta_attr->does("ShortAlias") (sartak)
2205 - added tests for this (sartak)
2206 - moved the bulk of the `handles` handling to the new
2207 install_delegation method (Stevan)
2210 - Added BUILDARGS, a new step in new()
2212 * Moose::Meta::Role::Application::RoleSummation
2213 - fix typos no one ever sees (sartak)
2215 * Moose::Util::TypeConstraints
2216 * Moose::Meta::TypeConstraint
2217 * Moose::Meta::TypeCoercion
2218 - Attempt to work around the ??{ } vs. threads issue
2220 - Some null_constraint optimizations
2222 0.50 Thurs. Jun 11, 2008
2223 - Fixed a version number issue by bumping all modules
2226 0.49 Thurs. Jun 11, 2008
2227 !! This version now approx. 20-25% !!
2228 !! faster with new Class::MOP 0.59 !!
2230 * Moose::Meta::Attribute
2231 - fixed how the is => (ro|rw) works with
2232 custom defined reader, writer and accessor
2234 - added docs for this (TODO).
2235 - added tests for this (Thanks to Penfold)
2236 - added the custom attribute alias for regular
2237 Moose attributes which is "Moose"
2238 - fix builder and default both being used
2243 Moose::Meta::Attribute
2245 Moose::Meta::Role::Composite
2246 Moose::Util::TypeConstraints
2247 - switched usage of reftype to ref because
2251 - changing add_package_symbol to use the new
2255 - fixed how DEMOLISHALL is called so that it
2256 can be overrided in subclasses (thanks to Sartak)
2257 - added test for this (thanks to Sartak)
2259 * Moose::Util::TypeConstraints
2260 - move the ClassName type check code to
2261 Class::MOP::is_class_loaded (thanks to Sartak)
2263 * Moose::Cookbook::Recipe11
2264 - add tests for this (thanks to tokuhirom)
2266 0.48 Thurs. May 29, 2008
2267 (early morning release engineering)--
2269 - fixing the version in Moose::Meta::Method::Destructor
2270 which was causing the indexer to choke
2272 0.47 Thurs. May 29, 2008
2273 (late night release engineering)--
2275 - fixing the version is META.yml, no functional
2276 changes in this release
2278 0.46 Wed. May 28, 2008
2279 !! This version now approx. 20-25% !!
2280 !! faster with new Class::MOP 0.57 !!
2282 * Moose::Meta::Class
2283 - some optimizations of the &initialize method
2284 since it is called so often by &meta
2286 * Moose::Meta::Class
2288 - now use the get_all_package_symbols from the
2289 updated Class::MOP, test suite is now 10 seconds
2292 * Moose::Meta::Method::Destructor
2293 - is_needed can now also be called as a class
2294 method for immutablization to check if the
2295 destructor object even needs to be created
2298 * Moose::Meta::Method::Destructor
2299 Moose::Meta::Method::Constructor
2300 - added more descriptive error message to help
2301 keep people from wasting time tracking an error
2302 that is easily fixed by upgrading.
2304 0.45 Saturday, May 24, 2008
2306 - Because of work in Class::MOP 0.57, all
2307 XS based functionality is now optional
2308 and a Pure Perl version is supplied
2309 - the CLASS_MOP_NO_XS environment variable
2310 can now be used to force non-XS versions
2312 - several of the packages have been tweaked
2313 to take care of this, mostly we added
2314 support for the package_name and name
2315 variables in all the Method metaclasses
2316 - before/around/after method modifiers now
2317 support regexp matching of names
2318 (thanks to Takatoshi Kitano)
2319 - tests added for this
2320 - NOTE: this only works for classes, it
2321 is currently not supported in roles,
2322 but, ... patches welcome
2323 - All usage of Carp::confess have been replaced
2324 by Carp::croak in the "keyword" functions since
2325 the stack trace is usually not helpful
2328 - All usage of Carp::confess have been replaced
2329 by Carp::croak in the "keyword" functions since
2330 the stack trace is usually not helpful
2331 - The 'has' keyword for roles now accepts the
2332 same array ref form that Moose.pm does
2333 (has [qw/foo bar/] => (is => 'rw', ...))
2334 - added test for this
2336 * Moose::Meta::Attribute
2337 - trigger on a ro-attribute is no longer an
2338 error, as it's useful to trigger off of the
2341 * Moose::Meta::Class
2342 - added same 'add_package_symbol' fix as in
2346 - does_role now handles non-Moose classes
2348 - added tests for this
2349 - added the 'add_method_modifier' function
2350 (thanks to Takatoshi Kitano)
2352 * Moose::Util::TypeConstraints
2353 - subtypes of parameterizable types now are
2354 themselves parameterizable types
2356 * Moose::Meta::Method::Constructor
2357 - fixed bug where trigger was not being
2358 called by the inlined immutable
2360 - added test for this (thanks to Caelum)
2362 * Moose::Meta::Role::Application::ToInstance
2363 - now uses the metaclass of the instance
2364 (if possible) to create the anon-class
2365 (thanks Jonathan Rockway)
2367 * Moose::Cookbook::Recipe22
2368 - added the meta-attribute trait recipe
2372 - fixed hash-ordering test bug that was
2373 causing occasional cpantester failures
2374 - renamed the t/000_recipe/*.t tests to be
2375 more descriptive (thanks to Sartak)
2377 0.44 Sat. May 10, 2008
2379 - made make_immutable warning cluck to
2380 show where the error is (thanks mst)
2383 - BUILDALL and DEMOLISHALL now call
2384 ->body when looping through the
2385 methods, to avoid the overloaded
2387 - fixed issue where DEMOLISHALL was
2388 eating the $@ values, and so not
2389 working correctly, it still kind of
2390 eats them, but so does vanilla perl
2391 - added tests for this
2393 * Moose::Cookbook::Recipe7
2394 - added new recipe for immutable
2395 functionality (thanks Dave Rolsky)
2397 * Moose::Cookbook::Recipe9
2398 - added new recipe for builder and
2399 lazy_build (thanks Dave Rolsky)
2401 * Moose::Cookbook::Recipe11
2402 - added new recipe for method aliasing
2403 and exclusion with Roles (thanks Dave Rolsky)
2406 - fixed Win32 test failure (thanks spicyjack)
2408 ~ removed Build.PL and Module::Build compat
2409 since Module::Install has done that.
2411 0.43 Wed. April, 30, 2008
2413 drink more coffee before
2414 doing release engineering
2416 - whoops, forgot to do the smolder tests,
2417 and we broke some of the custom meta-attr
2418 modules. This fixes that.
2420 0.42 Mon. April 28, 2008
2421 - some bad tests slipped by, nothing else
2422 changed in this release (cpantesters++)
2424 - upped the Class::MOP dependency to 0.55
2425 since we have tests which need the C3
2428 0.41 Mon. April 28, 2008
2429 ~~ numerous documentation updates ~~
2431 - Changed all usage of die to Carp::croak for better
2432 error reporting (initial patch by Tod Hagan)
2434 ** IMPORTANT NOTE **
2435 - the make_immutable keyword is now deprecated, don't
2436 use it in any new code and please fix your old code
2437 as well. There will be 2 releases, and then it will
2443 - refactored the way inner and super work to avoid
2444 any method/@ISA cache penalty (nothingmuch)
2446 * Moose::Meta::Class
2447 - fixing &new_object to make sure trigger gets the
2448 coerced value (spotted by Charles Alderman on the
2450 - added test for this
2452 * Moose::Meta::Method::Constructor
2453 - immutable classes which had non-lazy attributes were calling
2454 the default generating sub twice in the constructor. (bug
2455 found by Jesse Luehrs, fixed by Dave Rolsky)
2456 - added tests for this (Dave Rolsky)
2457 - fix typo in initialize_body method (nothingmuch)
2459 * Moose::Meta::Method::Destructor
2460 - fix typo in initialize_body method (nothingmuch)
2462 * Moose::Meta::Method::Overriden
2463 Moose::Meta::Method::Augmented
2464 - moved the logic for these into their own
2465 classes (nothingmuch)
2467 * Moose::Meta::Attribute
2468 - inherited attributes may now be extended without
2469 restriction on the type ('isa', 'does') (Sartak)
2470 - added tests for this (Sartak)
2471 - when an attribute property is malformed (such as lazy without
2472 a default), give the name of the attribute in the error
2474 - added the &applied_traits and &has_applied_traits methods
2475 to allow introspection of traits
2476 - added tests for this
2477 - moved 'trait' and 'metaclass' argument handling to here from
2479 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2480 '+foo' syntax) (nothingmuch)
2481 - added tests for this (t0m)
2484 - localize $@ inside DEMOLISHALL to avoid it
2485 eating $@ (found by Ernesto)
2486 - added test for this (thanks to Ernesto)
2488 * Moose::Util::TypeConstraints
2489 - &find_type_constraint now DWIMs when given an
2490 type constraint object or name (nothingmuch)
2491 - &find_or_create_type_constraint superseded with a number of more
2493 - find_or_create_{isa,does}_type_constraint
2494 - find_or_parse_type_constraint
2496 * Moose::Meta::TypeConstraint
2497 Moose::Meta::TypeConstraint::Class
2498 Moose::Meta::TypeConstraint::Role
2499 Moose::Meta::TypeConstraint::Enum
2500 Moose::Meta::TypeConstraint::Union
2501 Moose::Meta::TypeConstraint::Parameterized
2502 - added the &equals method for comparing two type
2503 constraints (nothingmuch)
2504 - added tests for this (nothingmuch)
2506 * Moose::Meta::TypeConstraint
2507 - add the &parents method, which is just an alias to &parent.
2508 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2510 * Moose::Meta::TypeConstraint::Class
2511 - added the class attribute for introspection purposes
2513 - added tests for this
2515 * Moose::Meta::TypeConstraint::Enum
2516 Moose::Meta::TypeConstraint::Role
2517 - broke these out into their own classes (nothingmuch)
2519 * Moose::Cookbook::Recipe*
2520 - fixed references to test file locations in the POD
2521 and updated up some text for new Moose features
2525 - Added &resolve_metaclass_alias, a helper function for finding an actual
2526 class for a short name (e.g. in the traits list)
2528 0.40 Fri. March 14, 2008
2529 - I hate Pod::Coverage
2531 0.39 Fri. March 14, 2008
2533 - documenting the use of '+name' with attributes
2534 that come from recently composed roles. It makes
2535 sense, people are using it, and so why not just
2536 officially support it.
2537 - fixing the 'extends' keyword so that it will not
2538 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2541 - added the perl -Moose=+Class::Name feature to allow
2542 monkeypatching of classes in one liners
2545 - fixing the 'apply_all_roles' keyword so that it will not
2546 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2548 * Moose::Meta::Class
2549 - added ->create method which now supports roles (thanks to jrockway)
2550 - added tests for this
2551 - added ->create_anon_class which now supports roles and caching of
2552 the results (thanks to jrockway)
2553 - added tests for this
2554 - made ->does_role a little more forgiving when it is
2555 checking a Class::MOP era metaclasses.
2557 * Moose::Meta::Role::Application::ToInstance
2558 - it is now possible to pass extra params to be used when
2559 a role is applied to an the instance (rebless_params)
2560 - added tests for this
2562 * Moose::Util::TypeConstraints
2563 - class_type now accepts an optional second argument for a
2564 custom message. POD anotated accordingly (groditi)
2565 - added tests for this
2566 - it is now possible to make anon-enums by passing 'enum' an
2567 ARRAY ref instead of the $name => @values. Everything else
2569 - added tests for this
2572 - making test for using '+name' on attributes consumed
2573 from a role, it works and makes sense too.
2575 * Moose::Meta::Attribute
2576 - fix handles so that it doesn't return nothing
2577 when the method cannot be found, not sure why
2578 it ever did this originally, this means we now
2579 have slightly better support for AUTOLOADed
2581 - added more delegation tests
2582 - adding ->does method to this so as to better
2583 support traits and their introspection.
2584 - added tests for this
2587 - localizing the Data::Dumper configurations so
2588 that it does not pollute others (RT #33509)
2589 - made ->does a little more forgiving when it is
2590 passed Class::MOP era metaclasses.
2592 0.38 Fri. Feb. 15, 2008
2593 * Moose::Meta::Attribute
2594 - fixed initializer to correctly do
2595 type checking and coercion in the
2597 - added tests for this
2600 - fixed some finicky tests (thanks to konobi)
2602 0.37 Thurs. Feb. 14, 2008
2604 - fixed some details in Moose::init_meta
2605 and its superclass handling (thanks thepler)
2606 - added tests for this (thanks thepler)
2607 - 'has' now dies if you don't pass in name
2609 - added the 'make_immutable' keyword as a shortcut
2612 * Moose::Meta::Class
2613 Moose::Meta::Method::Constructor
2614 Moose::Meta::Attribute
2615 - making (init_arg => undef) work here too
2616 (thanks to nothingmuch)
2618 * Moose::Meta::Attribute
2619 Moose::Meta::Method::Constructor
2620 Moose::Meta::Method::Accessor
2621 - make lazy attributes respect attr initializers (rjbs)
2622 - added tests for this
2624 * Moose::Util::TypeConstraints
2625 Moose::Util::TypeConstraints::OptimizedConstraints
2626 Moose::Meta::TypeConstraints
2627 Moose::Meta::Attribute
2628 Moose::Meta::Method::Constructor
2629 Moose::Meta::Method::Accessor
2630 - making type errors use the
2631 assigned message (thanks to Sartak)
2632 - added tests for this
2634 * Moose::Meta::Method::Destructor
2635 - making sure DESTROY gets inlined properly
2636 with successive DEMOLISH calls (thanks to manito)
2638 * Moose::Meta::Attribute
2639 Moose::Meta::Method::Accessor
2640 - fixed handling of undef with type constraints
2642 - added tests for this
2645 - added &get_all_init_args and &get_all_attribute_values
2646 (thanks to Sartak and nothingmuch)
2648 0.36 Sat. Jan. 26, 2008
2650 Moose::Meta::Attribute
2651 - role type tests now support when roles are
2652 applied to non-Moose classes (found by ash)
2653 - added tests for this (thanks to ash)
2654 - couple extra tests to boost code coverage
2656 * Moose::Meta::Method::Constructor
2657 - improved fix for handling Class::MOP attributes
2658 - added test for this
2660 * Moose::Meta::Class
2661 - handled the add_attribute($attribute_meta_object)
2663 - added test for this
2665 0.35 Tues. Jan. 22, 2008
2666 * Moose::Meta::Method::Constructor
2667 - fix to make sure even Class::MOP attributes
2668 are handled correctly (Thanks to Dave Rolsky)
2669 - added test for this (also Dave Rolsky)
2671 * Moose::Meta::Class
2672 - improved error message on _apply_all_roles,
2673 you should now use Moose::Util::apply_all_roles
2674 and you shouldnt have been using a _ prefixed
2675 method in the first place ;)
2677 0.34 Mon. Jan. 21, 2008
2678 ~~~ more misc. doc. fixes ~~~
2679 ~~ updated copyright dates ~~
2681 Moose is now a postmodern object system :)
2682 - (see the POD for details)
2684 * <<Role System Refactoring>>
2685 - this release contains a major reworking and
2686 cleanup of the role system
2687 - 100% backwards compat.
2688 - Role application now restructured into seperate
2689 classes based on type of applicants
2690 - Role summation (combining of more than one role)
2691 is much cleaner and anon-classes are no longer
2692 used in this process
2693 - new Composite role metaclass
2694 - runtime application of roles to instances
2695 is now more efficient and re-uses generated
2696 classes when applicable
2698 * <<New Role composition features>>
2699 - methods can now be excluded from a given role
2701 - methods can now be aliased to another name (and
2702 still retain the original as well)
2704 * Moose::Util::TypeConstraints::OptimizedConstraints
2705 - added this module (see above)
2707 * Moose::Meta::Class
2708 - fixed the &_process_attribute method to be called
2709 by &add_attribute, so that the API is now correct
2711 * Moose::Meta::Method::Accessor
2712 - fixed bug when passing a list of values to
2713 an accessor would get (incorrectly) ignored.
2714 Thanks to Sartak for finding this ;)
2715 - added tests for this (Sartak again)
2717 * Moose::Meta::Method::Accessor
2718 Moose::Meta::Method::Constructor
2719 Moose::Meta::Attribute
2720 Moose::Meta::TypeConstraint
2721 Moose::Meta::TypeCoercion
2722 - lots of cleanup of such things as:
2724 - type constraint handling
2725 - error handling/messages
2726 (thanks to nothingmuch)
2728 * Moose::Meta::TypeConstraint::Parameterizable
2729 - added this module to support the refactor
2730 in Moose::Meta::TypeConstraint::Parameterized
2732 * Moose::Meta::TypeConstraint::Parameterized
2733 - refactored how these types are handled so they
2734 are more generic and not confined to ArrayRef
2738 - shortened some file names for better VMS support (RT #32381)
2740 0.33 Fri. Dec. 14, 2007
2741 !! Moose now loads 2 x faster !!
2742 !! with new Class::MOP 0.49 !!
2744 ++ new oose.pm module to make command line
2745 Moose-ness easier (see POD docs for more)
2747 * Moose::Meta::Class
2749 - several tweaks to take advantage of the
2750 new method map caching in Class::MOP
2752 * Moose::Meta::TypeConstraint::Parameterized
2753 - allow subtypes of ArrayRef and HashRef to
2754 be used as a container (sartak)
2755 - added tests for this
2756 - basic support for coercion to ArrayRef and
2757 HashRef for containers (sartak)
2758 - added tests for this
2760 * Moose::Meta::TypeCoercion
2761 - coercions will now create subtypes as needed
2762 so you can now add coercions to parameterized
2763 types without having to explictly define them
2764 - added tests for this
2766 * Moose::Meta::Method::Accessor
2767 - allow subclasses to decide whether we need
2768 to copy the value into a new variable (sartak)
2770 0.32 Tues. Dec. 4, 2007
2771 * Moose::Util::TypeConstraints
2772 - fixing how subtype aliases of unions work
2773 they should inherit the parent's coercion
2774 - added tests for this
2775 - you can now define multiple coercions on
2776 a single type at different times instead of
2777 having to do it all in one place
2778 - added tests for this
2780 * Moose::Meta::TypeConstraint
2781 - there is now a default constraint of sub { 1 }
2782 instead of Moose::Util::TypeConstraints setting
2785 * Moose::Meta::TypeCoercion
2786 * Moose::Meta::TypeCoercion::Union
2787 - added the &has_coercion_for_type and
2788 &add_type_coercions methods to support the
2789 new features above (although you cannot add
2790 more type coercions for Union types)
2792 0.31 Mon. Nov. 26, 2007
2793 * Moose::Meta::Attribute
2794 - made the +attr syntax handle extending types with
2795 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2796 now works if the original foo is an ArrayRef.
2797 - added tests for this.
2798 - delegation now works even if the attribute does not
2799 have a reader method using the get_read_method_ref
2800 method from Class::MOP::Attribute.
2801 - added tests for this
2802 - added docs for this
2804 * Moose::Util::TypeConstraints
2805 - passing no "additional attribute info" to
2806 &find_or_create_type_constraint will no longer
2807 attempt to create an __ANON__ type for you,
2808 instead it will just return undef.
2809 - added docs for this
2811 0.30 Fri. Nov. 23, 2007
2812 * Moose::Meta::Method::Constructor
2813 -builder related bug in inlined constructor. (groditi)
2815 * Moose::Meta::Method::Accessor
2816 - genereate unnecessary calls to predicates and refactor
2817 code generation for runtime speed (groditi)
2819 * Moose::Util::TypeConstraints
2820 - fix ClassName constraint to introspect symbol table (mst)
2821 - added more tests for this (mst)
2822 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2823 with work correctly.
2824 - added tests for this
2827 - adding the link to Recipie 11 (written by Sartak)
2828 - adding test for SYNOPSIS code
2831 - New tests for builder bug. Upon instantiation, if an
2832 attribute had a builder, no value and was not lazy the
2833 builder default was not getting run, oops. (groditi)
2835 0.29 Tues. Nov. 13, 2007
2836 * Moose::Meta::Attribute
2837 - Fix error message on missing builder method (groditi)
2839 * Moose::Meta::Method::Accessor
2840 - Fix error message on missing builder method (groditi)
2843 - Add test to check for the correct error message when
2844 builder method is missing (groditi)
2846 0.28 Tues. Nov. 13, 2007
2847 - 0.27 packaged incorrectly (groditi)
2849 0.27 Tues. Nov. 13, 2007
2850 * Moose::Meta::Attribute
2851 - Added support for the new builder option (groditi)
2852 - Added support for lazy_build option (groditi)
2853 - Changed slot initialization for predicate changes (groditi)
2855 * Moose::Meta::Method::Accessor
2856 - Added support for lazy_build option (groditi)
2857 - Fix inline methods to work with corrected predicate
2860 * Moose::Meta::Method::Constructor
2861 - Added support for lazy_build option (groditi)
2864 - tests for builder and lazy_build (groditi)
2866 * fixing some misc. bits in the docs that
2867 got mentioned on CPAN Forum & perlmonks
2870 - fixed how required methods are handled
2871 when they encounter overriden or modified
2872 methods from a class (thanks to confound).
2873 - added tests for this
2875 * Moose::Util::TypeConstraint
2876 - fixed the type notation parser so that
2877 the | always creates a union and so is
2878 no longer a valid type char (thanks to
2879 konobi, mugwump and #moose for working
2881 - added more tests for this
2883 0.26 Thurs. Sept. 27, 2007
2886 * Parameterized Types
2887 We now support parameterized collection types, such as:
2888 ArrayRef[Int] # array or integers
2889 HashRef[Object] # a hash with object values
2890 They can also be nested:
2891 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2892 And work with the type unions as well:
2893 ArrayRef[Int | Str] # array of integers of strings
2895 * Better Framework Extendability
2896 Moose.pm is now "extendable" such that it is now much
2897 easier to extend the framework and add your own keywords
2898 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2899 section of the Moose.pm docs.
2902 In an effort to begin documenting some of the various
2903 details of Moose as well as some common idioms, we have
2904 created Moose::Cookbook::Snacks as a place to find
2905 small (easily digestable) nuggets of Moose code.
2908 ~ Several doc updates/cleanup thanks to castaway ~
2910 - converted build system to use Module::Install instead of
2911 Module::Build (thanks to jrockway)
2914 - added all the meta classes to the immutable list and
2915 set it to inline the accessors
2916 - fix import to allow Sub::Exporter like { into => }
2917 and { into_level => } (perigrin)
2918 - exposed and documented init_meta() to allow better
2919 embedding and extending of Moose (perigrin)
2922 - complete re-organization of the test suite
2923 - added some new tests as well
2924 - finally re-enabled the Moose::POOP test since
2925 the new version of DBM::Deep now works again
2928 * Moose::Meta::Class
2929 - fixed very odd and very nasty recursion bug with
2931 - added tests for this (eilara)
2933 * Moose::Meta::Attribute
2934 Moose::Meta::Method::Constructor
2935 Moose::Meta::Method::Accessor
2936 - fixed issue with overload::Overloaded getting called
2937 on non-blessed items. (RT #29269)
2938 - added tests for this
2940 * Moose::Meta::Method::Accessor
2941 - fixed issue with generated accessor code making
2942 assumptions about hash based classes (thanks to dexter)
2944 * Moose::Coookbook::Snacks
2945 - these are bits of documentation, not quite as big as
2946 Recipes but which have no clear place in the module docs.
2947 So they are Snacks! (horray for castaway++)
2949 * Moose::Cookbook::Recipe4
2950 - updated it to use the new ArrayRef[MyType] construct
2951 - updated the accompanying test as well
2953 +++ Major Refactor of the Type Constraint system +++
2954 +++ with new features added as well +++
2956 * Moose::Util::TypeConstraint
2957 - no longer uses package variable to keep track of
2958 the type constraints, now uses the an instance of
2959 Moose::Meta::TypeConstraint::Registry to do it
2960 - added more sophisticated type notation parsing
2962 - added tests for this
2964 * Moose::Meta::TypeConstraint
2965 - some minor adjustments to make subclassing easier
2966 - added the package_defined_in attribute so that we
2967 can track where the type constraints are created
2969 * Moose::Meta::TypeConstraint::Union
2970 - this is now been refactored to be a subclass of
2971 Moose::Meta::TypeConstraint
2973 * Moose::Meta::TypeCoercion::Union
2974 - this has been added to service the newly refactored
2975 Moose::Meta::TypeConstraint::Union and is itself
2976 a subclass of Moose::Meta::TypeCoercion
2978 * Moose::Meta::TypeConstraint::Parameterized
2979 - added this module (taken from MooseX::AttributeHelpers)
2980 to help construct nested collection types
2981 - added tests for this
2983 * Moose::Meta::TypeConstraint::Registry
2984 - added this class to keep track of type constraints
2986 0.25 Mon. Aug. 13, 2007
2988 - Documentation update to reference Moose::Util::TypeConstraints
2989 under 'isa' in 'has' for how to define a new type
2990 (thanks to shlomif).
2992 * Moose::Meta::Attribute
2993 - required attributes now will no longer accept undef
2994 from the constructor, even if there is a default and lazy
2995 - added tests for this
2996 - default subroutines must return a value which passes the
2998 - added tests for this
3000 * Moose::Meta::Attribute
3001 * Moose::Meta::Method::Constructor
3002 * Moose::Meta::Method::Accessor
3003 - type-constraint tests now handle overloaded objects correctly
3004 in the error message
3005 - added tests for this (thanks to EvanCarroll)
3007 * Moose::Meta::TypeConstraint::Union
3008 - added (has_)hand_optimized_constraint to this class so that
3009 it behaves as the regular Moose::Meta::TypeConstraint does.
3012 - large refactoring of this code
3013 - added several more tests
3014 - tests for subtle conflict resolition issues
3015 added, but not currently running
3018 * Moose::Cookbook::Recipe7
3019 - added new recipe for augment/inner functionality
3021 - added test for this
3024 - a formal definition of roles (still in progress)
3027 - utilities for easier working with Moose classes
3028 - added tests for these
3031 - This contains Moose specific test functions
3032 - added tests for these
3034 0.24 Tues. July 3, 2007
3035 ~ Some doc updates/cleanup ~
3037 * Moose::Meta::Attribute
3038 - added support for roles to be given as parameters
3039 to the 'handles' option.
3040 - added tests and docs for this
3041 - the has '+foo' attribute form now accepts changes to
3042 the lazy option, and the addition of a handles option
3043 (but not changing the handles option)
3044 - added tests and docs for this
3047 - required methods are now fetched using find_method_by_name
3048 so that required methods can come from superclasses
3049 - adjusted tests for this
3051 0.23 Mon. June 18, 2007
3052 * Moose::Meta::Method::Constructor
3053 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
3054 * Moose::Meta::Class
3055 - Modify make_immutable to work with the new Class::MOP immutable
3056 mechanism + POD + very basic test (groditi)
3057 * Moose::Meta::Attribute
3058 - Fix handles to use goto() so that caller() comes out properly on
3059 the other side (perigrin)
3061 0.22 Thurs. May 31, 2007
3062 * Moose::Util::TypeConstraints
3063 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
3064 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
3065 prototypes for functions
3066 - added the ClassName type constraint, this checks for strings
3067 which will respond true to ->isa(UNIVERSAL).
3068 - added tests and docs for this
3069 - subtyping just in name now works correctly by making the
3070 default for where be { 1 }
3071 - added test for this
3073 * Moose::Meta::Method::Accessor
3074 - coerce and lazy now work together correctly, thanks to
3075 merlyn for finding this bug
3076 - tests added for this
3077 - fix reader presedence bug in Moose::Meta::Attribute + tests
3080 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
3081 a HASH-ref and missed. This produces better error messages then
3082 having it die cause undef is not a HASH.
3083 - added tests for this
3085 0.21 Thursday, May 2nd, 2007
3087 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
3088 - modified unimport to remove super and inner along with the rest
3089 - altered unimport tests to handle this
3092 - altered super export to populate SUPER_SLOT
3094 * Moose::Meta::Class
3095 - altered augment and override modifier application to use *_SLOT
3096 - modified tests for these to unimport one test class each to test
3099 - fixed issue where custom attribute metaclasses
3100 where not handled correctly in roles
3101 - added tests for this
3103 * Moose::Meta::Class
3104 - fixed issue where extending metaclasses with
3105 roles would blow up. Thanks to Aankhen`` for
3106 finding this insidious error, and it's solution.
3108 ~~ lots of spelling and grammer fixes in the docs,
3109 many many thanks to rlb3 and Aankhen for these :)
3111 0.20 Friday, April 6th, 2007
3112 >> I messed up the SKIP logic in one test
3113 so this release is just to fix that.
3116 - 'has' now also accepts an ARRAY ref
3117 to create multiple attrs (see docs)
3118 (thanks to konobi for this)
3119 - added tests and docs
3121 0.19 Thurs. April 5th, 2007
3122 ~~ More documentation updates ~~
3124 * Moose::Util::TypeConstraints
3125 - 'type' now supports messages as well
3126 thanks to phaylon for finding this
3127 - added tests for this
3128 - added &list_all_type_constraints and
3129 &list_all_builtin_type_constraints
3130 functions to facilitate introspection.
3132 * Moose::Meta::Attribute
3133 - fixed regexp 'handles' declarations
3134 to build the list of delegated methods
3135 correctly (and not override important
3136 things like &new) thanks to ashleyb
3138 - added tests and docs for this
3139 - added the 'documentation' attributes
3140 so that you can actually document your
3141 attributes and inspect them through the
3143 - added tests and docs for this
3145 * Moose::Meta::Class
3146 - when loading custom attribute metaclasses
3147 it will first look in for the class in the
3148 Moose::Meta::Attribute::Custom::$name, and
3149 then default to just loading $name.
3150 - added tests and docs for this
3152 * Moose::Meta::TypeConstraint
3153 - type constraints now stringify to their names.
3154 - added test for this
3157 - added tests to assure we work with Module::Refresh
3158 - added stricter test skip logic in the Moose POOP
3159 test, ask Rob Kinyon why.
3160 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
3162 0.18 Sat. March 10, 2007
3163 ~~ Many, many documentation updates ~~
3166 - We now use Class::MOP::load_class to
3168 - added tests to show types and subtypes
3169 working with Declare::Constraints::Simple
3170 and Test::Deep as constraint engines.
3173 !! You must have Class::MOP 0.37_001 !!
3174 !! for this developer release to work !!
3176 This release was primarily adding the immutable
3177 feature to Moose. An immutable class is one which
3178 you promise not to alter. When you set the class
3179 as immutable it will perform various bits of
3180 memoization and inline certain part of the code
3181 (constructors, destructors and accessors). This
3182 minimizes (and in some cases totally eliminates)
3183 one of Moose's biggest performance hits. This
3184 feature is not on by default, and is 100% optional.
3185 It has several configurable bits as well, so you
3186 can pick and choose to your specific needs.
3188 The changes involved in this were fairly wide and
3189 highly specific, but 100% backwards compatible, so
3190 I am not going to enumerate them here. If you are
3191 truely interested in what was changed, please do
3194 0.17 Tues. Nov. 14, 2006
3195 * Moose::Meta::Method::Accessor
3196 - bugfix for read-only accessors which
3197 are have a type constraint and lazy.
3198 Thanks to chansen for finding it.
3200 0.16 Tues. Nov. 14, 2006
3202 There are some speed improvements in this release,
3203 but they are only the begining, so stay tuned.
3206 - BUILDALL and DEMOLISHALL no longer get
3207 called unless they actually need to be.
3208 This gave us a signifigant speed boost
3209 for the cases when there is no BUILD or
3210 DEMOLISH method present.
3212 * Moose::Util::TypeConstraints
3213 * Moose::Meta::TypeConstraint
3214 - added an 'optimize_as' option to the
3215 type constraint, which allows for a
3216 hand optimized version of the type
3217 constraint to be used when possible.
3218 - Any internally created type constraints
3219 now provide an optimized version as well.
3221 0.15 Sun. Nov. 5, 2006
3223 This version of Moose *must* have Class::MOP 0.36 in order
3224 to work correctly. A number of small internal tweaks have
3225 been made in order to be compatible with that release.
3227 * Moose::Util::TypeConstraints
3228 - added &unimport so that you can clean out
3229 your class namespace of these exported
3232 * Moose::Meta::Class
3233 - fixed minor issue which occasionally
3234 comes up during global destruction
3236 - moved Moose::Meta::Method::Overriden into
3240 - moved Moose::Meta::Role::Method into
3243 * Moose::Meta::Attribute
3244 - changed how we do type checks so that
3245 we reduce the overall cost, but still
3248 - moved accessor generation methods to
3249 Moose::Meta::Method::Accessor to
3250 conform to the API changes from
3253 * Moose::Meta::TypeConstraint
3254 - changed how constraints are compiled
3255 so that we do less recursion and more
3256 iteration. This makes the type check
3258 - moved Moose::Meta::TypeConstraint::Union
3261 * Moose::Meta::Method::Accessor
3262 - created this from methods formerly found in
3263 Moose::Meta::Attribute
3265 * Moose::Meta::Role::Method
3266 - moved this from Moose::Meta::Role
3268 * Moose::Meta::Method::Overriden
3269 - moved this from Moose::Meta::Class
3271 * Moose::Meta::TypeConstraint::Union
3272 - moved this from Moose::Meta::TypeConstraint
3274 0.14 Mon. Oct. 9, 2006
3276 * Moose::Meta::Attribute
3277 - fixed lazy attributes which were not getting
3278 checked with the type constraint (thanks ashley)
3279 - added tests for this
3280 - removed the over-enthusiastic DWIMery of the
3281 automatic ArrayRef and HashRef defaults, it
3282 broke predicates in an ugly way.
3283 - removed tests for this
3285 0.13 Sat. Sept. 30, 2006
3287 This version of Moose *must* have Class::MOP 0.35 in order
3288 to work correctly. A number of small internal tweaks have
3289 been made in order to be compatible with that release.
3292 - Removed the use of UNIVERSAL::require to be a better
3293 symbol table citizen and remove a dependency
3294 (thanks Adam Kennedy)
3296 **~~ removed experimental & undocumented feature ~~**
3297 - commented out the 'method' and 'self' keywords, see the
3298 comments for more info.
3301 - added a FAQ and WTF files to document frequently
3302 asked questions and common problems
3304 * Moose::Util::TypeConstraints
3305 - added GlobRef and FileHandle type constraint
3306 - added tests for this
3308 * Moose::Meta::Attribute
3309 - if your attribute 'isa' ArrayRef of HashRef, and you have
3310 not explicitly set a default, then make the default DWIM.
3311 This will also work for subtypes of ArrayRef and HashRef
3313 - you can now auto-deref subtypes of ArrayRef or HashRef too.
3314 - new test added for this (thanks to ashley)
3317 - added basic support for runtime role composition
3318 but this is still *highly experimental*, so feedback
3319 is much appreciated :)
3320 - added tests for this
3322 * Moose::Meta::TypeConstraint
3323 - the type constraint now handles the coercion process
3324 through delegation, this is to support the coercion
3327 * Moose::Meta::TypeConstraint::Union
3328 - it is now possible for coercions to be performed
3330 - added tests for this (thanks to konobi)
3332 * Moose::Meta::TypeCoercion
3333 - properly capturing error when type constraint
3337 - Scalar::Util 1.18 is bad on Win32, so temporarily
3338 only require version 1.17 for Win32 and cygwin.
3339 (thanks Adam Kennedy)
3341 0.12 Sat. Sept. 1, 2006
3343 - Recipe5 (subtypes & coercion) has been written
3346 - fixed "bad meta" error message to be more descriptive
3347 - fixed &unimport to not remove the &inner and &super
3348 keywords because we need to localize them.
3349 - fixed number of spelling/grammer issues, thanks Theory :)
3351 **~~ experimental & undocumented feature ~~**
3352 - added the method and self keywords, they are basically
3353 just sugar, and they may not stay around.
3356 - added &dump method to easily Data::Dumper
3359 * Moose::Meta::TypeConstraint
3360 - added the &is_a_type_of method to check both the current
3361 and the subtype of a method (similar to &isa with classes)
3364 - this is now a subclass of Class::MOP::Module, and no longer
3365 creates the _role_meta ugliness of before.
3366 - fixed tests to reflect this change
3368 0.11 Wed. July 12, 2006
3370 - added an &unimport method to remove all the keywords
3371 that Moose will import, simply add 'no Moose' to the
3372 bottom of your class file.
3375 - fixed some test failures caused by a forgotten test
3378 0.10 Thurs. July 6, 2006
3380 - improved error message when loading modules so
3381 it is less confusing when you load a role.
3382 - added &calculate_all_roles method to
3383 Moose::Meta::Class and Moose::Meta::Role
3386 This module has been tested against Class::MOP 0.30
3387 but it does not yet utilize the optimizations
3388 it makes available. Stay tuned for that ;)
3390 0.09_03 Fri. June 23, 2006
3391 ++ DEVELOPER RELEASE ++
3393 - 'use strict' and 'use warnings' are no longer
3394 needed in Moose classes, Moose itself will
3395 turn them on for you.
3396 - added tests for this
3397 - moved code from exported subs to private methods
3398 in Moose::Meta::Class
3401 - as with Moose, strict and warnings are
3402 automatically turned on for you.
3403 - added tests for this
3406 - now handles an edge case for override errors
3407 - added tests for this
3408 - added some more edge case tests
3410 0.09_02 Tues. May 16, 2006
3411 ++ DEVELOPER RELEASE ++
3413 - added prototypes to the exported subs
3417 - added prototypes to the exported subs
3420 * Moose::Util::TypeConstraints
3421 - cleaned up prototypes for the subs
3424 0.09_01 Fri. May 12, 2006
3425 ++ DEVELOPER RELEASE ++
3426 - This release works in combination with
3427 Class::MOP 0.29_01, it is a developer
3428 release because it uses the a new
3429 instance sub-protocol and a fairly
3430 complete Role implementation. It has
3431 not yet been optimized, so it slower
3432 the the previous CPAN version. This
3433 release also lacks good updated docs,
3434 the official release will have updated docs.
3437 - refactored the keyword exports
3438 - 'with' now checks Role validaity and
3439 accepts more than one Role at a time
3440 - 'extends' makes metaclass adjustments as
3441 needed to ensure metaclass compatibility
3444 - refactored the keyword exports
3445 - 'with' now checks Role validaity and
3446 accepts more than one Role at a time
3448 * Moose::Util::TypeConstraints
3449 - added the 'enum' keyword for simple
3450 string enumerations which can be used as
3452 - see example of usage in t/202_example.t
3455 - more careful checking of params to new()
3458 - much work done on the role composition
3459 - many new tests for conflict detection
3460 and composition edge cases
3461 - not enough documentation, I suggest
3462 looking at the tests
3464 * Moose::Meta::Instance
3465 - added new Instance metaclass to support
3466 the new Class::MOP instance protocol
3468 * Moose::Meta::Class
3469 - some small changes to support the new
3471 - some small additions to support Roles
3473 * Moose::Meta::Attribute
3474 - some improvements to the accessor generation code
3476 - some small changes to support the new
3478 - (still somewhat) experimental delegation support
3479 with the 'handles' option
3480 - added several tests for this
3481 - no docs for this yet
3483 0.05 Thurs. April 27, 2006
3485 - keywords are now exported with Sub::Exporter
3486 thanks to chansen for this commit
3487 - has keyword now takes a 'metaclass' option
3488 to support custom attribute meta-classes
3489 on a per-attribute basis
3490 - added tests for this
3491 - the 'has' keyword not accepts inherited slot
3492 specifications (has '+foo'). This is still an
3493 experimental feature and probably not finished
3494 see t/038_attribute_inherited_slot_specs.t for
3495 more details, or ask about it on #moose
3496 - added tests for this
3499 - keywords are now exported with Sub::Exporter
3501 * Moose::Utils::TypeConstraints
3502 - reorganized the type constraint hierarchy, thanks
3503 to nothingmuch and chansen for his help and advice
3505 - added some tests for this
3506 - keywords are now exported with Sub::Exporter
3507 thanks to chansen for this commit
3509 * Moose::Meta::Class
3510 - due to changes in Class::MOP, we had to change
3511 construct_instance (for the better)
3513 * Moose::Meta::Attribute
3514 - due to changes in Class::MOP, we had to add the
3515 initialize_instance_slot method (it's a good thing)
3517 * Moose::Meta::TypeConstraint
3518 - added type constraint unions
3519 - added tests for this
3520 - added the is_subtype_of predicate method
3521 - added tests for this
3523 0.04 Sun. April 16th, 2006
3525 - Roles can now consume other roles
3526 - added tests for this
3527 - Roles can specify required methods now with
3528 the requires() keyword
3529 - added tests for this
3532 - ripped out much of it's guts ,.. much cleaner now
3533 - added required methods and correct handling of
3534 them in apply() for both classes and roles
3535 - added tests for this
3536 - no longer adds a does() method to consuming classes
3537 it relys on the one in Moose::Object
3538 - added roles attribute and some methods to support
3539 roles consuming roles
3541 * Moose::Meta::Attribute
3542 - added support for triggers on attributes
3543 - added tests for this
3544 - added support for does option on an attribute
3545 - added tests for this
3547 * Moose::Meta::Class
3548 - added support for attribute triggers in the
3550 - added tests for this
3553 - Moose no longer creates a subtype for your class
3554 if a subtype of the same name already exists, this
3555 should DWIM in 99.9999% of all cases
3557 * Moose::Util::TypeConstraints
3558 - fixed bug where incorrect subtype conflicts were
3560 - added test for this
3563 - this class can now be extended with 'use base' if
3564 you need it, it properly loads the metaclass class now
3565 - added test for this
3567 0.03_02 Wed. April 12, 2006
3569 - you must now explictly use Moose::Util::TypeConstraints
3570 it no longer gets exported for you automatically
3573 - new() now accepts hash-refs as well as key/value lists
3574 - added does() method to check for Roles
3575 - added tests for this
3577 * Moose::Meta::Class
3578 - added roles attribute along with the add_role() and
3580 - added tests for this
3583 - now adds a does() method to consuming classes
3584 which tests the class's hierarchy for roles
3585 - added tests for this
3587 0.03_01 Mon. April 10, 2006
3589 - added new Role recipe (no content yet, only code)
3592 - added 'with' keyword for Role support
3593 - added test and docs for this
3594 - fixed subtype quoting bug
3595 - added test for this
3599 - added test and docs
3601 * Moose::Util::TypeConstraints
3602 - added the message keyword to add custom
3603 error messages to type constraints
3606 - the meta role to support Moose::Role
3607 - added tests and docs
3609 * Moose::Meta::Class
3610 - moved a number of things from Moose.pm
3611 to here, they should have been here
3614 * Moose::Meta::Attribute
3615 - moved the attribute option macros here
3616 instead of putting them in Moose.pm
3618 * Moose::Meta::TypeConstraint
3619 - added the message attributes and the
3621 - added tests and docs for this
3623 0.03 Thurs. March 30, 2006
3625 - added the Moose::Cookbook with 5 recipes,
3626 describing all the stuff Moose can do.
3629 - fixed an issue with &extends super class loading
3630 it now captures errors and deals with inline
3631 packages correctly (bug found by mst, solution
3633 - added super/override & inner/augment features
3634 - added tests and docs for these
3637 - BUILDALL now takes a reference of the %params
3638 that are passed to &new, and passes that to
3641 * Moose::Util::TypeConstraints
3642 - Type constraints now survive runtime reloading
3643 - added test for this
3645 * Moose::Meta::Class
3646 - fixed the way attribute defaults are handled
3647 during instance construction (bug found by chansen)
3649 * Moose::Meta::Attribute
3650 - read-only attributes now actually enforce their
3651 read-only-ness (this corrected in Class::MOP as
3654 0.02 Tues. March 21, 2006
3656 - many more tests, fixing some bugs and
3658 - &extends now loads the base module with
3660 - added UNIVERSAL::require to the
3663 - each new Moose class will also create
3664 and register a subtype of Object which
3665 correspond to the new Moose class.
3666 - the 'isa' option in &has now only
3667 accepts strings, and will DWIM in
3670 * Moose::Util::TypeConstraints
3671 - added type coercion features
3672 - added tests for this
3673 - added support for this in attributes
3674 and instance construction
3676 - type construction no longer creates a
3677 function, it registers the type instead.
3678 - added several functions to get the
3682 - BUILDALL and DEMOLISHALL were broken
3683 because of a mis-named hash key, Whoops :)
3685 * Moose::Meta::Attribute
3686 - adding support for coercion in the
3687 autogenerated accessors
3689 * Moose::Meta::Class
3690 - adding support for coercion in the
3691 instance construction
3693 * Moose::Meta::TypeConstraint
3694 * Moose::Meta::TypeCoercion
3695 - type constraints and coercions are now
3696 full fledges meta-objects
3698 0.01 Wed. March 15, 2006
3699 - Moooooooooooooooooose!!!