1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Type constraint objects now have an assert_coerce method which will either
9 return a valid value or throw an error. (rjbs)
13 * The native Array and Hash delegation methods now coerce individual new
14 members, if the _member type_ has a coercion. In other words, if the array
15 reference is defined as an ArrayRef[DateTime], and you've defined a
16 coercion from Int to DateTime, then pushing an integer via a delegation
17 method will coerce the integer to a DateTime object. Reported by Karen
18 Etheridge. RT #62351. (Dave Rolsky)
22 * The Moose test suite now uses Test::Fatal instead of
23 Test::Exception. (rjbs)
25 1.17 Tue, Oct 19, 2010
29 * Make native delegation inlining work with instance metaclasses where slot
30 access is an do {} block, like Kioku. This fixes the use of native
31 delegations together with Kioku. (Scott, doy)
33 1.16 Mon, Oct 18, 2010
37 * Almost every native delegation method which changes the attribute value
38 now has an explicitly documented return value. In general, this return
39 value matches what Perl would return for the same operation. (Dave Rolsky)
41 * Lots of work on native delegation documentation, including documenting
42 what arguments each native delegation method allows or requires. (Dave
45 * Passing an odd number of args to ->new() now gives a more useful warning
46 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
49 * Allow disabling stack traces by setting an environment variable. See
50 Moose::Error::Default for details. This feature is considered
51 experimental, and may change in a future release. (Marcus Ramberg)
53 * The deprecation warning for using alias and excludes without a leading
54 dash now tells you the role being applied and what it was being applied
59 * A number of native trait methods which expected strings as arguments did
60 not allow the empty string. This included Array->join, String->match,
61 String->replace, and String->substr. Reported by Whitney Jackson. RT
64 * 'no Moose' no longer inadvertently removes imports it didn't create
65 itself. RT #60013. (Florian Ragwitz, doy)
67 * Roles now support passing an array reference of method names to method
68 modifier sugar functions. (doy)
70 * Native traits no longer use optimized inlining routines if the instance
71 requests it (in particular, if inline_get_slot_value doesn't return
72 something that can be assigned to). This should fix issues with
75 * We now ignore all Class::MOP and Moose classes when determining what
76 package called a deprecated feature. This should make the deprecation
77 warnings saner, and make it possible to turn them off more easily. (Dave
80 * The deprecated "default is" warning no longer happens if the attribute has
81 any accessor method defined (accessor, reader, writer). Also, this warning
82 only happens when a method that was generated because of the "default is"
83 gets called, rather than when the attribute is defined. (Dave Rolsky)
85 * The "default default" code for some native delegations no longer issues a
86 deprecation warning when the attribute is required or has a builder. (Dave
89 * Setting a "default default" caused a fatal error if you used the builder
90 or lazy_build options for the attribute. Reported by Kent Fredric. RT
97 * Major changes to Native Traits, most of which make them act more like
98 "normal" attributes. This should be mostly compatible with existing code,
99 but see Moose::Manual::Delta for details.
101 * A few native traits (String, Counter, Bool) provide default values of "is"
102 and "default" when you created an attribute. Allowing them to provide
103 these values is now deprecated. Supply the value yourself when creating
106 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
107 generate non-global aliases for your traits (and allow your users to
108 rename the aliases, etc). (doy)
110 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
111 determine which name to install the 'meta' name under. Passing 'undef'
112 to this option will suppress generation of the meta method entirely. (doy)
114 * Moose now warns if it overwrites an existing method named "meta" in your
115 class when you "use Moose". (doy)
119 * Native Trait delegations are now all generated as inline code. This should
120 be much faster than the previous method of delegation. In the best case,
121 native trait methods will be very highly optimized.
123 * Reinitializing a metaclass no longer removes the existing method and
124 attribute objects (it instead fixes them so they are correct for the
125 reinitialized metaclass). This should make the order of loading many
126 MooseX modules less of an issue. (doy)
128 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
132 * If an attribute was weak, setting it to a non-ref value after the object
133 was constructed caused an error. Now we only call weaken when the new
134 value is a reference.
136 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
137 based on a patch from Andreas Koenig.
139 1.14 Tue, Sep 21, 2010
143 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
144 a weird error when defining the same union type twice, but only when using
145 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
147 1.13 Mon, Sep 13, 2010
151 * The deprecation warnings for alias and excludes are back, use -alias and
152 -excludes instead. (Dave Rolsky)
156 * When composing one role into another and there is an attribute conflict,
157 the error message now includes the attribute name. Reported by Sam
158 Graham. RT #59985. (Dave Rolsky)
160 * When a class is made immutable, the does_role method is overridden with a
161 much faster version that simply looks role names up in a hash. Code which
162 uses lots of role-based type constraints should be faster. (Dave Rolsky)
164 1.12 Sat, Aug 28, 2010
168 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
170 1.11 Fri, Aug 27, 2010
174 * An attribute in a subclass can now override the value of "is". (doy)
176 * The deprecation warnings for alias and excludes have been turned back off
177 for this release, to give other module authors a chance to tweak their
182 * mro::get_linear_isa was being called as a function rather than a method,
183 which caused problems with Perl 5.8.x. (t0m)
185 * Union types always created a type constraint, even if their constituent
186 constraints did not have any coercions. This bogus coercion always
187 returned undef, which meant that a union which included Undef as a member
188 always coerced bad values to undef. Reported by Eric Brine. RT
189 #58411. (Dave Rolsky)
191 * Union types with coercions would always fall back to coercing the value to
192 undef (unintentionally). Now if all the coercions for a union type fail,
193 the value returned by the coercion is the original value that we attempted
194 to coerce. (Dave Rolsky).
196 1.10 Sun, Aug 22, 2010
200 * The long-deprecated alias and excludes options for role applications now
201 issue a deprecation warning. Use -alias and -excludes instead. (Dave
206 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
208 * default => undef now works properly. (doy)
210 * Enum type constraints now throw errors if their values are nonsensical.
215 * Optimizations that should help speed up compilation time (Dave Rolsky).
217 1.09 Tue, Jul 25, 2010
221 * You can no longer pass "coerce => 1" for an attribute unless its type
222 constraint has a coercion defined. Doing so will issue a deprecation
223 warning. (Dave Rolsky)
225 * Previously, '+foo' only allowed a specific set of options to be
226 overridden, which made it impossible to change attribute options related
227 to extensions. Now we blacklist some options, and anything else is
228 allowed. (doy, Tuomas Jormola)
230 * Most features which have been declared deprecated now issue a warning using
231 Moose::Deprecated. Warnings are issued once per calling package, not
232 repeatedly. See Moose::Deprecated for information on how you can shut
233 these warnings up entirely. Note that deprecated features will eventually
234 be removed, so shutting up the warnings may not be the best idea. (Dave
237 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
242 * We no longer unimport strict and warnings when Moose, Moose::Role, or
243 Moose::Exporter are unimported. Doing this was broken if the user
244 explicitly loaded strict and warnings themself, and the results could be
245 generally surprising. We decided that it was best to err on the side of
246 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
249 * New with_traits helper function in Moose::Util. (doy)
253 * Accessors will no longer be inlined if the instance metaclass isn't
256 * Use Perl 5.10's new recursive regex features, if possible, for the type
257 constraint parser. (doy, nothingmuch)
261 * Attributes now warn if their accessors overwrite a locally defined
262 function (not just method). (doy)
266 * Bump our required perl version to 5.8.3, since earlier versions fail tests
267 and aren't easily installable/testable.
269 1.08 Tue, Jun 15, 2010
273 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
274 to be overridden more easily (doy).
276 1.07 Sat, Jun 05, 2010
280 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
281 classes and non-class metaclass traits (doy, dougdude).
283 1.06 Tue, Jun 01, 2010
287 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
288 more uniformly compare type constraints between 'classic' Moose type
289 constraints and MooseX::Types based type constraints.
291 1.05 Thu, May 20, 2010
295 * Packages and modules no longer have methods - this functionality was
296 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
297 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
299 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
300 Moose::Object::new. (doy)
304 * strict and warnings are now unimported when Moose, Moose::Role, or
305 Moose::Exporter are unimported. (doy, Adam Kennedy)
307 * Added a 'consumers' method to Moose::Meta::Role for finding all
308 classes/roles which consume the given role. (doy)
312 * Fix has '+attr' in Roles to explode immediately, rather than when the role
313 is applied to a class (t0m).
315 * Fix type constraint validation messages to not include the string 'failed'
316 twice in the same sentence (Florian Ragwitz).
318 * New type constraints will default to being unequal, rather than equal
321 * The tests no longer check for perl's behavior of clobbering $@, which has
322 been fixed in perl-5.13.1 (Florian Ragwitz).
324 * Metaclass compatibility fixing has been completely rewritten, and should
325 be much more robust. (doy)
327 1.04 Thu, May 20, 2010
329 * This release was broken and has been deleted from CPAN shortly after its
332 1.03 Thu, May 06, 2010
336 * Allow specifying required versions when setting superclasses or applying
337 roles (Florian Ragwitz).
339 1.02 Sat, May 01, 2010
343 * Stop the natatime method provided by the native Array trait from returning
344 an exhausted iterator when being called with a callback. (Florian Ragwitz)
346 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
349 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
350 the class the TC represents as an argument incorrectly returned true. This
351 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
353 * Use File::Temp for temp files created during tests. Previously, files were
354 written to the t/ dir, which could cause problems of the user running the
355 tests did not have write access to that directory.. (Chris Weyl, Ævar
358 * Pass role arguments along when applying roles to instances. (doy, lsm)
360 1.01 Fri, Mar 26, 2010
364 * The handles option now also accepts a role type constraint in addition to a
365 plain role name. (Florian Ragwitz)
369 * Record the Sartak/doy debt properly in Changes (perigrin)
371 1.00 Tue, Mar 25, 2010
375 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
376 methods by default. (Florian Ragwitz)
380 * Improve various parts of the documentation and fix many typos.
381 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
385 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
387 0.99 Mon, Mar 8, 2010
391 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
392 which member of the union a given value validates for. (Cory Watson)
396 * DEMOLISH methods in mutable subclasses of immutable classes are now called
397 properly (Chia-liang Kao, Jesse Luehrs)
401 * Added Moose::Manual::Support that defines the support, compatiblity, and
402 release policies for Moose. (Chris Prather)
404 0.98 Wed, Feb 10, 2010
408 * An internals change in 0.97 broke role application to an instance in some
409 cases. The bug occurred when two different roles were applied to different
410 instances of the same class. (Rafael Kitover)
413 0.97 Tue, Feb 9, 2010
417 * Calling ->reinitialize on a cached anonymous class effectively uncached
418 the metaclass object, causing the metaclass to go out of scope
419 unexpectedly. This could easily happen at a distance by applying a
420 metarole to an anonymous class. (Dave Rolsky).
422 0.96 Sat, Feb 6, 2010
426 * ScalarRef is now a parameterized type. You can now specify a type
427 constraint for whatever the reference points to. (Closes RT#50857)
428 (Michael G. Schwern, Florian Ragwitz)
432 * ScalarRef now accepts references to other references. (Closes RT#50934)
435 0.95 Thu, Feb 4, 2010
439 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
440 a delegation option. This allows the code reference to be called as a
441 method on the object. (Florian Ragwitz)
445 * Moose::Object::does no longer checks the entire inheritance tree, since
446 Moose::Meta::Class::does_role already does this. (doy)
448 * Moose::Util::add_method_modifier (and subsequently the sugar functions
449 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
450 with the same behavior as lists. Types other than arrayref and regexp
451 result in an error. (Dylan Hardison)
453 0.94 Mon, Jan 18, 2010
457 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
461 * Improved support for anonymous roles by changing various APIs to take
462 Moose::Meta::Role objects as well as role names. This included
464 - Moose::Meta::Class->does_role
465 - Moose::Meta::Role->does_role
466 - Moose::Util::does_role
467 - Moose::Util::apply_all_roles
468 - Moose::Util::ensure_all_roles
469 - Moose::Util::search_class_by_role
471 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
475 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
476 work as long as the accessor method names are explicitly set to valid Perl
477 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
480 0.93_03 Tue, Jan 5, 2010
484 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
485 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
488 0.93_02 Tue, Jan 5, 2010
492 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
493 testers. (Dave Rolsky)
496 0.93_01 Mon, Jan 4, 2010
500 See Moose::Manual::Delta for more details on backwards compatiblity issues.
502 * Role attributes are now objects of the Moose::Meta::Role::Attribute
503 class. (Dave Rolsky).
505 * There were major changes to how metaroles are applied. We now distinguish
506 between metaroles for classes vs those for roles. See the
507 Moose::Util::MetaRole docs for details. (Dave Rolsky)
509 * The old MetaRole API has been deprecated, but will continue to
510 work. However, if you are applying an attribute metaclass role, this may
511 break because of the fact that roles now have an attribute metaclass
514 * Moose::Util::MetaRole::apply_metaclass_roles is now called
515 apply_metaroles. The old name is deprecated. Dave Rolsky>
517 * The unimport subs created by Moose::Exporter now clean up re-exported
518 functions like blessed and confess, unless the caller imported them from
519 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
521 [ENHANCEMENTS AND BUG FIXES]
523 * Changed the Str constraint to accept magic lvalue strings like one gets from
524 substr et al, again. (sorear)
526 * Sped up the type constraint parsing regex. (Sam Vilain)
528 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
531 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
532 easier testing of TypeConstraints from the command line. (perigrin)
534 * Added a with_immutable test function to Test::Moose, to run a block of tests
535 with and without certain classes being immutable. (doy)
537 * We now use Module::Install extensions explicitly to avoid confusing errors
538 if they're not installed. We use Module::Install::AuthorRequires to stop
539 test extraction and general failures if you don't have the author side
540 dependencies installed.
542 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
543 #51791. (Amir E. Aharoni)
546 0.93 Thu, Nov 19, 2009
548 - Calling $object->new() is no longer deprecated, and no longer
552 - The get_attribute_map method is now deprecated. (Dave Rolsky)
554 * Moose::Meta::Method::Delegation
555 - Preserve variable aliasing in @_ for delegated methods, so that
556 altering @_ affects the passed value. (doy)
558 * Moose::Util::TypeConstraints
559 - Allow array refs for non-anonymous form of enum and duck_type, not
560 just anonymous. The non-arrayref forms may be removed in the
562 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
563 - Properly document Int being a subtype of Str. (doy)
566 - Moose::Exporter using modules can now export their functions to the
567 main package. This applied to Moose and Moose::Role, among
568 others. (nothingmuch)
570 * Moose::Meta::Attribute
571 - Don't remove attribute accessors we never installed, during
572 remove_accessors. (doy)
574 * Moose::Meta::Attribute::Native::Trait::Array
575 - Don't bypass prototype checking when calling List::Util::first, to
576 avoid a segfault when it is called with a non-code argument. (doy)
578 * Moose::Meta::Attribute::Native::Trait::Code
579 - Fix passing arguments to code execute helpers. (doy)
581 0.92 Tue, Sep 22, 2009
582 * Moose::Util::TypeConstraints
583 - added the match_on_type operator (Stevan)
584 - added tests and docs for this (Stevan)
587 - Metaclass compat fixing should already happen recursively, there's no
588 need to explicitly walk up the inheritance tree. (doy)
590 * Moose::Meta::Attribute
591 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
593 0.91 Thu, Sep 17, 2009
595 - Don't import any functions, in order to avoid polluting our namespace
596 with things that can look like methods (blessed, try, etc)
599 * Moose::Meta::Method::Constructor
600 - The generated code needs to called Scalar::Util::blessed by its
601 fully-qualified name or else Perl can interpret the call to blessed as
602 an indirect method call. This broke Search::GIN, which in turn broke
603 KiokuDB. (nothingmuch)
605 0.90 Tue, Sep 15, 2009
606 * Moose::Meta::Attribute::Native::Trait::Counter
607 * Moose::Meta::Attribute::Native::Trait::String
608 - For these two traits, an attribute which did not explicitly provide
609 methods to handles magically ended up delegating *all* the helper
610 methods. This has been removed. You must be explicit in your handles
611 declaration for all Native Traits. (Dave Rolsky)
614 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
615 sure to rethrow its error message. However, we also localize $@ before
616 this so that if all the DEMOLISH methods success, the value of $@ will
617 be preserved. (nothingmuch and Dave Rolsky)
618 - We now also localize $? during object destruction. (nothingmuch and
620 - The handling of DEMOLISH methods was broken for immutablized classes,
621 which were not receiving the value of
622 Devel::GlobalDestruction::in_global_destruction.
623 - These two fixes address some of RT #48271, reported by Zefram.
624 - This is all now documented in Moose::Manual::Construction.
625 - Calling $object->new() is now deprecated. A warning will be
629 - Added more hooks to customize how roles are applied. The role
630 summation class, used to create composite roles, can now be changed
631 and/or have meta-roles applied to it. (rafl)
632 - The get_method_list method no longer explicitly excludes the "meta"
633 method. This was a hack that has been replaced by better hacks. (Dave
636 * Moose::Meta::Method::Delegation
637 - fixed delegated methods to make sure that any modifiers attached to
638 the accessor being delegated on will be called (Stevan)
639 - added tests for this (Stevan)
642 - Moose no longer warns when a class that is being made immutable has
643 mutable ancestors. While in theory this is a good thing to warn about,
644 we found so many exceptions to this that doing this properly became
647 0.89_02 Thu, Sep 10, 2009
648 * Moose::Meta::Attribute::Native
649 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
651 * Moose::Meta::Attribute::Native::Trait::Array
652 - Added a number of functions from List::Util and List::MoreUtils,
653 including reduce, shuffle, uniq, and natatime. (doy)
656 - This module will now generate an init_meta method for your exporting
657 class if you pass it options for
658 Moose::Util::MetaRole::apply_metaclass_roles or
659 apply_base_class_roles. This eliminates a lot of repetitive
660 boilerplate for typical MooseX modules. (doy).
661 - Documented the with_meta feature, which is a replacement for
662 with_caller. This feature was added by josh a while ago.
663 - The with_caller feature is now deprecated, but will not issue a
664 warning yet. (Dave Rolsky)
665 - If you try to wrap/export a subroutine which doesn't actually exist,
666 Moose::Exporter will warn you about this. (doy)
668 * Moose::Meta::Role::Application::ToRole
669 - When a role aliased a method from another role, it was only getting
670 the new (aliased) name, not the original name. This differed from what
671 happens when a class aliases a role's methods. If you _only_ want the
672 aliased name, make sure to also exclue the original name. (Dave
675 0.89_01 Wed Sep 2, 2009
676 * Moose::Meta::Attribute
677 - Added the currying syntax for delegation from AttributeHelpers to the
678 existing delegation API. (hdp)
680 * Moose::Meta::Attribute::Native
681 - We have merged the functionality of MooseX::AttributeHelpers into the
682 Moose core with some API tweaks. You can continue to use
683 MooseX::AttributeHelpers, but it will not be maintained except
684 (perhaps) for critical bug fixes in the future. See
685 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
688 * Moose::Error::Croak
689 * Moose::Error::Confess
690 - Clarify documentation on how to use different error-throwing
691 modules. (Curtis Jewell)
694 - Correct POD for builder to point to Recipe8, not 9. (gphat)
697 - When a nonexistent sub name is passed to as_is, with_caller, or
698 with_meta, throw a warning and skip the exporting, rather than
699 installing a broken sub. (doy)
702 - Moose now warns if you call C<make_immutable> for a class with mutable
705 0.89 Thu Aug 13, 2009
706 * Moose::Manual::Attributes
707 - Clarify "is", include discussion of "bare". (Sartak)
709 * Moose::Meta::Role::Method::Conflicting
710 * Moose::Meta::Role::Application::ToClass
711 - For the first set of roles involved in a conflict, report all
712 unresolved method conflicts, not just the first method. Fixes #47210
713 reported by Ovid. (Sartak)
715 * Moose::Meta::TypeConstraint
716 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
719 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
721 - Allow specifying role options (alias, excludes, MXRP stuff) in the
722 arrayref passed to "use Moose -traits" (doy)
725 - Add functions meta_class_alias and meta_attribute_alias for creating
726 aliases for class and attribute metaclasses and metatraits. (doy)
728 * Moose::Meta::Attribute
729 * Moose::Meta::Method::Accessor
730 - A trigger now receives the old value as a second argument, if the
731 attribute had one. (Dave Rolsky)
733 * Moose::Meta::Method::Constructor
734 - Fix a bug with $obj->new when $obj has stringify overloading.
735 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
736 - However, we will probably deprecate $obj->new, so please don't start
737 using it for new code!
739 * Moose::Meta::Role::Application
740 * Moose::Meta::Role::Application::RoleSummation
741 - Rename alias and excludes to -alias and -excludes (but keep the old
742 names for now, for backcompat) (doy)
744 0.88 Fri Jul 24, 2009
745 * Moose::Manual::Contributing
746 - Re-write the Moose::Manual::Contributing document to reflect
747 the new layout and methods of work for the Git repository. All
748 work now should be done in topic branches and reviewed by a
749 core committer before being applied to master. All releases
750 are done by a cabal member and merged from master to
751 stable. This plan was devised by Yuval, blame him. (perigrin)
754 - Create metaclass attributes for the different role application
757 * Moose::Util::MetaRole
758 - Allow applying roles to a meta role's role application
761 * Moose::Meta::Attribute
762 - Add weak_ref to allowed options for "has '+foo'" (mst)
764 * Moose::Meta::Method::Accessor
765 - No longer uses inline_slot_access in accessors, to support
766 non-lvalue-based meta instances. (sorear)
769 * Moose::Meta::Method::Delegation
770 - Once again allow class names as well as objects for
771 delegation. This was changed in 0.86.
774 * Moose::Meta::Class::Immutable::Trait
775 - Fixes to work with the latest Class::MOP.
777 * Moose::Meta::Method::Delegation
778 - Delegation now dies with a more useful error message if the
779 attribute's accessor returns something defined but
782 0.85 Fri, Jun 26, 2009
783 * Moose::Meta::Attribute
784 - The warning for 'no associated methods' is now split out into
785 the _check_associated_methods method, so that extensions can
786 safely call 'after install_accessors => ...'. This fixes a
787 warning from MooseX::AttributeHelpers. (hdp)
789 0.84 Fri, Jun 26, 2009
791 - has now sets definition_context for attributes defined in
794 * Moose::Meta::Attribute
795 - When adding an attribute to a metaclass, if the attribute has
796 no associated methods, it will give a deprecation
798 - Methods generated by delegation were not being added to
799 associated_methods. (hdp)
800 - Attribute accessors (reader, writer, accessor, predicate,
801 clearer) now warn if they overwrite an existing method. (doy)
802 - Attribute constructors now warn very noisily about unknown (or
803 misspelled) arguments
805 * Moose::Util::TypeConstraints
806 - Deprecated the totally useless Role type name, which just
807 checked if $object->can('does'). Note that this is _not_ the
808 same as a type created by calling role_type('RoleName').
810 * Moose::Util::TypeConstraints
811 * Moose::Meta::TypeConstraint::DuckType
812 - Reify duck type from a regular subtype into an actual class
814 - Document this because Sartak did all my work for me
817 * Moose::Meta::Attribute
818 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
819 it is just a list of methods (Sartak)
822 - The get_*_method_modifiers methods would die if the role had
823 no modifiers of the given type (Robert Buels).
825 0.83 Tue, Jun 23, 2009
827 - Fix _construct_instance not setting the special __MOP__ object
828 key in instances of anon classes. (doy)
830 0.82 Sun, Jun 21, 2009
831 * Moose::Manual::Types
832 - Mention MooseX::Types early to avoid users falling down the
833 string parsing rathole (mst)
835 * Moose::Manual::MooseX
836 - Add warnings about class-level extensions and mention considering
837 using plain objects instead
839 0.81 Sun, Jun 7, 2009
840 * Bumped our Class::MOP prereq to the latest version (0.85), since
843 0.80 Sat, Jun 6, 2009
845 - Add FAQ about the coercion change from 0.76 because it came up
846 three times today (perigrin)
847 - Win doy $10 dollars because Sartak didn't think anybody
848 would document this fast enough (perigrin)
850 * Moose::Meta::Method::Destructor
851 - Inline a DESTROY method even if there are no DEMOLISH methods
852 to prevent unnecessary introspection in
853 Moose::Object::DEMOLISHALL
856 - A role's required methods are now represented by
857 Moose::Meta::Role::Method::Required objects. Conflicts are now
858 represented by Moose::Meta::Role::Method::Conflicting
859 objects. The benefit for end-users in that unresolved
860 conflicts generate different, more instructive, errors,
861 resolving Ovid's #44895. (Sartak)
864 - Improve the error message of "extends" as suggested by Adam
865 Kennedy and confound (Sartak)
866 - Link to Moose::Manual::Roles from Moose::Role as we now have
867 excellent documentation (Adam Kennedy)
870 - Update test suite for subname change in Class::MOP
872 - Add TODO test for infinite recursion in Moose::Meta::Class
875 0.79 Wed, May 13, 2009
877 - More fixes for Win32 problems. Reported by Robert Krimen.
880 - The DEMOLISHALL method could still blow up in some cases
881 during global destruction. This method has been made more
882 resilient in the face of global destruction's random garbage
886 - If you "also" a module that isn't loaded, the error message
887 now acknowledges that (Sartak)
890 - When your ->meta method does not return a Moose::Meta::Class,
891 the error message gave the wrong output (Sartak)
893 0.78 Tue, May 12, 2009
894 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
895 - Merged these documents into what is now Moose::Manual::FAQ
898 - Moved to Moose::Manual::Unsweetened
900 * Moose::Cookbook::Basics::Recipes 9-12
901 - Renamed to be 8-11, since recipe 8 did not exist
904 - Make Moose::Exporter import strict and warnings into packages
908 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
909 methods during global destruction (doy)
912 * Moose::Meta::Role::Application::ToClass
913 - Track the Role::Application objects created during class-role
917 - Fix metaclass incompatibility errors when extending a vanilla perl
918 class which isa Moose class with a metaclass role applied (t0m)
921 - Add a role-combination hook, _role_for_combination, for the
922 benefit of MooseX::Role::Parameterized (Sartak)
925 - Some tests were failing on Win32 because they explicit checked
926 warning output for newlines. Reported by Nickolay Platonov.
928 0.77 Sat, May 2, 2009
930 - Add explicit use of Devel::GlobalDestruction and Sub::Name
934 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
935 or not we are currently in global destruction (doy)
936 - Add explicit use of Devel::GlobalDestruction and Sub::Name
939 * Moose::Cookbook::FAQ
940 - Reworked much of the existing content to be more useful to
941 modern Moose hackers (Sartak)
944 - Depend on Class::MOP 0.83 instead of 0.82_01.
946 0.76 Mon, April 27, 2009
947 * Moose::Meta::TypeConstraint
948 - Do not run coercions in coerce() if the value already passes the type
951 * Moose::Meta::TypeConstraint::Class
952 - In validation error messages, specifically say that the value is not
953 an instance of the class. This should alleviate some frustrating
954 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
956 * Moose::Meta::Role::Application::ToClass
957 - Revert the class-overrides-role warning in favor of a solution outside
958 of the Moose core (Sartak)
961 - Make Test::Output optional again, since it's only used in a few files
964 0.75_01 Thu, April 23, 2009
965 * Moose::Meta::Role::Application::ToClass
966 - Moose now warns about each class overriding methods from roles it
970 - Warnings tests have standardized on Test::Output which is now an
971 unconditionally dependency (Sartak)
974 - Changes to immutabilization to work with Class::MOP 0.82_01+.
976 0.75 Mon, April 20, 2009
979 - Move validation of not inheriting from roles from Moose::extends to
980 Moose::Meta::Class::superclasses (doy)
983 - add ensure_all_roles() function to encapsulate the common "apply this
984 role unless the object already does it" pattern (hdp)
987 - Users can now select a different metaclass with the "-metaclass"
988 option to import, for classes and roles (Sartak)
991 - Make method_metaclass an attr so that it can accept a metarole
994 0.74 Tue, April 7, 2009
996 * Moose::Meta::Method::Destructor
997 - Include stack traces in the deprecation warnings.
1000 * Moose::Meta::Class
1001 - Removed the long-deprecated _apply_all_roles method.
1003 * Moose::Meta::TypeConstraint
1004 - Removed the long-deprecated union method.
1007 0.73_02 Mon, April 6, 2009
1008 * More deprecations and renamings
1009 - Moose::Meta::Method::Constructor
1010 - initialize_body => _initialize_body (this is always called
1011 when an object is constructed)
1014 - The DEMOLISHALL method could throw an exception during global
1015 destruction, meaning that your class's DEMOLISH methods would
1016 not be properly called. Reported by t0m.
1018 * Moose::Meta::Method::Destructor
1019 - Destructor inlining was totally broken by the change to the
1020 is_needed method in 0.72_01. Now there is a test for this
1021 feature, and it works again.
1024 - Bold the word 'not' in the POD for find_meta (t0m)
1026 0.73_01 Sun, April 5, 2009
1028 - Call user_class->meta in fewer places, with the eventual goal
1029 of allowing the user to rename or exclude ->meta
1030 altogether. Instead uses Class::MOP::class_of. (Sartak)
1032 * Moose::Meta::Method::Accessor
1033 - If an attribute had a lazy default, and that value did not
1034 pass the attribute's type constraint, it did not get the
1035 message from the type constraint, instead using a generic
1036 message. Test provided by perigrin.
1038 * Moose::Util::TypeConstraints
1039 - Add duck_type keyword. It's sugar over making sure an object
1040 can() a list of methods. This is easier than jrockway's
1041 suggestion to fork all of CPAN. (perigrin)
1042 - add tests and documentation (perigrin)
1045 - Document the fact that init_meta() returns the target class's
1046 metaclass object. (hdp)
1048 * Moose::Cookbook::Extending::Recipe1
1049 * Moose::Cookbook::Extending::Recipe2
1050 * Moose::Cookbook::Extending::Recipe3
1051 * Moose::Cookbook::Extending::Recipe4
1052 - Make init_meta() examples explicitly return the metaclass and
1053 point out this fact. (hdp)
1055 * Moose::Cookbook::Basics::Recipe12
1056 - A new recipe, creating a custom meta-method class.
1058 * Moose::Cookbook::Meta::Recipe6
1059 - A new recipe, creating a custom meta-method class.
1061 * Moose::Meta::Class
1062 * Moose::Meta::Method::Constructor
1063 - Attribute triggers no longer receive the meta-attribute object
1064 as an argument in any circumstance. Previously, triggers
1065 called during instance construction were passed the
1066 meta-attribute, but triggers called by normal accessors were
1067 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1069 * Moose::Manual::Attributes
1070 - Remove references to triggers receving the meta-attribute object as an
1073 * Moose::Cookbook::FAQ
1074 - Remove recommendation for deprecated Moose::Policy and
1075 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1078 * Many methods have been renamed with a leading underscore, and a
1079 few have been deprecated entirely. The methods with a leading
1080 underscore are consider "internals only". People writing
1081 subclasses or extensions to Moose should feel free to override
1082 them, but they are not for "public" use.
1084 - Moose::Meta::Class
1085 - check_metaclass_compatibility => _check_metaclass_compatibility
1087 - Moose::Meta::Method::Accessor
1088 - initialize_body => _initialize_body (this is always called
1089 when an object is constructed)
1090 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1092 - Moose::Meta::Method::Constructor
1093 - initialize_body => _initialize_body (this is always called
1094 when an object is constructed)
1095 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1096 - attributes => _attributes (now inherited from parent)
1097 - meta_instance => _meta_instance (now inherited from parent)
1100 - alias_method is deprecated. Use add_method
1102 0.73 Fri, March 29, 2009
1103 * No changes from 0.72_01.
1105 0.72_01 Thu, March 26, 2009
1107 - Almost every module has complete API documentation. A few
1108 methods (and even whole classes) have been intentionally
1109 excluded pending some rethinking of their APIs.
1111 * Moose::Util::TypeConstraints
1112 - Calling subtype with a name as the only argument is now an
1113 exception. If you want an anonymous subtype do:
1115 my $subtype = subtype as 'Foo';
1117 * Moose::Cookbook::Meta::Recipe7
1118 - A new recipe, creating a custom meta-instance class.
1120 * Moose::Cookbook::Basics::Recipe5
1121 - Fix various typos and mistakes. Includes a patch from Radu
1124 * Moose::Cookbook::Basics::Recipe9
1125 - Link to this recipe from Moose.pm's builder blurb
1128 - When wrapping a function with a prototype, Moose::Exporter now
1129 makes sure the wrapped function still has the same
1130 prototype. (Daisuke Maki)
1132 * Moose::Meta::Attribute
1133 - Allow a subclass to set lazy_build for an inherited
1137 - Explicitly depend on Data::OptList. We already had this dependency
1138 via Sub::Exporter, but since we're using it directly we're
1139 better off with it listed. (Sartak)
1141 * Moose::Meta::Method::Constructor
1142 - Make it easier to subclass the inlining behaviour. (Ash
1145 * Moose::Manual::Delta
1146 - Details significant changes in the history of Moose, along
1147 with recommended workarounds.
1149 * Moose::Manual::Contributing
1150 - Contributor's guide to Moose.
1152 * Moose::Meta::Method::Constructor
1153 - The long-deprecated intialize_body method has been removed
1154 (yes, spelled like that).
1156 * Moose::Meta::Method::Destructor
1157 - This is_needed method is now always a class method.
1159 * Moose::Meta::Class
1160 - Changes to the internals of how make_immutable works to match
1161 changes in latest Class::MOP.
1163 0.72 Mon, February 23, 2009
1165 * Moose::Meta::Method::Constructor
1166 - A mutable class accepted Foo->new(undef) without complaint,
1167 while an immutable class would blow up with an unhelpful
1168 error. Now, in both cases we throw a helpful error
1169 instead. Reported by doy.
1171 0.71_01 Sun, February 22, 2009
1173 - Hopefully fixed some POD errors in a few recipes that caused
1174 them to display weird on search.cpan.org.
1176 * Moose::Util::TypeConstraints
1177 - Calling type or subtype without the sugar helpers (as, where,
1178 message) is now deprecated.
1179 - The subtype function tried hard to guess what you meant, but
1180 often got it wrong. For example:
1182 my $subtype = subtype as 'ArrayRef[Object]';
1184 This caused an error in the past, but now works as you'd
1188 - Make sure Moose.pm is loaded before calling
1189 Moose->throw_error. This wasn't normally an issue, but could
1190 bite you in weird cases.
1192 0.71 Thu, February 19, 2009
1193 * Moose::Cookbook::Basics::Recipe11
1194 - A new recipe which demonstrates the use of BUILDARGS and
1195 BUILD. (Dave Rolsky)
1197 * Moose::Cookbook::Roles::Recipe3
1198 - A new recipe, applying a role to an object instance. (Dave
1202 - Allow overriding specific keywords from "also" packages. (doy)
1205 - Replace hardcoded cookbook tests with Test::Inline to ensure
1206 the tests match the actual code in the recipes. (Dave Rolsky)
1209 - Working on the above turned up a number of little bugs in the
1210 recipe code. (Dave Rolsky)
1212 * Moose::Util::TypeConstraints::Optimized
1213 - Just use Class::MOP for the optimized ClassName check. (Dave
1216 0.70 Sat, February 14, 2009
1217 * Moose::Util::TypeConstraints
1218 - Added the RoleName type (stevan)
1219 - added tests for this (stevan)
1221 * Moose::Cookbook::Basics::Recipe3
1222 - Updated the before qw[left right] sub to be a little more
1223 defensive about what it accepts (stevan)
1224 - added more tests to t/000_recipies/basics/003_binary_tree.t
1228 - We now always call DEMOLISHALL, even if a class does not
1229 define DEMOLISH. This makes sure that method modifiers on
1230 DEMOLISHALL work as expected. (doy)
1231 - added tests for this (EvanCarroll)
1233 * Moose::Util::MetaRole
1234 - Accept roles for the wrapped_method_metaclass (rafl)
1235 - added tests for this (rafl)
1237 * Moose::Meta::Attribute
1238 - We no longer pass the meta-attribute object as a final
1239 argument to triggers. This actually changed for inlined code a
1240 while back, but the non-inlined version and the docs were
1244 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1245 they require 0.11. (Dave Rolsky)
1248 - Lots of small changes to the manual, cookbook, and
1249 elsewhere. These were based on feedback from various
1250 users, too many to list here. (Dave Rolsky)
1252 0.69 Thu, February 12, 2009
1254 - Make some keyword errors use throw_error instead of croak
1255 since Moose::Exporter wraps keywords now (Sartak)
1257 * Moose::Cookbook::*
1258 - Revised every recipe for style and clarity. Also moved some
1259 documentation out of cookbook recipes and into Moose::Manual
1260 pages. This work was funded as part of the Moose docs grant
1261 from TPF. (Dave Rolsky)
1263 * Moose::Meta::Method::Delegation
1264 - If the attribute doing the delegation was not populated, the
1265 error message did not specify the attribute name
1268 0.68 Wed, February 4, 2009
1270 - Many spelling, typo, and formatting fixes by daxim.
1272 * Moose::Manual::Attributes
1273 - The NAME section in the POD used "Attribute" so search.cpan
1274 didn't resolve links from other documents properly.
1276 * Moose::Meta::Method::Overriden
1277 - Now properly spelled as Overridden. Thanks to daxim for
1280 0.67 Tue, February 3, 2009
1282 - Lots of little typo fixes and a few clarifications. Several
1283 pages didn't have proper titles, and so weren't actually
1284 visible on search.cpan.org. Thanks to hanekomu for a variety
1285 of fixes and formatting improvements.
1287 0.66 Tue, February 3, 2009
1289 - This is a brand new, extensive manual for Moose. This aims to
1290 provide a complete introduction to all of Moose's
1291 features. This work was funded as part of the Moose docs grant
1292 from TPF. (Dave Rolsky)
1294 * Moose::Meta::Attribute
1295 - Added a delegation_metaclass method to replace a hard-coded
1296 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1298 * Moose::Util::TypeConstraints
1299 - If you created a subtype and passed a parent that Moose didn't
1300 know about, it simply ignored the parent. Now it automatically
1301 creates the parent as a class type. This may not be what you
1302 want, but is less broken than before. (Dave Rolsky)
1304 * Moose::Util::TypeConstraints
1305 - This module tried throw errors by calling Moose->throw_error,
1306 but it did not ensure that Moose was loaded first. This could
1307 cause very unhelpful errors when it tried to throw an error
1308 before Moose was loaded. (Dave Rolsky)
1310 * Moose::Util::TypeConstraints
1311 - You could declare a name with subtype such as "Foo!Bar" that
1312 would be allowed, but if you used it in a parameterized type
1313 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1314 vetting on names created via the sugar functions, so that they
1315 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1317 0.65 Thu, January 22, 2009
1318 * Moose and Moose::Meta::Method::Overridden
1319 - If an overridden method called super(), and then the
1320 superclass's method (not overridden) _also_ called super(),
1321 Moose went into an endless recursion loop. Test provided by
1322 Chris Prather. (Dave Rolsky)
1324 * Moose::Meta::TypeConstraint
1325 - All methods are now documented. (gphat)
1327 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1328 - Fixed some bogus failures that occurred because we tried to
1329 validate filesystem paths in a very ad-hoc and
1330 not-quite-correct way. (Dave Rolsky)
1332 * Moose::Util::TypeConstraints
1333 - Added maybe_type to exports. See docs for details. (rjbs)
1336 - Added Moose::Util::TypeConstraints to the SEE ALSO
1340 - Methods created via an attribute can now fulfill a "requires"
1341 declaration for a role. (nothingmuch)
1343 * Moose::Meta::Method::*
1344 - Stack traces from inlined code will now report its line and
1345 file as being in your class, as opposed to in Moose
1346 guts. (nothingmuch).
1348 0.64 Wed, December 31, 2008
1349 * Moose::Meta::Method::Accessor
1350 - Always inline predicate and clearer methods (Sartak)
1352 * Moose::Meta::Attribute
1353 - Support for parameterized traits (Sartak)
1354 - verify_against_type_constraint method to avoid duplication
1355 and enhance extensibility (Sartak)
1357 * Moose::Meta::Class
1358 - Tests (but no support yet) for parameterized traits (Sartak)
1361 - Require Class::MOP 0.75+, which has the side effect of making
1362 sure we work on Win32. (Dave Rolsky)
1364 0.63 Mon, December 8, 2008
1365 * Moose::Unsweetened
1366 - Some small grammar tweaks and bug fixes in non-Moose example
1369 0.62_02 Fri, December 5, 2008
1370 * Moose::Meta::Role::Application::ToClass
1371 - When a class does not provide all of a role's required
1372 methods, the error thrown now mentions all of the missing
1373 methods, as opposed to just the first one found. Requested by
1374 Curtis Poe (RT #41119). (Dave Rolsky)
1376 * Moose::Meta::Method::Constructor
1377 - Moose will no longer inline a constructor for your class
1378 unless it inherits its constructor from Moose::Object, and
1379 will warn when it doesn't inline. If you want to force
1380 inlining anyway, pass "replace_constructor => 1" to
1381 make_immutable. Addresses RT #40968, reported by Jon
1382 Swartz. (Dave Rolsky)
1383 - The quoting of default values could be broken if the default
1384 contained a single quote ('). Now we use quotemeta to escape
1385 anything potentially dangerous in the defaults. (Dave Rolsky)
1387 0.62_01 Wed, December 3, 2008
1389 - use the method->execute API for BUILDALL
1390 and DEMOLISHALL (Sartak)
1392 * Moose::Util::TypeConstraints
1393 - We now make all the type constraint meta classes immutable
1394 before creating the default types provided by Moose. This
1395 should make loading Moose a little faster. (Dave Rolsky)
1397 0.62 Wed November 26, 2008
1398 * Moose::Meta::Role::Application::ToClass
1399 Moose::Meta::Role::Application::ToRole
1400 - fixed issues where excluding and aliasing the
1401 same methods for a single role did not work
1402 right (worked just fine with multiple
1404 - added test for this (stevan)
1406 * Moose::Meta::Role::Application::RoleSummation
1407 - fixed the error message when trying to compose
1408 a role with a role it excludes (Sartak)
1411 - Catch another case where recursion caused the value
1412 of $CALLER to be stamped on (t0m)
1413 - added test for this (t0m)
1416 - Remove the make_immutable keyword, which has been
1417 deprecated since April. It breaks metaclasses that
1418 use Moose without no Moose (Sartak)
1420 * Moose::Meta::Attribute
1421 - Removing an attribute from a class now also removes delegation
1422 (handles) methods installed for that attribute (t0m)
1423 - added test for this (t0m)
1425 * Moose::Meta::Method::Constructor
1426 - An attribute with a default that looked like a number (but was
1427 really a string) would accidentally be treated as a number
1428 when the constructor was made immutable (perigrin)
1429 - added test for this (perigrin)
1432 - create method for constructing a role
1433 dynamically (Sartak)
1434 - added test for this (Sartak)
1435 - anonymous roles! (Sartak)
1436 - added test for this (Sartak)
1439 - more consistent error messages (Sartak)
1441 * Moose::Cookbook::Roles::Recipe1
1442 - attempt to explain why a role that just requires
1443 methods is useful (Sartak)
1445 0.61 Fri November 7, 2008
1446 * Moose::Meta::Attribute
1447 - When passing a role to handles, it will be loaded if necessary
1450 * Moose::Meta::Class
1451 - Method objects returned by get_method (and other methods)
1452 Could end up being returned without an associated_metaclass
1453 attribute. Removing get_method_map, which is provided by
1454 Class::MOP::Class, fixed this. The Moose version did nothing
1455 different from its parent except introduce a bug. (Dave Rolsky)
1456 - added tests for this (jdv79)
1459 - Added a $VERSION to all .pm files which didn't have one. Fixes
1460 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1462 * Moose::Cookbook::Basics::Recipe4
1463 * Moose::Cookbook::Basics::Recipe6
1464 - These files had spaces on the first line of the SYNOPSIS, as
1465 opposed to a totally empty line. According to RT #40432, this
1466 confuses POD parsers. (Dave Rolsky)
1468 0.60 Fri October 24, 2008
1470 - Passing "-traits" when loading Moose caused the Moose.pm
1471 exports to be broken. Reported by t0m. (Dave Rolsky)
1472 - Tests for this bug. (t0m)
1475 - Change resolve_metaclass alias to use the new
1476 load_first_existing_class function. This makes it a lot
1477 simpler, and also around 5 times faster. (t0m)
1478 - Add caching to resolve_metaclass_alias, which gives an order
1479 of magnitude speedup to things which repeatedly call the
1480 Moose::Meta::Attribute->does method, notably MooseX::Storage
1483 * Moose::Util::TypeConstraint
1484 - Put back the changes for parameterized constraints that
1485 shouldn't have been removed in 0.59. We still cannot parse
1486 them, but MooseX modules can create them in some other
1487 way. See the 0.58 changes for more details. (jnapiorkowski)
1488 - Changed the way subtypes are created so that the job is
1489 delegated to a type constraint parent. This clears up some
1490 hardcoded checking and should allow correct subtypes of
1491 Moose::Meta::Type::Constraint. Don't rely on this new API too
1492 much (create_child_type) because it may go away in the
1493 future. (jnapiorkowski)
1495 * Moose::Meta::TypeConstraint::Union
1496 - Type constraint names are sorted as strings, not numbers.
1499 * Moose::Meta::TypeConstraint::Parameterizable
1500 - New parameterize method. This can be used as a factory method
1501 to make a new type constraint with a given parameterized
1502 type. (jnapiorkowski)
1503 - added tests (jnapiorkowski)
1505 0.59 Tue October 14, 2008
1507 - Add abridged documentation for builder/default/initializer/
1508 predicate, and link to more details sections in
1509 Class::MOP::Attribute. (t0m)
1511 * Moose::Util::TypeConstraints
1512 - removed prototypes from all but the &-based stuff (mst)
1514 * Moose::Util::TypeConstraints
1515 - Creating a anonymous subtype with both a constraint and a
1516 message failed with a very unhelpful error, but should just
1517 work. Reported by t0m. (Dave Rolsky)
1520 - Some tests that used Test::Warn if it was available failed
1521 with older versions of Test::Warn. Reported by Fayland. (Dave
1523 - Test firing behavior of triggers in relation to builder/default/
1525 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1526 kinds of supported type. (t0m)
1528 * Moose::Meta::Class
1529 - In create(), do not pass "roles" option to the superclass
1530 - added related test that creates an anon metaclass with
1531 a required attribute
1533 * Moose::Meta::TypeConstraint::Class
1534 * Moose::Meta::TypeConstraint::Role
1535 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1536 other types (as per change in 0.55_02). (t0m)
1538 * Moose::Meta::TypeConstraint::Registry
1539 - Fix warning when dealing with unknown type names (t0m)
1541 * Moose::Util::TypeConstraints
1542 - Reverted changes from 0.58 related to handle parameterized
1543 types. This caused random failures on BSD and Win32 systems,
1544 apparently related to the regex engine. This means that Moose
1545 can no longer parse structured type constraints like
1546 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1547 supported in a slightly different way via MooseX::Types some
1548 time in the future. (Dave Rolsky)
1550 0.58 Sat September 20, 2008
1551 !! This release has an incompatible change regarding !!
1552 !! how roles add methods to a class !!
1554 * Roles and role application
1555 ! Roles now add methods by calling add_method, not
1556 alias_method. They make sure to always provide a method
1557 object, which will be cloned internally. This means that it is
1558 now possible to track the source of a method provided by a
1559 role, and even follow its history through intermediate roles.
1561 This means that methods added by a role now show up when
1562 looking at a class's method list/map. (Dave Rolsky)
1565 - From this release on, we'll try to maintain a list of
1566 conflicting modules, and warn you if you have one
1567 installed. For example, this release conflicts with ...
1568 - MooseX::Singleton <= 0.11
1569 - MooseX::Params::Validate <= 0.05
1572 In general, we try to not break backwards compatibility for
1573 most Moose users, but MooseX modules and other code which
1574 extends Moose's metaclasses is often affected by very small
1575 changes in the Moose internals.
1577 * Moose::Meta::Method::Delegation
1578 * Moose::Meta::Attribute
1579 - Delegation methods now have their own method class. (Dave
1582 * Moose::Meta::TypeConstraint::Parameterizable
1583 - Added a new method 'parameterize' which is basically a factory
1584 for the containing constraint. This makes it easier to create
1585 new types of parameterized constraints. (jnapiorkowski)
1587 * Moose::Meta::TypeConstraint::Union
1588 - Changed the way Union types canonicalize their names to follow
1589 the normalized TC naming rules, which means we strip all
1590 whitespace. (jnapiorkowski)
1592 * Moose::Util::TypeConstraints
1593 - Parameter and Union args are now sorted, this makes Int|Str
1594 the same constraint as Str|Int. (jnapiorkowski)
1595 - Changes to the way Union types are parsed to more correctly
1596 stringify their names. (jnapiorkowski)
1597 - When creating a parameterized type, we now use the new
1598 parameterize method. (jnapiorkowski)
1599 - Incoming type constraint strings are now normalized to remove
1600 all whitespace differences. (jnapiorkowski)
1601 - Changed the way we parse type constraint strings so that we now
1602 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1603 constraints. This lays the foundation for more flexible type
1604 constraint implementations.
1606 * Tests and docs for all the above. (jnapiorkowski)
1610 - Moose::Exporter will no longer remove a subroutine that the
1611 exporting package re-exports. Moose re-exports the
1612 Carp::confess function, among others. The reasoning is that we
1613 cannot know whether you have also explicitly imported those
1614 functions for your own use, so we err on the safe side and
1615 always keep them. (Dave Rolsky)
1616 - added tests for this (rafl)
1618 * Moose::Meta::Class
1619 - Changes to how we fix metaclass compatibility that are much
1620 too complicated to go into. The summary is that Moose is much
1621 less likely to complain about metaclass incompatibility
1622 now. In particular, if two metaclasses differ because
1623 Moose::Util::MetaRole was used on the two corresponding
1624 classes, then the difference in roles is reconciled for the
1625 subclass's metaclass. (Dave Rolsky)
1626 - Squashed an warning in _process_attribute (thepler)
1629 - throw exceptions (sooner) for invalid attribute names (thepler)
1630 - added tests for this (thepler)
1632 * Moose::Util::MetaRole
1633 - If you explicitly set a constructor or destructor class for a
1634 metaclass object, and then applied roles to the metaclass,
1635 that explicitly set class would be lost and replaced with the
1638 * Moose::Meta::Class
1639 * Moose::Meta::Attribute
1640 * Moose::Meta::Method
1643 * Moose::Error::Default
1644 * Moose::Error::Croak
1645 * Moose::Error::Confess
1646 - All instances of confess() changed to use overridable
1647 C<throw_error> method. This method ultimately calls a class
1648 constructor, and you can change the class being called. In
1649 addition, errors now pass more information than just a string.
1650 The default C<error_class> behaves like C<Carp::confess>, so
1651 the behavior is not visibly different for end users.
1653 0.57 Wed September 3, 2008
1655 - A new bit of doc intended to introduce folks familiar with
1656 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1658 * Moose::Unsweetened
1659 - Shows examples of two classes, each done first with and then
1660 without Moose. This makes a nice parallel to
1661 Moose::Intro. (Dave Rolsky)
1663 * Moose::Util::TypeConstraints
1664 - Fixed a bug in find_or_parse_type_constraint so that it
1665 accepts a Moose::Meta::TypeConstraint object as the parent
1666 type, not just a name (jnapiorkowski)
1667 - added tests (jnapiorkowski)
1670 - If Sub::Name was not present, unimporting failed to actually
1671 remove some sugar subs, causing test failures (Dave Rolsky)
1673 0.56 Mon September 1, 2008
1674 For those not following the series of dev releases, there are
1675 several major changes in this release of Moose.
1676 ! Moose::init_meta should now be called as a method. See the
1679 - Major performance improvements by nothingmuch.
1681 - New modules for extension writers, Moose::Exporter and
1682 Moose::Util::MetaRole by Dave Rolsky.
1684 - Lots of doc improvements and additions, especially in the
1687 - Various bug fixes.
1689 * Removed all references to the experimental-but-no-longer-needed
1690 Moose::Meta::Role::Application::ToMetaclassInstance.
1692 * Require Class::MOP 0.65.
1694 0.55_04 Sat August 30, 2008
1695 * Moose::Util::MetaRole
1696 * Moose::Cookbook::Extending::Recipe2
1697 - This simplifies the application of roles to any meta class, as
1698 well as the base object class. Reimplemented metaclass traits
1699 using this module. (Dave Rolsky)
1701 * Moose::Cookbook::Extending::Recipe1
1702 - This a new recipe, an overview of various ways to write Moose
1703 extensions (Dave Rolsky)
1705 * Moose::Cookbook::Extending::Recipe3
1706 * Moose::Cookbook::Extending::Recipe4
1707 - These used to be Extending::Recipe1 and Extending::Recipe2,
1710 0.55_03 Fri August 29, 2008
1711 * No changes from 0.55_02 except increasing the Class::MOP
1712 dependency to 0.64_07.
1714 0.55_02 Fri August 29, 2008
1715 * Makefile.PL and Moose.pm
1716 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1718 * Moose::Util::TypeConstraints
1719 - Fix warnings from find_type_constraint if the type is not
1722 * Moose::Meta::TypeConstraint
1723 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1724 return false if the type you specify cannot be found in the
1725 type registry, rather than throwing an unhelpful and
1726 coincidental exception. (t0m).
1727 - added docs & test for this (t0m)
1729 * Moose::Meta::TypeConstraint::Registry
1730 - add_type_constraint now throws an exception if a parameter is
1732 - added docs & test for this (t0m)
1734 * Moose::Cookbook::FAQ
1735 - Added a faq entry on the difference between "role" and "trait"
1739 - Fixed a bug that caused role composition to not see a required
1740 method when that method was provided by another role being
1741 composed at the same time. (Dave Rolsky)
1742 - test and bug finding (tokuhirom)
1744 0.55_01 Wed August 20, 2008
1746 !! Calling Moose::init_meta as a function is now !!
1747 !! deprecated. Please see the Moose.pm docs for details. !!
1749 * Moose::Meta::Method::Constructor
1750 - Fix inlined constructor so that values produced by default
1751 or builder methods are coerced as required. (t0m)
1752 - added test for this (t0m)
1754 * Moose::Meta::Attribute
1755 - A lazy attribute with a default or builder did not attempt to
1756 coerce the default value. The immutable code _did_
1758 - added test for this (t0m)
1761 - This is a new helper module for writing "Moose-alike"
1762 modules. This should make the lives of MooseX module authors
1763 much easier. (Dave Rolsky)
1766 * Moose::Cookbook::Meta::Recipe5
1767 - Implemented metaclass traits (and wrote a recipe for it):
1769 use Moose -traits => 'Foo'
1771 This should make writing small Moose extensions a little
1772 easier (Dave Rolsky)
1774 * Moose::Cookbook::Basics::Recipe1
1775 - Removed any examples of direct hashref access, and applied an
1776 editorial axe to reduce verbosity. (Dave Rolsky)
1778 * Moose::Cookbook::Basics::Recipe1
1779 - Also applied an editorial axe here. (Dave Rolsky)
1782 * Moose::Cookbook::Extending::Recipe1
1783 * Moose::Cookbook::Extending::Recipe2
1784 - Rewrote extending and embedding moose documentation and
1785 recipes to use Moose::Exporter (Dave Rolsky)
1789 - These two modules now warn when you load them from the main
1790 package "main" package, because we will not export sugar to
1791 main. Previously it just did nothing. (Dave Rolsky)
1794 - Now provide an init_meta method just like Moose.pm, and you
1795 can call this to provide an alternate role metaclass. (Dave
1796 Rolsky and nothingmuch)
1797 - get_method_map now respects the package cache flag (nothingmuch)
1800 - Two new methods - add_method and wrap_method_body
1804 - Optimizations including allowing constructors to accept hash
1805 refs, making many more classes immutable, and making
1806 constructors immutable. (nothingmuch)
1808 0.55 Sun August 3, 2008
1809 * Moose::Meta::Attribute
1810 - breaking down the way 'handles' methods are
1811 created so that the process can be more easily
1812 overridden by subclasses (stevan)
1814 * Moose::Meta::TypeConstraint
1815 - fixing what is passed into a ->message with
1816 the type constraints (RT #37569)
1817 - added tests for this (Charles Alderman)
1819 * Moose::Util::TypeConstraints
1820 - fix coerce to accept anon types like subtype can (mst)
1823 - reorganized the recipes into sections - Basics, Roles, Meta,
1824 Extending - and wrote abstracts for each section (Dave Rolsky)
1826 * Moose::Cookbook::Basics::Recipe10
1827 - A new recipe that demonstrates operator overloading
1828 in combination with Moose. (bluefeet)
1830 * Moose::Cookbook::Meta::Recipe1
1831 - an introduction to what meta is and why you'd want to make
1832 your own metaclass extensions (Dave Rolsky)
1834 * Moose::Cookbook::Meta::Recipe4
1835 - a very simple metaclass example (Dave Rolsky)
1837 * Moose::Cookbook::Extending::Recipe1
1838 - how to write a Moose-alike module to use your own object base
1841 * Moose::Cookbook::Extending::Recipe2
1842 - how to write modules with an API just like C<Moose.pm> (Dave
1846 - Tons of fixes, both syntactical and grammatical (Dave
1847 Rolsky, Paul Fenwick)
1849 0.54 Thurs. July 3, 2008
1850 ... this is not my day today ...
1852 * Moose::Meta::Attribute
1853 - fixed legal_options_for_inheritance such that
1854 clone_and_inherit options still works for
1855 Class::MOP::Attribute objects and therefore
1856 does not break MooseX::AttributeHelpers
1859 0.53 Thurs. July 3, 2008
1860 * Whoops, I guess I should run 'make manifest' before
1861 actually releasing the module. No actual changes
1862 in this release, except the fact that it includes
1863 the changes that I didn't include in the last
1866 0.52 Thurs. July 3, 2008
1868 - added "FEATURE REQUESTS" section to the Moose docs
1869 to properly direct people (stevan) (RT #34333)
1870 - making 'extends' croak if it is passed a Role since
1871 this is not ever something you want to do
1872 (fixed by stevan, found by obra)
1873 - added tests for this (stevan)
1876 - adding support for DOES (as in UNIVERSAL::DOES)
1878 - added test for this
1880 * Moose::Meta::Attribute
1881 - added legal_options_for_inheritance (wreis)
1882 - added tests for this (wreis)
1884 * Moose::Cookbook::Snacks::*
1885 - removed some of the unfinished snacks that should
1886 not have been released yet. Added some more examples
1887 to the 'Keywords' snack. (stevan)
1889 * Moose::Cookbook::Style
1890 - added general Moose "style guide" of sorts to the
1891 cookbook (nothingmuch) (RT #34335)
1894 - added more BUILDARGS tests (stevan)
1896 0.51 Thurs. Jun 26, 2008
1898 - add unimport so "no Moose::Role" actually does
1901 * Moose::Meta::Role::Application::ToRole
1902 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1903 order to provide its own implementation, that method still got
1904 added to the list of required methods for consumers of
1905 RoleB. Now an aliased method is only added to the list of
1906 required methods if the role doing the aliasing does not
1907 provide its own implementation. See Recipe 11 for an example
1908 of all this. (Dave Rolsky)
1909 - added tests for this
1911 * Moose::Meta::Method::Constructor
1912 - when a single argument that wasn't a hashref was provided to
1913 an immutabilized constructor, the error message was very
1914 unhelpful, as opposed to the non-immutable error. Reported by
1916 - added test for this (Dave Rolsky)
1918 * Moose::Meta::Attribute
1919 - added support for meta_attr->does("ShortAlias") (sartak)
1920 - added tests for this (sartak)
1921 - moved the bulk of the `handles` handling to the new
1922 install_delegation method (Stevan)
1925 - Added BUILDARGS, a new step in new()
1927 * Moose::Meta::Role::Application::RoleSummation
1928 - fix typos no one ever sees (sartak)
1930 * Moose::Util::TypeConstraints
1931 * Moose::Meta::TypeConstraint
1932 * Moose::Meta::TypeCoercion
1933 - Attempt to work around the ??{ } vs. threads issue
1935 - Some null_constraint optimizations
1937 0.50 Thurs. Jun 11, 2008
1938 - Fixed a version number issue by bumping all modules
1941 0.49 Thurs. Jun 11, 2008
1942 !! This version now approx. 20-25% !!
1943 !! faster with new Class::MOP 0.59 !!
1945 * Moose::Meta::Attribute
1946 - fixed how the is => (ro|rw) works with
1947 custom defined reader, writer and accessor
1949 - added docs for this (TODO).
1950 - added tests for this (Thanks to Penfold)
1951 - added the custom attribute alias for regular
1952 Moose attributes which is "Moose"
1953 - fix builder and default both being used
1958 Moose::Meta::Attribute
1960 Moose::Meta::Role::Composite
1961 Moose::Util::TypeConstraints
1962 - switched usage of reftype to ref because
1966 - changing add_package_symbol to use the new
1970 - fixed how DEMOLISHALL is called so that it
1971 can be overrided in subclasses (thanks to Sartak)
1972 - added test for this (thanks to Sartak)
1974 * Moose::Util::TypeConstraints
1975 - move the ClassName type check code to
1976 Class::MOP::is_class_loaded (thanks to Sartak)
1978 * Moose::Cookbook::Recipe11
1979 - add tests for this (thanks to tokuhirom)
1981 0.48 Thurs. May 29, 2008
1982 (early morning release engineering)--
1984 - fixing the version in Moose::Meta::Method::Destructor
1985 which was causing the indexer to choke
1987 0.47 Thurs. May 29, 2008
1988 (late night release engineering)--
1990 - fixing the version is META.yml, no functional
1991 changes in this release
1993 0.46 Wed. May 28, 2008
1994 !! This version now approx. 20-25% !!
1995 !! faster with new Class::MOP 0.57 !!
1997 * Moose::Meta::Class
1998 - some optimizations of the &initialize method
1999 since it is called so often by &meta
2001 * Moose::Meta::Class
2003 - now use the get_all_package_symbols from the
2004 updated Class::MOP, test suite is now 10 seconds
2007 * Moose::Meta::Method::Destructor
2008 - is_needed can now also be called as a class
2009 method for immutablization to check if the
2010 destructor object even needs to be created
2013 * Moose::Meta::Method::Destructor
2014 Moose::Meta::Method::Constructor
2015 - added more descriptive error message to help
2016 keep people from wasting time tracking an error
2017 that is easily fixed by upgrading.
2019 0.45 Saturday, May 24, 2008
2021 - Because of work in Class::MOP 0.57, all
2022 XS based functionality is now optional
2023 and a Pure Perl version is supplied
2024 - the CLASS_MOP_NO_XS environment variable
2025 can now be used to force non-XS versions
2027 - several of the packages have been tweaked
2028 to take care of this, mostly we added
2029 support for the package_name and name
2030 variables in all the Method metaclasses
2031 - before/around/after method modifiers now
2032 support regexp matching of names
2033 (thanks to Takatoshi Kitano)
2034 - tests added for this
2035 - NOTE: this only works for classes, it
2036 is currently not supported in roles,
2037 but, ... patches welcome
2038 - All usage of Carp::confess have been replaced
2039 by Carp::croak in the "keyword" functions since
2040 the stack trace is usually not helpful
2043 - All usage of Carp::confess have been replaced
2044 by Carp::croak in the "keyword" functions since
2045 the stack trace is usually not helpful
2046 - The 'has' keyword for roles now accepts the
2047 same array ref form that Moose.pm does
2048 (has [qw/foo bar/] => (is => 'rw', ...))
2049 - added test for this
2051 * Moose::Meta::Attribute
2052 - trigger on a ro-attribute is no longer an
2053 error, as it's useful to trigger off of the
2056 * Moose::Meta::Class
2057 - added same 'add_package_symbol' fix as in
2061 - does_role now handles non-Moose classes
2063 - added tests for this
2064 - added the 'add_method_modifier' function
2065 (thanks to Takatoshi Kitano)
2067 * Moose::Util::TypeConstraints
2068 - subtypes of parameterizable types now are
2069 themselves parameterizable types
2071 * Moose::Meta::Method::Constructor
2072 - fixed bug where trigger was not being
2073 called by the inlined immutable
2075 - added test for this (thanks to Caelum)
2077 * Moose::Meta::Role::Application::ToInstance
2078 - now uses the metaclass of the instance
2079 (if possible) to create the anon-class
2080 (thanks Jonathan Rockway)
2082 * Moose::Cookbook::Recipe22
2083 - added the meta-attribute trait recipe
2087 - fixed hash-ordering test bug that was
2088 causing occasional cpantester failures
2089 - renamed the t/000_recipe/*.t tests to be
2090 more descriptive (thanks to Sartak)
2092 0.44 Sat. May 10, 2008
2094 - made make_immutable warning cluck to
2095 show where the error is (thanks mst)
2098 - BUILDALL and DEMOLISHALL now call
2099 ->body when looping through the
2100 methods, to avoid the overloaded
2102 - fixed issue where DEMOLISHALL was
2103 eating the $@ values, and so not
2104 working correctly, it still kind of
2105 eats them, but so does vanilla perl
2106 - added tests for this
2108 * Moose::Cookbook::Recipe7
2109 - added new recipe for immutable
2110 functionality (thanks Dave Rolsky)
2112 * Moose::Cookbook::Recipe9
2113 - added new recipe for builder and
2114 lazy_build (thanks Dave Rolsky)
2116 * Moose::Cookbook::Recipe11
2117 - added new recipe for method aliasing
2118 and exclusion with Roles (thanks Dave Rolsky)
2121 - fixed Win32 test failure (thanks spicyjack)
2123 ~ removed Build.PL and Module::Build compat
2124 since Module::Install has done that.
2126 0.43 Wed. April, 30, 2008
2128 drink more coffee before
2129 doing release engineering
2131 - whoops, forgot to do the smolder tests,
2132 and we broke some of the custom meta-attr
2133 modules. This fixes that.
2135 0.42 Mon. April 28, 2008
2136 - some bad tests slipped by, nothing else
2137 changed in this release (cpantesters++)
2139 - upped the Class::MOP dependency to 0.55
2140 since we have tests which need the C3
2143 0.41 Mon. April 28, 2008
2144 ~~ numerous documentation updates ~~
2146 - Changed all usage of die to Carp::croak for better
2147 error reporting (initial patch by Tod Hagan)
2149 ** IMPORTANT NOTE **
2150 - the make_immutable keyword is now deprecated, don't
2151 use it in any new code and please fix your old code
2152 as well. There will be 2 releases, and then it will
2158 - refactored the way inner and super work to avoid
2159 any method/@ISA cache penalty (nothingmuch)
2161 * Moose::Meta::Class
2162 - fixing &new_object to make sure trigger gets the
2163 coerced value (spotted by Charles Alderman on the
2165 - added test for this
2167 * Moose::Meta::Method::Constructor
2168 - immutable classes which had non-lazy attributes were calling
2169 the default generating sub twice in the constructor. (bug
2170 found by Jesse Luehrs, fixed by Dave Rolsky)
2171 - added tests for this (Dave Rolsky)
2172 - fix typo in initialize_body method (nothingmuch)
2174 * Moose::Meta::Method::Destructor
2175 - fix typo in initialize_body method (nothingmuch)
2177 * Moose::Meta::Method::Overriden
2178 Moose::Meta::Method::Augmented
2179 - moved the logic for these into their own
2180 classes (nothingmuch)
2182 * Moose::Meta::Attribute
2183 - inherited attributes may now be extended without
2184 restriction on the type ('isa', 'does') (Sartak)
2185 - added tests for this (Sartak)
2186 - when an attribute property is malformed (such as lazy without
2187 a default), give the name of the attribute in the error
2189 - added the &applied_traits and &has_applied_traits methods
2190 to allow introspection of traits
2191 - added tests for this
2192 - moved 'trait' and 'metaclass' argument handling to here from
2194 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2195 '+foo' syntax) (nothingmuch)
2196 - added tests for this (t0m)
2199 - localize $@ inside DEMOLISHALL to avoid it
2200 eating $@ (found by Ernesto)
2201 - added test for this (thanks to Ernesto)
2203 * Moose::Util::TypeConstraints
2204 - &find_type_constraint now DWIMs when given an
2205 type constraint object or name (nothingmuch)
2206 - &find_or_create_type_constraint superseded with a number of more
2208 - find_or_create_{isa,does}_type_constraint
2209 - find_or_parse_type_constraint
2211 * Moose::Meta::TypeConstraint
2212 Moose::Meta::TypeConstraint::Class
2213 Moose::Meta::TypeConstraint::Role
2214 Moose::Meta::TypeConstraint::Enum
2215 Moose::Meta::TypeConstraint::Union
2216 Moose::Meta::TypeConstraint::Parameterized
2217 - added the &equals method for comparing two type
2218 constraints (nothingmuch)
2219 - added tests for this (nothingmuch)
2221 * Moose::Meta::TypeConstraint
2222 - add the &parents method, which is just an alias to &parent.
2223 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2225 * Moose::Meta::TypeConstraint::Class
2226 - added the class attribute for introspection purposes
2228 - added tests for this
2230 * Moose::Meta::TypeConstraint::Enum
2231 Moose::Meta::TypeConstraint::Role
2232 - broke these out into their own classes (nothingmuch)
2234 * Moose::Cookbook::Recipe*
2235 - fixed references to test file locations in the POD
2236 and updated up some text for new Moose features
2240 - Added &resolve_metaclass_alias, a helper function for finding an actual
2241 class for a short name (e.g. in the traits list)
2243 0.40 Fri. March 14, 2008
2244 - I hate Pod::Coverage
2246 0.39 Fri. March 14, 2008
2248 - documenting the use of '+name' with attributes
2249 that come from recently composed roles. It makes
2250 sense, people are using it, and so why not just
2251 officially support it.
2252 - fixing the 'extends' keyword so that it will not
2253 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2256 - added the perl -Moose=+Class::Name feature to allow
2257 monkeypatching of classes in one liners
2260 - fixing the 'apply_all_roles' keyword so that it will not
2261 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2263 * Moose::Meta::Class
2264 - added ->create method which now supports roles (thanks to jrockway)
2265 - added tests for this
2266 - added ->create_anon_class which now supports roles and caching of
2267 the results (thanks to jrockway)
2268 - added tests for this
2269 - made ->does_role a little more forgiving when it is
2270 checking a Class::MOP era metaclasses.
2272 * Moose::Meta::Role::Application::ToInstance
2273 - it is now possible to pass extra params to be used when
2274 a role is applied to an the instance (rebless_params)
2275 - added tests for this
2277 * Moose::Util::TypeConstraints
2278 - class_type now accepts an optional second argument for a
2279 custom message. POD anotated accordingly (groditi)
2280 - added tests for this
2281 - it is now possible to make anon-enums by passing 'enum' an
2282 ARRAY ref instead of the $name => @values. Everything else
2284 - added tests for this
2287 - making test for using '+name' on attributes consumed
2288 from a role, it works and makes sense too.
2290 * Moose::Meta::Attribute
2291 - fix handles so that it doesn't return nothing
2292 when the method cannot be found, not sure why
2293 it ever did this originally, this means we now
2294 have slightly better support for AUTOLOADed
2296 - added more delegation tests
2297 - adding ->does method to this so as to better
2298 support traits and their introspection.
2299 - added tests for this
2302 - localizing the Data::Dumper configurations so
2303 that it does not pollute others (RT #33509)
2304 - made ->does a little more forgiving when it is
2305 passed Class::MOP era metaclasses.
2307 0.38 Fri. Feb. 15, 2008
2308 * Moose::Meta::Attribute
2309 - fixed initializer to correctly do
2310 type checking and coercion in the
2312 - added tests for this
2315 - fixed some finicky tests (thanks to konobi)
2317 0.37 Thurs. Feb. 14, 2008
2319 - fixed some details in Moose::init_meta
2320 and its superclass handling (thanks thepler)
2321 - added tests for this (thanks thepler)
2322 - 'has' now dies if you don't pass in name
2324 - added the 'make_immutable' keyword as a shortcut
2327 * Moose::Meta::Class
2328 Moose::Meta::Method::Constructor
2329 Moose::Meta::Attribute
2330 - making (init_arg => undef) work here too
2331 (thanks to nothingmuch)
2333 * Moose::Meta::Attribute
2334 Moose::Meta::Method::Constructor
2335 Moose::Meta::Method::Accessor
2336 - make lazy attributes respect attr initializers (rjbs)
2337 - added tests for this
2339 * Moose::Util::TypeConstraints
2340 Moose::Util::TypeConstraints::OptimizedConstraints
2341 Moose::Meta::TypeConstraints
2342 Moose::Meta::Attribute
2343 Moose::Meta::Method::Constructor
2344 Moose::Meta::Method::Accessor
2345 - making type errors use the
2346 assigned message (thanks to Sartak)
2347 - added tests for this
2349 * Moose::Meta::Method::Destructor
2350 - making sure DESTROY gets inlined properly
2351 with successive DEMOLISH calls (thanks to manito)
2353 * Moose::Meta::Attribute
2354 Moose::Meta::Method::Accessor
2355 - fixed handling of undef with type constraints
2357 - added tests for this
2360 - added &get_all_init_args and &get_all_attribute_values
2361 (thanks to Sartak and nothingmuch)
2363 0.36 Sat. Jan. 26, 2008
2365 Moose::Meta::Attribute
2366 - role type tests now support when roles are
2367 applied to non-Moose classes (found by ash)
2368 - added tests for this (thanks to ash)
2369 - couple extra tests to boost code coverage
2371 * Moose::Meta::Method::Constructor
2372 - improved fix for handling Class::MOP attributes
2373 - added test for this
2375 * Moose::Meta::Class
2376 - handled the add_attribute($attribute_meta_object)
2378 - added test for this
2380 0.35 Tues. Jan. 22, 2008
2381 * Moose::Meta::Method::Constructor
2382 - fix to make sure even Class::MOP attributes
2383 are handled correctly (Thanks to Dave Rolsky)
2384 - added test for this (also Dave Rolsky)
2386 * Moose::Meta::Class
2387 - improved error message on _apply_all_roles,
2388 you should now use Moose::Util::apply_all_roles
2389 and you shouldnt have been using a _ prefixed
2390 method in the first place ;)
2392 0.34 Mon. Jan. 21, 2008
2393 ~~~ more misc. doc. fixes ~~~
2394 ~~ updated copyright dates ~~
2396 Moose is now a postmodern object system :)
2397 - (see the POD for details)
2399 * <<Role System Refactoring>>
2400 - this release contains a major reworking and
2401 cleanup of the role system
2402 - 100% backwards compat.
2403 - Role application now restructured into seperate
2404 classes based on type of applicants
2405 - Role summation (combining of more than one role)
2406 is much cleaner and anon-classes are no longer
2407 used in this process
2408 - new Composite role metaclass
2409 - runtime application of roles to instances
2410 is now more efficient and re-uses generated
2411 classes when applicable
2413 * <<New Role composition features>>
2414 - methods can now be excluded from a given role
2416 - methods can now be aliased to another name (and
2417 still retain the original as well)
2419 * Moose::Util::TypeConstraints::OptimizedConstraints
2420 - added this module (see above)
2422 * Moose::Meta::Class
2423 - fixed the &_process_attribute method to be called
2424 by &add_attribute, so that the API is now correct
2426 * Moose::Meta::Method::Accessor
2427 - fixed bug when passing a list of values to
2428 an accessor would get (incorrectly) ignored.
2429 Thanks to Sartak for finding this ;)
2430 - added tests for this (Sartak again)
2432 * Moose::Meta::Method::Accessor
2433 Moose::Meta::Method::Constructor
2434 Moose::Meta::Attribute
2435 Moose::Meta::TypeConstraint
2436 Moose::Meta::TypeCoercion
2437 - lots of cleanup of such things as:
2439 - type constraint handling
2440 - error handling/messages
2441 (thanks to nothingmuch)
2443 * Moose::Meta::TypeConstraint::Parameterizable
2444 - added this module to support the refactor
2445 in Moose::Meta::TypeConstraint::Parameterized
2447 * Moose::Meta::TypeConstraint::Parameterized
2448 - refactored how these types are handled so they
2449 are more generic and not confined to ArrayRef
2453 - shortened some file names for better VMS support (RT #32381)
2455 0.33 Fri. Dec. 14, 2007
2456 !! Moose now loads 2 x faster !!
2457 !! with new Class::MOP 0.49 !!
2459 ++ new oose.pm module to make command line
2460 Moose-ness easier (see POD docs for more)
2462 * Moose::Meta::Class
2464 - several tweaks to take advantage of the
2465 new method map caching in Class::MOP
2467 * Moose::Meta::TypeConstraint::Parameterized
2468 - allow subtypes of ArrayRef and HashRef to
2469 be used as a container (sartak)
2470 - added tests for this
2471 - basic support for coercion to ArrayRef and
2472 HashRef for containers (sartak)
2473 - added tests for this
2475 * Moose::Meta::TypeCoercion
2476 - coercions will now create subtypes as needed
2477 so you can now add coercions to parameterized
2478 types without having to explictly define them
2479 - added tests for this
2481 * Moose::Meta::Method::Accessor
2482 - allow subclasses to decide whether we need
2483 to copy the value into a new variable (sartak)
2485 0.32 Tues. Dec. 4, 2007
2486 * Moose::Util::TypeConstraints
2487 - fixing how subtype aliases of unions work
2488 they should inherit the parent's coercion
2489 - added tests for this
2490 - you can now define multiple coercions on
2491 a single type at different times instead of
2492 having to do it all in one place
2493 - added tests for this
2495 * Moose::Meta::TypeConstraint
2496 - there is now a default constraint of sub { 1 }
2497 instead of Moose::Util::TypeConstraints setting
2500 * Moose::Meta::TypeCoercion
2501 * Moose::Meta::TypeCoercion::Union
2502 - added the &has_coercion_for_type and
2503 &add_type_coercions methods to support the
2504 new features above (although you cannot add
2505 more type coercions for Union types)
2507 0.31 Mon. Nov. 26, 2007
2508 * Moose::Meta::Attribute
2509 - made the +attr syntax handle extending types with
2510 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2511 now works if the original foo is an ArrayRef.
2512 - added tests for this.
2513 - delegation now works even if the attribute does not
2514 have a reader method using the get_read_method_ref
2515 method from Class::MOP::Attribute.
2516 - added tests for this
2517 - added docs for this
2519 * Moose::Util::TypeConstraints
2520 - passing no "additional attribute info" to
2521 &find_or_create_type_constraint will no longer
2522 attempt to create an __ANON__ type for you,
2523 instead it will just return undef.
2524 - added docs for this
2526 0.30 Fri. Nov. 23, 2007
2527 * Moose::Meta::Method::Constructor
2528 -builder related bug in inlined constructor. (groditi)
2530 * Moose::Meta::Method::Accessor
2531 - genereate unnecessary calls to predicates and refactor
2532 code generation for runtime speed (groditi)
2534 * Moose::Util::TypeConstraints
2535 - fix ClassName constraint to introspect symbol table (mst)
2536 - added more tests for this (mst)
2537 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2538 with work correctly.
2539 - added tests for this
2542 - adding the link to Recipie 11 (written by Sartak)
2543 - adding test for SYNOPSIS code
2546 - New tests for builder bug. Upon instantiation, if an
2547 attribute had a builder, no value and was not lazy the
2548 builder default was not getting run, oops. (groditi)
2550 0.29 Tues. Nov. 13, 2007
2551 * Moose::Meta::Attribute
2552 - Fix error message on missing builder method (groditi)
2554 * Moose::Meta::Method::Accessor
2555 - Fix error message on missing builder method (groditi)
2558 - Add test to check for the correct error message when
2559 builder method is missing (groditi)
2561 0.28 Tues. Nov. 13, 2007
2562 - 0.27 packaged incorrectly (groditi)
2564 0.27 Tues. Nov. 13, 2007
2565 * Moose::Meta::Attribute
2566 - Added support for the new builder option (groditi)
2567 - Added support for lazy_build option (groditi)
2568 - Changed slot initialization for predicate changes (groditi)
2570 * Moose::Meta::Method::Accessor
2571 - Added support for lazy_build option (groditi)
2572 - Fix inline methods to work with corrected predicate
2575 * Moose::Meta::Method::Constructor
2576 - Added support for lazy_build option (groditi)
2579 - tests for builder and lazy_build (groditi)
2581 * fixing some misc. bits in the docs that
2582 got mentioned on CPAN Forum & perlmonks
2585 - fixed how required methods are handled
2586 when they encounter overriden or modified
2587 methods from a class (thanks to confound).
2588 - added tests for this
2590 * Moose::Util::TypeConstraint
2591 - fixed the type notation parser so that
2592 the | always creates a union and so is
2593 no longer a valid type char (thanks to
2594 konobi, mugwump and #moose for working
2596 - added more tests for this
2598 0.26 Thurs. Sept. 27, 2007
2601 * Parameterized Types
2602 We now support parameterized collection types, such as:
2603 ArrayRef[Int] # array or integers
2604 HashRef[Object] # a hash with object values
2605 They can also be nested:
2606 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2607 And work with the type unions as well:
2608 ArrayRef[Int | Str] # array of integers of strings
2610 * Better Framework Extendability
2611 Moose.pm is now "extendable" such that it is now much
2612 easier to extend the framework and add your own keywords
2613 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2614 section of the Moose.pm docs.
2617 In an effort to begin documenting some of the various
2618 details of Moose as well as some common idioms, we have
2619 created Moose::Cookbook::Snacks as a place to find
2620 small (easily digestable) nuggets of Moose code.
2623 ~ Several doc updates/cleanup thanks to castaway ~
2625 - converted build system to use Module::Install instead of
2626 Module::Build (thanks to jrockway)
2629 - added all the meta classes to the immutable list and
2630 set it to inline the accessors
2631 - fix import to allow Sub::Exporter like { into => }
2632 and { into_level => } (perigrin)
2633 - exposed and documented init_meta() to allow better
2634 embedding and extending of Moose (perigrin)
2637 - complete re-organization of the test suite
2638 - added some new tests as well
2639 - finally re-enabled the Moose::POOP test since
2640 the new version of DBM::Deep now works again
2643 * Moose::Meta::Class
2644 - fixed very odd and very nasty recursion bug with
2646 - added tests for this (eilara)
2648 * Moose::Meta::Attribute
2649 Moose::Meta::Method::Constructor
2650 Moose::Meta::Method::Accessor
2651 - fixed issue with overload::Overloaded getting called
2652 on non-blessed items. (RT #29269)
2653 - added tests for this
2655 * Moose::Meta::Method::Accessor
2656 - fixed issue with generated accessor code making
2657 assumptions about hash based classes (thanks to dexter)
2659 * Moose::Coookbook::Snacks
2660 - these are bits of documentation, not quite as big as
2661 Recipes but which have no clear place in the module docs.
2662 So they are Snacks! (horray for castaway++)
2664 * Moose::Cookbook::Recipe4
2665 - updated it to use the new ArrayRef[MyType] construct
2666 - updated the accompanying test as well
2668 +++ Major Refactor of the Type Constraint system +++
2669 +++ with new features added as well +++
2671 * Moose::Util::TypeConstraint
2672 - no longer uses package variable to keep track of
2673 the type constraints, now uses the an instance of
2674 Moose::Meta::TypeConstraint::Registry to do it
2675 - added more sophisticated type notation parsing
2677 - added tests for this
2679 * Moose::Meta::TypeConstraint
2680 - some minor adjustments to make subclassing easier
2681 - added the package_defined_in attribute so that we
2682 can track where the type constraints are created
2684 * Moose::Meta::TypeConstraint::Union
2685 - this is now been refactored to be a subclass of
2686 Moose::Meta::TypeConstraint
2688 * Moose::Meta::TypeCoercion::Union
2689 - this has been added to service the newly refactored
2690 Moose::Meta::TypeConstraint::Union and is itself
2691 a subclass of Moose::Meta::TypeCoercion
2693 * Moose::Meta::TypeConstraint::Parameterized
2694 - added this module (taken from MooseX::AttributeHelpers)
2695 to help construct nested collection types
2696 - added tests for this
2698 * Moose::Meta::TypeConstraint::Registry
2699 - added this class to keep track of type constraints
2701 0.25 Mon. Aug. 13, 2007
2703 - Documentation update to reference Moose::Util::TypeConstraints
2704 under 'isa' in 'has' for how to define a new type
2705 (thanks to shlomif).
2707 * Moose::Meta::Attribute
2708 - required attributes now will no longer accept undef
2709 from the constructor, even if there is a default and lazy
2710 - added tests for this
2711 - default subroutines must return a value which passes the
2713 - added tests for this
2715 * Moose::Meta::Attribute
2716 * Moose::Meta::Method::Constructor
2717 * Moose::Meta::Method::Accessor
2718 - type-constraint tests now handle overloaded objects correctly
2719 in the error message
2720 - added tests for this (thanks to EvanCarroll)
2722 * Moose::Meta::TypeConstraint::Union
2723 - added (has_)hand_optimized_constraint to this class so that
2724 it behaves as the regular Moose::Meta::TypeConstraint does.
2727 - large refactoring of this code
2728 - added several more tests
2729 - tests for subtle conflict resolition issues
2730 added, but not currently running
2733 * Moose::Cookbook::Recipe7
2734 - added new recipe for augment/inner functionality
2736 - added test for this
2739 - a formal definition of roles (still in progress)
2742 - utilities for easier working with Moose classes
2743 - added tests for these
2746 - This contains Moose specific test functions
2747 - added tests for these
2749 0.24 Tues. July 3, 2007
2750 ~ Some doc updates/cleanup ~
2752 * Moose::Meta::Attribute
2753 - added support for roles to be given as parameters
2754 to the 'handles' option.
2755 - added tests and docs for this
2756 - the has '+foo' attribute form now accepts changes to
2757 the lazy option, and the addition of a handles option
2758 (but not changing the handles option)
2759 - added tests and docs for this
2762 - required methods are now fetched using find_method_by_name
2763 so that required methods can come from superclasses
2764 - adjusted tests for this
2766 0.23 Mon. June 18, 2007
2767 * Moose::Meta::Method::Constructor
2768 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2769 * Moose::Meta::Class
2770 - Modify make_immutable to work with the new Class::MOP immutable
2771 mechanism + POD + very basic test (groditi)
2772 * Moose::Meta::Attribute
2773 - Fix handles to use goto() so that caller() comes out properly on
2774 the other side (perigrin)
2776 0.22 Thurs. May 31, 2007
2777 * Moose::Util::TypeConstraints
2778 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2779 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2780 prototypes for functions
2781 - added the ClassName type constraint, this checks for strings
2782 which will respond true to ->isa(UNIVERSAL).
2783 - added tests and docs for this
2784 - subtyping just in name now works correctly by making the
2785 default for where be { 1 }
2786 - added test for this
2788 * Moose::Meta::Method::Accessor
2789 - coerce and lazy now work together correctly, thanks to
2790 merlyn for finding this bug
2791 - tests added for this
2792 - fix reader presedence bug in Moose::Meta::Attribute + tests
2795 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2796 a HASH-ref and missed. This produces better error messages then
2797 having it die cause undef is not a HASH.
2798 - added tests for this
2800 0.21 Thursday, May 2nd, 2007
2802 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2803 - modified unimport to remove super and inner along with the rest
2804 - altered unimport tests to handle this
2807 - altered super export to populate SUPER_SLOT
2809 * Moose::Meta::Class
2810 - altered augment and override modifier application to use *_SLOT
2811 - modified tests for these to unimport one test class each to test
2814 - fixed issue where custom attribute metaclasses
2815 where not handled correctly in roles
2816 - added tests for this
2818 * Moose::Meta::Class
2819 - fixed issue where extending metaclasses with
2820 roles would blow up. Thanks to Aankhen`` for
2821 finding this insidious error, and it's solution.
2823 ~~ lots of spelling and grammer fixes in the docs,
2824 many many thanks to rlb3 and Aankhen for these :)
2826 0.20 Friday, April 6th, 2007
2827 >> I messed up the SKIP logic in one test
2828 so this release is just to fix that.
2831 - 'has' now also accepts an ARRAY ref
2832 to create multiple attrs (see docs)
2833 (thanks to konobi for this)
2834 - added tests and docs
2836 0.19 Thurs. April 5th, 2007
2837 ~~ More documentation updates ~~
2839 * Moose::Util::TypeConstraints
2840 - 'type' now supports messages as well
2841 thanks to phaylon for finding this
2842 - added tests for this
2843 - added &list_all_type_constraints and
2844 &list_all_builtin_type_constraints
2845 functions to facilitate introspection.
2847 * Moose::Meta::Attribute
2848 - fixed regexp 'handles' declarations
2849 to build the list of delegated methods
2850 correctly (and not override important
2851 things like &new) thanks to ashleyb
2853 - added tests and docs for this
2854 - added the 'documentation' attributes
2855 so that you can actually document your
2856 attributes and inspect them through the
2858 - added tests and docs for this
2860 * Moose::Meta::Class
2861 - when loading custom attribute metaclasses
2862 it will first look in for the class in the
2863 Moose::Meta::Attribute::Custom::$name, and
2864 then default to just loading $name.
2865 - added tests and docs for this
2867 * Moose::Meta::TypeConstraint
2868 - type constraints now stringify to their names.
2869 - added test for this
2872 - added tests to assure we work with Module::Refresh
2873 - added stricter test skip logic in the Moose POOP
2874 test, ask Rob Kinyon why.
2875 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2877 0.18 Sat. March 10, 2007
2878 ~~ Many, many documentation updates ~~
2881 - We now use Class::MOP::load_class to
2883 - added tests to show types and subtypes
2884 working with Declare::Constraints::Simple
2885 and Test::Deep as constraint engines.
2888 !! You must have Class::MOP 0.37_001 !!
2889 !! for this developer release to work !!
2891 This release was primarily adding the immutable
2892 feature to Moose. An immutable class is one which
2893 you promise not to alter. When you set the class
2894 as immutable it will perform various bits of
2895 memoization and inline certain part of the code
2896 (constructors, destructors and accessors). This
2897 minimizes (and in some cases totally eliminates)
2898 one of Moose's biggest performance hits. This
2899 feature is not on by default, and is 100% optional.
2900 It has several configurable bits as well, so you
2901 can pick and choose to your specific needs.
2903 The changes involved in this were fairly wide and
2904 highly specific, but 100% backwards compatible, so
2905 I am not going to enumerate them here. If you are
2906 truely interested in what was changed, please do
2909 0.17 Tues. Nov. 14, 2006
2910 * Moose::Meta::Method::Accessor
2911 - bugfix for read-only accessors which
2912 are have a type constraint and lazy.
2913 Thanks to chansen for finding it.
2915 0.16 Tues. Nov. 14, 2006
2917 There are some speed improvements in this release,
2918 but they are only the begining, so stay tuned.
2921 - BUILDALL and DEMOLISHALL no longer get
2922 called unless they actually need to be.
2923 This gave us a signifigant speed boost
2924 for the cases when there is no BUILD or
2925 DEMOLISH method present.
2927 * Moose::Util::TypeConstraints
2928 * Moose::Meta::TypeConstraint
2929 - added an 'optimize_as' option to the
2930 type constraint, which allows for a
2931 hand optimized version of the type
2932 constraint to be used when possible.
2933 - Any internally created type constraints
2934 now provide an optimized version as well.
2936 0.15 Sun. Nov. 5, 2006
2938 This version of Moose *must* have Class::MOP 0.36 in order
2939 to work correctly. A number of small internal tweaks have
2940 been made in order to be compatible with that release.
2942 * Moose::Util::TypeConstraints
2943 - added &unimport so that you can clean out
2944 your class namespace of these exported
2947 * Moose::Meta::Class
2948 - fixed minor issue which occasionally
2949 comes up during global destruction
2951 - moved Moose::Meta::Method::Overriden into
2955 - moved Moose::Meta::Role::Method into
2958 * Moose::Meta::Attribute
2959 - changed how we do type checks so that
2960 we reduce the overall cost, but still
2963 - moved accessor generation methods to
2964 Moose::Meta::Method::Accessor to
2965 conform to the API changes from
2968 * Moose::Meta::TypeConstraint
2969 - changed how constraints are compiled
2970 so that we do less recursion and more
2971 iteration. This makes the type check
2973 - moved Moose::Meta::TypeConstraint::Union
2976 * Moose::Meta::Method::Accessor
2977 - created this from methods formerly found in
2978 Moose::Meta::Attribute
2980 * Moose::Meta::Role::Method
2981 - moved this from Moose::Meta::Role
2983 * Moose::Meta::Method::Overriden
2984 - moved this from Moose::Meta::Class
2986 * Moose::Meta::TypeConstraint::Union
2987 - moved this from Moose::Meta::TypeConstraint
2989 0.14 Mon. Oct. 9, 2006
2991 * Moose::Meta::Attribute
2992 - fixed lazy attributes which were not getting
2993 checked with the type constraint (thanks ashley)
2994 - added tests for this
2995 - removed the over-enthusiastic DWIMery of the
2996 automatic ArrayRef and HashRef defaults, it
2997 broke predicates in an ugly way.
2998 - removed tests for this
3000 0.13 Sat. Sept. 30, 2006
3002 This version of Moose *must* have Class::MOP 0.35 in order
3003 to work correctly. A number of small internal tweaks have
3004 been made in order to be compatible with that release.
3007 - Removed the use of UNIVERSAL::require to be a better
3008 symbol table citizen and remove a dependency
3009 (thanks Adam Kennedy)
3011 **~~ removed experimental & undocumented feature ~~**
3012 - commented out the 'method' and 'self' keywords, see the
3013 comments for more info.
3016 - added a FAQ and WTF files to document frequently
3017 asked questions and common problems
3019 * Moose::Util::TypeConstraints
3020 - added GlobRef and FileHandle type constraint
3021 - added tests for this
3023 * Moose::Meta::Attribute
3024 - if your attribute 'isa' ArrayRef of HashRef, and you have
3025 not explicitly set a default, then make the default DWIM.
3026 This will also work for subtypes of ArrayRef and HashRef
3028 - you can now auto-deref subtypes of ArrayRef or HashRef too.
3029 - new test added for this (thanks to ashley)
3032 - added basic support for runtime role composition
3033 but this is still *highly experimental*, so feedback
3034 is much appreciated :)
3035 - added tests for this
3037 * Moose::Meta::TypeConstraint
3038 - the type constraint now handles the coercion process
3039 through delegation, this is to support the coercion
3042 * Moose::Meta::TypeConstraint::Union
3043 - it is now possible for coercions to be performed
3045 - added tests for this (thanks to konobi)
3047 * Moose::Meta::TypeCoercion
3048 - properly capturing error when type constraint
3052 - Scalar::Util 1.18 is bad on Win32, so temporarily
3053 only require version 1.17 for Win32 and cygwin.
3054 (thanks Adam Kennedy)
3056 0.12 Sat. Sept. 1, 2006
3058 - Recipe5 (subtypes & coercion) has been written
3061 - fixed "bad meta" error message to be more descriptive
3062 - fixed &unimport to not remove the &inner and &super
3063 keywords because we need to localize them.
3064 - fixed number of spelling/grammer issues, thanks Theory :)
3066 **~~ experimental & undocumented feature ~~**
3067 - added the method and self keywords, they are basically
3068 just sugar, and they may not stay around.
3071 - added &dump method to easily Data::Dumper
3074 * Moose::Meta::TypeConstraint
3075 - added the &is_a_type_of method to check both the current
3076 and the subtype of a method (similar to &isa with classes)
3079 - this is now a subclass of Class::MOP::Module, and no longer
3080 creates the _role_meta ugliness of before.
3081 - fixed tests to reflect this change
3083 0.11 Wed. July 12, 2006
3085 - added an &unimport method to remove all the keywords
3086 that Moose will import, simply add 'no Moose' to the
3087 bottom of your class file.
3090 - fixed some test failures caused by a forgotten test
3093 0.10 Thurs. July 6, 2006
3095 - improved error message when loading modules so
3096 it is less confusing when you load a role.
3097 - added &calculate_all_roles method to
3098 Moose::Meta::Class and Moose::Meta::Role
3101 This module has been tested against Class::MOP 0.30
3102 but it does not yet utilize the optimizations
3103 it makes available. Stay tuned for that ;)
3105 0.09_03 Fri. June 23, 2006
3106 ++ DEVELOPER RELEASE ++
3108 - 'use strict' and 'use warnings' are no longer
3109 needed in Moose classes, Moose itself will
3110 turn them on for you.
3111 - added tests for this
3112 - moved code from exported subs to private methods
3113 in Moose::Meta::Class
3116 - as with Moose, strict and warnings are
3117 automatically turned on for you.
3118 - added tests for this
3121 - now handles an edge case for override errors
3122 - added tests for this
3123 - added some more edge case tests
3125 0.09_02 Tues. May 16, 2006
3126 ++ DEVELOPER RELEASE ++
3128 - added prototypes to the exported subs
3132 - added prototypes to the exported subs
3135 * Moose::Util::TypeConstraints
3136 - cleaned up prototypes for the subs
3139 0.09_01 Fri. May 12, 2006
3140 ++ DEVELOPER RELEASE ++
3141 - This release works in combination with
3142 Class::MOP 0.29_01, it is a developer
3143 release because it uses the a new
3144 instance sub-protocol and a fairly
3145 complete Role implementation. It has
3146 not yet been optimized, so it slower
3147 the the previous CPAN version. This
3148 release also lacks good updated docs,
3149 the official release will have updated docs.
3152 - refactored the keyword exports
3153 - 'with' now checks Role validaity and
3154 accepts more than one Role at a time
3155 - 'extends' makes metaclass adjustments as
3156 needed to ensure metaclass compatibility
3159 - refactored the keyword exports
3160 - 'with' now checks Role validaity and
3161 accepts more than one Role at a time
3163 * Moose::Util::TypeConstraints
3164 - added the 'enum' keyword for simple
3165 string enumerations which can be used as
3167 - see example of usage in t/202_example.t
3170 - more careful checking of params to new()
3173 - much work done on the role composition
3174 - many new tests for conflict detection
3175 and composition edge cases
3176 - not enough documentation, I suggest
3177 looking at the tests
3179 * Moose::Meta::Instance
3180 - added new Instance metaclass to support
3181 the new Class::MOP instance protocol
3183 * Moose::Meta::Class
3184 - some small changes to support the new
3186 - some small additions to support Roles
3188 * Moose::Meta::Attribute
3189 - some improvements to the accessor generation code
3191 - some small changes to support the new
3193 - (still somewhat) experimental delegation support
3194 with the 'handles' option
3195 - added several tests for this
3196 - no docs for this yet
3198 0.05 Thurs. April 27, 2006
3200 - keywords are now exported with Sub::Exporter
3201 thanks to chansen for this commit
3202 - has keyword now takes a 'metaclass' option
3203 to support custom attribute meta-classes
3204 on a per-attribute basis
3205 - added tests for this
3206 - the 'has' keyword not accepts inherited slot
3207 specifications (has '+foo'). This is still an
3208 experimental feature and probably not finished
3209 see t/038_attribute_inherited_slot_specs.t for
3210 more details, or ask about it on #moose
3211 - added tests for this
3214 - keywords are now exported with Sub::Exporter
3216 * Moose::Utils::TypeConstraints
3217 - reorganized the type constraint hierarchy, thanks
3218 to nothingmuch and chansen for his help and advice
3220 - added some tests for this
3221 - keywords are now exported with Sub::Exporter
3222 thanks to chansen for this commit
3224 * Moose::Meta::Class
3225 - due to changes in Class::MOP, we had to change
3226 construct_instance (for the better)
3228 * Moose::Meta::Attribute
3229 - due to changes in Class::MOP, we had to add the
3230 initialize_instance_slot method (it's a good thing)
3232 * Moose::Meta::TypeConstraint
3233 - added type constraint unions
3234 - added tests for this
3235 - added the is_subtype_of predicate method
3236 - added tests for this
3238 0.04 Sun. April 16th, 2006
3240 - Roles can now consume other roles
3241 - added tests for this
3242 - Roles can specify required methods now with
3243 the requires() keyword
3244 - added tests for this
3247 - ripped out much of it's guts ,.. much cleaner now
3248 - added required methods and correct handling of
3249 them in apply() for both classes and roles
3250 - added tests for this
3251 - no longer adds a does() method to consuming classes
3252 it relys on the one in Moose::Object
3253 - added roles attribute and some methods to support
3254 roles consuming roles
3256 * Moose::Meta::Attribute
3257 - added support for triggers on attributes
3258 - added tests for this
3259 - added support for does option on an attribute
3260 - added tests for this
3262 * Moose::Meta::Class
3263 - added support for attribute triggers in the
3265 - added tests for this
3268 - Moose no longer creates a subtype for your class
3269 if a subtype of the same name already exists, this
3270 should DWIM in 99.9999% of all cases
3272 * Moose::Util::TypeConstraints
3273 - fixed bug where incorrect subtype conflicts were
3275 - added test for this
3278 - this class can now be extended with 'use base' if
3279 you need it, it properly loads the metaclass class now
3280 - added test for this
3282 0.03_02 Wed. April 12, 2006
3284 - you must now explictly use Moose::Util::TypeConstraints
3285 it no longer gets exported for you automatically
3288 - new() now accepts hash-refs as well as key/value lists
3289 - added does() method to check for Roles
3290 - added tests for this
3292 * Moose::Meta::Class
3293 - added roles attribute along with the add_role() and
3295 - added tests for this
3298 - now adds a does() method to consuming classes
3299 which tests the class's hierarchy for roles
3300 - added tests for this
3302 0.03_01 Mon. April 10, 2006
3304 - added new Role recipe (no content yet, only code)
3307 - added 'with' keyword for Role support
3308 - added test and docs for this
3309 - fixed subtype quoting bug
3310 - added test for this
3314 - added test and docs
3316 * Moose::Util::TypeConstraints
3317 - added the message keyword to add custom
3318 error messages to type constraints
3321 - the meta role to support Moose::Role
3322 - added tests and docs
3324 * Moose::Meta::Class
3325 - moved a number of things from Moose.pm
3326 to here, they should have been here
3329 * Moose::Meta::Attribute
3330 - moved the attribute option macros here
3331 instead of putting them in Moose.pm
3333 * Moose::Meta::TypeConstraint
3334 - added the message attributes and the
3336 - added tests and docs for this
3338 0.03 Thurs. March 30, 2006
3340 - added the Moose::Cookbook with 5 recipes,
3341 describing all the stuff Moose can do.
3344 - fixed an issue with &extends super class loading
3345 it now captures errors and deals with inline
3346 packages correctly (bug found by mst, solution
3348 - added super/override & inner/augment features
3349 - added tests and docs for these
3352 - BUILDALL now takes a reference of the %params
3353 that are passed to &new, and passes that to
3356 * Moose::Util::TypeConstraints
3357 - Type constraints now survive runtime reloading
3358 - added test for this
3360 * Moose::Meta::Class
3361 - fixed the way attribute defaults are handled
3362 during instance construction (bug found by chansen)
3364 * Moose::Meta::Attribute
3365 - read-only attributes now actually enforce their
3366 read-only-ness (this corrected in Class::MOP as
3369 0.02 Tues. March 21, 2006
3371 - many more tests, fixing some bugs and
3373 - &extends now loads the base module with
3375 - added UNIVERSAL::require to the
3378 - each new Moose class will also create
3379 and register a subtype of Object which
3380 correspond to the new Moose class.
3381 - the 'isa' option in &has now only
3382 accepts strings, and will DWIM in
3385 * Moose::Util::TypeConstraints
3386 - added type coercion features
3387 - added tests for this
3388 - added support for this in attributes
3389 and instance construction
3391 - type construction no longer creates a
3392 function, it registers the type instead.
3393 - added several functions to get the
3397 - BUILDALL and DEMOLISHALL were broken
3398 because of a mis-named hash key, Whoops :)
3400 * Moose::Meta::Attribute
3401 - adding support for coercion in the
3402 autogenerated accessors
3404 * Moose::Meta::Class
3405 - adding support for coercion in the
3406 instance construction
3408 * Moose::Meta::TypeConstraint
3409 * Moose::Meta::TypeCoercion
3410 - type constraints and coercions are now
3411 full fledges meta-objects
3413 0.01 Wed. March 15, 2006
3414 - Moooooooooooooooooose!!!