1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 1.9900-TRIAL Sat, Jan 01, 2011
10 * The entire Class::MOP distribution has been merged with Moose. In the
11 future, the Class::MOP code itself will be merged into Moose, and
12 eventually the Class::MOP namespace will disappear entirely. For the
13 current release, we have simply changed how Class::MOP is
14 distributed. (Dave Rolsky).
16 * Switched to Dist::Zilla for development. However, we still have a minimal
17 Makefile.PL in the repository that can be used for development. (Dave
22 * Roles now have their own default attribute metaclass to use during
23 application to a class, rather than just using the class's
24 attribute_metaclass. This is also overridable via ::MetaRole, with the
25 applied_attribute key in the role_metaroles hashref (doy).
27 * The internal code used to generate inlined methods (accessor, constructor,
28 etc.) has been massively rewritten. MooseX modules that do inlining will
29 almost certainly need to be updated as well.
33 * We now load the roles needed for native delegations only as needed. This
34 speeds up the compilation time for Moose itself. (doy)
36 1.21 Wed, Nov 24, 2010
40 * The Support manual has been updated to reflect our new major/minor version
41 policy. (Chris Prather)
43 * The Contributing manual has been updated to reflect workflow changes based
44 on this new support policy. (doy)
48 * The role attribute metaclass did not inherit from Class::MOP::Object,
49 which could cause errors when trying to resolve metaclass compatibility
50 issues. Reported by Daniel Ruoso. (doy)
52 * The lazy_build feature was accidentally removed from all the docs. Now
53 it's listed in Moose.pm again. (Chris Prather)
55 1.20 Fri, Nov 19, 2010
59 * When using native delegations, if an array or hash ref member failed a
60 type constraint check, Moose ended up erroring out with "Can't call method
61 "get_message" on unblessed reference" instead of generating a useful error
62 based on the failed type constraint. Reported by t0m. RT #63113. (Dave
69 * There was still one place in the code trying to load Test::Exception
70 instead of Test::Fatal. (Karen Etheridge)
73 1.18 Sun, Oct 31, 2010
77 * Type constraint objects now have an assert_coerce method which will either
78 return a valid value or throw an error. (rjbs)
80 * We now warn when an accessor for one attribute overwrites an accessor for
81 another attribute. RT #57510. (Dave Rolsky)
85 * The native Array and Hash delegation methods now coerce individual new
86 members if the _member type_ has a coercion. In other words, if the array
87 reference is defined as an ArrayRef[DateTime], and you've defined a
88 coercion from Int to DateTime, then pushing an integer via a delegation
89 method will coerce the integer to a DateTime object. Reported by Karen
90 Etheridge. RT #62351. (Dave Rolsky)
92 * An attribute using native delegations did not always properly coerce and
93 type check a lazily set default value. (doy and Dave Rolsky)
95 * Using a regexp to define delegations for a class which was not yet loaded
96 did not actually work, but did not explicitly fail. However, it caused an
97 error when the class was loaded later. Reported by Max Kanat-Alexander. RT
100 * Attempting to delegate to a class or role which is not yet loaded will now
101 throw an explicit error. (Dave Rolsky)
103 * Attempting to set lazy_build in an inherited attribute was ignored. RT
108 * The Moose test suite now uses Test::Fatal instead of
109 Test::Exception. (rjbs)
111 1.17 Tue, Oct 19, 2010
115 * Make native delegation inlining work with instance metaclasses where slot
116 access is an do {} block, like Kioku. This fixes the use of native
117 delegations together with Kioku. (Scott, doy)
119 1.16 Mon, Oct 18, 2010
123 * Almost every native delegation method which changes the attribute value
124 now has an explicitly documented return value. In general, this return
125 value matches what Perl would return for the same operation. (Dave Rolsky)
127 * Lots of work on native delegation documentation, including documenting
128 what arguments each native delegation method allows or requires. (Dave
131 * Passing an odd number of args to ->new() now gives a more useful warning
132 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
135 * Allow disabling stack traces by setting an environment variable. See
136 Moose::Error::Default for details. This feature is considered
137 experimental, and may change in a future release. (Marcus Ramberg)
139 * The deprecation warning for using alias and excludes without a leading
140 dash now tells you the role being applied and what it was being applied
145 * A number of native trait methods which expected strings as arguments did
146 not allow the empty string. This included Array->join, String->match,
147 String->replace, and String->substr. Reported by Whitney Jackson. RT
148 #61962. (Dave Rolsky)
150 * 'no Moose' no longer inadvertently removes imports it didn't create
151 itself. RT #60013. (Florian Ragwitz, doy)
153 * Roles now support passing an array reference of method names to method
154 modifier sugar functions. (doy)
156 * Native traits no longer use optimized inlining routines if the instance
157 requests it (in particular, if inline_get_slot_value doesn't return
158 something that can be assigned to). This should fix issues with
159 KiokuDB::Class. (doy)
161 * We now ignore all Class::MOP and Moose classes when determining what
162 package called a deprecated feature. This should make the deprecation
163 warnings saner, and make it possible to turn them off more easily. (Dave
166 * The deprecated "default is" warning no longer happens if the attribute has
167 any accessor method defined (accessor, reader, writer). Also, this warning
168 only happens when a method that was generated because of the "default is"
169 gets called, rather than when the attribute is defined. (Dave Rolsky)
171 * The "default default" code for some native delegations no longer issues a
172 deprecation warning when the attribute is required or has a builder. (Dave
175 * Setting a "default default" caused a fatal error if you used the builder
176 or lazy_build options for the attribute. Reported by Kent Fredric. RT
177 #59613. (Dave Rolsky)
179 1.15 Tue, Oct 5, 2010
183 * Major changes to Native Traits, most of which make them act more like
184 "normal" attributes. This should be mostly compatible with existing code,
185 but see Moose::Manual::Delta for details.
187 * A few native traits (String, Counter, Bool) provide default values of "is"
188 and "default" when you created an attribute. Allowing them to provide
189 these values is now deprecated. Supply the value yourself when creating
192 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
193 generate non-global aliases for your traits (and allow your users to
194 rename the aliases, etc). (doy)
196 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
197 determine which name to install the 'meta' name under. Passing 'undef'
198 to this option will suppress generation of the meta method entirely. (doy)
200 * Moose now warns if it overwrites an existing method named "meta" in your
201 class when you "use Moose". (doy)
205 * Native Trait delegations are now all generated as inline code. This should
206 be much faster than the previous method of delegation. In the best case,
207 native trait methods will be very highly optimized.
209 * Reinitializing a metaclass no longer removes the existing method and
210 attribute objects (it instead fixes them so they are correct for the
211 reinitialized metaclass). This should make the order of loading many
212 MooseX modules less of an issue. (doy)
214 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
218 * If an attribute was weak, setting it to a non-ref value after the object
219 was constructed caused an error. Now we only call weaken when the new
220 value is a reference.
222 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
223 based on a patch from Andreas Koenig.
225 1.14 Tue, Sep 21, 2010
229 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
230 a weird error when defining the same union type twice, but only when using
231 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
233 1.13 Mon, Sep 13, 2010
237 * The deprecation warnings for alias and excludes are back, use -alias and
238 -excludes instead. (Dave Rolsky)
242 * When composing one role into another and there is an attribute conflict,
243 the error message now includes the attribute name. Reported by Sam
244 Graham. RT #59985. (Dave Rolsky)
246 * When a class is made immutable, the does_role method is overridden with a
247 much faster version that simply looks role names up in a hash. Code which
248 uses lots of role-based type constraints should be faster. (Dave Rolsky)
250 1.12 Sat, Aug 28, 2010
254 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
256 1.11 Fri, Aug 27, 2010
260 * An attribute in a subclass can now override the value of "is". (doy)
262 * The deprecation warnings for alias and excludes have been turned back off
263 for this release, to give other module authors a chance to tweak their
268 * mro::get_linear_isa was being called as a function rather than a method,
269 which caused problems with Perl 5.8.x. (t0m)
271 * Union types always created a type constraint, even if their constituent
272 constraints did not have any coercions. This bogus coercion always
273 returned undef, which meant that a union which included Undef as a member
274 always coerced bad values to undef. Reported by Eric Brine. RT
275 #58411. (Dave Rolsky)
277 * Union types with coercions would always fall back to coercing the value to
278 undef (unintentionally). Now if all the coercions for a union type fail,
279 the value returned by the coercion is the original value that we attempted
280 to coerce. (Dave Rolsky).
282 1.10 Sun, Aug 22, 2010
286 * The long-deprecated alias and excludes options for role applications now
287 issue a deprecation warning. Use -alias and -excludes instead. (Dave
292 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
294 * default => undef now works properly. (doy)
296 * Enum type constraints now throw errors if their values are nonsensical.
301 * Optimizations that should help speed up compilation time (Dave Rolsky).
303 1.09 Tue, Jul 25, 2010
307 * You can no longer pass "coerce => 1" for an attribute unless its type
308 constraint has a coercion defined. Doing so will issue a deprecation
309 warning. (Dave Rolsky)
311 * Previously, '+foo' only allowed a specific set of options to be
312 overridden, which made it impossible to change attribute options related
313 to extensions. Now we blacklist some options, and anything else is
314 allowed. (doy, Tuomas Jormola)
316 * Most features which have been declared deprecated now issue a warning using
317 Moose::Deprecated. Warnings are issued once per calling package, not
318 repeatedly. See Moose::Deprecated for information on how you can shut
319 these warnings up entirely. Note that deprecated features will eventually
320 be removed, so shutting up the warnings may not be the best idea. (Dave
323 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
328 * We no longer unimport strict and warnings when Moose, Moose::Role, or
329 Moose::Exporter are unimported. Doing this was broken if the user
330 explicitly loaded strict and warnings themself, and the results could be
331 generally surprising. We decided that it was best to err on the side of
332 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
335 * New with_traits helper function in Moose::Util. (doy)
339 * Accessors will no longer be inlined if the instance metaclass isn't
342 * Use Perl 5.10's new recursive regex features, if possible, for the type
343 constraint parser. (doy, nothingmuch)
347 * Attributes now warn if their accessors overwrite a locally defined
348 function (not just method). (doy)
352 * Bump our required perl version to 5.8.3, since earlier versions fail tests
353 and aren't easily installable/testable.
355 1.08 Tue, Jun 15, 2010
359 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
360 to be overridden more easily (doy).
362 1.07 Sat, Jun 05, 2010
366 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
367 classes and non-class metaclass traits (doy, dougdude).
369 1.06 Tue, Jun 01, 2010
373 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
374 more uniformly compare type constraints between 'classic' Moose type
375 constraints and MooseX::Types based type constraints.
377 1.05 Thu, May 20, 2010
381 * Packages and modules no longer have methods - this functionality was
382 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
383 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
385 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
386 Moose::Object::new. (doy)
390 * strict and warnings are now unimported when Moose, Moose::Role, or
391 Moose::Exporter are unimported. (doy, Adam Kennedy)
393 * Added a 'consumers' method to Moose::Meta::Role for finding all
394 classes/roles which consume the given role. (doy)
398 * Fix has '+attr' in Roles to explode immediately, rather than when the role
399 is applied to a class (t0m).
401 * Fix type constraint validation messages to not include the string 'failed'
402 twice in the same sentence (Florian Ragwitz).
404 * New type constraints will default to being unequal, rather than equal
407 * The tests no longer check for perl's behavior of clobbering $@, which has
408 been fixed in perl-5.13.1 (Florian Ragwitz).
410 * Metaclass compatibility fixing has been completely rewritten, and should
411 be much more robust. (doy)
413 1.04 Thu, May 20, 2010
415 * This release was broken and has been deleted from CPAN shortly after its
418 1.03 Thu, May 06, 2010
422 * Allow specifying required versions when setting superclasses or applying
423 roles (Florian Ragwitz).
425 1.02 Sat, May 01, 2010
429 * Stop the natatime method provided by the native Array trait from returning
430 an exhausted iterator when being called with a callback. (Florian Ragwitz)
432 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
435 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
436 the class the TC represents as an argument incorrectly returned true. This
437 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
439 * Use File::Temp for temp files created during tests. Previously, files were
440 written to the t/ dir, which could cause problems of the user running the
441 tests did not have write access to that directory.. (Chris Weyl, Ævar
444 * Pass role arguments along when applying roles to instances. (doy, lsm)
446 1.01 Fri, Mar 26, 2010
450 * The handles option now also accepts a role type constraint in addition to a
451 plain role name. (Florian Ragwitz)
455 * Record the Sartak/doy debt properly in Changes (perigrin)
457 1.00 Tue, Mar 25, 2010
461 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
462 methods by default. (Florian Ragwitz)
466 * Improve various parts of the documentation and fix many typos.
467 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
471 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
473 0.99 Mon, Mar 8, 2010
477 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
478 which member of the union a given value validates for. (Cory Watson)
482 * DEMOLISH methods in mutable subclasses of immutable classes are now called
483 properly (Chia-liang Kao, Jesse Luehrs)
487 * Added Moose::Manual::Support that defines the support, compatiblity, and
488 release policies for Moose. (Chris Prather)
490 0.98 Wed, Feb 10, 2010
494 * An internals change in 0.97 broke role application to an instance in some
495 cases. The bug occurred when two different roles were applied to different
496 instances of the same class. (Rafael Kitover)
499 0.97 Tue, Feb 9, 2010
503 * Calling ->reinitialize on a cached anonymous class effectively uncached
504 the metaclass object, causing the metaclass to go out of scope
505 unexpectedly. This could easily happen at a distance by applying a
506 metarole to an anonymous class. (Dave Rolsky).
508 0.96 Sat, Feb 6, 2010
512 * ScalarRef is now a parameterized type. You can now specify a type
513 constraint for whatever the reference points to. (Closes RT#50857)
514 (Michael G. Schwern, Florian Ragwitz)
518 * ScalarRef now accepts references to other references. (Closes RT#50934)
521 0.95 Thu, Feb 4, 2010
525 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
526 a delegation option. This allows the code reference to be called as a
527 method on the object. (Florian Ragwitz)
531 * Moose::Object::does no longer checks the entire inheritance tree, since
532 Moose::Meta::Class::does_role already does this. (doy)
534 * Moose::Util::add_method_modifier (and subsequently the sugar functions
535 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
536 with the same behavior as lists. Types other than arrayref and regexp
537 result in an error. (Dylan Hardison)
539 0.94 Mon, Jan 18, 2010
543 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
547 * Improved support for anonymous roles by changing various APIs to take
548 Moose::Meta::Role objects as well as role names. This included
550 - Moose::Meta::Class->does_role
551 - Moose::Meta::Role->does_role
552 - Moose::Util::does_role
553 - Moose::Util::apply_all_roles
554 - Moose::Util::ensure_all_roles
555 - Moose::Util::search_class_by_role
557 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
561 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
562 work as long as the accessor method names are explicitly set to valid Perl
563 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
566 0.93_03 Tue, Jan 5, 2010
570 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
571 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
574 0.93_02 Tue, Jan 5, 2010
578 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
579 testers. (Dave Rolsky)
582 0.93_01 Mon, Jan 4, 2010
586 See Moose::Manual::Delta for more details on backwards compatiblity issues.
588 * Role attributes are now objects of the Moose::Meta::Role::Attribute
589 class. (Dave Rolsky).
591 * There were major changes to how metaroles are applied. We now distinguish
592 between metaroles for classes vs those for roles. See the
593 Moose::Util::MetaRole docs for details. (Dave Rolsky)
595 * The old MetaRole API has been deprecated, but will continue to
596 work. However, if you are applying an attribute metaclass role, this may
597 break because of the fact that roles now have an attribute metaclass
600 * Moose::Util::MetaRole::apply_metaclass_roles is now called
601 apply_metaroles. The old name is deprecated. Dave Rolsky>
603 * The unimport subs created by Moose::Exporter now clean up re-exported
604 functions like blessed and confess, unless the caller imported them from
605 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
607 [ENHANCEMENTS AND BUG FIXES]
609 * Changed the Str constraint to accept magic lvalue strings like one gets from
610 substr et al, again. (sorear)
612 * Sped up the type constraint parsing regex. (Sam Vilain)
614 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
617 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
618 easier testing of TypeConstraints from the command line. (perigrin)
620 * Added a with_immutable test function to Test::Moose, to run a block of tests
621 with and without certain classes being immutable. (doy)
623 * We now use Module::Install extensions explicitly to avoid confusing errors
624 if they're not installed. We use Module::Install::AuthorRequires to stop
625 test extraction and general failures if you don't have the author side
626 dependencies installed.
628 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
629 #51791. (Amir E. Aharoni)
632 0.93 Thu, Nov 19, 2009
634 - Calling $object->new() is no longer deprecated, and no longer
638 - The get_attribute_map method is now deprecated. (Dave Rolsky)
640 * Moose::Meta::Method::Delegation
641 - Preserve variable aliasing in @_ for delegated methods, so that
642 altering @_ affects the passed value. (doy)
644 * Moose::Util::TypeConstraints
645 - Allow array refs for non-anonymous form of enum and duck_type, not
646 just anonymous. The non-arrayref forms may be removed in the
648 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
649 - Properly document Int being a subtype of Str. (doy)
652 - Moose::Exporter using modules can now export their functions to the
653 main package. This applied to Moose and Moose::Role, among
654 others. (nothingmuch)
656 * Moose::Meta::Attribute
657 - Don't remove attribute accessors we never installed, during
658 remove_accessors. (doy)
660 * Moose::Meta::Attribute::Native::Trait::Array
661 - Don't bypass prototype checking when calling List::Util::first, to
662 avoid a segfault when it is called with a non-code argument. (doy)
664 * Moose::Meta::Attribute::Native::Trait::Code
665 - Fix passing arguments to code execute helpers. (doy)
667 0.92 Tue, Sep 22, 2009
668 * Moose::Util::TypeConstraints
669 - added the match_on_type operator (Stevan)
670 - added tests and docs for this (Stevan)
673 - Metaclass compat fixing should already happen recursively, there's no
674 need to explicitly walk up the inheritance tree. (doy)
676 * Moose::Meta::Attribute
677 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
679 0.91 Thu, Sep 17, 2009
681 - Don't import any functions, in order to avoid polluting our namespace
682 with things that can look like methods (blessed, try, etc)
685 * Moose::Meta::Method::Constructor
686 - The generated code needs to called Scalar::Util::blessed by its
687 fully-qualified name or else Perl can interpret the call to blessed as
688 an indirect method call. This broke Search::GIN, which in turn broke
689 KiokuDB. (nothingmuch)
691 0.90 Tue, Sep 15, 2009
692 * Moose::Meta::Attribute::Native::Trait::Counter
693 * Moose::Meta::Attribute::Native::Trait::String
694 - For these two traits, an attribute which did not explicitly provide
695 methods to handles magically ended up delegating *all* the helper
696 methods. This has been removed. You must be explicit in your handles
697 declaration for all Native Traits. (Dave Rolsky)
700 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
701 sure to rethrow its error message. However, we also localize $@ before
702 this so that if all the DEMOLISH methods success, the value of $@ will
703 be preserved. (nothingmuch and Dave Rolsky)
704 - We now also localize $? during object destruction. (nothingmuch and
706 - The handling of DEMOLISH methods was broken for immutablized classes,
707 which were not receiving the value of
708 Devel::GlobalDestruction::in_global_destruction.
709 - These two fixes address some of RT #48271, reported by Zefram.
710 - This is all now documented in Moose::Manual::Construction.
711 - Calling $object->new() is now deprecated. A warning will be
715 - Added more hooks to customize how roles are applied. The role
716 summation class, used to create composite roles, can now be changed
717 and/or have meta-roles applied to it. (rafl)
718 - The get_method_list method no longer explicitly excludes the "meta"
719 method. This was a hack that has been replaced by better hacks. (Dave
722 * Moose::Meta::Method::Delegation
723 - fixed delegated methods to make sure that any modifiers attached to
724 the accessor being delegated on will be called (Stevan)
725 - added tests for this (Stevan)
728 - Moose no longer warns when a class that is being made immutable has
729 mutable ancestors. While in theory this is a good thing to warn about,
730 we found so many exceptions to this that doing this properly became
733 0.89_02 Thu, Sep 10, 2009
734 * Moose::Meta::Attribute::Native
735 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
737 * Moose::Meta::Attribute::Native::Trait::Array
738 - Added a number of functions from List::Util and List::MoreUtils,
739 including reduce, shuffle, uniq, and natatime. (doy)
742 - This module will now generate an init_meta method for your exporting
743 class if you pass it options for
744 Moose::Util::MetaRole::apply_metaclass_roles or
745 apply_base_class_roles. This eliminates a lot of repetitive
746 boilerplate for typical MooseX modules. (doy).
747 - Documented the with_meta feature, which is a replacement for
748 with_caller. This feature was added by josh a while ago.
749 - The with_caller feature is now deprecated, but will not issue a
750 warning yet. (Dave Rolsky)
751 - If you try to wrap/export a subroutine which doesn't actually exist,
752 Moose::Exporter will warn you about this. (doy)
754 * Moose::Meta::Role::Application::ToRole
755 - When a role aliased a method from another role, it was only getting
756 the new (aliased) name, not the original name. This differed from what
757 happens when a class aliases a role's methods. If you _only_ want the
758 aliased name, make sure to also exclue the original name. (Dave
761 0.89_01 Wed Sep 2, 2009
762 * Moose::Meta::Attribute
763 - Added the currying syntax for delegation from AttributeHelpers to the
764 existing delegation API. (hdp)
766 * Moose::Meta::Attribute::Native
767 - We have merged the functionality of MooseX::AttributeHelpers into the
768 Moose core with some API tweaks. You can continue to use
769 MooseX::AttributeHelpers, but it will not be maintained except
770 (perhaps) for critical bug fixes in the future. See
771 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
774 * Moose::Error::Croak
775 * Moose::Error::Confess
776 - Clarify documentation on how to use different error-throwing
777 modules. (Curtis Jewell)
780 - Correct POD for builder to point to Recipe8, not 9. (gphat)
783 - When a nonexistent sub name is passed to as_is, with_caller, or
784 with_meta, throw a warning and skip the exporting, rather than
785 installing a broken sub. (doy)
788 - Moose now warns if you call C<make_immutable> for a class with mutable
791 0.89 Thu Aug 13, 2009
792 * Moose::Manual::Attributes
793 - Clarify "is", include discussion of "bare". (Sartak)
795 * Moose::Meta::Role::Method::Conflicting
796 * Moose::Meta::Role::Application::ToClass
797 - For the first set of roles involved in a conflict, report all
798 unresolved method conflicts, not just the first method. Fixes #47210
799 reported by Ovid. (Sartak)
801 * Moose::Meta::TypeConstraint
802 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
805 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
807 - Allow specifying role options (alias, excludes, MXRP stuff) in the
808 arrayref passed to "use Moose -traits" (doy)
811 - Add functions meta_class_alias and meta_attribute_alias for creating
812 aliases for class and attribute metaclasses and metatraits. (doy)
814 * Moose::Meta::Attribute
815 * Moose::Meta::Method::Accessor
816 - A trigger now receives the old value as a second argument, if the
817 attribute had one. (Dave Rolsky)
819 * Moose::Meta::Method::Constructor
820 - Fix a bug with $obj->new when $obj has stringify overloading.
821 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
822 - However, we will probably deprecate $obj->new, so please don't start
823 using it for new code!
825 * Moose::Meta::Role::Application
826 * Moose::Meta::Role::Application::RoleSummation
827 - Rename alias and excludes to -alias and -excludes (but keep the old
828 names for now, for backcompat) (doy)
830 0.88 Fri Jul 24, 2009
831 * Moose::Manual::Contributing
832 - Re-write the Moose::Manual::Contributing document to reflect
833 the new layout and methods of work for the Git repository. All
834 work now should be done in topic branches and reviewed by a
835 core committer before being applied to master. All releases
836 are done by a cabal member and merged from master to
837 stable. This plan was devised by Yuval, blame him. (perigrin)
840 - Create metaclass attributes for the different role application
843 * Moose::Util::MetaRole
844 - Allow applying roles to a meta role's role application
847 * Moose::Meta::Attribute
848 - Add weak_ref to allowed options for "has '+foo'" (mst)
850 * Moose::Meta::Method::Accessor
851 - No longer uses inline_slot_access in accessors, to support
852 non-lvalue-based meta instances. (sorear)
855 * Moose::Meta::Method::Delegation
856 - Once again allow class names as well as objects for
857 delegation. This was changed in 0.86.
860 * Moose::Meta::Class::Immutable::Trait
861 - Fixes to work with the latest Class::MOP.
863 * Moose::Meta::Method::Delegation
864 - Delegation now dies with a more useful error message if the
865 attribute's accessor returns something defined but
868 0.85 Fri, Jun 26, 2009
869 * Moose::Meta::Attribute
870 - The warning for 'no associated methods' is now split out into
871 the _check_associated_methods method, so that extensions can
872 safely call 'after install_accessors => ...'. This fixes a
873 warning from MooseX::AttributeHelpers. (hdp)
875 0.84 Fri, Jun 26, 2009
877 - has now sets definition_context for attributes defined in
880 * Moose::Meta::Attribute
881 - When adding an attribute to a metaclass, if the attribute has
882 no associated methods, it will give a deprecation
884 - Methods generated by delegation were not being added to
885 associated_methods. (hdp)
886 - Attribute accessors (reader, writer, accessor, predicate,
887 clearer) now warn if they overwrite an existing method. (doy)
888 - Attribute constructors now warn very noisily about unknown (or
889 misspelled) arguments
891 * Moose::Util::TypeConstraints
892 - Deprecated the totally useless Role type name, which just
893 checked if $object->can('does'). Note that this is _not_ the
894 same as a type created by calling role_type('RoleName').
896 * Moose::Util::TypeConstraints
897 * Moose::Meta::TypeConstraint::DuckType
898 - Reify duck type from a regular subtype into an actual class
900 - Document this because Sartak did all my work for me
903 * Moose::Meta::Attribute
904 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
905 it is just a list of methods (Sartak)
908 - The get_*_method_modifiers methods would die if the role had
909 no modifiers of the given type (Robert Buels).
911 0.83 Tue, Jun 23, 2009
913 - Fix _construct_instance not setting the special __MOP__ object
914 key in instances of anon classes. (doy)
916 0.82 Sun, Jun 21, 2009
917 * Moose::Manual::Types
918 - Mention MooseX::Types early to avoid users falling down the
919 string parsing rathole (mst)
921 * Moose::Manual::MooseX
922 - Add warnings about class-level extensions and mention considering
923 using plain objects instead
925 0.81 Sun, Jun 7, 2009
926 * Bumped our Class::MOP prereq to the latest version (0.85), since
929 0.80 Sat, Jun 6, 2009
931 - Add FAQ about the coercion change from 0.76 because it came up
932 three times today (perigrin)
933 - Win doy $10 dollars because Sartak didn't think anybody
934 would document this fast enough (perigrin)
936 * Moose::Meta::Method::Destructor
937 - Inline a DESTROY method even if there are no DEMOLISH methods
938 to prevent unnecessary introspection in
939 Moose::Object::DEMOLISHALL
942 - A role's required methods are now represented by
943 Moose::Meta::Role::Method::Required objects. Conflicts are now
944 represented by Moose::Meta::Role::Method::Conflicting
945 objects. The benefit for end-users in that unresolved
946 conflicts generate different, more instructive, errors,
947 resolving Ovid's #44895. (Sartak)
950 - Improve the error message of "extends" as suggested by Adam
951 Kennedy and confound (Sartak)
952 - Link to Moose::Manual::Roles from Moose::Role as we now have
953 excellent documentation (Adam Kennedy)
956 - Update test suite for subname change in Class::MOP
958 - Add TODO test for infinite recursion in Moose::Meta::Class
961 0.79 Wed, May 13, 2009
963 - More fixes for Win32 problems. Reported by Robert Krimen.
966 - The DEMOLISHALL method could still blow up in some cases
967 during global destruction. This method has been made more
968 resilient in the face of global destruction's random garbage
972 - If you "also" a module that isn't loaded, the error message
973 now acknowledges that (Sartak)
976 - When your ->meta method does not return a Moose::Meta::Class,
977 the error message gave the wrong output (Sartak)
979 0.78 Tue, May 12, 2009
980 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
981 - Merged these documents into what is now Moose::Manual::FAQ
984 - Moved to Moose::Manual::Unsweetened
986 * Moose::Cookbook::Basics::Recipes 9-12
987 - Renamed to be 8-11, since recipe 8 did not exist
990 - Make Moose::Exporter import strict and warnings into packages
994 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
995 methods during global destruction (doy)
998 * Moose::Meta::Role::Application::ToClass
999 - Track the Role::Application objects created during class-role
1000 consumption (Sartak)
1002 * Moose::Meta::Class
1003 - Fix metaclass incompatibility errors when extending a vanilla perl
1004 class which isa Moose class with a metaclass role applied (t0m)
1007 - Add a role-combination hook, _role_for_combination, for the
1008 benefit of MooseX::Role::Parameterized (Sartak)
1011 - Some tests were failing on Win32 because they explicit checked
1012 warning output for newlines. Reported by Nickolay Platonov.
1014 0.77 Sat, May 2, 2009
1016 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1020 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
1021 or not we are currently in global destruction (doy)
1022 - Add explicit use of Devel::GlobalDestruction and Sub::Name
1025 * Moose::Cookbook::FAQ
1026 - Reworked much of the existing content to be more useful to
1027 modern Moose hackers (Sartak)
1030 - Depend on Class::MOP 0.83 instead of 0.82_01.
1032 0.76 Mon, April 27, 2009
1033 * Moose::Meta::TypeConstraint
1034 - Do not run coercions in coerce() if the value already passes the type
1037 * Moose::Meta::TypeConstraint::Class
1038 - In validation error messages, specifically say that the value is not
1039 an instance of the class. This should alleviate some frustrating
1040 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
1042 * Moose::Meta::Role::Application::ToClass
1043 - Revert the class-overrides-role warning in favor of a solution outside
1044 of the Moose core (Sartak)
1047 - Make Test::Output optional again, since it's only used in a few files
1050 0.75_01 Thu, April 23, 2009
1051 * Moose::Meta::Role::Application::ToClass
1052 - Moose now warns about each class overriding methods from roles it
1056 - Warnings tests have standardized on Test::Output which is now an
1057 unconditionally dependency (Sartak)
1059 * Moose::Meta::Class
1060 - Changes to immutabilization to work with Class::MOP 0.82_01+.
1062 0.75 Mon, April 20, 2009
1064 * Moose::Meta::Class
1065 - Move validation of not inheriting from roles from Moose::extends to
1066 Moose::Meta::Class::superclasses (doy)
1069 - add ensure_all_roles() function to encapsulate the common "apply this
1070 role unless the object already does it" pattern (hdp)
1073 - Users can now select a different metaclass with the "-metaclass"
1074 option to import, for classes and roles (Sartak)
1077 - Make method_metaclass an attr so that it can accept a metarole
1080 0.74 Tue, April 7, 2009
1082 * Moose::Meta::Method::Destructor
1083 - Include stack traces in the deprecation warnings.
1086 * Moose::Meta::Class
1087 - Removed the long-deprecated _apply_all_roles method.
1089 * Moose::Meta::TypeConstraint
1090 - Removed the long-deprecated union method.
1093 0.73_02 Mon, April 6, 2009
1094 * More deprecations and renamings
1095 - Moose::Meta::Method::Constructor
1096 - initialize_body => _initialize_body (this is always called
1097 when an object is constructed)
1100 - The DEMOLISHALL method could throw an exception during global
1101 destruction, meaning that your class's DEMOLISH methods would
1102 not be properly called. Reported by t0m.
1104 * Moose::Meta::Method::Destructor
1105 - Destructor inlining was totally broken by the change to the
1106 is_needed method in 0.72_01. Now there is a test for this
1107 feature, and it works again.
1110 - Bold the word 'not' in the POD for find_meta (t0m)
1112 0.73_01 Sun, April 5, 2009
1114 - Call user_class->meta in fewer places, with the eventual goal
1115 of allowing the user to rename or exclude ->meta
1116 altogether. Instead uses Class::MOP::class_of. (Sartak)
1118 * Moose::Meta::Method::Accessor
1119 - If an attribute had a lazy default, and that value did not
1120 pass the attribute's type constraint, it did not get the
1121 message from the type constraint, instead using a generic
1122 message. Test provided by perigrin.
1124 * Moose::Util::TypeConstraints
1125 - Add duck_type keyword. It's sugar over making sure an object
1126 can() a list of methods. This is easier than jrockway's
1127 suggestion to fork all of CPAN. (perigrin)
1128 - add tests and documentation (perigrin)
1131 - Document the fact that init_meta() returns the target class's
1132 metaclass object. (hdp)
1134 * Moose::Cookbook::Extending::Recipe1
1135 * Moose::Cookbook::Extending::Recipe2
1136 * Moose::Cookbook::Extending::Recipe3
1137 * Moose::Cookbook::Extending::Recipe4
1138 - Make init_meta() examples explicitly return the metaclass and
1139 point out this fact. (hdp)
1141 * Moose::Cookbook::Basics::Recipe12
1142 - A new recipe, creating a custom meta-method class.
1144 * Moose::Cookbook::Meta::Recipe6
1145 - A new recipe, creating a custom meta-method class.
1147 * Moose::Meta::Class
1148 * Moose::Meta::Method::Constructor
1149 - Attribute triggers no longer receive the meta-attribute object
1150 as an argument in any circumstance. Previously, triggers
1151 called during instance construction were passed the
1152 meta-attribute, but triggers called by normal accessors were
1153 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1155 * Moose::Manual::Attributes
1156 - Remove references to triggers receving the meta-attribute object as an
1159 * Moose::Cookbook::FAQ
1160 - Remove recommendation for deprecated Moose::Policy and
1161 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1164 * Many methods have been renamed with a leading underscore, and a
1165 few have been deprecated entirely. The methods with a leading
1166 underscore are consider "internals only". People writing
1167 subclasses or extensions to Moose should feel free to override
1168 them, but they are not for "public" use.
1170 - Moose::Meta::Class
1171 - check_metaclass_compatibility => _check_metaclass_compatibility
1173 - Moose::Meta::Method::Accessor
1174 - initialize_body => _initialize_body (this is always called
1175 when an object is constructed)
1176 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1178 - Moose::Meta::Method::Constructor
1179 - initialize_body => _initialize_body (this is always called
1180 when an object is constructed)
1181 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1182 - attributes => _attributes (now inherited from parent)
1183 - meta_instance => _meta_instance (now inherited from parent)
1186 - alias_method is deprecated. Use add_method
1188 0.73 Fri, March 29, 2009
1189 * No changes from 0.72_01.
1191 0.72_01 Thu, March 26, 2009
1193 - Almost every module has complete API documentation. A few
1194 methods (and even whole classes) have been intentionally
1195 excluded pending some rethinking of their APIs.
1197 * Moose::Util::TypeConstraints
1198 - Calling subtype with a name as the only argument is now an
1199 exception. If you want an anonymous subtype do:
1201 my $subtype = subtype as 'Foo';
1203 * Moose::Cookbook::Meta::Recipe7
1204 - A new recipe, creating a custom meta-instance class.
1206 * Moose::Cookbook::Basics::Recipe5
1207 - Fix various typos and mistakes. Includes a patch from Radu
1210 * Moose::Cookbook::Basics::Recipe9
1211 - Link to this recipe from Moose.pm's builder blurb
1214 - When wrapping a function with a prototype, Moose::Exporter now
1215 makes sure the wrapped function still has the same
1216 prototype. (Daisuke Maki)
1218 * Moose::Meta::Attribute
1219 - Allow a subclass to set lazy_build for an inherited
1223 - Explicitly depend on Data::OptList. We already had this dependency
1224 via Sub::Exporter, but since we're using it directly we're
1225 better off with it listed. (Sartak)
1227 * Moose::Meta::Method::Constructor
1228 - Make it easier to subclass the inlining behaviour. (Ash
1231 * Moose::Manual::Delta
1232 - Details significant changes in the history of Moose, along
1233 with recommended workarounds.
1235 * Moose::Manual::Contributing
1236 - Contributor's guide to Moose.
1238 * Moose::Meta::Method::Constructor
1239 - The long-deprecated intialize_body method has been removed
1240 (yes, spelled like that).
1242 * Moose::Meta::Method::Destructor
1243 - This is_needed method is now always a class method.
1245 * Moose::Meta::Class
1246 - Changes to the internals of how make_immutable works to match
1247 changes in latest Class::MOP.
1249 0.72 Mon, February 23, 2009
1251 * Moose::Meta::Method::Constructor
1252 - A mutable class accepted Foo->new(undef) without complaint,
1253 while an immutable class would blow up with an unhelpful
1254 error. Now, in both cases we throw a helpful error
1255 instead. Reported by doy.
1257 0.71_01 Sun, February 22, 2009
1259 - Hopefully fixed some POD errors in a few recipes that caused
1260 them to display weird on search.cpan.org.
1262 * Moose::Util::TypeConstraints
1263 - Calling type or subtype without the sugar helpers (as, where,
1264 message) is now deprecated.
1265 - The subtype function tried hard to guess what you meant, but
1266 often got it wrong. For example:
1268 my $subtype = subtype as 'ArrayRef[Object]';
1270 This caused an error in the past, but now works as you'd
1274 - Make sure Moose.pm is loaded before calling
1275 Moose->throw_error. This wasn't normally an issue, but could
1276 bite you in weird cases.
1278 0.71 Thu, February 19, 2009
1279 * Moose::Cookbook::Basics::Recipe11
1280 - A new recipe which demonstrates the use of BUILDARGS and
1281 BUILD. (Dave Rolsky)
1283 * Moose::Cookbook::Roles::Recipe3
1284 - A new recipe, applying a role to an object instance. (Dave
1288 - Allow overriding specific keywords from "also" packages. (doy)
1291 - Replace hardcoded cookbook tests with Test::Inline to ensure
1292 the tests match the actual code in the recipes. (Dave Rolsky)
1295 - Working on the above turned up a number of little bugs in the
1296 recipe code. (Dave Rolsky)
1298 * Moose::Util::TypeConstraints::Optimized
1299 - Just use Class::MOP for the optimized ClassName check. (Dave
1302 0.70 Sat, February 14, 2009
1303 * Moose::Util::TypeConstraints
1304 - Added the RoleName type (stevan)
1305 - added tests for this (stevan)
1307 * Moose::Cookbook::Basics::Recipe3
1308 - Updated the before qw[left right] sub to be a little more
1309 defensive about what it accepts (stevan)
1310 - added more tests to t/000_recipies/basics/003_binary_tree.t
1314 - We now always call DEMOLISHALL, even if a class does not
1315 define DEMOLISH. This makes sure that method modifiers on
1316 DEMOLISHALL work as expected. (doy)
1317 - added tests for this (EvanCarroll)
1319 * Moose::Util::MetaRole
1320 - Accept roles for the wrapped_method_metaclass (rafl)
1321 - added tests for this (rafl)
1323 * Moose::Meta::Attribute
1324 - We no longer pass the meta-attribute object as a final
1325 argument to triggers. This actually changed for inlined code a
1326 while back, but the non-inlined version and the docs were
1330 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1331 they require 0.11. (Dave Rolsky)
1334 - Lots of small changes to the manual, cookbook, and
1335 elsewhere. These were based on feedback from various
1336 users, too many to list here. (Dave Rolsky)
1338 0.69 Thu, February 12, 2009
1340 - Make some keyword errors use throw_error instead of croak
1341 since Moose::Exporter wraps keywords now (Sartak)
1343 * Moose::Cookbook::*
1344 - Revised every recipe for style and clarity. Also moved some
1345 documentation out of cookbook recipes and into Moose::Manual
1346 pages. This work was funded as part of the Moose docs grant
1347 from TPF. (Dave Rolsky)
1349 * Moose::Meta::Method::Delegation
1350 - If the attribute doing the delegation was not populated, the
1351 error message did not specify the attribute name
1354 0.68 Wed, February 4, 2009
1356 - Many spelling, typo, and formatting fixes by daxim.
1358 * Moose::Manual::Attributes
1359 - The NAME section in the POD used "Attribute" so search.cpan
1360 didn't resolve links from other documents properly.
1362 * Moose::Meta::Method::Overriden
1363 - Now properly spelled as Overridden. Thanks to daxim for
1366 0.67 Tue, February 3, 2009
1368 - Lots of little typo fixes and a few clarifications. Several
1369 pages didn't have proper titles, and so weren't actually
1370 visible on search.cpan.org. Thanks to hanekomu for a variety
1371 of fixes and formatting improvements.
1373 0.66 Tue, February 3, 2009
1375 - This is a brand new, extensive manual for Moose. This aims to
1376 provide a complete introduction to all of Moose's
1377 features. This work was funded as part of the Moose docs grant
1378 from TPF. (Dave Rolsky)
1380 * Moose::Meta::Attribute
1381 - Added a delegation_metaclass method to replace a hard-coded
1382 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1384 * Moose::Util::TypeConstraints
1385 - If you created a subtype and passed a parent that Moose didn't
1386 know about, it simply ignored the parent. Now it automatically
1387 creates the parent as a class type. This may not be what you
1388 want, but is less broken than before. (Dave Rolsky)
1390 * Moose::Util::TypeConstraints
1391 - This module tried throw errors by calling Moose->throw_error,
1392 but it did not ensure that Moose was loaded first. This could
1393 cause very unhelpful errors when it tried to throw an error
1394 before Moose was loaded. (Dave Rolsky)
1396 * Moose::Util::TypeConstraints
1397 - You could declare a name with subtype such as "Foo!Bar" that
1398 would be allowed, but if you used it in a parameterized type
1399 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1400 vetting on names created via the sugar functions, so that they
1401 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1403 0.65 Thu, January 22, 2009
1404 * Moose and Moose::Meta::Method::Overridden
1405 - If an overridden method called super(), and then the
1406 superclass's method (not overridden) _also_ called super(),
1407 Moose went into an endless recursion loop. Test provided by
1408 Chris Prather. (Dave Rolsky)
1410 * Moose::Meta::TypeConstraint
1411 - All methods are now documented. (gphat)
1413 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1414 - Fixed some bogus failures that occurred because we tried to
1415 validate filesystem paths in a very ad-hoc and
1416 not-quite-correct way. (Dave Rolsky)
1418 * Moose::Util::TypeConstraints
1419 - Added maybe_type to exports. See docs for details. (rjbs)
1422 - Added Moose::Util::TypeConstraints to the SEE ALSO
1426 - Methods created via an attribute can now fulfill a "requires"
1427 declaration for a role. (nothingmuch)
1429 * Moose::Meta::Method::*
1430 - Stack traces from inlined code will now report its line and
1431 file as being in your class, as opposed to in Moose
1432 guts. (nothingmuch).
1434 0.64 Wed, December 31, 2008
1435 * Moose::Meta::Method::Accessor
1436 - Always inline predicate and clearer methods (Sartak)
1438 * Moose::Meta::Attribute
1439 - Support for parameterized traits (Sartak)
1440 - verify_against_type_constraint method to avoid duplication
1441 and enhance extensibility (Sartak)
1443 * Moose::Meta::Class
1444 - Tests (but no support yet) for parameterized traits (Sartak)
1447 - Require Class::MOP 0.75+, which has the side effect of making
1448 sure we work on Win32. (Dave Rolsky)
1450 0.63 Mon, December 8, 2008
1451 * Moose::Unsweetened
1452 - Some small grammar tweaks and bug fixes in non-Moose example
1455 0.62_02 Fri, December 5, 2008
1456 * Moose::Meta::Role::Application::ToClass
1457 - When a class does not provide all of a role's required
1458 methods, the error thrown now mentions all of the missing
1459 methods, as opposed to just the first one found. Requested by
1460 Curtis Poe (RT #41119). (Dave Rolsky)
1462 * Moose::Meta::Method::Constructor
1463 - Moose will no longer inline a constructor for your class
1464 unless it inherits its constructor from Moose::Object, and
1465 will warn when it doesn't inline. If you want to force
1466 inlining anyway, pass "replace_constructor => 1" to
1467 make_immutable. Addresses RT #40968, reported by Jon
1468 Swartz. (Dave Rolsky)
1469 - The quoting of default values could be broken if the default
1470 contained a single quote ('). Now we use quotemeta to escape
1471 anything potentially dangerous in the defaults. (Dave Rolsky)
1473 0.62_01 Wed, December 3, 2008
1475 - use the method->execute API for BUILDALL
1476 and DEMOLISHALL (Sartak)
1478 * Moose::Util::TypeConstraints
1479 - We now make all the type constraint meta classes immutable
1480 before creating the default types provided by Moose. This
1481 should make loading Moose a little faster. (Dave Rolsky)
1483 0.62 Wed November 26, 2008
1484 * Moose::Meta::Role::Application::ToClass
1485 Moose::Meta::Role::Application::ToRole
1486 - fixed issues where excluding and aliasing the
1487 same methods for a single role did not work
1488 right (worked just fine with multiple
1490 - added test for this (stevan)
1492 * Moose::Meta::Role::Application::RoleSummation
1493 - fixed the error message when trying to compose
1494 a role with a role it excludes (Sartak)
1497 - Catch another case where recursion caused the value
1498 of $CALLER to be stamped on (t0m)
1499 - added test for this (t0m)
1502 - Remove the make_immutable keyword, which has been
1503 deprecated since April. It breaks metaclasses that
1504 use Moose without no Moose (Sartak)
1506 * Moose::Meta::Attribute
1507 - Removing an attribute from a class now also removes delegation
1508 (handles) methods installed for that attribute (t0m)
1509 - added test for this (t0m)
1511 * Moose::Meta::Method::Constructor
1512 - An attribute with a default that looked like a number (but was
1513 really a string) would accidentally be treated as a number
1514 when the constructor was made immutable (perigrin)
1515 - added test for this (perigrin)
1518 - create method for constructing a role
1519 dynamically (Sartak)
1520 - added test for this (Sartak)
1521 - anonymous roles! (Sartak)
1522 - added test for this (Sartak)
1525 - more consistent error messages (Sartak)
1527 * Moose::Cookbook::Roles::Recipe1
1528 - attempt to explain why a role that just requires
1529 methods is useful (Sartak)
1531 0.61 Fri November 7, 2008
1532 * Moose::Meta::Attribute
1533 - When passing a role to handles, it will be loaded if necessary
1536 * Moose::Meta::Class
1537 - Method objects returned by get_method (and other methods)
1538 Could end up being returned without an associated_metaclass
1539 attribute. Removing get_method_map, which is provided by
1540 Class::MOP::Class, fixed this. The Moose version did nothing
1541 different from its parent except introduce a bug. (Dave Rolsky)
1542 - added tests for this (jdv79)
1545 - Added a $VERSION to all .pm files which didn't have one. Fixes
1546 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1548 * Moose::Cookbook::Basics::Recipe4
1549 * Moose::Cookbook::Basics::Recipe6
1550 - These files had spaces on the first line of the SYNOPSIS, as
1551 opposed to a totally empty line. According to RT #40432, this
1552 confuses POD parsers. (Dave Rolsky)
1554 0.60 Fri October 24, 2008
1556 - Passing "-traits" when loading Moose caused the Moose.pm
1557 exports to be broken. Reported by t0m. (Dave Rolsky)
1558 - Tests for this bug. (t0m)
1561 - Change resolve_metaclass alias to use the new
1562 load_first_existing_class function. This makes it a lot
1563 simpler, and also around 5 times faster. (t0m)
1564 - Add caching to resolve_metaclass_alias, which gives an order
1565 of magnitude speedup to things which repeatedly call the
1566 Moose::Meta::Attribute->does method, notably MooseX::Storage
1569 * Moose::Util::TypeConstraint
1570 - Put back the changes for parameterized constraints that
1571 shouldn't have been removed in 0.59. We still cannot parse
1572 them, but MooseX modules can create them in some other
1573 way. See the 0.58 changes for more details. (jnapiorkowski)
1574 - Changed the way subtypes are created so that the job is
1575 delegated to a type constraint parent. This clears up some
1576 hardcoded checking and should allow correct subtypes of
1577 Moose::Meta::Type::Constraint. Don't rely on this new API too
1578 much (create_child_type) because it may go away in the
1579 future. (jnapiorkowski)
1581 * Moose::Meta::TypeConstraint::Union
1582 - Type constraint names are sorted as strings, not numbers.
1585 * Moose::Meta::TypeConstraint::Parameterizable
1586 - New parameterize method. This can be used as a factory method
1587 to make a new type constraint with a given parameterized
1588 type. (jnapiorkowski)
1589 - added tests (jnapiorkowski)
1591 0.59 Tue October 14, 2008
1593 - Add abridged documentation for builder/default/initializer/
1594 predicate, and link to more details sections in
1595 Class::MOP::Attribute. (t0m)
1597 * Moose::Util::TypeConstraints
1598 - removed prototypes from all but the &-based stuff (mst)
1600 * Moose::Util::TypeConstraints
1601 - Creating a anonymous subtype with both a constraint and a
1602 message failed with a very unhelpful error, but should just
1603 work. Reported by t0m. (Dave Rolsky)
1606 - Some tests that used Test::Warn if it was available failed
1607 with older versions of Test::Warn. Reported by Fayland. (Dave
1609 - Test firing behavior of triggers in relation to builder/default/
1611 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1612 kinds of supported type. (t0m)
1614 * Moose::Meta::Class
1615 - In create(), do not pass "roles" option to the superclass
1616 - added related test that creates an anon metaclass with
1617 a required attribute
1619 * Moose::Meta::TypeConstraint::Class
1620 * Moose::Meta::TypeConstraint::Role
1621 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1622 other types (as per change in 0.55_02). (t0m)
1624 * Moose::Meta::TypeConstraint::Registry
1625 - Fix warning when dealing with unknown type names (t0m)
1627 * Moose::Util::TypeConstraints
1628 - Reverted changes from 0.58 related to handle parameterized
1629 types. This caused random failures on BSD and Win32 systems,
1630 apparently related to the regex engine. This means that Moose
1631 can no longer parse structured type constraints like
1632 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1633 supported in a slightly different way via MooseX::Types some
1634 time in the future. (Dave Rolsky)
1636 0.58 Sat September 20, 2008
1637 !! This release has an incompatible change regarding !!
1638 !! how roles add methods to a class !!
1640 * Roles and role application
1641 ! Roles now add methods by calling add_method, not
1642 alias_method. They make sure to always provide a method
1643 object, which will be cloned internally. This means that it is
1644 now possible to track the source of a method provided by a
1645 role, and even follow its history through intermediate roles.
1647 This means that methods added by a role now show up when
1648 looking at a class's method list/map. (Dave Rolsky)
1651 - From this release on, we'll try to maintain a list of
1652 conflicting modules, and warn you if you have one
1653 installed. For example, this release conflicts with ...
1654 - MooseX::Singleton <= 0.11
1655 - MooseX::Params::Validate <= 0.05
1658 In general, we try to not break backwards compatibility for
1659 most Moose users, but MooseX modules and other code which
1660 extends Moose's metaclasses is often affected by very small
1661 changes in the Moose internals.
1663 * Moose::Meta::Method::Delegation
1664 * Moose::Meta::Attribute
1665 - Delegation methods now have their own method class. (Dave
1668 * Moose::Meta::TypeConstraint::Parameterizable
1669 - Added a new method 'parameterize' which is basically a factory
1670 for the containing constraint. This makes it easier to create
1671 new types of parameterized constraints. (jnapiorkowski)
1673 * Moose::Meta::TypeConstraint::Union
1674 - Changed the way Union types canonicalize their names to follow
1675 the normalized TC naming rules, which means we strip all
1676 whitespace. (jnapiorkowski)
1678 * Moose::Util::TypeConstraints
1679 - Parameter and Union args are now sorted, this makes Int|Str
1680 the same constraint as Str|Int. (jnapiorkowski)
1681 - Changes to the way Union types are parsed to more correctly
1682 stringify their names. (jnapiorkowski)
1683 - When creating a parameterized type, we now use the new
1684 parameterize method. (jnapiorkowski)
1685 - Incoming type constraint strings are now normalized to remove
1686 all whitespace differences. (jnapiorkowski)
1687 - Changed the way we parse type constraint strings so that we now
1688 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1689 constraints. This lays the foundation for more flexible type
1690 constraint implementations.
1692 * Tests and docs for all the above. (jnapiorkowski)
1696 - Moose::Exporter will no longer remove a subroutine that the
1697 exporting package re-exports. Moose re-exports the
1698 Carp::confess function, among others. The reasoning is that we
1699 cannot know whether you have also explicitly imported those
1700 functions for your own use, so we err on the safe side and
1701 always keep them. (Dave Rolsky)
1702 - added tests for this (rafl)
1704 * Moose::Meta::Class
1705 - Changes to how we fix metaclass compatibility that are much
1706 too complicated to go into. The summary is that Moose is much
1707 less likely to complain about metaclass incompatibility
1708 now. In particular, if two metaclasses differ because
1709 Moose::Util::MetaRole was used on the two corresponding
1710 classes, then the difference in roles is reconciled for the
1711 subclass's metaclass. (Dave Rolsky)
1712 - Squashed an warning in _process_attribute (thepler)
1715 - throw exceptions (sooner) for invalid attribute names (thepler)
1716 - added tests for this (thepler)
1718 * Moose::Util::MetaRole
1719 - If you explicitly set a constructor or destructor class for a
1720 metaclass object, and then applied roles to the metaclass,
1721 that explicitly set class would be lost and replaced with the
1724 * Moose::Meta::Class
1725 * Moose::Meta::Attribute
1726 * Moose::Meta::Method
1729 * Moose::Error::Default
1730 * Moose::Error::Croak
1731 * Moose::Error::Confess
1732 - All instances of confess() changed to use overridable
1733 C<throw_error> method. This method ultimately calls a class
1734 constructor, and you can change the class being called. In
1735 addition, errors now pass more information than just a string.
1736 The default C<error_class> behaves like C<Carp::confess>, so
1737 the behavior is not visibly different for end users.
1739 0.57 Wed September 3, 2008
1741 - A new bit of doc intended to introduce folks familiar with
1742 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1744 * Moose::Unsweetened
1745 - Shows examples of two classes, each done first with and then
1746 without Moose. This makes a nice parallel to
1747 Moose::Intro. (Dave Rolsky)
1749 * Moose::Util::TypeConstraints
1750 - Fixed a bug in find_or_parse_type_constraint so that it
1751 accepts a Moose::Meta::TypeConstraint object as the parent
1752 type, not just a name (jnapiorkowski)
1753 - added tests (jnapiorkowski)
1756 - If Sub::Name was not present, unimporting failed to actually
1757 remove some sugar subs, causing test failures (Dave Rolsky)
1759 0.56 Mon September 1, 2008
1760 For those not following the series of dev releases, there are
1761 several major changes in this release of Moose.
1762 ! Moose::init_meta should now be called as a method. See the
1765 - Major performance improvements by nothingmuch.
1767 - New modules for extension writers, Moose::Exporter and
1768 Moose::Util::MetaRole by Dave Rolsky.
1770 - Lots of doc improvements and additions, especially in the
1773 - Various bug fixes.
1775 * Removed all references to the experimental-but-no-longer-needed
1776 Moose::Meta::Role::Application::ToMetaclassInstance.
1778 * Require Class::MOP 0.65.
1780 0.55_04 Sat August 30, 2008
1781 * Moose::Util::MetaRole
1782 * Moose::Cookbook::Extending::Recipe2
1783 - This simplifies the application of roles to any meta class, as
1784 well as the base object class. Reimplemented metaclass traits
1785 using this module. (Dave Rolsky)
1787 * Moose::Cookbook::Extending::Recipe1
1788 - This a new recipe, an overview of various ways to write Moose
1789 extensions (Dave Rolsky)
1791 * Moose::Cookbook::Extending::Recipe3
1792 * Moose::Cookbook::Extending::Recipe4
1793 - These used to be Extending::Recipe1 and Extending::Recipe2,
1796 0.55_03 Fri August 29, 2008
1797 * No changes from 0.55_02 except increasing the Class::MOP
1798 dependency to 0.64_07.
1800 0.55_02 Fri August 29, 2008
1801 * Makefile.PL and Moose.pm
1802 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1804 * Moose::Util::TypeConstraints
1805 - Fix warnings from find_type_constraint if the type is not
1808 * Moose::Meta::TypeConstraint
1809 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1810 return false if the type you specify cannot be found in the
1811 type registry, rather than throwing an unhelpful and
1812 coincidental exception. (t0m).
1813 - added docs & test for this (t0m)
1815 * Moose::Meta::TypeConstraint::Registry
1816 - add_type_constraint now throws an exception if a parameter is
1818 - added docs & test for this (t0m)
1820 * Moose::Cookbook::FAQ
1821 - Added a faq entry on the difference between "role" and "trait"
1825 - Fixed a bug that caused role composition to not see a required
1826 method when that method was provided by another role being
1827 composed at the same time. (Dave Rolsky)
1828 - test and bug finding (tokuhirom)
1830 0.55_01 Wed August 20, 2008
1832 !! Calling Moose::init_meta as a function is now !!
1833 !! deprecated. Please see the Moose.pm docs for details. !!
1835 * Moose::Meta::Method::Constructor
1836 - Fix inlined constructor so that values produced by default
1837 or builder methods are coerced as required. (t0m)
1838 - added test for this (t0m)
1840 * Moose::Meta::Attribute
1841 - A lazy attribute with a default or builder did not attempt to
1842 coerce the default value. The immutable code _did_
1844 - added test for this (t0m)
1847 - This is a new helper module for writing "Moose-alike"
1848 modules. This should make the lives of MooseX module authors
1849 much easier. (Dave Rolsky)
1852 * Moose::Cookbook::Meta::Recipe5
1853 - Implemented metaclass traits (and wrote a recipe for it):
1855 use Moose -traits => 'Foo'
1857 This should make writing small Moose extensions a little
1858 easier (Dave Rolsky)
1860 * Moose::Cookbook::Basics::Recipe1
1861 - Removed any examples of direct hashref access, and applied an
1862 editorial axe to reduce verbosity. (Dave Rolsky)
1864 * Moose::Cookbook::Basics::Recipe1
1865 - Also applied an editorial axe here. (Dave Rolsky)
1868 * Moose::Cookbook::Extending::Recipe1
1869 * Moose::Cookbook::Extending::Recipe2
1870 - Rewrote extending and embedding moose documentation and
1871 recipes to use Moose::Exporter (Dave Rolsky)
1875 - These two modules now warn when you load them from the main
1876 package "main" package, because we will not export sugar to
1877 main. Previously it just did nothing. (Dave Rolsky)
1880 - Now provide an init_meta method just like Moose.pm, and you
1881 can call this to provide an alternate role metaclass. (Dave
1882 Rolsky and nothingmuch)
1883 - get_method_map now respects the package cache flag (nothingmuch)
1886 - Two new methods - add_method and wrap_method_body
1890 - Optimizations including allowing constructors to accept hash
1891 refs, making many more classes immutable, and making
1892 constructors immutable. (nothingmuch)
1894 0.55 Sun August 3, 2008
1895 * Moose::Meta::Attribute
1896 - breaking down the way 'handles' methods are
1897 created so that the process can be more easily
1898 overridden by subclasses (stevan)
1900 * Moose::Meta::TypeConstraint
1901 - fixing what is passed into a ->message with
1902 the type constraints (RT #37569)
1903 - added tests for this (Charles Alderman)
1905 * Moose::Util::TypeConstraints
1906 - fix coerce to accept anon types like subtype can (mst)
1909 - reorganized the recipes into sections - Basics, Roles, Meta,
1910 Extending - and wrote abstracts for each section (Dave Rolsky)
1912 * Moose::Cookbook::Basics::Recipe10
1913 - A new recipe that demonstrates operator overloading
1914 in combination with Moose. (bluefeet)
1916 * Moose::Cookbook::Meta::Recipe1
1917 - an introduction to what meta is and why you'd want to make
1918 your own metaclass extensions (Dave Rolsky)
1920 * Moose::Cookbook::Meta::Recipe4
1921 - a very simple metaclass example (Dave Rolsky)
1923 * Moose::Cookbook::Extending::Recipe1
1924 - how to write a Moose-alike module to use your own object base
1927 * Moose::Cookbook::Extending::Recipe2
1928 - how to write modules with an API just like C<Moose.pm> (Dave
1932 - Tons of fixes, both syntactical and grammatical (Dave
1933 Rolsky, Paul Fenwick)
1935 0.54 Thurs. July 3, 2008
1936 ... this is not my day today ...
1938 * Moose::Meta::Attribute
1939 - fixed legal_options_for_inheritance such that
1940 clone_and_inherit options still works for
1941 Class::MOP::Attribute objects and therefore
1942 does not break MooseX::AttributeHelpers
1945 0.53 Thurs. July 3, 2008
1946 * Whoops, I guess I should run 'make manifest' before
1947 actually releasing the module. No actual changes
1948 in this release, except the fact that it includes
1949 the changes that I didn't include in the last
1952 0.52 Thurs. July 3, 2008
1954 - added "FEATURE REQUESTS" section to the Moose docs
1955 to properly direct people (stevan) (RT #34333)
1956 - making 'extends' croak if it is passed a Role since
1957 this is not ever something you want to do
1958 (fixed by stevan, found by obra)
1959 - added tests for this (stevan)
1962 - adding support for DOES (as in UNIVERSAL::DOES)
1964 - added test for this
1966 * Moose::Meta::Attribute
1967 - added legal_options_for_inheritance (wreis)
1968 - added tests for this (wreis)
1970 * Moose::Cookbook::Snacks::*
1971 - removed some of the unfinished snacks that should
1972 not have been released yet. Added some more examples
1973 to the 'Keywords' snack. (stevan)
1975 * Moose::Cookbook::Style
1976 - added general Moose "style guide" of sorts to the
1977 cookbook (nothingmuch) (RT #34335)
1980 - added more BUILDARGS tests (stevan)
1982 0.51 Thurs. Jun 26, 2008
1984 - add unimport so "no Moose::Role" actually does
1987 * Moose::Meta::Role::Application::ToRole
1988 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1989 order to provide its own implementation, that method still got
1990 added to the list of required methods for consumers of
1991 RoleB. Now an aliased method is only added to the list of
1992 required methods if the role doing the aliasing does not
1993 provide its own implementation. See Recipe 11 for an example
1994 of all this. (Dave Rolsky)
1995 - added tests for this
1997 * Moose::Meta::Method::Constructor
1998 - when a single argument that wasn't a hashref was provided to
1999 an immutabilized constructor, the error message was very
2000 unhelpful, as opposed to the non-immutable error. Reported by
2002 - added test for this (Dave Rolsky)
2004 * Moose::Meta::Attribute
2005 - added support for meta_attr->does("ShortAlias") (sartak)
2006 - added tests for this (sartak)
2007 - moved the bulk of the `handles` handling to the new
2008 install_delegation method (Stevan)
2011 - Added BUILDARGS, a new step in new()
2013 * Moose::Meta::Role::Application::RoleSummation
2014 - fix typos no one ever sees (sartak)
2016 * Moose::Util::TypeConstraints
2017 * Moose::Meta::TypeConstraint
2018 * Moose::Meta::TypeCoercion
2019 - Attempt to work around the ??{ } vs. threads issue
2021 - Some null_constraint optimizations
2023 0.50 Thurs. Jun 11, 2008
2024 - Fixed a version number issue by bumping all modules
2027 0.49 Thurs. Jun 11, 2008
2028 !! This version now approx. 20-25% !!
2029 !! faster with new Class::MOP 0.59 !!
2031 * Moose::Meta::Attribute
2032 - fixed how the is => (ro|rw) works with
2033 custom defined reader, writer and accessor
2035 - added docs for this (TODO).
2036 - added tests for this (Thanks to Penfold)
2037 - added the custom attribute alias for regular
2038 Moose attributes which is "Moose"
2039 - fix builder and default both being used
2044 Moose::Meta::Attribute
2046 Moose::Meta::Role::Composite
2047 Moose::Util::TypeConstraints
2048 - switched usage of reftype to ref because
2052 - changing add_package_symbol to use the new
2056 - fixed how DEMOLISHALL is called so that it
2057 can be overrided in subclasses (thanks to Sartak)
2058 - added test for this (thanks to Sartak)
2060 * Moose::Util::TypeConstraints
2061 - move the ClassName type check code to
2062 Class::MOP::is_class_loaded (thanks to Sartak)
2064 * Moose::Cookbook::Recipe11
2065 - add tests for this (thanks to tokuhirom)
2067 0.48 Thurs. May 29, 2008
2068 (early morning release engineering)--
2070 - fixing the version in Moose::Meta::Method::Destructor
2071 which was causing the indexer to choke
2073 0.47 Thurs. May 29, 2008
2074 (late night release engineering)--
2076 - fixing the version is META.yml, no functional
2077 changes in this release
2079 0.46 Wed. May 28, 2008
2080 !! This version now approx. 20-25% !!
2081 !! faster with new Class::MOP 0.57 !!
2083 * Moose::Meta::Class
2084 - some optimizations of the &initialize method
2085 since it is called so often by &meta
2087 * Moose::Meta::Class
2089 - now use the get_all_package_symbols from the
2090 updated Class::MOP, test suite is now 10 seconds
2093 * Moose::Meta::Method::Destructor
2094 - is_needed can now also be called as a class
2095 method for immutablization to check if the
2096 destructor object even needs to be created
2099 * Moose::Meta::Method::Destructor
2100 Moose::Meta::Method::Constructor
2101 - added more descriptive error message to help
2102 keep people from wasting time tracking an error
2103 that is easily fixed by upgrading.
2105 0.45 Saturday, May 24, 2008
2107 - Because of work in Class::MOP 0.57, all
2108 XS based functionality is now optional
2109 and a Pure Perl version is supplied
2110 - the CLASS_MOP_NO_XS environment variable
2111 can now be used to force non-XS versions
2113 - several of the packages have been tweaked
2114 to take care of this, mostly we added
2115 support for the package_name and name
2116 variables in all the Method metaclasses
2117 - before/around/after method modifiers now
2118 support regexp matching of names
2119 (thanks to Takatoshi Kitano)
2120 - tests added for this
2121 - NOTE: this only works for classes, it
2122 is currently not supported in roles,
2123 but, ... patches welcome
2124 - All usage of Carp::confess have been replaced
2125 by Carp::croak in the "keyword" functions since
2126 the stack trace is usually not helpful
2129 - All usage of Carp::confess have been replaced
2130 by Carp::croak in the "keyword" functions since
2131 the stack trace is usually not helpful
2132 - The 'has' keyword for roles now accepts the
2133 same array ref form that Moose.pm does
2134 (has [qw/foo bar/] => (is => 'rw', ...))
2135 - added test for this
2137 * Moose::Meta::Attribute
2138 - trigger on a ro-attribute is no longer an
2139 error, as it's useful to trigger off of the
2142 * Moose::Meta::Class
2143 - added same 'add_package_symbol' fix as in
2147 - does_role now handles non-Moose classes
2149 - added tests for this
2150 - added the 'add_method_modifier' function
2151 (thanks to Takatoshi Kitano)
2153 * Moose::Util::TypeConstraints
2154 - subtypes of parameterizable types now are
2155 themselves parameterizable types
2157 * Moose::Meta::Method::Constructor
2158 - fixed bug where trigger was not being
2159 called by the inlined immutable
2161 - added test for this (thanks to Caelum)
2163 * Moose::Meta::Role::Application::ToInstance
2164 - now uses the metaclass of the instance
2165 (if possible) to create the anon-class
2166 (thanks Jonathan Rockway)
2168 * Moose::Cookbook::Recipe22
2169 - added the meta-attribute trait recipe
2173 - fixed hash-ordering test bug that was
2174 causing occasional cpantester failures
2175 - renamed the t/000_recipe/*.t tests to be
2176 more descriptive (thanks to Sartak)
2178 0.44 Sat. May 10, 2008
2180 - made make_immutable warning cluck to
2181 show where the error is (thanks mst)
2184 - BUILDALL and DEMOLISHALL now call
2185 ->body when looping through the
2186 methods, to avoid the overloaded
2188 - fixed issue where DEMOLISHALL was
2189 eating the $@ values, and so not
2190 working correctly, it still kind of
2191 eats them, but so does vanilla perl
2192 - added tests for this
2194 * Moose::Cookbook::Recipe7
2195 - added new recipe for immutable
2196 functionality (thanks Dave Rolsky)
2198 * Moose::Cookbook::Recipe9
2199 - added new recipe for builder and
2200 lazy_build (thanks Dave Rolsky)
2202 * Moose::Cookbook::Recipe11
2203 - added new recipe for method aliasing
2204 and exclusion with Roles (thanks Dave Rolsky)
2207 - fixed Win32 test failure (thanks spicyjack)
2209 ~ removed Build.PL and Module::Build compat
2210 since Module::Install has done that.
2212 0.43 Wed. April, 30, 2008
2214 drink more coffee before
2215 doing release engineering
2217 - whoops, forgot to do the smolder tests,
2218 and we broke some of the custom meta-attr
2219 modules. This fixes that.
2221 0.42 Mon. April 28, 2008
2222 - some bad tests slipped by, nothing else
2223 changed in this release (cpantesters++)
2225 - upped the Class::MOP dependency to 0.55
2226 since we have tests which need the C3
2229 0.41 Mon. April 28, 2008
2230 ~~ numerous documentation updates ~~
2232 - Changed all usage of die to Carp::croak for better
2233 error reporting (initial patch by Tod Hagan)
2235 ** IMPORTANT NOTE **
2236 - the make_immutable keyword is now deprecated, don't
2237 use it in any new code and please fix your old code
2238 as well. There will be 2 releases, and then it will
2244 - refactored the way inner and super work to avoid
2245 any method/@ISA cache penalty (nothingmuch)
2247 * Moose::Meta::Class
2248 - fixing &new_object to make sure trigger gets the
2249 coerced value (spotted by Charles Alderman on the
2251 - added test for this
2253 * Moose::Meta::Method::Constructor
2254 - immutable classes which had non-lazy attributes were calling
2255 the default generating sub twice in the constructor. (bug
2256 found by Jesse Luehrs, fixed by Dave Rolsky)
2257 - added tests for this (Dave Rolsky)
2258 - fix typo in initialize_body method (nothingmuch)
2260 * Moose::Meta::Method::Destructor
2261 - fix typo in initialize_body method (nothingmuch)
2263 * Moose::Meta::Method::Overriden
2264 Moose::Meta::Method::Augmented
2265 - moved the logic for these into their own
2266 classes (nothingmuch)
2268 * Moose::Meta::Attribute
2269 - inherited attributes may now be extended without
2270 restriction on the type ('isa', 'does') (Sartak)
2271 - added tests for this (Sartak)
2272 - when an attribute property is malformed (such as lazy without
2273 a default), give the name of the attribute in the error
2275 - added the &applied_traits and &has_applied_traits methods
2276 to allow introspection of traits
2277 - added tests for this
2278 - moved 'trait' and 'metaclass' argument handling to here from
2280 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2281 '+foo' syntax) (nothingmuch)
2282 - added tests for this (t0m)
2285 - localize $@ inside DEMOLISHALL to avoid it
2286 eating $@ (found by Ernesto)
2287 - added test for this (thanks to Ernesto)
2289 * Moose::Util::TypeConstraints
2290 - &find_type_constraint now DWIMs when given an
2291 type constraint object or name (nothingmuch)
2292 - &find_or_create_type_constraint superseded with a number of more
2294 - find_or_create_{isa,does}_type_constraint
2295 - find_or_parse_type_constraint
2297 * Moose::Meta::TypeConstraint
2298 Moose::Meta::TypeConstraint::Class
2299 Moose::Meta::TypeConstraint::Role
2300 Moose::Meta::TypeConstraint::Enum
2301 Moose::Meta::TypeConstraint::Union
2302 Moose::Meta::TypeConstraint::Parameterized
2303 - added the &equals method for comparing two type
2304 constraints (nothingmuch)
2305 - added tests for this (nothingmuch)
2307 * Moose::Meta::TypeConstraint
2308 - add the &parents method, which is just an alias to &parent.
2309 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2311 * Moose::Meta::TypeConstraint::Class
2312 - added the class attribute for introspection purposes
2314 - added tests for this
2316 * Moose::Meta::TypeConstraint::Enum
2317 Moose::Meta::TypeConstraint::Role
2318 - broke these out into their own classes (nothingmuch)
2320 * Moose::Cookbook::Recipe*
2321 - fixed references to test file locations in the POD
2322 and updated up some text for new Moose features
2326 - Added &resolve_metaclass_alias, a helper function for finding an actual
2327 class for a short name (e.g. in the traits list)
2329 0.40 Fri. March 14, 2008
2330 - I hate Pod::Coverage
2332 0.39 Fri. March 14, 2008
2334 - documenting the use of '+name' with attributes
2335 that come from recently composed roles. It makes
2336 sense, people are using it, and so why not just
2337 officially support it.
2338 - fixing the 'extends' keyword so that it will not
2339 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2342 - added the perl -Moose=+Class::Name feature to allow
2343 monkeypatching of classes in one liners
2346 - fixing the 'apply_all_roles' keyword so that it will not
2347 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2349 * Moose::Meta::Class
2350 - added ->create method which now supports roles (thanks to jrockway)
2351 - added tests for this
2352 - added ->create_anon_class which now supports roles and caching of
2353 the results (thanks to jrockway)
2354 - added tests for this
2355 - made ->does_role a little more forgiving when it is
2356 checking a Class::MOP era metaclasses.
2358 * Moose::Meta::Role::Application::ToInstance
2359 - it is now possible to pass extra params to be used when
2360 a role is applied to an the instance (rebless_params)
2361 - added tests for this
2363 * Moose::Util::TypeConstraints
2364 - class_type now accepts an optional second argument for a
2365 custom message. POD anotated accordingly (groditi)
2366 - added tests for this
2367 - it is now possible to make anon-enums by passing 'enum' an
2368 ARRAY ref instead of the $name => @values. Everything else
2370 - added tests for this
2373 - making test for using '+name' on attributes consumed
2374 from a role, it works and makes sense too.
2376 * Moose::Meta::Attribute
2377 - fix handles so that it doesn't return nothing
2378 when the method cannot be found, not sure why
2379 it ever did this originally, this means we now
2380 have slightly better support for AUTOLOADed
2382 - added more delegation tests
2383 - adding ->does method to this so as to better
2384 support traits and their introspection.
2385 - added tests for this
2388 - localizing the Data::Dumper configurations so
2389 that it does not pollute others (RT #33509)
2390 - made ->does a little more forgiving when it is
2391 passed Class::MOP era metaclasses.
2393 0.38 Fri. Feb. 15, 2008
2394 * Moose::Meta::Attribute
2395 - fixed initializer to correctly do
2396 type checking and coercion in the
2398 - added tests for this
2401 - fixed some finicky tests (thanks to konobi)
2403 0.37 Thurs. Feb. 14, 2008
2405 - fixed some details in Moose::init_meta
2406 and its superclass handling (thanks thepler)
2407 - added tests for this (thanks thepler)
2408 - 'has' now dies if you don't pass in name
2410 - added the 'make_immutable' keyword as a shortcut
2413 * Moose::Meta::Class
2414 Moose::Meta::Method::Constructor
2415 Moose::Meta::Attribute
2416 - making (init_arg => undef) work here too
2417 (thanks to nothingmuch)
2419 * Moose::Meta::Attribute
2420 Moose::Meta::Method::Constructor
2421 Moose::Meta::Method::Accessor
2422 - make lazy attributes respect attr initializers (rjbs)
2423 - added tests for this
2425 * Moose::Util::TypeConstraints
2426 Moose::Util::TypeConstraints::OptimizedConstraints
2427 Moose::Meta::TypeConstraints
2428 Moose::Meta::Attribute
2429 Moose::Meta::Method::Constructor
2430 Moose::Meta::Method::Accessor
2431 - making type errors use the
2432 assigned message (thanks to Sartak)
2433 - added tests for this
2435 * Moose::Meta::Method::Destructor
2436 - making sure DESTROY gets inlined properly
2437 with successive DEMOLISH calls (thanks to manito)
2439 * Moose::Meta::Attribute
2440 Moose::Meta::Method::Accessor
2441 - fixed handling of undef with type constraints
2443 - added tests for this
2446 - added &get_all_init_args and &get_all_attribute_values
2447 (thanks to Sartak and nothingmuch)
2449 0.36 Sat. Jan. 26, 2008
2451 Moose::Meta::Attribute
2452 - role type tests now support when roles are
2453 applied to non-Moose classes (found by ash)
2454 - added tests for this (thanks to ash)
2455 - couple extra tests to boost code coverage
2457 * Moose::Meta::Method::Constructor
2458 - improved fix for handling Class::MOP attributes
2459 - added test for this
2461 * Moose::Meta::Class
2462 - handled the add_attribute($attribute_meta_object)
2464 - added test for this
2466 0.35 Tues. Jan. 22, 2008
2467 * Moose::Meta::Method::Constructor
2468 - fix to make sure even Class::MOP attributes
2469 are handled correctly (Thanks to Dave Rolsky)
2470 - added test for this (also Dave Rolsky)
2472 * Moose::Meta::Class
2473 - improved error message on _apply_all_roles,
2474 you should now use Moose::Util::apply_all_roles
2475 and you shouldnt have been using a _ prefixed
2476 method in the first place ;)
2478 0.34 Mon. Jan. 21, 2008
2479 ~~~ more misc. doc. fixes ~~~
2480 ~~ updated copyright dates ~~
2482 Moose is now a postmodern object system :)
2483 - (see the POD for details)
2485 * <<Role System Refactoring>>
2486 - this release contains a major reworking and
2487 cleanup of the role system
2488 - 100% backwards compat.
2489 - Role application now restructured into seperate
2490 classes based on type of applicants
2491 - Role summation (combining of more than one role)
2492 is much cleaner and anon-classes are no longer
2493 used in this process
2494 - new Composite role metaclass
2495 - runtime application of roles to instances
2496 is now more efficient and re-uses generated
2497 classes when applicable
2499 * <<New Role composition features>>
2500 - methods can now be excluded from a given role
2502 - methods can now be aliased to another name (and
2503 still retain the original as well)
2505 * Moose::Util::TypeConstraints::OptimizedConstraints
2506 - added this module (see above)
2508 * Moose::Meta::Class
2509 - fixed the &_process_attribute method to be called
2510 by &add_attribute, so that the API is now correct
2512 * Moose::Meta::Method::Accessor
2513 - fixed bug when passing a list of values to
2514 an accessor would get (incorrectly) ignored.
2515 Thanks to Sartak for finding this ;)
2516 - added tests for this (Sartak again)
2518 * Moose::Meta::Method::Accessor
2519 Moose::Meta::Method::Constructor
2520 Moose::Meta::Attribute
2521 Moose::Meta::TypeConstraint
2522 Moose::Meta::TypeCoercion
2523 - lots of cleanup of such things as:
2525 - type constraint handling
2526 - error handling/messages
2527 (thanks to nothingmuch)
2529 * Moose::Meta::TypeConstraint::Parameterizable
2530 - added this module to support the refactor
2531 in Moose::Meta::TypeConstraint::Parameterized
2533 * Moose::Meta::TypeConstraint::Parameterized
2534 - refactored how these types are handled so they
2535 are more generic and not confined to ArrayRef
2539 - shortened some file names for better VMS support (RT #32381)
2541 0.33 Fri. Dec. 14, 2007
2542 !! Moose now loads 2 x faster !!
2543 !! with new Class::MOP 0.49 !!
2545 ++ new oose.pm module to make command line
2546 Moose-ness easier (see POD docs for more)
2548 * Moose::Meta::Class
2550 - several tweaks to take advantage of the
2551 new method map caching in Class::MOP
2553 * Moose::Meta::TypeConstraint::Parameterized
2554 - allow subtypes of ArrayRef and HashRef to
2555 be used as a container (sartak)
2556 - added tests for this
2557 - basic support for coercion to ArrayRef and
2558 HashRef for containers (sartak)
2559 - added tests for this
2561 * Moose::Meta::TypeCoercion
2562 - coercions will now create subtypes as needed
2563 so you can now add coercions to parameterized
2564 types without having to explictly define them
2565 - added tests for this
2567 * Moose::Meta::Method::Accessor
2568 - allow subclasses to decide whether we need
2569 to copy the value into a new variable (sartak)
2571 0.32 Tues. Dec. 4, 2007
2572 * Moose::Util::TypeConstraints
2573 - fixing how subtype aliases of unions work
2574 they should inherit the parent's coercion
2575 - added tests for this
2576 - you can now define multiple coercions on
2577 a single type at different times instead of
2578 having to do it all in one place
2579 - added tests for this
2581 * Moose::Meta::TypeConstraint
2582 - there is now a default constraint of sub { 1 }
2583 instead of Moose::Util::TypeConstraints setting
2586 * Moose::Meta::TypeCoercion
2587 * Moose::Meta::TypeCoercion::Union
2588 - added the &has_coercion_for_type and
2589 &add_type_coercions methods to support the
2590 new features above (although you cannot add
2591 more type coercions for Union types)
2593 0.31 Mon. Nov. 26, 2007
2594 * Moose::Meta::Attribute
2595 - made the +attr syntax handle extending types with
2596 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2597 now works if the original foo is an ArrayRef.
2598 - added tests for this.
2599 - delegation now works even if the attribute does not
2600 have a reader method using the get_read_method_ref
2601 method from Class::MOP::Attribute.
2602 - added tests for this
2603 - added docs for this
2605 * Moose::Util::TypeConstraints
2606 - passing no "additional attribute info" to
2607 &find_or_create_type_constraint will no longer
2608 attempt to create an __ANON__ type for you,
2609 instead it will just return undef.
2610 - added docs for this
2612 0.30 Fri. Nov. 23, 2007
2613 * Moose::Meta::Method::Constructor
2614 -builder related bug in inlined constructor. (groditi)
2616 * Moose::Meta::Method::Accessor
2617 - genereate unnecessary calls to predicates and refactor
2618 code generation for runtime speed (groditi)
2620 * Moose::Util::TypeConstraints
2621 - fix ClassName constraint to introspect symbol table (mst)
2622 - added more tests for this (mst)
2623 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2624 with work correctly.
2625 - added tests for this
2628 - adding the link to Recipie 11 (written by Sartak)
2629 - adding test for SYNOPSIS code
2632 - New tests for builder bug. Upon instantiation, if an
2633 attribute had a builder, no value and was not lazy the
2634 builder default was not getting run, oops. (groditi)
2636 0.29 Tues. Nov. 13, 2007
2637 * Moose::Meta::Attribute
2638 - Fix error message on missing builder method (groditi)
2640 * Moose::Meta::Method::Accessor
2641 - Fix error message on missing builder method (groditi)
2644 - Add test to check for the correct error message when
2645 builder method is missing (groditi)
2647 0.28 Tues. Nov. 13, 2007
2648 - 0.27 packaged incorrectly (groditi)
2650 0.27 Tues. Nov. 13, 2007
2651 * Moose::Meta::Attribute
2652 - Added support for the new builder option (groditi)
2653 - Added support for lazy_build option (groditi)
2654 - Changed slot initialization for predicate changes (groditi)
2656 * Moose::Meta::Method::Accessor
2657 - Added support for lazy_build option (groditi)
2658 - Fix inline methods to work with corrected predicate
2661 * Moose::Meta::Method::Constructor
2662 - Added support for lazy_build option (groditi)
2665 - tests for builder and lazy_build (groditi)
2667 * fixing some misc. bits in the docs that
2668 got mentioned on CPAN Forum & perlmonks
2671 - fixed how required methods are handled
2672 when they encounter overriden or modified
2673 methods from a class (thanks to confound).
2674 - added tests for this
2676 * Moose::Util::TypeConstraint
2677 - fixed the type notation parser so that
2678 the | always creates a union and so is
2679 no longer a valid type char (thanks to
2680 konobi, mugwump and #moose for working
2682 - added more tests for this
2684 0.26 Thurs. Sept. 27, 2007
2687 * Parameterized Types
2688 We now support parameterized collection types, such as:
2689 ArrayRef[Int] # array or integers
2690 HashRef[Object] # a hash with object values
2691 They can also be nested:
2692 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2693 And work with the type unions as well:
2694 ArrayRef[Int | Str] # array of integers of strings
2696 * Better Framework Extendability
2697 Moose.pm is now "extendable" such that it is now much
2698 easier to extend the framework and add your own keywords
2699 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2700 section of the Moose.pm docs.
2703 In an effort to begin documenting some of the various
2704 details of Moose as well as some common idioms, we have
2705 created Moose::Cookbook::Snacks as a place to find
2706 small (easily digestable) nuggets of Moose code.
2709 ~ Several doc updates/cleanup thanks to castaway ~
2711 - converted build system to use Module::Install instead of
2712 Module::Build (thanks to jrockway)
2715 - added all the meta classes to the immutable list and
2716 set it to inline the accessors
2717 - fix import to allow Sub::Exporter like { into => }
2718 and { into_level => } (perigrin)
2719 - exposed and documented init_meta() to allow better
2720 embedding and extending of Moose (perigrin)
2723 - complete re-organization of the test suite
2724 - added some new tests as well
2725 - finally re-enabled the Moose::POOP test since
2726 the new version of DBM::Deep now works again
2729 * Moose::Meta::Class
2730 - fixed very odd and very nasty recursion bug with
2732 - added tests for this (eilara)
2734 * Moose::Meta::Attribute
2735 Moose::Meta::Method::Constructor
2736 Moose::Meta::Method::Accessor
2737 - fixed issue with overload::Overloaded getting called
2738 on non-blessed items. (RT #29269)
2739 - added tests for this
2741 * Moose::Meta::Method::Accessor
2742 - fixed issue with generated accessor code making
2743 assumptions about hash based classes (thanks to dexter)
2745 * Moose::Coookbook::Snacks
2746 - these are bits of documentation, not quite as big as
2747 Recipes but which have no clear place in the module docs.
2748 So they are Snacks! (horray for castaway++)
2750 * Moose::Cookbook::Recipe4
2751 - updated it to use the new ArrayRef[MyType] construct
2752 - updated the accompanying test as well
2754 +++ Major Refactor of the Type Constraint system +++
2755 +++ with new features added as well +++
2757 * Moose::Util::TypeConstraint
2758 - no longer uses package variable to keep track of
2759 the type constraints, now uses the an instance of
2760 Moose::Meta::TypeConstraint::Registry to do it
2761 - added more sophisticated type notation parsing
2763 - added tests for this
2765 * Moose::Meta::TypeConstraint
2766 - some minor adjustments to make subclassing easier
2767 - added the package_defined_in attribute so that we
2768 can track where the type constraints are created
2770 * Moose::Meta::TypeConstraint::Union
2771 - this is now been refactored to be a subclass of
2772 Moose::Meta::TypeConstraint
2774 * Moose::Meta::TypeCoercion::Union
2775 - this has been added to service the newly refactored
2776 Moose::Meta::TypeConstraint::Union and is itself
2777 a subclass of Moose::Meta::TypeCoercion
2779 * Moose::Meta::TypeConstraint::Parameterized
2780 - added this module (taken from MooseX::AttributeHelpers)
2781 to help construct nested collection types
2782 - added tests for this
2784 * Moose::Meta::TypeConstraint::Registry
2785 - added this class to keep track of type constraints
2787 0.25 Mon. Aug. 13, 2007
2789 - Documentation update to reference Moose::Util::TypeConstraints
2790 under 'isa' in 'has' for how to define a new type
2791 (thanks to shlomif).
2793 * Moose::Meta::Attribute
2794 - required attributes now will no longer accept undef
2795 from the constructor, even if there is a default and lazy
2796 - added tests for this
2797 - default subroutines must return a value which passes the
2799 - added tests for this
2801 * Moose::Meta::Attribute
2802 * Moose::Meta::Method::Constructor
2803 * Moose::Meta::Method::Accessor
2804 - type-constraint tests now handle overloaded objects correctly
2805 in the error message
2806 - added tests for this (thanks to EvanCarroll)
2808 * Moose::Meta::TypeConstraint::Union
2809 - added (has_)hand_optimized_constraint to this class so that
2810 it behaves as the regular Moose::Meta::TypeConstraint does.
2813 - large refactoring of this code
2814 - added several more tests
2815 - tests for subtle conflict resolition issues
2816 added, but not currently running
2819 * Moose::Cookbook::Recipe7
2820 - added new recipe for augment/inner functionality
2822 - added test for this
2825 - a formal definition of roles (still in progress)
2828 - utilities for easier working with Moose classes
2829 - added tests for these
2832 - This contains Moose specific test functions
2833 - added tests for these
2835 0.24 Tues. July 3, 2007
2836 ~ Some doc updates/cleanup ~
2838 * Moose::Meta::Attribute
2839 - added support for roles to be given as parameters
2840 to the 'handles' option.
2841 - added tests and docs for this
2842 - the has '+foo' attribute form now accepts changes to
2843 the lazy option, and the addition of a handles option
2844 (but not changing the handles option)
2845 - added tests and docs for this
2848 - required methods are now fetched using find_method_by_name
2849 so that required methods can come from superclasses
2850 - adjusted tests for this
2852 0.23 Mon. June 18, 2007
2853 * Moose::Meta::Method::Constructor
2854 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2855 * Moose::Meta::Class
2856 - Modify make_immutable to work with the new Class::MOP immutable
2857 mechanism + POD + very basic test (groditi)
2858 * Moose::Meta::Attribute
2859 - Fix handles to use goto() so that caller() comes out properly on
2860 the other side (perigrin)
2862 0.22 Thurs. May 31, 2007
2863 * Moose::Util::TypeConstraints
2864 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2865 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2866 prototypes for functions
2867 - added the ClassName type constraint, this checks for strings
2868 which will respond true to ->isa(UNIVERSAL).
2869 - added tests and docs for this
2870 - subtyping just in name now works correctly by making the
2871 default for where be { 1 }
2872 - added test for this
2874 * Moose::Meta::Method::Accessor
2875 - coerce and lazy now work together correctly, thanks to
2876 merlyn for finding this bug
2877 - tests added for this
2878 - fix reader presedence bug in Moose::Meta::Attribute + tests
2881 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2882 a HASH-ref and missed. This produces better error messages then
2883 having it die cause undef is not a HASH.
2884 - added tests for this
2886 0.21 Thursday, May 2nd, 2007
2888 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2889 - modified unimport to remove super and inner along with the rest
2890 - altered unimport tests to handle this
2893 - altered super export to populate SUPER_SLOT
2895 * Moose::Meta::Class
2896 - altered augment and override modifier application to use *_SLOT
2897 - modified tests for these to unimport one test class each to test
2900 - fixed issue where custom attribute metaclasses
2901 where not handled correctly in roles
2902 - added tests for this
2904 * Moose::Meta::Class
2905 - fixed issue where extending metaclasses with
2906 roles would blow up. Thanks to Aankhen`` for
2907 finding this insidious error, and it's solution.
2909 ~~ lots of spelling and grammer fixes in the docs,
2910 many many thanks to rlb3 and Aankhen for these :)
2912 0.20 Friday, April 6th, 2007
2913 >> I messed up the SKIP logic in one test
2914 so this release is just to fix that.
2917 - 'has' now also accepts an ARRAY ref
2918 to create multiple attrs (see docs)
2919 (thanks to konobi for this)
2920 - added tests and docs
2922 0.19 Thurs. April 5th, 2007
2923 ~~ More documentation updates ~~
2925 * Moose::Util::TypeConstraints
2926 - 'type' now supports messages as well
2927 thanks to phaylon for finding this
2928 - added tests for this
2929 - added &list_all_type_constraints and
2930 &list_all_builtin_type_constraints
2931 functions to facilitate introspection.
2933 * Moose::Meta::Attribute
2934 - fixed regexp 'handles' declarations
2935 to build the list of delegated methods
2936 correctly (and not override important
2937 things like &new) thanks to ashleyb
2939 - added tests and docs for this
2940 - added the 'documentation' attributes
2941 so that you can actually document your
2942 attributes and inspect them through the
2944 - added tests and docs for this
2946 * Moose::Meta::Class
2947 - when loading custom attribute metaclasses
2948 it will first look in for the class in the
2949 Moose::Meta::Attribute::Custom::$name, and
2950 then default to just loading $name.
2951 - added tests and docs for this
2953 * Moose::Meta::TypeConstraint
2954 - type constraints now stringify to their names.
2955 - added test for this
2958 - added tests to assure we work with Module::Refresh
2959 - added stricter test skip logic in the Moose POOP
2960 test, ask Rob Kinyon why.
2961 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2963 0.18 Sat. March 10, 2007
2964 ~~ Many, many documentation updates ~~
2967 - We now use Class::MOP::load_class to
2969 - added tests to show types and subtypes
2970 working with Declare::Constraints::Simple
2971 and Test::Deep as constraint engines.
2974 !! You must have Class::MOP 0.37_001 !!
2975 !! for this developer release to work !!
2977 This release was primarily adding the immutable
2978 feature to Moose. An immutable class is one which
2979 you promise not to alter. When you set the class
2980 as immutable it will perform various bits of
2981 memoization and inline certain part of the code
2982 (constructors, destructors and accessors). This
2983 minimizes (and in some cases totally eliminates)
2984 one of Moose's biggest performance hits. This
2985 feature is not on by default, and is 100% optional.
2986 It has several configurable bits as well, so you
2987 can pick and choose to your specific needs.
2989 The changes involved in this were fairly wide and
2990 highly specific, but 100% backwards compatible, so
2991 I am not going to enumerate them here. If you are
2992 truely interested in what was changed, please do
2995 0.17 Tues. Nov. 14, 2006
2996 * Moose::Meta::Method::Accessor
2997 - bugfix for read-only accessors which
2998 are have a type constraint and lazy.
2999 Thanks to chansen for finding it.
3001 0.16 Tues. Nov. 14, 2006
3003 There are some speed improvements in this release,
3004 but they are only the begining, so stay tuned.
3007 - BUILDALL and DEMOLISHALL no longer get
3008 called unless they actually need to be.
3009 This gave us a signifigant speed boost
3010 for the cases when there is no BUILD or
3011 DEMOLISH method present.
3013 * Moose::Util::TypeConstraints
3014 * Moose::Meta::TypeConstraint
3015 - added an 'optimize_as' option to the
3016 type constraint, which allows for a
3017 hand optimized version of the type
3018 constraint to be used when possible.
3019 - Any internally created type constraints
3020 now provide an optimized version as well.
3022 0.15 Sun. Nov. 5, 2006
3024 This version of Moose *must* have Class::MOP 0.36 in order
3025 to work correctly. A number of small internal tweaks have
3026 been made in order to be compatible with that release.
3028 * Moose::Util::TypeConstraints
3029 - added &unimport so that you can clean out
3030 your class namespace of these exported
3033 * Moose::Meta::Class
3034 - fixed minor issue which occasionally
3035 comes up during global destruction
3037 - moved Moose::Meta::Method::Overriden into
3041 - moved Moose::Meta::Role::Method into
3044 * Moose::Meta::Attribute
3045 - changed how we do type checks so that
3046 we reduce the overall cost, but still
3049 - moved accessor generation methods to
3050 Moose::Meta::Method::Accessor to
3051 conform to the API changes from
3054 * Moose::Meta::TypeConstraint
3055 - changed how constraints are compiled
3056 so that we do less recursion and more
3057 iteration. This makes the type check
3059 - moved Moose::Meta::TypeConstraint::Union
3062 * Moose::Meta::Method::Accessor
3063 - created this from methods formerly found in
3064 Moose::Meta::Attribute
3066 * Moose::Meta::Role::Method
3067 - moved this from Moose::Meta::Role
3069 * Moose::Meta::Method::Overriden
3070 - moved this from Moose::Meta::Class
3072 * Moose::Meta::TypeConstraint::Union
3073 - moved this from Moose::Meta::TypeConstraint
3075 0.14 Mon. Oct. 9, 2006
3077 * Moose::Meta::Attribute
3078 - fixed lazy attributes which were not getting
3079 checked with the type constraint (thanks ashley)
3080 - added tests for this
3081 - removed the over-enthusiastic DWIMery of the
3082 automatic ArrayRef and HashRef defaults, it
3083 broke predicates in an ugly way.
3084 - removed tests for this
3086 0.13 Sat. Sept. 30, 2006
3088 This version of Moose *must* have Class::MOP 0.35 in order
3089 to work correctly. A number of small internal tweaks have
3090 been made in order to be compatible with that release.
3093 - Removed the use of UNIVERSAL::require to be a better
3094 symbol table citizen and remove a dependency
3095 (thanks Adam Kennedy)
3097 **~~ removed experimental & undocumented feature ~~**
3098 - commented out the 'method' and 'self' keywords, see the
3099 comments for more info.
3102 - added a FAQ and WTF files to document frequently
3103 asked questions and common problems
3105 * Moose::Util::TypeConstraints
3106 - added GlobRef and FileHandle type constraint
3107 - added tests for this
3109 * Moose::Meta::Attribute
3110 - if your attribute 'isa' ArrayRef of HashRef, and you have
3111 not explicitly set a default, then make the default DWIM.
3112 This will also work for subtypes of ArrayRef and HashRef
3114 - you can now auto-deref subtypes of ArrayRef or HashRef too.
3115 - new test added for this (thanks to ashley)
3118 - added basic support for runtime role composition
3119 but this is still *highly experimental*, so feedback
3120 is much appreciated :)
3121 - added tests for this
3123 * Moose::Meta::TypeConstraint
3124 - the type constraint now handles the coercion process
3125 through delegation, this is to support the coercion
3128 * Moose::Meta::TypeConstraint::Union
3129 - it is now possible for coercions to be performed
3131 - added tests for this (thanks to konobi)
3133 * Moose::Meta::TypeCoercion
3134 - properly capturing error when type constraint
3138 - Scalar::Util 1.18 is bad on Win32, so temporarily
3139 only require version 1.17 for Win32 and cygwin.
3140 (thanks Adam Kennedy)
3142 0.12 Sat. Sept. 1, 2006
3144 - Recipe5 (subtypes & coercion) has been written
3147 - fixed "bad meta" error message to be more descriptive
3148 - fixed &unimport to not remove the &inner and &super
3149 keywords because we need to localize them.
3150 - fixed number of spelling/grammer issues, thanks Theory :)
3152 **~~ experimental & undocumented feature ~~**
3153 - added the method and self keywords, they are basically
3154 just sugar, and they may not stay around.
3157 - added &dump method to easily Data::Dumper
3160 * Moose::Meta::TypeConstraint
3161 - added the &is_a_type_of method to check both the current
3162 and the subtype of a method (similar to &isa with classes)
3165 - this is now a subclass of Class::MOP::Module, and no longer
3166 creates the _role_meta ugliness of before.
3167 - fixed tests to reflect this change
3169 0.11 Wed. July 12, 2006
3171 - added an &unimport method to remove all the keywords
3172 that Moose will import, simply add 'no Moose' to the
3173 bottom of your class file.
3176 - fixed some test failures caused by a forgotten test
3179 0.10 Thurs. July 6, 2006
3181 - improved error message when loading modules so
3182 it is less confusing when you load a role.
3183 - added &calculate_all_roles method to
3184 Moose::Meta::Class and Moose::Meta::Role
3187 This module has been tested against Class::MOP 0.30
3188 but it does not yet utilize the optimizations
3189 it makes available. Stay tuned for that ;)
3191 0.09_03 Fri. June 23, 2006
3192 ++ DEVELOPER RELEASE ++
3194 - 'use strict' and 'use warnings' are no longer
3195 needed in Moose classes, Moose itself will
3196 turn them on for you.
3197 - added tests for this
3198 - moved code from exported subs to private methods
3199 in Moose::Meta::Class
3202 - as with Moose, strict and warnings are
3203 automatically turned on for you.
3204 - added tests for this
3207 - now handles an edge case for override errors
3208 - added tests for this
3209 - added some more edge case tests
3211 0.09_02 Tues. May 16, 2006
3212 ++ DEVELOPER RELEASE ++
3214 - added prototypes to the exported subs
3218 - added prototypes to the exported subs
3221 * Moose::Util::TypeConstraints
3222 - cleaned up prototypes for the subs
3225 0.09_01 Fri. May 12, 2006
3226 ++ DEVELOPER RELEASE ++
3227 - This release works in combination with
3228 Class::MOP 0.29_01, it is a developer
3229 release because it uses the a new
3230 instance sub-protocol and a fairly
3231 complete Role implementation. It has
3232 not yet been optimized, so it slower
3233 the the previous CPAN version. This
3234 release also lacks good updated docs,
3235 the official release will have updated docs.
3238 - refactored the keyword exports
3239 - 'with' now checks Role validaity and
3240 accepts more than one Role at a time
3241 - 'extends' makes metaclass adjustments as
3242 needed to ensure metaclass compatibility
3245 - refactored the keyword exports
3246 - 'with' now checks Role validaity and
3247 accepts more than one Role at a time
3249 * Moose::Util::TypeConstraints
3250 - added the 'enum' keyword for simple
3251 string enumerations which can be used as
3253 - see example of usage in t/202_example.t
3256 - more careful checking of params to new()
3259 - much work done on the role composition
3260 - many new tests for conflict detection
3261 and composition edge cases
3262 - not enough documentation, I suggest
3263 looking at the tests
3265 * Moose::Meta::Instance
3266 - added new Instance metaclass to support
3267 the new Class::MOP instance protocol
3269 * Moose::Meta::Class
3270 - some small changes to support the new
3272 - some small additions to support Roles
3274 * Moose::Meta::Attribute
3275 - some improvements to the accessor generation code
3277 - some small changes to support the new
3279 - (still somewhat) experimental delegation support
3280 with the 'handles' option
3281 - added several tests for this
3282 - no docs for this yet
3284 0.05 Thurs. April 27, 2006
3286 - keywords are now exported with Sub::Exporter
3287 thanks to chansen for this commit
3288 - has keyword now takes a 'metaclass' option
3289 to support custom attribute meta-classes
3290 on a per-attribute basis
3291 - added tests for this
3292 - the 'has' keyword not accepts inherited slot
3293 specifications (has '+foo'). This is still an
3294 experimental feature and probably not finished
3295 see t/038_attribute_inherited_slot_specs.t for
3296 more details, or ask about it on #moose
3297 - added tests for this
3300 - keywords are now exported with Sub::Exporter
3302 * Moose::Utils::TypeConstraints
3303 - reorganized the type constraint hierarchy, thanks
3304 to nothingmuch and chansen for his help and advice
3306 - added some tests for this
3307 - keywords are now exported with Sub::Exporter
3308 thanks to chansen for this commit
3310 * Moose::Meta::Class
3311 - due to changes in Class::MOP, we had to change
3312 construct_instance (for the better)
3314 * Moose::Meta::Attribute
3315 - due to changes in Class::MOP, we had to add the
3316 initialize_instance_slot method (it's a good thing)
3318 * Moose::Meta::TypeConstraint
3319 - added type constraint unions
3320 - added tests for this
3321 - added the is_subtype_of predicate method
3322 - added tests for this
3324 0.04 Sun. April 16th, 2006
3326 - Roles can now consume other roles
3327 - added tests for this
3328 - Roles can specify required methods now with
3329 the requires() keyword
3330 - added tests for this
3333 - ripped out much of it's guts ,.. much cleaner now
3334 - added required methods and correct handling of
3335 them in apply() for both classes and roles
3336 - added tests for this
3337 - no longer adds a does() method to consuming classes
3338 it relys on the one in Moose::Object
3339 - added roles attribute and some methods to support
3340 roles consuming roles
3342 * Moose::Meta::Attribute
3343 - added support for triggers on attributes
3344 - added tests for this
3345 - added support for does option on an attribute
3346 - added tests for this
3348 * Moose::Meta::Class
3349 - added support for attribute triggers in the
3351 - added tests for this
3354 - Moose no longer creates a subtype for your class
3355 if a subtype of the same name already exists, this
3356 should DWIM in 99.9999% of all cases
3358 * Moose::Util::TypeConstraints
3359 - fixed bug where incorrect subtype conflicts were
3361 - added test for this
3364 - this class can now be extended with 'use base' if
3365 you need it, it properly loads the metaclass class now
3366 - added test for this
3368 0.03_02 Wed. April 12, 2006
3370 - you must now explictly use Moose::Util::TypeConstraints
3371 it no longer gets exported for you automatically
3374 - new() now accepts hash-refs as well as key/value lists
3375 - added does() method to check for Roles
3376 - added tests for this
3378 * Moose::Meta::Class
3379 - added roles attribute along with the add_role() and
3381 - added tests for this
3384 - now adds a does() method to consuming classes
3385 which tests the class's hierarchy for roles
3386 - added tests for this
3388 0.03_01 Mon. April 10, 2006
3390 - added new Role recipe (no content yet, only code)
3393 - added 'with' keyword for Role support
3394 - added test and docs for this
3395 - fixed subtype quoting bug
3396 - added test for this
3400 - added test and docs
3402 * Moose::Util::TypeConstraints
3403 - added the message keyword to add custom
3404 error messages to type constraints
3407 - the meta role to support Moose::Role
3408 - added tests and docs
3410 * Moose::Meta::Class
3411 - moved a number of things from Moose.pm
3412 to here, they should have been here
3415 * Moose::Meta::Attribute
3416 - moved the attribute option macros here
3417 instead of putting them in Moose.pm
3419 * Moose::Meta::TypeConstraint
3420 - added the message attributes and the
3422 - added tests and docs for this
3424 0.03 Thurs. March 30, 2006
3426 - added the Moose::Cookbook with 5 recipes,
3427 describing all the stuff Moose can do.
3430 - fixed an issue with &extends super class loading
3431 it now captures errors and deals with inline
3432 packages correctly (bug found by mst, solution
3434 - added super/override & inner/augment features
3435 - added tests and docs for these
3438 - BUILDALL now takes a reference of the %params
3439 that are passed to &new, and passes that to
3442 * Moose::Util::TypeConstraints
3443 - Type constraints now survive runtime reloading
3444 - added test for this
3446 * Moose::Meta::Class
3447 - fixed the way attribute defaults are handled
3448 during instance construction (bug found by chansen)
3450 * Moose::Meta::Attribute
3451 - read-only attributes now actually enforce their
3452 read-only-ness (this corrected in Class::MOP as
3455 0.02 Tues. March 21, 2006
3457 - many more tests, fixing some bugs and
3459 - &extends now loads the base module with
3461 - added UNIVERSAL::require to the
3464 - each new Moose class will also create
3465 and register a subtype of Object which
3466 correspond to the new Moose class.
3467 - the 'isa' option in &has now only
3468 accepts strings, and will DWIM in
3471 * Moose::Util::TypeConstraints
3472 - added type coercion features
3473 - added tests for this
3474 - added support for this in attributes
3475 and instance construction
3477 - type construction no longer creates a
3478 function, it registers the type instead.
3479 - added several functions to get the
3483 - BUILDALL and DEMOLISHALL were broken
3484 because of a mis-named hash key, Whoops :)
3486 * Moose::Meta::Attribute
3487 - adding support for coercion in the
3488 autogenerated accessors
3490 * Moose::Meta::Class
3491 - adding support for coercion in the
3492 instance construction
3494 * Moose::Meta::TypeConstraint
3495 * Moose::Meta::TypeCoercion
3496 - type constraints and coercions are now
3497 full fledges meta-objects
3499 0.01 Wed. March 15, 2006
3500 - Moooooooooooooooooose!!!