1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 * We no longer unimport strict and warnings when Moose, Moose::Role, or
7 Moose::Exporter are unimported. Doing this was broken if the user
8 explicitly loaded strict and warnings themself, and the results could be
9 generally surprising. We decided that it was best to err on the side of
10 safety and leave these on. Reported by David Wheeler. RT #58310. (Dave
15 * Accessors will now not be inlined if the instance metaclass isn't
18 * Use Perl 5.10's new recursive regex features, if possible, for the type
19 constraint parser (doy, nothingmuch).
23 * Bump our required perl version to 5.8.3, since earlier versions fail tests
24 and aren't easily installable/testable.
26 1.08 Tue, Jun 15, 2010
30 * Refactored a small amount of Moose::Meta::Method::Constructor to allow it
31 to be overridden more easily (doy).
33 1.07 Sat, Jun 05, 2010
37 * Fixed a minor metaclass compatibility fixing bug dealing with immutable
38 classes and non-class metaclass traits (doy, dougdude).
40 1.06 Tue, Jun 01, 2010
44 * Added '0+' overloading in Moose::Meta::TypeConstraint so that we can
45 more uniformly compare type constraints between 'classic' Moose type
46 constraints and MooseX::Types based type constraints.
48 1.05 Thu, May 20, 2010
52 * Packages and modules no longer have methods - this functionality was
53 moved back up into Moose::Meta::Class and Moose::Meta::Role individually
54 (through the Class::MOP::Mixin::HasMethods mixin) (doy).
56 * BUILDALL is now called by Moose::Meta::Class::new_object, rather than by
57 Moose::Object::new. (doy)
61 * strict and warnings are now unimported when Moose, Moose::Role, or
62 Moose::Exporter are unimported. (doy, Adam Kennedy)
64 * Added a 'consumers' method to Moose::Meta::Role for finding all
65 classes/roles which consume the given role. (doy)
69 * Fix has '+attr' in Roles to explode immediately, rather than when the role
70 is applied to a class (t0m).
72 * Fix type constraint validation messages to not include the string 'failed'
73 twice in the same sentence (Florian Ragwitz).
75 * New type constraints will default to being unequal, rather than equal
78 * The tests no longer check for perl's behavior of clobbering $@, which has
79 been fixed in perl-5.13.1 (Florian Ragwitz).
81 * Metaclass compatibility fixing has been completely rewritten, and should
82 be much more robust. (doy)
84 1.04 Thu, May 20, 2010
86 * This release was broken and has been deleted from CPAN shortly after its
89 1.03 Thu, May 06, 2010
93 * Allow specifying required versions when setting superclasses or applying
94 roles (Florian Ragwitz).
96 1.02 Sat, May 01, 2010
100 * Stop the natatime method provided by the native Array trait from returning
101 an exhausted iterator when being called with a callback. (Florian Ragwitz)
103 * Make Moose::Meta::TypeConstraint::Class correctly reject RegexpRefs.
106 * Calling is_subtype_of on a Moose::Meta::TypeConstraint::Class with itself or
107 the class the TC represents as an argument incorrectly returned true. This
108 behavior is correct for is_type_of, not is_subtype_of. (Guillermo Roditi)
110 * Use File::Temp for temp files created during tests. Previously, files were
111 written to the t/ dir, which could cause problems of the user running the
112 tests did not have write access to that directory.. (Chris Weyl, Ævar
115 * Pass role arguments along when applying roles to instances. (doy, lsm)
117 1.01 Fri, Mar 26, 2010
121 * The handles option now also accepts a role type constraint in addition to a
122 plain role name. (Florian Ragwitz)
126 * Record the Sartak/doy debt properly in Changes (perigrin)
128 1.00 Tue, Mar 25, 2010
132 * Moose::Meta::Attribute::Native::Trait::Code no longer creates reader
133 methods by default. (Florian Ragwitz)
137 * Improve various parts of the documentation and fix many typos.
138 (Dave Rolsky, Mateu Hunter, Graham Knop, Robin V, Jay Hannah, Jesse Luehrs)
142 * Paid the $10 debt to doy from 0.80 Sat, Jun 6, 2009 (Sartak)
144 0.99 Mon, Mar 8, 2010
148 * New method find_type_for in Moose::Meta::TypeConstraint::Union, for finding
149 which member of the union a given value validates for. (Cory Watson)
153 * DEMOLISH methods in mutable subclasses of immutable classes are now called
154 properly (Chia-liang Kao, Jesse Luehrs)
158 * Added Moose::Manual::Support that defines the support, compatiblity, and
159 release policies for Moose. (Chris Prather)
161 0.98 Wed, Feb 10, 2010
165 * An internals change in 0.97 broke role application to an instance in some
166 cases. The bug occurred when two different roles were applied to different
167 instances of the same class. (Rafael Kitover)
170 0.97 Tue, Feb 9, 2010
174 * Calling ->reinitialize on a cached anonymous class effectively uncached
175 the metaclass object, causing the metaclass to go out of scope
176 unexpectedly. This could easily happen at a distance by applying a
177 metarole to an anonymous class. (Dave Rolsky).
179 0.96 Sat, Feb 6, 2010
183 * ScalarRef is now a parameterized type. You can now specify a type
184 constraint for whatever the reference points to. (Closes RT#50857)
185 (Michael G. Schwern, Florian Ragwitz)
189 * ScalarRef now accepts references to other references. (Closes RT#50934)
192 0.95 Thu, Feb 4, 2010
196 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method as
197 a delegation option. This allows the code reference to be called as a
198 method on the object. (Florian Ragwitz)
202 * Moose::Object::does no longer checks the entire inheritance tree, since
203 Moose::Meta::Class::does_role already does this. (doy)
205 * Moose::Util::add_method_modifier (and subsequently the sugar functions
206 Moose::before, Moose::after, and Moose::around) can now accept arrayrefs,
207 with the same behavior as lists. Types other than arrayref and regexp
208 result in an error. (Dylan Hardison)
210 0.94 Mon, Jan 18, 2010
214 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
218 * Improved support for anonymous roles by changing various APIs to take
219 Moose::Meta::Role objects as well as role names. This included
221 - Moose::Meta::Class->does_role
222 - Moose::Meta::Role->does_role
223 - Moose::Util::does_role
224 - Moose::Util::apply_all_roles
225 - Moose::Util::ensure_all_roles
226 - Moose::Util::search_class_by_role
228 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
232 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
233 work as long as the accessor method names are explicitly set to valid Perl
234 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
237 0.93_03 Tue, Jan 5, 2010
241 * Portability fixes to our XS code so we compile with 5.8.8 and Visual
242 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
245 0.93_02 Tue, Jan 5, 2010
249 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
250 testers. (Dave Rolsky)
253 0.93_01 Mon, Jan 4, 2010
257 See Moose::Manual::Delta for more details on backwards compatiblity issues.
259 * Role attributes are now objects of the Moose::Meta::Role::Attribute
260 class. (Dave Rolsky).
262 * There were major changes to how metaroles are applied. We now distinguish
263 between metaroles for classes vs those for roles. See the
264 Moose::Util::MetaRole docs for details. (Dave Rolsky)
266 * The old MetaRole API has been deprecated, but will continue to
267 work. However, if you are applying an attribute metaclass role, this may
268 break because of the fact that roles now have an attribute metaclass
271 * Moose::Util::MetaRole::apply_metaclass_roles is now called
272 apply_metaroles. The old name is deprecated. Dave Rolsky>
274 * The unimport subs created by Moose::Exporter now clean up re-exported
275 functions like blessed and confess, unless the caller imported them from
276 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
278 [ENHANCEMENTS AND BUG FIXES]
280 * Changed the Str constraint to accept magic lvalue strings like one gets from
281 substr et al, again. (sorear)
283 * Sped up the type constraint parsing regex. (Sam Vilain)
285 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
288 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
289 easier testing of TypeConstraints from the command line. (perigrin)
291 * Added a with_immutable test function to Test::Moose, to run a block of tests
292 with and without certain classes being immutable. (doy)
294 * We now use Module::Install extensions explicitly to avoid confusing errors
295 if they're not installed. We use Module::Install::AuthorRequires to stop
296 test extraction and general failures if you don't have the author side
297 dependencies installed.
299 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
300 #51791. (Amir E. Aharoni)
303 0.93 Thu, Nov 19, 2009
305 - Calling $object->new() is no longer deprecated, and no longer
309 - The get_attribute_map method is now deprecated. (Dave Rolsky)
311 * Moose::Meta::Method::Delegation
312 - Preserve variable aliasing in @_ for delegated methods, so that
313 altering @_ affects the passed value. (doy)
315 * Moose::Util::TypeConstraints
316 - Allow array refs for non-anonymous form of enum and duck_type, not
317 just anonymous. The non-arrayref forms may be removed in the
319 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
320 - Properly document Int being a subtype of Str. (doy)
323 - Moose::Exporter using modules can now export their functions to the
324 main package. This applied to Moose and Moose::Role, among
325 others. (nothingmuch)
327 * Moose::Meta::Attribute
328 - Don't remove attribute accessors we never installed, during
329 remove_accessors. (doy)
331 * Moose::Meta::Attribute::Native::Trait::Array
332 - Don't bypass prototype checking when calling List::Util::first, to
333 avoid a segfault when it is called with a non-code argument. (doy)
335 * Moose::Meta::Attribute::Native::Trait::Code
336 - Fix passing arguments to code execute helpers. (doy)
339 - add an additional 'init_meta_params' option to setup_import_methods,
340 which takes a list of keys to look for in the import argument list,
341 and passes those key/value pairs into init_meta. (doy)
343 0.92 Tue, Sep 22, 2009
344 * Moose::Util::TypeConstraints
345 - added the match_on_type operator (Stevan)
346 - added tests and docs for this (Stevan)
349 - Metaclass compat fixing should already happen recursively, there's no
350 need to explicitly walk up the inheritance tree. (doy)
352 * Moose::Meta::Attribute
353 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
355 0.91 Thu, Sep 17, 2009
357 - Don't import any functions, in order to avoid polluting our namespace
358 with things that can look like methods (blessed, try, etc)
361 * Moose::Meta::Method::Constructor
362 - The generated code needs to called Scalar::Util::blessed by its
363 fully-qualified name or else Perl can interpret the call to blessed as
364 an indirect method call. This broke Search::GIN, which in turn broke
365 KiokuDB. (nothingmuch)
367 0.90 Tue, Sep 15, 2009
368 * Moose::Meta::Attribute::Native::Trait::Counter
369 * Moose::Meta::Attribute::Native::Trait::String
370 - For these two traits, an attribute which did not explicitly provide
371 methods to handles magically ended up delegating *all* the helper
372 methods. This has been removed. You must be explicit in your handles
373 declaration for all Native Traits. (Dave Rolsky)
376 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
377 sure to rethrow its error message. However, we also localize $@ before
378 this so that if all the DEMOLISH methods success, the value of $@ will
379 be preserved. (nothingmuch and Dave Rolsky)
380 - We now also localize $? during object destruction. (nothingmuch and
382 - The handling of DEMOLISH methods was broken for immutablized classes,
383 which were not receiving the value of
384 Devel::GlobalDestruction::in_global_destruction.
385 - These two fixes address some of RT #48271, reported by Zefram.
386 - This is all now documented in Moose::Manual::Construction.
387 - Calling $object->new() is now deprecated. A warning will be
391 - Added more hooks to customize how roles are applied. The role
392 summation class, used to create composite roles, can now be changed
393 and/or have meta-roles applied to it. (rafl)
394 - The get_method_list method no longer explicitly excludes the "meta"
395 method. This was a hack that has been replaced by better hacks. (Dave
398 * Moose::Meta::Method::Delegation
399 - fixed delegated methods to make sure that any modifiers attached to
400 the accessor being delegated on will be called (Stevan)
401 - added tests for this (Stevan)
404 - Moose no longer warns when a class that is being made immutable has
405 mutable ancestors. While in theory this is a good thing to warn about,
406 we found so many exceptions to this that doing this properly became
409 0.89_02 Thu, Sep 10, 2009
410 * Moose::Meta::Attribute::Native
411 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
413 * Moose::Meta::Attribute::Native::Trait::Array
414 - Added a number of functions from List::Util and List::MoreUtils,
415 including reduce, shuffle, uniq, and natatime. (doy)
418 - This module will now generate an init_meta method for your exporting
419 class if you pass it options for
420 Moose::Util::MetaRole::apply_metaclass_roles or
421 apply_base_class_roles. This eliminates a lot of repetitive
422 boilerplate for typical MooseX modules. (doy).
423 - Documented the with_meta feature, which is a replacement for
424 with_caller. This feature was added by josh a while ago.
425 - The with_caller feature is now deprecated, but will not issue a
426 warning yet. (Dave Rolsky)
427 - If you try to wrap/export a subroutine which doesn't actually exist,
428 Moose::Exporter will warn you about this. (doy)
430 * Moose::Meta::Role::Application::ToRole
431 - When a role aliased a method from another role, it was only getting
432 the new (aliased) name, not the original name. This differed from what
433 happens when a class aliases a role's methods. If you _only_ want the
434 aliased name, make sure to also exclue the original name. (Dave
437 0.89_01 Wed Sep 2, 2009
438 * Moose::Meta::Attribute
439 - Added the currying syntax for delegation from AttributeHelpers to the
440 existing delegation API. (hdp)
442 * Moose::Meta::Attribute::Native
443 - We have merged the functionality of MooseX::AttributeHelpers into the
444 Moose core with some API tweaks. You can continue to use
445 MooseX::AttributeHelpers, but it will not be maintained except
446 (perhaps) for critical bug fixes in the future. See
447 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
450 * Moose::Error::Croak
451 * Moose::Error::Confess
452 - Clarify documentation on how to use different error-throwing
453 modules. (Curtis Jewell)
456 - Correct POD for builder to point to Recipe8, not 9. (gphat)
459 - When a nonexistent sub name is passed to as_is, with_caller, or
460 with_meta, throw a warning and skip the exporting, rather than
461 installing a broken sub. (doy)
464 - Moose now warns if you call C<make_immutable> for a class with mutable
467 0.89 Thu Aug 13, 2009
468 * Moose::Manual::Attributes
469 - Clarify "is", include discussion of "bare". (Sartak)
471 * Moose::Meta::Role::Method::Conflicting
472 * Moose::Meta::Role::Application::ToClass
473 - For the first set of roles involved in a conflict, report all
474 unresolved method conflicts, not just the first method. Fixes #47210
475 reported by Ovid. (Sartak)
477 * Moose::Meta::TypeConstraint
478 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
481 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
483 - Allow specifying role options (alias, excludes, MXRP stuff) in the
484 arrayref passed to "use Moose -traits" (doy)
487 - Add functions meta_class_alias and meta_attribute_alias for creating
488 aliases for class and attribute metaclasses and metatraits. (doy)
490 * Moose::Meta::Attribute
491 * Moose::Meta::Method::Accessor
492 - A trigger now receives the old value as a second argument, if the
493 attribute had one. (Dave Rolsky)
495 * Moose::Meta::Method::Constructor
496 - Fix a bug with $obj->new when $obj has stringify overloading.
497 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
498 - However, we will probably deprecate $obj->new, so please don't start
499 using it for new code!
501 * Moose::Meta::Role::Application
502 * Moose::Meta::Role::Application::RoleSummation
503 - Rename alias and excludes to -alias and -excludes (but keep the old
504 names for now, for backcompat) (doy)
506 0.88 Fri Jul 24, 2009
507 * Moose::Manual::Contributing
508 - Re-write the Moose::Manual::Contributing document to reflect
509 the new layout and methods of work for the Git repository. All
510 work now should be done in topic branches and reviewed by a
511 core committer before being applied to master. All releases
512 are done by a cabal member and merged from master to
513 stable. This plan was devised by Yuval, blame him. (perigrin)
516 - Create metaclass attributes for the different role application
519 * Moose::Util::MetaRole
520 - Allow applying roles to a meta role's role application
523 * Moose::Meta::Attribute
524 - Add weak_ref to allowed options for "has '+foo'" (mst)
526 * Moose::Meta::Method::Accessor
527 - No longer uses inline_slot_access in accessors, to support
528 non-lvalue-based meta instances. (sorear)
531 * Moose::Meta::Method::Delegation
532 - Once again allow class names as well as objects for
533 delegation. This was changed in 0.86.
536 * Moose::Meta::Class::Immutable::Trait
537 - Fixes to work with the latest Class::MOP.
539 * Moose::Meta::Method::Delegation
540 - Delegation now dies with a more useful error message if the
541 attribute's accessor returns something defined but
544 0.85 Fri, Jun 26, 2009
545 * Moose::Meta::Attribute
546 - The warning for 'no associated methods' is now split out into
547 the _check_associated_methods method, so that extensions can
548 safely call 'after install_accessors => ...'. This fixes a
549 warning from MooseX::AttributeHelpers. (hdp)
551 0.84 Fri, Jun 26, 2009
553 - has now sets definition_context for attributes defined in
556 * Moose::Meta::Attribute
557 - When adding an attribute to a metaclass, if the attribute has
558 no associated methods, it will give a deprecation
560 - Methods generated by delegation were not being added to
561 associated_methods. (hdp)
562 - Attribute accessors (reader, writer, accessor, predicate,
563 clearer) now warn if they overwrite an existing method. (doy)
564 - Attribute constructors now warn very noisily about unknown (or
565 misspelled) arguments
567 * Moose::Util::TypeConstraints
568 - Deprecated the totally useless Role type name, which just
569 checked if $object->can('does'). Note that this is _not_ the
570 same as a type created by calling role_type('RoleName').
572 * Moose::Util::TypeConstraints
573 * Moose::Meta::TypeConstraint::DuckType
574 - Reify duck type from a regular subtype into an actual class
576 - Document this because Sartak did all my work for me
579 * Moose::Meta::Attribute
580 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
581 it is just a list of methods (Sartak)
584 - The get_*_method_modifiers methods would die if the role had
585 no modifiers of the given type (Robert Buels).
587 0.83 Tue, Jun 23, 2009
589 - Fix _construct_instance not setting the special __MOP__ object
590 key in instances of anon classes. (doy)
592 0.82 Sun, Jun 21, 2009
593 * Moose::Manual::Types
594 - Mention MooseX::Types early to avoid users falling down the
595 string parsing rathole (mst)
597 * Moose::Manual::MooseX
598 - Add warnings about class-level extensions and mention considering
599 using plain objects instead
601 0.81 Sun, Jun 7, 2009
602 * Bumped our Class::MOP prereq to the latest version (0.85), since
605 0.80 Sat, Jun 6, 2009
607 - Add FAQ about the coercion change from 0.76 because it came up
608 three times today (perigrin)
609 - Win doy $10 dollars because Sartak didn't think anybody
610 would document this fast enough (perigrin)
612 * Moose::Meta::Method::Destructor
613 - Inline a DESTROY method even if there are no DEMOLISH methods
614 to prevent unnecessary introspection in
615 Moose::Object::DEMOLISHALL
618 - A role's required methods are now represented by
619 Moose::Meta::Role::Method::Required objects. Conflicts are now
620 represented by Moose::Meta::Role::Method::Conflicting
621 objects. The benefit for end-users in that unresolved
622 conflicts generate different, more instructive, errors,
623 resolving Ovid's #44895. (Sartak)
626 - Improve the error message of "extends" as suggested by Adam
627 Kennedy and confound (Sartak)
628 - Link to Moose::Manual::Roles from Moose::Role as we now have
629 excellent documentation (Adam Kennedy)
632 - Update test suite for subname change in Class::MOP
634 - Add TODO test for infinite recursion in Moose::Meta::Class
637 0.79 Wed, May 13, 2009
639 - More fixes for Win32 problems. Reported by Robert Krimen.
642 - The DEMOLISHALL method could still blow up in some cases
643 during global destruction. This method has been made more
644 resilient in the face of global destruction's random garbage
648 - If you "also" a module that isn't loaded, the error message
649 now acknowledges that (Sartak)
652 - When your ->meta method does not return a Moose::Meta::Class,
653 the error message gave the wrong output (Sartak)
655 0.78 Tue, May 12, 2009
656 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
657 - Merged these documents into what is now Moose::Manual::FAQ
660 - Moved to Moose::Manual::Unsweetened
662 * Moose::Cookbook::Basics::Recipes 9-12
663 - Renamed to be 8-11, since recipe 8 did not exist
666 - Make Moose::Exporter import strict and warnings into packages
670 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
671 methods during global destruction (doy)
674 * Moose::Meta::Role::Application::ToClass
675 - Track the Role::Application objects created during class-role
679 - Fix metaclass incompatibility errors when extending a vanilla perl
680 class which isa Moose class with a metaclass role applied (t0m)
683 - Add a role-combination hook, _role_for_combination, for the
684 benefit of MooseX::Role::Parameterized (Sartak)
687 - Some tests were failing on Win32 because they explicit checked
688 warning output for newlines. Reported by Nickolay Platonov.
690 0.77 Sat, May 2, 2009
692 - Add explicit use of Devel::GlobalDestruction and Sub::Name
696 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
697 or not we are currently in global destruction (doy)
698 - Add explicit use of Devel::GlobalDestruction and Sub::Name
701 * Moose::Cookbook::FAQ
702 - Reworked much of the existing content to be more useful to
703 modern Moose hackers (Sartak)
706 - Depend on Class::MOP 0.83 instead of 0.82_01.
708 0.76 Mon, April 27, 2009
709 * Moose::Meta::TypeConstraint
710 - Do not run coercions in coerce() if the value already passes the type
713 * Moose::Meta::TypeConstraint::Class
714 - In validation error messages, specifically say that the value is not
715 an instance of the class. This should alleviate some frustrating
716 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
718 * Moose::Meta::Role::Application::ToClass
719 - Revert the class-overrides-role warning in favor of a solution outside
720 of the Moose core (Sartak)
723 - Make Test::Output optional again, since it's only used in a few files
726 0.75_01 Thu, April 23, 2009
727 * Moose::Meta::Role::Application::ToClass
728 - Moose now warns about each class overriding methods from roles it
732 - Warnings tests have standardized on Test::Output which is now an
733 unconditionally dependency (Sartak)
736 - Changes to immutabilization to work with Class::MOP 0.82_01+.
738 0.75 Mon, April 20, 2009
741 - Move validation of not inheriting from roles from Moose::extends to
742 Moose::Meta::Class::superclasses (doy)
745 - add ensure_all_roles() function to encapsulate the common "apply this
746 role unless the object already does it" pattern (hdp)
749 - Users can now select a different metaclass with the "-metaclass"
750 option to import, for classes and roles (Sartak)
753 - Make method_metaclass an attr so that it can accept a metarole
756 0.74 Tue, April 7, 2009
758 * Moose::Meta::Method::Destructor
759 - Include stack traces in the deprecation warnings.
763 - Removed the long-deprecated _apply_all_roles method.
765 * Moose::Meta::TypeConstraint
766 - Removed the long-deprecated union method.
769 0.73_02 Mon, April 6, 2009
770 * More deprecations and renamings
771 - Moose::Meta::Method::Constructor
772 - initialize_body => _initialize_body (this is always called
773 when an object is constructed)
776 - The DEMOLISHALL method could throw an exception during global
777 destruction, meaning that your class's DEMOLISH methods would
778 not be properly called. Reported by t0m.
780 * Moose::Meta::Method::Destructor
781 - Destructor inlining was totally broken by the change to the
782 is_needed method in 0.72_01. Now there is a test for this
783 feature, and it works again.
786 - Bold the word 'not' in the POD for find_meta (t0m)
788 0.73_01 Sun, April 5, 2009
790 - Call user_class->meta in fewer places, with the eventual goal
791 of allowing the user to rename or exclude ->meta
792 altogether. Instead uses Class::MOP::class_of. (Sartak)
794 * Moose::Meta::Method::Accessor
795 - If an attribute had a lazy default, and that value did not
796 pass the attribute's type constraint, it did not get the
797 message from the type constraint, instead using a generic
798 message. Test provided by perigrin.
800 * Moose::Util::TypeConstraints
801 - Add duck_type keyword. It's sugar over making sure an object
802 can() a list of methods. This is easier than jrockway's
803 suggestion to fork all of CPAN. (perigrin)
804 - add tests and documentation (perigrin)
807 - Document the fact that init_meta() returns the target class's
808 metaclass object. (hdp)
810 * Moose::Cookbook::Extending::Recipe1
811 * Moose::Cookbook::Extending::Recipe2
812 * Moose::Cookbook::Extending::Recipe3
813 * Moose::Cookbook::Extending::Recipe4
814 - Make init_meta() examples explicitly return the metaclass and
815 point out this fact. (hdp)
817 * Moose::Cookbook::Basics::Recipe12
818 - A new recipe, creating a custom meta-method class.
820 * Moose::Cookbook::Meta::Recipe6
821 - A new recipe, creating a custom meta-method class.
824 * Moose::Meta::Method::Constructor
825 - Attribute triggers no longer receive the meta-attribute object
826 as an argument in any circumstance. Previously, triggers
827 called during instance construction were passed the
828 meta-attribute, but triggers called by normal accessors were
829 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
831 * Moose::Manual::Attributes
832 - Remove references to triggers receving the meta-attribute object as an
835 * Moose::Cookbook::FAQ
836 - Remove recommendation for deprecated Moose::Policy and
837 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
840 * Many methods have been renamed with a leading underscore, and a
841 few have been deprecated entirely. The methods with a leading
842 underscore are consider "internals only". People writing
843 subclasses or extensions to Moose should feel free to override
844 them, but they are not for "public" use.
847 - check_metaclass_compatibility => _check_metaclass_compatibility
849 - Moose::Meta::Method::Accessor
850 - initialize_body => _initialize_body (this is always called
851 when an object is constructed)
852 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
854 - Moose::Meta::Method::Constructor
855 - initialize_body => _initialize_body (this is always called
856 when an object is constructed)
857 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
858 - attributes => _attributes (now inherited from parent)
859 - meta_instance => _meta_instance (now inherited from parent)
862 - alias_method is deprecated. Use add_method
864 0.73 Fri, March 29, 2009
865 * No changes from 0.72_01.
867 0.72_01 Thu, March 26, 2009
869 - Almost every module has complete API documentation. A few
870 methods (and even whole classes) have been intentionally
871 excluded pending some rethinking of their APIs.
873 * Moose::Util::TypeConstraints
874 - Calling subtype with a name as the only argument is now an
875 exception. If you want an anonymous subtype do:
877 my $subtype = subtype as 'Foo';
879 * Moose::Cookbook::Meta::Recipe7
880 - A new recipe, creating a custom meta-instance class.
882 * Moose::Cookbook::Basics::Recipe5
883 - Fix various typos and mistakes. Includes a patch from Radu
886 * Moose::Cookbook::Basics::Recipe9
887 - Link to this recipe from Moose.pm's builder blurb
890 - When wrapping a function with a prototype, Moose::Exporter now
891 makes sure the wrapped function still has the same
892 prototype. (Daisuke Maki)
894 * Moose::Meta::Attribute
895 - Allow a subclass to set lazy_build for an inherited
899 - Explicitly depend on Data::OptList. We already had this dependency
900 via Sub::Exporter, but since we're using it directly we're
901 better off with it listed. (Sartak)
903 * Moose::Meta::Method::Constructor
904 - Make it easier to subclass the inlining behaviour. (Ash
907 * Moose::Manual::Delta
908 - Details significant changes in the history of Moose, along
909 with recommended workarounds.
911 * Moose::Manual::Contributing
912 - Contributor's guide to Moose.
914 * Moose::Meta::Method::Constructor
915 - The long-deprecated intialize_body method has been removed
916 (yes, spelled like that).
918 * Moose::Meta::Method::Destructor
919 - This is_needed method is now always a class method.
922 - Changes to the internals of how make_immutable works to match
923 changes in latest Class::MOP.
925 0.72 Mon, February 23, 2009
927 * Moose::Meta::Method::Constructor
928 - A mutable class accepted Foo->new(undef) without complaint,
929 while an immutable class would blow up with an unhelpful
930 error. Now, in both cases we throw a helpful error
931 instead. Reported by doy.
933 0.71_01 Sun, February 22, 2009
935 - Hopefully fixed some POD errors in a few recipes that caused
936 them to display weird on search.cpan.org.
938 * Moose::Util::TypeConstraints
939 - Calling type or subtype without the sugar helpers (as, where,
940 message) is now deprecated.
941 - The subtype function tried hard to guess what you meant, but
942 often got it wrong. For example:
944 my $subtype = subtype as 'ArrayRef[Object]';
946 This caused an error in the past, but now works as you'd
950 - Make sure Moose.pm is loaded before calling
951 Moose->throw_error. This wasn't normally an issue, but could
952 bite you in weird cases.
954 0.71 Thu, February 19, 2009
955 * Moose::Cookbook::Basics::Recipe11
956 - A new recipe which demonstrates the use of BUILDARGS and
959 * Moose::Cookbook::Roles::Recipe3
960 - A new recipe, applying a role to an object instance. (Dave
964 - Allow overriding specific keywords from "also" packages. (doy)
967 - Replace hardcoded cookbook tests with Test::Inline to ensure
968 the tests match the actual code in the recipes. (Dave Rolsky)
971 - Working on the above turned up a number of little bugs in the
972 recipe code. (Dave Rolsky)
974 * Moose::Util::TypeConstraints::Optimized
975 - Just use Class::MOP for the optimized ClassName check. (Dave
978 0.70 Sat, February 14, 2009
979 * Moose::Util::TypeConstraints
980 - Added the RoleName type (stevan)
981 - added tests for this (stevan)
983 * Moose::Cookbook::Basics::Recipe3
984 - Updated the before qw[left right] sub to be a little more
985 defensive about what it accepts (stevan)
986 - added more tests to t/000_recipies/basics/003_binary_tree.t
990 - We now always call DEMOLISHALL, even if a class does not
991 define DEMOLISH. This makes sure that method modifiers on
992 DEMOLISHALL work as expected. (doy)
993 - added tests for this (EvanCarroll)
995 * Moose::Util::MetaRole
996 - Accept roles for the wrapped_method_metaclass (rafl)
997 - added tests for this (rafl)
999 * Moose::Meta::Attribute
1000 - We no longer pass the meta-attribute object as a final
1001 argument to triggers. This actually changed for inlined code a
1002 while back, but the non-inlined version and the docs were
1006 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
1007 they require 0.11. (Dave Rolsky)
1010 - Lots of small changes to the manual, cookbook, and
1011 elsewhere. These were based on feedback from various
1012 users, too many to list here. (Dave Rolsky)
1014 0.69 Thu, February 12, 2009
1016 - Make some keyword errors use throw_error instead of croak
1017 since Moose::Exporter wraps keywords now (Sartak)
1019 * Moose::Cookbook::*
1020 - Revised every recipe for style and clarity. Also moved some
1021 documentation out of cookbook recipes and into Moose::Manual
1022 pages. This work was funded as part of the Moose docs grant
1023 from TPF. (Dave Rolsky)
1025 * Moose::Meta::Method::Delegation
1026 - If the attribute doing the delegation was not populated, the
1027 error message did not specify the attribute name
1030 0.68 Wed, February 4, 2009
1032 - Many spelling, typo, and formatting fixes by daxim.
1034 * Moose::Manual::Attributes
1035 - The NAME section in the POD used "Attribute" so search.cpan
1036 didn't resolve links from other documents properly.
1038 * Moose::Meta::Method::Overriden
1039 - Now properly spelled as Overridden. Thanks to daxim for
1042 0.67 Tue, February 3, 2009
1044 - Lots of little typo fixes and a few clarifications. Several
1045 pages didn't have proper titles, and so weren't actually
1046 visible on search.cpan.org. Thanks to hanekomu for a variety
1047 of fixes and formatting improvements.
1049 0.66 Tue, February 3, 2009
1051 - This is a brand new, extensive manual for Moose. This aims to
1052 provide a complete introduction to all of Moose's
1053 features. This work was funded as part of the Moose docs grant
1054 from TPF. (Dave Rolsky)
1056 * Moose::Meta::Attribute
1057 - Added a delegation_metaclass method to replace a hard-coded
1058 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
1060 * Moose::Util::TypeConstraints
1061 - If you created a subtype and passed a parent that Moose didn't
1062 know about, it simply ignored the parent. Now it automatically
1063 creates the parent as a class type. This may not be what you
1064 want, but is less broken than before. (Dave Rolsky)
1066 * Moose::Util::TypeConstraints
1067 - This module tried throw errors by calling Moose->throw_error,
1068 but it did not ensure that Moose was loaded first. This could
1069 cause very unhelpful errors when it tried to throw an error
1070 before Moose was loaded. (Dave Rolsky)
1072 * Moose::Util::TypeConstraints
1073 - You could declare a name with subtype such as "Foo!Bar" that
1074 would be allowed, but if you used it in a parameterized type
1075 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
1076 vetting on names created via the sugar functions, so that they
1077 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
1079 0.65 Thu, January 22, 2008
1080 * Moose and Moose::Meta::Method::Overridden
1081 - If an overridden method called super(), and then the
1082 superclass's method (not overridden) _also_ called super(),
1083 Moose went into an endless recursion loop. Test provided by
1084 Chris Prather. (Dave Rolsky)
1086 * Moose::Meta::TypeConstraint
1087 - All methods are now documented. (gphat)
1089 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
1090 - Fixed some bogus failures that occurred because we tried to
1091 validate filesystem paths in a very ad-hoc and
1092 not-quite-correct way. (Dave Rolsky)
1094 * Moose::Util::TypeConstraints
1095 - Added maybe_type to exports. See docs for details. (rjbs)
1098 - Added Moose::Util::TypeConstraints to the SEE ALSO
1102 - Methods created via an attribute can now fulfill a "requires"
1103 declaration for a role. (nothingmuch)
1105 * Moose::Meta::Method::*
1106 - Stack traces from inlined code will now report its line and
1107 file as being in your class, as opposed to in Moose
1108 guts. (nothingmuch).
1110 0.64 Wed, December 31, 2008
1111 * Moose::Meta::Method::Accessor
1112 - Always inline predicate and clearer methods (Sartak)
1114 * Moose::Meta::Attribute
1115 - Support for parameterized traits (Sartak)
1116 - verify_against_type_constraint method to avoid duplication
1117 and enhance extensibility (Sartak)
1119 * Moose::Meta::Class
1120 - Tests (but no support yet) for parameterized traits (Sartak)
1123 - Require Class::MOP 0.75+, which has the side effect of making
1124 sure we work on Win32. (Dave Rolsky)
1126 0.63 Mon, December 8, 2008
1127 * Moose::Unsweetened
1128 - Some small grammar tweaks and bug fixes in non-Moose example
1131 0.62_02 Fri, December 5, 2008
1132 * Moose::Meta::Role::Application::ToClass
1133 - When a class does not provide all of a role's required
1134 methods, the error thrown now mentions all of the missing
1135 methods, as opposed to just the first one found. Requested by
1136 Curtis Poe (RT #41119). (Dave Rolsky)
1138 * Moose::Meta::Method::Constructor
1139 - Moose will no longer inline a constructor for your class
1140 unless it inherits its constructor from Moose::Object, and
1141 will warn when it doesn't inline. If you want to force
1142 inlining anyway, pass "replace_constructor => 1" to
1143 make_immutable. Addresses RT #40968, reported by Jon
1144 Swartz. (Dave Rolsky)
1145 - The quoting of default values could be broken if the default
1146 contained a single quote ('). Now we use quotemeta to escape
1147 anything potentially dangerous in the defaults. (Dave Rolsky)
1149 0.62_01 Wed, December 3, 2008
1151 - use the method->execute API for BUILDALL
1152 and DEMOLISHALL (Sartak)
1154 * Moose::Util::TypeConstraints
1155 - We now make all the type constraint meta classes immutable
1156 before creating the default types provided by Moose. This
1157 should make loading Moose a little faster. (Dave Rolsky)
1159 0.62 Wed November 26, 2008
1160 * Moose::Meta::Role::Application::ToClass
1161 Moose::Meta::Role::Application::ToRole
1162 - fixed issues where excluding and aliasing the
1163 same methods for a single role did not work
1164 right (worked just fine with multiple
1166 - added test for this (stevan)
1168 * Moose::Meta::Role::Application::RoleSummation
1169 - fixed the error message when trying to compose
1170 a role with a role it excludes (Sartak)
1173 - Catch another case where recursion caused the value
1174 of $CALLER to be stamped on (t0m)
1175 - added test for this (t0m)
1178 - Remove the make_immutable keyword, which has been
1179 deprecated since April. It breaks metaclasses that
1180 use Moose without no Moose (Sartak)
1182 * Moose::Meta::Attribute
1183 - Removing an attribute from a class now also removes delegation
1184 (handles) methods installed for that attribute (t0m)
1185 - added test for this (t0m)
1187 * Moose::Meta::Method::Constructor
1188 - An attribute with a default that looked like a number (but was
1189 really a string) would accidentally be treated as a number
1190 when the constructor was made immutable (perigrin)
1191 - added test for this (perigrin)
1194 - create method for constructing a role
1195 dynamically (Sartak)
1196 - added test for this (Sartak)
1197 - anonymous roles! (Sartak)
1198 - added test for this (Sartak)
1201 - more consistent error messages (Sartak)
1203 * Moose::Cookbook::Roles::Recipe1
1204 - attempt to explain why a role that just requires
1205 methods is useful (Sartak)
1207 0.61 Fri November 7, 2008
1208 * Moose::Meta::Attribute
1209 - When passing a role to handles, it will be loaded if necessary
1212 * Moose::Meta::Class
1213 - Method objects returned by get_method (and other methods)
1214 Could end up being returned without an associated_metaclass
1215 attribute. Removing get_method_map, which is provided by
1216 Class::MOP::Class, fixed this. The Moose version did nothing
1217 different from its parent except introduce a bug. (Dave Rolsky)
1218 - added tests for this (jdv79)
1221 - Added a $VERSION to all .pm files which didn't have one. Fixes
1222 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1224 * Moose::Cookbook::Basics::Recipe4
1225 * Moose::Cookbook::Basics::Recipe6
1226 - These files had spaces on the first line of the SYNOPSIS, as
1227 opposed to a totally empty line. According to RT #40432, this
1228 confuses POD parsers. (Dave Rolsky)
1230 0.60 Fri October 24, 2008
1232 - Passing "-traits" when loading Moose caused the Moose.pm
1233 exports to be broken. Reported by t0m. (Dave Rolsky)
1234 - Tests for this bug. (t0m)
1237 - Change resolve_metaclass alias to use the new
1238 load_first_existing_class function. This makes it a lot
1239 simpler, and also around 5 times faster. (t0m)
1240 - Add caching to resolve_metaclass_alias, which gives an order
1241 of magnitude speedup to things which repeatedly call the
1242 Moose::Meta::Attribute->does method, notably MooseX::Storage
1245 * Moose::Util::TypeConstraint
1246 - Put back the changes for parameterized constraints that
1247 shouldn't have been removed in 0.59. We still cannot parse
1248 them, but MooseX modules can create them in some other
1249 way. See the 0.58 changes for more details. (jnapiorkowski)
1250 - Changed the way subtypes are created so that the job is
1251 delegated to a type constraint parent. This clears up some
1252 hardcoded checking and should allow correct subtypes of
1253 Moose::Meta::Type::Constraint. Don't rely on this new API too
1254 much (create_child_type) because it may go away in the
1255 future. (jnapiorkowski)
1257 * Moose::Meta::TypeConstraint::Union
1258 - Type constraint names are sorted as strings, not numbers.
1261 * Moose::Meta::TypeConstraint::Parameterizable
1262 - New parameterize method. This can be used as a factory method
1263 to make a new type constraint with a given parameterized
1264 type. (jnapiorkowski)
1265 - added tests (jnapiorkowski)
1267 0.59 Tue October 14, 2008
1269 - Add abridged documentation for builder/default/initializer/
1270 predicate, and link to more details sections in
1271 Class::MOP::Attribute. (t0m)
1273 * Moose::Util::TypeConstraints
1274 - removed prototypes from all but the &-based stuff (mst)
1276 * Moose::Util::TypeConstraints
1277 - Creating a anonymous subtype with both a constraint and a
1278 message failed with a very unhelpful error, but should just
1279 work. Reported by t0m. (Dave Rolsky)
1282 - Some tests that used Test::Warn if it was available failed
1283 with older versions of Test::Warn. Reported by Fayland. (Dave
1285 - Test firing behavior of triggers in relation to builder/default/
1287 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1288 kinds of supported type. (t0m)
1290 * Moose::Meta::Class
1291 - In create(), do not pass "roles" option to the superclass
1292 - added related test that creates an anon metaclass with
1293 a required attribute
1295 * Moose::Meta::TypeConstraint::Class
1296 * Moose::Meta::TypeConstraint::Role
1297 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1298 other types (as per change in 0.55_02). (t0m)
1300 * Moose::Meta::TypeConstraint::Registry
1301 - Fix warning when dealing with unknown type names (t0m)
1303 * Moose::Util::TypeConstraints
1304 - Reverted changes from 0.58 related to handle parameterized
1305 types. This caused random failures on BSD and Win32 systems,
1306 apparently related to the regex engine. This means that Moose
1307 can no longer parse structured type constraints like
1308 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1309 supported in a slightly different way via MooseX::Types some
1310 time in the future. (Dave Rolsky)
1312 0.58 Sat September 20, 2008
1313 !! This release has an incompatible change regarding !!
1314 !! how roles add methods to a class !!
1316 * Roles and role application
1317 ! Roles now add methods by calling add_method, not
1318 alias_method. They make sure to always provide a method
1319 object, which will be cloned internally. This means that it is
1320 now possible to track the source of a method provided by a
1321 role, and even follow its history through intermediate roles.
1323 This means that methods added by a role now show up when
1324 looking at a class's method list/map. (Dave Rolsky)
1327 - From this release on, we'll try to maintain a list of
1328 conflicting modules, and warn you if you have one
1329 installed. For example, this release conflicts with ...
1330 - MooseX::Singleton <= 0.11
1331 - MooseX::Params::Validate <= 0.05
1334 In general, we try to not break backwards compatibility for
1335 most Moose users, but MooseX modules and other code which
1336 extends Moose's metaclasses is often affected by very small
1337 changes in the Moose internals.
1339 * Moose::Meta::Method::Delegation
1340 * Moose::Meta::Attribute
1341 - Delegation methods now have their own method class. (Dave
1344 * Moose::Meta::TypeConstraint::Parameterizable
1345 - Added a new method 'parameterize' which is basically a factory
1346 for the containing constraint. This makes it easier to create
1347 new types of parameterized constraints. (jnapiorkowski)
1349 * Moose::Meta::TypeConstraint::Union
1350 - Changed the way Union types canonicalize their names to follow
1351 the normalized TC naming rules, which means we strip all
1352 whitespace. (jnapiorkowski)
1354 * Moose::Util::TypeConstraints
1355 - Parameter and Union args are now sorted, this makes Int|Str
1356 the same constraint as Str|Int. (jnapiorkowski)
1357 - Changes to the way Union types are parsed to more correctly
1358 stringify their names. (jnapiorkowski)
1359 - When creating a parameterized type, we now use the new
1360 parameterize method. (jnapiorkowski)
1361 - Incoming type constraint strings are now normalized to remove
1362 all whitespace differences. (jnapiorkowski)
1363 - Changed the way we parse type constraint strings so that we now
1364 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1365 constraints. This lays the foundation for more flexible type
1366 constraint implementations.
1368 * Tests and docs for all the above. (jnapiorkowski)
1372 - Moose::Exporter will no longer remove a subroutine that the
1373 exporting package re-exports. Moose re-exports the
1374 Carp::confess function, among others. The reasoning is that we
1375 cannot know whether you have also explicitly imported those
1376 functions for your own use, so we err on the safe side and
1377 always keep them. (Dave Rolsky)
1378 - added tests for this (rafl)
1380 * Moose::Meta::Class
1381 - Changes to how we fix metaclass compatibility that are much
1382 too complicated to go into. The summary is that Moose is much
1383 less likely to complain about metaclass incompatibility
1384 now. In particular, if two metaclasses differ because
1385 Moose::Util::MetaRole was used on the two corresponding
1386 classes, then the difference in roles is reconciled for the
1387 subclass's metaclass. (Dave Rolsky)
1388 - Squashed an warning in _process_attribute (thepler)
1391 - throw exceptions (sooner) for invalid attribute names (thepler)
1392 - added tests for this (thepler)
1394 * Moose::Util::MetaRole
1395 - If you explicitly set a constructor or destructor class for a
1396 metaclass object, and then applied roles to the metaclass,
1397 that explicitly set class would be lost and replaced with the
1400 * Moose::Meta::Class
1401 * Moose::Meta::Attribute
1402 * Moose::Meta::Method
1405 * Moose::Error::Default
1406 * Moose::Error::Croak
1407 * Moose::Error::Confess
1408 - All instances of confess() changed to use overridable
1409 C<throw_error> method. This method ultimately calls a class
1410 constructor, and you can change the class being called. In
1411 addition, errors now pass more information than just a string.
1412 The default C<error_class> behaves like C<Carp::confess>, so
1413 the behavior is not visibly different for end users.
1415 0.57 Wed September 3, 2008
1417 - A new bit of doc intended to introduce folks familiar with
1418 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1420 * Moose::Unsweetened
1421 - Shows examples of two classes, each done first with and then
1422 without Moose. This makes a nice parallel to
1423 Moose::Intro. (Dave Rolsky)
1425 * Moose::Util::TypeConstraints
1426 - Fixed a bug in find_or_parse_type_constraint so that it
1427 accepts a Moose::Meta::TypeConstraint object as the parent
1428 type, not just a name (jnapiorkowski)
1429 - added tests (jnapiorkowski)
1432 - If Sub::Name was not present, unimporting failed to actually
1433 remove some sugar subs, causing test failures (Dave Rolsky)
1435 0.56 Mon September 1, 2008
1436 For those not following the series of dev releases, there are
1437 several major changes in this release of Moose.
1438 ! Moose::init_meta should now be called as a method. See the
1441 - Major performance improvements by nothingmuch.
1443 - New modules for extension writers, Moose::Exporter and
1444 Moose::Util::MetaRole by Dave Rolsky.
1446 - Lots of doc improvements and additions, especially in the
1449 - Various bug fixes.
1451 * Removed all references to the experimental-but-no-longer-needed
1452 Moose::Meta::Role::Application::ToMetaclassInstance.
1454 * Require Class::MOP 0.65.
1456 0.55_04 Sat August 30, 2008
1457 * Moose::Util::MetaRole
1458 * Moose::Cookbook::Extending::Recipe2
1459 - This simplifies the application of roles to any meta class, as
1460 well as the base object class. Reimplemented metaclass traits
1461 using this module. (Dave Rolsky)
1463 * Moose::Cookbook::Extending::Recipe1
1464 - This a new recipe, an overview of various ways to write Moose
1465 extensions (Dave Rolsky)
1467 * Moose::Cookbook::Extending::Recipe3
1468 * Moose::Cookbook::Extending::Recipe4
1469 - These used to be Extending::Recipe1 and Extending::Recipe2,
1472 0.55_03 Fri August 29, 2008
1473 * No changes from 0.55_02 except increasing the Class::MOP
1474 dependency to 0.64_07.
1476 0.55_02 Fri August 29, 2008
1477 * Makefile.PL and Moose.pm
1478 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1480 * Moose::Util::TypeConstraints
1481 - Fix warnings from find_type_constraint if the type is not
1484 * Moose::Meta::TypeConstraint
1485 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1486 return false if the type you specify cannot be found in the
1487 type registry, rather than throwing an unhelpful and
1488 coincidental exception. (t0m).
1489 - added docs & test for this (t0m)
1491 * Moose::Meta::TypeConstraint::Registry
1492 - add_type_constraint now throws an exception if a parameter is
1494 - added docs & test for this (t0m)
1496 * Moose::Cookbook::FAQ
1497 - Added a faq entry on the difference between "role" and "trait"
1501 - Fixed a bug that caused role composition to not see a required
1502 method when that method was provided by another role being
1503 composed at the same time. (Dave Rolsky)
1504 - test and bug finding (tokuhirom)
1506 0.55_01 Wed August 20, 2008
1508 !! Calling Moose::init_meta as a function is now !!
1509 !! deprecated. Please see the Moose.pm docs for details. !!
1511 * Moose::Meta::Method::Constructor
1512 - Fix inlined constructor so that values produced by default
1513 or builder methods are coerced as required. (t0m)
1514 - added test for this (t0m)
1516 * Moose::Meta::Attribute
1517 - A lazy attribute with a default or builder did not attempt to
1518 coerce the default value. The immutable code _did_
1520 - added test for this (t0m)
1523 - This is a new helper module for writing "Moose-alike"
1524 modules. This should make the lives of MooseX module authors
1525 much easier. (Dave Rolsky)
1528 * Moose::Cookbook::Meta::Recipe5
1529 - Implemented metaclass traits (and wrote a recipe for it):
1531 use Moose -traits => 'Foo'
1533 This should make writing small Moose extensions a little
1534 easier (Dave Rolsky)
1536 * Moose::Cookbook::Basics::Recipe1
1537 - Removed any examples of direct hashref access, and applied an
1538 editorial axe to reduce verbosity. (Dave Rolsky)
1540 * Moose::Cookbook::Basics::Recipe1
1541 - Also applied an editorial axe here. (Dave Rolsky)
1544 * Moose::Cookbook::Extending::Recipe1
1545 * Moose::Cookbook::Extending::Recipe2
1546 - Rewrote extending and embedding moose documentation and
1547 recipes to use Moose::Exporter (Dave Rolsky)
1551 - These two modules now warn when you load them from the main
1552 package "main" package, because we will not export sugar to
1553 main. Previously it just did nothing. (Dave Rolsky)
1556 - Now provide an init_meta method just like Moose.pm, and you
1557 can call this to provide an alternate role metaclass. (Dave
1558 Rolsky and nothingmuch)
1559 - get_method_map now respects the package cache flag (nothingmuch)
1562 - Two new methods - add_method and wrap_method_body
1566 - Optimizations including allowing constructors to accept hash
1567 refs, making many more classes immutable, and making
1568 constructors immutable. (nothingmuch)
1570 0.55 Sun August 3, 2008
1571 * Moose::Meta::Attribute
1572 - breaking down the way 'handles' methods are
1573 created so that the process can be more easily
1574 overridden by subclasses (stevan)
1576 * Moose::Meta::TypeConstraint
1577 - fixing what is passed into a ->message with
1578 the type constraints (RT #37569)
1579 - added tests for this (Charles Alderman)
1581 * Moose::Util::TypeConstraints
1582 - fix coerce to accept anon types like subtype can (mst)
1585 - reorganized the recipes into sections - Basics, Roles, Meta,
1586 Extending - and wrote abstracts for each section (Dave Rolsky)
1588 * Moose::Cookbook::Basics::Recipe10
1589 - A new recipe that demonstrates operator overloading
1590 in combination with Moose. (bluefeet)
1592 * Moose::Cookbook::Meta::Recipe1
1593 - an introduction to what meta is and why you'd want to make
1594 your own metaclass extensions (Dave Rolsky)
1596 * Moose::Cookbook::Meta::Recipe4
1597 - a very simple metaclass example (Dave Rolsky)
1599 * Moose::Cookbook::Extending::Recipe1
1600 - how to write a Moose-alike module to use your own object base
1603 * Moose::Cookbook::Extending::Recipe2
1604 - how to write modules with an API just like C<Moose.pm> (Dave
1608 - Tons of fixes, both syntactical and grammatical (Dave
1609 Rolsky, Paul Fenwick)
1611 0.54 Thurs. July 3, 2008
1612 ... this is not my day today ...
1614 * Moose::Meta::Attribute
1615 - fixed legal_options_for_inheritance such that
1616 clone_and_inherit options still works for
1617 Class::MOP::Attribute objects and therefore
1618 does not break MooseX::AttributeHelpers
1621 0.53 Thurs. July 3, 2008
1622 * Whoops, I guess I should run 'make manifest' before
1623 actually releasing the module. No actual changes
1624 in this release, except the fact that it includes
1625 the changes that I didn't include in the last
1628 0.52 Thurs. July 3, 2008
1630 - added "FEATURE REQUESTS" section to the Moose docs
1631 to properly direct people (stevan) (RT #34333)
1632 - making 'extends' croak if it is passed a Role since
1633 this is not ever something you want to do
1634 (fixed by stevan, found by obra)
1635 - added tests for this (stevan)
1638 - adding support for DOES (as in UNIVERSAL::DOES)
1640 - added test for this
1642 * Moose::Meta::Attribute
1643 - added legal_options_for_inheritance (wreis)
1644 - added tests for this (wreis)
1646 * Moose::Cookbook::Snacks::*
1647 - removed some of the unfinished snacks that should
1648 not have been released yet. Added some more examples
1649 to the 'Keywords' snack. (stevan)
1651 * Moose::Cookbook::Style
1652 - added general Moose "style guide" of sorts to the
1653 cookbook (nothingmuch) (RT #34335)
1656 - added more BUILDARGS tests (stevan)
1658 0.51 Thurs. Jun 26, 2008
1660 - add unimport so "no Moose::Role" actually does
1663 * Moose::Meta::Role::Application::ToRole
1664 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1665 order to provide its own implementation, that method still got
1666 added to the list of required methods for consumers of
1667 RoleB. Now an aliased method is only added to the list of
1668 required methods if the role doing the aliasing does not
1669 provide its own implementation. See Recipe 11 for an example
1670 of all this. (Dave Rolsky)
1671 - added tests for this
1673 * Moose::Meta::Method::Constructor
1674 - when a single argument that wasn't a hashref was provided to
1675 an immutabilized constructor, the error message was very
1676 unhelpful, as opposed to the non-immutable error. Reported by
1678 - added test for this (Dave Rolsky)
1680 * Moose::Meta::Attribute
1681 - added support for meta_attr->does("ShortAlias") (sartak)
1682 - added tests for this (sartak)
1683 - moved the bulk of the `handles` handling to the new
1684 install_delegation method (Stevan)
1687 - Added BUILDARGS, a new step in new()
1689 * Moose::Meta::Role::Application::RoleSummation
1690 - fix typos no one ever sees (sartak)
1692 * Moose::Util::TypeConstraints
1693 * Moose::Meta::TypeConstraint
1694 * Moose::Meta::TypeCoercion
1695 - Attempt to work around the ??{ } vs. threads issue
1697 - Some null_constraint optimizations
1699 0.50 Thurs. Jun 11, 2008
1700 - Fixed a version number issue by bumping all modules
1703 0.49 Thurs. Jun 11, 2008
1704 !! This version now approx. 20-25% !!
1705 !! faster with new Class::MOP 0.59 !!
1707 * Moose::Meta::Attribute
1708 - fixed how the is => (ro|rw) works with
1709 custom defined reader, writer and accessor
1711 - added docs for this (TODO).
1712 - added tests for this (Thanks to Penfold)
1713 - added the custom attribute alias for regular
1714 Moose attributes which is "Moose"
1715 - fix builder and default both being used
1720 Moose::Meta::Attribute
1722 Moose::Meta::Role::Composite
1723 Moose::Util::TypeConstraints
1724 - switched usage of reftype to ref because
1728 - changing add_package_symbol to use the new
1732 - fixed how DEMOLISHALL is called so that it
1733 can be overrided in subclasses (thanks to Sartak)
1734 - added test for this (thanks to Sartak)
1736 * Moose::Util::TypeConstraints
1737 - move the ClassName type check code to
1738 Class::MOP::is_class_loaded (thanks to Sartak)
1740 * Moose::Cookbook::Recipe11
1741 - add tests for this (thanks to tokuhirom)
1743 0.48 Thurs. May 29, 2008
1744 (early morning release engineering)--
1746 - fixing the version in Moose::Meta::Method::Destructor
1747 which was causing the indexer to choke
1749 0.47 Thurs. May 29, 2008
1750 (late night release engineering)--
1752 - fixing the version is META.yml, no functional
1753 changes in this release
1755 0.46 Wed. May 28, 2008
1756 !! This version now approx. 20-25% !!
1757 !! faster with new Class::MOP 0.57 !!
1759 * Moose::Meta::Class
1760 - some optimizations of the &initialize method
1761 since it is called so often by &meta
1763 * Moose::Meta::Class
1765 - now use the get_all_package_symbols from the
1766 updated Class::MOP, test suite is now 10 seconds
1769 * Moose::Meta::Method::Destructor
1770 - is_needed can now also be called as a class
1771 method for immutablization to check if the
1772 destructor object even needs to be created
1775 * Moose::Meta::Method::Destructor
1776 Moose::Meta::Method::Constructor
1777 - added more descriptive error message to help
1778 keep people from wasting time tracking an error
1779 that is easily fixed by upgrading.
1781 0.45 Saturday, May 24, 2008
1783 - Because of work in Class::MOP 0.57, all
1784 XS based functionality is now optional
1785 and a Pure Perl version is supplied
1786 - the CLASS_MOP_NO_XS environment variable
1787 can now be used to force non-XS versions
1789 - several of the packages have been tweaked
1790 to take care of this, mostly we added
1791 support for the package_name and name
1792 variables in all the Method metaclasses
1793 - before/around/after method modifiers now
1794 support regexp matching of names
1795 (thanks to Takatoshi Kitano)
1796 - tests added for this
1797 - NOTE: this only works for classes, it
1798 is currently not supported in roles,
1799 but, ... patches welcome
1800 - All usage of Carp::confess have been replaced
1801 by Carp::croak in the "keyword" functions since
1802 the stack trace is usually not helpful
1805 - All usage of Carp::confess have been replaced
1806 by Carp::croak in the "keyword" functions since
1807 the stack trace is usually not helpful
1808 - The 'has' keyword for roles now accepts the
1809 same array ref form that Moose.pm does
1810 (has [qw/foo bar/] => (is => 'rw', ...))
1811 - added test for this
1813 * Moose::Meta::Attribute
1814 - trigger on a ro-attribute is no longer an
1815 error, as it's useful to trigger off of the
1818 * Moose::Meta::Class
1819 - added same 'add_package_symbol' fix as in
1823 - does_role now handles non-Moose classes
1825 - added tests for this
1826 - added the 'add_method_modifier' function
1827 (thanks to Takatoshi Kitano)
1829 * Moose::Util::TypeConstraints
1830 - subtypes of parameterizable types now are
1831 themselves parameterizable types
1833 * Moose::Meta::Method::Constructor
1834 - fixed bug where trigger was not being
1835 called by the inlined immutable
1837 - added test for this (thanks to Caelum)
1839 * Moose::Meta::Role::Application::ToInstance
1840 - now uses the metaclass of the instance
1841 (if possible) to create the anon-class
1842 (thanks Jonathan Rockway)
1844 * Moose::Cookbook::Recipe22
1845 - added the meta-attribute trait recipe
1849 - fixed hash-ordering test bug that was
1850 causing occasional cpantester failures
1851 - renamed the t/000_recipe/*.t tests to be
1852 more descriptive (thanks to Sartak)
1854 0.44 Sat. May 10, 2008
1856 - made make_immutable warning cluck to
1857 show where the error is (thanks mst)
1860 - BUILDALL and DEMOLISHALL now call
1861 ->body when looping through the
1862 methods, to avoid the overloaded
1864 - fixed issue where DEMOLISHALL was
1865 eating the $@ values, and so not
1866 working correctly, it still kind of
1867 eats them, but so does vanilla perl
1868 - added tests for this
1870 * Moose::Cookbook::Recipe7
1871 - added new recipe for immutable
1872 functionality (thanks Dave Rolsky)
1874 * Moose::Cookbook::Recipe9
1875 - added new recipe for builder and
1876 lazy_build (thanks Dave Rolsky)
1878 * Moose::Cookbook::Recipe11
1879 - added new recipe for method aliasing
1880 and exclusion with Roles (thanks Dave Rolsky)
1883 - fixed Win32 test failure (thanks spicyjack)
1885 ~ removed Build.PL and Module::Build compat
1886 since Module::Install has done that.
1888 0.43 Wed. April, 30, 2008
1890 drink more coffee before
1891 doing release engineering
1893 - whoops, forgot to do the smolder tests,
1894 and we broke some of the custom meta-attr
1895 modules. This fixes that.
1897 0.42 Mon. April 28, 2008
1898 - some bad tests slipped by, nothing else
1899 changed in this release (cpantesters++)
1901 - upped the Class::MOP dependency to 0.55
1902 since we have tests which need the C3
1905 0.41 Mon. April 28, 2008
1906 ~~ numerous documentation updates ~~
1908 - Changed all usage of die to Carp::croak for better
1909 error reporting (initial patch by Tod Hagan)
1911 ** IMPORTANT NOTE **
1912 - the make_immutable keyword is now deprecated, don't
1913 use it in any new code and please fix your old code
1914 as well. There will be 2 releases, and then it will
1920 - refactored the way inner and super work to avoid
1921 any method/@ISA cache penalty (nothingmuch)
1923 * Moose::Meta::Class
1924 - fixing &new_object to make sure trigger gets the
1925 coerced value (spotted by Charles Alderman on the
1927 - added test for this
1929 * Moose::Meta::Method::Constructor
1930 - immutable classes which had non-lazy attributes were calling
1931 the default generating sub twice in the constructor. (bug
1932 found by Jesse Luehrs, fixed by Dave Rolsky)
1933 - added tests for this (Dave Rolsky)
1934 - fix typo in initialize_body method (nothingmuch)
1936 * Moose::Meta::Method::Destructor
1937 - fix typo in initialize_body method (nothingmuch)
1939 * Moose::Meta::Method::Overriden
1940 Moose::Meta::Method::Augmented
1941 - moved the logic for these into their own
1942 classes (nothingmuch)
1944 * Moose::Meta::Attribute
1945 - inherited attributes may now be extended without
1946 restriction on the type ('isa', 'does') (Sartak)
1947 - added tests for this (Sartak)
1948 - when an attribute property is malformed (such as lazy without
1949 a default), give the name of the attribute in the error
1951 - added the &applied_traits and &has_applied_traits methods
1952 to allow introspection of traits
1953 - added tests for this
1954 - moved 'trait' and 'metaclass' argument handling to here from
1956 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1957 '+foo' syntax) (nothingmuch)
1958 - added tests for this (t0m)
1961 - localize $@ inside DEMOLISHALL to avoid it
1962 eating $@ (found by Ernesto)
1963 - added test for this (thanks to Ernesto)
1965 * Moose::Util::TypeConstraints
1966 - &find_type_constraint now DWIMs when given an
1967 type constraint object or name (nothingmuch)
1968 - &find_or_create_type_constraint superseded with a number of more
1970 - find_or_create_{isa,does}_type_constraint
1971 - find_or_parse_type_constraint
1973 * Moose::Meta::TypeConstraint
1974 Moose::Meta::TypeConstraint::Class
1975 Moose::Meta::TypeConstraint::Role
1976 Moose::Meta::TypeConstraint::Enum
1977 Moose::Meta::TypeConstraint::Union
1978 Moose::Meta::TypeConstraint::Parameterized
1979 - added the &equals method for comparing two type
1980 constraints (nothingmuch)
1981 - added tests for this (nothingmuch)
1983 * Moose::Meta::TypeConstraint
1984 - add the &parents method, which is just an alias to &parent.
1985 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1987 * Moose::Meta::TypeConstraint::Class
1988 - added the class attribute for introspection purposes
1990 - added tests for this
1992 * Moose::Meta::TypeConstraint::Enum
1993 Moose::Meta::TypeConstraint::Role
1994 - broke these out into their own classes (nothingmuch)
1996 * Moose::Cookbook::Recipe*
1997 - fixed references to test file locations in the POD
1998 and updated up some text for new Moose features
2002 - Added &resolve_metaclass_alias, a helper function for finding an actual
2003 class for a short name (e.g. in the traits list)
2005 0.40 Fri. March 14, 2008
2006 - I hate Pod::Coverage
2008 0.39 Fri. March 14, 2008
2010 - documenting the use of '+name' with attributes
2011 that come from recently composed roles. It makes
2012 sense, people are using it, and so why not just
2013 officially support it.
2014 - fixing the 'extends' keyword so that it will not
2015 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2018 - added the perl -Moose=+Class::Name feature to allow
2019 monkeypatching of classes in one liners
2022 - fixing the 'apply_all_roles' keyword so that it will not
2023 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
2025 * Moose::Meta::Class
2026 - added ->create method which now supports roles (thanks to jrockway)
2027 - added tests for this
2028 - added ->create_anon_class which now supports roles and caching of
2029 the results (thanks to jrockway)
2030 - added tests for this
2031 - made ->does_role a little more forgiving when it is
2032 checking a Class::MOP era metaclasses.
2034 * Moose::Meta::Role::Application::ToInstance
2035 - it is now possible to pass extra params to be used when
2036 a role is applied to an the instance (rebless_params)
2037 - added tests for this
2039 * Moose::Util::TypeConstraints
2040 - class_type now accepts an optional second argument for a
2041 custom message. POD anotated accordingly (groditi)
2042 - added tests for this
2043 - it is now possible to make anon-enums by passing 'enum' an
2044 ARRAY ref instead of the $name => @values. Everything else
2046 - added tests for this
2049 - making test for using '+name' on attributes consumed
2050 from a role, it works and makes sense too.
2052 * Moose::Meta::Attribute
2053 - fix handles so that it doesn't return nothing
2054 when the method cannot be found, not sure why
2055 it ever did this originally, this means we now
2056 have slightly better support for AUTOLOADed
2058 - added more delegation tests
2059 - adding ->does method to this so as to better
2060 support traits and their introspection.
2061 - added tests for this
2064 - localizing the Data::Dumper configurations so
2065 that it does not pollute others (RT #33509)
2066 - made ->does a little more forgiving when it is
2067 passed Class::MOP era metaclasses.
2069 0.38 Fri. Feb. 15, 2008
2070 * Moose::Meta::Attribute
2071 - fixed initializer to correctly do
2072 type checking and coercion in the
2074 - added tests for this
2077 - fixed some finicky tests (thanks to konobi)
2079 0.37 Thurs. Feb. 14, 2008
2081 - fixed some details in Moose::init_meta
2082 and its superclass handling (thanks thepler)
2083 - added tests for this (thanks thepler)
2084 - 'has' now dies if you don't pass in name
2086 - added the 'make_immutable' keyword as a shortcut
2089 * Moose::Meta::Class
2090 Moose::Meta::Method::Constructor
2091 Moose::Meta::Attribute
2092 - making (init_arg => undef) work here too
2093 (thanks to nothingmuch)
2095 * Moose::Meta::Attribute
2096 Moose::Meta::Method::Constructor
2097 Moose::Meta::Method::Accessor
2098 - make lazy attributes respect attr initializers (rjbs)
2099 - added tests for this
2101 * Moose::Util::TypeConstraints
2102 Moose::Util::TypeConstraints::OptimizedConstraints
2103 Moose::Meta::TypeConstraints
2104 Moose::Meta::Attribute
2105 Moose::Meta::Method::Constructor
2106 Moose::Meta::Method::Accessor
2107 - making type errors use the
2108 assigned message (thanks to Sartak)
2109 - added tests for this
2111 * Moose::Meta::Method::Destructor
2112 - making sure DESTROY gets inlined properly
2113 with successive DEMOLISH calls (thanks to manito)
2115 * Moose::Meta::Attribute
2116 Moose::Meta::Method::Accessor
2117 - fixed handling of undef with type constraints
2119 - added tests for this
2122 - added &get_all_init_args and &get_all_attribute_values
2123 (thanks to Sartak and nothingmuch)
2125 0.36 Sat. Jan. 26, 2008
2127 Moose::Meta::Attribute
2128 - role type tests now support when roles are
2129 applied to non-Moose classes (found by ash)
2130 - added tests for this (thanks to ash)
2131 - couple extra tests to boost code coverage
2133 * Moose::Meta::Method::Constructor
2134 - improved fix for handling Class::MOP attributes
2135 - added test for this
2137 * Moose::Meta::Class
2138 - handled the add_attribute($attribute_meta_object)
2140 - added test for this
2142 0.35 Tues. Jan. 22, 2008
2143 * Moose::Meta::Method::Constructor
2144 - fix to make sure even Class::MOP attributes
2145 are handled correctly (Thanks to Dave Rolsky)
2146 - added test for this (also Dave Rolsky)
2148 * Moose::Meta::Class
2149 - improved error message on _apply_all_roles,
2150 you should now use Moose::Util::apply_all_roles
2151 and you shouldnt have been using a _ prefixed
2152 method in the first place ;)
2154 0.34 Mon. Jan. 21, 2008
2155 ~~~ more misc. doc. fixes ~~~
2156 ~~ updated copyright dates ~~
2158 Moose is now a postmodern object system :)
2159 - (see the POD for details)
2161 * <<Role System Refactoring>>
2162 - this release contains a major reworking and
2163 cleanup of the role system
2164 - 100% backwards compat.
2165 - Role application now restructured into seperate
2166 classes based on type of applicants
2167 - Role summation (combining of more than one role)
2168 is much cleaner and anon-classes are no longer
2169 used in this process
2170 - new Composite role metaclass
2171 - runtime application of roles to instances
2172 is now more efficient and re-uses generated
2173 classes when applicable
2175 * <<New Role composition features>>
2176 - methods can now be excluded from a given role
2178 - methods can now be aliased to another name (and
2179 still retain the original as well)
2181 * Moose::Util::TypeConstraints::OptimizedConstraints
2182 - added this module (see above)
2184 * Moose::Meta::Class
2185 - fixed the &_process_attribute method to be called
2186 by &add_attribute, so that the API is now correct
2188 * Moose::Meta::Method::Accessor
2189 - fixed bug when passing a list of values to
2190 an accessor would get (incorrectly) ignored.
2191 Thanks to Sartak for finding this ;)
2192 - added tests for this (Sartak again)
2194 * Moose::Meta::Method::Accessor
2195 Moose::Meta::Method::Constructor
2196 Moose::Meta::Attribute
2197 Moose::Meta::TypeConstraint
2198 Moose::Meta::TypeCoercion
2199 - lots of cleanup of such things as:
2201 - type constraint handling
2202 - error handling/messages
2203 (thanks to nothingmuch)
2205 * Moose::Meta::TypeConstraint::Parameterizable
2206 - added this module to support the refactor
2207 in Moose::Meta::TypeConstraint::Parameterized
2209 * Moose::Meta::TypeConstraint::Parameterized
2210 - refactored how these types are handled so they
2211 are more generic and not confined to ArrayRef
2215 - shortened some file names for better VMS support (RT #32381)
2217 0.33 Fri. Dec. 14, 2007
2218 !! Moose now loads 2 x faster !!
2219 !! with new Class::MOP 0.49 !!
2221 ++ new oose.pm module to make command line
2222 Moose-ness easier (see POD docs for more)
2224 * Moose::Meta::Class
2226 - several tweaks to take advantage of the
2227 new method map caching in Class::MOP
2229 * Moose::Meta::TypeConstraint::Parameterized
2230 - allow subtypes of ArrayRef and HashRef to
2231 be used as a container (sartak)
2232 - added tests for this
2233 - basic support for coercion to ArrayRef and
2234 HashRef for containers (sartak)
2235 - added tests for this
2237 * Moose::Meta::TypeCoercion
2238 - coercions will now create subtypes as needed
2239 so you can now add coercions to parameterized
2240 types without having to explictly define them
2241 - added tests for this
2243 * Moose::Meta::Method::Accessor
2244 - allow subclasses to decide whether we need
2245 to copy the value into a new variable (sartak)
2247 0.32 Tues. Dec. 4, 2007
2248 * Moose::Util::TypeConstraints
2249 - fixing how subtype aliases of unions work
2250 they should inherit the parent's coercion
2251 - added tests for this
2252 - you can now define multiple coercions on
2253 a single type at different times instead of
2254 having to do it all in one place
2255 - added tests for this
2257 * Moose::Meta::TypeConstraint
2258 - there is now a default constraint of sub { 1 }
2259 instead of Moose::Util::TypeConstraints setting
2262 * Moose::Meta::TypeCoercion
2263 * Moose::Meta::TypeCoercion::Union
2264 - added the &has_coercion_for_type and
2265 &add_type_coercions methods to support the
2266 new features above (although you cannot add
2267 more type coercions for Union types)
2269 0.31 Mon. Nov. 26, 2007
2270 * Moose::Meta::Attribute
2271 - made the +attr syntax handle extending types with
2272 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2273 now works if the original foo is an ArrayRef.
2274 - added tests for this.
2275 - delegation now works even if the attribute does not
2276 have a reader method using the get_read_method_ref
2277 method from Class::MOP::Attribute.
2278 - added tests for this
2279 - added docs for this
2281 * Moose::Util::TypeConstraints
2282 - passing no "additional attribute info" to
2283 &find_or_create_type_constraint will no longer
2284 attempt to create an __ANON__ type for you,
2285 instead it will just return undef.
2286 - added docs for this
2288 0.30 Fri. Nov. 23, 2007
2289 * Moose::Meta::Method::Constructor
2290 -builder related bug in inlined constructor. (groditi)
2292 * Moose::Meta::Method::Accessor
2293 - genereate unnecessary calls to predicates and refactor
2294 code generation for runtime speed (groditi)
2296 * Moose::Util::TypeConstraints
2297 - fix ClassName constraint to introspect symbol table (mst)
2298 - added more tests for this (mst)
2299 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2300 with work correctly.
2301 - added tests for this
2304 - adding the link to Recipie 11 (written by Sartak)
2305 - adding test for SYNOPSIS code
2308 - New tests for builder bug. Upon instantiation, if an
2309 attribute had a builder, no value and was not lazy the
2310 builder default was not getting run, oops. (groditi)
2312 0.29 Tues. Nov. 13, 2007
2313 * Moose::Meta::Attribute
2314 - Fix error message on missing builder method (groditi)
2316 * Moose::Meta::Method::Accessor
2317 - Fix error message on missing builder method (groditi)
2320 - Add test to check for the correct error message when
2321 builder method is missing (groditi)
2323 0.28 Tues. Nov. 13, 2007
2324 - 0.27 packaged incorrectly (groditi)
2326 0.27 Tues. Nov. 13, 2007
2327 * Moose::Meta::Attribute
2328 - Added support for the new builder option (groditi)
2329 - Added support for lazy_build option (groditi)
2330 - Changed slot initialization for predicate changes (groditi)
2332 * Moose::Meta::Method::Accessor
2333 - Added support for lazy_build option (groditi)
2334 - Fix inline methods to work with corrected predicate
2337 * Moose::Meta::Method::Constructor
2338 - Added support for lazy_build option (groditi)
2341 - tests for builder and lazy_build (groditi)
2343 * fixing some misc. bits in the docs that
2344 got mentioned on CPAN Forum & perlmonks
2347 - fixed how required methods are handled
2348 when they encounter overriden or modified
2349 methods from a class (thanks to confound).
2350 - added tests for this
2352 * Moose::Util::TypeConstraint
2353 - fixed the type notation parser so that
2354 the | always creates a union and so is
2355 no longer a valid type char (thanks to
2356 konobi, mugwump and #moose for working
2358 - added more tests for this
2360 0.26 Thurs. Sept. 27, 2007
2363 * Parameterized Types
2364 We now support parameterized collection types, such as:
2365 ArrayRef[Int] # array or integers
2366 HashRef[Object] # a hash with object values
2367 They can also be nested:
2368 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2369 And work with the type unions as well:
2370 ArrayRef[Int | Str] # array of integers of strings
2372 * Better Framework Extendability
2373 Moose.pm is now "extendable" such that it is now much
2374 easier to extend the framework and add your own keywords
2375 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2376 section of the Moose.pm docs.
2379 In an effort to begin documenting some of the various
2380 details of Moose as well as some common idioms, we have
2381 created Moose::Cookbook::Snacks as a place to find
2382 small (easily digestable) nuggets of Moose code.
2385 ~ Several doc updates/cleanup thanks to castaway ~
2387 - converted build system to use Module::Install instead of
2388 Module::Build (thanks to jrockway)
2391 - added all the meta classes to the immutable list and
2392 set it to inline the accessors
2393 - fix import to allow Sub::Exporter like { into => }
2394 and { into_level => } (perigrin)
2395 - exposed and documented init_meta() to allow better
2396 embedding and extending of Moose (perigrin)
2399 - complete re-organization of the test suite
2400 - added some new tests as well
2401 - finally re-enabled the Moose::POOP test since
2402 the new version of DBM::Deep now works again
2405 * Moose::Meta::Class
2406 - fixed very odd and very nasty recursion bug with
2408 - added tests for this (eilara)
2410 * Moose::Meta::Attribute
2411 Moose::Meta::Method::Constructor
2412 Moose::Meta::Method::Accessor
2413 - fixed issue with overload::Overloaded getting called
2414 on non-blessed items. (RT #29269)
2415 - added tests for this
2417 * Moose::Meta::Method::Accessor
2418 - fixed issue with generated accessor code making
2419 assumptions about hash based classes (thanks to dexter)
2421 * Moose::Coookbook::Snacks
2422 - these are bits of documentation, not quite as big as
2423 Recipes but which have no clear place in the module docs.
2424 So they are Snacks! (horray for castaway++)
2426 * Moose::Cookbook::Recipe4
2427 - updated it to use the new ArrayRef[MyType] construct
2428 - updated the accompanying test as well
2430 +++ Major Refactor of the Type Constraint system +++
2431 +++ with new features added as well +++
2433 * Moose::Util::TypeConstraint
2434 - no longer uses package variable to keep track of
2435 the type constraints, now uses the an instance of
2436 Moose::Meta::TypeConstraint::Registry to do it
2437 - added more sophisticated type notation parsing
2439 - added tests for this
2441 * Moose::Meta::TypeConstraint
2442 - some minor adjustments to make subclassing easier
2443 - added the package_defined_in attribute so that we
2444 can track where the type constraints are created
2446 * Moose::Meta::TypeConstraint::Union
2447 - this is now been refactored to be a subclass of
2448 Moose::Meta::TypeConstraint
2450 * Moose::Meta::TypeCoercion::Union
2451 - this has been added to service the newly refactored
2452 Moose::Meta::TypeConstraint::Union and is itself
2453 a subclass of Moose::Meta::TypeCoercion
2455 * Moose::Meta::TypeConstraint::Parameterized
2456 - added this module (taken from MooseX::AttributeHelpers)
2457 to help construct nested collection types
2458 - added tests for this
2460 * Moose::Meta::TypeConstraint::Registry
2461 - added this class to keep track of type constraints
2463 0.25 Mon. Aug. 13, 2007
2465 - Documentation update to reference Moose::Util::TypeConstraints
2466 under 'isa' in 'has' for how to define a new type
2467 (thanks to shlomif).
2469 * Moose::Meta::Attribute
2470 - required attributes now will no longer accept undef
2471 from the constructor, even if there is a default and lazy
2472 - added tests for this
2473 - default subroutines must return a value which passes the
2475 - added tests for this
2477 * Moose::Meta::Attribute
2478 * Moose::Meta::Method::Constructor
2479 * Moose::Meta::Method::Accessor
2480 - type-constraint tests now handle overloaded objects correctly
2481 in the error message
2482 - added tests for this (thanks to EvanCarroll)
2484 * Moose::Meta::TypeConstraint::Union
2485 - added (has_)hand_optimized_constraint to this class so that
2486 it behaves as the regular Moose::Meta::TypeConstraint does.
2489 - large refactoring of this code
2490 - added several more tests
2491 - tests for subtle conflict resolition issues
2492 added, but not currently running
2495 * Moose::Cookbook::Recipe7
2496 - added new recipe for augment/inner functionality
2498 - added test for this
2501 - a formal definition of roles (still in progress)
2504 - utilities for easier working with Moose classes
2505 - added tests for these
2508 - This contains Moose specific test functions
2509 - added tests for these
2511 0.24 Tues. July 3, 2007
2512 ~ Some doc updates/cleanup ~
2514 * Moose::Meta::Attribute
2515 - added support for roles to be given as parameters
2516 to the 'handles' option.
2517 - added tests and docs for this
2518 - the has '+foo' attribute form now accepts changes to
2519 the lazy option, and the addition of a handles option
2520 (but not changing the handles option)
2521 - added tests and docs for this
2524 - required methods are now fetched using find_method_by_name
2525 so that required methods can come from superclasses
2526 - adjusted tests for this
2528 0.23 Mon. June 18, 2007
2529 * Moose::Meta::Method::Constructor
2530 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2531 * Moose::Meta::Class
2532 - Modify make_immutable to work with the new Class::MOP immutable
2533 mechanism + POD + very basic test (groditi)
2534 * Moose::Meta::Attribute
2535 - Fix handles to use goto() so that caller() comes out properly on
2536 the other side (perigrin)
2538 0.22 Thurs. May 31, 2007
2539 * Moose::Util::TypeConstraints
2540 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2541 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2542 prototypes for functions
2543 - added the ClassName type constraint, this checks for strings
2544 which will respond true to ->isa(UNIVERSAL).
2545 - added tests and docs for this
2546 - subtyping just in name now works correctly by making the
2547 default for where be { 1 }
2548 - added test for this
2550 * Moose::Meta::Method::Accessor
2551 - coerce and lazy now work together correctly, thanks to
2552 merlyn for finding this bug
2553 - tests added for this
2554 - fix reader presedence bug in Moose::Meta::Attribute + tests
2557 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2558 a HASH-ref and missed. This produces better error messages then
2559 having it die cause undef is not a HASH.
2560 - added tests for this
2562 0.21 Thursday, May 2nd, 2007
2564 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2565 - modified unimport to remove super and inner along with the rest
2566 - altered unimport tests to handle this
2569 - altered super export to populate SUPER_SLOT
2571 * Moose::Meta::Class
2572 - altered augment and override modifier application to use *_SLOT
2573 - modified tests for these to unimport one test class each to test
2576 - fixed issue where custom attribute metaclasses
2577 where not handled correctly in roles
2578 - added tests for this
2580 * Moose::Meta::Class
2581 - fixed issue where extending metaclasses with
2582 roles would blow up. Thanks to Aankhen`` for
2583 finding this insidious error, and it's solution.
2585 ~~ lots of spelling and grammer fixes in the docs,
2586 many many thanks to rlb3 and Aankhen for these :)
2588 0.20 Friday, April 6th, 2007
2589 >> I messed up the SKIP logic in one test
2590 so this release is just to fix that.
2593 - 'has' now also accepts an ARRAY ref
2594 to create multiple attrs (see docs)
2595 (thanks to konobi for this)
2596 - added tests and docs
2598 0.19 Thurs. April 5th, 2007
2599 ~~ More documentation updates ~~
2601 * Moose::Util::TypeConstraints
2602 - 'type' now supports messages as well
2603 thanks to phaylon for finding this
2604 - added tests for this
2605 - added &list_all_type_constraints and
2606 &list_all_builtin_type_constraints
2607 functions to facilitate introspection.
2609 * Moose::Meta::Attribute
2610 - fixed regexp 'handles' declarations
2611 to build the list of delegated methods
2612 correctly (and not override important
2613 things like &new) thanks to ashleyb
2615 - added tests and docs for this
2616 - added the 'documentation' attributes
2617 so that you can actually document your
2618 attributes and inspect them through the
2620 - added tests and docs for this
2622 * Moose::Meta::Class
2623 - when loading custom attribute metaclasses
2624 it will first look in for the class in the
2625 Moose::Meta::Attribute::Custom::$name, and
2626 then default to just loading $name.
2627 - added tests and docs for this
2629 * Moose::Meta::TypeConstraint
2630 - type constraints now stringify to their names.
2631 - added test for this
2634 - added tests to assure we work with Module::Refresh
2635 - added stricter test skip logic in the Moose POOP
2636 test, ask Rob Kinyon why.
2637 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2639 0.18 Sat. March 10, 2007
2640 ~~ Many, many documentation updates ~~
2643 - We now use Class::MOP::load_class to
2645 - added tests to show types and subtypes
2646 working with Declare::Constraints::Simple
2647 and Test::Deep as constraint engines.
2650 !! You must have Class::MOP 0.37_001 !!
2651 !! for this developer release to work !!
2653 This release was primarily adding the immutable
2654 feature to Moose. An immutable class is one which
2655 you promise not to alter. When you set the class
2656 as immutable it will perform various bits of
2657 memoization and inline certain part of the code
2658 (constructors, destructors and accessors). This
2659 minimizes (and in some cases totally eliminates)
2660 one of Moose's biggest performance hits. This
2661 feature is not on by default, and is 100% optional.
2662 It has several configurable bits as well, so you
2663 can pick and choose to your specific needs.
2665 The changes involved in this were fairly wide and
2666 highly specific, but 100% backwards compatible, so
2667 I am not going to enumerate them here. If you are
2668 truely interested in what was changed, please do
2671 0.17 Tues. Nov. 14, 2006
2672 * Moose::Meta::Method::Accessor
2673 - bugfix for read-only accessors which
2674 are have a type constraint and lazy.
2675 Thanks to chansen for finding it.
2677 0.16 Tues. Nov. 14, 2006
2679 There are some speed improvements in this release,
2680 but they are only the begining, so stay tuned.
2683 - BUILDALL and DEMOLISHALL no longer get
2684 called unless they actually need to be.
2685 This gave us a signifigant speed boost
2686 for the cases when there is no BUILD or
2687 DEMOLISH method present.
2689 * Moose::Util::TypeConstraints
2690 * Moose::Meta::TypeConstraint
2691 - added an 'optimize_as' option to the
2692 type constraint, which allows for a
2693 hand optimized version of the type
2694 constraint to be used when possible.
2695 - Any internally created type constraints
2696 now provide an optimized version as well.
2698 0.15 Sun. Nov. 5, 2006
2700 This version of Moose *must* have Class::MOP 0.36 in order
2701 to work correctly. A number of small internal tweaks have
2702 been made in order to be compatible with that release.
2704 * Moose::Util::TypeConstraints
2705 - added &unimport so that you can clean out
2706 your class namespace of these exported
2709 * Moose::Meta::Class
2710 - fixed minor issue which occasionally
2711 comes up during global destruction
2713 - moved Moose::Meta::Method::Overriden into
2717 - moved Moose::Meta::Role::Method into
2720 * Moose::Meta::Attribute
2721 - changed how we do type checks so that
2722 we reduce the overall cost, but still
2725 - moved accessor generation methods to
2726 Moose::Meta::Method::Accessor to
2727 conform to the API changes from
2730 * Moose::Meta::TypeConstraint
2731 - changed how constraints are compiled
2732 so that we do less recursion and more
2733 iteration. This makes the type check
2735 - moved Moose::Meta::TypeConstraint::Union
2738 * Moose::Meta::Method::Accessor
2739 - created this from methods formerly found in
2740 Moose::Meta::Attribute
2742 * Moose::Meta::Role::Method
2743 - moved this from Moose::Meta::Role
2745 * Moose::Meta::Method::Overriden
2746 - moved this from Moose::Meta::Class
2748 * Moose::Meta::TypeConstraint::Union
2749 - moved this from Moose::Meta::TypeConstraint
2751 0.14 Mon. Oct. 9, 2006
2753 * Moose::Meta::Attribute
2754 - fixed lazy attributes which were not getting
2755 checked with the type constraint (thanks ashley)
2756 - added tests for this
2757 - removed the over-enthusiastic DWIMery of the
2758 automatic ArrayRef and HashRef defaults, it
2759 broke predicates in an ugly way.
2760 - removed tests for this
2762 0.13 Sat. Sept. 30, 2006
2764 This version of Moose *must* have Class::MOP 0.35 in order
2765 to work correctly. A number of small internal tweaks have
2766 been made in order to be compatible with that release.
2769 - Removed the use of UNIVERSAL::require to be a better
2770 symbol table citizen and remove a dependency
2771 (thanks Adam Kennedy)
2773 **~~ removed experimental & undocumented feature ~~**
2774 - commented out the 'method' and 'self' keywords, see the
2775 comments for more info.
2778 - added a FAQ and WTF files to document frequently
2779 asked questions and common problems
2781 * Moose::Util::TypeConstraints
2782 - added GlobRef and FileHandle type constraint
2783 - added tests for this
2785 * Moose::Meta::Attribute
2786 - if your attribute 'isa' ArrayRef of HashRef, and you have
2787 not explicitly set a default, then make the default DWIM.
2788 This will also work for subtypes of ArrayRef and HashRef
2790 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2791 - new test added for this (thanks to ashley)
2794 - added basic support for runtime role composition
2795 but this is still *highly experimental*, so feedback
2796 is much appreciated :)
2797 - added tests for this
2799 * Moose::Meta::TypeConstraint
2800 - the type constraint now handles the coercion process
2801 through delegation, this is to support the coercion
2804 * Moose::Meta::TypeConstraint::Union
2805 - it is now possible for coercions to be performed
2807 - added tests for this (thanks to konobi)
2809 * Moose::Meta::TypeCoercion
2810 - properly capturing error when type constraint
2814 - Scalar::Util 1.18 is bad on Win32, so temporarily
2815 only require version 1.17 for Win32 and cygwin.
2816 (thanks Adam Kennedy)
2818 0.12 Sat. Sept. 1, 2006
2820 - Recipe5 (subtypes & coercion) has been written
2823 - fixed "bad meta" error message to be more descriptive
2824 - fixed &unimport to not remove the &inner and &super
2825 keywords because we need to localize them.
2826 - fixed number of spelling/grammer issues, thanks Theory :)
2828 **~~ experimental & undocumented feature ~~**
2829 - added the method and self keywords, they are basically
2830 just sugar, and they may not stay around.
2833 - added &dump method to easily Data::Dumper
2836 * Moose::Meta::TypeConstraint
2837 - added the &is_a_type_of method to check both the current
2838 and the subtype of a method (similar to &isa with classes)
2841 - this is now a subclass of Class::MOP::Module, and no longer
2842 creates the _role_meta ugliness of before.
2843 - fixed tests to reflect this change
2845 0.11 Wed. July 12, 2006
2847 - added an &unimport method to remove all the keywords
2848 that Moose will import, simply add 'no Moose' to the
2849 bottom of your class file.
2852 - fixed some test failures caused by a forgotten test
2855 0.10 Thurs. July 6, 2006
2857 - improved error message when loading modules so
2858 it is less confusing when you load a role.
2859 - added &calculate_all_roles method to
2860 Moose::Meta::Class and Moose::Meta::Role
2863 This module has been tested against Class::MOP 0.30
2864 but it does not yet utilize the optimizations
2865 it makes available. Stay tuned for that ;)
2867 0.09_03 Fri. June 23, 2006
2868 ++ DEVELOPER RELEASE ++
2870 - 'use strict' and 'use warnings' are no longer
2871 needed in Moose classes, Moose itself will
2872 turn them on for you.
2873 - added tests for this
2874 - moved code from exported subs to private methods
2875 in Moose::Meta::Class
2878 - as with Moose, strict and warnings are
2879 automatically turned on for you.
2880 - added tests for this
2883 - now handles an edge case for override errors
2884 - added tests for this
2885 - added some more edge case tests
2887 0.09_02 Tues. May 16, 2006
2888 ++ DEVELOPER RELEASE ++
2890 - added prototypes to the exported subs
2894 - added prototypes to the exported subs
2897 * Moose::Util::TypeConstraints
2898 - cleaned up prototypes for the subs
2901 0.09_01 Fri. May 12, 2006
2902 ++ DEVELOPER RELEASE ++
2903 - This release works in combination with
2904 Class::MOP 0.29_01, it is a developer
2905 release because it uses the a new
2906 instance sub-protocol and a fairly
2907 complete Role implementation. It has
2908 not yet been optimized, so it slower
2909 the the previous CPAN version. This
2910 release also lacks good updated docs,
2911 the official release will have updated docs.
2914 - refactored the keyword exports
2915 - 'with' now checks Role validaity and
2916 accepts more than one Role at a time
2917 - 'extends' makes metaclass adjustments as
2918 needed to ensure metaclass compatibility
2921 - refactored the keyword exports
2922 - 'with' now checks Role validaity and
2923 accepts more than one Role at a time
2925 * Moose::Util::TypeConstraints
2926 - added the 'enum' keyword for simple
2927 string enumerations which can be used as
2929 - see example of usage in t/202_example.t
2932 - more careful checking of params to new()
2935 - much work done on the role composition
2936 - many new tests for conflict detection
2937 and composition edge cases
2938 - not enough documentation, I suggest
2939 looking at the tests
2941 * Moose::Meta::Instance
2942 - added new Instance metaclass to support
2943 the new Class::MOP instance protocol
2945 * Moose::Meta::Class
2946 - some small changes to support the new
2948 - some small additions to support Roles
2950 * Moose::Meta::Attribute
2951 - some improvements to the accessor generation code
2953 - some small changes to support the new
2955 - (still somewhat) experimental delegation support
2956 with the 'handles' option
2957 - added several tests for this
2958 - no docs for this yet
2960 0.05 Thurs. April 27, 2006
2962 - keywords are now exported with Sub::Exporter
2963 thanks to chansen for this commit
2964 - has keyword now takes a 'metaclass' option
2965 to support custom attribute meta-classes
2966 on a per-attribute basis
2967 - added tests for this
2968 - the 'has' keyword not accepts inherited slot
2969 specifications (has '+foo'). This is still an
2970 experimental feature and probably not finished
2971 see t/038_attribute_inherited_slot_specs.t for
2972 more details, or ask about it on #moose
2973 - added tests for this
2976 - keywords are now exported with Sub::Exporter
2978 * Moose::Utils::TypeConstraints
2979 - reorganized the type constraint hierarchy, thanks
2980 to nothingmuch and chansen for his help and advice
2982 - added some tests for this
2983 - keywords are now exported with Sub::Exporter
2984 thanks to chansen for this commit
2986 * Moose::Meta::Class
2987 - due to changes in Class::MOP, we had to change
2988 construct_instance (for the better)
2990 * Moose::Meta::Attribute
2991 - due to changes in Class::MOP, we had to add the
2992 initialize_instance_slot method (it's a good thing)
2994 * Moose::Meta::TypeConstraint
2995 - added type constraint unions
2996 - added tests for this
2997 - added the is_subtype_of predicate method
2998 - added tests for this
3000 0.04 Sun. April 16th, 2006
3002 - Roles can now consume other roles
3003 - added tests for this
3004 - Roles can specify required methods now with
3005 the requires() keyword
3006 - added tests for this
3009 - ripped out much of it's guts ,.. much cleaner now
3010 - added required methods and correct handling of
3011 them in apply() for both classes and roles
3012 - added tests for this
3013 - no longer adds a does() method to consuming classes
3014 it relys on the one in Moose::Object
3015 - added roles attribute and some methods to support
3016 roles consuming roles
3018 * Moose::Meta::Attribute
3019 - added support for triggers on attributes
3020 - added tests for this
3021 - added support for does option on an attribute
3022 - added tests for this
3024 * Moose::Meta::Class
3025 - added support for attribute triggers in the
3027 - added tests for this
3030 - Moose no longer creates a subtype for your class
3031 if a subtype of the same name already exists, this
3032 should DWIM in 99.9999% of all cases
3034 * Moose::Util::TypeConstraints
3035 - fixed bug where incorrect subtype conflicts were
3037 - added test for this
3040 - this class can now be extended with 'use base' if
3041 you need it, it properly loads the metaclass class now
3042 - added test for this
3044 0.03_02 Wed. April 12, 2006
3046 - you must now explictly use Moose::Util::TypeConstraints
3047 it no longer gets exported for you automatically
3050 - new() now accepts hash-refs as well as key/value lists
3051 - added does() method to check for Roles
3052 - added tests for this
3054 * Moose::Meta::Class
3055 - added roles attribute along with the add_role() and
3057 - added tests for this
3060 - now adds a does() method to consuming classes
3061 which tests the class's hierarchy for roles
3062 - added tests for this
3064 0.03_01 Mon. April 10, 2006
3066 - added new Role recipe (no content yet, only code)
3069 - added 'with' keyword for Role support
3070 - added test and docs for this
3071 - fixed subtype quoting bug
3072 - added test for this
3076 - added test and docs
3078 * Moose::Util::TypeConstraints
3079 - added the message keyword to add custom
3080 error messages to type constraints
3083 - the meta role to support Moose::Role
3084 - added tests and docs
3086 * Moose::Meta::Class
3087 - moved a number of things from Moose.pm
3088 to here, they should have been here
3091 * Moose::Meta::Attribute
3092 - moved the attribute option macros here
3093 instead of putting them in Moose.pm
3095 * Moose::Meta::TypeConstraint
3096 - added the message attributes and the
3098 - added tests and docs for this
3100 0.03 Thurs. March 30, 2006
3102 - added the Moose::Cookbook with 5 recipes,
3103 describing all the stuff Moose can do.
3106 - fixed an issue with &extends super class loading
3107 it now captures errors and deals with inline
3108 packages correctly (bug found by mst, solution
3110 - added super/override & inner/augment features
3111 - added tests and docs for these
3114 - BUILDALL now takes a reference of the %params
3115 that are passed to &new, and passes that to
3118 * Moose::Util::TypeConstraints
3119 - Type constraints now survive runtime reloading
3120 - added test for this
3122 * Moose::Meta::Class
3123 - fixed the way attribute defaults are handled
3124 during instance construction (bug found by chansen)
3126 * Moose::Meta::Attribute
3127 - read-only attributes now actually enforce their
3128 read-only-ness (this corrected in Class::MOP as
3131 0.02 Tues. March 21, 2006
3133 - many more tests, fixing some bugs and
3135 - &extends now loads the base module with
3137 - added UNIVERSAL::require to the
3140 - each new Moose class will also create
3141 and register a subtype of Object which
3142 correspond to the new Moose class.
3143 - the 'isa' option in &has now only
3144 accepts strings, and will DWIM in
3147 * Moose::Util::TypeConstraints
3148 - added type coercion features
3149 - added tests for this
3150 - added support for this in attributes
3151 and instance construction
3153 - type construction no longer creates a
3154 function, it registers the type instead.
3155 - added several functions to get the
3159 - BUILDALL and DEMOLISHALL were broken
3160 because of a mis-named hash key, Whoops :)
3162 * Moose::Meta::Attribute
3163 - adding support for coercion in the
3164 autogenerated accessors
3166 * Moose::Meta::Class
3167 - adding support for coercion in the
3168 instance construction
3170 * Moose::Meta::TypeConstraint
3171 * Moose::Meta::TypeCoercion
3172 - type constraints and coercions are now
3173 full fledges meta-objects
3175 0.01 Wed. March 15, 2006
3176 - Moooooooooooooooooose!!!