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
16 * Passing an odd number of args to ->new() now gives a more useful warning
17 than Perl's builtin warning. Suggested by Sir Robert Burbridge. (Dave
22 * A number of native trait methods which expected strings as arguments did
23 not allow the empty string. This included Array->join, String->match,
24 String->replace, and String->substr. Reported by Whitney Jackson. RT
27 * 'no Moose' no longer inadvertently removes imports it didn't create
28 itself. RT #60013. (Florian Ragwitz, doy)
30 * Roles now support passing an array reference of method names to method
31 modifier sugar functions. (doy)
33 * Native traits no longer use optimized inlining routines if the instance
34 requests it (in particular, if inline_get_slot_value doesn't return
35 something that can be assigned to). This should fix issues with
38 * We now ignore all Class::MOP and Moose classes when determining what
39 package called a deprecated feature. This should make the deprecation
40 warnings saner, and make it possible to turn them off more easily. (Dave
43 * The deprecated "default is" warning no longer happens if the attribute has
44 any accessor method defined (accessor, reader, writer). Also, this warning
45 only happens when a method that was generated because of the "default is"
46 gets called, rather than when the attribute is defined. (Dave Rolsky)
48 * The "default default" code for some native delegations no longer issues a
49 deprecation warning when the attribute is required or has a builder. (Dave
52 * Setting a "default default" caused a fatal error if you used the builder
53 or lazy_build options for the attribute. Reported by Kent Fredric. RT
56 * Allow disabling stack traces by setting an environment variable. (Marcus
63 * Major changes to Native Traits, most of which make them act more like
64 "normal" attributes. This should be mostly compatible with existing code,
65 but see Moose::Manual::Delta for details.
67 * A few native traits (String, Counter, Bool) provide default values of "is"
68 and "default" when you created an attribute. Allowing them to provide
69 these values is now deprecated. Supply the value yourself when creating
72 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
73 generate non-global aliases for your traits (and allow your users to
74 rename the aliases, etc). (doy)
76 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
77 determine which name to install the 'meta' name under. Passing 'undef'
78 to this option will suppress generation of the meta method entirely. (doy)
80 * Moose now warns if it overwrites an existing method named "meta" in your
81 class when you "use Moose". (doy)
85 * Native Trait delegations are now all generated as inline code. This should
86 be much faster than the previous method of delegation. In the best case,
87 native trait methods will be very highly optimized.
89 * Reinitializing a metaclass no longer removes the existing method and
90 attribute objects (it instead fixes them so they are correct for the
91 reinitialized metaclass). This should make the order of loading many
92 MooseX modules less of an issue. (doy)
94 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
98 * If an attribute was weak, setting it to a non-ref value after the object
99 was constructed caused an error. Now we only call weaken when the new
100 value is a reference.
102 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
103 based on a patch from Andreas Koenig.
105 1.14 Tue, Sep 21, 2010
109 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
110 a weird error when defining the same union type twice, but only when using
111 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
113 1.13 Mon, Sep 13, 2010
117 * The deprecation warnings for alias and excludes are back, use -alias and
118 -excludes instead. (Dave Rolsky)
122 * When composing one role into another and there is an attribute conflict,
123 the error message now includes the attribute name. Reported by Sam
124 Graham. RT #59985. (Dave Rolsky)
126 * When a class is made immutable, the does_role method is overridden with a
127 much faster version that simply looks role names up in a hash. Code which
128 uses lots of role-based type constraints should be faster. (Dave Rolsky)
130 1.12 Sat, Aug 28, 2010
134 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
136 1.11 Fri, Aug 27, 2010
140 * An attribute in a subclass can now override the value of "is". (doy)
142 * The deprecation warnings for alias and excludes have been turned back off
143 for this release, to give other module authors a chance to tweak their
148 * mro::get_linear_isa was being called as a function rather than a method,
149 which caused problems with Perl 5.8.x. (t0m)
151 * Union types always created a type constraint, even if their constituent
152 constraints did not have any coercions. This bogus coercion always
153 returned undef, which meant that a union which included Undef as a member
154 always coerced bad values to undef. Reported by Eric Brine. RT
155 #58411. (Dave Rolsky)
157 * Union types with coercions would always fall back to coercing the value to
158 undef (unintentionally). Now if all the coercions for a union type fail,
159 the value returned by the coercion is the original value that we attempted
160 to coerce. (Dave Rolsky).
162 1.10 Sun, Aug 22, 2010
166 * The long-deprecated alias and excludes options for role applications now
167 issue a deprecation warning. Use -alias and -excludes instead. (Dave
172 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
174 * default => undef now works properly. (doy)
176 * Enum type constraints now throw errors if their values are nonsensical.
181 * Optimizations that should help speed up compilation time (Dave Rolsky).
183 1.09 Tue, Jul 25, 2010
187 * You can no longer pass "coerce => 1" for an attribute unless its type
188 constraint has a coercion defined. Doing so will issue a deprecation
189 warning. (Dave Rolsky)
191 * Previously, '+foo' only allowed a specific set of options to be
192 overridden, which made it impossible to change attribute options related
193 to extensions. Now we blacklist some options, and anything else is
194 allowed. (doy, Tuomas Jormola)
196 * Most features which have been declared deprecated now issue a warning using
197 Moose::Deprecated. Warnings are issued once per calling package, not
198 repeatedly. See Moose::Deprecated for information on how you can shut
199 these warnings up entirely. Note that deprecated features will eventually
200 be removed, so shutting up the warnings may not be the best idea. (Dave
203 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
208 * We no longer unimport strict and warnings when Moose, Moose::Role, or
209 Moose::Exporter are unimported. Doing this was broken if the user
210 explicitly loaded strict and warnings themself, and the results could be
211 generally surprising. We decided that it was best to err on the side of
212 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
215 * New with_traits helper function in Moose::Util. (doy)
219 * Accessors will no longer be inlined if the instance metaclass isn't
222 * Use Perl 5.10's new recursive regex features, if possible, for the type
223 constraint parser. (doy, nothingmuch)
227 * Attributes now warn if their accessors overwrite a locally defined
228 function (not just method). (doy)
232 * Bump our required perl version to 5.8.3, since earlier versions fail tests
233 and aren't easily installable/testable.
235 1.08 Tue, Jun 15, 2010
239 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
240 to be overridden more easily (doy).
242 1.07 Sat, Jun 05, 2010
246 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
247 classes and non-class metaclass traits (doy, dougdude).
249 1.06 Tue, Jun 01, 2010
253 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
254 more uniformly compare type constraints between 'classic' Moose type
255 constraints and MooseX::Types based type constraints.
257 1.05 Thu, May 20, 2010
261 * Packages and modules no longer have methods - this functionality was
262 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
263 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
265 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
266 Moose::Object::new. (doy)
270 * strict and warnings are now unimported when Moose, Moose::Role, or
271 Moose::Exporter are unimported. (doy, Adam Kennedy)
273 * Added a 'consumers' method to Moose::Meta::Role for finding all
274 classes/roles which consume the given role. (doy)
278 * Fix has '+attr' in Roles to explode immediately, rather than when the role
279 is applied to a class (t0m).
281 * Fix type constraint validation messages to not include the string 'failed'
282 twice in the same sentence (Florian Ragwitz).
284 * New type constraints will default to being unequal, rather than equal
287 * The tests no longer check for perl's behavior of clobbering $@, which has
288 been fixed in perl-5.13.1 (Florian Ragwitz).
290 * Metaclass compatibility fixing has been completely rewritten, and should
291 be much more robust. (doy)
293 1.04 Thu, May 20, 2010
295 * This release was broken and has been deleted from CPAN shortly after its
298 1.03 Thu, May 06, 2010
302 * Allow specifying required versions when setting superclasses or applying
303 roles (Florian Ragwitz).
305 1.02 Sat, May 01, 2010
309 * Stop the natatime method provided by the native Array trait from returning
310 an exhausted iterator when being called with a callback. (Florian Ragwitz)
312 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
315 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
316 the class the TC represents as an argument incorrectly returned true. This
317 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
319 * Use File::Temp for temp files created during tests. Previously, files were
320 written to the t/ dir, which could cause problems of the user running the
321 tests did not have write access to that directory.. (Chris Weyl, Ævar
324 * Pass role arguments along when applying roles to instances. (doy, lsm)
326 1.01 Fri, Mar 26, 2010
330 * The handles option now also accepts a role type constraint in addition to a
331 plain role name. (Florian Ragwitz)
335 * Record the Sartak/doy debt properly in Changes (perigrin)
337 1.00 Tue, Mar 25, 2010
341 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
342 methods by default. (Florian Ragwitz)
346 * Improve various parts of the documentation and fix many typos.
347 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
351 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
353 0.99 Mon, Mar 8, 2010
357 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
358 which member of the union a given value validates for. (Cory Watson)
362 * DEMOLISH methods in mutable subclasses of immutable classes are now called
363 properly (Chia-liang Kao, Jesse Luehrs)
367 * Added Moose::Manual::Support that defines the support, compatiblity, and
368 release policies for Moose. (Chris Prather)
370 0.98 Wed, Feb 10, 2010
374 * An internals change in 0.97 broke role application to an instance in some
375 cases. The bug occurred when two different roles were applied to different
376 instances of the same class. (Rafael Kitover)
379 0.97 Tue, Feb 9, 2010
383 * Calling ->reinitialize on a cached anonymous class effectively uncached
384 the metaclass object, causing the metaclass to go out of scope
385 unexpectedly. This could easily happen at a distance by applying a
386 metarole to an anonymous class. (Dave Rolsky).
388 0.96 Sat, Feb 6, 2010
392 * ScalarRef is now a parameterized type. You can now specify a type
393 constraint for whatever the reference points to. (Closes RT#50857)
394 (Michael G. Schwern, Florian Ragwitz)
398 * ScalarRef now accepts references to other references. (Closes RT#50934)
401 0.95 Thu, Feb 4, 2010
405 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
406 a delegation option. This allows the code reference to be called as a
407 method on the object. (Florian Ragwitz)
411 * Moose::Object::does no longer checks the entire inheritance tree, since
412 Moose::Meta::Class::does_role already does this. (doy)
414 * Moose::Util::add_method_modifier (and subsequently the sugar functions
415 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
416 with the same behavior as lists. Types other than arrayref and regexp
417 result in an error. (Dylan Hardison)
419 0.94 Mon, Jan 18, 2010
423 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
427 * Improved support for anonymous roles by changing various APIs to take
428 Moose::Meta::Role objects as well as role names. This included
430 - Moose::Meta::Class->does_role
431 - Moose::Meta::Role->does_role
432 - Moose::Util::does_role
433 - Moose::Util::apply_all_roles
434 - Moose::Util::ensure_all_roles
435 - Moose::Util::search_class_by_role
437 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
441 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
442 work as long as the accessor method names are explicitly set to valid Perl
443 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
446 0.93_03 Tue, Jan 5, 2010
450 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
451 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
454 0.93_02 Tue, Jan 5, 2010
458 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
459 testers. (Dave Rolsky)
462 0.93_01 Mon, Jan 4, 2010
466 See Moose::Manual::Delta for more details on backwards compatiblity issues.
468 * Role attributes are now objects of the Moose::Meta::Role::Attribute
469 class. (Dave Rolsky).
471 * There were major changes to how metaroles are applied. We now distinguish
472 between metaroles for classes vs those for roles. See the
473 Moose::Util::MetaRole docs for details. (Dave Rolsky)
475 * The old MetaRole API has been deprecated, but will continue to
476 work. However, if you are applying an attribute metaclass role, this may
477 break because of the fact that roles now have an attribute metaclass
480 * Moose::Util::MetaRole::apply_metaclass_roles is now called
481 apply_metaroles. The old name is deprecated. Dave Rolsky>
483 * The unimport subs created by Moose::Exporter now clean up re-exported
484 functions like blessed and confess, unless the caller imported them from
485 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
487 [ENHANCEMENTS AND BUG FIXES]
489 * Changed the Str constraint to accept magic lvalue strings like one gets from
490 substr et al, again. (sorear)
492 * Sped up the type constraint parsing regex. (Sam Vilain)
494 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
497 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
498 easier testing of TypeConstraints from the command line. (perigrin)
500 * Added a with_immutable test function to Test::Moose, to run a block of tests
501 with and without certain classes being immutable. (doy)
503 * We now use Module::Install extensions explicitly to avoid confusing errors
504 if they're not installed. We use Module::Install::AuthorRequires to stop
505 test extraction and general failures if you don't have the author side
506 dependencies installed.
508 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
509 #51791. (Amir E. Aharoni)
512 0.93 Thu, Nov 19, 2009
514 - Calling $object->new() is no longer deprecated, and no longer
518 - The get_attribute_map method is now deprecated. (Dave Rolsky)
520 * Moose::Meta::Method::Delegation
521 - Preserve variable aliasing in @_ for delegated methods, so that
522 altering @_ affects the passed value. (doy)
524 * Moose::Util::TypeConstraints
525 - Allow array refs for non-anonymous form of enum and duck_type, not
526 just anonymous. The non-arrayref forms may be removed in the
528 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
529 - Properly document Int being a subtype of Str. (doy)
532 - Moose::Exporter using modules can now export their functions to the
533 main package. This applied to Moose and Moose::Role, among
534 others. (nothingmuch)
536 * Moose::Meta::Attribute
537 - Don't remove attribute accessors we never installed, during
538 remove_accessors. (doy)
540 * Moose::Meta::Attribute::Native::Trait::Array
541 - Don't bypass prototype checking when calling List::Util::first, to
542 avoid a segfault when it is called with a non-code argument. (doy)
544 * Moose::Meta::Attribute::Native::Trait::Code
545 - Fix passing arguments to code execute helpers. (doy)
547 0.92 Tue, Sep 22, 2009
548 * Moose::Util::TypeConstraints
549 - added the match_on_type operator (Stevan)
550 - added tests and docs for this (Stevan)
553 - Metaclass compat fixing should already happen recursively, there's no
554 need to explicitly walk up the inheritance tree. (doy)
556 * Moose::Meta::Attribute
557 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
559 0.91 Thu, Sep 17, 2009
561 - Don't import any functions, in order to avoid polluting our namespace
562 with things that can look like methods (blessed, try, etc)
565 * Moose::Meta::Method::Constructor
566 - The generated code needs to called Scalar::Util::blessed by its
567 fully-qualified name or else Perl can interpret the call to blessed as
568 an indirect method call. This broke Search::GIN, which in turn broke
569 KiokuDB. (nothingmuch)
571 0.90 Tue, Sep 15, 2009
572 * Moose::Meta::Attribute::Native::Trait::Counter
573 * Moose::Meta::Attribute::Native::Trait::String
574 - For these two traits, an attribute which did not explicitly provide
575 methods to handles magically ended up delegating *all* the helper
576 methods. This has been removed. You must be explicit in your handles
577 declaration for all Native Traits. (Dave Rolsky)
580 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
581 sure to rethrow its error message. However, we also localize $@ before
582 this so that if all the DEMOLISH methods success, the value of $@ will
583 be preserved. (nothingmuch and Dave Rolsky)
584 - We now also localize $? during object destruction. (nothingmuch and
586 - The handling of DEMOLISH methods was broken for immutablized classes,
587 which were not receiving the value of
588 Devel::GlobalDestruction::in_global_destruction.
589 - These two fixes address some of RT #48271, reported by Zefram.
590 - This is all now documented in Moose::Manual::Construction.
591 - Calling $object->new() is now deprecated. A warning will be
595 - Added more hooks to customize how roles are applied. The role
596 summation class, used to create composite roles, can now be changed
597 and/or have meta-roles applied to it. (rafl)
598 - The get_method_list method no longer explicitly excludes the "meta"
599 method. This was a hack that has been replaced by better hacks. (Dave
602 * Moose::Meta::Method::Delegation
603 - fixed delegated methods to make sure that any modifiers attached to
604 the accessor being delegated on will be called (Stevan)
605 - added tests for this (Stevan)
608 - Moose no longer warns when a class that is being made immutable has
609 mutable ancestors. While in theory this is a good thing to warn about,
610 we found so many exceptions to this that doing this properly became
613 0.89_02 Thu, Sep 10, 2009
614 * Moose::Meta::Attribute::Native
615 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
617 * Moose::Meta::Attribute::Native::Trait::Array
618 - Added a number of functions from List::Util and List::MoreUtils,
619 including reduce, shuffle, uniq, and natatime. (doy)
622 - This module will now generate an init_meta method for your exporting
623 class if you pass it options for
624 Moose::Util::MetaRole::apply_metaclass_roles or
625 apply_base_class_roles. This eliminates a lot of repetitive
626 boilerplate for typical MooseX modules. (doy).
627 - Documented the with_meta feature, which is a replacement for
628 with_caller. This feature was added by josh a while ago.
629 - The with_caller feature is now deprecated, but will not issue a
630 warning yet. (Dave Rolsky)
631 - If you try to wrap/export a subroutine which doesn't actually exist,
632 Moose::Exporter will warn you about this. (doy)
634 * Moose::Meta::Role::Application::ToRole
635 - When a role aliased a method from another role, it was only getting
636 the new (aliased) name, not the original name. This differed from what
637 happens when a class aliases a role's methods. If you _only_ want the
638 aliased name, make sure to also exclue the original name. (Dave
641 0.89_01 Wed Sep 2, 2009
642 * Moose::Meta::Attribute
643 - Added the currying syntax for delegation from AttributeHelpers to the
644 existing delegation API. (hdp)
646 * Moose::Meta::Attribute::Native
647 - We have merged the functionality of MooseX::AttributeHelpers into the
648 Moose core with some API tweaks. You can continue to use
649 MooseX::AttributeHelpers, but it will not be maintained except
650 (perhaps) for critical bug fixes in the future. See
651 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
654 * Moose::Error::Croak
655 * Moose::Error::Confess
656 - Clarify documentation on how to use different error-throwing
657 modules. (Curtis Jewell)
660 - Correct POD for builder to point to Recipe8, not 9. (gphat)
663 - When a nonexistent sub name is passed to as_is, with_caller, or
664 with_meta, throw a warning and skip the exporting, rather than
665 installing a broken sub. (doy)
668 - Moose now warns if you call C<make_immutable> for a class with mutable
671 0.89 Thu Aug 13, 2009
672 * Moose::Manual::Attributes
673 - Clarify "is", include discussion of "bare". (Sartak)
675 * Moose::Meta::Role::Method::Conflicting
676 * Moose::Meta::Role::Application::ToClass
677 - For the first set of roles involved in a conflict, report all
678 unresolved method conflicts, not just the first method. Fixes #47210
679 reported by Ovid. (Sartak)
681 * Moose::Meta::TypeConstraint
682 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
685 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
687 - Allow specifying role options (alias, excludes, MXRP stuff) in the
688 arrayref passed to "use Moose -traits" (doy)
691 - Add functions meta_class_alias and meta_attribute_alias for creating
692 aliases for class and attribute metaclasses and metatraits. (doy)
694 * Moose::Meta::Attribute
695 * Moose::Meta::Method::Accessor
696 - A trigger now receives the old value as a second argument, if the
697 attribute had one. (Dave Rolsky)
699 * Moose::Meta::Method::Constructor
700 - Fix a bug with $obj->new when $obj has stringify overloading.
701 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
702 - However, we will probably deprecate $obj->new, so please don't start
703 using it for new code!
705 * Moose::Meta::Role::Application
706 * Moose::Meta::Role::Application::RoleSummation
707 - Rename alias and excludes to -alias and -excludes (but keep the old
708 names for now, for backcompat) (doy)
710 0.88 Fri Jul 24, 2009
711 * Moose::Manual::Contributing
712 - Re-write the Moose::Manual::Contributing document to reflect
713 the new layout and methods of work for the Git repository. All
714 work now should be done in topic branches and reviewed by a
715 core committer before being applied to master. All releases
716 are done by a cabal member and merged from master to
717 stable. This plan was devised by Yuval, blame him. (perigrin)
720 - Create metaclass attributes for the different role application
723 * Moose::Util::MetaRole
724 - Allow applying roles to a meta role's role application
727 * Moose::Meta::Attribute
728 - Add weak_ref to allowed options for "has '+foo'" (mst)
730 * Moose::Meta::Method::Accessor
731 - No longer uses inline_slot_access in accessors, to support
732 non-lvalue-based meta instances. (sorear)
735 * Moose::Meta::Method::Delegation
736 - Once again allow class names as well as objects for
737 delegation. This was changed in 0.86.
740 * Moose::Meta::Class::Immutable::Trait
741 - Fixes to work with the latest Class::MOP.
743 * Moose::Meta::Method::Delegation
744 - Delegation now dies with a more useful error message if the
745 attribute's accessor returns something defined but
748 0.85 Fri, Jun 26, 2009
749 * Moose::Meta::Attribute
750 - The warning for 'no associated methods' is now split out into
751 the _check_associated_methods method, so that extensions can
752 safely call 'after install_accessors => ...'. This fixes a
753 warning from MooseX::AttributeHelpers. (hdp)
755 0.84 Fri, Jun 26, 2009
757 - has now sets definition_context for attributes defined in
760 * Moose::Meta::Attribute
761 - When adding an attribute to a metaclass, if the attribute has
762 no associated methods, it will give a deprecation
764 - Methods generated by delegation were not being added to
765 associated_methods. (hdp)
766 - Attribute accessors (reader, writer, accessor, predicate,
767 clearer) now warn if they overwrite an existing method. (doy)
768 - Attribute constructors now warn very noisily about unknown (or
769 misspelled) arguments
771 * Moose::Util::TypeConstraints
772 - Deprecated the totally useless Role type name, which just
773 checked if $object->can('does'). Note that this is _not_ the
774 same as a type created by calling role_type('RoleName').
776 * Moose::Util::TypeConstraints
777 * Moose::Meta::TypeConstraint::DuckType
778 - Reify duck type from a regular subtype into an actual class
780 - Document this because Sartak did all my work for me
783 * Moose::Meta::Attribute
784 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
785 it is just a list of methods (Sartak)
788 - The get_*_method_modifiers methods would die if the role had
789 no modifiers of the given type (Robert Buels).
791 0.83 Tue, Jun 23, 2009
793 - Fix _construct_instance not setting the special __MOP__ object
794 key in instances of anon classes. (doy)
796 0.82 Sun, Jun 21, 2009
797 * Moose::Manual::Types
798 - Mention MooseX::Types early to avoid users falling down the
799 string parsing rathole (mst)
801 * Moose::Manual::MooseX
802 - Add warnings about class-level extensions and mention considering
803 using plain objects instead
805 0.81 Sun, Jun 7, 2009
806 * Bumped our Class::MOP prereq to the latest version (0.85), since
809 0.80 Sat, Jun 6, 2009
811 - Add FAQ about the coercion change from 0.76 because it came up
812 three times today (perigrin)
813 - Win doy $10 dollars because Sartak didn't think anybody
814 would document this fast enough (perigrin)
816 * Moose::Meta::Method::Destructor
817 - Inline a DESTROY method even if there are no DEMOLISH methods
818 to prevent unnecessary introspection in
819 Moose::Object::DEMOLISHALL
822 - A role's required methods are now represented by
823 Moose::Meta::Role::Method::Required objects. Conflicts are now
824 represented by Moose::Meta::Role::Method::Conflicting
825 objects. The benefit for end-users in that unresolved
826 conflicts generate different, more instructive, errors,
827 resolving Ovid's #44895. (Sartak)
830 - Improve the error message of "extends" as suggested by Adam
831 Kennedy and confound (Sartak)
832 - Link to Moose::Manual::Roles from Moose::Role as we now have
833 excellent documentation (Adam Kennedy)
836 - Update test suite for subname change in Class::MOP
838 - Add TODO test for infinite recursion in Moose::Meta::Class
841 0.79 Wed, May 13, 2009
843 - More fixes for Win32 problems. Reported by Robert Krimen.
846 - The DEMOLISHALL method could still blow up in some cases
847 during global destruction. This method has been made more
848 resilient in the face of global destruction's random garbage
852 - If you "also" a module that isn't loaded, the error message
853 now acknowledges that (Sartak)
856 - When your ->meta method does not return a Moose::Meta::Class,
857 the error message gave the wrong output (Sartak)
859 0.78 Tue, May 12, 2009
860 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
861 - Merged these documents into what is now Moose::Manual::FAQ
864 - Moved to Moose::Manual::Unsweetened
866 * Moose::Cookbook::Basics::Recipes 9-12
867 - Renamed to be 8-11, since recipe 8 did not exist
870 - Make Moose::Exporter import strict and warnings into packages
874 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
875 methods during global destruction (doy)
878 * Moose::Meta::Role::Application::ToClass
879 - Track the Role::Application objects created during class-role
883 - Fix metaclass incompatibility errors when extending a vanilla perl
884 class which isa Moose class with a metaclass role applied (t0m)
887 - Add a role-combination hook, _role_for_combination, for the
888 benefit of MooseX::Role::Parameterized (Sartak)
891 - Some tests were failing on Win32 because they explicit checked
892 warning output for newlines. Reported by Nickolay Platonov.
894 0.77 Sat, May 2, 2009
896 - Add explicit use of Devel::GlobalDestruction and Sub::Name
900 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
901 or not we are currently in global destruction (doy)
902 - Add explicit use of Devel::GlobalDestruction and Sub::Name
905 * Moose::Cookbook::FAQ
906 - Reworked much of the existing content to be more useful to
907 modern Moose hackers (Sartak)
910 - Depend on Class::MOP 0.83 instead of 0.82_01.
912 0.76 Mon, April 27, 2009
913 * Moose::Meta::TypeConstraint
914 - Do not run coercions in coerce() if the value already passes the type
917 * Moose::Meta::TypeConstraint::Class
918 - In validation error messages, specifically say that the value is not
919 an instance of the class. This should alleviate some frustrating
920 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
922 * Moose::Meta::Role::Application::ToClass
923 - Revert the class-overrides-role warning in favor of a solution outside
924 of the Moose core (Sartak)
927 - Make Test::Output optional again, since it's only used in a few files
930 0.75_01 Thu, April 23, 2009
931 * Moose::Meta::Role::Application::ToClass
932 - Moose now warns about each class overriding methods from roles it
936 - Warnings tests have standardized on Test::Output which is now an
937 unconditionally dependency (Sartak)
940 - Changes to immutabilization to work with Class::MOP 0.82_01+.
942 0.75 Mon, April 20, 2009
945 - Move validation of not inheriting from roles from Moose::extends to
946 Moose::Meta::Class::superclasses (doy)
949 - add ensure_all_roles() function to encapsulate the common "apply this
950 role unless the object already does it" pattern (hdp)
953 - Users can now select a different metaclass with the "-metaclass"
954 option to import, for classes and roles (Sartak)
957 - Make method_metaclass an attr so that it can accept a metarole
960 0.74 Tue, April 7, 2009
962 * Moose::Meta::Method::Destructor
963 - Include stack traces in the deprecation warnings.
967 - Removed the long-deprecated _apply_all_roles method.
969 * Moose::Meta::TypeConstraint
970 - Removed the long-deprecated union method.
973 0.73_02 Mon, April 6, 2009
974 * More deprecations and renamings
975 - Moose::Meta::Method::Constructor
976 - initialize_body => _initialize_body (this is always called
977 when an object is constructed)
980 - The DEMOLISHALL method could throw an exception during global
981 destruction, meaning that your class's DEMOLISH methods would
982 not be properly called. Reported by t0m.
984 * Moose::Meta::Method::Destructor
985 - Destructor inlining was totally broken by the change to the
986 is_needed method in 0.72_01. Now there is a test for this
987 feature, and it works again.
990 - Bold the word 'not' in the POD for find_meta (t0m)
992 0.73_01 Sun, April 5, 2009
994 - Call user_class->meta in fewer places, with the eventual goal
995 of allowing the user to rename or exclude ->meta
996 altogether. Instead uses Class::MOP::class_of. (Sartak)
998 * Moose::Meta::Method::Accessor
999 - If an attribute had a lazy default, and that value did not
1000 pass the attribute's type constraint, it did not get the
1001 message from the type constraint, instead using a generic
1002 message. Test provided by perigrin.
1004 * Moose::Util::TypeConstraints
1005 - Add duck_type keyword. It's sugar over making sure an object
1006 can() a list of methods. This is easier than jrockway's
1007 suggestion to fork all of CPAN. (perigrin)
1008 - add tests and documentation (perigrin)
1011 - Document the fact that init_meta() returns the target class's
1012 metaclass object. (hdp)
1014 * Moose::Cookbook::Extending::Recipe1
1015 * Moose::Cookbook::Extending::Recipe2
1016 * Moose::Cookbook::Extending::Recipe3
1017 * Moose::Cookbook::Extending::Recipe4
1018 - Make init_meta() examples explicitly return the metaclass and
1019 point out this fact. (hdp)
1021 * Moose::Cookbook::Basics::Recipe12
1022 - A new recipe, creating a custom meta-method class.
1024 * Moose::Cookbook::Meta::Recipe6
1025 - A new recipe, creating a custom meta-method class.
1027 * Moose::Meta::Class
1028 * Moose::Meta::Method::Constructor
1029 - Attribute triggers no longer receive the meta-attribute object
1030 as an argument in any circumstance. Previously, triggers
1031 called during instance construction were passed the
1032 meta-attribute, but triggers called by normal accessors were
1033 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1035 * Moose::Manual::Attributes
1036 - Remove references to triggers receving the meta-attribute object as an
1039 * Moose::Cookbook::FAQ
1040 - Remove recommendation for deprecated Moose::Policy and
1041 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1044 * Many methods have been renamed with a leading underscore, and a
1045 few have been deprecated entirely. The methods with a leading
1046 underscore are consider "internals only". People writing
1047 subclasses or extensions to Moose should feel free to override
1048 them, but they are not for "public" use.
1050 - Moose::Meta::Class
1051 - check_metaclass_compatibility => _check_metaclass_compatibility
1053 - Moose::Meta::Method::Accessor
1054 - initialize_body => _initialize_body (this is always called
1055 when an object is constructed)
1056 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1058 - Moose::Meta::Method::Constructor
1059 - initialize_body => _initialize_body (this is always called
1060 when an object is constructed)
1061 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1062 - attributes => _attributes (now inherited from parent)
1063 - meta_instance => _meta_instance (now inherited from parent)
1066 - alias_method is deprecated. Use add_method
1068 0.73 Fri, March 29, 2009
1069 * No changes from 0.72_01.
1071 0.72_01 Thu, March 26, 2009
1073 - Almost every module has complete API documentation. A few
1074 methods (and even whole classes) have been intentionally
1075 excluded pending some rethinking of their APIs.
1077 * Moose::Util::TypeConstraints
1078 - Calling subtype with a name as the only argument is now an
1079 exception. If you want an anonymous subtype do:
1081 my $subtype = subtype as 'Foo';
1083 * Moose::Cookbook::Meta::Recipe7
1084 - A new recipe, creating a custom meta-instance class.
1086 * Moose::Cookbook::Basics::Recipe5
1087 - Fix various typos and mistakes. Includes a patch from Radu
1090 * Moose::Cookbook::Basics::Recipe9
1091 - Link to this recipe from Moose.pm's builder blurb
1094 - When wrapping a function with a prototype, Moose::Exporter now
1095 makes sure the wrapped function still has the same
1096 prototype. (Daisuke Maki)
1098 * Moose::Meta::Attribute
1099 - Allow a subclass to set lazy_build for an inherited
1103 - Explicitly depend on Data::OptList. We already had this dependency
1104 via Sub::Exporter, but since we're using it directly we're
1105 better off with it listed. (Sartak)
1107 * Moose::Meta::Method::Constructor
1108 - Make it easier to subclass the inlining behaviour. (Ash
1111 * Moose::Manual::Delta
1112 - Details significant changes in the history of Moose, along
1113 with recommended workarounds.
1115 * Moose::Manual::Contributing
1116 - Contributor's guide to Moose.
1118 * Moose::Meta::Method::Constructor
1119 - The long-deprecated intialize_body method has been removed
1120 (yes, spelled like that).
1122 * Moose::Meta::Method::Destructor
1123 - This is_needed method is now always a class method.
1125 * Moose::Meta::Class
1126 - Changes to the internals of how make_immutable works to match
1127 changes in latest Class::MOP.
1129 0.72 Mon, February 23, 2009
1131 * Moose::Meta::Method::Constructor
1132 - A mutable class accepted Foo->new(undef) without complaint,
1133 while an immutable class would blow up with an unhelpful
1134 error. Now, in both cases we throw a helpful error
1135 instead. Reported by doy.
1137 0.71_01 Sun, February 22, 2009
1139 - Hopefully fixed some POD errors in a few recipes that caused
1140 them to display weird on search.cpan.org.
1142 * Moose::Util::TypeConstraints
1143 - Calling type or subtype without the sugar helpers (as, where,
1144 message) is now deprecated.
1145 - The subtype function tried hard to guess what you meant, but
1146 often got it wrong. For example:
1148 my $subtype = subtype as 'ArrayRef[Object]';
1150 This caused an error in the past, but now works as you'd
1154 - Make sure Moose.pm is loaded before calling
1155 Moose->throw_error. This wasn't normally an issue, but could
1156 bite you in weird cases.
1158 0.71 Thu, February 19, 2009
1159 * Moose::Cookbook::Basics::Recipe11
1160 - A new recipe which demonstrates the use of BUILDARGS and
1161 BUILD. (Dave Rolsky)
1163 * Moose::Cookbook::Roles::Recipe3
1164 - A new recipe, applying a role to an object instance. (Dave
1168 - Allow overriding specific keywords from "also" packages. (doy)
1171 - Replace hardcoded cookbook tests with Test::Inline to ensure
1172 the tests match the actual code in the recipes. (Dave Rolsky)
1175 - Working on the above turned up a number of little bugs in the
1176 recipe code. (Dave Rolsky)
1178 * Moose::Util::TypeConstraints::Optimized
1179 - Just use Class::MOP for the optimized ClassName check. (Dave
1182 0.70 Sat, February 14, 2009
1183 * Moose::Util::TypeConstraints
1184 - Added the RoleName type (stevan)
1185 - added tests for this (stevan)
1187 * Moose::Cookbook::Basics::Recipe3
1188 - Updated the before qw[left right] sub to be a little more
1189 defensive about what it accepts (stevan)
1190 - added more tests to t/000_recipies/basics/003_binary_tree.t
1194 - We now always call DEMOLISHALL, even if a class does not
1195 define DEMOLISH. This makes sure that method modifiers on
1196 DEMOLISHALL work as expected. (doy)
1197 - added tests for this (EvanCarroll)
1199 * Moose::Util::MetaRole
1200 - Accept roles for the wrapped_method_metaclass (rafl)
1201 - added tests for this (rafl)
1203 * Moose::Meta::Attribute
1204 - We no longer pass the meta-attribute object as a final
1205 argument to triggers. This actually changed for inlined code a
1206 while back, but the non-inlined version and the docs were
1210 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1211 they require 0.11. (Dave Rolsky)
1214 - Lots of small changes to the manual, cookbook, and
1215 elsewhere. These were based on feedback from various
1216 users, too many to list here. (Dave Rolsky)
1218 0.69 Thu, February 12, 2009
1220 - Make some keyword errors use throw_error instead of croak
1221 since Moose::Exporter wraps keywords now (Sartak)
1223 * Moose::Cookbook::*
1224 - Revised every recipe for style and clarity. Also moved some
1225 documentation out of cookbook recipes and into Moose::Manual
1226 pages. This work was funded as part of the Moose docs grant
1227 from TPF. (Dave Rolsky)
1229 * Moose::Meta::Method::Delegation
1230 - If the attribute doing the delegation was not populated, the
1231 error message did not specify the attribute name
1234 0.68 Wed, February 4, 2009
1236 - Many spelling, typo, and formatting fixes by daxim.
1238 * Moose::Manual::Attributes
1239 - The NAME section in the POD used "Attribute" so search.cpan
1240 didn't resolve links from other documents properly.
1242 * Moose::Meta::Method::Overriden
1243 - Now properly spelled as Overridden. Thanks to daxim for
1246 0.67 Tue, February 3, 2009
1248 - Lots of little typo fixes and a few clarifications. Several
1249 pages didn't have proper titles, and so weren't actually
1250 visible on search.cpan.org. Thanks to hanekomu for a variety
1251 of fixes and formatting improvements.
1253 0.66 Tue, February 3, 2009
1255 - This is a brand new, extensive manual for Moose. This aims to
1256 provide a complete introduction to all of Moose's
1257 features. This work was funded as part of the Moose docs grant
1258 from TPF. (Dave Rolsky)
1260 * Moose::Meta::Attribute
1261 - Added a delegation_metaclass method to replace a hard-coded
1262 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1264 * Moose::Util::TypeConstraints
1265 - If you created a subtype and passed a parent that Moose didn't
1266 know about, it simply ignored the parent. Now it automatically
1267 creates the parent as a class type. This may not be what you
1268 want, but is less broken than before. (Dave Rolsky)
1270 * Moose::Util::TypeConstraints
1271 - This module tried throw errors by calling Moose->throw_error,
1272 but it did not ensure that Moose was loaded first. This could
1273 cause very unhelpful errors when it tried to throw an error
1274 before Moose was loaded. (Dave Rolsky)
1276 * Moose::Util::TypeConstraints
1277 - You could declare a name with subtype such as "Foo!Bar" that
1278 would be allowed, but if you used it in a parameterized type
1279 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1280 vetting on names created via the sugar functions, so that they
1281 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1283 0.65 Thu, January 22, 2009
1284 * Moose and Moose::Meta::Method::Overridden
1285 - If an overridden method called super(), and then the
1286 superclass's method (not overridden) _also_ called super(),
1287 Moose went into an endless recursion loop. Test provided by
1288 Chris Prather. (Dave Rolsky)
1290 * Moose::Meta::TypeConstraint
1291 - All methods are now documented. (gphat)
1293 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1294 - Fixed some bogus failures that occurred because we tried to
1295 validate filesystem paths in a very ad-hoc and
1296 not-quite-correct way. (Dave Rolsky)
1298 * Moose::Util::TypeConstraints
1299 - Added maybe_type to exports. See docs for details. (rjbs)
1302 - Added Moose::Util::TypeConstraints to the SEE ALSO
1306 - Methods created via an attribute can now fulfill a "requires"
1307 declaration for a role. (nothingmuch)
1309 * Moose::Meta::Method::*
1310 - Stack traces from inlined code will now report its line and
1311 file as being in your class, as opposed to in Moose
1312 guts. (nothingmuch).
1314 0.64 Wed, December 31, 2008
1315 * Moose::Meta::Method::Accessor
1316 - Always inline predicate and clearer methods (Sartak)
1318 * Moose::Meta::Attribute
1319 - Support for parameterized traits (Sartak)
1320 - verify_against_type_constraint method to avoid duplication
1321 and enhance extensibility (Sartak)
1323 * Moose::Meta::Class
1324 - Tests (but no support yet) for parameterized traits (Sartak)
1327 - Require Class::MOP 0.75+, which has the side effect of making
1328 sure we work on Win32. (Dave Rolsky)
1330 0.63 Mon, December 8, 2008
1331 * Moose::Unsweetened
1332 - Some small grammar tweaks and bug fixes in non-Moose example
1335 0.62_02 Fri, December 5, 2008
1336 * Moose::Meta::Role::Application::ToClass
1337 - When a class does not provide all of a role's required
1338 methods, the error thrown now mentions all of the missing
1339 methods, as opposed to just the first one found. Requested by
1340 Curtis Poe (RT #41119). (Dave Rolsky)
1342 * Moose::Meta::Method::Constructor
1343 - Moose will no longer inline a constructor for your class
1344 unless it inherits its constructor from Moose::Object, and
1345 will warn when it doesn't inline. If you want to force
1346 inlining anyway, pass "replace_constructor => 1" to
1347 make_immutable. Addresses RT #40968, reported by Jon
1348 Swartz. (Dave Rolsky)
1349 - The quoting of default values could be broken if the default
1350 contained a single quote ('). Now we use quotemeta to escape
1351 anything potentially dangerous in the defaults. (Dave Rolsky)
1353 0.62_01 Wed, December 3, 2008
1355 - use the method->execute API for BUILDALL
1356 and DEMOLISHALL (Sartak)
1358 * Moose::Util::TypeConstraints
1359 - We now make all the type constraint meta classes immutable
1360 before creating the default types provided by Moose. This
1361 should make loading Moose a little faster. (Dave Rolsky)
1363 0.62 Wed November 26, 2008
1364 * Moose::Meta::Role::Application::ToClass
1365 Moose::Meta::Role::Application::ToRole
1366 - fixed issues where excluding and aliasing the
1367 same methods for a single role did not work
1368 right (worked just fine with multiple
1370 - added test for this (stevan)
1372 * Moose::Meta::Role::Application::RoleSummation
1373 - fixed the error message when trying to compose
1374 a role with a role it excludes (Sartak)
1377 - Catch another case where recursion caused the value
1378 of $CALLER to be stamped on (t0m)
1379 - added test for this (t0m)
1382 - Remove the make_immutable keyword, which has been
1383 deprecated since April. It breaks metaclasses that
1384 use Moose without no Moose (Sartak)
1386 * Moose::Meta::Attribute
1387 - Removing an attribute from a class now also removes delegation
1388 (handles) methods installed for that attribute (t0m)
1389 - added test for this (t0m)
1391 * Moose::Meta::Method::Constructor
1392 - An attribute with a default that looked like a number (but was
1393 really a string) would accidentally be treated as a number
1394 when the constructor was made immutable (perigrin)
1395 - added test for this (perigrin)
1398 - create method for constructing a role
1399 dynamically (Sartak)
1400 - added test for this (Sartak)
1401 - anonymous roles! (Sartak)
1402 - added test for this (Sartak)
1405 - more consistent error messages (Sartak)
1407 * Moose::Cookbook::Roles::Recipe1
1408 - attempt to explain why a role that just requires
1409 methods is useful (Sartak)
1411 0.61 Fri November 7, 2008
1412 * Moose::Meta::Attribute
1413 - When passing a role to handles, it will be loaded if necessary
1416 * Moose::Meta::Class
1417 - Method objects returned by get_method (and other methods)
1418 Could end up being returned without an associated_metaclass
1419 attribute. Removing get_method_map, which is provided by
1420 Class::MOP::Class, fixed this. The Moose version did nothing
1421 different from its parent except introduce a bug. (Dave Rolsky)
1422 - added tests for this (jdv79)
1425 - Added a $VERSION to all .pm files which didn't have one. Fixes
1426 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1428 * Moose::Cookbook::Basics::Recipe4
1429 * Moose::Cookbook::Basics::Recipe6
1430 - These files had spaces on the first line of the SYNOPSIS, as
1431 opposed to a totally empty line. According to RT #40432, this
1432 confuses POD parsers. (Dave Rolsky)
1434 0.60 Fri October 24, 2008
1436 - Passing "-traits" when loading Moose caused the Moose.pm
1437 exports to be broken. Reported by t0m. (Dave Rolsky)
1438 - Tests for this bug. (t0m)
1441 - Change resolve_metaclass alias to use the new
1442 load_first_existing_class function. This makes it a lot
1443 simpler, and also around 5 times faster. (t0m)
1444 - Add caching to resolve_metaclass_alias, which gives an order
1445 of magnitude speedup to things which repeatedly call the
1446 Moose::Meta::Attribute->does method, notably MooseX::Storage
1449 * Moose::Util::TypeConstraint
1450 - Put back the changes for parameterized constraints that
1451 shouldn't have been removed in 0.59. We still cannot parse
1452 them, but MooseX modules can create them in some other
1453 way. See the 0.58 changes for more details. (jnapiorkowski)
1454 - Changed the way subtypes are created so that the job is
1455 delegated to a type constraint parent. This clears up some
1456 hardcoded checking and should allow correct subtypes of
1457 Moose::Meta::Type::Constraint. Don't rely on this new API too
1458 much (create_child_type) because it may go away in the
1459 future. (jnapiorkowski)
1461 * Moose::Meta::TypeConstraint::Union
1462 - Type constraint names are sorted as strings, not numbers.
1465 * Moose::Meta::TypeConstraint::Parameterizable
1466 - New parameterize method. This can be used as a factory method
1467 to make a new type constraint with a given parameterized
1468 type. (jnapiorkowski)
1469 - added tests (jnapiorkowski)
1471 0.59 Tue October 14, 2008
1473 - Add abridged documentation for builder/default/initializer/
1474 predicate, and link to more details sections in
1475 Class::MOP::Attribute. (t0m)
1477 * Moose::Util::TypeConstraints
1478 - removed prototypes from all but the &-based stuff (mst)
1480 * Moose::Util::TypeConstraints
1481 - Creating a anonymous subtype with both a constraint and a
1482 message failed with a very unhelpful error, but should just
1483 work. Reported by t0m. (Dave Rolsky)
1486 - Some tests that used Test::Warn if it was available failed
1487 with older versions of Test::Warn. Reported by Fayland. (Dave
1489 - Test firing behavior of triggers in relation to builder/default/
1491 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1492 kinds of supported type. (t0m)
1494 * Moose::Meta::Class
1495 - In create(), do not pass "roles" option to the superclass
1496 - added related test that creates an anon metaclass with
1497 a required attribute
1499 * Moose::Meta::TypeConstraint::Class
1500 * Moose::Meta::TypeConstraint::Role
1501 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1502 other types (as per change in 0.55_02). (t0m)
1504 * Moose::Meta::TypeConstraint::Registry
1505 - Fix warning when dealing with unknown type names (t0m)
1507 * Moose::Util::TypeConstraints
1508 - Reverted changes from 0.58 related to handle parameterized
1509 types. This caused random failures on BSD and Win32 systems,
1510 apparently related to the regex engine. This means that Moose
1511 can no longer parse structured type constraints like
1512 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1513 supported in a slightly different way via MooseX::Types some
1514 time in the future. (Dave Rolsky)
1516 0.58 Sat September 20, 2008
1517 !! This release has an incompatible change regarding !!
1518 !! how roles add methods to a class !!
1520 * Roles and role application
1521 ! Roles now add methods by calling add_method, not
1522 alias_method. They make sure to always provide a method
1523 object, which will be cloned internally. This means that it is
1524 now possible to track the source of a method provided by a
1525 role, and even follow its history through intermediate roles.
1527 This means that methods added by a role now show up when
1528 looking at a class's method list/map. (Dave Rolsky)
1531 - From this release on, we'll try to maintain a list of
1532 conflicting modules, and warn you if you have one
1533 installed. For example, this release conflicts with ...
1534 - MooseX::Singleton <= 0.11
1535 - MooseX::Params::Validate <= 0.05
1538 In general, we try to not break backwards compatibility for
1539 most Moose users, but MooseX modules and other code which
1540 extends Moose's metaclasses is often affected by very small
1541 changes in the Moose internals.
1543 * Moose::Meta::Method::Delegation
1544 * Moose::Meta::Attribute
1545 - Delegation methods now have their own method class. (Dave
1548 * Moose::Meta::TypeConstraint::Parameterizable
1549 - Added a new method 'parameterize' which is basically a factory
1550 for the containing constraint. This makes it easier to create
1551 new types of parameterized constraints. (jnapiorkowski)
1553 * Moose::Meta::TypeConstraint::Union
1554 - Changed the way Union types canonicalize their names to follow
1555 the normalized TC naming rules, which means we strip all
1556 whitespace. (jnapiorkowski)
1558 * Moose::Util::TypeConstraints
1559 - Parameter and Union args are now sorted, this makes Int|Str
1560 the same constraint as Str|Int. (jnapiorkowski)
1561 - Changes to the way Union types are parsed to more correctly
1562 stringify their names. (jnapiorkowski)
1563 - When creating a parameterized type, we now use the new
1564 parameterize method. (jnapiorkowski)
1565 - Incoming type constraint strings are now normalized to remove
1566 all whitespace differences. (jnapiorkowski)
1567 - Changed the way we parse type constraint strings so that we now
1568 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1569 constraints. This lays the foundation for more flexible type
1570 constraint implementations.
1572 * Tests and docs for all the above. (jnapiorkowski)
1576 - Moose::Exporter will no longer remove a subroutine that the
1577 exporting package re-exports. Moose re-exports the
1578 Carp::confess function, among others. The reasoning is that we
1579 cannot know whether you have also explicitly imported those
1580 functions for your own use, so we err on the safe side and
1581 always keep them. (Dave Rolsky)
1582 - added tests for this (rafl)
1584 * Moose::Meta::Class
1585 - Changes to how we fix metaclass compatibility that are much
1586 too complicated to go into. The summary is that Moose is much
1587 less likely to complain about metaclass incompatibility
1588 now. In particular, if two metaclasses differ because
1589 Moose::Util::MetaRole was used on the two corresponding
1590 classes, then the difference in roles is reconciled for the
1591 subclass's metaclass. (Dave Rolsky)
1592 - Squashed an warning in _process_attribute (thepler)
1595 - throw exceptions (sooner) for invalid attribute names (thepler)
1596 - added tests for this (thepler)
1598 * Moose::Util::MetaRole
1599 - If you explicitly set a constructor or destructor class for a
1600 metaclass object, and then applied roles to the metaclass,
1601 that explicitly set class would be lost and replaced with the
1604 * Moose::Meta::Class
1605 * Moose::Meta::Attribute
1606 * Moose::Meta::Method
1609 * Moose::Error::Default
1610 * Moose::Error::Croak
1611 * Moose::Error::Confess
1612 - All instances of confess() changed to use overridable
1613 C<throw_error> method. This method ultimately calls a class
1614 constructor, and you can change the class being called. In
1615 addition, errors now pass more information than just a string.
1616 The default C<error_class> behaves like C<Carp::confess>, so
1617 the behavior is not visibly different for end users.
1619 0.57 Wed September 3, 2008
1621 - A new bit of doc intended to introduce folks familiar with
1622 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1624 * Moose::Unsweetened
1625 - Shows examples of two classes, each done first with and then
1626 without Moose. This makes a nice parallel to
1627 Moose::Intro. (Dave Rolsky)
1629 * Moose::Util::TypeConstraints
1630 - Fixed a bug in find_or_parse_type_constraint so that it
1631 accepts a Moose::Meta::TypeConstraint object as the parent
1632 type, not just a name (jnapiorkowski)
1633 - added tests (jnapiorkowski)
1636 - If Sub::Name was not present, unimporting failed to actually
1637 remove some sugar subs, causing test failures (Dave Rolsky)
1639 0.56 Mon September 1, 2008
1640 For those not following the series of dev releases, there are
1641 several major changes in this release of Moose.
1642 ! Moose::init_meta should now be called as a method. See the
1645 - Major performance improvements by nothingmuch.
1647 - New modules for extension writers, Moose::Exporter and
1648 Moose::Util::MetaRole by Dave Rolsky.
1650 - Lots of doc improvements and additions, especially in the
1653 - Various bug fixes.
1655 * Removed all references to the experimental-but-no-longer-needed
1656 Moose::Meta::Role::Application::ToMetaclassInstance.
1658 * Require Class::MOP 0.65.
1660 0.55_04 Sat August 30, 2008
1661 * Moose::Util::MetaRole
1662 * Moose::Cookbook::Extending::Recipe2
1663 - This simplifies the application of roles to any meta class, as
1664 well as the base object class. Reimplemented metaclass traits
1665 using this module. (Dave Rolsky)
1667 * Moose::Cookbook::Extending::Recipe1
1668 - This a new recipe, an overview of various ways to write Moose
1669 extensions (Dave Rolsky)
1671 * Moose::Cookbook::Extending::Recipe3
1672 * Moose::Cookbook::Extending::Recipe4
1673 - These used to be Extending::Recipe1 and Extending::Recipe2,
1676 0.55_03 Fri August 29, 2008
1677 * No changes from 0.55_02 except increasing the Class::MOP
1678 dependency to 0.64_07.
1680 0.55_02 Fri August 29, 2008
1681 * Makefile.PL and Moose.pm
1682 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1684 * Moose::Util::TypeConstraints
1685 - Fix warnings from find_type_constraint if the type is not
1688 * Moose::Meta::TypeConstraint
1689 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1690 return false if the type you specify cannot be found in the
1691 type registry, rather than throwing an unhelpful and
1692 coincidental exception. (t0m).
1693 - added docs & test for this (t0m)
1695 * Moose::Meta::TypeConstraint::Registry
1696 - add_type_constraint now throws an exception if a parameter is
1698 - added docs & test for this (t0m)
1700 * Moose::Cookbook::FAQ
1701 - Added a faq entry on the difference between "role" and "trait"
1705 - Fixed a bug that caused role composition to not see a required
1706 method when that method was provided by another role being
1707 composed at the same time. (Dave Rolsky)
1708 - test and bug finding (tokuhirom)
1710 0.55_01 Wed August 20, 2008
1712 !! Calling Moose::init_meta as a function is now !!
1713 !! deprecated. Please see the Moose.pm docs for details. !!
1715 * Moose::Meta::Method::Constructor
1716 - Fix inlined constructor so that values produced by default
1717 or builder methods are coerced as required. (t0m)
1718 - added test for this (t0m)
1720 * Moose::Meta::Attribute
1721 - A lazy attribute with a default or builder did not attempt to
1722 coerce the default value. The immutable code _did_
1724 - added test for this (t0m)
1727 - This is a new helper module for writing "Moose-alike"
1728 modules. This should make the lives of MooseX module authors
1729 much easier. (Dave Rolsky)
1732 * Moose::Cookbook::Meta::Recipe5
1733 - Implemented metaclass traits (and wrote a recipe for it):
1735 use Moose -traits => 'Foo'
1737 This should make writing small Moose extensions a little
1738 easier (Dave Rolsky)
1740 * Moose::Cookbook::Basics::Recipe1
1741 - Removed any examples of direct hashref access, and applied an
1742 editorial axe to reduce verbosity. (Dave Rolsky)
1744 * Moose::Cookbook::Basics::Recipe1
1745 - Also applied an editorial axe here. (Dave Rolsky)
1748 * Moose::Cookbook::Extending::Recipe1
1749 * Moose::Cookbook::Extending::Recipe2
1750 - Rewrote extending and embedding moose documentation and
1751 recipes to use Moose::Exporter (Dave Rolsky)
1755 - These two modules now warn when you load them from the main
1756 package "main" package, because we will not export sugar to
1757 main. Previously it just did nothing. (Dave Rolsky)
1760 - Now provide an init_meta method just like Moose.pm, and you
1761 can call this to provide an alternate role metaclass. (Dave
1762 Rolsky and nothingmuch)
1763 - get_method_map now respects the package cache flag (nothingmuch)
1766 - Two new methods - add_method and wrap_method_body
1770 - Optimizations including allowing constructors to accept hash
1771 refs, making many more classes immutable, and making
1772 constructors immutable. (nothingmuch)
1774 0.55 Sun August 3, 2008
1775 * Moose::Meta::Attribute
1776 - breaking down the way 'handles' methods are
1777 created so that the process can be more easily
1778 overridden by subclasses (stevan)
1780 * Moose::Meta::TypeConstraint
1781 - fixing what is passed into a ->message with
1782 the type constraints (RT #37569)
1783 - added tests for this (Charles Alderman)
1785 * Moose::Util::TypeConstraints
1786 - fix coerce to accept anon types like subtype can (mst)
1789 - reorganized the recipes into sections - Basics, Roles, Meta,
1790 Extending - and wrote abstracts for each section (Dave Rolsky)
1792 * Moose::Cookbook::Basics::Recipe10
1793 - A new recipe that demonstrates operator overloading
1794 in combination with Moose. (bluefeet)
1796 * Moose::Cookbook::Meta::Recipe1
1797 - an introduction to what meta is and why you'd want to make
1798 your own metaclass extensions (Dave Rolsky)
1800 * Moose::Cookbook::Meta::Recipe4
1801 - a very simple metaclass example (Dave Rolsky)
1803 * Moose::Cookbook::Extending::Recipe1
1804 - how to write a Moose-alike module to use your own object base
1807 * Moose::Cookbook::Extending::Recipe2
1808 - how to write modules with an API just like C<Moose.pm> (Dave
1812 - Tons of fixes, both syntactical and grammatical (Dave
1813 Rolsky, Paul Fenwick)
1815 0.54 Thurs. July 3, 2008
1816 ... this is not my day today ...
1818 * Moose::Meta::Attribute
1819 - fixed legal_options_for_inheritance such that
1820 clone_and_inherit options still works for
1821 Class::MOP::Attribute objects and therefore
1822 does not break MooseX::AttributeHelpers
1825 0.53 Thurs. July 3, 2008
1826 * Whoops, I guess I should run 'make manifest' before
1827 actually releasing the module. No actual changes
1828 in this release, except the fact that it includes
1829 the changes that I didn't include in the last
1832 0.52 Thurs. July 3, 2008
1834 - added "FEATURE REQUESTS" section to the Moose docs
1835 to properly direct people (stevan) (RT #34333)
1836 - making 'extends' croak if it is passed a Role since
1837 this is not ever something you want to do
1838 (fixed by stevan, found by obra)
1839 - added tests for this (stevan)
1842 - adding support for DOES (as in UNIVERSAL::DOES)
1844 - added test for this
1846 * Moose::Meta::Attribute
1847 - added legal_options_for_inheritance (wreis)
1848 - added tests for this (wreis)
1850 * Moose::Cookbook::Snacks::*
1851 - removed some of the unfinished snacks that should
1852 not have been released yet. Added some more examples
1853 to the 'Keywords' snack. (stevan)
1855 * Moose::Cookbook::Style
1856 - added general Moose "style guide" of sorts to the
1857 cookbook (nothingmuch) (RT #34335)
1860 - added more BUILDARGS tests (stevan)
1862 0.51 Thurs. Jun 26, 2008
1864 - add unimport so "no Moose::Role" actually does
1867 * Moose::Meta::Role::Application::ToRole
1868 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1869 order to provide its own implementation, that method still got
1870 added to the list of required methods for consumers of
1871 RoleB. Now an aliased method is only added to the list of
1872 required methods if the role doing the aliasing does not
1873 provide its own implementation. See Recipe 11 for an example
1874 of all this. (Dave Rolsky)
1875 - added tests for this
1877 * Moose::Meta::Method::Constructor
1878 - when a single argument that wasn't a hashref was provided to
1879 an immutabilized constructor, the error message was very
1880 unhelpful, as opposed to the non-immutable error. Reported by
1882 - added test for this (Dave Rolsky)
1884 * Moose::Meta::Attribute
1885 - added support for meta_attr->does("ShortAlias") (sartak)
1886 - added tests for this (sartak)
1887 - moved the bulk of the `handles` handling to the new
1888 install_delegation method (Stevan)
1891 - Added BUILDARGS, a new step in new()
1893 * Moose::Meta::Role::Application::RoleSummation
1894 - fix typos no one ever sees (sartak)
1896 * Moose::Util::TypeConstraints
1897 * Moose::Meta::TypeConstraint
1898 * Moose::Meta::TypeCoercion
1899 - Attempt to work around the ??{ } vs. threads issue
1901 - Some null_constraint optimizations
1903 0.50 Thurs. Jun 11, 2008
1904 - Fixed a version number issue by bumping all modules
1907 0.49 Thurs. Jun 11, 2008
1908 !! This version now approx. 20-25% !!
1909 !! faster with new Class::MOP 0.59 !!
1911 * Moose::Meta::Attribute
1912 - fixed how the is => (ro|rw) works with
1913 custom defined reader, writer and accessor
1915 - added docs for this (TODO).
1916 - added tests for this (Thanks to Penfold)
1917 - added the custom attribute alias for regular
1918 Moose attributes which is "Moose"
1919 - fix builder and default both being used
1924 Moose::Meta::Attribute
1926 Moose::Meta::Role::Composite
1927 Moose::Util::TypeConstraints
1928 - switched usage of reftype to ref because
1932 - changing add_package_symbol to use the new
1936 - fixed how DEMOLISHALL is called so that it
1937 can be overrided in subclasses (thanks to Sartak)
1938 - added test for this (thanks to Sartak)
1940 * Moose::Util::TypeConstraints
1941 - move the ClassName type check code to
1942 Class::MOP::is_class_loaded (thanks to Sartak)
1944 * Moose::Cookbook::Recipe11
1945 - add tests for this (thanks to tokuhirom)
1947 0.48 Thurs. May 29, 2008
1948 (early morning release engineering)--
1950 - fixing the version in Moose::Meta::Method::Destructor
1951 which was causing the indexer to choke
1953 0.47 Thurs. May 29, 2008
1954 (late night release engineering)--
1956 - fixing the version is META.yml, no functional
1957 changes in this release
1959 0.46 Wed. May 28, 2008
1960 !! This version now approx. 20-25% !!
1961 !! faster with new Class::MOP 0.57 !!
1963 * Moose::Meta::Class
1964 - some optimizations of the &initialize method
1965 since it is called so often by &meta
1967 * Moose::Meta::Class
1969 - now use the get_all_package_symbols from the
1970 updated Class::MOP, test suite is now 10 seconds
1973 * Moose::Meta::Method::Destructor
1974 - is_needed can now also be called as a class
1975 method for immutablization to check if the
1976 destructor object even needs to be created
1979 * Moose::Meta::Method::Destructor
1980 Moose::Meta::Method::Constructor
1981 - added more descriptive error message to help
1982 keep people from wasting time tracking an error
1983 that is easily fixed by upgrading.
1985 0.45 Saturday, May 24, 2008
1987 - Because of work in Class::MOP 0.57, all
1988 XS based functionality is now optional
1989 and a Pure Perl version is supplied
1990 - the CLASS_MOP_NO_XS environment variable
1991 can now be used to force non-XS versions
1993 - several of the packages have been tweaked
1994 to take care of this, mostly we added
1995 support for the package_name and name
1996 variables in all the Method metaclasses
1997 - before/around/after method modifiers now
1998 support regexp matching of names
1999 (thanks to Takatoshi Kitano)
2000 - tests added for this
2001 - NOTE: this only works for classes, it
2002 is currently not supported in roles,
2003 but, ... patches welcome
2004 - All usage of Carp::confess have been replaced
2005 by Carp::croak in the "keyword" functions since
2006 the stack trace is usually not helpful
2009 - All usage of Carp::confess have been replaced
2010 by Carp::croak in the "keyword" functions since
2011 the stack trace is usually not helpful
2012 - The 'has' keyword for roles now accepts the
2013 same array ref form that Moose.pm does
2014 (has [qw/foo bar/] => (is => 'rw', ...))
2015 - added test for this
2017 * Moose::Meta::Attribute
2018 - trigger on a ro-attribute is no longer an
2019 error, as it's useful to trigger off of the
2022 * Moose::Meta::Class
2023 - added same 'add_package_symbol' fix as in
2027 - does_role now handles non-Moose classes
2029 - added tests for this
2030 - added the 'add_method_modifier' function
2031 (thanks to Takatoshi Kitano)
2033 * Moose::Util::TypeConstraints
2034 - subtypes of parameterizable types now are
2035 themselves parameterizable types
2037 * Moose::Meta::Method::Constructor
2038 - fixed bug where trigger was not being
2039 called by the inlined immutable
2041 - added test for this (thanks to Caelum)
2043 * Moose::Meta::Role::Application::ToInstance
2044 - now uses the metaclass of the instance
2045 (if possible) to create the anon-class
2046 (thanks Jonathan Rockway)
2048 * Moose::Cookbook::Recipe22
2049 - added the meta-attribute trait recipe
2053 - fixed hash-ordering test bug that was
2054 causing occasional cpantester failures
2055 - renamed the t/000_recipe/*.t tests to be
2056 more descriptive (thanks to Sartak)
2058 0.44 Sat. May 10, 2008
2060 - made make_immutable warning cluck to
2061 show where the error is (thanks mst)
2064 - BUILDALL and DEMOLISHALL now call
2065 ->body when looping through the
2066 methods, to avoid the overloaded
2068 - fixed issue where DEMOLISHALL was
2069 eating the $@ values, and so not
2070 working correctly, it still kind of
2071 eats them, but so does vanilla perl
2072 - added tests for this
2074 * Moose::Cookbook::Recipe7
2075 - added new recipe for immutable
2076 functionality (thanks Dave Rolsky)
2078 * Moose::Cookbook::Recipe9
2079 - added new recipe for builder and
2080 lazy_build (thanks Dave Rolsky)
2082 * Moose::Cookbook::Recipe11
2083 - added new recipe for method aliasing
2084 and exclusion with Roles (thanks Dave Rolsky)
2087 - fixed Win32 test failure (thanks spicyjack)
2089 ~ removed Build.PL and Module::Build compat
2090 since Module::Install has done that.
2092 0.43 Wed. April, 30, 2008
2094 drink more coffee before
2095 doing release engineering
2097 - whoops, forgot to do the smolder tests,
2098 and we broke some of the custom meta-attr
2099 modules. This fixes that.
2101 0.42 Mon. April 28, 2008
2102 - some bad tests slipped by, nothing else
2103 changed in this release (cpantesters++)
2105 - upped the Class::MOP dependency to 0.55
2106 since we have tests which need the C3
2109 0.41 Mon. April 28, 2008
2110 ~~ numerous documentation updates ~~
2112 - Changed all usage of die to Carp::croak for better
2113 error reporting (initial patch by Tod Hagan)
2115 ** IMPORTANT NOTE **
2116 - the make_immutable keyword is now deprecated, don't
2117 use it in any new code and please fix your old code
2118 as well. There will be 2 releases, and then it will
2124 - refactored the way inner and super work to avoid
2125 any method/@ISA cache penalty (nothingmuch)
2127 * Moose::Meta::Class
2128 - fixing &new_object to make sure trigger gets the
2129 coerced value (spotted by Charles Alderman on the
2131 - added test for this
2133 * Moose::Meta::Method::Constructor
2134 - immutable classes which had non-lazy attributes were calling
2135 the default generating sub twice in the constructor. (bug
2136 found by Jesse Luehrs, fixed by Dave Rolsky)
2137 - added tests for this (Dave Rolsky)
2138 - fix typo in initialize_body method (nothingmuch)
2140 * Moose::Meta::Method::Destructor
2141 - fix typo in initialize_body method (nothingmuch)
2143 * Moose::Meta::Method::Overriden
2144 Moose::Meta::Method::Augmented
2145 - moved the logic for these into their own
2146 classes (nothingmuch)
2148 * Moose::Meta::Attribute
2149 - inherited attributes may now be extended without
2150 restriction on the type ('isa', 'does') (Sartak)
2151 - added tests for this (Sartak)
2152 - when an attribute property is malformed (such as lazy without
2153 a default), give the name of the attribute in the error
2155 - added the &applied_traits and &has_applied_traits methods
2156 to allow introspection of traits
2157 - added tests for this
2158 - moved 'trait' and 'metaclass' argument handling to here from
2160 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2161 '+foo' syntax) (nothingmuch)
2162 - added tests for this (t0m)
2165 - localize $@ inside DEMOLISHALL to avoid it
2166 eating $@ (found by Ernesto)
2167 - added test for this (thanks to Ernesto)
2169 * Moose::Util::TypeConstraints
2170 - &find_type_constraint now DWIMs when given an
2171 type constraint object or name (nothingmuch)
2172 - &find_or_create_type_constraint superseded with a number of more
2174 - find_or_create_{isa,does}_type_constraint
2175 - find_or_parse_type_constraint
2177 * Moose::Meta::TypeConstraint
2178 Moose::Meta::TypeConstraint::Class
2179 Moose::Meta::TypeConstraint::Role
2180 Moose::Meta::TypeConstraint::Enum
2181 Moose::Meta::TypeConstraint::Union
2182 Moose::Meta::TypeConstraint::Parameterized
2183 - added the &equals method for comparing two type
2184 constraints (nothingmuch)
2185 - added tests for this (nothingmuch)
2187 * Moose::Meta::TypeConstraint
2188 - add the &parents method, which is just an alias to &parent.
2189 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2191 * Moose::Meta::TypeConstraint::Class
2192 - added the class attribute for introspection purposes
2194 - added tests for this
2196 * Moose::Meta::TypeConstraint::Enum
2197 Moose::Meta::TypeConstraint::Role
2198 - broke these out into their own classes (nothingmuch)
2200 * Moose::Cookbook::Recipe*
2201 - fixed references to test file locations in the POD
2202 and updated up some text for new Moose features
2206 - Added &resolve_metaclass_alias, a helper function for finding an actual
2207 class for a short name (e.g. in the traits list)
2209 0.40 Fri. March 14, 2008
2210 - I hate Pod::Coverage
2212 0.39 Fri. March 14, 2008
2214 - documenting the use of '+name' with attributes
2215 that come from recently composed roles. It makes
2216 sense, people are using it, and so why not just
2217 officially support it.
2218 - fixing the 'extends' keyword so that it will not
2219 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2222 - added the perl -Moose=+Class::Name feature to allow
2223 monkeypatching of classes in one liners
2226 - fixing the 'apply_all_roles' keyword so that it will not
2227 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2229 * Moose::Meta::Class
2230 - added ->create method which now supports roles (thanks to jrockway)
2231 - added tests for this
2232 - added ->create_anon_class which now supports roles and caching of
2233 the results (thanks to jrockway)
2234 - added tests for this
2235 - made ->does_role a little more forgiving when it is
2236 checking a Class::MOP era metaclasses.
2238 * Moose::Meta::Role::Application::ToInstance
2239 - it is now possible to pass extra params to be used when
2240 a role is applied to an the instance (rebless_params)
2241 - added tests for this
2243 * Moose::Util::TypeConstraints
2244 - class_type now accepts an optional second argument for a
2245 custom message. POD anotated accordingly (groditi)
2246 - added tests for this
2247 - it is now possible to make anon-enums by passing 'enum' an
2248 ARRAY ref instead of the $name => @values. Everything else
2250 - added tests for this
2253 - making test for using '+name' on attributes consumed
2254 from a role, it works and makes sense too.
2256 * Moose::Meta::Attribute
2257 - fix handles so that it doesn't return nothing
2258 when the method cannot be found, not sure why
2259 it ever did this originally, this means we now
2260 have slightly better support for AUTOLOADed
2262 - added more delegation tests
2263 - adding ->does method to this so as to better
2264 support traits and their introspection.
2265 - added tests for this
2268 - localizing the Data::Dumper configurations so
2269 that it does not pollute others (RT #33509)
2270 - made ->does a little more forgiving when it is
2271 passed Class::MOP era metaclasses.
2273 0.38 Fri. Feb. 15, 2008
2274 * Moose::Meta::Attribute
2275 - fixed initializer to correctly do
2276 type checking and coercion in the
2278 - added tests for this
2281 - fixed some finicky tests (thanks to konobi)
2283 0.37 Thurs. Feb. 14, 2008
2285 - fixed some details in Moose::init_meta
2286 and its superclass handling (thanks thepler)
2287 - added tests for this (thanks thepler)
2288 - 'has' now dies if you don't pass in name
2290 - added the 'make_immutable' keyword as a shortcut
2293 * Moose::Meta::Class
2294 Moose::Meta::Method::Constructor
2295 Moose::Meta::Attribute
2296 - making (init_arg => undef) work here too
2297 (thanks to nothingmuch)
2299 * Moose::Meta::Attribute
2300 Moose::Meta::Method::Constructor
2301 Moose::Meta::Method::Accessor
2302 - make lazy attributes respect attr initializers (rjbs)
2303 - added tests for this
2305 * Moose::Util::TypeConstraints
2306 Moose::Util::TypeConstraints::OptimizedConstraints
2307 Moose::Meta::TypeConstraints
2308 Moose::Meta::Attribute
2309 Moose::Meta::Method::Constructor
2310 Moose::Meta::Method::Accessor
2311 - making type errors use the
2312 assigned message (thanks to Sartak)
2313 - added tests for this
2315 * Moose::Meta::Method::Destructor
2316 - making sure DESTROY gets inlined properly
2317 with successive DEMOLISH calls (thanks to manito)
2319 * Moose::Meta::Attribute
2320 Moose::Meta::Method::Accessor
2321 - fixed handling of undef with type constraints
2323 - added tests for this
2326 - added &get_all_init_args and &get_all_attribute_values
2327 (thanks to Sartak and nothingmuch)
2329 0.36 Sat. Jan. 26, 2008
2331 Moose::Meta::Attribute
2332 - role type tests now support when roles are
2333 applied to non-Moose classes (found by ash)
2334 - added tests for this (thanks to ash)
2335 - couple extra tests to boost code coverage
2337 * Moose::Meta::Method::Constructor
2338 - improved fix for handling Class::MOP attributes
2339 - added test for this
2341 * Moose::Meta::Class
2342 - handled the add_attribute($attribute_meta_object)
2344 - added test for this
2346 0.35 Tues. Jan. 22, 2008
2347 * Moose::Meta::Method::Constructor
2348 - fix to make sure even Class::MOP attributes
2349 are handled correctly (Thanks to Dave Rolsky)
2350 - added test for this (also Dave Rolsky)
2352 * Moose::Meta::Class
2353 - improved error message on _apply_all_roles,
2354 you should now use Moose::Util::apply_all_roles
2355 and you shouldnt have been using a _ prefixed
2356 method in the first place ;)
2358 0.34 Mon. Jan. 21, 2008
2359 ~~~ more misc. doc. fixes ~~~
2360 ~~ updated copyright dates ~~
2362 Moose is now a postmodern object system :)
2363 - (see the POD for details)
2365 * <<Role System Refactoring>>
2366 - this release contains a major reworking and
2367 cleanup of the role system
2368 - 100% backwards compat.
2369 - Role application now restructured into seperate
2370 classes based on type of applicants
2371 - Role summation (combining of more than one role)
2372 is much cleaner and anon-classes are no longer
2373 used in this process
2374 - new Composite role metaclass
2375 - runtime application of roles to instances
2376 is now more efficient and re-uses generated
2377 classes when applicable
2379 * <<New Role composition features>>
2380 - methods can now be excluded from a given role
2382 - methods can now be aliased to another name (and
2383 still retain the original as well)
2385 * Moose::Util::TypeConstraints::OptimizedConstraints
2386 - added this module (see above)
2388 * Moose::Meta::Class
2389 - fixed the &_process_attribute method to be called
2390 by &add_attribute, so that the API is now correct
2392 * Moose::Meta::Method::Accessor
2393 - fixed bug when passing a list of values to
2394 an accessor would get (incorrectly) ignored.
2395 Thanks to Sartak for finding this ;)
2396 - added tests for this (Sartak again)
2398 * Moose::Meta::Method::Accessor
2399 Moose::Meta::Method::Constructor
2400 Moose::Meta::Attribute
2401 Moose::Meta::TypeConstraint
2402 Moose::Meta::TypeCoercion
2403 - lots of cleanup of such things as:
2405 - type constraint handling
2406 - error handling/messages
2407 (thanks to nothingmuch)
2409 * Moose::Meta::TypeConstraint::Parameterizable
2410 - added this module to support the refactor
2411 in Moose::Meta::TypeConstraint::Parameterized
2413 * Moose::Meta::TypeConstraint::Parameterized
2414 - refactored how these types are handled so they
2415 are more generic and not confined to ArrayRef
2419 - shortened some file names for better VMS support (RT #32381)
2421 0.33 Fri. Dec. 14, 2007
2422 !! Moose now loads 2 x faster !!
2423 !! with new Class::MOP 0.49 !!
2425 ++ new oose.pm module to make command line
2426 Moose-ness easier (see POD docs for more)
2428 * Moose::Meta::Class
2430 - several tweaks to take advantage of the
2431 new method map caching in Class::MOP
2433 * Moose::Meta::TypeConstraint::Parameterized
2434 - allow subtypes of ArrayRef and HashRef to
2435 be used as a container (sartak)
2436 - added tests for this
2437 - basic support for coercion to ArrayRef and
2438 HashRef for containers (sartak)
2439 - added tests for this
2441 * Moose::Meta::TypeCoercion
2442 - coercions will now create subtypes as needed
2443 so you can now add coercions to parameterized
2444 types without having to explictly define them
2445 - added tests for this
2447 * Moose::Meta::Method::Accessor
2448 - allow subclasses to decide whether we need
2449 to copy the value into a new variable (sartak)
2451 0.32 Tues. Dec. 4, 2007
2452 * Moose::Util::TypeConstraints
2453 - fixing how subtype aliases of unions work
2454 they should inherit the parent's coercion
2455 - added tests for this
2456 - you can now define multiple coercions on
2457 a single type at different times instead of
2458 having to do it all in one place
2459 - added tests for this
2461 * Moose::Meta::TypeConstraint
2462 - there is now a default constraint of sub { 1 }
2463 instead of Moose::Util::TypeConstraints setting
2466 * Moose::Meta::TypeCoercion
2467 * Moose::Meta::TypeCoercion::Union
2468 - added the &has_coercion_for_type and
2469 &add_type_coercions methods to support the
2470 new features above (although you cannot add
2471 more type coercions for Union types)
2473 0.31 Mon. Nov. 26, 2007
2474 * Moose::Meta::Attribute
2475 - made the +attr syntax handle extending types with
2476 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2477 now works if the original foo is an ArrayRef.
2478 - added tests for this.
2479 - delegation now works even if the attribute does not
2480 have a reader method using the get_read_method_ref
2481 method from Class::MOP::Attribute.
2482 - added tests for this
2483 - added docs for this
2485 * Moose::Util::TypeConstraints
2486 - passing no "additional attribute info" to
2487 &find_or_create_type_constraint will no longer
2488 attempt to create an __ANON__ type for you,
2489 instead it will just return undef.
2490 - added docs for this
2492 0.30 Fri. Nov. 23, 2007
2493 * Moose::Meta::Method::Constructor
2494 -builder related bug in inlined constructor. (groditi)
2496 * Moose::Meta::Method::Accessor
2497 - genereate unnecessary calls to predicates and refactor
2498 code generation for runtime speed (groditi)
2500 * Moose::Util::TypeConstraints
2501 - fix ClassName constraint to introspect symbol table (mst)
2502 - added more tests for this (mst)
2503 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2504 with work correctly.
2505 - added tests for this
2508 - adding the link to Recipie 11 (written by Sartak)
2509 - adding test for SYNOPSIS code
2512 - New tests for builder bug. Upon instantiation, if an
2513 attribute had a builder, no value and was not lazy the
2514 builder default was not getting run, oops. (groditi)
2516 0.29 Tues. Nov. 13, 2007
2517 * Moose::Meta::Attribute
2518 - Fix error message on missing builder method (groditi)
2520 * Moose::Meta::Method::Accessor
2521 - Fix error message on missing builder method (groditi)
2524 - Add test to check for the correct error message when
2525 builder method is missing (groditi)
2527 0.28 Tues. Nov. 13, 2007
2528 - 0.27 packaged incorrectly (groditi)
2530 0.27 Tues. Nov. 13, 2007
2531 * Moose::Meta::Attribute
2532 - Added support for the new builder option (groditi)
2533 - Added support for lazy_build option (groditi)
2534 - Changed slot initialization for predicate changes (groditi)
2536 * Moose::Meta::Method::Accessor
2537 - Added support for lazy_build option (groditi)
2538 - Fix inline methods to work with corrected predicate
2541 * Moose::Meta::Method::Constructor
2542 - Added support for lazy_build option (groditi)
2545 - tests for builder and lazy_build (groditi)
2547 * fixing some misc. bits in the docs that
2548 got mentioned on CPAN Forum & perlmonks
2551 - fixed how required methods are handled
2552 when they encounter overriden or modified
2553 methods from a class (thanks to confound).
2554 - added tests for this
2556 * Moose::Util::TypeConstraint
2557 - fixed the type notation parser so that
2558 the | always creates a union and so is
2559 no longer a valid type char (thanks to
2560 konobi, mugwump and #moose for working
2562 - added more tests for this
2564 0.26 Thurs. Sept. 27, 2007
2567 * Parameterized Types
2568 We now support parameterized collection types, such as:
2569 ArrayRef[Int] # array or integers
2570 HashRef[Object] # a hash with object values
2571 They can also be nested:
2572 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2573 And work with the type unions as well:
2574 ArrayRef[Int | Str] # array of integers of strings
2576 * Better Framework Extendability
2577 Moose.pm is now "extendable" such that it is now much
2578 easier to extend the framework and add your own keywords
2579 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2580 section of the Moose.pm docs.
2583 In an effort to begin documenting some of the various
2584 details of Moose as well as some common idioms, we have
2585 created Moose::Cookbook::Snacks as a place to find
2586 small (easily digestable) nuggets of Moose code.
2589 ~ Several doc updates/cleanup thanks to castaway ~
2591 - converted build system to use Module::Install instead of
2592 Module::Build (thanks to jrockway)
2595 - added all the meta classes to the immutable list and
2596 set it to inline the accessors
2597 - fix import to allow Sub::Exporter like { into => }
2598 and { into_level => } (perigrin)
2599 - exposed and documented init_meta() to allow better
2600 embedding and extending of Moose (perigrin)
2603 - complete re-organization of the test suite
2604 - added some new tests as well
2605 - finally re-enabled the Moose::POOP test since
2606 the new version of DBM::Deep now works again
2609 * Moose::Meta::Class
2610 - fixed very odd and very nasty recursion bug with
2612 - added tests for this (eilara)
2614 * Moose::Meta::Attribute
2615 Moose::Meta::Method::Constructor
2616 Moose::Meta::Method::Accessor
2617 - fixed issue with overload::Overloaded getting called
2618 on non-blessed items. (RT #29269)
2619 - added tests for this
2621 * Moose::Meta::Method::Accessor
2622 - fixed issue with generated accessor code making
2623 assumptions about hash based classes (thanks to dexter)
2625 * Moose::Coookbook::Snacks
2626 - these are bits of documentation, not quite as big as
2627 Recipes but which have no clear place in the module docs.
2628 So they are Snacks! (horray for castaway++)
2630 * Moose::Cookbook::Recipe4
2631 - updated it to use the new ArrayRef[MyType] construct
2632 - updated the accompanying test as well
2634 +++ Major Refactor of the Type Constraint system +++
2635 +++ with new features added as well +++
2637 * Moose::Util::TypeConstraint
2638 - no longer uses package variable to keep track of
2639 the type constraints, now uses the an instance of
2640 Moose::Meta::TypeConstraint::Registry to do it
2641 - added more sophisticated type notation parsing
2643 - added tests for this
2645 * Moose::Meta::TypeConstraint
2646 - some minor adjustments to make subclassing easier
2647 - added the package_defined_in attribute so that we
2648 can track where the type constraints are created
2650 * Moose::Meta::TypeConstraint::Union
2651 - this is now been refactored to be a subclass of
2652 Moose::Meta::TypeConstraint
2654 * Moose::Meta::TypeCoercion::Union
2655 - this has been added to service the newly refactored
2656 Moose::Meta::TypeConstraint::Union and is itself
2657 a subclass of Moose::Meta::TypeCoercion
2659 * Moose::Meta::TypeConstraint::Parameterized
2660 - added this module (taken from MooseX::AttributeHelpers)
2661 to help construct nested collection types
2662 - added tests for this
2664 * Moose::Meta::TypeConstraint::Registry
2665 - added this class to keep track of type constraints
2667 0.25 Mon. Aug. 13, 2007
2669 - Documentation update to reference Moose::Util::TypeConstraints
2670 under 'isa' in 'has' for how to define a new type
2671 (thanks to shlomif).
2673 * Moose::Meta::Attribute
2674 - required attributes now will no longer accept undef
2675 from the constructor, even if there is a default and lazy
2676 - added tests for this
2677 - default subroutines must return a value which passes the
2679 - added tests for this
2681 * Moose::Meta::Attribute
2682 * Moose::Meta::Method::Constructor
2683 * Moose::Meta::Method::Accessor
2684 - type-constraint tests now handle overloaded objects correctly
2685 in the error message
2686 - added tests for this (thanks to EvanCarroll)
2688 * Moose::Meta::TypeConstraint::Union
2689 - added (has_)hand_optimized_constraint to this class so that
2690 it behaves as the regular Moose::Meta::TypeConstraint does.
2693 - large refactoring of this code
2694 - added several more tests
2695 - tests for subtle conflict resolition issues
2696 added, but not currently running
2699 * Moose::Cookbook::Recipe7
2700 - added new recipe for augment/inner functionality
2702 - added test for this
2705 - a formal definition of roles (still in progress)
2708 - utilities for easier working with Moose classes
2709 - added tests for these
2712 - This contains Moose specific test functions
2713 - added tests for these
2715 0.24 Tues. July 3, 2007
2716 ~ Some doc updates/cleanup ~
2718 * Moose::Meta::Attribute
2719 - added support for roles to be given as parameters
2720 to the 'handles' option.
2721 - added tests and docs for this
2722 - the has '+foo' attribute form now accepts changes to
2723 the lazy option, and the addition of a handles option
2724 (but not changing the handles option)
2725 - added tests and docs for this
2728 - required methods are now fetched using find_method_by_name
2729 so that required methods can come from superclasses
2730 - adjusted tests for this
2732 0.23 Mon. June 18, 2007
2733 * Moose::Meta::Method::Constructor
2734 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2735 * Moose::Meta::Class
2736 - Modify make_immutable to work with the new Class::MOP immutable
2737 mechanism + POD + very basic test (groditi)
2738 * Moose::Meta::Attribute
2739 - Fix handles to use goto() so that caller() comes out properly on
2740 the other side (perigrin)
2742 0.22 Thurs. May 31, 2007
2743 * Moose::Util::TypeConstraints
2744 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2745 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2746 prototypes for functions
2747 - added the ClassName type constraint, this checks for strings
2748 which will respond true to ->isa(UNIVERSAL).
2749 - added tests and docs for this
2750 - subtyping just in name now works correctly by making the
2751 default for where be { 1 }
2752 - added test for this
2754 * Moose::Meta::Method::Accessor
2755 - coerce and lazy now work together correctly, thanks to
2756 merlyn for finding this bug
2757 - tests added for this
2758 - fix reader presedence bug in Moose::Meta::Attribute + tests
2761 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2762 a HASH-ref and missed. This produces better error messages then
2763 having it die cause undef is not a HASH.
2764 - added tests for this
2766 0.21 Thursday, May 2nd, 2007
2768 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2769 - modified unimport to remove super and inner along with the rest
2770 - altered unimport tests to handle this
2773 - altered super export to populate SUPER_SLOT
2775 * Moose::Meta::Class
2776 - altered augment and override modifier application to use *_SLOT
2777 - modified tests for these to unimport one test class each to test
2780 - fixed issue where custom attribute metaclasses
2781 where not handled correctly in roles
2782 - added tests for this
2784 * Moose::Meta::Class
2785 - fixed issue where extending metaclasses with
2786 roles would blow up. Thanks to Aankhen`` for
2787 finding this insidious error, and it's solution.
2789 ~~ lots of spelling and grammer fixes in the docs,
2790 many many thanks to rlb3 and Aankhen for these :)
2792 0.20 Friday, April 6th, 2007
2793 >> I messed up the SKIP logic in one test
2794 so this release is just to fix that.
2797 - 'has' now also accepts an ARRAY ref
2798 to create multiple attrs (see docs)
2799 (thanks to konobi for this)
2800 - added tests and docs
2802 0.19 Thurs. April 5th, 2007
2803 ~~ More documentation updates ~~
2805 * Moose::Util::TypeConstraints
2806 - 'type' now supports messages as well
2807 thanks to phaylon for finding this
2808 - added tests for this
2809 - added &list_all_type_constraints and
2810 &list_all_builtin_type_constraints
2811 functions to facilitate introspection.
2813 * Moose::Meta::Attribute
2814 - fixed regexp 'handles' declarations
2815 to build the list of delegated methods
2816 correctly (and not override important
2817 things like &new) thanks to ashleyb
2819 - added tests and docs for this
2820 - added the 'documentation' attributes
2821 so that you can actually document your
2822 attributes and inspect them through the
2824 - added tests and docs for this
2826 * Moose::Meta::Class
2827 - when loading custom attribute metaclasses
2828 it will first look in for the class in the
2829 Moose::Meta::Attribute::Custom::$name, and
2830 then default to just loading $name.
2831 - added tests and docs for this
2833 * Moose::Meta::TypeConstraint
2834 - type constraints now stringify to their names.
2835 - added test for this
2838 - added tests to assure we work with Module::Refresh
2839 - added stricter test skip logic in the Moose POOP
2840 test, ask Rob Kinyon why.
2841 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2843 0.18 Sat. March 10, 2007
2844 ~~ Many, many documentation updates ~~
2847 - We now use Class::MOP::load_class to
2849 - added tests to show types and subtypes
2850 working with Declare::Constraints::Simple
2851 and Test::Deep as constraint engines.
2854 !! You must have Class::MOP 0.37_001 !!
2855 !! for this developer release to work !!
2857 This release was primarily adding the immutable
2858 feature to Moose. An immutable class is one which
2859 you promise not to alter. When you set the class
2860 as immutable it will perform various bits of
2861 memoization and inline certain part of the code
2862 (constructors, destructors and accessors). This
2863 minimizes (and in some cases totally eliminates)
2864 one of Moose's biggest performance hits. This
2865 feature is not on by default, and is 100% optional.
2866 It has several configurable bits as well, so you
2867 can pick and choose to your specific needs.
2869 The changes involved in this were fairly wide and
2870 highly specific, but 100% backwards compatible, so
2871 I am not going to enumerate them here. If you are
2872 truely interested in what was changed, please do
2875 0.17 Tues. Nov. 14, 2006
2876 * Moose::Meta::Method::Accessor
2877 - bugfix for read-only accessors which
2878 are have a type constraint and lazy.
2879 Thanks to chansen for finding it.
2881 0.16 Tues. Nov. 14, 2006
2883 There are some speed improvements in this release,
2884 but they are only the begining, so stay tuned.
2887 - BUILDALL and DEMOLISHALL no longer get
2888 called unless they actually need to be.
2889 This gave us a signifigant speed boost
2890 for the cases when there is no BUILD or
2891 DEMOLISH method present.
2893 * Moose::Util::TypeConstraints
2894 * Moose::Meta::TypeConstraint
2895 - added an 'optimize_as' option to the
2896 type constraint, which allows for a
2897 hand optimized version of the type
2898 constraint to be used when possible.
2899 - Any internally created type constraints
2900 now provide an optimized version as well.
2902 0.15 Sun. Nov. 5, 2006
2904 This version of Moose *must* have Class::MOP 0.36 in order
2905 to work correctly. A number of small internal tweaks have
2906 been made in order to be compatible with that release.
2908 * Moose::Util::TypeConstraints
2909 - added &unimport so that you can clean out
2910 your class namespace of these exported
2913 * Moose::Meta::Class
2914 - fixed minor issue which occasionally
2915 comes up during global destruction
2917 - moved Moose::Meta::Method::Overriden into
2921 - moved Moose::Meta::Role::Method into
2924 * Moose::Meta::Attribute
2925 - changed how we do type checks so that
2926 we reduce the overall cost, but still
2929 - moved accessor generation methods to
2930 Moose::Meta::Method::Accessor to
2931 conform to the API changes from
2934 * Moose::Meta::TypeConstraint
2935 - changed how constraints are compiled
2936 so that we do less recursion and more
2937 iteration. This makes the type check
2939 - moved Moose::Meta::TypeConstraint::Union
2942 * Moose::Meta::Method::Accessor
2943 - created this from methods formerly found in
2944 Moose::Meta::Attribute
2946 * Moose::Meta::Role::Method
2947 - moved this from Moose::Meta::Role
2949 * Moose::Meta::Method::Overriden
2950 - moved this from Moose::Meta::Class
2952 * Moose::Meta::TypeConstraint::Union
2953 - moved this from Moose::Meta::TypeConstraint
2955 0.14 Mon. Oct. 9, 2006
2957 * Moose::Meta::Attribute
2958 - fixed lazy attributes which were not getting
2959 checked with the type constraint (thanks ashley)
2960 - added tests for this
2961 - removed the over-enthusiastic DWIMery of the
2962 automatic ArrayRef and HashRef defaults, it
2963 broke predicates in an ugly way.
2964 - removed tests for this
2966 0.13 Sat. Sept. 30, 2006
2968 This version of Moose *must* have Class::MOP 0.35 in order
2969 to work correctly. A number of small internal tweaks have
2970 been made in order to be compatible with that release.
2973 - Removed the use of UNIVERSAL::require to be a better
2974 symbol table citizen and remove a dependency
2975 (thanks Adam Kennedy)
2977 **~~ removed experimental & undocumented feature ~~**
2978 - commented out the 'method' and 'self' keywords, see the
2979 comments for more info.
2982 - added a FAQ and WTF files to document frequently
2983 asked questions and common problems
2985 * Moose::Util::TypeConstraints
2986 - added GlobRef and FileHandle type constraint
2987 - added tests for this
2989 * Moose::Meta::Attribute
2990 - if your attribute 'isa' ArrayRef of HashRef, and you have
2991 not explicitly set a default, then make the default DWIM.
2992 This will also work for subtypes of ArrayRef and HashRef
2994 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2995 - new test added for this (thanks to ashley)
2998 - added basic support for runtime role composition
2999 but this is still *highly experimental*, so feedback
3000 is much appreciated :)
3001 - added tests for this
3003 * Moose::Meta::TypeConstraint
3004 - the type constraint now handles the coercion process
3005 through delegation, this is to support the coercion
3008 * Moose::Meta::TypeConstraint::Union
3009 - it is now possible for coercions to be performed
3011 - added tests for this (thanks to konobi)
3013 * Moose::Meta::TypeCoercion
3014 - properly capturing error when type constraint
3018 - Scalar::Util 1.18 is bad on Win32, so temporarily
3019 only require version 1.17 for Win32 and cygwin.
3020 (thanks Adam Kennedy)
3022 0.12 Sat. Sept. 1, 2006
3024 - Recipe5 (subtypes & coercion) has been written
3027 - fixed "bad meta" error message to be more descriptive
3028 - fixed &unimport to not remove the &inner and &super
3029 keywords because we need to localize them.
3030 - fixed number of spelling/grammer issues, thanks Theory :)
3032 **~~ experimental & undocumented feature ~~**
3033 - added the method and self keywords, they are basically
3034 just sugar, and they may not stay around.
3037 - added &dump method to easily Data::Dumper
3040 * Moose::Meta::TypeConstraint
3041 - added the &is_a_type_of method to check both the current
3042 and the subtype of a method (similar to &isa with classes)
3045 - this is now a subclass of Class::MOP::Module, and no longer
3046 creates the _role_meta ugliness of before.
3047 - fixed tests to reflect this change
3049 0.11 Wed. July 12, 2006
3051 - added an &unimport method to remove all the keywords
3052 that Moose will import, simply add 'no Moose' to the
3053 bottom of your class file.
3056 - fixed some test failures caused by a forgotten test
3059 0.10 Thurs. July 6, 2006
3061 - improved error message when loading modules so
3062 it is less confusing when you load a role.
3063 - added &calculate_all_roles method to
3064 Moose::Meta::Class and Moose::Meta::Role
3067 This module has been tested against Class::MOP 0.30
3068 but it does not yet utilize the optimizations
3069 it makes available. Stay tuned for that ;)
3071 0.09_03 Fri. June 23, 2006
3072 ++ DEVELOPER RELEASE ++
3074 - 'use strict' and 'use warnings' are no longer
3075 needed in Moose classes, Moose itself will
3076 turn them on for you.
3077 - added tests for this
3078 - moved code from exported subs to private methods
3079 in Moose::Meta::Class
3082 - as with Moose, strict and warnings are
3083 automatically turned on for you.
3084 - added tests for this
3087 - now handles an edge case for override errors
3088 - added tests for this
3089 - added some more edge case tests
3091 0.09_02 Tues. May 16, 2006
3092 ++ DEVELOPER RELEASE ++
3094 - added prototypes to the exported subs
3098 - added prototypes to the exported subs
3101 * Moose::Util::TypeConstraints
3102 - cleaned up prototypes for the subs
3105 0.09_01 Fri. May 12, 2006
3106 ++ DEVELOPER RELEASE ++
3107 - This release works in combination with
3108 Class::MOP 0.29_01, it is a developer
3109 release because it uses the a new
3110 instance sub-protocol and a fairly
3111 complete Role implementation. It has
3112 not yet been optimized, so it slower
3113 the the previous CPAN version. This
3114 release also lacks good updated docs,
3115 the official release will have updated docs.
3118 - refactored the keyword exports
3119 - 'with' now checks Role validaity and
3120 accepts more than one Role at a time
3121 - 'extends' makes metaclass adjustments as
3122 needed to ensure metaclass compatibility
3125 - refactored the keyword exports
3126 - 'with' now checks Role validaity and
3127 accepts more than one Role at a time
3129 * Moose::Util::TypeConstraints
3130 - added the 'enum' keyword for simple
3131 string enumerations which can be used as
3133 - see example of usage in t/202_example.t
3136 - more careful checking of params to new()
3139 - much work done on the role composition
3140 - many new tests for conflict detection
3141 and composition edge cases
3142 - not enough documentation, I suggest
3143 looking at the tests
3145 * Moose::Meta::Instance
3146 - added new Instance metaclass to support
3147 the new Class::MOP instance protocol
3149 * Moose::Meta::Class
3150 - some small changes to support the new
3152 - some small additions to support Roles
3154 * Moose::Meta::Attribute
3155 - some improvements to the accessor generation code
3157 - some small changes to support the new
3159 - (still somewhat) experimental delegation support
3160 with the 'handles' option
3161 - added several tests for this
3162 - no docs for this yet
3164 0.05 Thurs. April 27, 2006
3166 - keywords are now exported with Sub::Exporter
3167 thanks to chansen for this commit
3168 - has keyword now takes a 'metaclass' option
3169 to support custom attribute meta-classes
3170 on a per-attribute basis
3171 - added tests for this
3172 - the 'has' keyword not accepts inherited slot
3173 specifications (has '+foo'). This is still an
3174 experimental feature and probably not finished
3175 see t/038_attribute_inherited_slot_specs.t for
3176 more details, or ask about it on #moose
3177 - added tests for this
3180 - keywords are now exported with Sub::Exporter
3182 * Moose::Utils::TypeConstraints
3183 - reorganized the type constraint hierarchy, thanks
3184 to nothingmuch and chansen for his help and advice
3186 - added some tests for this
3187 - keywords are now exported with Sub::Exporter
3188 thanks to chansen for this commit
3190 * Moose::Meta::Class
3191 - due to changes in Class::MOP, we had to change
3192 construct_instance (for the better)
3194 * Moose::Meta::Attribute
3195 - due to changes in Class::MOP, we had to add the
3196 initialize_instance_slot method (it's a good thing)
3198 * Moose::Meta::TypeConstraint
3199 - added type constraint unions
3200 - added tests for this
3201 - added the is_subtype_of predicate method
3202 - added tests for this
3204 0.04 Sun. April 16th, 2006
3206 - Roles can now consume other roles
3207 - added tests for this
3208 - Roles can specify required methods now with
3209 the requires() keyword
3210 - added tests for this
3213 - ripped out much of it's guts ,.. much cleaner now
3214 - added required methods and correct handling of
3215 them in apply() for both classes and roles
3216 - added tests for this
3217 - no longer adds a does() method to consuming classes
3218 it relys on the one in Moose::Object
3219 - added roles attribute and some methods to support
3220 roles consuming roles
3222 * Moose::Meta::Attribute
3223 - added support for triggers on attributes
3224 - added tests for this
3225 - added support for does option on an attribute
3226 - added tests for this
3228 * Moose::Meta::Class
3229 - added support for attribute triggers in the
3231 - added tests for this
3234 - Moose no longer creates a subtype for your class
3235 if a subtype of the same name already exists, this
3236 should DWIM in 99.9999% of all cases
3238 * Moose::Util::TypeConstraints
3239 - fixed bug where incorrect subtype conflicts were
3241 - added test for this
3244 - this class can now be extended with 'use base' if
3245 you need it, it properly loads the metaclass class now
3246 - added test for this
3248 0.03_02 Wed. April 12, 2006
3250 - you must now explictly use Moose::Util::TypeConstraints
3251 it no longer gets exported for you automatically
3254 - new() now accepts hash-refs as well as key/value lists
3255 - added does() method to check for Roles
3256 - added tests for this
3258 * Moose::Meta::Class
3259 - added roles attribute along with the add_role() and
3261 - added tests for this
3264 - now adds a does() method to consuming classes
3265 which tests the class's hierarchy for roles
3266 - added tests for this
3268 0.03_01 Mon. April 10, 2006
3270 - added new Role recipe (no content yet, only code)
3273 - added 'with' keyword for Role support
3274 - added test and docs for this
3275 - fixed subtype quoting bug
3276 - added test for this
3280 - added test and docs
3282 * Moose::Util::TypeConstraints
3283 - added the message keyword to add custom
3284 error messages to type constraints
3287 - the meta role to support Moose::Role
3288 - added tests and docs
3290 * Moose::Meta::Class
3291 - moved a number of things from Moose.pm
3292 to here, they should have been here
3295 * Moose::Meta::Attribute
3296 - moved the attribute option macros here
3297 instead of putting them in Moose.pm
3299 * Moose::Meta::TypeConstraint
3300 - added the message attributes and the
3302 - added tests and docs for this
3304 0.03 Thurs. March 30, 2006
3306 - added the Moose::Cookbook with 5 recipes,
3307 describing all the stuff Moose can do.
3310 - fixed an issue with &extends super class loading
3311 it now captures errors and deals with inline
3312 packages correctly (bug found by mst, solution
3314 - added super/override & inner/augment features
3315 - added tests and docs for these
3318 - BUILDALL now takes a reference of the %params
3319 that are passed to &new, and passes that to
3322 * Moose::Util::TypeConstraints
3323 - Type constraints now survive runtime reloading
3324 - added test for this
3326 * Moose::Meta::Class
3327 - fixed the way attribute defaults are handled
3328 during instance construction (bug found by chansen)
3330 * Moose::Meta::Attribute
3331 - read-only attributes now actually enforce their
3332 read-only-ness (this corrected in Class::MOP as
3335 0.02 Tues. March 21, 2006
3337 - many more tests, fixing some bugs and
3339 - &extends now loads the base module with
3341 - added UNIVERSAL::require to the
3344 - each new Moose class will also create
3345 and register a subtype of Object which
3346 correspond to the new Moose class.
3347 - the 'isa' option in &has now only
3348 accepts strings, and will DWIM in
3351 * Moose::Util::TypeConstraints
3352 - added type coercion features
3353 - added tests for this
3354 - added support for this in attributes
3355 and instance construction
3357 - type construction no longer creates a
3358 function, it registers the type instead.
3359 - added several functions to get the
3363 - BUILDALL and DEMOLISHALL were broken
3364 because of a mis-named hash key, Whoops :)
3366 * Moose::Meta::Attribute
3367 - adding support for coercion in the
3368 autogenerated accessors
3370 * Moose::Meta::Class
3371 - adding support for coercion in the
3372 instance construction
3374 * Moose::Meta::TypeConstraint
3375 * Moose::Meta::TypeCoercion
3376 - type constraints and coercions are now
3377 full fledges meta-objects
3379 0.01 Wed. March 15, 2006
3380 - Moooooooooooooooooose!!!