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
20 * Allow disabling stack traces by setting an environment variable. See
21 Moose::Error::Default for details. This feature is considered
22 experimental, and may change in a future release. (Marcus Ramberg)
26 * A number of native trait methods which expected strings as arguments did
27 not allow the empty string. This included Array->join, String->match,
28 String->replace, and String->substr. Reported by Whitney Jackson. RT
31 * 'no Moose' no longer inadvertently removes imports it didn't create
32 itself. RT #60013. (Florian Ragwitz, doy)
34 * Roles now support passing an array reference of method names to method
35 modifier sugar functions. (doy)
37 * Native traits no longer use optimized inlining routines if the instance
38 requests it (in particular, if inline_get_slot_value doesn't return
39 something that can be assigned to). This should fix issues with
42 * We now ignore all Class::MOP and Moose classes when determining what
43 package called a deprecated feature. This should make the deprecation
44 warnings saner, and make it possible to turn them off more easily. (Dave
47 * The deprecated "default is" warning no longer happens if the attribute has
48 any accessor method defined (accessor, reader, writer). Also, this warning
49 only happens when a method that was generated because of the "default is"
50 gets called, rather than when the attribute is defined. (Dave Rolsky)
52 * The "default default" code for some native delegations no longer issues a
53 deprecation warning when the attribute is required or has a builder. (Dave
56 * Setting a "default default" caused a fatal error if you used the builder
57 or lazy_build options for the attribute. Reported by Kent Fredric. RT
64 * Major changes to Native Traits, most of which make them act more like
65 "normal" attributes. This should be mostly compatible with existing code,
66 but see Moose::Manual::Delta for details.
68 * A few native traits (String, Counter, Bool) provide default values of "is"
69 and "default" when you created an attribute. Allowing them to provide
70 these values is now deprecated. Supply the value yourself when creating
73 * New option 'trait_aliases' for Moose::Exporter, which will allow you to
74 generate non-global aliases for your traits (and allow your users to
75 rename the aliases, etc). (doy)
77 * 'use Moose' and 'use Moose::Role' now accept a '-meta_name' option, to
78 determine which name to install the 'meta' name under. Passing 'undef'
79 to this option will suppress generation of the meta method entirely. (doy)
81 * Moose now warns if it overwrites an existing method named "meta" in your
82 class when you "use Moose". (doy)
86 * Native Trait delegations are now all generated as inline code. This should
87 be much faster than the previous method of delegation. In the best case,
88 native trait methods will be very highly optimized.
90 * Reinitializing a metaclass no longer removes the existing method and
91 attribute objects (it instead fixes them so they are correct for the
92 reinitialized metaclass). This should make the order of loading many
93 MooseX modules less of an issue. (doy)
95 * The Moose::Manual docs have been revised and updated. (Dave Rolsky)
99 * If an attribute was weak, setting it to a non-ref value after the object
100 was constructed caused an error. Now we only call weaken when the new
101 value is a reference.
103 * t/040_type_constraints/036_match_type_operator.t failed on 5.13.5+. Fixed
104 based on a patch from Andreas Koenig.
106 1.14 Tue, Sep 21, 2010
110 * Work around what looks like a bug in List::MoreUtils::any. This bug caused
111 a weird error when defining the same union type twice, but only when using
112 MooseX::Types. Reported by Curtis Jewell. RT #61001. (Dave Rolsky)
114 1.13 Mon, Sep 13, 2010
118 * The deprecation warnings for alias and excludes are back, use -alias and
119 -excludes instead. (Dave Rolsky)
123 * When composing one role into another and there is an attribute conflict,
124 the error message now includes the attribute name. Reported by Sam
125 Graham. RT #59985. (Dave Rolsky)
127 * When a class is made immutable, the does_role method is overridden with a
128 much faster version that simply looks role names up in a hash. Code which
129 uses lots of role-based type constraints should be faster. (Dave Rolsky)
131 1.12 Sat, Aug 28, 2010
135 * Fix the MANIFEST. Fixes RT #60831, reported by Alberto Simões.
137 1.11 Fri, Aug 27, 2010
141 * An attribute in a subclass can now override the value of "is". (doy)
143 * The deprecation warnings for alias and excludes have been turned back off
144 for this release, to give other module authors a chance to tweak their
149 * mro::get_linear_isa was being called as a function rather than a method,
150 which caused problems with Perl 5.8.x. (t0m)
152 * Union types always created a type constraint, even if their constituent
153 constraints did not have any coercions. This bogus coercion always
154 returned undef, which meant that a union which included Undef as a member
155 always coerced bad values to undef. Reported by Eric Brine. RT
156 #58411. (Dave Rolsky)
158 * Union types with coercions would always fall back to coercing the value to
159 undef (unintentionally). Now if all the coercions for a union type fail,
160 the value returned by the coercion is the original value that we attempted
161 to coerce. (Dave Rolsky).
163 1.10 Sun, Aug 22, 2010
167 * The long-deprecated alias and excludes options for role applications now
168 issue a deprecation warning. Use -alias and -excludes instead. (Dave
173 * Inlined code no longer stringifies numeric attribute defaults. (vg, doy)
175 * default => undef now works properly. (doy)
177 * Enum type constraints now throw errors if their values are nonsensical.
182 * Optimizations that should help speed up compilation time (Dave Rolsky).
184 1.09 Tue, Jul 25, 2010
188 * You can no longer pass "coerce => 1" for an attribute unless its type
189 constraint has a coercion defined. Doing so will issue a deprecation
190 warning. (Dave Rolsky)
192 * Previously, '+foo' only allowed a specific set of options to be
193 overridden, which made it impossible to change attribute options related
194 to extensions. Now we blacklist some options, and anything else is
195 allowed. (doy, Tuomas Jormola)
197 * Most features which have been declared deprecated now issue a warning using
198 Moose::Deprecated. Warnings are issued once per calling package, not
199 repeatedly. See Moose::Deprecated for information on how you can shut
200 these warnings up entirely. Note that deprecated features will eventually
201 be removed, so shutting up the warnings may not be the best idea. (Dave
204 * Removed the long-deprecated Moose::Meta::Role->alias_method method. (Dave
209 * We no longer unimport strict and warnings when Moose, Moose::Role, or
210 Moose::Exporter are unimported. Doing this was broken if the user
211 explicitly loaded strict and warnings themself, and the results could be
212 generally surprising. We decided that it was best to err on the side of
213 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
216 * New with_traits helper function in Moose::Util. (doy)
220 * Accessors will no longer be inlined if the instance metaclass isn't
223 * Use Perl 5.10's new recursive regex features, if possible, for the type
224 constraint parser. (doy, nothingmuch)
228 * Attributes now warn if their accessors overwrite a locally defined
229 function (not just method). (doy)
233 * Bump our required perl version to 5.8.3, since earlier versions fail tests
234 and aren't easily installable/testable.
236 1.08 Tue, Jun 15, 2010
240 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
241 to be overridden more easily (doy).
243 1.07 Sat, Jun 05, 2010
247 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
248 classes and non-class metaclass traits (doy, dougdude).
250 1.06 Tue, Jun 01, 2010
254 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
255 more uniformly compare type constraints between 'classic' Moose type
256 constraints and MooseX::Types based type constraints.
258 1.05 Thu, May 20, 2010
262 * Packages and modules no longer have methods - this functionality was
263 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
264 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
266 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
267 Moose::Object::new. (doy)
271 * strict and warnings are now unimported when Moose, Moose::Role, or
272 Moose::Exporter are unimported. (doy, Adam Kennedy)
274 * Added a 'consumers' method to Moose::Meta::Role for finding all
275 classes/roles which consume the given role. (doy)
279 * Fix has '+attr' in Roles to explode immediately, rather than when the role
280 is applied to a class (t0m).
282 * Fix type constraint validation messages to not include the string 'failed'
283 twice in the same sentence (Florian Ragwitz).
285 * New type constraints will default to being unequal, rather than equal
288 * The tests no longer check for perl's behavior of clobbering $@, which has
289 been fixed in perl-5.13.1 (Florian Ragwitz).
291 * Metaclass compatibility fixing has been completely rewritten, and should
292 be much more robust. (doy)
294 1.04 Thu, May 20, 2010
296 * This release was broken and has been deleted from CPAN shortly after its
299 1.03 Thu, May 06, 2010
303 * Allow specifying required versions when setting superclasses or applying
304 roles (Florian Ragwitz).
306 1.02 Sat, May 01, 2010
310 * Stop the natatime method provided by the native Array trait from returning
311 an exhausted iterator when being called with a callback. (Florian Ragwitz)
313 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
316 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
317 the class the TC represents as an argument incorrectly returned true. This
318 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
320 * Use File::Temp for temp files created during tests. Previously, files were
321 written to the t/ dir, which could cause problems of the user running the
322 tests did not have write access to that directory.. (Chris Weyl, Ævar
325 * Pass role arguments along when applying roles to instances. (doy, lsm)
327 1.01 Fri, Mar 26, 2010
331 * The handles option now also accepts a role type constraint in addition to a
332 plain role name. (Florian Ragwitz)
336 * Record the Sartak/doy debt properly in Changes (perigrin)
338 1.00 Tue, Mar 25, 2010
342 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
343 methods by default. (Florian Ragwitz)
347 * Improve various parts of the documentation and fix many typos.
348 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
352 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
354 0.99 Mon, Mar 8, 2010
358 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
359 which member of the union a given value validates for. (Cory Watson)
363 * DEMOLISH methods in mutable subclasses of immutable classes are now called
364 properly (Chia-liang Kao, Jesse Luehrs)
368 * Added Moose::Manual::Support that defines the support, compatiblity, and
369 release policies for Moose. (Chris Prather)
371 0.98 Wed, Feb 10, 2010
375 * An internals change in 0.97 broke role application to an instance in some
376 cases. The bug occurred when two different roles were applied to different
377 instances of the same class. (Rafael Kitover)
380 0.97 Tue, Feb 9, 2010
384 * Calling ->reinitialize on a cached anonymous class effectively uncached
385 the metaclass object, causing the metaclass to go out of scope
386 unexpectedly. This could easily happen at a distance by applying a
387 metarole to an anonymous class. (Dave Rolsky).
389 0.96 Sat, Feb 6, 2010
393 * ScalarRef is now a parameterized type. You can now specify a type
394 constraint for whatever the reference points to. (Closes RT#50857)
395 (Michael G. Schwern, Florian Ragwitz)
399 * ScalarRef now accepts references to other references. (Closes RT#50934)
402 0.95 Thu, Feb 4, 2010
406 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
407 a delegation option. This allows the code reference to be called as a
408 method on the object. (Florian Ragwitz)
412 * Moose::Object::does no longer checks the entire inheritance tree, since
413 Moose::Meta::Class::does_role already does this. (doy)
415 * Moose::Util::add_method_modifier (and subsequently the sugar functions
416 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
417 with the same behavior as lists. Types other than arrayref and regexp
418 result in an error. (Dylan Hardison)
420 0.94 Mon, Jan 18, 2010
424 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
428 * Improved support for anonymous roles by changing various APIs to take
429 Moose::Meta::Role objects as well as role names. This included
431 - Moose::Meta::Class->does_role
432 - Moose::Meta::Role->does_role
433 - Moose::Util::does_role
434 - Moose::Util::apply_all_roles
435 - Moose::Util::ensure_all_roles
436 - Moose::Util::search_class_by_role
438 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
442 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
443 work as long as the accessor method names are explicitly set to valid Perl
444 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
447 0.93_03 Tue, Jan 5, 2010
451 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
452 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
455 0.93_02 Tue, Jan 5, 2010
459 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
460 testers. (Dave Rolsky)
463 0.93_01 Mon, Jan 4, 2010
467 See Moose::Manual::Delta for more details on backwards compatiblity issues.
469 * Role attributes are now objects of the Moose::Meta::Role::Attribute
470 class. (Dave Rolsky).
472 * There were major changes to how metaroles are applied. We now distinguish
473 between metaroles for classes vs those for roles. See the
474 Moose::Util::MetaRole docs for details. (Dave Rolsky)
476 * The old MetaRole API has been deprecated, but will continue to
477 work. However, if you are applying an attribute metaclass role, this may
478 break because of the fact that roles now have an attribute metaclass
481 * Moose::Util::MetaRole::apply_metaclass_roles is now called
482 apply_metaroles. The old name is deprecated. Dave Rolsky>
484 * The unimport subs created by Moose::Exporter now clean up re-exported
485 functions like blessed and confess, unless the caller imported them from
486 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
488 [ENHANCEMENTS AND BUG FIXES]
490 * Changed the Str constraint to accept magic lvalue strings like one gets from
491 substr et al, again. (sorear)
493 * Sped up the type constraint parsing regex. (Sam Vilain)
495 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
498 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
499 easier testing of TypeConstraints from the command line. (perigrin)
501 * Added a with_immutable test function to Test::Moose, to run a block of tests
502 with and without certain classes being immutable. (doy)
504 * We now use Module::Install extensions explicitly to avoid confusing errors
505 if they're not installed. We use Module::Install::AuthorRequires to stop
506 test extraction and general failures if you don't have the author side
507 dependencies installed.
509 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
510 #51791. (Amir E. Aharoni)
513 0.93 Thu, Nov 19, 2009
515 - Calling $object->new() is no longer deprecated, and no longer
519 - The get_attribute_map method is now deprecated. (Dave Rolsky)
521 * Moose::Meta::Method::Delegation
522 - Preserve variable aliasing in @_ for delegated methods, so that
523 altering @_ affects the passed value. (doy)
525 * Moose::Util::TypeConstraints
526 - Allow array refs for non-anonymous form of enum and duck_type, not
527 just anonymous. The non-arrayref forms may be removed in the
529 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
530 - Properly document Int being a subtype of Str. (doy)
533 - Moose::Exporter using modules can now export their functions to the
534 main package. This applied to Moose and Moose::Role, among
535 others. (nothingmuch)
537 * Moose::Meta::Attribute
538 - Don't remove attribute accessors we never installed, during
539 remove_accessors. (doy)
541 * Moose::Meta::Attribute::Native::Trait::Array
542 - Don't bypass prototype checking when calling List::Util::first, to
543 avoid a segfault when it is called with a non-code argument. (doy)
545 * Moose::Meta::Attribute::Native::Trait::Code
546 - Fix passing arguments to code execute helpers. (doy)
548 0.92 Tue, Sep 22, 2009
549 * Moose::Util::TypeConstraints
550 - added the match_on_type operator (Stevan)
551 - added tests and docs for this (Stevan)
554 - Metaclass compat fixing should already happen recursively, there's no
555 need to explicitly walk up the inheritance tree. (doy)
557 * Moose::Meta::Attribute
558 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
560 0.91 Thu, Sep 17, 2009
562 - Don't import any functions, in order to avoid polluting our namespace
563 with things that can look like methods (blessed, try, etc)
566 * Moose::Meta::Method::Constructor
567 - The generated code needs to called Scalar::Util::blessed by its
568 fully-qualified name or else Perl can interpret the call to blessed as
569 an indirect method call. This broke Search::GIN, which in turn broke
570 KiokuDB. (nothingmuch)
572 0.90 Tue, Sep 15, 2009
573 * Moose::Meta::Attribute::Native::Trait::Counter
574 * Moose::Meta::Attribute::Native::Trait::String
575 - For these two traits, an attribute which did not explicitly provide
576 methods to handles magically ended up delegating *all* the helper
577 methods. This has been removed. You must be explicit in your handles
578 declaration for all Native Traits. (Dave Rolsky)
581 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
582 sure to rethrow its error message. However, we also localize $@ before
583 this so that if all the DEMOLISH methods success, the value of $@ will
584 be preserved. (nothingmuch and Dave Rolsky)
585 - We now also localize $? during object destruction. (nothingmuch and
587 - The handling of DEMOLISH methods was broken for immutablized classes,
588 which were not receiving the value of
589 Devel::GlobalDestruction::in_global_destruction.
590 - These two fixes address some of RT #48271, reported by Zefram.
591 - This is all now documented in Moose::Manual::Construction.
592 - Calling $object->new() is now deprecated. A warning will be
596 - Added more hooks to customize how roles are applied. The role
597 summation class, used to create composite roles, can now be changed
598 and/or have meta-roles applied to it. (rafl)
599 - The get_method_list method no longer explicitly excludes the "meta"
600 method. This was a hack that has been replaced by better hacks. (Dave
603 * Moose::Meta::Method::Delegation
604 - fixed delegated methods to make sure that any modifiers attached to
605 the accessor being delegated on will be called (Stevan)
606 - added tests for this (Stevan)
609 - Moose no longer warns when a class that is being made immutable has
610 mutable ancestors. While in theory this is a good thing to warn about,
611 we found so many exceptions to this that doing this properly became
614 0.89_02 Thu, Sep 10, 2009
615 * Moose::Meta::Attribute::Native
616 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
618 * Moose::Meta::Attribute::Native::Trait::Array
619 - Added a number of functions from List::Util and List::MoreUtils,
620 including reduce, shuffle, uniq, and natatime. (doy)
623 - This module will now generate an init_meta method for your exporting
624 class if you pass it options for
625 Moose::Util::MetaRole::apply_metaclass_roles or
626 apply_base_class_roles. This eliminates a lot of repetitive
627 boilerplate for typical MooseX modules. (doy).
628 - Documented the with_meta feature, which is a replacement for
629 with_caller. This feature was added by josh a while ago.
630 - The with_caller feature is now deprecated, but will not issue a
631 warning yet. (Dave Rolsky)
632 - If you try to wrap/export a subroutine which doesn't actually exist,
633 Moose::Exporter will warn you about this. (doy)
635 * Moose::Meta::Role::Application::ToRole
636 - When a role aliased a method from another role, it was only getting
637 the new (aliased) name, not the original name. This differed from what
638 happens when a class aliases a role's methods. If you _only_ want the
639 aliased name, make sure to also exclue the original name. (Dave
642 0.89_01 Wed Sep 2, 2009
643 * Moose::Meta::Attribute
644 - Added the currying syntax for delegation from AttributeHelpers to the
645 existing delegation API. (hdp)
647 * Moose::Meta::Attribute::Native
648 - We have merged the functionality of MooseX::AttributeHelpers into the
649 Moose core with some API tweaks. You can continue to use
650 MooseX::AttributeHelpers, but it will not be maintained except
651 (perhaps) for critical bug fixes in the future. See
652 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
655 * Moose::Error::Croak
656 * Moose::Error::Confess
657 - Clarify documentation on how to use different error-throwing
658 modules. (Curtis Jewell)
661 - Correct POD for builder to point to Recipe8, not 9. (gphat)
664 - When a nonexistent sub name is passed to as_is, with_caller, or
665 with_meta, throw a warning and skip the exporting, rather than
666 installing a broken sub. (doy)
669 - Moose now warns if you call C<make_immutable> for a class with mutable
672 0.89 Thu Aug 13, 2009
673 * Moose::Manual::Attributes
674 - Clarify "is", include discussion of "bare". (Sartak)
676 * Moose::Meta::Role::Method::Conflicting
677 * Moose::Meta::Role::Application::ToClass
678 - For the first set of roles involved in a conflict, report all
679 unresolved method conflicts, not just the first method. Fixes #47210
680 reported by Ovid. (Sartak)
682 * Moose::Meta::TypeConstraint
683 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
686 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
688 - Allow specifying role options (alias, excludes, MXRP stuff) in the
689 arrayref passed to "use Moose -traits" (doy)
692 - Add functions meta_class_alias and meta_attribute_alias for creating
693 aliases for class and attribute metaclasses and metatraits. (doy)
695 * Moose::Meta::Attribute
696 * Moose::Meta::Method::Accessor
697 - A trigger now receives the old value as a second argument, if the
698 attribute had one. (Dave Rolsky)
700 * Moose::Meta::Method::Constructor
701 - Fix a bug with $obj->new when $obj has stringify overloading.
702 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
703 - However, we will probably deprecate $obj->new, so please don't start
704 using it for new code!
706 * Moose::Meta::Role::Application
707 * Moose::Meta::Role::Application::RoleSummation
708 - Rename alias and excludes to -alias and -excludes (but keep the old
709 names for now, for backcompat) (doy)
711 0.88 Fri Jul 24, 2009
712 * Moose::Manual::Contributing
713 - Re-write the Moose::Manual::Contributing document to reflect
714 the new layout and methods of work for the Git repository. All
715 work now should be done in topic branches and reviewed by a
716 core committer before being applied to master. All releases
717 are done by a cabal member and merged from master to
718 stable. This plan was devised by Yuval, blame him. (perigrin)
721 - Create metaclass attributes for the different role application
724 * Moose::Util::MetaRole
725 - Allow applying roles to a meta role's role application
728 * Moose::Meta::Attribute
729 - Add weak_ref to allowed options for "has '+foo'" (mst)
731 * Moose::Meta::Method::Accessor
732 - No longer uses inline_slot_access in accessors, to support
733 non-lvalue-based meta instances. (sorear)
736 * Moose::Meta::Method::Delegation
737 - Once again allow class names as well as objects for
738 delegation. This was changed in 0.86.
741 * Moose::Meta::Class::Immutable::Trait
742 - Fixes to work with the latest Class::MOP.
744 * Moose::Meta::Method::Delegation
745 - Delegation now dies with a more useful error message if the
746 attribute's accessor returns something defined but
749 0.85 Fri, Jun 26, 2009
750 * Moose::Meta::Attribute
751 - The warning for 'no associated methods' is now split out into
752 the _check_associated_methods method, so that extensions can
753 safely call 'after install_accessors => ...'. This fixes a
754 warning from MooseX::AttributeHelpers. (hdp)
756 0.84 Fri, Jun 26, 2009
758 - has now sets definition_context for attributes defined in
761 * Moose::Meta::Attribute
762 - When adding an attribute to a metaclass, if the attribute has
763 no associated methods, it will give a deprecation
765 - Methods generated by delegation were not being added to
766 associated_methods. (hdp)
767 - Attribute accessors (reader, writer, accessor, predicate,
768 clearer) now warn if they overwrite an existing method. (doy)
769 - Attribute constructors now warn very noisily about unknown (or
770 misspelled) arguments
772 * Moose::Util::TypeConstraints
773 - Deprecated the totally useless Role type name, which just
774 checked if $object->can('does'). Note that this is _not_ the
775 same as a type created by calling role_type('RoleName').
777 * Moose::Util::TypeConstraints
778 * Moose::Meta::TypeConstraint::DuckType
779 - Reify duck type from a regular subtype into an actual class
781 - Document this because Sartak did all my work for me
784 * Moose::Meta::Attribute
785 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
786 it is just a list of methods (Sartak)
789 - The get_*_method_modifiers methods would die if the role had
790 no modifiers of the given type (Robert Buels).
792 0.83 Tue, Jun 23, 2009
794 - Fix _construct_instance not setting the special __MOP__ object
795 key in instances of anon classes. (doy)
797 0.82 Sun, Jun 21, 2009
798 * Moose::Manual::Types
799 - Mention MooseX::Types early to avoid users falling down the
800 string parsing rathole (mst)
802 * Moose::Manual::MooseX
803 - Add warnings about class-level extensions and mention considering
804 using plain objects instead
806 0.81 Sun, Jun 7, 2009
807 * Bumped our Class::MOP prereq to the latest version (0.85), since
810 0.80 Sat, Jun 6, 2009
812 - Add FAQ about the coercion change from 0.76 because it came up
813 three times today (perigrin)
814 - Win doy $10 dollars because Sartak didn't think anybody
815 would document this fast enough (perigrin)
817 * Moose::Meta::Method::Destructor
818 - Inline a DESTROY method even if there are no DEMOLISH methods
819 to prevent unnecessary introspection in
820 Moose::Object::DEMOLISHALL
823 - A role's required methods are now represented by
824 Moose::Meta::Role::Method::Required objects. Conflicts are now
825 represented by Moose::Meta::Role::Method::Conflicting
826 objects. The benefit for end-users in that unresolved
827 conflicts generate different, more instructive, errors,
828 resolving Ovid's #44895. (Sartak)
831 - Improve the error message of "extends" as suggested by Adam
832 Kennedy and confound (Sartak)
833 - Link to Moose::Manual::Roles from Moose::Role as we now have
834 excellent documentation (Adam Kennedy)
837 - Update test suite for subname change in Class::MOP
839 - Add TODO test for infinite recursion in Moose::Meta::Class
842 0.79 Wed, May 13, 2009
844 - More fixes for Win32 problems. Reported by Robert Krimen.
847 - The DEMOLISHALL method could still blow up in some cases
848 during global destruction. This method has been made more
849 resilient in the face of global destruction's random garbage
853 - If you "also" a module that isn't loaded, the error message
854 now acknowledges that (Sartak)
857 - When your ->meta method does not return a Moose::Meta::Class,
858 the error message gave the wrong output (Sartak)
860 0.78 Tue, May 12, 2009
861 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
862 - Merged these documents into what is now Moose::Manual::FAQ
865 - Moved to Moose::Manual::Unsweetened
867 * Moose::Cookbook::Basics::Recipes 9-12
868 - Renamed to be 8-11, since recipe 8 did not exist
871 - Make Moose::Exporter import strict and warnings into packages
875 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
876 methods during global destruction (doy)
879 * Moose::Meta::Role::Application::ToClass
880 - Track the Role::Application objects created during class-role
884 - Fix metaclass incompatibility errors when extending a vanilla perl
885 class which isa Moose class with a metaclass role applied (t0m)
888 - Add a role-combination hook, _role_for_combination, for the
889 benefit of MooseX::Role::Parameterized (Sartak)
892 - Some tests were failing on Win32 because they explicit checked
893 warning output for newlines. Reported by Nickolay Platonov.
895 0.77 Sat, May 2, 2009
897 - Add explicit use of Devel::GlobalDestruction and Sub::Name
901 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
902 or not we are currently in global destruction (doy)
903 - Add explicit use of Devel::GlobalDestruction and Sub::Name
906 * Moose::Cookbook::FAQ
907 - Reworked much of the existing content to be more useful to
908 modern Moose hackers (Sartak)
911 - Depend on Class::MOP 0.83 instead of 0.82_01.
913 0.76 Mon, April 27, 2009
914 * Moose::Meta::TypeConstraint
915 - Do not run coercions in coerce() if the value already passes the type
918 * Moose::Meta::TypeConstraint::Class
919 - In validation error messages, specifically say that the value is not
920 an instance of the class. This should alleviate some frustrating
921 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
923 * Moose::Meta::Role::Application::ToClass
924 - Revert the class-overrides-role warning in favor of a solution outside
925 of the Moose core (Sartak)
928 - Make Test::Output optional again, since it's only used in a few files
931 0.75_01 Thu, April 23, 2009
932 * Moose::Meta::Role::Application::ToClass
933 - Moose now warns about each class overriding methods from roles it
937 - Warnings tests have standardized on Test::Output which is now an
938 unconditionally dependency (Sartak)
941 - Changes to immutabilization to work with Class::MOP 0.82_01+.
943 0.75 Mon, April 20, 2009
946 - Move validation of not inheriting from roles from Moose::extends to
947 Moose::Meta::Class::superclasses (doy)
950 - add ensure_all_roles() function to encapsulate the common "apply this
951 role unless the object already does it" pattern (hdp)
954 - Users can now select a different metaclass with the "-metaclass"
955 option to import, for classes and roles (Sartak)
958 - Make method_metaclass an attr so that it can accept a metarole
961 0.74 Tue, April 7, 2009
963 * Moose::Meta::Method::Destructor
964 - Include stack traces in the deprecation warnings.
968 - Removed the long-deprecated _apply_all_roles method.
970 * Moose::Meta::TypeConstraint
971 - Removed the long-deprecated union method.
974 0.73_02 Mon, April 6, 2009
975 * More deprecations and renamings
976 - Moose::Meta::Method::Constructor
977 - initialize_body => _initialize_body (this is always called
978 when an object is constructed)
981 - The DEMOLISHALL method could throw an exception during global
982 destruction, meaning that your class's DEMOLISH methods would
983 not be properly called. Reported by t0m.
985 * Moose::Meta::Method::Destructor
986 - Destructor inlining was totally broken by the change to the
987 is_needed method in 0.72_01. Now there is a test for this
988 feature, and it works again.
991 - Bold the word 'not' in the POD for find_meta (t0m)
993 0.73_01 Sun, April 5, 2009
995 - Call user_class->meta in fewer places, with the eventual goal
996 of allowing the user to rename or exclude ->meta
997 altogether. Instead uses Class::MOP::class_of. (Sartak)
999 * Moose::Meta::Method::Accessor
1000 - If an attribute had a lazy default, and that value did not
1001 pass the attribute's type constraint, it did not get the
1002 message from the type constraint, instead using a generic
1003 message. Test provided by perigrin.
1005 * Moose::Util::TypeConstraints
1006 - Add duck_type keyword. It's sugar over making sure an object
1007 can() a list of methods. This is easier than jrockway's
1008 suggestion to fork all of CPAN. (perigrin)
1009 - add tests and documentation (perigrin)
1012 - Document the fact that init_meta() returns the target class's
1013 metaclass object. (hdp)
1015 * Moose::Cookbook::Extending::Recipe1
1016 * Moose::Cookbook::Extending::Recipe2
1017 * Moose::Cookbook::Extending::Recipe3
1018 * Moose::Cookbook::Extending::Recipe4
1019 - Make init_meta() examples explicitly return the metaclass and
1020 point out this fact. (hdp)
1022 * Moose::Cookbook::Basics::Recipe12
1023 - A new recipe, creating a custom meta-method class.
1025 * Moose::Cookbook::Meta::Recipe6
1026 - A new recipe, creating a custom meta-method class.
1028 * Moose::Meta::Class
1029 * Moose::Meta::Method::Constructor
1030 - Attribute triggers no longer receive the meta-attribute object
1031 as an argument in any circumstance. Previously, triggers
1032 called during instance construction were passed the
1033 meta-attribute, but triggers called by normal accessors were
1034 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
1036 * Moose::Manual::Attributes
1037 - Remove references to triggers receving the meta-attribute object as an
1040 * Moose::Cookbook::FAQ
1041 - Remove recommendation for deprecated Moose::Policy and
1042 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
1045 * Many methods have been renamed with a leading underscore, and a
1046 few have been deprecated entirely. The methods with a leading
1047 underscore are consider "internals only". People writing
1048 subclasses or extensions to Moose should feel free to override
1049 them, but they are not for "public" use.
1051 - Moose::Meta::Class
1052 - check_metaclass_compatibility => _check_metaclass_compatibility
1054 - Moose::Meta::Method::Accessor
1055 - initialize_body => _initialize_body (this is always called
1056 when an object is constructed)
1057 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
1059 - Moose::Meta::Method::Constructor
1060 - initialize_body => _initialize_body (this is always called
1061 when an object is constructed)
1062 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
1063 - attributes => _attributes (now inherited from parent)
1064 - meta_instance => _meta_instance (now inherited from parent)
1067 - alias_method is deprecated. Use add_method
1069 0.73 Fri, March 29, 2009
1070 * No changes from 0.72_01.
1072 0.72_01 Thu, March 26, 2009
1074 - Almost every module has complete API documentation. A few
1075 methods (and even whole classes) have been intentionally
1076 excluded pending some rethinking of their APIs.
1078 * Moose::Util::TypeConstraints
1079 - Calling subtype with a name as the only argument is now an
1080 exception. If you want an anonymous subtype do:
1082 my $subtype = subtype as 'Foo';
1084 * Moose::Cookbook::Meta::Recipe7
1085 - A new recipe, creating a custom meta-instance class.
1087 * Moose::Cookbook::Basics::Recipe5
1088 - Fix various typos and mistakes. Includes a patch from Radu
1091 * Moose::Cookbook::Basics::Recipe9
1092 - Link to this recipe from Moose.pm's builder blurb
1095 - When wrapping a function with a prototype, Moose::Exporter now
1096 makes sure the wrapped function still has the same
1097 prototype. (Daisuke Maki)
1099 * Moose::Meta::Attribute
1100 - Allow a subclass to set lazy_build for an inherited
1104 - Explicitly depend on Data::OptList. We already had this dependency
1105 via Sub::Exporter, but since we're using it directly we're
1106 better off with it listed. (Sartak)
1108 * Moose::Meta::Method::Constructor
1109 - Make it easier to subclass the inlining behaviour. (Ash
1112 * Moose::Manual::Delta
1113 - Details significant changes in the history of Moose, along
1114 with recommended workarounds.
1116 * Moose::Manual::Contributing
1117 - Contributor's guide to Moose.
1119 * Moose::Meta::Method::Constructor
1120 - The long-deprecated intialize_body method has been removed
1121 (yes, spelled like that).
1123 * Moose::Meta::Method::Destructor
1124 - This is_needed method is now always a class method.
1126 * Moose::Meta::Class
1127 - Changes to the internals of how make_immutable works to match
1128 changes in latest Class::MOP.
1130 0.72 Mon, February 23, 2009
1132 * Moose::Meta::Method::Constructor
1133 - A mutable class accepted Foo->new(undef) without complaint,
1134 while an immutable class would blow up with an unhelpful
1135 error. Now, in both cases we throw a helpful error
1136 instead. Reported by doy.
1138 0.71_01 Sun, February 22, 2009
1140 - Hopefully fixed some POD errors in a few recipes that caused
1141 them to display weird on search.cpan.org.
1143 * Moose::Util::TypeConstraints
1144 - Calling type or subtype without the sugar helpers (as, where,
1145 message) is now deprecated.
1146 - The subtype function tried hard to guess what you meant, but
1147 often got it wrong. For example:
1149 my $subtype = subtype as 'ArrayRef[Object]';
1151 This caused an error in the past, but now works as you'd
1155 - Make sure Moose.pm is loaded before calling
1156 Moose->throw_error. This wasn't normally an issue, but could
1157 bite you in weird cases.
1159 0.71 Thu, February 19, 2009
1160 * Moose::Cookbook::Basics::Recipe11
1161 - A new recipe which demonstrates the use of BUILDARGS and
1162 BUILD. (Dave Rolsky)
1164 * Moose::Cookbook::Roles::Recipe3
1165 - A new recipe, applying a role to an object instance. (Dave
1169 - Allow overriding specific keywords from "also" packages. (doy)
1172 - Replace hardcoded cookbook tests with Test::Inline to ensure
1173 the tests match the actual code in the recipes. (Dave Rolsky)
1176 - Working on the above turned up a number of little bugs in the
1177 recipe code. (Dave Rolsky)
1179 * Moose::Util::TypeConstraints::Optimized
1180 - Just use Class::MOP for the optimized ClassName check. (Dave
1183 0.70 Sat, February 14, 2009
1184 * Moose::Util::TypeConstraints
1185 - Added the RoleName type (stevan)
1186 - added tests for this (stevan)
1188 * Moose::Cookbook::Basics::Recipe3
1189 - Updated the before qw[left right] sub to be a little more
1190 defensive about what it accepts (stevan)
1191 - added more tests to t/000_recipies/basics/003_binary_tree.t
1195 - We now always call DEMOLISHALL, even if a class does not
1196 define DEMOLISH. This makes sure that method modifiers on
1197 DEMOLISHALL work as expected. (doy)
1198 - added tests for this (EvanCarroll)
1200 * Moose::Util::MetaRole
1201 - Accept roles for the wrapped_method_metaclass (rafl)
1202 - added tests for this (rafl)
1204 * Moose::Meta::Attribute
1205 - We no longer pass the meta-attribute object as a final
1206 argument to triggers. This actually changed for inlined code a
1207 while back, but the non-inlined version and the docs were
1211 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1212 they require 0.11. (Dave Rolsky)
1215 - Lots of small changes to the manual, cookbook, and
1216 elsewhere. These were based on feedback from various
1217 users, too many to list here. (Dave Rolsky)
1219 0.69 Thu, February 12, 2009
1221 - Make some keyword errors use throw_error instead of croak
1222 since Moose::Exporter wraps keywords now (Sartak)
1224 * Moose::Cookbook::*
1225 - Revised every recipe for style and clarity. Also moved some
1226 documentation out of cookbook recipes and into Moose::Manual
1227 pages. This work was funded as part of the Moose docs grant
1228 from TPF. (Dave Rolsky)
1230 * Moose::Meta::Method::Delegation
1231 - If the attribute doing the delegation was not populated, the
1232 error message did not specify the attribute name
1235 0.68 Wed, February 4, 2009
1237 - Many spelling, typo, and formatting fixes by daxim.
1239 * Moose::Manual::Attributes
1240 - The NAME section in the POD used "Attribute" so search.cpan
1241 didn't resolve links from other documents properly.
1243 * Moose::Meta::Method::Overriden
1244 - Now properly spelled as Overridden. Thanks to daxim for
1247 0.67 Tue, February 3, 2009
1249 - Lots of little typo fixes and a few clarifications. Several
1250 pages didn't have proper titles, and so weren't actually
1251 visible on search.cpan.org. Thanks to hanekomu for a variety
1252 of fixes and formatting improvements.
1254 0.66 Tue, February 3, 2009
1256 - This is a brand new, extensive manual for Moose. This aims to
1257 provide a complete introduction to all of Moose's
1258 features. This work was funded as part of the Moose docs grant
1259 from TPF. (Dave Rolsky)
1261 * Moose::Meta::Attribute
1262 - Added a delegation_metaclass method to replace a hard-coded
1263 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1265 * Moose::Util::TypeConstraints
1266 - If you created a subtype and passed a parent that Moose didn't
1267 know about, it simply ignored the parent. Now it automatically
1268 creates the parent as a class type. This may not be what you
1269 want, but is less broken than before. (Dave Rolsky)
1271 * Moose::Util::TypeConstraints
1272 - This module tried throw errors by calling Moose->throw_error,
1273 but it did not ensure that Moose was loaded first. This could
1274 cause very unhelpful errors when it tried to throw an error
1275 before Moose was loaded. (Dave Rolsky)
1277 * Moose::Util::TypeConstraints
1278 - You could declare a name with subtype such as "Foo!Bar" that
1279 would be allowed, but if you used it in a parameterized type
1280 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1281 vetting on names created via the sugar functions, so that they
1282 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1284 0.65 Thu, January 22, 2009
1285 * Moose and Moose::Meta::Method::Overridden
1286 - If an overridden method called super(), and then the
1287 superclass's method (not overridden) _also_ called super(),
1288 Moose went into an endless recursion loop. Test provided by
1289 Chris Prather. (Dave Rolsky)
1291 * Moose::Meta::TypeConstraint
1292 - All methods are now documented. (gphat)
1294 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1295 - Fixed some bogus failures that occurred because we tried to
1296 validate filesystem paths in a very ad-hoc and
1297 not-quite-correct way. (Dave Rolsky)
1299 * Moose::Util::TypeConstraints
1300 - Added maybe_type to exports. See docs for details. (rjbs)
1303 - Added Moose::Util::TypeConstraints to the SEE ALSO
1307 - Methods created via an attribute can now fulfill a "requires"
1308 declaration for a role. (nothingmuch)
1310 * Moose::Meta::Method::*
1311 - Stack traces from inlined code will now report its line and
1312 file as being in your class, as opposed to in Moose
1313 guts. (nothingmuch).
1315 0.64 Wed, December 31, 2008
1316 * Moose::Meta::Method::Accessor
1317 - Always inline predicate and clearer methods (Sartak)
1319 * Moose::Meta::Attribute
1320 - Support for parameterized traits (Sartak)
1321 - verify_against_type_constraint method to avoid duplication
1322 and enhance extensibility (Sartak)
1324 * Moose::Meta::Class
1325 - Tests (but no support yet) for parameterized traits (Sartak)
1328 - Require Class::MOP 0.75+, which has the side effect of making
1329 sure we work on Win32. (Dave Rolsky)
1331 0.63 Mon, December 8, 2008
1332 * Moose::Unsweetened
1333 - Some small grammar tweaks and bug fixes in non-Moose example
1336 0.62_02 Fri, December 5, 2008
1337 * Moose::Meta::Role::Application::ToClass
1338 - When a class does not provide all of a role's required
1339 methods, the error thrown now mentions all of the missing
1340 methods, as opposed to just the first one found. Requested by
1341 Curtis Poe (RT #41119). (Dave Rolsky)
1343 * Moose::Meta::Method::Constructor
1344 - Moose will no longer inline a constructor for your class
1345 unless it inherits its constructor from Moose::Object, and
1346 will warn when it doesn't inline. If you want to force
1347 inlining anyway, pass "replace_constructor => 1" to
1348 make_immutable. Addresses RT #40968, reported by Jon
1349 Swartz. (Dave Rolsky)
1350 - The quoting of default values could be broken if the default
1351 contained a single quote ('). Now we use quotemeta to escape
1352 anything potentially dangerous in the defaults. (Dave Rolsky)
1354 0.62_01 Wed, December 3, 2008
1356 - use the method->execute API for BUILDALL
1357 and DEMOLISHALL (Sartak)
1359 * Moose::Util::TypeConstraints
1360 - We now make all the type constraint meta classes immutable
1361 before creating the default types provided by Moose. This
1362 should make loading Moose a little faster. (Dave Rolsky)
1364 0.62 Wed November 26, 2008
1365 * Moose::Meta::Role::Application::ToClass
1366 Moose::Meta::Role::Application::ToRole
1367 - fixed issues where excluding and aliasing the
1368 same methods for a single role did not work
1369 right (worked just fine with multiple
1371 - added test for this (stevan)
1373 * Moose::Meta::Role::Application::RoleSummation
1374 - fixed the error message when trying to compose
1375 a role with a role it excludes (Sartak)
1378 - Catch another case where recursion caused the value
1379 of $CALLER to be stamped on (t0m)
1380 - added test for this (t0m)
1383 - Remove the make_immutable keyword, which has been
1384 deprecated since April. It breaks metaclasses that
1385 use Moose without no Moose (Sartak)
1387 * Moose::Meta::Attribute
1388 - Removing an attribute from a class now also removes delegation
1389 (handles) methods installed for that attribute (t0m)
1390 - added test for this (t0m)
1392 * Moose::Meta::Method::Constructor
1393 - An attribute with a default that looked like a number (but was
1394 really a string) would accidentally be treated as a number
1395 when the constructor was made immutable (perigrin)
1396 - added test for this (perigrin)
1399 - create method for constructing a role
1400 dynamically (Sartak)
1401 - added test for this (Sartak)
1402 - anonymous roles! (Sartak)
1403 - added test for this (Sartak)
1406 - more consistent error messages (Sartak)
1408 * Moose::Cookbook::Roles::Recipe1
1409 - attempt to explain why a role that just requires
1410 methods is useful (Sartak)
1412 0.61 Fri November 7, 2008
1413 * Moose::Meta::Attribute
1414 - When passing a role to handles, it will be loaded if necessary
1417 * Moose::Meta::Class
1418 - Method objects returned by get_method (and other methods)
1419 Could end up being returned without an associated_metaclass
1420 attribute. Removing get_method_map, which is provided by
1421 Class::MOP::Class, fixed this. The Moose version did nothing
1422 different from its parent except introduce a bug. (Dave Rolsky)
1423 - added tests for this (jdv79)
1426 - Added a $VERSION to all .pm files which didn't have one. Fixes
1427 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1429 * Moose::Cookbook::Basics::Recipe4
1430 * Moose::Cookbook::Basics::Recipe6
1431 - These files had spaces on the first line of the SYNOPSIS, as
1432 opposed to a totally empty line. According to RT #40432, this
1433 confuses POD parsers. (Dave Rolsky)
1435 0.60 Fri October 24, 2008
1437 - Passing "-traits" when loading Moose caused the Moose.pm
1438 exports to be broken. Reported by t0m. (Dave Rolsky)
1439 - Tests for this bug. (t0m)
1442 - Change resolve_metaclass alias to use the new
1443 load_first_existing_class function. This makes it a lot
1444 simpler, and also around 5 times faster. (t0m)
1445 - Add caching to resolve_metaclass_alias, which gives an order
1446 of magnitude speedup to things which repeatedly call the
1447 Moose::Meta::Attribute->does method, notably MooseX::Storage
1450 * Moose::Util::TypeConstraint
1451 - Put back the changes for parameterized constraints that
1452 shouldn't have been removed in 0.59. We still cannot parse
1453 them, but MooseX modules can create them in some other
1454 way. See the 0.58 changes for more details. (jnapiorkowski)
1455 - Changed the way subtypes are created so that the job is
1456 delegated to a type constraint parent. This clears up some
1457 hardcoded checking and should allow correct subtypes of
1458 Moose::Meta::Type::Constraint. Don't rely on this new API too
1459 much (create_child_type) because it may go away in the
1460 future. (jnapiorkowski)
1462 * Moose::Meta::TypeConstraint::Union
1463 - Type constraint names are sorted as strings, not numbers.
1466 * Moose::Meta::TypeConstraint::Parameterizable
1467 - New parameterize method. This can be used as a factory method
1468 to make a new type constraint with a given parameterized
1469 type. (jnapiorkowski)
1470 - added tests (jnapiorkowski)
1472 0.59 Tue October 14, 2008
1474 - Add abridged documentation for builder/default/initializer/
1475 predicate, and link to more details sections in
1476 Class::MOP::Attribute. (t0m)
1478 * Moose::Util::TypeConstraints
1479 - removed prototypes from all but the &-based stuff (mst)
1481 * Moose::Util::TypeConstraints
1482 - Creating a anonymous subtype with both a constraint and a
1483 message failed with a very unhelpful error, but should just
1484 work. Reported by t0m. (Dave Rolsky)
1487 - Some tests that used Test::Warn if it was available failed
1488 with older versions of Test::Warn. Reported by Fayland. (Dave
1490 - Test firing behavior of triggers in relation to builder/default/
1492 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1493 kinds of supported type. (t0m)
1495 * Moose::Meta::Class
1496 - In create(), do not pass "roles" option to the superclass
1497 - added related test that creates an anon metaclass with
1498 a required attribute
1500 * Moose::Meta::TypeConstraint::Class
1501 * Moose::Meta::TypeConstraint::Role
1502 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1503 other types (as per change in 0.55_02). (t0m)
1505 * Moose::Meta::TypeConstraint::Registry
1506 - Fix warning when dealing with unknown type names (t0m)
1508 * Moose::Util::TypeConstraints
1509 - Reverted changes from 0.58 related to handle parameterized
1510 types. This caused random failures on BSD and Win32 systems,
1511 apparently related to the regex engine. This means that Moose
1512 can no longer parse structured type constraints like
1513 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1514 supported in a slightly different way via MooseX::Types some
1515 time in the future. (Dave Rolsky)
1517 0.58 Sat September 20, 2008
1518 !! This release has an incompatible change regarding !!
1519 !! how roles add methods to a class !!
1521 * Roles and role application
1522 ! Roles now add methods by calling add_method, not
1523 alias_method. They make sure to always provide a method
1524 object, which will be cloned internally. This means that it is
1525 now possible to track the source of a method provided by a
1526 role, and even follow its history through intermediate roles.
1528 This means that methods added by a role now show up when
1529 looking at a class's method list/map. (Dave Rolsky)
1532 - From this release on, we'll try to maintain a list of
1533 conflicting modules, and warn you if you have one
1534 installed. For example, this release conflicts with ...
1535 - MooseX::Singleton <= 0.11
1536 - MooseX::Params::Validate <= 0.05
1539 In general, we try to not break backwards compatibility for
1540 most Moose users, but MooseX modules and other code which
1541 extends Moose's metaclasses is often affected by very small
1542 changes in the Moose internals.
1544 * Moose::Meta::Method::Delegation
1545 * Moose::Meta::Attribute
1546 - Delegation methods now have their own method class. (Dave
1549 * Moose::Meta::TypeConstraint::Parameterizable
1550 - Added a new method 'parameterize' which is basically a factory
1551 for the containing constraint. This makes it easier to create
1552 new types of parameterized constraints. (jnapiorkowski)
1554 * Moose::Meta::TypeConstraint::Union
1555 - Changed the way Union types canonicalize their names to follow
1556 the normalized TC naming rules, which means we strip all
1557 whitespace. (jnapiorkowski)
1559 * Moose::Util::TypeConstraints
1560 - Parameter and Union args are now sorted, this makes Int|Str
1561 the same constraint as Str|Int. (jnapiorkowski)
1562 - Changes to the way Union types are parsed to more correctly
1563 stringify their names. (jnapiorkowski)
1564 - When creating a parameterized type, we now use the new
1565 parameterize method. (jnapiorkowski)
1566 - Incoming type constraint strings are now normalized to remove
1567 all whitespace differences. (jnapiorkowski)
1568 - Changed the way we parse type constraint strings so that we now
1569 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1570 constraints. This lays the foundation for more flexible type
1571 constraint implementations.
1573 * Tests and docs for all the above. (jnapiorkowski)
1577 - Moose::Exporter will no longer remove a subroutine that the
1578 exporting package re-exports. Moose re-exports the
1579 Carp::confess function, among others. The reasoning is that we
1580 cannot know whether you have also explicitly imported those
1581 functions for your own use, so we err on the safe side and
1582 always keep them. (Dave Rolsky)
1583 - added tests for this (rafl)
1585 * Moose::Meta::Class
1586 - Changes to how we fix metaclass compatibility that are much
1587 too complicated to go into. The summary is that Moose is much
1588 less likely to complain about metaclass incompatibility
1589 now. In particular, if two metaclasses differ because
1590 Moose::Util::MetaRole was used on the two corresponding
1591 classes, then the difference in roles is reconciled for the
1592 subclass's metaclass. (Dave Rolsky)
1593 - Squashed an warning in _process_attribute (thepler)
1596 - throw exceptions (sooner) for invalid attribute names (thepler)
1597 - added tests for this (thepler)
1599 * Moose::Util::MetaRole
1600 - If you explicitly set a constructor or destructor class for a
1601 metaclass object, and then applied roles to the metaclass,
1602 that explicitly set class would be lost and replaced with the
1605 * Moose::Meta::Class
1606 * Moose::Meta::Attribute
1607 * Moose::Meta::Method
1610 * Moose::Error::Default
1611 * Moose::Error::Croak
1612 * Moose::Error::Confess
1613 - All instances of confess() changed to use overridable
1614 C<throw_error> method. This method ultimately calls a class
1615 constructor, and you can change the class being called. In
1616 addition, errors now pass more information than just a string.
1617 The default C<error_class> behaves like C<Carp::confess>, so
1618 the behavior is not visibly different for end users.
1620 0.57 Wed September 3, 2008
1622 - A new bit of doc intended to introduce folks familiar with
1623 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1625 * Moose::Unsweetened
1626 - Shows examples of two classes, each done first with and then
1627 without Moose. This makes a nice parallel to
1628 Moose::Intro. (Dave Rolsky)
1630 * Moose::Util::TypeConstraints
1631 - Fixed a bug in find_or_parse_type_constraint so that it
1632 accepts a Moose::Meta::TypeConstraint object as the parent
1633 type, not just a name (jnapiorkowski)
1634 - added tests (jnapiorkowski)
1637 - If Sub::Name was not present, unimporting failed to actually
1638 remove some sugar subs, causing test failures (Dave Rolsky)
1640 0.56 Mon September 1, 2008
1641 For those not following the series of dev releases, there are
1642 several major changes in this release of Moose.
1643 ! Moose::init_meta should now be called as a method. See the
1646 - Major performance improvements by nothingmuch.
1648 - New modules for extension writers, Moose::Exporter and
1649 Moose::Util::MetaRole by Dave Rolsky.
1651 - Lots of doc improvements and additions, especially in the
1654 - Various bug fixes.
1656 * Removed all references to the experimental-but-no-longer-needed
1657 Moose::Meta::Role::Application::ToMetaclassInstance.
1659 * Require Class::MOP 0.65.
1661 0.55_04 Sat August 30, 2008
1662 * Moose::Util::MetaRole
1663 * Moose::Cookbook::Extending::Recipe2
1664 - This simplifies the application of roles to any meta class, as
1665 well as the base object class. Reimplemented metaclass traits
1666 using this module. (Dave Rolsky)
1668 * Moose::Cookbook::Extending::Recipe1
1669 - This a new recipe, an overview of various ways to write Moose
1670 extensions (Dave Rolsky)
1672 * Moose::Cookbook::Extending::Recipe3
1673 * Moose::Cookbook::Extending::Recipe4
1674 - These used to be Extending::Recipe1 and Extending::Recipe2,
1677 0.55_03 Fri August 29, 2008
1678 * No changes from 0.55_02 except increasing the Class::MOP
1679 dependency to 0.64_07.
1681 0.55_02 Fri August 29, 2008
1682 * Makefile.PL and Moose.pm
1683 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1685 * Moose::Util::TypeConstraints
1686 - Fix warnings from find_type_constraint if the type is not
1689 * Moose::Meta::TypeConstraint
1690 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1691 return false if the type you specify cannot be found in the
1692 type registry, rather than throwing an unhelpful and
1693 coincidental exception. (t0m).
1694 - added docs & test for this (t0m)
1696 * Moose::Meta::TypeConstraint::Registry
1697 - add_type_constraint now throws an exception if a parameter is
1699 - added docs & test for this (t0m)
1701 * Moose::Cookbook::FAQ
1702 - Added a faq entry on the difference between "role" and "trait"
1706 - Fixed a bug that caused role composition to not see a required
1707 method when that method was provided by another role being
1708 composed at the same time. (Dave Rolsky)
1709 - test and bug finding (tokuhirom)
1711 0.55_01 Wed August 20, 2008
1713 !! Calling Moose::init_meta as a function is now !!
1714 !! deprecated. Please see the Moose.pm docs for details. !!
1716 * Moose::Meta::Method::Constructor
1717 - Fix inlined constructor so that values produced by default
1718 or builder methods are coerced as required. (t0m)
1719 - added test for this (t0m)
1721 * Moose::Meta::Attribute
1722 - A lazy attribute with a default or builder did not attempt to
1723 coerce the default value. The immutable code _did_
1725 - added test for this (t0m)
1728 - This is a new helper module for writing "Moose-alike"
1729 modules. This should make the lives of MooseX module authors
1730 much easier. (Dave Rolsky)
1733 * Moose::Cookbook::Meta::Recipe5
1734 - Implemented metaclass traits (and wrote a recipe for it):
1736 use Moose -traits => 'Foo'
1738 This should make writing small Moose extensions a little
1739 easier (Dave Rolsky)
1741 * Moose::Cookbook::Basics::Recipe1
1742 - Removed any examples of direct hashref access, and applied an
1743 editorial axe to reduce verbosity. (Dave Rolsky)
1745 * Moose::Cookbook::Basics::Recipe1
1746 - Also applied an editorial axe here. (Dave Rolsky)
1749 * Moose::Cookbook::Extending::Recipe1
1750 * Moose::Cookbook::Extending::Recipe2
1751 - Rewrote extending and embedding moose documentation and
1752 recipes to use Moose::Exporter (Dave Rolsky)
1756 - These two modules now warn when you load them from the main
1757 package "main" package, because we will not export sugar to
1758 main. Previously it just did nothing. (Dave Rolsky)
1761 - Now provide an init_meta method just like Moose.pm, and you
1762 can call this to provide an alternate role metaclass. (Dave
1763 Rolsky and nothingmuch)
1764 - get_method_map now respects the package cache flag (nothingmuch)
1767 - Two new methods - add_method and wrap_method_body
1771 - Optimizations including allowing constructors to accept hash
1772 refs, making many more classes immutable, and making
1773 constructors immutable. (nothingmuch)
1775 0.55 Sun August 3, 2008
1776 * Moose::Meta::Attribute
1777 - breaking down the way 'handles' methods are
1778 created so that the process can be more easily
1779 overridden by subclasses (stevan)
1781 * Moose::Meta::TypeConstraint
1782 - fixing what is passed into a ->message with
1783 the type constraints (RT #37569)
1784 - added tests for this (Charles Alderman)
1786 * Moose::Util::TypeConstraints
1787 - fix coerce to accept anon types like subtype can (mst)
1790 - reorganized the recipes into sections - Basics, Roles, Meta,
1791 Extending - and wrote abstracts for each section (Dave Rolsky)
1793 * Moose::Cookbook::Basics::Recipe10
1794 - A new recipe that demonstrates operator overloading
1795 in combination with Moose. (bluefeet)
1797 * Moose::Cookbook::Meta::Recipe1
1798 - an introduction to what meta is and why you'd want to make
1799 your own metaclass extensions (Dave Rolsky)
1801 * Moose::Cookbook::Meta::Recipe4
1802 - a very simple metaclass example (Dave Rolsky)
1804 * Moose::Cookbook::Extending::Recipe1
1805 - how to write a Moose-alike module to use your own object base
1808 * Moose::Cookbook::Extending::Recipe2
1809 - how to write modules with an API just like C<Moose.pm> (Dave
1813 - Tons of fixes, both syntactical and grammatical (Dave
1814 Rolsky, Paul Fenwick)
1816 0.54 Thurs. July 3, 2008
1817 ... this is not my day today ...
1819 * Moose::Meta::Attribute
1820 - fixed legal_options_for_inheritance such that
1821 clone_and_inherit options still works for
1822 Class::MOP::Attribute objects and therefore
1823 does not break MooseX::AttributeHelpers
1826 0.53 Thurs. July 3, 2008
1827 * Whoops, I guess I should run 'make manifest' before
1828 actually releasing the module. No actual changes
1829 in this release, except the fact that it includes
1830 the changes that I didn't include in the last
1833 0.52 Thurs. July 3, 2008
1835 - added "FEATURE REQUESTS" section to the Moose docs
1836 to properly direct people (stevan) (RT #34333)
1837 - making 'extends' croak if it is passed a Role since
1838 this is not ever something you want to do
1839 (fixed by stevan, found by obra)
1840 - added tests for this (stevan)
1843 - adding support for DOES (as in UNIVERSAL::DOES)
1845 - added test for this
1847 * Moose::Meta::Attribute
1848 - added legal_options_for_inheritance (wreis)
1849 - added tests for this (wreis)
1851 * Moose::Cookbook::Snacks::*
1852 - removed some of the unfinished snacks that should
1853 not have been released yet. Added some more examples
1854 to the 'Keywords' snack. (stevan)
1856 * Moose::Cookbook::Style
1857 - added general Moose "style guide" of sorts to the
1858 cookbook (nothingmuch) (RT #34335)
1861 - added more BUILDARGS tests (stevan)
1863 0.51 Thurs. Jun 26, 2008
1865 - add unimport so "no Moose::Role" actually does
1868 * Moose::Meta::Role::Application::ToRole
1869 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1870 order to provide its own implementation, that method still got
1871 added to the list of required methods for consumers of
1872 RoleB. Now an aliased method is only added to the list of
1873 required methods if the role doing the aliasing does not
1874 provide its own implementation. See Recipe 11 for an example
1875 of all this. (Dave Rolsky)
1876 - added tests for this
1878 * Moose::Meta::Method::Constructor
1879 - when a single argument that wasn't a hashref was provided to
1880 an immutabilized constructor, the error message was very
1881 unhelpful, as opposed to the non-immutable error. Reported by
1883 - added test for this (Dave Rolsky)
1885 * Moose::Meta::Attribute
1886 - added support for meta_attr->does("ShortAlias") (sartak)
1887 - added tests for this (sartak)
1888 - moved the bulk of the `handles` handling to the new
1889 install_delegation method (Stevan)
1892 - Added BUILDARGS, a new step in new()
1894 * Moose::Meta::Role::Application::RoleSummation
1895 - fix typos no one ever sees (sartak)
1897 * Moose::Util::TypeConstraints
1898 * Moose::Meta::TypeConstraint
1899 * Moose::Meta::TypeCoercion
1900 - Attempt to work around the ??{ } vs. threads issue
1902 - Some null_constraint optimizations
1904 0.50 Thurs. Jun 11, 2008
1905 - Fixed a version number issue by bumping all modules
1908 0.49 Thurs. Jun 11, 2008
1909 !! This version now approx. 20-25% !!
1910 !! faster with new Class::MOP 0.59 !!
1912 * Moose::Meta::Attribute
1913 - fixed how the is => (ro|rw) works with
1914 custom defined reader, writer and accessor
1916 - added docs for this (TODO).
1917 - added tests for this (Thanks to Penfold)
1918 - added the custom attribute alias for regular
1919 Moose attributes which is "Moose"
1920 - fix builder and default both being used
1925 Moose::Meta::Attribute
1927 Moose::Meta::Role::Composite
1928 Moose::Util::TypeConstraints
1929 - switched usage of reftype to ref because
1933 - changing add_package_symbol to use the new
1937 - fixed how DEMOLISHALL is called so that it
1938 can be overrided in subclasses (thanks to Sartak)
1939 - added test for this (thanks to Sartak)
1941 * Moose::Util::TypeConstraints
1942 - move the ClassName type check code to
1943 Class::MOP::is_class_loaded (thanks to Sartak)
1945 * Moose::Cookbook::Recipe11
1946 - add tests for this (thanks to tokuhirom)
1948 0.48 Thurs. May 29, 2008
1949 (early morning release engineering)--
1951 - fixing the version in Moose::Meta::Method::Destructor
1952 which was causing the indexer to choke
1954 0.47 Thurs. May 29, 2008
1955 (late night release engineering)--
1957 - fixing the version is META.yml, no functional
1958 changes in this release
1960 0.46 Wed. May 28, 2008
1961 !! This version now approx. 20-25% !!
1962 !! faster with new Class::MOP 0.57 !!
1964 * Moose::Meta::Class
1965 - some optimizations of the &initialize method
1966 since it is called so often by &meta
1968 * Moose::Meta::Class
1970 - now use the get_all_package_symbols from the
1971 updated Class::MOP, test suite is now 10 seconds
1974 * Moose::Meta::Method::Destructor
1975 - is_needed can now also be called as a class
1976 method for immutablization to check if the
1977 destructor object even needs to be created
1980 * Moose::Meta::Method::Destructor
1981 Moose::Meta::Method::Constructor
1982 - added more descriptive error message to help
1983 keep people from wasting time tracking an error
1984 that is easily fixed by upgrading.
1986 0.45 Saturday, May 24, 2008
1988 - Because of work in Class::MOP 0.57, all
1989 XS based functionality is now optional
1990 and a Pure Perl version is supplied
1991 - the CLASS_MOP_NO_XS environment variable
1992 can now be used to force non-XS versions
1994 - several of the packages have been tweaked
1995 to take care of this, mostly we added
1996 support for the package_name and name
1997 variables in all the Method metaclasses
1998 - before/around/after method modifiers now
1999 support regexp matching of names
2000 (thanks to Takatoshi Kitano)
2001 - tests added for this
2002 - NOTE: this only works for classes, it
2003 is currently not supported in roles,
2004 but, ... patches welcome
2005 - All usage of Carp::confess have been replaced
2006 by Carp::croak in the "keyword" functions since
2007 the stack trace is usually not helpful
2010 - All usage of Carp::confess have been replaced
2011 by Carp::croak in the "keyword" functions since
2012 the stack trace is usually not helpful
2013 - The 'has' keyword for roles now accepts the
2014 same array ref form that Moose.pm does
2015 (has [qw/foo bar/] => (is => 'rw', ...))
2016 - added test for this
2018 * Moose::Meta::Attribute
2019 - trigger on a ro-attribute is no longer an
2020 error, as it's useful to trigger off of the
2023 * Moose::Meta::Class
2024 - added same 'add_package_symbol' fix as in
2028 - does_role now handles non-Moose classes
2030 - added tests for this
2031 - added the 'add_method_modifier' function
2032 (thanks to Takatoshi Kitano)
2034 * Moose::Util::TypeConstraints
2035 - subtypes of parameterizable types now are
2036 themselves parameterizable types
2038 * Moose::Meta::Method::Constructor
2039 - fixed bug where trigger was not being
2040 called by the inlined immutable
2042 - added test for this (thanks to Caelum)
2044 * Moose::Meta::Role::Application::ToInstance
2045 - now uses the metaclass of the instance
2046 (if possible) to create the anon-class
2047 (thanks Jonathan Rockway)
2049 * Moose::Cookbook::Recipe22
2050 - added the meta-attribute trait recipe
2054 - fixed hash-ordering test bug that was
2055 causing occasional cpantester failures
2056 - renamed the t/000_recipe/*.t tests to be
2057 more descriptive (thanks to Sartak)
2059 0.44 Sat. May 10, 2008
2061 - made make_immutable warning cluck to
2062 show where the error is (thanks mst)
2065 - BUILDALL and DEMOLISHALL now call
2066 ->body when looping through the
2067 methods, to avoid the overloaded
2069 - fixed issue where DEMOLISHALL was
2070 eating the $@ values, and so not
2071 working correctly, it still kind of
2072 eats them, but so does vanilla perl
2073 - added tests for this
2075 * Moose::Cookbook::Recipe7
2076 - added new recipe for immutable
2077 functionality (thanks Dave Rolsky)
2079 * Moose::Cookbook::Recipe9
2080 - added new recipe for builder and
2081 lazy_build (thanks Dave Rolsky)
2083 * Moose::Cookbook::Recipe11
2084 - added new recipe for method aliasing
2085 and exclusion with Roles (thanks Dave Rolsky)
2088 - fixed Win32 test failure (thanks spicyjack)
2090 ~ removed Build.PL and Module::Build compat
2091 since Module::Install has done that.
2093 0.43 Wed. April, 30, 2008
2095 drink more coffee before
2096 doing release engineering
2098 - whoops, forgot to do the smolder tests,
2099 and we broke some of the custom meta-attr
2100 modules. This fixes that.
2102 0.42 Mon. April 28, 2008
2103 - some bad tests slipped by, nothing else
2104 changed in this release (cpantesters++)
2106 - upped the Class::MOP dependency to 0.55
2107 since we have tests which need the C3
2110 0.41 Mon. April 28, 2008
2111 ~~ numerous documentation updates ~~
2113 - Changed all usage of die to Carp::croak for better
2114 error reporting (initial patch by Tod Hagan)
2116 ** IMPORTANT NOTE **
2117 - the make_immutable keyword is now deprecated, don't
2118 use it in any new code and please fix your old code
2119 as well. There will be 2 releases, and then it will
2125 - refactored the way inner and super work to avoid
2126 any method/@ISA cache penalty (nothingmuch)
2128 * Moose::Meta::Class
2129 - fixing &new_object to make sure trigger gets the
2130 coerced value (spotted by Charles Alderman on the
2132 - added test for this
2134 * Moose::Meta::Method::Constructor
2135 - immutable classes which had non-lazy attributes were calling
2136 the default generating sub twice in the constructor. (bug
2137 found by Jesse Luehrs, fixed by Dave Rolsky)
2138 - added tests for this (Dave Rolsky)
2139 - fix typo in initialize_body method (nothingmuch)
2141 * Moose::Meta::Method::Destructor
2142 - fix typo in initialize_body method (nothingmuch)
2144 * Moose::Meta::Method::Overriden
2145 Moose::Meta::Method::Augmented
2146 - moved the logic for these into their own
2147 classes (nothingmuch)
2149 * Moose::Meta::Attribute
2150 - inherited attributes may now be extended without
2151 restriction on the type ('isa', 'does') (Sartak)
2152 - added tests for this (Sartak)
2153 - when an attribute property is malformed (such as lazy without
2154 a default), give the name of the attribute in the error
2156 - added the &applied_traits and &has_applied_traits methods
2157 to allow introspection of traits
2158 - added tests for this
2159 - moved 'trait' and 'metaclass' argument handling to here from
2161 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
2162 '+foo' syntax) (nothingmuch)
2163 - added tests for this (t0m)
2166 - localize $@ inside DEMOLISHALL to avoid it
2167 eating $@ (found by Ernesto)
2168 - added test for this (thanks to Ernesto)
2170 * Moose::Util::TypeConstraints
2171 - &find_type_constraint now DWIMs when given an
2172 type constraint object or name (nothingmuch)
2173 - &find_or_create_type_constraint superseded with a number of more
2175 - find_or_create_{isa,does}_type_constraint
2176 - find_or_parse_type_constraint
2178 * Moose::Meta::TypeConstraint
2179 Moose::Meta::TypeConstraint::Class
2180 Moose::Meta::TypeConstraint::Role
2181 Moose::Meta::TypeConstraint::Enum
2182 Moose::Meta::TypeConstraint::Union
2183 Moose::Meta::TypeConstraint::Parameterized
2184 - added the &equals method for comparing two type
2185 constraints (nothingmuch)
2186 - added tests for this (nothingmuch)
2188 * Moose::Meta::TypeConstraint
2189 - add the &parents method, which is just an alias to &parent.
2190 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
2192 * Moose::Meta::TypeConstraint::Class
2193 - added the class attribute for introspection purposes
2195 - added tests for this
2197 * Moose::Meta::TypeConstraint::Enum
2198 Moose::Meta::TypeConstraint::Role
2199 - broke these out into their own classes (nothingmuch)
2201 * Moose::Cookbook::Recipe*
2202 - fixed references to test file locations in the POD
2203 and updated up some text for new Moose features
2207 - Added &resolve_metaclass_alias, a helper function for finding an actual
2208 class for a short name (e.g. in the traits list)
2210 0.40 Fri. March 14, 2008
2211 - I hate Pod::Coverage
2213 0.39 Fri. March 14, 2008
2215 - documenting the use of '+name' with attributes
2216 that come from recently composed roles. It makes
2217 sense, people are using it, and so why not just
2218 officially support it.
2219 - fixing the 'extends' keyword so that it will not
2220 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2223 - added the perl -Moose=+Class::Name feature to allow
2224 monkeypatching of classes in one liners
2227 - fixing the 'apply_all_roles' keyword so that it will not
2228 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2230 * Moose::Meta::Class
2231 - added ->create method which now supports roles (thanks to jrockway)
2232 - added tests for this
2233 - added ->create_anon_class which now supports roles and caching of
2234 the results (thanks to jrockway)
2235 - added tests for this
2236 - made ->does_role a little more forgiving when it is
2237 checking a Class::MOP era metaclasses.
2239 * Moose::Meta::Role::Application::ToInstance
2240 - it is now possible to pass extra params to be used when
2241 a role is applied to an the instance (rebless_params)
2242 - added tests for this
2244 * Moose::Util::TypeConstraints
2245 - class_type now accepts an optional second argument for a
2246 custom message. POD anotated accordingly (groditi)
2247 - added tests for this
2248 - it is now possible to make anon-enums by passing 'enum' an
2249 ARRAY ref instead of the $name => @values. Everything else
2251 - added tests for this
2254 - making test for using '+name' on attributes consumed
2255 from a role, it works and makes sense too.
2257 * Moose::Meta::Attribute
2258 - fix handles so that it doesn't return nothing
2259 when the method cannot be found, not sure why
2260 it ever did this originally, this means we now
2261 have slightly better support for AUTOLOADed
2263 - added more delegation tests
2264 - adding ->does method to this so as to better
2265 support traits and their introspection.
2266 - added tests for this
2269 - localizing the Data::Dumper configurations so
2270 that it does not pollute others (RT #33509)
2271 - made ->does a little more forgiving when it is
2272 passed Class::MOP era metaclasses.
2274 0.38 Fri. Feb. 15, 2008
2275 * Moose::Meta::Attribute
2276 - fixed initializer to correctly do
2277 type checking and coercion in the
2279 - added tests for this
2282 - fixed some finicky tests (thanks to konobi)
2284 0.37 Thurs. Feb. 14, 2008
2286 - fixed some details in Moose::init_meta
2287 and its superclass handling (thanks thepler)
2288 - added tests for this (thanks thepler)
2289 - 'has' now dies if you don't pass in name
2291 - added the 'make_immutable' keyword as a shortcut
2294 * Moose::Meta::Class
2295 Moose::Meta::Method::Constructor
2296 Moose::Meta::Attribute
2297 - making (init_arg => undef) work here too
2298 (thanks to nothingmuch)
2300 * Moose::Meta::Attribute
2301 Moose::Meta::Method::Constructor
2302 Moose::Meta::Method::Accessor
2303 - make lazy attributes respect attr initializers (rjbs)
2304 - added tests for this
2306 * Moose::Util::TypeConstraints
2307 Moose::Util::TypeConstraints::OptimizedConstraints
2308 Moose::Meta::TypeConstraints
2309 Moose::Meta::Attribute
2310 Moose::Meta::Method::Constructor
2311 Moose::Meta::Method::Accessor
2312 - making type errors use the
2313 assigned message (thanks to Sartak)
2314 - added tests for this
2316 * Moose::Meta::Method::Destructor
2317 - making sure DESTROY gets inlined properly
2318 with successive DEMOLISH calls (thanks to manito)
2320 * Moose::Meta::Attribute
2321 Moose::Meta::Method::Accessor
2322 - fixed handling of undef with type constraints
2324 - added tests for this
2327 - added &get_all_init_args and &get_all_attribute_values
2328 (thanks to Sartak and nothingmuch)
2330 0.36 Sat. Jan. 26, 2008
2332 Moose::Meta::Attribute
2333 - role type tests now support when roles are
2334 applied to non-Moose classes (found by ash)
2335 - added tests for this (thanks to ash)
2336 - couple extra tests to boost code coverage
2338 * Moose::Meta::Method::Constructor
2339 - improved fix for handling Class::MOP attributes
2340 - added test for this
2342 * Moose::Meta::Class
2343 - handled the add_attribute($attribute_meta_object)
2345 - added test for this
2347 0.35 Tues. Jan. 22, 2008
2348 * Moose::Meta::Method::Constructor
2349 - fix to make sure even Class::MOP attributes
2350 are handled correctly (Thanks to Dave Rolsky)
2351 - added test for this (also Dave Rolsky)
2353 * Moose::Meta::Class
2354 - improved error message on _apply_all_roles,
2355 you should now use Moose::Util::apply_all_roles
2356 and you shouldnt have been using a _ prefixed
2357 method in the first place ;)
2359 0.34 Mon. Jan. 21, 2008
2360 ~~~ more misc. doc. fixes ~~~
2361 ~~ updated copyright dates ~~
2363 Moose is now a postmodern object system :)
2364 - (see the POD for details)
2366 * <<Role System Refactoring>>
2367 - this release contains a major reworking and
2368 cleanup of the role system
2369 - 100% backwards compat.
2370 - Role application now restructured into seperate
2371 classes based on type of applicants
2372 - Role summation (combining of more than one role)
2373 is much cleaner and anon-classes are no longer
2374 used in this process
2375 - new Composite role metaclass
2376 - runtime application of roles to instances
2377 is now more efficient and re-uses generated
2378 classes when applicable
2380 * <<New Role composition features>>
2381 - methods can now be excluded from a given role
2383 - methods can now be aliased to another name (and
2384 still retain the original as well)
2386 * Moose::Util::TypeConstraints::OptimizedConstraints
2387 - added this module (see above)
2389 * Moose::Meta::Class
2390 - fixed the &_process_attribute method to be called
2391 by &add_attribute, so that the API is now correct
2393 * Moose::Meta::Method::Accessor
2394 - fixed bug when passing a list of values to
2395 an accessor would get (incorrectly) ignored.
2396 Thanks to Sartak for finding this ;)
2397 - added tests for this (Sartak again)
2399 * Moose::Meta::Method::Accessor
2400 Moose::Meta::Method::Constructor
2401 Moose::Meta::Attribute
2402 Moose::Meta::TypeConstraint
2403 Moose::Meta::TypeCoercion
2404 - lots of cleanup of such things as:
2406 - type constraint handling
2407 - error handling/messages
2408 (thanks to nothingmuch)
2410 * Moose::Meta::TypeConstraint::Parameterizable
2411 - added this module to support the refactor
2412 in Moose::Meta::TypeConstraint::Parameterized
2414 * Moose::Meta::TypeConstraint::Parameterized
2415 - refactored how these types are handled so they
2416 are more generic and not confined to ArrayRef
2420 - shortened some file names for better VMS support (RT #32381)
2422 0.33 Fri. Dec. 14, 2007
2423 !! Moose now loads 2 x faster !!
2424 !! with new Class::MOP 0.49 !!
2426 ++ new oose.pm module to make command line
2427 Moose-ness easier (see POD docs for more)
2429 * Moose::Meta::Class
2431 - several tweaks to take advantage of the
2432 new method map caching in Class::MOP
2434 * Moose::Meta::TypeConstraint::Parameterized
2435 - allow subtypes of ArrayRef and HashRef to
2436 be used as a container (sartak)
2437 - added tests for this
2438 - basic support for coercion to ArrayRef and
2439 HashRef for containers (sartak)
2440 - added tests for this
2442 * Moose::Meta::TypeCoercion
2443 - coercions will now create subtypes as needed
2444 so you can now add coercions to parameterized
2445 types without having to explictly define them
2446 - added tests for this
2448 * Moose::Meta::Method::Accessor
2449 - allow subclasses to decide whether we need
2450 to copy the value into a new variable (sartak)
2452 0.32 Tues. Dec. 4, 2007
2453 * Moose::Util::TypeConstraints
2454 - fixing how subtype aliases of unions work
2455 they should inherit the parent's coercion
2456 - added tests for this
2457 - you can now define multiple coercions on
2458 a single type at different times instead of
2459 having to do it all in one place
2460 - added tests for this
2462 * Moose::Meta::TypeConstraint
2463 - there is now a default constraint of sub { 1 }
2464 instead of Moose::Util::TypeConstraints setting
2467 * Moose::Meta::TypeCoercion
2468 * Moose::Meta::TypeCoercion::Union
2469 - added the &has_coercion_for_type and
2470 &add_type_coercions methods to support the
2471 new features above (although you cannot add
2472 more type coercions for Union types)
2474 0.31 Mon. Nov. 26, 2007
2475 * Moose::Meta::Attribute
2476 - made the +attr syntax handle extending types with
2477 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2478 now works if the original foo is an ArrayRef.
2479 - added tests for this.
2480 - delegation now works even if the attribute does not
2481 have a reader method using the get_read_method_ref
2482 method from Class::MOP::Attribute.
2483 - added tests for this
2484 - added docs for this
2486 * Moose::Util::TypeConstraints
2487 - passing no "additional attribute info" to
2488 &find_or_create_type_constraint will no longer
2489 attempt to create an __ANON__ type for you,
2490 instead it will just return undef.
2491 - added docs for this
2493 0.30 Fri. Nov. 23, 2007
2494 * Moose::Meta::Method::Constructor
2495 -builder related bug in inlined constructor. (groditi)
2497 * Moose::Meta::Method::Accessor
2498 - genereate unnecessary calls to predicates and refactor
2499 code generation for runtime speed (groditi)
2501 * Moose::Util::TypeConstraints
2502 - fix ClassName constraint to introspect symbol table (mst)
2503 - added more tests for this (mst)
2504 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2505 with work correctly.
2506 - added tests for this
2509 - adding the link to Recipie 11 (written by Sartak)
2510 - adding test for SYNOPSIS code
2513 - New tests for builder bug. Upon instantiation, if an
2514 attribute had a builder, no value and was not lazy the
2515 builder default was not getting run, oops. (groditi)
2517 0.29 Tues. Nov. 13, 2007
2518 * Moose::Meta::Attribute
2519 - Fix error message on missing builder method (groditi)
2521 * Moose::Meta::Method::Accessor
2522 - Fix error message on missing builder method (groditi)
2525 - Add test to check for the correct error message when
2526 builder method is missing (groditi)
2528 0.28 Tues. Nov. 13, 2007
2529 - 0.27 packaged incorrectly (groditi)
2531 0.27 Tues. Nov. 13, 2007
2532 * Moose::Meta::Attribute
2533 - Added support for the new builder option (groditi)
2534 - Added support for lazy_build option (groditi)
2535 - Changed slot initialization for predicate changes (groditi)
2537 * Moose::Meta::Method::Accessor
2538 - Added support for lazy_build option (groditi)
2539 - Fix inline methods to work with corrected predicate
2542 * Moose::Meta::Method::Constructor
2543 - Added support for lazy_build option (groditi)
2546 - tests for builder and lazy_build (groditi)
2548 * fixing some misc. bits in the docs that
2549 got mentioned on CPAN Forum & perlmonks
2552 - fixed how required methods are handled
2553 when they encounter overriden or modified
2554 methods from a class (thanks to confound).
2555 - added tests for this
2557 * Moose::Util::TypeConstraint
2558 - fixed the type notation parser so that
2559 the | always creates a union and so is
2560 no longer a valid type char (thanks to
2561 konobi, mugwump and #moose for working
2563 - added more tests for this
2565 0.26 Thurs. Sept. 27, 2007
2568 * Parameterized Types
2569 We now support parameterized collection types, such as:
2570 ArrayRef[Int] # array or integers
2571 HashRef[Object] # a hash with object values
2572 They can also be nested:
2573 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2574 And work with the type unions as well:
2575 ArrayRef[Int | Str] # array of integers of strings
2577 * Better Framework Extendability
2578 Moose.pm is now "extendable" such that it is now much
2579 easier to extend the framework and add your own keywords
2580 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2581 section of the Moose.pm docs.
2584 In an effort to begin documenting some of the various
2585 details of Moose as well as some common idioms, we have
2586 created Moose::Cookbook::Snacks as a place to find
2587 small (easily digestable) nuggets of Moose code.
2590 ~ Several doc updates/cleanup thanks to castaway ~
2592 - converted build system to use Module::Install instead of
2593 Module::Build (thanks to jrockway)
2596 - added all the meta classes to the immutable list and
2597 set it to inline the accessors
2598 - fix import to allow Sub::Exporter like { into => }
2599 and { into_level => } (perigrin)
2600 - exposed and documented init_meta() to allow better
2601 embedding and extending of Moose (perigrin)
2604 - complete re-organization of the test suite
2605 - added some new tests as well
2606 - finally re-enabled the Moose::POOP test since
2607 the new version of DBM::Deep now works again
2610 * Moose::Meta::Class
2611 - fixed very odd and very nasty recursion bug with
2613 - added tests for this (eilara)
2615 * Moose::Meta::Attribute
2616 Moose::Meta::Method::Constructor
2617 Moose::Meta::Method::Accessor
2618 - fixed issue with overload::Overloaded getting called
2619 on non-blessed items. (RT #29269)
2620 - added tests for this
2622 * Moose::Meta::Method::Accessor
2623 - fixed issue with generated accessor code making
2624 assumptions about hash based classes (thanks to dexter)
2626 * Moose::Coookbook::Snacks
2627 - these are bits of documentation, not quite as big as
2628 Recipes but which have no clear place in the module docs.
2629 So they are Snacks! (horray for castaway++)
2631 * Moose::Cookbook::Recipe4
2632 - updated it to use the new ArrayRef[MyType] construct
2633 - updated the accompanying test as well
2635 +++ Major Refactor of the Type Constraint system +++
2636 +++ with new features added as well +++
2638 * Moose::Util::TypeConstraint
2639 - no longer uses package variable to keep track of
2640 the type constraints, now uses the an instance of
2641 Moose::Meta::TypeConstraint::Registry to do it
2642 - added more sophisticated type notation parsing
2644 - added tests for this
2646 * Moose::Meta::TypeConstraint
2647 - some minor adjustments to make subclassing easier
2648 - added the package_defined_in attribute so that we
2649 can track where the type constraints are created
2651 * Moose::Meta::TypeConstraint::Union
2652 - this is now been refactored to be a subclass of
2653 Moose::Meta::TypeConstraint
2655 * Moose::Meta::TypeCoercion::Union
2656 - this has been added to service the newly refactored
2657 Moose::Meta::TypeConstraint::Union and is itself
2658 a subclass of Moose::Meta::TypeCoercion
2660 * Moose::Meta::TypeConstraint::Parameterized
2661 - added this module (taken from MooseX::AttributeHelpers)
2662 to help construct nested collection types
2663 - added tests for this
2665 * Moose::Meta::TypeConstraint::Registry
2666 - added this class to keep track of type constraints
2668 0.25 Mon. Aug. 13, 2007
2670 - Documentation update to reference Moose::Util::TypeConstraints
2671 under 'isa' in 'has' for how to define a new type
2672 (thanks to shlomif).
2674 * Moose::Meta::Attribute
2675 - required attributes now will no longer accept undef
2676 from the constructor, even if there is a default and lazy
2677 - added tests for this
2678 - default subroutines must return a value which passes the
2680 - added tests for this
2682 * Moose::Meta::Attribute
2683 * Moose::Meta::Method::Constructor
2684 * Moose::Meta::Method::Accessor
2685 - type-constraint tests now handle overloaded objects correctly
2686 in the error message
2687 - added tests for this (thanks to EvanCarroll)
2689 * Moose::Meta::TypeConstraint::Union
2690 - added (has_)hand_optimized_constraint to this class so that
2691 it behaves as the regular Moose::Meta::TypeConstraint does.
2694 - large refactoring of this code
2695 - added several more tests
2696 - tests for subtle conflict resolition issues
2697 added, but not currently running
2700 * Moose::Cookbook::Recipe7
2701 - added new recipe for augment/inner functionality
2703 - added test for this
2706 - a formal definition of roles (still in progress)
2709 - utilities for easier working with Moose classes
2710 - added tests for these
2713 - This contains Moose specific test functions
2714 - added tests for these
2716 0.24 Tues. July 3, 2007
2717 ~ Some doc updates/cleanup ~
2719 * Moose::Meta::Attribute
2720 - added support for roles to be given as parameters
2721 to the 'handles' option.
2722 - added tests and docs for this
2723 - the has '+foo' attribute form now accepts changes to
2724 the lazy option, and the addition of a handles option
2725 (but not changing the handles option)
2726 - added tests and docs for this
2729 - required methods are now fetched using find_method_by_name
2730 so that required methods can come from superclasses
2731 - adjusted tests for this
2733 0.23 Mon. June 18, 2007
2734 * Moose::Meta::Method::Constructor
2735 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2736 * Moose::Meta::Class
2737 - Modify make_immutable to work with the new Class::MOP immutable
2738 mechanism + POD + very basic test (groditi)
2739 * Moose::Meta::Attribute
2740 - Fix handles to use goto() so that caller() comes out properly on
2741 the other side (perigrin)
2743 0.22 Thurs. May 31, 2007
2744 * Moose::Util::TypeConstraints
2745 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2746 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2747 prototypes for functions
2748 - added the ClassName type constraint, this checks for strings
2749 which will respond true to ->isa(UNIVERSAL).
2750 - added tests and docs for this
2751 - subtyping just in name now works correctly by making the
2752 default for where be { 1 }
2753 - added test for this
2755 * Moose::Meta::Method::Accessor
2756 - coerce and lazy now work together correctly, thanks to
2757 merlyn for finding this bug
2758 - tests added for this
2759 - fix reader presedence bug in Moose::Meta::Attribute + tests
2762 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2763 a HASH-ref and missed. This produces better error messages then
2764 having it die cause undef is not a HASH.
2765 - added tests for this
2767 0.21 Thursday, May 2nd, 2007
2769 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2770 - modified unimport to remove super and inner along with the rest
2771 - altered unimport tests to handle this
2774 - altered super export to populate SUPER_SLOT
2776 * Moose::Meta::Class
2777 - altered augment and override modifier application to use *_SLOT
2778 - modified tests for these to unimport one test class each to test
2781 - fixed issue where custom attribute metaclasses
2782 where not handled correctly in roles
2783 - added tests for this
2785 * Moose::Meta::Class
2786 - fixed issue where extending metaclasses with
2787 roles would blow up. Thanks to Aankhen`` for
2788 finding this insidious error, and it's solution.
2790 ~~ lots of spelling and grammer fixes in the docs,
2791 many many thanks to rlb3 and Aankhen for these :)
2793 0.20 Friday, April 6th, 2007
2794 >> I messed up the SKIP logic in one test
2795 so this release is just to fix that.
2798 - 'has' now also accepts an ARRAY ref
2799 to create multiple attrs (see docs)
2800 (thanks to konobi for this)
2801 - added tests and docs
2803 0.19 Thurs. April 5th, 2007
2804 ~~ More documentation updates ~~
2806 * Moose::Util::TypeConstraints
2807 - 'type' now supports messages as well
2808 thanks to phaylon for finding this
2809 - added tests for this
2810 - added &list_all_type_constraints and
2811 &list_all_builtin_type_constraints
2812 functions to facilitate introspection.
2814 * Moose::Meta::Attribute
2815 - fixed regexp 'handles' declarations
2816 to build the list of delegated methods
2817 correctly (and not override important
2818 things like &new) thanks to ashleyb
2820 - added tests and docs for this
2821 - added the 'documentation' attributes
2822 so that you can actually document your
2823 attributes and inspect them through the
2825 - added tests and docs for this
2827 * Moose::Meta::Class
2828 - when loading custom attribute metaclasses
2829 it will first look in for the class in the
2830 Moose::Meta::Attribute::Custom::$name, and
2831 then default to just loading $name.
2832 - added tests and docs for this
2834 * Moose::Meta::TypeConstraint
2835 - type constraints now stringify to their names.
2836 - added test for this
2839 - added tests to assure we work with Module::Refresh
2840 - added stricter test skip logic in the Moose POOP
2841 test, ask Rob Kinyon why.
2842 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2844 0.18 Sat. March 10, 2007
2845 ~~ Many, many documentation updates ~~
2848 - We now use Class::MOP::load_class to
2850 - added tests to show types and subtypes
2851 working with Declare::Constraints::Simple
2852 and Test::Deep as constraint engines.
2855 !! You must have Class::MOP 0.37_001 !!
2856 !! for this developer release to work !!
2858 This release was primarily adding the immutable
2859 feature to Moose. An immutable class is one which
2860 you promise not to alter. When you set the class
2861 as immutable it will perform various bits of
2862 memoization and inline certain part of the code
2863 (constructors, destructors and accessors). This
2864 minimizes (and in some cases totally eliminates)
2865 one of Moose's biggest performance hits. This
2866 feature is not on by default, and is 100% optional.
2867 It has several configurable bits as well, so you
2868 can pick and choose to your specific needs.
2870 The changes involved in this were fairly wide and
2871 highly specific, but 100% backwards compatible, so
2872 I am not going to enumerate them here. If you are
2873 truely interested in what was changed, please do
2876 0.17 Tues. Nov. 14, 2006
2877 * Moose::Meta::Method::Accessor
2878 - bugfix for read-only accessors which
2879 are have a type constraint and lazy.
2880 Thanks to chansen for finding it.
2882 0.16 Tues. Nov. 14, 2006
2884 There are some speed improvements in this release,
2885 but they are only the begining, so stay tuned.
2888 - BUILDALL and DEMOLISHALL no longer get
2889 called unless they actually need to be.
2890 This gave us a signifigant speed boost
2891 for the cases when there is no BUILD or
2892 DEMOLISH method present.
2894 * Moose::Util::TypeConstraints
2895 * Moose::Meta::TypeConstraint
2896 - added an 'optimize_as' option to the
2897 type constraint, which allows for a
2898 hand optimized version of the type
2899 constraint to be used when possible.
2900 - Any internally created type constraints
2901 now provide an optimized version as well.
2903 0.15 Sun. Nov. 5, 2006
2905 This version of Moose *must* have Class::MOP 0.36 in order
2906 to work correctly. A number of small internal tweaks have
2907 been made in order to be compatible with that release.
2909 * Moose::Util::TypeConstraints
2910 - added &unimport so that you can clean out
2911 your class namespace of these exported
2914 * Moose::Meta::Class
2915 - fixed minor issue which occasionally
2916 comes up during global destruction
2918 - moved Moose::Meta::Method::Overriden into
2922 - moved Moose::Meta::Role::Method into
2925 * Moose::Meta::Attribute
2926 - changed how we do type checks so that
2927 we reduce the overall cost, but still
2930 - moved accessor generation methods to
2931 Moose::Meta::Method::Accessor to
2932 conform to the API changes from
2935 * Moose::Meta::TypeConstraint
2936 - changed how constraints are compiled
2937 so that we do less recursion and more
2938 iteration. This makes the type check
2940 - moved Moose::Meta::TypeConstraint::Union
2943 * Moose::Meta::Method::Accessor
2944 - created this from methods formerly found in
2945 Moose::Meta::Attribute
2947 * Moose::Meta::Role::Method
2948 - moved this from Moose::Meta::Role
2950 * Moose::Meta::Method::Overriden
2951 - moved this from Moose::Meta::Class
2953 * Moose::Meta::TypeConstraint::Union
2954 - moved this from Moose::Meta::TypeConstraint
2956 0.14 Mon. Oct. 9, 2006
2958 * Moose::Meta::Attribute
2959 - fixed lazy attributes which were not getting
2960 checked with the type constraint (thanks ashley)
2961 - added tests for this
2962 - removed the over-enthusiastic DWIMery of the
2963 automatic ArrayRef and HashRef defaults, it
2964 broke predicates in an ugly way.
2965 - removed tests for this
2967 0.13 Sat. Sept. 30, 2006
2969 This version of Moose *must* have Class::MOP 0.35 in order
2970 to work correctly. A number of small internal tweaks have
2971 been made in order to be compatible with that release.
2974 - Removed the use of UNIVERSAL::require to be a better
2975 symbol table citizen and remove a dependency
2976 (thanks Adam Kennedy)
2978 **~~ removed experimental & undocumented feature ~~**
2979 - commented out the 'method' and 'self' keywords, see the
2980 comments for more info.
2983 - added a FAQ and WTF files to document frequently
2984 asked questions and common problems
2986 * Moose::Util::TypeConstraints
2987 - added GlobRef and FileHandle type constraint
2988 - added tests for this
2990 * Moose::Meta::Attribute
2991 - if your attribute 'isa' ArrayRef of HashRef, and you have
2992 not explicitly set a default, then make the default DWIM.
2993 This will also work for subtypes of ArrayRef and HashRef
2995 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2996 - new test added for this (thanks to ashley)
2999 - added basic support for runtime role composition
3000 but this is still *highly experimental*, so feedback
3001 is much appreciated :)
3002 - added tests for this
3004 * Moose::Meta::TypeConstraint
3005 - the type constraint now handles the coercion process
3006 through delegation, this is to support the coercion
3009 * Moose::Meta::TypeConstraint::Union
3010 - it is now possible for coercions to be performed
3012 - added tests for this (thanks to konobi)
3014 * Moose::Meta::TypeCoercion
3015 - properly capturing error when type constraint
3019 - Scalar::Util 1.18 is bad on Win32, so temporarily
3020 only require version 1.17 for Win32 and cygwin.
3021 (thanks Adam Kennedy)
3023 0.12 Sat. Sept. 1, 2006
3025 - Recipe5 (subtypes & coercion) has been written
3028 - fixed "bad meta" error message to be more descriptive
3029 - fixed &unimport to not remove the &inner and &super
3030 keywords because we need to localize them.
3031 - fixed number of spelling/grammer issues, thanks Theory :)
3033 **~~ experimental & undocumented feature ~~**
3034 - added the method and self keywords, they are basically
3035 just sugar, and they may not stay around.
3038 - added &dump method to easily Data::Dumper
3041 * Moose::Meta::TypeConstraint
3042 - added the &is_a_type_of method to check both the current
3043 and the subtype of a method (similar to &isa with classes)
3046 - this is now a subclass of Class::MOP::Module, and no longer
3047 creates the _role_meta ugliness of before.
3048 - fixed tests to reflect this change
3050 0.11 Wed. July 12, 2006
3052 - added an &unimport method to remove all the keywords
3053 that Moose will import, simply add 'no Moose' to the
3054 bottom of your class file.
3057 - fixed some test failures caused by a forgotten test
3060 0.10 Thurs. July 6, 2006
3062 - improved error message when loading modules so
3063 it is less confusing when you load a role.
3064 - added &calculate_all_roles method to
3065 Moose::Meta::Class and Moose::Meta::Role
3068 This module has been tested against Class::MOP 0.30
3069 but it does not yet utilize the optimizations
3070 it makes available. Stay tuned for that ;)
3072 0.09_03 Fri. June 23, 2006
3073 ++ DEVELOPER RELEASE ++
3075 - 'use strict' and 'use warnings' are no longer
3076 needed in Moose classes, Moose itself will
3077 turn them on for you.
3078 - added tests for this
3079 - moved code from exported subs to private methods
3080 in Moose::Meta::Class
3083 - as with Moose, strict and warnings are
3084 automatically turned on for you.
3085 - added tests for this
3088 - now handles an edge case for override errors
3089 - added tests for this
3090 - added some more edge case tests
3092 0.09_02 Tues. May 16, 2006
3093 ++ DEVELOPER RELEASE ++
3095 - added prototypes to the exported subs
3099 - added prototypes to the exported subs
3102 * Moose::Util::TypeConstraints
3103 - cleaned up prototypes for the subs
3106 0.09_01 Fri. May 12, 2006
3107 ++ DEVELOPER RELEASE ++
3108 - This release works in combination with
3109 Class::MOP 0.29_01, it is a developer
3110 release because it uses the a new
3111 instance sub-protocol and a fairly
3112 complete Role implementation. It has
3113 not yet been optimized, so it slower
3114 the the previous CPAN version. This
3115 release also lacks good updated docs,
3116 the official release will have updated docs.
3119 - refactored the keyword exports
3120 - 'with' now checks Role validaity and
3121 accepts more than one Role at a time
3122 - 'extends' makes metaclass adjustments as
3123 needed to ensure metaclass compatibility
3126 - refactored the keyword exports
3127 - 'with' now checks Role validaity and
3128 accepts more than one Role at a time
3130 * Moose::Util::TypeConstraints
3131 - added the 'enum' keyword for simple
3132 string enumerations which can be used as
3134 - see example of usage in t/202_example.t
3137 - more careful checking of params to new()
3140 - much work done on the role composition
3141 - many new tests for conflict detection
3142 and composition edge cases
3143 - not enough documentation, I suggest
3144 looking at the tests
3146 * Moose::Meta::Instance
3147 - added new Instance metaclass to support
3148 the new Class::MOP instance protocol
3150 * Moose::Meta::Class
3151 - some small changes to support the new
3153 - some small additions to support Roles
3155 * Moose::Meta::Attribute
3156 - some improvements to the accessor generation code
3158 - some small changes to support the new
3160 - (still somewhat) experimental delegation support
3161 with the 'handles' option
3162 - added several tests for this
3163 - no docs for this yet
3165 0.05 Thurs. April 27, 2006
3167 - keywords are now exported with Sub::Exporter
3168 thanks to chansen for this commit
3169 - has keyword now takes a 'metaclass' option
3170 to support custom attribute meta-classes
3171 on a per-attribute basis
3172 - added tests for this
3173 - the 'has' keyword not accepts inherited slot
3174 specifications (has '+foo'). This is still an
3175 experimental feature and probably not finished
3176 see t/038_attribute_inherited_slot_specs.t for
3177 more details, or ask about it on #moose
3178 - added tests for this
3181 - keywords are now exported with Sub::Exporter
3183 * Moose::Utils::TypeConstraints
3184 - reorganized the type constraint hierarchy, thanks
3185 to nothingmuch and chansen for his help and advice
3187 - added some tests for this
3188 - keywords are now exported with Sub::Exporter
3189 thanks to chansen for this commit
3191 * Moose::Meta::Class
3192 - due to changes in Class::MOP, we had to change
3193 construct_instance (for the better)
3195 * Moose::Meta::Attribute
3196 - due to changes in Class::MOP, we had to add the
3197 initialize_instance_slot method (it's a good thing)
3199 * Moose::Meta::TypeConstraint
3200 - added type constraint unions
3201 - added tests for this
3202 - added the is_subtype_of predicate method
3203 - added tests for this
3205 0.04 Sun. April 16th, 2006
3207 - Roles can now consume other roles
3208 - added tests for this
3209 - Roles can specify required methods now with
3210 the requires() keyword
3211 - added tests for this
3214 - ripped out much of it's guts ,.. much cleaner now
3215 - added required methods and correct handling of
3216 them in apply() for both classes and roles
3217 - added tests for this
3218 - no longer adds a does() method to consuming classes
3219 it relys on the one in Moose::Object
3220 - added roles attribute and some methods to support
3221 roles consuming roles
3223 * Moose::Meta::Attribute
3224 - added support for triggers on attributes
3225 - added tests for this
3226 - added support for does option on an attribute
3227 - added tests for this
3229 * Moose::Meta::Class
3230 - added support for attribute triggers in the
3232 - added tests for this
3235 - Moose no longer creates a subtype for your class
3236 if a subtype of the same name already exists, this
3237 should DWIM in 99.9999% of all cases
3239 * Moose::Util::TypeConstraints
3240 - fixed bug where incorrect subtype conflicts were
3242 - added test for this
3245 - this class can now be extended with 'use base' if
3246 you need it, it properly loads the metaclass class now
3247 - added test for this
3249 0.03_02 Wed. April 12, 2006
3251 - you must now explictly use Moose::Util::TypeConstraints
3252 it no longer gets exported for you automatically
3255 - new() now accepts hash-refs as well as key/value lists
3256 - added does() method to check for Roles
3257 - added tests for this
3259 * Moose::Meta::Class
3260 - added roles attribute along with the add_role() and
3262 - added tests for this
3265 - now adds a does() method to consuming classes
3266 which tests the class's hierarchy for roles
3267 - added tests for this
3269 0.03_01 Mon. April 10, 2006
3271 - added new Role recipe (no content yet, only code)
3274 - added 'with' keyword for Role support
3275 - added test and docs for this
3276 - fixed subtype quoting bug
3277 - added test for this
3281 - added test and docs
3283 * Moose::Util::TypeConstraints
3284 - added the message keyword to add custom
3285 error messages to type constraints
3288 - the meta role to support Moose::Role
3289 - added tests and docs
3291 * Moose::Meta::Class
3292 - moved a number of things from Moose.pm
3293 to here, they should have been here
3296 * Moose::Meta::Attribute
3297 - moved the attribute option macros here
3298 instead of putting them in Moose.pm
3300 * Moose::Meta::TypeConstraint
3301 - added the message attributes and the
3303 - added tests and docs for this
3305 0.03 Thurs. March 30, 2006
3307 - added the Moose::Cookbook with 5 recipes,
3308 describing all the stuff Moose can do.
3311 - fixed an issue with &extends super class loading
3312 it now captures errors and deals with inline
3313 packages correctly (bug found by mst, solution
3315 - added super/override & inner/augment features
3316 - added tests and docs for these
3319 - BUILDALL now takes a reference of the %params
3320 that are passed to &new, and passes that to
3323 * Moose::Util::TypeConstraints
3324 - Type constraints now survive runtime reloading
3325 - added test for this
3327 * Moose::Meta::Class
3328 - fixed the way attribute defaults are handled
3329 during instance construction (bug found by chansen)
3331 * Moose::Meta::Attribute
3332 - read-only attributes now actually enforce their
3333 read-only-ness (this corrected in Class::MOP as
3336 0.02 Tues. March 21, 2006
3338 - many more tests, fixing some bugs and
3340 - &extends now loads the base module with
3342 - added UNIVERSAL::require to the
3345 - each new Moose class will also create
3346 and register a subtype of Object which
3347 correspond to the new Moose class.
3348 - the 'isa' option in &has now only
3349 accepts strings, and will DWIM in
3352 * Moose::Util::TypeConstraints
3353 - added type coercion features
3354 - added tests for this
3355 - added support for this in attributes
3356 and instance construction
3358 - type construction no longer creates a
3359 function, it registers the type instead.
3360 - added several functions to get the
3364 - BUILDALL and DEMOLISHALL were broken
3365 because of a mis-named hash key, Whoops :)
3367 * Moose::Meta::Attribute
3368 - adding support for coercion in the
3369 autogenerated accessors
3371 * Moose::Meta::Class
3372 - adding support for coercion in the
3373 instance construction
3375 * Moose::Meta::TypeConstraint
3376 * Moose::Meta::TypeCoercion
3377 - type constraints and coercions are now
3378 full fledges meta-objects
3380 0.01 Wed. March 15, 2006
3381 - Moooooooooooooooooose!!!