1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Almost every native delegation method which changes the attribute value
9 now has an explicitly documented return value. In general, this return
10 value matches what Perl would return for the same operation. (Dave Rolsky)
12 * Lots of work on native delegation documentation, including documenting
13 what arguments each native delegation method allows or requires. (Dave
18 * A number of native trait methods which expected strings as arguments did
19 not allow the empty string. This included Array->join, String->match,
20 String->replace, and String->substr. Reported by Whitney Jackson. RT
23 * 'no Moose' no longer inadvertently removes imports it didn't create
24 itself. RT #60013. (Florian Ragwitz, doy)
26 * Roles now support passing an array reference of method names to method
27 modifier sugar functions. (doy)
29 * Native traits no longer use optimized inlining routines if the instance
30 requests it (in particular, if inline_get_slot_value doesn't return
31 something that can be assigned to). This should fix issues with
34 * We now ignore all Class::MOP and Moose classes when determining what
35 package called a deprecated feature. This should make the deprecation
36 warnings saner, and make it possible to turn them off more easily.
38 * The deprecated "default is" warning no longer happens is the attribute has
39 any accessor method defined (accessor, reader, writer).
41 * The "default default" code for some native delegations no longer issues a
42 deprecation warning when the attribute is required or has a builder.
44 * Setting a "default default" caused a fatal error if you used the builder
45 or lazy_build options for the attribute. Reported by Kent Fredric. RT
52 * Major changes to Native Traits, most of which make them act more like
53 "normal" attributes. This should be mostly compatible with existing code,
54 but see Moose::Manual::Delta for details.
56 * A few native traits (String, Counter, Bool) provide default values of "is"
57 and "default" when you created an attribute. Allowing them to provide
58 these values is now deprecated. Supply the value yourself when creating
61 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
62 generate non-global aliases for your traits (and allow your users to
63 rename the aliases, etc). (doy)
65 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
66 determine which name to install the 'meta' name under. Passing 'undef'
67 to this option will suppress generation of the meta method entirely. (doy)
69 * Moose now warns if it overwrites an existing method named "meta" in your
70 class when you "use Moose". (doy)
74 * Native Trait delegations are now all generated as inline code. This should
75 be much faster than the previous method of delegation. In the best case,
76 native trait methods will be very highly optimized.
78 * Reinitializing a metaclass no longer removes the existing method and
79 attribute objects (it instead fixes them so they are correct for the
80 reinitialized metaclass). This should make the order of loading many
81 MooseX modules less of an issue. (doy)
83 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
87 * If an attribute was weak, setting it to a non-ref value after the object
88 was constructed caused an error. Now we only call weaken when the new
91 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
92 based on a patch from Andreas Koenig.
94 1.14 Tue, Sep 21, 2010
98 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
99 a weird error when defining the same union type twice, but only when using
100 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
102 1.13 Mon, Sep 13, 2010
106 * The deprecation warnings for alias and excludes are back, use -alias and
107 -excludes instead. (Dave Rolsky)
111 * When composing one role into another and there is an attribute conflict,
112 the error message now includes the attribute name. Reported by Sam
113 Graham. RT #59985. (Dave Rolsky)
115 * When a class is made immutable, the does_role method is overridden with a
116 much faster version that simply looks role names up in a hash. Code which
117 uses lots of role-based type constraints should be faster. (Dave Rolsky)
119 1.12 Sat, Aug 28, 2010
123 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
125 1.11 Fri, Aug 27, 2010
129 * An attribute in a subclass can now override the value of "is". (doy)
131 * The deprecation warnings for alias and excludes have been turned back off
132 for this release, to give other module authors a chance to tweak their
137 * mro::get_linear_isa was being called as a function rather than a method,
138 which caused problems with Perl 5.8.x. (t0m)
140 * Union types always created a type constraint, even if their constituent
141 constraints did not have any coercions. This bogus coercion always
142 returned undef, which meant that a union which included Undef as a member
143 always coerced bad values to undef. Reported by Eric Brine. RT
144 #58411. (Dave Rolsky)
146 * Union types with coercions would always fall back to coercing the value to
147 undef (unintentionally). Now if all the coercions for a union type fail,
148 the value returned by the coercion is the original value that we attempted
149 to coerce. (Dave Rolsky).
151 1.10 Sun, Aug 22, 2010
155 * The long-deprecated alias and excludes options for role applications now
156 issue a deprecation warning. Use -alias and -excludes instead. (Dave
161 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
163 * default => undef now works properly. (doy)
165 * Enum type constraints now throw errors if their values are nonsensical.
170 * Optimizations that should help speed up compilation time (Dave Rolsky).
172 1.09 Tue, Jul 25, 2010
176 * You can no longer pass "coerce => 1" for an attribute unless its type
177 constraint has a coercion defined. Doing so will issue a deprecation
178 warning. (Dave Rolsky)
180 * Previously, '+foo' only allowed a specific set of options to be
181 overridden, which made it impossible to change attribute options related
182 to extensions. Now we blacklist some options, and anything else is
183 allowed. (doy, Tuomas Jormola)
185 * Most features which have been declared deprecated now issue a warning using
186 Moose::Deprecated. Warnings are issued once per calling package, not
187 repeatedly. See Moose::Deprecated for information on how you can shut
188 these warnings up entirely. Note that deprecated features will eventually
189 be removed, so shutting up the warnings may not be the best idea. (Dave
192 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
197 * We no longer unimport strict and warnings when Moose, Moose::Role, or
198 Moose::Exporter are unimported. Doing this was broken if the user
199 explicitly loaded strict and warnings themself, and the results could be
200 generally surprising. We decided that it was best to err on the side of
201 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
204 * New with_traits helper function in Moose::Util. (doy)
208 * Accessors will no longer be inlined if the instance metaclass isn't
211 * Use Perl 5.10's new recursive regex features, if possible, for the type
212 constraint parser. (doy, nothingmuch)
216 * Attributes now warn if their accessors overwrite a locally defined
217 function (not just method). (doy)
221 * Bump our required perl version to 5.8.3, since earlier versions fail tests
222 and aren't easily installable/testable.
224 1.08 Tue, Jun 15, 2010
228 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
229 to be overridden more easily (doy).
231 1.07 Sat, Jun 05, 2010
235 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
236 classes and non-class metaclass traits (doy, dougdude).
238 1.06 Tue, Jun 01, 2010
242 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
243 more uniformly compare type constraints between 'classic' Moose type
244 constraints and MooseX::Types based type constraints.
246 1.05 Thu, May 20, 2010
250 * Packages and modules no longer have methods - this functionality was
251 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
252 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
254 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
255 Moose::Object::new. (doy)
259 * strict and warnings are now unimported when Moose, Moose::Role, or
260 Moose::Exporter are unimported. (doy, Adam Kennedy)
262 * Added a 'consumers' method to Moose::Meta::Role for finding all
263 classes/roles which consume the given role. (doy)
267 * Fix has '+attr' in Roles to explode immediately, rather than when the role
268 is applied to a class (t0m).
270 * Fix type constraint validation messages to not include the string 'failed'
271 twice in the same sentence (Florian Ragwitz).
273 * New type constraints will default to being unequal, rather than equal
276 * The tests no longer check for perl's behavior of clobbering $@, which has
277 been fixed in perl-5.13.1 (Florian Ragwitz).
279 * Metaclass compatibility fixing has been completely rewritten, and should
280 be much more robust. (doy)
282 1.04 Thu, May 20, 2010
284 * This release was broken and has been deleted from CPAN shortly after its
287 1.03 Thu, May 06, 2010
291 * Allow specifying required versions when setting superclasses or applying
292 roles (Florian Ragwitz).
294 1.02 Sat, May 01, 2010
298 * Stop the natatime method provided by the native Array trait from returning
299 an exhausted iterator when being called with a callback. (Florian Ragwitz)
301 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
304 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
305 the class the TC represents as an argument incorrectly returned true. This
306 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
308 * Use File::Temp for temp files created during tests. Previously, files were
309 written to the t/ dir, which could cause problems of the user running the
310 tests did not have write access to that directory.. (Chris Weyl, Ævar
313 * Pass role arguments along when applying roles to instances. (doy, lsm)
315 1.01 Fri, Mar 26, 2010
319 * The handles option now also accepts a role type constraint in addition to a
320 plain role name. (Florian Ragwitz)
324 * Record the Sartak/doy debt properly in Changes (perigrin)
326 1.00 Tue, Mar 25, 2010
330 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
331 methods by default. (Florian Ragwitz)
335 * Improve various parts of the documentation and fix many typos.
336 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
340 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
342 0.99 Mon, Mar 8, 2010
346 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
347 which member of the union a given value validates for. (Cory Watson)
351 * DEMOLISH methods in mutable subclasses of immutable classes are now called
352 properly (Chia-liang Kao, Jesse Luehrs)
356 * Added Moose::Manual::Support that defines the support, compatiblity, and
357 release policies for Moose. (Chris Prather)
359 0.98 Wed, Feb 10, 2010
363 * An internals change in 0.97 broke role application to an instance in some
364 cases. The bug occurred when two different roles were applied to different
365 instances of the same class. (Rafael Kitover)
368 0.97 Tue, Feb 9, 2010
372 * Calling ->reinitialize on a cached anonymous class effectively uncached
373 the metaclass object, causing the metaclass to go out of scope
374 unexpectedly. This could easily happen at a distance by applying a
375 metarole to an anonymous class. (Dave Rolsky).
377 0.96 Sat, Feb 6, 2010
381 * ScalarRef is now a parameterized type. You can now specify a type
382 constraint for whatever the reference points to. (Closes RT#50857)
383 (Michael G. Schwern, Florian Ragwitz)
387 * ScalarRef now accepts references to other references. (Closes RT#50934)
390 0.95 Thu, Feb 4, 2010
394 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
395 a delegation option. This allows the code reference to be called as a
396 method on the object. (Florian Ragwitz)
400 * Moose::Object::does no longer checks the entire inheritance tree, since
401 Moose::Meta::Class::does_role already does this. (doy)
403 * Moose::Util::add_method_modifier (and subsequently the sugar functions
404 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
405 with the same behavior as lists. Types other than arrayref and regexp
406 result in an error. (Dylan Hardison)
408 0.94 Mon, Jan 18, 2010
412 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
416 * Improved support for anonymous roles by changing various APIs to take
417 Moose::Meta::Role objects as well as role names. This included
419 - Moose::Meta::Class->does_role
420 - Moose::Meta::Role->does_role
421 - Moose::Util::does_role
422 - Moose::Util::apply_all_roles
423 - Moose::Util::ensure_all_roles
424 - Moose::Util::search_class_by_role
426 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
430 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
431 work as long as the accessor method names are explicitly set to valid Perl
432 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
435 0.93_03 Tue, Jan 5, 2010
439 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
440 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
443 0.93_02 Tue, Jan 5, 2010
447 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
448 testers. (Dave Rolsky)
451 0.93_01 Mon, Jan 4, 2010
455 See Moose::Manual::Delta for more details on backwards compatiblity issues.
457 * Role attributes are now objects of the Moose::Meta::Role::Attribute
458 class. (Dave Rolsky).
460 * There were major changes to how metaroles are applied. We now distinguish
461 between metaroles for classes vs those for roles. See the
462 Moose::Util::MetaRole docs for details. (Dave Rolsky)
464 * The old MetaRole API has been deprecated, but will continue to
465 work. However, if you are applying an attribute metaclass role, this may
466 break because of the fact that roles now have an attribute metaclass
469 * Moose::Util::MetaRole::apply_metaclass_roles is now called
470 apply_metaroles. The old name is deprecated. Dave Rolsky>
472 * The unimport subs created by Moose::Exporter now clean up re-exported
473 functions like blessed and confess, unless the caller imported them from
474 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
476 [ENHANCEMENTS AND BUG FIXES]
478 * Changed the Str constraint to accept magic lvalue strings like one gets from
479 substr et al, again. (sorear)
481 * Sped up the type constraint parsing regex. (Sam Vilain)
483 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
486 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
487 easier testing of TypeConstraints from the command line. (perigrin)
489 * Added a with_immutable test function to Test::Moose, to run a block of tests
490 with and without certain classes being immutable. (doy)
492 * We now use Module::Install extensions explicitly to avoid confusing errors
493 if they're not installed. We use Module::Install::AuthorRequires to stop
494 test extraction and general failures if you don't have the author side
495 dependencies installed.
497 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
498 #51791. (Amir E. Aharoni)
501 0.93 Thu, Nov 19, 2009
503 - Calling $object->new() is no longer deprecated, and no longer
507 - The get_attribute_map method is now deprecated. (Dave Rolsky)
509 * Moose::Meta::Method::Delegation
510 - Preserve variable aliasing in @_ for delegated methods, so that
511 altering @_ affects the passed value. (doy)
513 * Moose::Util::TypeConstraints
514 - Allow array refs for non-anonymous form of enum and duck_type, not
515 just anonymous. The non-arrayref forms may be removed in the
517 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
518 - Properly document Int being a subtype of Str. (doy)
521 - Moose::Exporter using modules can now export their functions to the
522 main package. This applied to Moose and Moose::Role, among
523 others. (nothingmuch)
525 * Moose::Meta::Attribute
526 - Don't remove attribute accessors we never installed, during
527 remove_accessors. (doy)
529 * Moose::Meta::Attribute::Native::Trait::Array
530 - Don't bypass prototype checking when calling List::Util::first, to
531 avoid a segfault when it is called with a non-code argument. (doy)
533 * Moose::Meta::Attribute::Native::Trait::Code
534 - Fix passing arguments to code execute helpers. (doy)
536 0.92 Tue, Sep 22, 2009
537 * Moose::Util::TypeConstraints
538 - added the match_on_type operator (Stevan)
539 - added tests and docs for this (Stevan)
542 - Metaclass compat fixing should already happen recursively, there's no
543 need to explicitly walk up the inheritance tree. (doy)
545 * Moose::Meta::Attribute
546 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
548 0.91 Thu, Sep 17, 2009
550 - Don't import any functions, in order to avoid polluting our namespace
551 with things that can look like methods (blessed, try, etc)
554 * Moose::Meta::Method::Constructor
555 - The generated code needs to called Scalar::Util::blessed by its
556 fully-qualified name or else Perl can interpret the call to blessed as
557 an indirect method call. This broke Search::GIN, which in turn broke
558 KiokuDB. (nothingmuch)
560 0.90 Tue, Sep 15, 2009
561 * Moose::Meta::Attribute::Native::Trait::Counter
562 * Moose::Meta::Attribute::Native::Trait::String
563 - For these two traits, an attribute which did not explicitly provide
564 methods to handles magically ended up delegating *all* the helper
565 methods. This has been removed. You must be explicit in your handles
566 declaration for all Native Traits. (Dave Rolsky)
569 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
570 sure to rethrow its error message. However, we also localize $@ before
571 this so that if all the DEMOLISH methods success, the value of $@ will
572 be preserved. (nothingmuch and Dave Rolsky)
573 - We now also localize $? during object destruction. (nothingmuch and
575 - The handling of DEMOLISH methods was broken for immutablized classes,
576 which were not receiving the value of
577 Devel::GlobalDestruction::in_global_destruction.
578 - These two fixes address some of RT #48271, reported by Zefram.
579 - This is all now documented in Moose::Manual::Construction.
580 - Calling $object->new() is now deprecated. A warning will be
584 - Added more hooks to customize how roles are applied. The role
585 summation class, used to create composite roles, can now be changed
586 and/or have meta-roles applied to it. (rafl)
587 - The get_method_list method no longer explicitly excludes the "meta"
588 method. This was a hack that has been replaced by better hacks. (Dave
591 * Moose::Meta::Method::Delegation
592 - fixed delegated methods to make sure that any modifiers attached to
593 the accessor being delegated on will be called (Stevan)
594 - added tests for this (Stevan)
597 - Moose no longer warns when a class that is being made immutable has
598 mutable ancestors. While in theory this is a good thing to warn about,
599 we found so many exceptions to this that doing this properly became
602 0.89_02 Thu, Sep 10, 2009
603 * Moose::Meta::Attribute::Native
604 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
606 * Moose::Meta::Attribute::Native::Trait::Array
607 - Added a number of functions from List::Util and List::MoreUtils,
608 including reduce, shuffle, uniq, and natatime. (doy)
611 - This module will now generate an init_meta method for your exporting
612 class if you pass it options for
613 Moose::Util::MetaRole::apply_metaclass_roles or
614 apply_base_class_roles. This eliminates a lot of repetitive
615 boilerplate for typical MooseX modules. (doy).
616 - Documented the with_meta feature, which is a replacement for
617 with_caller. This feature was added by josh a while ago.
618 - The with_caller feature is now deprecated, but will not issue a
619 warning yet. (Dave Rolsky)
620 - If you try to wrap/export a subroutine which doesn't actually exist,
621 Moose::Exporter will warn you about this. (doy)
623 * Moose::Meta::Role::Application::ToRole
624 - When a role aliased a method from another role, it was only getting
625 the new (aliased) name, not the original name. This differed from what
626 happens when a class aliases a role's methods. If you _only_ want the
627 aliased name, make sure to also exclue the original name. (Dave
630 0.89_01 Wed Sep 2, 2009
631 * Moose::Meta::Attribute
632 - Added the currying syntax for delegation from AttributeHelpers to the
633 existing delegation API. (hdp)
635 * Moose::Meta::Attribute::Native
636 - We have merged the functionality of MooseX::AttributeHelpers into the
637 Moose core with some API tweaks. You can continue to use
638 MooseX::AttributeHelpers, but it will not be maintained except
639 (perhaps) for critical bug fixes in the future. See
640 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
643 * Moose::Error::Croak
644 * Moose::Error::Confess
645 - Clarify documentation on how to use different error-throwing
646 modules. (Curtis Jewell)
649 - Correct POD for builder to point to Recipe8, not 9. (gphat)
652 - When a nonexistent sub name is passed to as_is, with_caller, or
653 with_meta, throw a warning and skip the exporting, rather than
654 installing a broken sub. (doy)
657 - Moose now warns if you call C<make_immutable> for a class with mutable
660 0.89 Thu Aug 13, 2009
661 * Moose::Manual::Attributes
662 - Clarify "is", include discussion of "bare". (Sartak)
664 * Moose::Meta::Role::Method::Conflicting
665 * Moose::Meta::Role::Application::ToClass
666 - For the first set of roles involved in a conflict, report all
667 unresolved method conflicts, not just the first method. Fixes #47210
668 reported by Ovid. (Sartak)
670 * Moose::Meta::TypeConstraint
671 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
674 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
676 - Allow specifying role options (alias, excludes, MXRP stuff) in the
677 arrayref passed to "use Moose -traits" (doy)
680 - Add functions meta_class_alias and meta_attribute_alias for creating
681 aliases for class and attribute metaclasses and metatraits. (doy)
683 * Moose::Meta::Attribute
684 * Moose::Meta::Method::Accessor
685 - A trigger now receives the old value as a second argument, if the
686 attribute had one. (Dave Rolsky)
688 * Moose::Meta::Method::Constructor
689 - Fix a bug with $obj->new when $obj has stringify overloading.
690 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
691 - However, we will probably deprecate $obj->new, so please don't start
692 using it for new code!
694 * Moose::Meta::Role::Application
695 * Moose::Meta::Role::Application::RoleSummation
696 - Rename alias and excludes to -alias and -excludes (but keep the old
697 names for now, for backcompat) (doy)
699 0.88 Fri Jul 24, 2009
700 * Moose::Manual::Contributing
701 - Re-write the Moose::Manual::Contributing document to reflect
702 the new layout and methods of work for the Git repository. All
703 work now should be done in topic branches and reviewed by a
704 core committer before being applied to master. All releases
705 are done by a cabal member and merged from master to
706 stable. This plan was devised by Yuval, blame him. (perigrin)
709 - Create metaclass attributes for the different role application
712 * Moose::Util::MetaRole
713 - Allow applying roles to a meta role's role application
716 * Moose::Meta::Attribute
717 - Add weak_ref to allowed options for "has '+foo'" (mst)
719 * Moose::Meta::Method::Accessor
720 - No longer uses inline_slot_access in accessors, to support
721 non-lvalue-based meta instances. (sorear)
724 * Moose::Meta::Method::Delegation
725 - Once again allow class names as well as objects for
726 delegation. This was changed in 0.86.
729 * Moose::Meta::Class::Immutable::Trait
730 - Fixes to work with the latest Class::MOP.
732 * Moose::Meta::Method::Delegation
733 - Delegation now dies with a more useful error message if the
734 attribute's accessor returns something defined but
737 0.85 Fri, Jun 26, 2009
738 * Moose::Meta::Attribute
739 - The warning for 'no associated methods' is now split out into
740 the _check_associated_methods method, so that extensions can
741 safely call 'after install_accessors => ...'. This fixes a
742 warning from MooseX::AttributeHelpers. (hdp)
744 0.84 Fri, Jun 26, 2009
746 - has now sets definition_context for attributes defined in
749 * Moose::Meta::Attribute
750 - When adding an attribute to a metaclass, if the attribute has
751 no associated methods, it will give a deprecation
753 - Methods generated by delegation were not being added to
754 associated_methods. (hdp)
755 - Attribute accessors (reader, writer, accessor, predicate,
756 clearer) now warn if they overwrite an existing method. (doy)
757 - Attribute constructors now warn very noisily about unknown (or
758 misspelled) arguments
760 * Moose::Util::TypeConstraints
761 - Deprecated the totally useless Role type name, which just
762 checked if $object->can('does'). Note that this is _not_ the
763 same as a type created by calling role_type('RoleName').
765 * Moose::Util::TypeConstraints
766 * Moose::Meta::TypeConstraint::DuckType
767 - Reify duck type from a regular subtype into an actual class
769 - Document this because Sartak did all my work for me
772 * Moose::Meta::Attribute
773 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
774 it is just a list of methods (Sartak)
777 - The get_*_method_modifiers methods would die if the role had
778 no modifiers of the given type (Robert Buels).
780 0.83 Tue, Jun 23, 2009
782 - Fix _construct_instance not setting the special __MOP__ object
783 key in instances of anon classes. (doy)
785 0.82 Sun, Jun 21, 2009
786 * Moose::Manual::Types
787 - Mention MooseX::Types early to avoid users falling down the
788 string parsing rathole (mst)
790 * Moose::Manual::MooseX
791 - Add warnings about class-level extensions and mention considering
792 using plain objects instead
794 0.81 Sun, Jun 7, 2009
795 * Bumped our Class::MOP prereq to the latest version (0.85), since
798 0.80 Sat, Jun 6, 2009
800 - Add FAQ about the coercion change from 0.76 because it came up
801 three times today (perigrin)
802 - Win doy $10 dollars because Sartak didn't think anybody
803 would document this fast enough (perigrin)
805 * Moose::Meta::Method::Destructor
806 - Inline a DESTROY method even if there are no DEMOLISH methods
807 to prevent unnecessary introspection in
808 Moose::Object::DEMOLISHALL
811 - A role's required methods are now represented by
812 Moose::Meta::Role::Method::Required objects. Conflicts are now
813 represented by Moose::Meta::Role::Method::Conflicting
814 objects. The benefit for end-users in that unresolved
815 conflicts generate different, more instructive, errors,
816 resolving Ovid's #44895. (Sartak)
819 - Improve the error message of "extends" as suggested by Adam
820 Kennedy and confound (Sartak)
821 - Link to Moose::Manual::Roles from Moose::Role as we now have
822 excellent documentation (Adam Kennedy)
825 - Update test suite for subname change in Class::MOP
827 - Add TODO test for infinite recursion in Moose::Meta::Class
830 0.79 Wed, May 13, 2009
832 - More fixes for Win32 problems. Reported by Robert Krimen.
835 - The DEMOLISHALL method could still blow up in some cases
836 during global destruction. This method has been made more
837 resilient in the face of global destruction's random garbage
841 - If you "also" a module that isn't loaded, the error message
842 now acknowledges that (Sartak)
845 - When your ->meta method does not return a Moose::Meta::Class,
846 the error message gave the wrong output (Sartak)
848 0.78 Tue, May 12, 2009
849 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
850 - Merged these documents into what is now Moose::Manual::FAQ
853 - Moved to Moose::Manual::Unsweetened
855 * Moose::Cookbook::Basics::Recipes 9-12
856 - Renamed to be 8-11, since recipe 8 did not exist
859 - Make Moose::Exporter import strict and warnings into packages
863 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
864 methods during global destruction (doy)
867 * Moose::Meta::Role::Application::ToClass
868 - Track the Role::Application objects created during class-role
872 - Fix metaclass incompatibility errors when extending a vanilla perl
873 class which isa Moose class with a metaclass role applied (t0m)
876 - Add a role-combination hook, _role_for_combination, for the
877 benefit of MooseX::Role::Parameterized (Sartak)
880 - Some tests were failing on Win32 because they explicit checked
881 warning output for newlines. Reported by Nickolay Platonov.
883 0.77 Sat, May 2, 2009
885 - Add explicit use of Devel::GlobalDestruction and Sub::Name
889 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
890 or not we are currently in global destruction (doy)
891 - Add explicit use of Devel::GlobalDestruction and Sub::Name
894 * Moose::Cookbook::FAQ
895 - Reworked much of the existing content to be more useful to
896 modern Moose hackers (Sartak)
899 - Depend on Class::MOP 0.83 instead of 0.82_01.
901 0.76 Mon, April 27, 2009
902 * Moose::Meta::TypeConstraint
903 - Do not run coercions in coerce() if the value already passes the type
906 * Moose::Meta::TypeConstraint::Class
907 - In validation error messages, specifically say that the value is not
908 an instance of the class. This should alleviate some frustrating
909 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
911 * Moose::Meta::Role::Application::ToClass
912 - Revert the class-overrides-role warning in favor of a solution outside
913 of the Moose core (Sartak)
916 - Make Test::Output optional again, since it's only used in a few files
919 0.75_01 Thu, April 23, 2009
920 * Moose::Meta::Role::Application::ToClass
921 - Moose now warns about each class overriding methods from roles it
925 - Warnings tests have standardized on Test::Output which is now an
926 unconditionally dependency (Sartak)
929 - Changes to immutabilization to work with Class::MOP 0.82_01+.
931 0.75 Mon, April 20, 2009
934 - Move validation of not inheriting from roles from Moose::extends to
935 Moose::Meta::Class::superclasses (doy)
938 - add ensure_all_roles() function to encapsulate the common "apply this
939 role unless the object already does it" pattern (hdp)
942 - Users can now select a different metaclass with the "-metaclass"
943 option to import, for classes and roles (Sartak)
946 - Make method_metaclass an attr so that it can accept a metarole
949 0.74 Tue, April 7, 2009
951 * Moose::Meta::Method::Destructor
952 - Include stack traces in the deprecation warnings.
956 - Removed the long-deprecated _apply_all_roles method.
958 * Moose::Meta::TypeConstraint
959 - Removed the long-deprecated union method.
962 0.73_02 Mon, April 6, 2009
963 * More deprecations and renamings
964 - Moose::Meta::Method::Constructor
965 - initialize_body => _initialize_body (this is always called
966 when an object is constructed)
969 - The DEMOLISHALL method could throw an exception during global
970 destruction, meaning that your class's DEMOLISH methods would
971 not be properly called. Reported by t0m.
973 * Moose::Meta::Method::Destructor
974 - Destructor inlining was totally broken by the change to the
975 is_needed method in 0.72_01. Now there is a test for this
976 feature, and it works again.
979 - Bold the word 'not' in the POD for find_meta (t0m)
981 0.73_01 Sun, April 5, 2009
983 - Call user_class->meta in fewer places, with the eventual goal
984 of allowing the user to rename or exclude ->meta
985 altogether. Instead uses Class::MOP::class_of. (Sartak)
987 * Moose::Meta::Method::Accessor
988 - If an attribute had a lazy default, and that value did not
989 pass the attribute's type constraint, it did not get the
990 message from the type constraint, instead using a generic
991 message. Test provided by perigrin.
993 * Moose::Util::TypeConstraints
994 - Add duck_type keyword. It's sugar over making sure an object
995 can() a list of methods. This is easier than jrockway's
996 suggestion to fork all of CPAN. (perigrin)
997 - add tests and documentation (perigrin)
1000 - Document the fact that init_meta() returns the target class's
1001 metaclass object. (hdp)
1003 * Moose::Cookbook::Extending::Recipe1
1004 * Moose::Cookbook::Extending::Recipe2
1005 * Moose::Cookbook::Extending::Recipe3
1006 * Moose::Cookbook::Extending::Recipe4
1007 - Make init_meta() examples explicitly return the metaclass and
1008 point out this fact. (hdp)
1010 * Moose::Cookbook::Basics::Recipe12
1011 - A new recipe, creating a custom meta-method class.
1013 * Moose::Cookbook::Meta::Recipe6
1014 - A new recipe, creating a custom meta-method class.
1016 * Moose::Meta::Class
1017 * Moose::Meta::Method::Constructor
1018 - Attribute triggers no longer receive the meta-attribute object
1019 as an argument in any circumstance. Previously, triggers
1020 called during instance construction were passed the
1021 meta-attribute, but triggers called by normal accessors were
1022 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1024 * Moose::Manual::Attributes
1025 - Remove references to triggers receving the meta-attribute object as an
1028 * Moose::Cookbook::FAQ
1029 - Remove recommendation for deprecated Moose::Policy and
1030 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1033 * Many methods have been renamed with a leading underscore, and a
1034 few have been deprecated entirely. The methods with a leading
1035 underscore are consider "internals only". People writing
1036 subclasses or extensions to Moose should feel free to override
1037 them, but they are not for "public" use.
1039 - Moose::Meta::Class
1040 - check_metaclass_compatibility => _check_metaclass_compatibility
1042 - Moose::Meta::Method::Accessor
1043 - initialize_body => _initialize_body (this is always called
1044 when an object is constructed)
1045 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1047 - Moose::Meta::Method::Constructor
1048 - initialize_body => _initialize_body (this is always called
1049 when an object is constructed)
1050 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1051 - attributes => _attributes (now inherited from parent)
1052 - meta_instance => _meta_instance (now inherited from parent)
1055 - alias_method is deprecated. Use add_method
1057 0.73 Fri, March 29, 2009
1058 * No changes from 0.72_01.
1060 0.72_01 Thu, March 26, 2009
1062 - Almost every module has complete API documentation. A few
1063 methods (and even whole classes) have been intentionally
1064 excluded pending some rethinking of their APIs.
1066 * Moose::Util::TypeConstraints
1067 - Calling subtype with a name as the only argument is now an
1068 exception. If you want an anonymous subtype do:
1070 my $subtype = subtype as 'Foo';
1072 * Moose::Cookbook::Meta::Recipe7
1073 - A new recipe, creating a custom meta-instance class.
1075 * Moose::Cookbook::Basics::Recipe5
1076 - Fix various typos and mistakes. Includes a patch from Radu
1079 * Moose::Cookbook::Basics::Recipe9
1080 - Link to this recipe from Moose.pm's builder blurb
1083 - When wrapping a function with a prototype, Moose::Exporter now
1084 makes sure the wrapped function still has the same
1085 prototype. (Daisuke Maki)
1087 * Moose::Meta::Attribute
1088 - Allow a subclass to set lazy_build for an inherited
1092 - Explicitly depend on Data::OptList. We already had this dependency
1093 via Sub::Exporter, but since we're using it directly we're
1094 better off with it listed. (Sartak)
1096 * Moose::Meta::Method::Constructor
1097 - Make it easier to subclass the inlining behaviour. (Ash
1100 * Moose::Manual::Delta
1101 - Details significant changes in the history of Moose, along
1102 with recommended workarounds.
1104 * Moose::Manual::Contributing
1105 - Contributor's guide to Moose.
1107 * Moose::Meta::Method::Constructor
1108 - The long-deprecated intialize_body method has been removed
1109 (yes, spelled like that).
1111 * Moose::Meta::Method::Destructor
1112 - This is_needed method is now always a class method.
1114 * Moose::Meta::Class
1115 - Changes to the internals of how make_immutable works to match
1116 changes in latest Class::MOP.
1118 0.72 Mon, February 23, 2009
1120 * Moose::Meta::Method::Constructor
1121 - A mutable class accepted Foo->new(undef) without complaint,
1122 while an immutable class would blow up with an unhelpful
1123 error. Now, in both cases we throw a helpful error
1124 instead. Reported by doy.
1126 0.71_01 Sun, February 22, 2009
1128 - Hopefully fixed some POD errors in a few recipes that caused
1129 them to display weird on search.cpan.org.
1131 * Moose::Util::TypeConstraints
1132 - Calling type or subtype without the sugar helpers (as, where,
1133 message) is now deprecated.
1134 - The subtype function tried hard to guess what you meant, but
1135 often got it wrong. For example:
1137 my $subtype = subtype as 'ArrayRef[Object]';
1139 This caused an error in the past, but now works as you'd
1143 - Make sure Moose.pm is loaded before calling
1144 Moose->throw_error. This wasn't normally an issue, but could
1145 bite you in weird cases.
1147 0.71 Thu, February 19, 2009
1148 * Moose::Cookbook::Basics::Recipe11
1149 - A new recipe which demonstrates the use of BUILDARGS and
1150 BUILD. (Dave Rolsky)
1152 * Moose::Cookbook::Roles::Recipe3
1153 - A new recipe, applying a role to an object instance. (Dave
1157 - Allow overriding specific keywords from "also" packages. (doy)
1160 - Replace hardcoded cookbook tests with Test::Inline to ensure
1161 the tests match the actual code in the recipes. (Dave Rolsky)
1164 - Working on the above turned up a number of little bugs in the
1165 recipe code. (Dave Rolsky)
1167 * Moose::Util::TypeConstraints::Optimized
1168 - Just use Class::MOP for the optimized ClassName check. (Dave
1171 0.70 Sat, February 14, 2009
1172 * Moose::Util::TypeConstraints
1173 - Added the RoleName type (stevan)
1174 - added tests for this (stevan)
1176 * Moose::Cookbook::Basics::Recipe3
1177 - Updated the before qw[left right] sub to be a little more
1178 defensive about what it accepts (stevan)
1179 - added more tests to t/000_recipies/basics/003_binary_tree.t
1183 - We now always call DEMOLISHALL, even if a class does not
1184 define DEMOLISH. This makes sure that method modifiers on
1185 DEMOLISHALL work as expected. (doy)
1186 - added tests for this (EvanCarroll)
1188 * Moose::Util::MetaRole
1189 - Accept roles for the wrapped_method_metaclass (rafl)
1190 - added tests for this (rafl)
1192 * Moose::Meta::Attribute
1193 - We no longer pass the meta-attribute object as a final
1194 argument to triggers. This actually changed for inlined code a
1195 while back, but the non-inlined version and the docs were
1199 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1200 they require 0.11. (Dave Rolsky)
1203 - Lots of small changes to the manual, cookbook, and
1204 elsewhere. These were based on feedback from various
1205 users, too many to list here. (Dave Rolsky)
1207 0.69 Thu, February 12, 2009
1209 - Make some keyword errors use throw_error instead of croak
1210 since Moose::Exporter wraps keywords now (Sartak)
1212 * Moose::Cookbook::*
1213 - Revised every recipe for style and clarity. Also moved some
1214 documentation out of cookbook recipes and into Moose::Manual
1215 pages. This work was funded as part of the Moose docs grant
1216 from TPF. (Dave Rolsky)
1218 * Moose::Meta::Method::Delegation
1219 - If the attribute doing the delegation was not populated, the
1220 error message did not specify the attribute name
1223 0.68 Wed, February 4, 2009
1225 - Many spelling, typo, and formatting fixes by daxim.
1227 * Moose::Manual::Attributes
1228 - The NAME section in the POD used "Attribute" so search.cpan
1229 didn't resolve links from other documents properly.
1231 * Moose::Meta::Method::Overriden
1232 - Now properly spelled as Overridden. Thanks to daxim for
1235 0.67 Tue, February 3, 2009
1237 - Lots of little typo fixes and a few clarifications. Several
1238 pages didn't have proper titles, and so weren't actually
1239 visible on search.cpan.org. Thanks to hanekomu for a variety
1240 of fixes and formatting improvements.
1242 0.66 Tue, February 3, 2009
1244 - This is a brand new, extensive manual for Moose. This aims to
1245 provide a complete introduction to all of Moose's
1246 features. This work was funded as part of the Moose docs grant
1247 from TPF. (Dave Rolsky)
1249 * Moose::Meta::Attribute
1250 - Added a delegation_metaclass method to replace a hard-coded
1251 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1253 * Moose::Util::TypeConstraints
1254 - If you created a subtype and passed a parent that Moose didn't
1255 know about, it simply ignored the parent. Now it automatically
1256 creates the parent as a class type. This may not be what you
1257 want, but is less broken than before. (Dave Rolsky)
1259 * Moose::Util::TypeConstraints
1260 - This module tried throw errors by calling Moose->throw_error,
1261 but it did not ensure that Moose was loaded first. This could
1262 cause very unhelpful errors when it tried to throw an error
1263 before Moose was loaded. (Dave Rolsky)
1265 * Moose::Util::TypeConstraints
1266 - You could declare a name with subtype such as "Foo!Bar" that
1267 would be allowed, but if you used it in a parameterized type
1268 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1269 vetting on names created via the sugar functions, so that they
1270 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1272 0.65 Thu, January 22, 2009
1273 * Moose and Moose::Meta::Method::Overridden
1274 - If an overridden method called super(), and then the
1275 superclass's method (not overridden) _also_ called super(),
1276 Moose went into an endless recursion loop. Test provided by
1277 Chris Prather. (Dave Rolsky)
1279 * Moose::Meta::TypeConstraint
1280 - All methods are now documented. (gphat)
1282 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1283 - Fixed some bogus failures that occurred because we tried to
1284 validate filesystem paths in a very ad-hoc and
1285 not-quite-correct way. (Dave Rolsky)
1287 * Moose::Util::TypeConstraints
1288 - Added maybe_type to exports. See docs for details. (rjbs)
1291 - Added Moose::Util::TypeConstraints to the SEE ALSO
1295 - Methods created via an attribute can now fulfill a "requires"
1296 declaration for a role. (nothingmuch)
1298 * Moose::Meta::Method::*
1299 - Stack traces from inlined code will now report its line and
1300 file as being in your class, as opposed to in Moose
1301 guts. (nothingmuch).
1303 0.64 Wed, December 31, 2008
1304 * Moose::Meta::Method::Accessor
1305 - Always inline predicate and clearer methods (Sartak)
1307 * Moose::Meta::Attribute
1308 - Support for parameterized traits (Sartak)
1309 - verify_against_type_constraint method to avoid duplication
1310 and enhance extensibility (Sartak)
1312 * Moose::Meta::Class
1313 - Tests (but no support yet) for parameterized traits (Sartak)
1316 - Require Class::MOP 0.75+, which has the side effect of making
1317 sure we work on Win32. (Dave Rolsky)
1319 0.63 Mon, December 8, 2008
1320 * Moose::Unsweetened
1321 - Some small grammar tweaks and bug fixes in non-Moose example
1324 0.62_02 Fri, December 5, 2008
1325 * Moose::Meta::Role::Application::ToClass
1326 - When a class does not provide all of a role's required
1327 methods, the error thrown now mentions all of the missing
1328 methods, as opposed to just the first one found. Requested by
1329 Curtis Poe (RT #41119). (Dave Rolsky)
1331 * Moose::Meta::Method::Constructor
1332 - Moose will no longer inline a constructor for your class
1333 unless it inherits its constructor from Moose::Object, and
1334 will warn when it doesn't inline. If you want to force
1335 inlining anyway, pass "replace_constructor => 1" to
1336 make_immutable. Addresses RT #40968, reported by Jon
1337 Swartz. (Dave Rolsky)
1338 - The quoting of default values could be broken if the default
1339 contained a single quote ('). Now we use quotemeta to escape
1340 anything potentially dangerous in the defaults. (Dave Rolsky)
1342 0.62_01 Wed, December 3, 2008
1344 - use the method->execute API for BUILDALL
1345 and DEMOLISHALL (Sartak)
1347 * Moose::Util::TypeConstraints
1348 - We now make all the type constraint meta classes immutable
1349 before creating the default types provided by Moose. This
1350 should make loading Moose a little faster. (Dave Rolsky)
1352 0.62 Wed November 26, 2008
1353 * Moose::Meta::Role::Application::ToClass
1354 Moose::Meta::Role::Application::ToRole
1355 - fixed issues where excluding and aliasing the
1356 same methods for a single role did not work
1357 right (worked just fine with multiple
1359 - added test for this (stevan)
1361 * Moose::Meta::Role::Application::RoleSummation
1362 - fixed the error message when trying to compose
1363 a role with a role it excludes (Sartak)
1366 - Catch another case where recursion caused the value
1367 of $CALLER to be stamped on (t0m)
1368 - added test for this (t0m)
1371 - Remove the make_immutable keyword, which has been
1372 deprecated since April. It breaks metaclasses that
1373 use Moose without no Moose (Sartak)
1375 * Moose::Meta::Attribute
1376 - Removing an attribute from a class now also removes delegation
1377 (handles) methods installed for that attribute (t0m)
1378 - added test for this (t0m)
1380 * Moose::Meta::Method::Constructor
1381 - An attribute with a default that looked like a number (but was
1382 really a string) would accidentally be treated as a number
1383 when the constructor was made immutable (perigrin)
1384 - added test for this (perigrin)
1387 - create method for constructing a role
1388 dynamically (Sartak)
1389 - added test for this (Sartak)
1390 - anonymous roles! (Sartak)
1391 - added test for this (Sartak)
1394 - more consistent error messages (Sartak)
1396 * Moose::Cookbook::Roles::Recipe1
1397 - attempt to explain why a role that just requires
1398 methods is useful (Sartak)
1400 0.61 Fri November 7, 2008
1401 * Moose::Meta::Attribute
1402 - When passing a role to handles, it will be loaded if necessary
1405 * Moose::Meta::Class
1406 - Method objects returned by get_method (and other methods)
1407 Could end up being returned without an associated_metaclass
1408 attribute. Removing get_method_map, which is provided by
1409 Class::MOP::Class, fixed this. The Moose version did nothing
1410 different from its parent except introduce a bug. (Dave Rolsky)
1411 - added tests for this (jdv79)
1414 - Added a $VERSION to all .pm files which didn't have one. Fixes
1415 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1417 * Moose::Cookbook::Basics::Recipe4
1418 * Moose::Cookbook::Basics::Recipe6
1419 - These files had spaces on the first line of the SYNOPSIS, as
1420 opposed to a totally empty line. According to RT #40432, this
1421 confuses POD parsers. (Dave Rolsky)
1423 0.60 Fri October 24, 2008
1425 - Passing "-traits" when loading Moose caused the Moose.pm
1426 exports to be broken. Reported by t0m. (Dave Rolsky)
1427 - Tests for this bug. (t0m)
1430 - Change resolve_metaclass alias to use the new
1431 load_first_existing_class function. This makes it a lot
1432 simpler, and also around 5 times faster. (t0m)
1433 - Add caching to resolve_metaclass_alias, which gives an order
1434 of magnitude speedup to things which repeatedly call the
1435 Moose::Meta::Attribute->does method, notably MooseX::Storage
1438 * Moose::Util::TypeConstraint
1439 - Put back the changes for parameterized constraints that
1440 shouldn't have been removed in 0.59. We still cannot parse
1441 them, but MooseX modules can create them in some other
1442 way. See the 0.58 changes for more details. (jnapiorkowski)
1443 - Changed the way subtypes are created so that the job is
1444 delegated to a type constraint parent. This clears up some
1445 hardcoded checking and should allow correct subtypes of
1446 Moose::Meta::Type::Constraint. Don't rely on this new API too
1447 much (create_child_type) because it may go away in the
1448 future. (jnapiorkowski)
1450 * Moose::Meta::TypeConstraint::Union
1451 - Type constraint names are sorted as strings, not numbers.
1454 * Moose::Meta::TypeConstraint::Parameterizable
1455 - New parameterize method. This can be used as a factory method
1456 to make a new type constraint with a given parameterized
1457 type. (jnapiorkowski)
1458 - added tests (jnapiorkowski)
1460 0.59 Tue October 14, 2008
1462 - Add abridged documentation for builder/default/initializer/
1463 predicate, and link to more details sections in
1464 Class::MOP::Attribute. (t0m)
1466 * Moose::Util::TypeConstraints
1467 - removed prototypes from all but the &-based stuff (mst)
1469 * Moose::Util::TypeConstraints
1470 - Creating a anonymous subtype with both a constraint and a
1471 message failed with a very unhelpful error, but should just
1472 work. Reported by t0m. (Dave Rolsky)
1475 - Some tests that used Test::Warn if it was available failed
1476 with older versions of Test::Warn. Reported by Fayland. (Dave
1478 - Test firing behavior of triggers in relation to builder/default/
1480 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1481 kinds of supported type. (t0m)
1483 * Moose::Meta::Class
1484 - In create(), do not pass "roles" option to the superclass
1485 - added related test that creates an anon metaclass with
1486 a required attribute
1488 * Moose::Meta::TypeConstraint::Class
1489 * Moose::Meta::TypeConstraint::Role
1490 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1491 other types (as per change in 0.55_02). (t0m)
1493 * Moose::Meta::TypeConstraint::Registry
1494 - Fix warning when dealing with unknown type names (t0m)
1496 * Moose::Util::TypeConstraints
1497 - Reverted changes from 0.58 related to handle parameterized
1498 types. This caused random failures on BSD and Win32 systems,
1499 apparently related to the regex engine. This means that Moose
1500 can no longer parse structured type constraints like
1501 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1502 supported in a slightly different way via MooseX::Types some
1503 time in the future. (Dave Rolsky)
1505 0.58 Sat September 20, 2008
1506 !! This release has an incompatible change regarding !!
1507 !! how roles add methods to a class !!
1509 * Roles and role application
1510 ! Roles now add methods by calling add_method, not
1511 alias_method. They make sure to always provide a method
1512 object, which will be cloned internally. This means that it is
1513 now possible to track the source of a method provided by a
1514 role, and even follow its history through intermediate roles.
1516 This means that methods added by a role now show up when
1517 looking at a class's method list/map. (Dave Rolsky)
1520 - From this release on, we'll try to maintain a list of
1521 conflicting modules, and warn you if you have one
1522 installed. For example, this release conflicts with ...
1523 - MooseX::Singleton <= 0.11
1524 - MooseX::Params::Validate <= 0.05
1527 In general, we try to not break backwards compatibility for
1528 most Moose users, but MooseX modules and other code which
1529 extends Moose's metaclasses is often affected by very small
1530 changes in the Moose internals.
1532 * Moose::Meta::Method::Delegation
1533 * Moose::Meta::Attribute
1534 - Delegation methods now have their own method class. (Dave
1537 * Moose::Meta::TypeConstraint::Parameterizable
1538 - Added a new method 'parameterize' which is basically a factory
1539 for the containing constraint. This makes it easier to create
1540 new types of parameterized constraints. (jnapiorkowski)
1542 * Moose::Meta::TypeConstraint::Union
1543 - Changed the way Union types canonicalize their names to follow
1544 the normalized TC naming rules, which means we strip all
1545 whitespace. (jnapiorkowski)
1547 * Moose::Util::TypeConstraints
1548 - Parameter and Union args are now sorted, this makes Int|Str
1549 the same constraint as Str|Int. (jnapiorkowski)
1550 - Changes to the way Union types are parsed to more correctly
1551 stringify their names. (jnapiorkowski)
1552 - When creating a parameterized type, we now use the new
1553 parameterize method. (jnapiorkowski)
1554 - Incoming type constraint strings are now normalized to remove
1555 all whitespace differences. (jnapiorkowski)
1556 - Changed the way we parse type constraint strings so that we now
1557 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1558 constraints. This lays the foundation for more flexible type
1559 constraint implementations.
1561 * Tests and docs for all the above. (jnapiorkowski)
1565 - Moose::Exporter will no longer remove a subroutine that the
1566 exporting package re-exports. Moose re-exports the
1567 Carp::confess function, among others. The reasoning is that we
1568 cannot know whether you have also explicitly imported those
1569 functions for your own use, so we err on the safe side and
1570 always keep them. (Dave Rolsky)
1571 - added tests for this (rafl)
1573 * Moose::Meta::Class
1574 - Changes to how we fix metaclass compatibility that are much
1575 too complicated to go into. The summary is that Moose is much
1576 less likely to complain about metaclass incompatibility
1577 now. In particular, if two metaclasses differ because
1578 Moose::Util::MetaRole was used on the two corresponding
1579 classes, then the difference in roles is reconciled for the
1580 subclass's metaclass. (Dave Rolsky)
1581 - Squashed an warning in _process_attribute (thepler)
1584 - throw exceptions (sooner) for invalid attribute names (thepler)
1585 - added tests for this (thepler)
1587 * Moose::Util::MetaRole
1588 - If you explicitly set a constructor or destructor class for a
1589 metaclass object, and then applied roles to the metaclass,
1590 that explicitly set class would be lost and replaced with the
1593 * Moose::Meta::Class
1594 * Moose::Meta::Attribute
1595 * Moose::Meta::Method
1598 * Moose::Error::Default
1599 * Moose::Error::Croak
1600 * Moose::Error::Confess
1601 - All instances of confess() changed to use overridable
1602 C<throw_error> method. This method ultimately calls a class
1603 constructor, and you can change the class being called. In
1604 addition, errors now pass more information than just a string.
1605 The default C<error_class> behaves like C<Carp::confess>, so
1606 the behavior is not visibly different for end users.
1608 0.57 Wed September 3, 2008
1610 - A new bit of doc intended to introduce folks familiar with
1611 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1613 * Moose::Unsweetened
1614 - Shows examples of two classes, each done first with and then
1615 without Moose. This makes a nice parallel to
1616 Moose::Intro. (Dave Rolsky)
1618 * Moose::Util::TypeConstraints
1619 - Fixed a bug in find_or_parse_type_constraint so that it
1620 accepts a Moose::Meta::TypeConstraint object as the parent
1621 type, not just a name (jnapiorkowski)
1622 - added tests (jnapiorkowski)
1625 - If Sub::Name was not present, unimporting failed to actually
1626 remove some sugar subs, causing test failures (Dave Rolsky)
1628 0.56 Mon September 1, 2008
1629 For those not following the series of dev releases, there are
1630 several major changes in this release of Moose.
1631 ! Moose::init_meta should now be called as a method. See the
1634 - Major performance improvements by nothingmuch.
1636 - New modules for extension writers, Moose::Exporter and
1637 Moose::Util::MetaRole by Dave Rolsky.
1639 - Lots of doc improvements and additions, especially in the
1642 - Various bug fixes.
1644 * Removed all references to the experimental-but-no-longer-needed
1645 Moose::Meta::Role::Application::ToMetaclassInstance.
1647 * Require Class::MOP 0.65.
1649 0.55_04 Sat August 30, 2008
1650 * Moose::Util::MetaRole
1651 * Moose::Cookbook::Extending::Recipe2
1652 - This simplifies the application of roles to any meta class, as
1653 well as the base object class. Reimplemented metaclass traits
1654 using this module. (Dave Rolsky)
1656 * Moose::Cookbook::Extending::Recipe1
1657 - This a new recipe, an overview of various ways to write Moose
1658 extensions (Dave Rolsky)
1660 * Moose::Cookbook::Extending::Recipe3
1661 * Moose::Cookbook::Extending::Recipe4
1662 - These used to be Extending::Recipe1 and Extending::Recipe2,
1665 0.55_03 Fri August 29, 2008
1666 * No changes from 0.55_02 except increasing the Class::MOP
1667 dependency to 0.64_07.
1669 0.55_02 Fri August 29, 2008
1670 * Makefile.PL and Moose.pm
1671 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1673 * Moose::Util::TypeConstraints
1674 - Fix warnings from find_type_constraint if the type is not
1677 * Moose::Meta::TypeConstraint
1678 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1679 return false if the type you specify cannot be found in the
1680 type registry, rather than throwing an unhelpful and
1681 coincidental exception. (t0m).
1682 - added docs & test for this (t0m)
1684 * Moose::Meta::TypeConstraint::Registry
1685 - add_type_constraint now throws an exception if a parameter is
1687 - added docs & test for this (t0m)
1689 * Moose::Cookbook::FAQ
1690 - Added a faq entry on the difference between "role" and "trait"
1694 - Fixed a bug that caused role composition to not see a required
1695 method when that method was provided by another role being
1696 composed at the same time. (Dave Rolsky)
1697 - test and bug finding (tokuhirom)
1699 0.55_01 Wed August 20, 2008
1701 !! Calling Moose::init_meta as a function is now !!
1702 !! deprecated. Please see the Moose.pm docs for details. !!
1704 * Moose::Meta::Method::Constructor
1705 - Fix inlined constructor so that values produced by default
1706 or builder methods are coerced as required. (t0m)
1707 - added test for this (t0m)
1709 * Moose::Meta::Attribute
1710 - A lazy attribute with a default or builder did not attempt to
1711 coerce the default value. The immutable code _did_
1713 - added test for this (t0m)
1716 - This is a new helper module for writing "Moose-alike"
1717 modules. This should make the lives of MooseX module authors
1718 much easier. (Dave Rolsky)
1721 * Moose::Cookbook::Meta::Recipe5
1722 - Implemented metaclass traits (and wrote a recipe for it):
1724 use Moose -traits => 'Foo'
1726 This should make writing small Moose extensions a little
1727 easier (Dave Rolsky)
1729 * Moose::Cookbook::Basics::Recipe1
1730 - Removed any examples of direct hashref access, and applied an
1731 editorial axe to reduce verbosity. (Dave Rolsky)
1733 * Moose::Cookbook::Basics::Recipe1
1734 - Also applied an editorial axe here. (Dave Rolsky)
1737 * Moose::Cookbook::Extending::Recipe1
1738 * Moose::Cookbook::Extending::Recipe2
1739 - Rewrote extending and embedding moose documentation and
1740 recipes to use Moose::Exporter (Dave Rolsky)
1744 - These two modules now warn when you load them from the main
1745 package "main" package, because we will not export sugar to
1746 main. Previously it just did nothing. (Dave Rolsky)
1749 - Now provide an init_meta method just like Moose.pm, and you
1750 can call this to provide an alternate role metaclass. (Dave
1751 Rolsky and nothingmuch)
1752 - get_method_map now respects the package cache flag (nothingmuch)
1755 - Two new methods - add_method and wrap_method_body
1759 - Optimizations including allowing constructors to accept hash
1760 refs, making many more classes immutable, and making
1761 constructors immutable. (nothingmuch)
1763 0.55 Sun August 3, 2008
1764 * Moose::Meta::Attribute
1765 - breaking down the way 'handles' methods are
1766 created so that the process can be more easily
1767 overridden by subclasses (stevan)
1769 * Moose::Meta::TypeConstraint
1770 - fixing what is passed into a ->message with
1771 the type constraints (RT #37569)
1772 - added tests for this (Charles Alderman)
1774 * Moose::Util::TypeConstraints
1775 - fix coerce to accept anon types like subtype can (mst)
1778 - reorganized the recipes into sections - Basics, Roles, Meta,
1779 Extending - and wrote abstracts for each section (Dave Rolsky)
1781 * Moose::Cookbook::Basics::Recipe10
1782 - A new recipe that demonstrates operator overloading
1783 in combination with Moose. (bluefeet)
1785 * Moose::Cookbook::Meta::Recipe1
1786 - an introduction to what meta is and why you'd want to make
1787 your own metaclass extensions (Dave Rolsky)
1789 * Moose::Cookbook::Meta::Recipe4
1790 - a very simple metaclass example (Dave Rolsky)
1792 * Moose::Cookbook::Extending::Recipe1
1793 - how to write a Moose-alike module to use your own object base
1796 * Moose::Cookbook::Extending::Recipe2
1797 - how to write modules with an API just like C<Moose.pm> (Dave
1801 - Tons of fixes, both syntactical and grammatical (Dave
1802 Rolsky, Paul Fenwick)
1804 0.54 Thurs. July 3, 2008
1805 ... this is not my day today ...
1807 * Moose::Meta::Attribute
1808 - fixed legal_options_for_inheritance such that
1809 clone_and_inherit options still works for
1810 Class::MOP::Attribute objects and therefore
1811 does not break MooseX::AttributeHelpers
1814 0.53 Thurs. July 3, 2008
1815 * Whoops, I guess I should run 'make manifest' before
1816 actually releasing the module. No actual changes
1817 in this release, except the fact that it includes
1818 the changes that I didn't include in the last
1821 0.52 Thurs. July 3, 2008
1823 - added "FEATURE REQUESTS" section to the Moose docs
1824 to properly direct people (stevan) (RT #34333)
1825 - making 'extends' croak if it is passed a Role since
1826 this is not ever something you want to do
1827 (fixed by stevan, found by obra)
1828 - added tests for this (stevan)
1831 - adding support for DOES (as in UNIVERSAL::DOES)
1833 - added test for this
1835 * Moose::Meta::Attribute
1836 - added legal_options_for_inheritance (wreis)
1837 - added tests for this (wreis)
1839 * Moose::Cookbook::Snacks::*
1840 - removed some of the unfinished snacks that should
1841 not have been released yet. Added some more examples
1842 to the 'Keywords' snack. (stevan)
1844 * Moose::Cookbook::Style
1845 - added general Moose "style guide" of sorts to the
1846 cookbook (nothingmuch) (RT #34335)
1849 - added more BUILDARGS tests (stevan)
1851 0.51 Thurs. Jun 26, 2008
1853 - add unimport so "no Moose::Role" actually does
1856 * Moose::Meta::Role::Application::ToRole
1857 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1858 order to provide its own implementation, that method still got
1859 added to the list of required methods for consumers of
1860 RoleB. Now an aliased method is only added to the list of
1861 required methods if the role doing the aliasing does not
1862 provide its own implementation. See Recipe 11 for an example
1863 of all this. (Dave Rolsky)
1864 - added tests for this
1866 * Moose::Meta::Method::Constructor
1867 - when a single argument that wasn't a hashref was provided to
1868 an immutabilized constructor, the error message was very
1869 unhelpful, as opposed to the non-immutable error. Reported by
1871 - added test for this (Dave Rolsky)
1873 * Moose::Meta::Attribute
1874 - added support for meta_attr->does("ShortAlias") (sartak)
1875 - added tests for this (sartak)
1876 - moved the bulk of the `handles` handling to the new
1877 install_delegation method (Stevan)
1880 - Added BUILDARGS, a new step in new()
1882 * Moose::Meta::Role::Application::RoleSummation
1883 - fix typos no one ever sees (sartak)
1885 * Moose::Util::TypeConstraints
1886 * Moose::Meta::TypeConstraint
1887 * Moose::Meta::TypeCoercion
1888 - Attempt to work around the ??{ } vs. threads issue
1890 - Some null_constraint optimizations
1892 0.50 Thurs. Jun 11, 2008
1893 - Fixed a version number issue by bumping all modules
1896 0.49 Thurs. Jun 11, 2008
1897 !! This version now approx. 20-25% !!
1898 !! faster with new Class::MOP 0.59 !!
1900 * Moose::Meta::Attribute
1901 - fixed how the is => (ro|rw) works with
1902 custom defined reader, writer and accessor
1904 - added docs for this (TODO).
1905 - added tests for this (Thanks to Penfold)
1906 - added the custom attribute alias for regular
1907 Moose attributes which is "Moose"
1908 - fix builder and default both being used
1913 Moose::Meta::Attribute
1915 Moose::Meta::Role::Composite
1916 Moose::Util::TypeConstraints
1917 - switched usage of reftype to ref because
1921 - changing add_package_symbol to use the new
1925 - fixed how DEMOLISHALL is called so that it
1926 can be overrided in subclasses (thanks to Sartak)
1927 - added test for this (thanks to Sartak)
1929 * Moose::Util::TypeConstraints
1930 - move the ClassName type check code to
1931 Class::MOP::is_class_loaded (thanks to Sartak)
1933 * Moose::Cookbook::Recipe11
1934 - add tests for this (thanks to tokuhirom)
1936 0.48 Thurs. May 29, 2008
1937 (early morning release engineering)--
1939 - fixing the version in Moose::Meta::Method::Destructor
1940 which was causing the indexer to choke
1942 0.47 Thurs. May 29, 2008
1943 (late night release engineering)--
1945 - fixing the version is META.yml, no functional
1946 changes in this release
1948 0.46 Wed. May 28, 2008
1949 !! This version now approx. 20-25% !!
1950 !! faster with new Class::MOP 0.57 !!
1952 * Moose::Meta::Class
1953 - some optimizations of the &initialize method
1954 since it is called so often by &meta
1956 * Moose::Meta::Class
1958 - now use the get_all_package_symbols from the
1959 updated Class::MOP, test suite is now 10 seconds
1962 * Moose::Meta::Method::Destructor
1963 - is_needed can now also be called as a class
1964 method for immutablization to check if the
1965 destructor object even needs to be created
1968 * Moose::Meta::Method::Destructor
1969 Moose::Meta::Method::Constructor
1970 - added more descriptive error message to help
1971 keep people from wasting time tracking an error
1972 that is easily fixed by upgrading.
1974 0.45 Saturday, May 24, 2008
1976 - Because of work in Class::MOP 0.57, all
1977 XS based functionality is now optional
1978 and a Pure Perl version is supplied
1979 - the CLASS_MOP_NO_XS environment variable
1980 can now be used to force non-XS versions
1982 - several of the packages have been tweaked
1983 to take care of this, mostly we added
1984 support for the package_name and name
1985 variables in all the Method metaclasses
1986 - before/around/after method modifiers now
1987 support regexp matching of names
1988 (thanks to Takatoshi Kitano)
1989 - tests added for this
1990 - NOTE: this only works for classes, it
1991 is currently not supported in roles,
1992 but, ... patches welcome
1993 - All usage of Carp::confess have been replaced
1994 by Carp::croak in the "keyword" functions since
1995 the stack trace is usually not helpful
1998 - All usage of Carp::confess have been replaced
1999 by Carp::croak in the "keyword" functions since
2000 the stack trace is usually not helpful
2001 - The 'has' keyword for roles now accepts the
2002 same array ref form that Moose.pm does
2003 (has [qw/foo bar/] => (is => 'rw', ...))
2004 - added test for this
2006 * Moose::Meta::Attribute
2007 - trigger on a ro-attribute is no longer an
2008 error, as it's useful to trigger off of the
2011 * Moose::Meta::Class
2012 - added same 'add_package_symbol' fix as in
2016 - does_role now handles non-Moose classes
2018 - added tests for this
2019 - added the 'add_method_modifier' function
2020 (thanks to Takatoshi Kitano)
2022 * Moose::Util::TypeConstraints
2023 - subtypes of parameterizable types now are
2024 themselves parameterizable types
2026 * Moose::Meta::Method::Constructor
2027 - fixed bug where trigger was not being
2028 called by the inlined immutable
2030 - added test for this (thanks to Caelum)
2032 * Moose::Meta::Role::Application::ToInstance
2033 - now uses the metaclass of the instance
2034 (if possible) to create the anon-class
2035 (thanks Jonathan Rockway)
2037 * Moose::Cookbook::Recipe22
2038 - added the meta-attribute trait recipe
2042 - fixed hash-ordering test bug that was
2043 causing occasional cpantester failures
2044 - renamed the t/000_recipe/*.t tests to be
2045 more descriptive (thanks to Sartak)
2047 0.44 Sat. May 10, 2008
2049 - made make_immutable warning cluck to
2050 show where the error is (thanks mst)
2053 - BUILDALL and DEMOLISHALL now call
2054 ->body when looping through the
2055 methods, to avoid the overloaded
2057 - fixed issue where DEMOLISHALL was
2058 eating the $@ values, and so not
2059 working correctly, it still kind of
2060 eats them, but so does vanilla perl
2061 - added tests for this
2063 * Moose::Cookbook::Recipe7
2064 - added new recipe for immutable
2065 functionality (thanks Dave Rolsky)
2067 * Moose::Cookbook::Recipe9
2068 - added new recipe for builder and
2069 lazy_build (thanks Dave Rolsky)
2071 * Moose::Cookbook::Recipe11
2072 - added new recipe for method aliasing
2073 and exclusion with Roles (thanks Dave Rolsky)
2076 - fixed Win32 test failure (thanks spicyjack)
2078 ~ removed Build.PL and Module::Build compat
2079 since Module::Install has done that.
2081 0.43 Wed. April, 30, 2008
2083 drink more coffee before
2084 doing release engineering
2086 - whoops, forgot to do the smolder tests,
2087 and we broke some of the custom meta-attr
2088 modules. This fixes that.
2090 0.42 Mon. April 28, 2008
2091 - some bad tests slipped by, nothing else
2092 changed in this release (cpantesters++)
2094 - upped the Class::MOP dependency to 0.55
2095 since we have tests which need the C3
2098 0.41 Mon. April 28, 2008
2099 ~~ numerous documentation updates ~~
2101 - Changed all usage of die to Carp::croak for better
2102 error reporting (initial patch by Tod Hagan)
2104 ** IMPORTANT NOTE **
2105 - the make_immutable keyword is now deprecated, don't
2106 use it in any new code and please fix your old code
2107 as well. There will be 2 releases, and then it will
2113 - refactored the way inner and super work to avoid
2114 any method/@ISA cache penalty (nothingmuch)
2116 * Moose::Meta::Class
2117 - fixing &new_object to make sure trigger gets the
2118 coerced value (spotted by Charles Alderman on the
2120 - added test for this
2122 * Moose::Meta::Method::Constructor
2123 - immutable classes which had non-lazy attributes were calling
2124 the default generating sub twice in the constructor. (bug
2125 found by Jesse Luehrs, fixed by Dave Rolsky)
2126 - added tests for this (Dave Rolsky)
2127 - fix typo in initialize_body method (nothingmuch)
2129 * Moose::Meta::Method::Destructor
2130 - fix typo in initialize_body method (nothingmuch)
2132 * Moose::Meta::Method::Overriden
2133 Moose::Meta::Method::Augmented
2134 - moved the logic for these into their own
2135 classes (nothingmuch)
2137 * Moose::Meta::Attribute
2138 - inherited attributes may now be extended without
2139 restriction on the type ('isa', 'does') (Sartak)
2140 - added tests for this (Sartak)
2141 - when an attribute property is malformed (such as lazy without
2142 a default), give the name of the attribute in the error
2144 - added the &applied_traits and &has_applied_traits methods
2145 to allow introspection of traits
2146 - added tests for this
2147 - moved 'trait' and 'metaclass' argument handling to here from
2149 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2150 '+foo' syntax) (nothingmuch)
2151 - added tests for this (t0m)
2154 - localize $@ inside DEMOLISHALL to avoid it
2155 eating $@ (found by Ernesto)
2156 - added test for this (thanks to Ernesto)
2158 * Moose::Util::TypeConstraints
2159 - &find_type_constraint now DWIMs when given an
2160 type constraint object or name (nothingmuch)
2161 - &find_or_create_type_constraint superseded with a number of more
2163 - find_or_create_{isa,does}_type_constraint
2164 - find_or_parse_type_constraint
2166 * Moose::Meta::TypeConstraint
2167 Moose::Meta::TypeConstraint::Class
2168 Moose::Meta::TypeConstraint::Role
2169 Moose::Meta::TypeConstraint::Enum
2170 Moose::Meta::TypeConstraint::Union
2171 Moose::Meta::TypeConstraint::Parameterized
2172 - added the &equals method for comparing two type
2173 constraints (nothingmuch)
2174 - added tests for this (nothingmuch)
2176 * Moose::Meta::TypeConstraint
2177 - add the &parents method, which is just an alias to &parent.
2178 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2180 * Moose::Meta::TypeConstraint::Class
2181 - added the class attribute for introspection purposes
2183 - added tests for this
2185 * Moose::Meta::TypeConstraint::Enum
2186 Moose::Meta::TypeConstraint::Role
2187 - broke these out into their own classes (nothingmuch)
2189 * Moose::Cookbook::Recipe*
2190 - fixed references to test file locations in the POD
2191 and updated up some text for new Moose features
2195 - Added &resolve_metaclass_alias, a helper function for finding an actual
2196 class for a short name (e.g. in the traits list)
2198 0.40 Fri. March 14, 2008
2199 - I hate Pod::Coverage
2201 0.39 Fri. March 14, 2008
2203 - documenting the use of '+name' with attributes
2204 that come from recently composed roles. It makes
2205 sense, people are using it, and so why not just
2206 officially support it.
2207 - fixing the 'extends' keyword so that it will not
2208 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2211 - added the perl -Moose=+Class::Name feature to allow
2212 monkeypatching of classes in one liners
2215 - fixing the 'apply_all_roles' keyword so that it will not
2216 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2218 * Moose::Meta::Class
2219 - added ->create method which now supports roles (thanks to jrockway)
2220 - added tests for this
2221 - added ->create_anon_class which now supports roles and caching of
2222 the results (thanks to jrockway)
2223 - added tests for this
2224 - made ->does_role a little more forgiving when it is
2225 checking a Class::MOP era metaclasses.
2227 * Moose::Meta::Role::Application::ToInstance
2228 - it is now possible to pass extra params to be used when
2229 a role is applied to an the instance (rebless_params)
2230 - added tests for this
2232 * Moose::Util::TypeConstraints
2233 - class_type now accepts an optional second argument for a
2234 custom message. POD anotated accordingly (groditi)
2235 - added tests for this
2236 - it is now possible to make anon-enums by passing 'enum' an
2237 ARRAY ref instead of the $name => @values. Everything else
2239 - added tests for this
2242 - making test for using '+name' on attributes consumed
2243 from a role, it works and makes sense too.
2245 * Moose::Meta::Attribute
2246 - fix handles so that it doesn't return nothing
2247 when the method cannot be found, not sure why
2248 it ever did this originally, this means we now
2249 have slightly better support for AUTOLOADed
2251 - added more delegation tests
2252 - adding ->does method to this so as to better
2253 support traits and their introspection.
2254 - added tests for this
2257 - localizing the Data::Dumper configurations so
2258 that it does not pollute others (RT #33509)
2259 - made ->does a little more forgiving when it is
2260 passed Class::MOP era metaclasses.
2262 0.38 Fri. Feb. 15, 2008
2263 * Moose::Meta::Attribute
2264 - fixed initializer to correctly do
2265 type checking and coercion in the
2267 - added tests for this
2270 - fixed some finicky tests (thanks to konobi)
2272 0.37 Thurs. Feb. 14, 2008
2274 - fixed some details in Moose::init_meta
2275 and its superclass handling (thanks thepler)
2276 - added tests for this (thanks thepler)
2277 - 'has' now dies if you don't pass in name
2279 - added the 'make_immutable' keyword as a shortcut
2282 * Moose::Meta::Class
2283 Moose::Meta::Method::Constructor
2284 Moose::Meta::Attribute
2285 - making (init_arg => undef) work here too
2286 (thanks to nothingmuch)
2288 * Moose::Meta::Attribute
2289 Moose::Meta::Method::Constructor
2290 Moose::Meta::Method::Accessor
2291 - make lazy attributes respect attr initializers (rjbs)
2292 - added tests for this
2294 * Moose::Util::TypeConstraints
2295 Moose::Util::TypeConstraints::OptimizedConstraints
2296 Moose::Meta::TypeConstraints
2297 Moose::Meta::Attribute
2298 Moose::Meta::Method::Constructor
2299 Moose::Meta::Method::Accessor
2300 - making type errors use the
2301 assigned message (thanks to Sartak)
2302 - added tests for this
2304 * Moose::Meta::Method::Destructor
2305 - making sure DESTROY gets inlined properly
2306 with successive DEMOLISH calls (thanks to manito)
2308 * Moose::Meta::Attribute
2309 Moose::Meta::Method::Accessor
2310 - fixed handling of undef with type constraints
2312 - added tests for this
2315 - added &get_all_init_args and &get_all_attribute_values
2316 (thanks to Sartak and nothingmuch)
2318 0.36 Sat. Jan. 26, 2008
2320 Moose::Meta::Attribute
2321 - role type tests now support when roles are
2322 applied to non-Moose classes (found by ash)
2323 - added tests for this (thanks to ash)
2324 - couple extra tests to boost code coverage
2326 * Moose::Meta::Method::Constructor
2327 - improved fix for handling Class::MOP attributes
2328 - added test for this
2330 * Moose::Meta::Class
2331 - handled the add_attribute($attribute_meta_object)
2333 - added test for this
2335 0.35 Tues. Jan. 22, 2008
2336 * Moose::Meta::Method::Constructor
2337 - fix to make sure even Class::MOP attributes
2338 are handled correctly (Thanks to Dave Rolsky)
2339 - added test for this (also Dave Rolsky)
2341 * Moose::Meta::Class
2342 - improved error message on _apply_all_roles,
2343 you should now use Moose::Util::apply_all_roles
2344 and you shouldnt have been using a _ prefixed
2345 method in the first place ;)
2347 0.34 Mon. Jan. 21, 2008
2348 ~~~ more misc. doc. fixes ~~~
2349 ~~ updated copyright dates ~~
2351 Moose is now a postmodern object system :)
2352 - (see the POD for details)
2354 * <<Role System Refactoring>>
2355 - this release contains a major reworking and
2356 cleanup of the role system
2357 - 100% backwards compat.
2358 - Role application now restructured into seperate
2359 classes based on type of applicants
2360 - Role summation (combining of more than one role)
2361 is much cleaner and anon-classes are no longer
2362 used in this process
2363 - new Composite role metaclass
2364 - runtime application of roles to instances
2365 is now more efficient and re-uses generated
2366 classes when applicable
2368 * <<New Role composition features>>
2369 - methods can now be excluded from a given role
2371 - methods can now be aliased to another name (and
2372 still retain the original as well)
2374 * Moose::Util::TypeConstraints::OptimizedConstraints
2375 - added this module (see above)
2377 * Moose::Meta::Class
2378 - fixed the &_process_attribute method to be called
2379 by &add_attribute, so that the API is now correct
2381 * Moose::Meta::Method::Accessor
2382 - fixed bug when passing a list of values to
2383 an accessor would get (incorrectly) ignored.
2384 Thanks to Sartak for finding this ;)
2385 - added tests for this (Sartak again)
2387 * Moose::Meta::Method::Accessor
2388 Moose::Meta::Method::Constructor
2389 Moose::Meta::Attribute
2390 Moose::Meta::TypeConstraint
2391 Moose::Meta::TypeCoercion
2392 - lots of cleanup of such things as:
2394 - type constraint handling
2395 - error handling/messages
2396 (thanks to nothingmuch)
2398 * Moose::Meta::TypeConstraint::Parameterizable
2399 - added this module to support the refactor
2400 in Moose::Meta::TypeConstraint::Parameterized
2402 * Moose::Meta::TypeConstraint::Parameterized
2403 - refactored how these types are handled so they
2404 are more generic and not confined to ArrayRef
2408 - shortened some file names for better VMS support (RT #32381)
2410 0.33 Fri. Dec. 14, 2007
2411 !! Moose now loads 2 x faster !!
2412 !! with new Class::MOP 0.49 !!
2414 ++ new oose.pm module to make command line
2415 Moose-ness easier (see POD docs for more)
2417 * Moose::Meta::Class
2419 - several tweaks to take advantage of the
2420 new method map caching in Class::MOP
2422 * Moose::Meta::TypeConstraint::Parameterized
2423 - allow subtypes of ArrayRef and HashRef to
2424 be used as a container (sartak)
2425 - added tests for this
2426 - basic support for coercion to ArrayRef and
2427 HashRef for containers (sartak)
2428 - added tests for this
2430 * Moose::Meta::TypeCoercion
2431 - coercions will now create subtypes as needed
2432 so you can now add coercions to parameterized
2433 types without having to explictly define them
2434 - added tests for this
2436 * Moose::Meta::Method::Accessor
2437 - allow subclasses to decide whether we need
2438 to copy the value into a new variable (sartak)
2440 0.32 Tues. Dec. 4, 2007
2441 * Moose::Util::TypeConstraints
2442 - fixing how subtype aliases of unions work
2443 they should inherit the parent's coercion
2444 - added tests for this
2445 - you can now define multiple coercions on
2446 a single type at different times instead of
2447 having to do it all in one place
2448 - added tests for this
2450 * Moose::Meta::TypeConstraint
2451 - there is now a default constraint of sub { 1 }
2452 instead of Moose::Util::TypeConstraints setting
2455 * Moose::Meta::TypeCoercion
2456 * Moose::Meta::TypeCoercion::Union
2457 - added the &has_coercion_for_type and
2458 &add_type_coercions methods to support the
2459 new features above (although you cannot add
2460 more type coercions for Union types)
2462 0.31 Mon. Nov. 26, 2007
2463 * Moose::Meta::Attribute
2464 - made the +attr syntax handle extending types with
2465 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2466 now works if the original foo is an ArrayRef.
2467 - added tests for this.
2468 - delegation now works even if the attribute does not
2469 have a reader method using the get_read_method_ref
2470 method from Class::MOP::Attribute.
2471 - added tests for this
2472 - added docs for this
2474 * Moose::Util::TypeConstraints
2475 - passing no "additional attribute info" to
2476 &find_or_create_type_constraint will no longer
2477 attempt to create an __ANON__ type for you,
2478 instead it will just return undef.
2479 - added docs for this
2481 0.30 Fri. Nov. 23, 2007
2482 * Moose::Meta::Method::Constructor
2483 -builder related bug in inlined constructor. (groditi)
2485 * Moose::Meta::Method::Accessor
2486 - genereate unnecessary calls to predicates and refactor
2487 code generation for runtime speed (groditi)
2489 * Moose::Util::TypeConstraints
2490 - fix ClassName constraint to introspect symbol table (mst)
2491 - added more tests for this (mst)
2492 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2493 with work correctly.
2494 - added tests for this
2497 - adding the link to Recipie 11 (written by Sartak)
2498 - adding test for SYNOPSIS code
2501 - New tests for builder bug. Upon instantiation, if an
2502 attribute had a builder, no value and was not lazy the
2503 builder default was not getting run, oops. (groditi)
2505 0.29 Tues. Nov. 13, 2007
2506 * Moose::Meta::Attribute
2507 - Fix error message on missing builder method (groditi)
2509 * Moose::Meta::Method::Accessor
2510 - Fix error message on missing builder method (groditi)
2513 - Add test to check for the correct error message when
2514 builder method is missing (groditi)
2516 0.28 Tues. Nov. 13, 2007
2517 - 0.27 packaged incorrectly (groditi)
2519 0.27 Tues. Nov. 13, 2007
2520 * Moose::Meta::Attribute
2521 - Added support for the new builder option (groditi)
2522 - Added support for lazy_build option (groditi)
2523 - Changed slot initialization for predicate changes (groditi)
2525 * Moose::Meta::Method::Accessor
2526 - Added support for lazy_build option (groditi)
2527 - Fix inline methods to work with corrected predicate
2530 * Moose::Meta::Method::Constructor
2531 - Added support for lazy_build option (groditi)
2534 - tests for builder and lazy_build (groditi)
2536 * fixing some misc. bits in the docs that
2537 got mentioned on CPAN Forum & perlmonks
2540 - fixed how required methods are handled
2541 when they encounter overriden or modified
2542 methods from a class (thanks to confound).
2543 - added tests for this
2545 * Moose::Util::TypeConstraint
2546 - fixed the type notation parser so that
2547 the | always creates a union and so is
2548 no longer a valid type char (thanks to
2549 konobi, mugwump and #moose for working
2551 - added more tests for this
2553 0.26 Thurs. Sept. 27, 2007
2556 * Parameterized Types
2557 We now support parameterized collection types, such as:
2558 ArrayRef[Int] # array or integers
2559 HashRef[Object] # a hash with object values
2560 They can also be nested:
2561 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2562 And work with the type unions as well:
2563 ArrayRef[Int | Str] # array of integers of strings
2565 * Better Framework Extendability
2566 Moose.pm is now "extendable" such that it is now much
2567 easier to extend the framework and add your own keywords
2568 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2569 section of the Moose.pm docs.
2572 In an effort to begin documenting some of the various
2573 details of Moose as well as some common idioms, we have
2574 created Moose::Cookbook::Snacks as a place to find
2575 small (easily digestable) nuggets of Moose code.
2578 ~ Several doc updates/cleanup thanks to castaway ~
2580 - converted build system to use Module::Install instead of
2581 Module::Build (thanks to jrockway)
2584 - added all the meta classes to the immutable list and
2585 set it to inline the accessors
2586 - fix import to allow Sub::Exporter like { into => }
2587 and { into_level => } (perigrin)
2588 - exposed and documented init_meta() to allow better
2589 embedding and extending of Moose (perigrin)
2592 - complete re-organization of the test suite
2593 - added some new tests as well
2594 - finally re-enabled the Moose::POOP test since
2595 the new version of DBM::Deep now works again
2598 * Moose::Meta::Class
2599 - fixed very odd and very nasty recursion bug with
2601 - added tests for this (eilara)
2603 * Moose::Meta::Attribute
2604 Moose::Meta::Method::Constructor
2605 Moose::Meta::Method::Accessor
2606 - fixed issue with overload::Overloaded getting called
2607 on non-blessed items. (RT #29269)
2608 - added tests for this
2610 * Moose::Meta::Method::Accessor
2611 - fixed issue with generated accessor code making
2612 assumptions about hash based classes (thanks to dexter)
2614 * Moose::Coookbook::Snacks
2615 - these are bits of documentation, not quite as big as
2616 Recipes but which have no clear place in the module docs.
2617 So they are Snacks! (horray for castaway++)
2619 * Moose::Cookbook::Recipe4
2620 - updated it to use the new ArrayRef[MyType] construct
2621 - updated the accompanying test as well
2623 +++ Major Refactor of the Type Constraint system +++
2624 +++ with new features added as well +++
2626 * Moose::Util::TypeConstraint
2627 - no longer uses package variable to keep track of
2628 the type constraints, now uses the an instance of
2629 Moose::Meta::TypeConstraint::Registry to do it
2630 - added more sophisticated type notation parsing
2632 - added tests for this
2634 * Moose::Meta::TypeConstraint
2635 - some minor adjustments to make subclassing easier
2636 - added the package_defined_in attribute so that we
2637 can track where the type constraints are created
2639 * Moose::Meta::TypeConstraint::Union
2640 - this is now been refactored to be a subclass of
2641 Moose::Meta::TypeConstraint
2643 * Moose::Meta::TypeCoercion::Union
2644 - this has been added to service the newly refactored
2645 Moose::Meta::TypeConstraint::Union and is itself
2646 a subclass of Moose::Meta::TypeCoercion
2648 * Moose::Meta::TypeConstraint::Parameterized
2649 - added this module (taken from MooseX::AttributeHelpers)
2650 to help construct nested collection types
2651 - added tests for this
2653 * Moose::Meta::TypeConstraint::Registry
2654 - added this class to keep track of type constraints
2656 0.25 Mon. Aug. 13, 2007
2658 - Documentation update to reference Moose::Util::TypeConstraints
2659 under 'isa' in 'has' for how to define a new type
2660 (thanks to shlomif).
2662 * Moose::Meta::Attribute
2663 - required attributes now will no longer accept undef
2664 from the constructor, even if there is a default and lazy
2665 - added tests for this
2666 - default subroutines must return a value which passes the
2668 - added tests for this
2670 * Moose::Meta::Attribute
2671 * Moose::Meta::Method::Constructor
2672 * Moose::Meta::Method::Accessor
2673 - type-constraint tests now handle overloaded objects correctly
2674 in the error message
2675 - added tests for this (thanks to EvanCarroll)
2677 * Moose::Meta::TypeConstraint::Union
2678 - added (has_)hand_optimized_constraint to this class so that
2679 it behaves as the regular Moose::Meta::TypeConstraint does.
2682 - large refactoring of this code
2683 - added several more tests
2684 - tests for subtle conflict resolition issues
2685 added, but not currently running
2688 * Moose::Cookbook::Recipe7
2689 - added new recipe for augment/inner functionality
2691 - added test for this
2694 - a formal definition of roles (still in progress)
2697 - utilities for easier working with Moose classes
2698 - added tests for these
2701 - This contains Moose specific test functions
2702 - added tests for these
2704 0.24 Tues. July 3, 2007
2705 ~ Some doc updates/cleanup ~
2707 * Moose::Meta::Attribute
2708 - added support for roles to be given as parameters
2709 to the 'handles' option.
2710 - added tests and docs for this
2711 - the has '+foo' attribute form now accepts changes to
2712 the lazy option, and the addition of a handles option
2713 (but not changing the handles option)
2714 - added tests and docs for this
2717 - required methods are now fetched using find_method_by_name
2718 so that required methods can come from superclasses
2719 - adjusted tests for this
2721 0.23 Mon. June 18, 2007
2722 * Moose::Meta::Method::Constructor
2723 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2724 * Moose::Meta::Class
2725 - Modify make_immutable to work with the new Class::MOP immutable
2726 mechanism + POD + very basic test (groditi)
2727 * Moose::Meta::Attribute
2728 - Fix handles to use goto() so that caller() comes out properly on
2729 the other side (perigrin)
2731 0.22 Thurs. May 31, 2007
2732 * Moose::Util::TypeConstraints
2733 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2734 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2735 prototypes for functions
2736 - added the ClassName type constraint, this checks for strings
2737 which will respond true to ->isa(UNIVERSAL).
2738 - added tests and docs for this
2739 - subtyping just in name now works correctly by making the
2740 default for where be { 1 }
2741 - added test for this
2743 * Moose::Meta::Method::Accessor
2744 - coerce and lazy now work together correctly, thanks to
2745 merlyn for finding this bug
2746 - tests added for this
2747 - fix reader presedence bug in Moose::Meta::Attribute + tests
2750 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2751 a HASH-ref and missed. This produces better error messages then
2752 having it die cause undef is not a HASH.
2753 - added tests for this
2755 0.21 Thursday, May 2nd, 2007
2757 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2758 - modified unimport to remove super and inner along with the rest
2759 - altered unimport tests to handle this
2762 - altered super export to populate SUPER_SLOT
2764 * Moose::Meta::Class
2765 - altered augment and override modifier application to use *_SLOT
2766 - modified tests for these to unimport one test class each to test
2769 - fixed issue where custom attribute metaclasses
2770 where not handled correctly in roles
2771 - added tests for this
2773 * Moose::Meta::Class
2774 - fixed issue where extending metaclasses with
2775 roles would blow up. Thanks to Aankhen`` for
2776 finding this insidious error, and it's solution.
2778 ~~ lots of spelling and grammer fixes in the docs,
2779 many many thanks to rlb3 and Aankhen for these :)
2781 0.20 Friday, April 6th, 2007
2782 >> I messed up the SKIP logic in one test
2783 so this release is just to fix that.
2786 - 'has' now also accepts an ARRAY ref
2787 to create multiple attrs (see docs)
2788 (thanks to konobi for this)
2789 - added tests and docs
2791 0.19 Thurs. April 5th, 2007
2792 ~~ More documentation updates ~~
2794 * Moose::Util::TypeConstraints
2795 - 'type' now supports messages as well
2796 thanks to phaylon for finding this
2797 - added tests for this
2798 - added &list_all_type_constraints and
2799 &list_all_builtin_type_constraints
2800 functions to facilitate introspection.
2802 * Moose::Meta::Attribute
2803 - fixed regexp 'handles' declarations
2804 to build the list of delegated methods
2805 correctly (and not override important
2806 things like &new) thanks to ashleyb
2808 - added tests and docs for this
2809 - added the 'documentation' attributes
2810 so that you can actually document your
2811 attributes and inspect them through the
2813 - added tests and docs for this
2815 * Moose::Meta::Class
2816 - when loading custom attribute metaclasses
2817 it will first look in for the class in the
2818 Moose::Meta::Attribute::Custom::$name, and
2819 then default to just loading $name.
2820 - added tests and docs for this
2822 * Moose::Meta::TypeConstraint
2823 - type constraints now stringify to their names.
2824 - added test for this
2827 - added tests to assure we work with Module::Refresh
2828 - added stricter test skip logic in the Moose POOP
2829 test, ask Rob Kinyon why.
2830 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2832 0.18 Sat. March 10, 2007
2833 ~~ Many, many documentation updates ~~
2836 - We now use Class::MOP::load_class to
2838 - added tests to show types and subtypes
2839 working with Declare::Constraints::Simple
2840 and Test::Deep as constraint engines.
2843 !! You must have Class::MOP 0.37_001 !!
2844 !! for this developer release to work !!
2846 This release was primarily adding the immutable
2847 feature to Moose. An immutable class is one which
2848 you promise not to alter. When you set the class
2849 as immutable it will perform various bits of
2850 memoization and inline certain part of the code
2851 (constructors, destructors and accessors). This
2852 minimizes (and in some cases totally eliminates)
2853 one of Moose's biggest performance hits. This
2854 feature is not on by default, and is 100% optional.
2855 It has several configurable bits as well, so you
2856 can pick and choose to your specific needs.
2858 The changes involved in this were fairly wide and
2859 highly specific, but 100% backwards compatible, so
2860 I am not going to enumerate them here. If you are
2861 truely interested in what was changed, please do
2864 0.17 Tues. Nov. 14, 2006
2865 * Moose::Meta::Method::Accessor
2866 - bugfix for read-only accessors which
2867 are have a type constraint and lazy.
2868 Thanks to chansen for finding it.
2870 0.16 Tues. Nov. 14, 2006
2872 There are some speed improvements in this release,
2873 but they are only the begining, so stay tuned.
2876 - BUILDALL and DEMOLISHALL no longer get
2877 called unless they actually need to be.
2878 This gave us a signifigant speed boost
2879 for the cases when there is no BUILD or
2880 DEMOLISH method present.
2882 * Moose::Util::TypeConstraints
2883 * Moose::Meta::TypeConstraint
2884 - added an 'optimize_as' option to the
2885 type constraint, which allows for a
2886 hand optimized version of the type
2887 constraint to be used when possible.
2888 - Any internally created type constraints
2889 now provide an optimized version as well.
2891 0.15 Sun. Nov. 5, 2006
2893 This version of Moose *must* have Class::MOP 0.36 in order
2894 to work correctly. A number of small internal tweaks have
2895 been made in order to be compatible with that release.
2897 * Moose::Util::TypeConstraints
2898 - added &unimport so that you can clean out
2899 your class namespace of these exported
2902 * Moose::Meta::Class
2903 - fixed minor issue which occasionally
2904 comes up during global destruction
2906 - moved Moose::Meta::Method::Overriden into
2910 - moved Moose::Meta::Role::Method into
2913 * Moose::Meta::Attribute
2914 - changed how we do type checks so that
2915 we reduce the overall cost, but still
2918 - moved accessor generation methods to
2919 Moose::Meta::Method::Accessor to
2920 conform to the API changes from
2923 * Moose::Meta::TypeConstraint
2924 - changed how constraints are compiled
2925 so that we do less recursion and more
2926 iteration. This makes the type check
2928 - moved Moose::Meta::TypeConstraint::Union
2931 * Moose::Meta::Method::Accessor
2932 - created this from methods formerly found in
2933 Moose::Meta::Attribute
2935 * Moose::Meta::Role::Method
2936 - moved this from Moose::Meta::Role
2938 * Moose::Meta::Method::Overriden
2939 - moved this from Moose::Meta::Class
2941 * Moose::Meta::TypeConstraint::Union
2942 - moved this from Moose::Meta::TypeConstraint
2944 0.14 Mon. Oct. 9, 2006
2946 * Moose::Meta::Attribute
2947 - fixed lazy attributes which were not getting
2948 checked with the type constraint (thanks ashley)
2949 - added tests for this
2950 - removed the over-enthusiastic DWIMery of the
2951 automatic ArrayRef and HashRef defaults, it
2952 broke predicates in an ugly way.
2953 - removed tests for this
2955 0.13 Sat. Sept. 30, 2006
2957 This version of Moose *must* have Class::MOP 0.35 in order
2958 to work correctly. A number of small internal tweaks have
2959 been made in order to be compatible with that release.
2962 - Removed the use of UNIVERSAL::require to be a better
2963 symbol table citizen and remove a dependency
2964 (thanks Adam Kennedy)
2966 **~~ removed experimental & undocumented feature ~~**
2967 - commented out the 'method' and 'self' keywords, see the
2968 comments for more info.
2971 - added a FAQ and WTF files to document frequently
2972 asked questions and common problems
2974 * Moose::Util::TypeConstraints
2975 - added GlobRef and FileHandle type constraint
2976 - added tests for this
2978 * Moose::Meta::Attribute
2979 - if your attribute 'isa' ArrayRef of HashRef, and you have
2980 not explicitly set a default, then make the default DWIM.
2981 This will also work for subtypes of ArrayRef and HashRef
2983 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2984 - new test added for this (thanks to ashley)
2987 - added basic support for runtime role composition
2988 but this is still *highly experimental*, so feedback
2989 is much appreciated :)
2990 - added tests for this
2992 * Moose::Meta::TypeConstraint
2993 - the type constraint now handles the coercion process
2994 through delegation, this is to support the coercion
2997 * Moose::Meta::TypeConstraint::Union
2998 - it is now possible for coercions to be performed
3000 - added tests for this (thanks to konobi)
3002 * Moose::Meta::TypeCoercion
3003 - properly capturing error when type constraint
3007 - Scalar::Util 1.18 is bad on Win32, so temporarily
3008 only require version 1.17 for Win32 and cygwin.
3009 (thanks Adam Kennedy)
3011 0.12 Sat. Sept. 1, 2006
3013 - Recipe5 (subtypes & coercion) has been written
3016 - fixed "bad meta" error message to be more descriptive
3017 - fixed &unimport to not remove the &inner and &super
3018 keywords because we need to localize them.
3019 - fixed number of spelling/grammer issues, thanks Theory :)
3021 **~~ experimental & undocumented feature ~~**
3022 - added the method and self keywords, they are basically
3023 just sugar, and they may not stay around.
3026 - added &dump method to easily Data::Dumper
3029 * Moose::Meta::TypeConstraint
3030 - added the &is_a_type_of method to check both the current
3031 and the subtype of a method (similar to &isa with classes)
3034 - this is now a subclass of Class::MOP::Module, and no longer
3035 creates the _role_meta ugliness of before.
3036 - fixed tests to reflect this change
3038 0.11 Wed. July 12, 2006
3040 - added an &unimport method to remove all the keywords
3041 that Moose will import, simply add 'no Moose' to the
3042 bottom of your class file.
3045 - fixed some test failures caused by a forgotten test
3048 0.10 Thurs. July 6, 2006
3050 - improved error message when loading modules so
3051 it is less confusing when you load a role.
3052 - added &calculate_all_roles method to
3053 Moose::Meta::Class and Moose::Meta::Role
3056 This module has been tested against Class::MOP 0.30
3057 but it does not yet utilize the optimizations
3058 it makes available. Stay tuned for that ;)
3060 0.09_03 Fri. June 23, 2006
3061 ++ DEVELOPER RELEASE ++
3063 - 'use strict' and 'use warnings' are no longer
3064 needed in Moose classes, Moose itself will
3065 turn them on for you.
3066 - added tests for this
3067 - moved code from exported subs to private methods
3068 in Moose::Meta::Class
3071 - as with Moose, strict and warnings are
3072 automatically turned on for you.
3073 - added tests for this
3076 - now handles an edge case for override errors
3077 - added tests for this
3078 - added some more edge case tests
3080 0.09_02 Tues. May 16, 2006
3081 ++ DEVELOPER RELEASE ++
3083 - added prototypes to the exported subs
3087 - added prototypes to the exported subs
3090 * Moose::Util::TypeConstraints
3091 - cleaned up prototypes for the subs
3094 0.09_01 Fri. May 12, 2006
3095 ++ DEVELOPER RELEASE ++
3096 - This release works in combination with
3097 Class::MOP 0.29_01, it is a developer
3098 release because it uses the a new
3099 instance sub-protocol and a fairly
3100 complete Role implementation. It has
3101 not yet been optimized, so it slower
3102 the the previous CPAN version. This
3103 release also lacks good updated docs,
3104 the official release will have updated docs.
3107 - refactored the keyword exports
3108 - 'with' now checks Role validaity and
3109 accepts more than one Role at a time
3110 - 'extends' makes metaclass adjustments as
3111 needed to ensure metaclass compatibility
3114 - refactored the keyword exports
3115 - 'with' now checks Role validaity and
3116 accepts more than one Role at a time
3118 * Moose::Util::TypeConstraints
3119 - added the 'enum' keyword for simple
3120 string enumerations which can be used as
3122 - see example of usage in t/202_example.t
3125 - more careful checking of params to new()
3128 - much work done on the role composition
3129 - many new tests for conflict detection
3130 and composition edge cases
3131 - not enough documentation, I suggest
3132 looking at the tests
3134 * Moose::Meta::Instance
3135 - added new Instance metaclass to support
3136 the new Class::MOP instance protocol
3138 * Moose::Meta::Class
3139 - some small changes to support the new
3141 - some small additions to support Roles
3143 * Moose::Meta::Attribute
3144 - some improvements to the accessor generation code
3146 - some small changes to support the new
3148 - (still somewhat) experimental delegation support
3149 with the 'handles' option
3150 - added several tests for this
3151 - no docs for this yet
3153 0.05 Thurs. April 27, 2006
3155 - keywords are now exported with Sub::Exporter
3156 thanks to chansen for this commit
3157 - has keyword now takes a 'metaclass' option
3158 to support custom attribute meta-classes
3159 on a per-attribute basis
3160 - added tests for this
3161 - the 'has' keyword not accepts inherited slot
3162 specifications (has '+foo'). This is still an
3163 experimental feature and probably not finished
3164 see t/038_attribute_inherited_slot_specs.t for
3165 more details, or ask about it on #moose
3166 - added tests for this
3169 - keywords are now exported with Sub::Exporter
3171 * Moose::Utils::TypeConstraints
3172 - reorganized the type constraint hierarchy, thanks
3173 to nothingmuch and chansen for his help and advice
3175 - added some tests for this
3176 - keywords are now exported with Sub::Exporter
3177 thanks to chansen for this commit
3179 * Moose::Meta::Class
3180 - due to changes in Class::MOP, we had to change
3181 construct_instance (for the better)
3183 * Moose::Meta::Attribute
3184 - due to changes in Class::MOP, we had to add the
3185 initialize_instance_slot method (it's a good thing)
3187 * Moose::Meta::TypeConstraint
3188 - added type constraint unions
3189 - added tests for this
3190 - added the is_subtype_of predicate method
3191 - added tests for this
3193 0.04 Sun. April 16th, 2006
3195 - Roles can now consume other roles
3196 - added tests for this
3197 - Roles can specify required methods now with
3198 the requires() keyword
3199 - added tests for this
3202 - ripped out much of it's guts ,.. much cleaner now
3203 - added required methods and correct handling of
3204 them in apply() for both classes and roles
3205 - added tests for this
3206 - no longer adds a does() method to consuming classes
3207 it relys on the one in Moose::Object
3208 - added roles attribute and some methods to support
3209 roles consuming roles
3211 * Moose::Meta::Attribute
3212 - added support for triggers on attributes
3213 - added tests for this
3214 - added support for does option on an attribute
3215 - added tests for this
3217 * Moose::Meta::Class
3218 - added support for attribute triggers in the
3220 - added tests for this
3223 - Moose no longer creates a subtype for your class
3224 if a subtype of the same name already exists, this
3225 should DWIM in 99.9999% of all cases
3227 * Moose::Util::TypeConstraints
3228 - fixed bug where incorrect subtype conflicts were
3230 - added test for this
3233 - this class can now be extended with 'use base' if
3234 you need it, it properly loads the metaclass class now
3235 - added test for this
3237 0.03_02 Wed. April 12, 2006
3239 - you must now explictly use Moose::Util::TypeConstraints
3240 it no longer gets exported for you automatically
3243 - new() now accepts hash-refs as well as key/value lists
3244 - added does() method to check for Roles
3245 - added tests for this
3247 * Moose::Meta::Class
3248 - added roles attribute along with the add_role() and
3250 - added tests for this
3253 - now adds a does() method to consuming classes
3254 which tests the class's hierarchy for roles
3255 - added tests for this
3257 0.03_01 Mon. April 10, 2006
3259 - added new Role recipe (no content yet, only code)
3262 - added 'with' keyword for Role support
3263 - added test and docs for this
3264 - fixed subtype quoting bug
3265 - added test for this
3269 - added test and docs
3271 * Moose::Util::TypeConstraints
3272 - added the message keyword to add custom
3273 error messages to type constraints
3276 - the meta role to support Moose::Role
3277 - added tests and docs
3279 * Moose::Meta::Class
3280 - moved a number of things from Moose.pm
3281 to here, they should have been here
3284 * Moose::Meta::Attribute
3285 - moved the attribute option macros here
3286 instead of putting them in Moose.pm
3288 * Moose::Meta::TypeConstraint
3289 - added the message attributes and the
3291 - added tests and docs for this
3293 0.03 Thurs. March 30, 2006
3295 - added the Moose::Cookbook with 5 recipes,
3296 describing all the stuff Moose can do.
3299 - fixed an issue with &extends super class loading
3300 it now captures errors and deals with inline
3301 packages correctly (bug found by mst, solution
3303 - added super/override & inner/augment features
3304 - added tests and docs for these
3307 - BUILDALL now takes a reference of the %params
3308 that are passed to &new, and passes that to
3311 * Moose::Util::TypeConstraints
3312 - Type constraints now survive runtime reloading
3313 - added test for this
3315 * Moose::Meta::Class
3316 - fixed the way attribute defaults are handled
3317 during instance construction (bug found by chansen)
3319 * Moose::Meta::Attribute
3320 - read-only attributes now actually enforce their
3321 read-only-ness (this corrected in Class::MOP as
3324 0.02 Tues. March 21, 2006
3326 - many more tests, fixing some bugs and
3328 - &extends now loads the base module with
3330 - added UNIVERSAL::require to the
3333 - each new Moose class will also create
3334 and register a subtype of Object which
3335 correspond to the new Moose class.
3336 - the 'isa' option in &has now only
3337 accepts strings, and will DWIM in
3340 * Moose::Util::TypeConstraints
3341 - added type coercion features
3342 - added tests for this
3343 - added support for this in attributes
3344 and instance construction
3346 - type construction no longer creates a
3347 function, it registers the type instead.
3348 - added several functions to get the
3352 - BUILDALL and DEMOLISHALL were broken
3353 because of a mis-named hash key, Whoops :)
3355 * Moose::Meta::Attribute
3356 - adding support for coercion in the
3357 autogenerated accessors
3359 * Moose::Meta::Class
3360 - adding support for coercion in the
3361 instance construction
3363 * Moose::Meta::TypeConstraint
3364 * Moose::Meta::TypeCoercion
3365 - type constraints and coercions are now
3366 full fledges meta-objects
3368 0.01 Wed. March 15, 2006
3369 - Moooooooooooooooooose!!!