1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * An internals change in 0.97 broke role application to an instance in some
9 cases. The bug occurred when two different roles were applied to different
10 instances of the same class. (Rafael Kitover)
17 * Calling ->reinitialize on a cached anonymous class destroyed the cache,
18 causing the class to go out of scope unexpectedly. This could easily
19 happen at a distance by applying a metarole to an anonymous class. (Dave
26 * ScalarRef is now a parameterized type. You can now specify a type
27 constraint for whatever the reference points to. (Closes RT#50857)
28 (Michael G. Schwern, Florian Ragwitz)
32 * ScalarRef now accepts references to other references. (Closes RT#50934)
39 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method, in
40 addition to execute, to be able to call a code attribute as a method.
45 * Moose::Object::does no longer checks the entire inheritance tree, since
46 Moose::Meta::Class::does_role already does this. (doy)
47 * Moose::Util::add_method_modifier (and subsequently the sugar functions Moose::before,
48 Moose::after, and Moose::around) can now accept arrayrefs, with the same
49 behavior as lists. Types other than arrayref and regexp result in an error.
52 0.94 Mon, Jan 18, 2010
56 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
60 * Improved support for anonymous roles by changing various APIs to take
61 Moose::Meta::Role objects as well as role names. This included
63 - Moose::Meta::Class->does_role
64 - Moose::Meta::Role->does_role
65 - Moose::Util::does_role
66 - Moose::Util::apply_all_roles
67 - Moose::Util::ensure_all_roles
68 - Moose::Util::search_class_by_role
70 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
74 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
75 work as long as the accessor method names are explicitly set to valid Perl
76 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
79 0.93_03 Tue, Jan 5, 2010
83 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
84 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
87 0.93_02 Tue, Jan 5, 2010
91 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
92 testers. (Dave Rolsky)
95 0.93_01 Mon, Jan 4, 2010
99 See Moose::Manual::Delta for more details on backwards compatiblity issues.
101 * Role attributes are now objects of the Moose::Meta::Role::Attribute
102 class. (Dave Rolsky).
104 * There were major changes to how metaroles are applied. We now distinguish
105 between metaroles for classes vs those for roles. See the
106 Moose::Util::MetaRole docs for details. (Dave Rolsky)
108 * The old MetaRole API has been deprecated, but will continue to
109 work. However, if you are applying an attribute metaclass role, this may
110 break because of the fact that roles now have an attribute metaclass
113 * Moose::Util::MetaRole::apply_metaclass_roles is now called
114 apply_metaroles. The old name is deprecated. Dave Rolsky>
116 * The unimport subs created by Moose::Exporter now clean up re-exported
117 functions like blessed and confess, unless the caller imported them from
118 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
120 [ENHANCEMENTS AND BUG FIXES]
122 * Changed the Str constraint to accept magic lvalue strings like one gets from
123 substr et al, again. (sorear)
125 * Sped up the type constraint parsing regex. (Sam Vilain)
127 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
130 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
131 easier testing of TypeConstraints from the command line. (perigrin)
133 * Added a with_immutable test function to Test::Moose, to run a block of tests
134 with and without certain classes being immutable. (doy)
136 * We now use Module::Install extensions explicitly to avoid confusing errors
137 if they're not installed. We use Module::Install::AuthorRequires to stop
138 test extraction and general failures if you don't have the author side
139 dependencies installed.
141 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
142 #51791. (Amir E. Aharoni)
145 0.93 Thu, Nov 19, 2009
147 - Calling $object->new() is no longer deprecated, and no longer
151 - The get_attribute_map method is now deprecated. (Dave Rolsky)
153 * Moose::Meta::Method::Delegation
154 - Preserve variable aliasing in @_ for delegated methods, so that
155 altering @_ affects the passed value. (doy)
157 * Moose::Util::TypeConstraints
158 - Allow array refs for non-anonymous form of enum and duck_type, not
159 just anonymous. The non-arrayref forms may be removed in the
161 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
162 - Properly document Int being a subtype of Str. (doy)
165 - Moose::Exporter using modules can now export their functions to the
166 main package. This applied to Moose and Moose::Role, among
167 others. (nothingmuch)
169 * Moose::Meta::Attribute
170 - Don't remove attribute accessors we never installed, during
171 remove_accessors. (doy)
173 * Moose::Meta::Attribute::Native::Trait::Array
174 - Don't bypass prototype checking when calling List::Util::first, to
175 avoid a segfault when it is called with a non-code argument. (doy)
177 * Moose::Meta::Attribute::Native::Trait::Code
178 - Fix passing arguments to code execute helpers. (doy)
180 0.92 Tue, Sep 22, 2009
181 * Moose::Util::TypeConstraints
182 - added the match_on_type operator (Stevan)
183 - added tests and docs for this (Stevan)
186 - Metaclass compat fixing should already happen recursively, there's no
187 need to explicitly walk up the inheritance tree. (doy)
189 * Moose::Meta::Attribute
190 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
192 0.91 Thu, Sep 17, 2009
194 - Don't import any functions, in order to avoid polluting our namespace
195 with things that can look like methods (blessed, try, etc)
198 * Moose::Meta::Method::Constructor
199 - The generated code needs to called Scalar::Util::blessed by its
200 fully-qualified name or else Perl can interpret the call to blessed as
201 an indirect method call. This broke Search::GIN, which in turn broke
202 KiokuDB. (nothingmuch)
204 0.90 Tue, Sep 15, 2009
205 * Moose::Meta::Attribute::Native::Trait::Counter
206 * Moose::Meta::Attribute::Native::Trait::String
207 - For these two traits, an attribute which did not explicitly provide
208 methods to handles magically ended up delegating *all* the helper
209 methods. This has been removed. You must be explicit in your handles
210 declaration for all Native Traits. (Dave Rolsky)
213 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
214 sure to rethrow its error message. However, we also localize $@ before
215 this so that if all the DEMOLISH methods success, the value of $@ will
216 be preserved. (nothingmuch and Dave Rolsky)
217 - We now also localize $? during object destruction. (nothingmuch and
219 - The handling of DEMOLISH methods was broken for immutablized classes,
220 which were not receiving the value of
221 Devel::GlobalDestruction::in_global_destruction.
222 - These two fixes address some of RT #48271, reported by Zefram.
223 - This is all now documented in Moose::Manual::Construction.
224 - Calling $object->new() is now deprecated. A warning will be
228 - Added more hooks to customize how roles are applied. The role
229 summation class, used to create composite roles, can now be changed
230 and/or have meta-roles applied to it. (rafl)
231 - The get_method_list method no longer explicitly excludes the "meta"
232 method. This was a hack that has been replaced by better hacks. (Dave
235 * Moose::Meta::Method::Delegation
236 - fixed delegated methods to make sure that any modifiers attached to
237 the accessor being delegated on will be called (Stevan)
238 - added tests for this (Stevan)
241 - Moose no longer warns when a class that is being made immutable has
242 mutable ancestors. While in theory this is a good thing to warn about,
243 we found so many exceptions to this that doing this properly became
246 0.89_02 Thu, Sep 10, 2009
247 * Moose::Meta::Attribute::Native
248 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
250 * Moose::Meta::Attribute::Native::Trait::Array
251 - Added a number of functions from List::Util and List::MoreUtils,
252 including reduce, shuffle, uniq, and natatime. (doy)
255 - This module will now generate an init_meta method for your exporting
256 class if you pass it options for
257 Moose::Util::MetaRole::apply_metaclass_roles or
258 apply_base_class_roles. This eliminates a lot of repetitive
259 boilerplate for typical MooseX modules. (doy).
260 - Documented the with_meta feature, which is a replacement for
261 with_caller. This feature was added by josh a while ago.
262 - The with_caller feature is now deprecated, but will not issue a
263 warning yet. (Dave Rolsky)
264 - If you try to wrap/export a subroutine which doesn't actually exist,
265 Moose::Exporter will warn you about this. (doy)
267 * Moose::Meta::Role::Application::ToRole
268 - When a role aliased a method from another role, it was only getting
269 the new (aliased) name, not the original name. This differed from what
270 happens when a class aliases a role's methods. If you _only_ want the
271 aliased name, make sure to also exclue the original name. (Dave
274 0.89_01 Wed Sep 2, 2009
275 * Moose::Meta::Attribute
276 - Added the currying syntax for delegation from AttributeHelpers to the
277 existing delegation API. (hdp)
279 * Moose::Meta::Attribute::Native
280 - We have merged the functionality of MooseX::AttributeHelpers into the
281 Moose core with some API tweaks. You can continue to use
282 MooseX::AttributeHelpers, but it will not be maintained except
283 (perhaps) for critical bug fixes in the future. See
284 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
287 * Moose::Error::Croak
288 * Moose::Error::Confess
289 - Clarify documentation on how to use different error-throwing
290 modules. (Curtis Jewell)
293 - Correct POD for builder to point to Recipe8, not 9. (gphat)
296 - When a nonexistent sub name is passed to as_is, with_caller, or
297 with_meta, throw a warning and skip the exporting, rather than
298 installing a broken sub. (doy)
301 - Moose now warns if you call C<make_immutable> for a class with mutable
304 0.89 Thu Aug 13, 2009
305 * Moose::Manual::Attributes
306 - Clarify "is", include discussion of "bare". (Sartak)
308 * Moose::Meta::Role::Method::Conflicting
309 * Moose::Meta::Role::Application::ToClass
310 - For the first set of roles involved in a conflict, report all
311 unresolved method conflicts, not just the first method. Fixes #47210
312 reported by Ovid. (Sartak)
314 * Moose::Meta::TypeConstraint
315 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
318 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
320 - Allow specifying role options (alias, excludes, MXRP stuff) in the
321 arrayref passed to "use Moose -traits" (doy)
324 - Add functions meta_class_alias and meta_attribute_alias for creating
325 aliases for class and attribute metaclasses and metatraits. (doy)
327 * Moose::Meta::Attribute
328 * Moose::Meta::Method::Accessor
329 - A trigger now receives the old value as a second argument, if the
330 attribute had one. (Dave Rolsky)
332 * Moose::Meta::Method::Constructor
333 - Fix a bug with $obj->new when $obj has stringify overloading.
334 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
335 - However, we will probably deprecate $obj->new, so please don't start
336 using it for new code!
338 * Moose::Meta::Role::Application
339 * Moose::Meta::Role::Application::RoleSummation
340 - Rename alias and excludes to -alias and -excludes (but keep the old
341 names for now, for backcompat) (doy)
343 0.88 Fri Jul 24, 2009
344 * Moose::Manual::Contributing
345 - Re-write the Moose::Manual::Contributing document to reflect
346 the new layout and methods of work for the Git repository. All
347 work now should be done in topic branches and reviewed by a
348 core committer before being applied to master. All releases
349 are done by a cabal member and merged from master to
350 stable. This plan was devised by Yuval, blame him. (perigrin)
353 - Create metaclass attributes for the different role application
356 * Moose::Util::MetaRole
357 - Allow applying roles to a meta role's role application
360 * Moose::Meta::Attribute
361 - Add weak_ref to allowed options for "has '+foo'" (mst)
363 * Moose::Meta::Method::Accessor
364 - No longer uses inline_slot_access in accessors, to support
365 non-lvalue-based meta instances. (sorear)
368 * Moose::Meta::Method::Delegation
369 - Once again allow class names as well as objects for
370 delegation. This was changed in 0.86.
373 * Moose::Meta::Class::Immutable::Trait
374 - Fixes to work with the latest Class::MOP.
376 * Moose::Meta::Method::Delegation
377 - Delegation now dies with a more useful error message if the
378 attribute's accessor returns something defined but
381 0.85 Fri, Jun 26, 2009
382 * Moose::Meta::Attribute
383 - The warning for 'no associated methods' is now split out into
384 the _check_associated_methods method, so that extensions can
385 safely call 'after install_accessors => ...'. This fixes a
386 warning from MooseX::AttributeHelpers. (hdp)
388 0.84 Fri, Jun 26, 2009
390 - has now sets definition_context for attributes defined in
393 * Moose::Meta::Attribute
394 - When adding an attribute to a metaclass, if the attribute has
395 no associated methods, it will give a deprecation
397 - Methods generated by delegation were not being added to
398 associated_methods. (hdp)
399 - Attribute accessors (reader, writer, accessor, predicate,
400 clearer) now warn if they overwrite an existing method. (doy)
401 - Attribute constructors now warn very noisily about unknown (or
402 misspelled) arguments
404 * Moose::Util::TypeConstraints
405 - Deprecated the totally useless Role type name, which just
406 checked if $object->can('does'). Note that this is _not_ the
407 same as a type created by calling role_type('RoleName').
409 * Moose::Util::TypeConstraints
410 * Moose::Meta::TypeConstraint::DuckType
411 - Reify duck type from a regular subtype into an actual class
413 - Document this because Sartak did all my work for me
416 * Moose::Meta::Attribute
417 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
418 it is just a list of methods (Sartak)
421 - The get_*_method_modifiers methods would die if the role had
422 no modifiers of the given type (Robert Buels).
424 0.83 Tue, Jun 23, 2009
426 - Fix _construct_instance not setting the special __MOP__ object
427 key in instances of anon classes. (doy)
429 0.82 Sun, Jun 21, 2009
430 * Moose::Manual::Types
431 - Mention MooseX::Types early to avoid users falling down the
432 string parsing rathole (mst)
434 * Moose::Manual::MooseX
435 - Add warnings about class-level extensions and mention considering
436 using plain objects instead
438 0.81 Sun, Jun 7, 2009
439 * Bumped our Class::MOP prereq to the latest version (0.85), since
442 0.80 Sat, Jun 6, 2009
444 - Add FAQ about the coercion change from 0.76 because it came up
445 three times today (perigrin)
446 - Win doy $10 dollars because Sartak didn't think anybody
447 would document this fast enough (perigrin)
449 * Moose::Meta::Method::Destructor
450 - Inline a DESTROY method even if there are no DEMOLISH methods
451 to prevent unnecessary introspection in
452 Moose::Object::DEMOLISHALL
455 - A role's required methods are now represented by
456 Moose::Meta::Role::Method::Required objects. Conflicts are now
457 represented by Moose::Meta::Role::Method::Conflicting
458 objects. The benefit for end-users in that unresolved
459 conflicts generate different, more instructive, errors,
460 resolving Ovid's #44895. (Sartak)
463 - Improve the error message of "extends" as suggested by Adam
464 Kennedy and confound (Sartak)
465 - Link to Moose::Manual::Roles from Moose::Role as we now have
466 excellent documentation (Adam Kennedy)
469 - Update test suite for subname change in Class::MOP
471 - Add TODO test for infinite recursion in Moose::Meta::Class
474 0.79 Wed, May 13, 2009
476 - More fixes for Win32 problems. Reported by Robert Krimen.
479 - The DEMOLISHALL method could still blow up in some cases
480 during global destruction. This method has been made more
481 resilient in the face of global destruction's random garbage
485 - If you "also" a module that isn't loaded, the error message
486 now acknowledges that (Sartak)
489 - When your ->meta method does not return a Moose::Meta::Class,
490 the error message gave the wrong output (Sartak)
492 0.78 Tue, May 12, 2009
493 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
494 - Merged these documents into what is now Moose::Manual::FAQ
497 - Moved to Moose::Manual::Unsweetened
499 * Moose::Cookbook::Basics::Recipes 9-12
500 - Renamed to be 8-11, since recipe 8 did not exist
503 - Make Moose::Exporter import strict and warnings into packages
507 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
508 methods during global destruction (doy)
511 * Moose::Meta::Role::Application::ToClass
512 - Track the Role::Application objects created during class-role
516 - Fix metaclass incompatibility errors when extending a vanilla perl
517 class which isa Moose class with a metaclass role applied (t0m)
520 - Add a role-combination hook, _role_for_combination, for the
521 benefit of MooseX::Role::Parameterized (Sartak)
524 - Some tests were failing on Win32 because they explicit checked
525 warning output for newlines. Reported by Nickolay Platonov.
527 0.77 Sat, May 2, 2009
529 - Add explicit use of Devel::GlobalDestruction and Sub::Name
533 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
534 or not we are currently in global destruction (doy)
535 - Add explicit use of Devel::GlobalDestruction and Sub::Name
538 * Moose::Cookbook::FAQ
539 - Reworked much of the existing content to be more useful to
540 modern Moose hackers (Sartak)
543 - Depend on Class::MOP 0.83 instead of 0.82_01.
545 0.76 Mon, April 27, 2009
546 * Moose::Meta::TypeConstraint
547 - Do not run coercions in coerce() if the value already passes the type
550 * Moose::Meta::TypeConstraint::Class
551 - In validation error messages, specifically say that the value is not
552 an instance of the class. This should alleviate some frustrating
553 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
555 * Moose::Meta::Role::Application::ToClass
556 - Revert the class-overrides-role warning in favor of a solution outside
557 of the Moose core (Sartak)
560 - Make Test::Output optional again, since it's only used in a few files
563 0.75_01 Thu, April 23, 2009
564 * Moose::Meta::Role::Application::ToClass
565 - Moose now warns about each class overriding methods from roles it
569 - Warnings tests have standardized on Test::Output which is now an
570 unconditionally dependency (Sartak)
573 - Changes to immutabilization to work with Class::MOP 0.82_01+.
575 0.75 Mon, April 20, 2009
578 - Move validation of not inheriting from roles from Moose::extends to
579 Moose::Meta::Class::superclasses (doy)
582 - add ensure_all_roles() function to encapsulate the common "apply this
583 role unless the object already does it" pattern (hdp)
586 - Users can now select a different metaclass with the "-metaclass"
587 option to import, for classes and roles (Sartak)
590 - Make method_metaclass an attr so that it can accept a metarole
593 0.74 Tue, April 7, 2009
595 * Moose::Meta::Method::Destructor
596 - Include stack traces in the deprecation warnings.
600 - Removed the long-deprecated _apply_all_roles method.
602 * Moose::Meta::TypeConstraint
603 - Removed the long-deprecated union method.
606 0.73_02 Mon, April 6, 2009
607 * More deprecations and renamings
608 - Moose::Meta::Method::Constructor
609 - initialize_body => _initialize_body (this is always called
610 when an object is constructed)
613 - The DEMOLISHALL method could throw an exception during global
614 destruction, meaning that your class's DEMOLISH methods would
615 not be properly called. Reported by t0m.
617 * Moose::Meta::Method::Destructor
618 - Destructor inlining was totally broken by the change to the
619 is_needed method in 0.72_01. Now there is a test for this
620 feature, and it works again.
623 - Bold the word 'not' in the POD for find_meta (t0m)
625 0.73_01 Sun, April 5, 2009
627 - Call user_class->meta in fewer places, with the eventual goal
628 of allowing the user to rename or exclude ->meta
629 altogether. Instead uses Class::MOP::class_of. (Sartak)
631 * Moose::Meta::Method::Accessor
632 - If an attribute had a lazy default, and that value did not
633 pass the attribute's type constraint, it did not get the
634 message from the type constraint, instead using a generic
635 message. Test provided by perigrin.
637 * Moose::Util::TypeConstraints
638 - Add duck_type keyword. It's sugar over making sure an object
639 can() a list of methods. This is easier than jrockway's
640 suggestion to fork all of CPAN. (perigrin)
641 - add tests and documentation (perigrin)
644 - Document the fact that init_meta() returns the target class's
645 metaclass object. (hdp)
647 * Moose::Cookbook::Extending::Recipe1
648 * Moose::Cookbook::Extending::Recipe2
649 * Moose::Cookbook::Extending::Recipe3
650 * Moose::Cookbook::Extending::Recipe4
651 - Make init_meta() examples explicitly return the metaclass and
652 point out this fact. (hdp)
654 * Moose::Cookbook::Basics::Recipe12
655 - A new recipe, creating a custom meta-method class.
657 * Moose::Cookbook::Meta::Recipe6
658 - A new recipe, creating a custom meta-method class.
661 * Moose::Meta::Method::Constructor
662 - Attribute triggers no longer receive the meta-attribute object
663 as an argument in any circumstance. Previously, triggers
664 called during instance construction were passed the
665 meta-attribute, but triggers called by normal accessors were
666 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
668 * Moose::Manual::Attributes
669 - Remove references to triggers receving the meta-attribute object as an
672 * Moose::Cookbook::FAQ
673 - Remove recommendation for deprecated Moose::Policy and
674 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
677 * Many methods have been renamed with a leading underscore, and a
678 few have been deprecated entirely. The methods with a leading
679 underscore are consider "internals only". People writing
680 subclasses or extensions to Moose should feel free to override
681 them, but they are not for "public" use.
684 - check_metaclass_compatibility => _check_metaclass_compatibility
686 - Moose::Meta::Method::Accessor
687 - initialize_body => _initialize_body (this is always called
688 when an object is constructed)
689 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
691 - Moose::Meta::Method::Constructor
692 - initialize_body => _initialize_body (this is always called
693 when an object is constructed)
694 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
695 - attributes => _attributes (now inherited from parent)
696 - meta_instance => _meta_instance (now inherited from parent)
699 - alias_method is deprecated. Use add_method
701 0.73 Fri, March 29, 2009
702 * No changes from 0.72_01.
704 0.72_01 Thu, March 26, 2009
706 - Almost every module has complete API documentation. A few
707 methods (and even whole classes) have been intentionally
708 excluded pending some rethinking of their APIs.
710 * Moose::Util::TypeConstraints
711 - Calling subtype with a name as the only argument is now an
712 exception. If you want an anonymous subtype do:
714 my $subtype = subtype as 'Foo';
716 * Moose::Cookbook::Meta::Recipe7
717 - A new recipe, creating a custom meta-instance class.
719 * Moose::Cookbook::Basics::Recipe5
720 - Fix various typos and mistakes. Includes a patch from Radu
723 * Moose::Cookbook::Basics::Recipe9
724 - Link to this recipe from Moose.pm's builder blurb
727 - When wrapping a function with a prototype, Moose::Exporter now
728 makes sure the wrapped function still has the same
729 prototype. (Daisuke Maki)
731 * Moose::Meta::Attribute
732 - Allow a subclass to set lazy_build for an inherited
736 - Explicitly depend on Data::OptList. We already had this dependency
737 via Sub::Exporter, but since we're using it directly we're
738 better off with it listed. (Sartak)
740 * Moose::Meta::Method::Constructor
741 - Make it easier to subclass the inlining behaviour. (Ash
744 * Moose::Manual::Delta
745 - Details significant changes in the history of Moose, along
746 with recommended workarounds.
748 * Moose::Manual::Contributing
749 - Contributor's guide to Moose.
751 * Moose::Meta::Method::Constructor
752 - The long-deprecated intialize_body method has been removed
753 (yes, spelled like that).
755 * Moose::Meta::Method::Destructor
756 - This is_needed method is now always a class method.
759 - Changes to the internals of how make_immutable works to match
760 changes in latest Class::MOP.
762 0.72 Mon, February 23, 2009
764 * Moose::Meta::Method::Constructor
765 - A mutable class accepted Foo->new(undef) without complaint,
766 while an immutable class would blow up with an unhelpful
767 error. Now, in both cases we throw a helpful error
768 instead. Reported by doy.
770 0.71_01 Sun, February 22, 2009
772 - Hopefully fixed some POD errors in a few recipes that caused
773 them to display weird on search.cpan.org.
775 * Moose::Util::TypeConstraints
776 - Calling type or subtype without the sugar helpers (as, where,
777 message) is now deprecated.
778 - The subtype function tried hard to guess what you meant, but
779 often got it wrong. For example:
781 my $subtype = subtype as 'ArrayRef[Object]';
783 This caused an error in the past, but now works as you'd
787 - Make sure Moose.pm is loaded before calling
788 Moose->throw_error. This wasn't normally an issue, but could
789 bite you in weird cases.
791 0.71 Thu, February 19, 2009
792 * Moose::Cookbook::Basics::Recipe11
793 - A new recipe which demonstrates the use of BUILDARGS and
796 * Moose::Cookbook::Roles::Recipe3
797 - A new recipe, applying a role to an object instance. (Dave
801 - Allow overriding specific keywords from "also" packages. (doy)
804 - Replace hardcoded cookbook tests with Test::Inline to ensure
805 the tests match the actual code in the recipes. (Dave Rolsky)
808 - Working on the above turned up a number of little bugs in the
809 recipe code. (Dave Rolsky)
811 * Moose::Util::TypeConstraints::Optimized
812 - Just use Class::MOP for the optimized ClassName check. (Dave
815 0.70 Sat, February 14, 2009
816 * Moose::Util::TypeConstraints
817 - Added the RoleName type (stevan)
818 - added tests for this (stevan)
820 * Moose::Cookbook::Basics::Recipe3
821 - Updated the before qw[left right] sub to be a little more
822 defensive about what it accepts (stevan)
823 - added more tests to t/000_recipies/basics/003_binary_tree.t
827 - We now always call DEMOLISHALL, even if a class does not
828 define DEMOLISH. This makes sure that method modifiers on
829 DEMOLISHALL work as expected. (doy)
830 - added tests for this (EvanCarroll)
832 * Moose::Util::MetaRole
833 - Accept roles for the wrapped_method_metaclass (rafl)
834 - added tests for this (rafl)
836 * Moose::Meta::Attribute
837 - We no longer pass the meta-attribute object as a final
838 argument to triggers. This actually changed for inlined code a
839 while back, but the non-inlined version and the docs were
843 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
844 they require 0.11. (Dave Rolsky)
847 - Lots of small changes to the manual, cookbook, and
848 elsewhere. These were based on feedback from various
849 users, too many to list here. (Dave Rolsky)
851 0.69 Thu, February 12, 2009
853 - Make some keyword errors use throw_error instead of croak
854 since Moose::Exporter wraps keywords now (Sartak)
857 - Revised every recipe for style and clarity. Also moved some
858 documentation out of cookbook recipes and into Moose::Manual
859 pages. This work was funded as part of the Moose docs grant
860 from TPF. (Dave Rolsky)
862 * Moose::Meta::Method::Delegation
863 - If the attribute doing the delegation was not populated, the
864 error message did not specify the attribute name
867 0.68 Wed, February 4, 2009
869 - Many spelling, typo, and formatting fixes by daxim.
871 * Moose::Manual::Attributes
872 - The NAME section in the POD used "Attribute" so search.cpan
873 didn't resolve links from other documents properly.
875 * Moose::Meta::Method::Overriden
876 - Now properly spelled as Overridden. Thanks to daxim for
879 0.67 Tue, February 3, 2009
881 - Lots of little typo fixes and a few clarifications. Several
882 pages didn't have proper titles, and so weren't actually
883 visible on search.cpan.org. Thanks to hanekomu for a variety
884 of fixes and formatting improvements.
886 0.66 Tue, February 3, 2009
888 - This is a brand new, extensive manual for Moose. This aims to
889 provide a complete introduction to all of Moose's
890 features. This work was funded as part of the Moose docs grant
891 from TPF. (Dave Rolsky)
893 * Moose::Meta::Attribute
894 - Added a delegation_metaclass method to replace a hard-coded
895 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
897 * Moose::Util::TypeConstraints
898 - If you created a subtype and passed a parent that Moose didn't
899 know about, it simply ignored the parent. Now it automatically
900 creates the parent as a class type. This may not be what you
901 want, but is less broken than before. (Dave Rolsky)
903 * Moose::Util::TypeConstraints
904 - This module tried throw errors by calling Moose->throw_error,
905 but it did not ensure that Moose was loaded first. This could
906 cause very unhelpful errors when it tried to throw an error
907 before Moose was loaded. (Dave Rolsky)
909 * Moose::Util::TypeConstraints
910 - You could declare a name with subtype such as "Foo!Bar" that
911 would be allowed, but if you used it in a parameterized type
912 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
913 vetting on names created via the sugar functions, so that they
914 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
916 0.65 Thu, January 22, 2008
917 * Moose and Moose::Meta::Method::Overridden
918 - If an overridden method called super(), and then the
919 superclass's method (not overridden) _also_ called super(),
920 Moose went into an endless recursion loop. Test provided by
921 Chris Prather. (Dave Rolsky)
923 * Moose::Meta::TypeConstraint
924 - All methods are now documented. (gphat)
926 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
927 - Fixed some bogus failures that occurred because we tried to
928 validate filesystem paths in a very ad-hoc and
929 not-quite-correct way. (Dave Rolsky)
931 * Moose::Util::TypeConstraints
932 - Added maybe_type to exports. See docs for details. (rjbs)
935 - Added Moose::Util::TypeConstraints to the SEE ALSO
939 - Methods created via an attribute can now fulfill a "requires"
940 declaration for a role. (nothingmuch)
942 * Moose::Meta::Method::*
943 - Stack traces from inlined code will now report its line and
944 file as being in your class, as opposed to in Moose
947 0.64 Wed, December 31, 2008
948 * Moose::Meta::Method::Accessor
949 - Always inline predicate and clearer methods (Sartak)
951 * Moose::Meta::Attribute
952 - Support for parameterized traits (Sartak)
953 - verify_against_type_constraint method to avoid duplication
954 and enhance extensibility (Sartak)
957 - Tests (but no support yet) for parameterized traits (Sartak)
960 - Require Class::MOP 0.75+, which has the side effect of making
961 sure we work on Win32. (Dave Rolsky)
963 0.63 Mon, December 8, 2008
965 - Some small grammar tweaks and bug fixes in non-Moose example
968 0.62_02 Fri, December 5, 2008
969 * Moose::Meta::Role::Application::ToClass
970 - When a class does not provide all of a role's required
971 methods, the error thrown now mentions all of the missing
972 methods, as opposed to just the first one found. Requested by
973 Curtis Poe (RT #41119). (Dave Rolsky)
975 * Moose::Meta::Method::Constructor
976 - Moose will no longer inline a constructor for your class
977 unless it inherits its constructor from Moose::Object, and
978 will warn when it doesn't inline. If you want to force
979 inlining anyway, pass "replace_constructor => 1" to
980 make_immutable. Addresses RT #40968, reported by Jon
981 Swartz. (Dave Rolsky)
982 - The quoting of default values could be broken if the default
983 contained a single quote ('). Now we use quotemeta to escape
984 anything potentially dangerous in the defaults. (Dave Rolsky)
986 0.62_01 Wed, December 3, 2008
988 - use the method->execute API for BUILDALL
989 and DEMOLISHALL (Sartak)
991 * Moose::Util::TypeConstraints
992 - We now make all the type constraint meta classes immutable
993 before creating the default types provided by Moose. This
994 should make loading Moose a little faster. (Dave Rolsky)
996 0.62 Wed November 26, 2008
997 * Moose::Meta::Role::Application::ToClass
998 Moose::Meta::Role::Application::ToRole
999 - fixed issues where excluding and aliasing the
1000 same methods for a single role did not work
1001 right (worked just fine with multiple
1003 - added test for this (stevan)
1005 * Moose::Meta::Role::Application::RoleSummation
1006 - fixed the error message when trying to compose
1007 a role with a role it excludes (Sartak)
1010 - Catch another case where recursion caused the value
1011 of $CALLER to be stamped on (t0m)
1012 - added test for this (t0m)
1015 - Remove the make_immutable keyword, which has been
1016 deprecated since April. It breaks metaclasses that
1017 use Moose without no Moose (Sartak)
1019 * Moose::Meta::Attribute
1020 - Removing an attribute from a class now also removes delegation
1021 (handles) methods installed for that attribute (t0m)
1022 - added test for this (t0m)
1024 * Moose::Meta::Method::Constructor
1025 - An attribute with a default that looked like a number (but was
1026 really a string) would accidentally be treated as a number
1027 when the constructor was made immutable (perigrin)
1028 - added test for this (perigrin)
1031 - create method for constructing a role
1032 dynamically (Sartak)
1033 - added test for this (Sartak)
1034 - anonymous roles! (Sartak)
1035 - added test for this (Sartak)
1038 - more consistent error messages (Sartak)
1040 * Moose::Cookbook::Roles::Recipe1
1041 - attempt to explain why a role that just requires
1042 methods is useful (Sartak)
1044 0.61 Fri November 7, 2008
1045 * Moose::Meta::Attribute
1046 - When passing a role to handles, it will be loaded if necessary
1049 * Moose::Meta::Class
1050 - Method objects returned by get_method (and other methods)
1051 Could end up being returned without an associated_metaclass
1052 attribute. Removing get_method_map, which is provided by
1053 Class::MOP::Class, fixed this. The Moose version did nothing
1054 different from its parent except introduce a bug. (Dave Rolsky)
1055 - added tests for this (jdv79)
1058 - Added a $VERSION to all .pm files which didn't have one. Fixes
1059 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1061 * Moose::Cookbook::Basics::Recipe4
1062 * Moose::Cookbook::Basics::Recipe6
1063 - These files had spaces on the first line of the SYNOPSIS, as
1064 opposed to a totally empty line. According to RT #40432, this
1065 confuses POD parsers. (Dave Rolsky)
1067 0.60 Fri October 24, 2008
1069 - Passing "-traits" when loading Moose caused the Moose.pm
1070 exports to be broken. Reported by t0m. (Dave Rolsky)
1071 - Tests for this bug. (t0m)
1074 - Change resolve_metaclass alias to use the new
1075 load_first_existing_class function. This makes it a lot
1076 simpler, and also around 5 times faster. (t0m)
1077 - Add caching to resolve_metaclass_alias, which gives an order
1078 of magnitude speedup to things which repeatedly call the
1079 Moose::Meta::Attribute->does method, notably MooseX::Storage
1082 * Moose::Util::TypeConstraint
1083 - Put back the changes for parameterized constraints that
1084 shouldn't have been removed in 0.59. We still cannot parse
1085 them, but MooseX modules can create them in some other
1086 way. See the 0.58 changes for more details. (jnapiorkowski)
1087 - Changed the way subtypes are created so that the job is
1088 delegated to a type constraint parent. This clears up some
1089 hardcoded checking and should allow correct subtypes of
1090 Moose::Meta::Type::Constraint. Don't rely on this new API too
1091 much (create_child_type) because it may go away in the
1092 future. (jnapiorkowski)
1094 * Moose::Meta::TypeConstraint::Union
1095 - Type constraint names are sorted as strings, not numbers.
1098 * Moose::Meta::TypeConstraint::Parameterizable
1099 - New parameterize method. This can be used as a factory method
1100 to make a new type constraint with a given parameterized
1101 type. (jnapiorkowski)
1102 - added tests (jnapiorkowski)
1104 0.59 Tue October 14, 2008
1106 - Add abridged documentation for builder/default/initializer/
1107 predicate, and link to more details sections in
1108 Class::MOP::Attribute. (t0m)
1110 * Moose::Util::TypeConstraints
1111 - removed prototypes from all but the &-based stuff (mst)
1113 * Moose::Util::TypeConstraints
1114 - Creating a anonymous subtype with both a constraint and a
1115 message failed with a very unhelpful error, but should just
1116 work. Reported by t0m. (Dave Rolsky)
1119 - Some tests that used Test::Warn if it was available failed
1120 with older versions of Test::Warn. Reported by Fayland. (Dave
1122 - Test firing behavior of triggers in relation to builder/default/
1124 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1125 kinds of supported type. (t0m)
1127 * Moose::Meta::Class
1128 - In create(), do not pass "roles" option to the superclass
1129 - added related test that creates an anon metaclass with
1130 a required attribute
1132 * Moose::Meta::TypeConstraint::Class
1133 * Moose::Meta::TypeConstraint::Role
1134 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1135 other types (as per change in 0.55_02). (t0m)
1137 * Moose::Meta::TypeConstraint::Registry
1138 - Fix warning when dealing with unknown type names (t0m)
1140 * Moose::Util::TypeConstraints
1141 - Reverted changes from 0.58 related to handle parameterized
1142 types. This caused random failures on BSD and Win32 systems,
1143 apparently related to the regex engine. This means that Moose
1144 can no longer parse structured type constraints like
1145 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1146 supported in a slightly different way via MooseX::Types some
1147 time in the future. (Dave Rolsky)
1149 0.58 Sat September 20, 2008
1150 !! This release has an incompatible change regarding !!
1151 !! how roles add methods to a class !!
1153 * Roles and role application
1154 ! Roles now add methods by calling add_method, not
1155 alias_method. They make sure to always provide a method
1156 object, which will be cloned internally. This means that it is
1157 now possible to track the source of a method provided by a
1158 role, and even follow its history through intermediate roles.
1160 This means that methods added by a role now show up when
1161 looking at a class's method list/map. (Dave Rolsky)
1164 - From this release on, we'll try to maintain a list of
1165 conflicting modules, and warn you if you have one
1166 installed. For example, this release conflicts with ...
1167 - MooseX::Singleton <= 0.11
1168 - MooseX::Params::Validate <= 0.05
1171 In general, we try to not break backwards compatibility for
1172 most Moose users, but MooseX modules and other code which
1173 extends Moose's metaclasses is often affected by very small
1174 changes in the Moose internals.
1176 * Moose::Meta::Method::Delegation
1177 * Moose::Meta::Attribute
1178 - Delegation methods now have their own method class. (Dave
1181 * Moose::Meta::TypeConstraint::Parameterizable
1182 - Added a new method 'parameterize' which is basically a factory
1183 for the containing constraint. This makes it easier to create
1184 new types of parameterized constraints. (jnapiorkowski)
1186 * Moose::Meta::TypeConstraint::Union
1187 - Changed the way Union types canonicalize their names to follow
1188 the normalized TC naming rules, which means we strip all
1189 whitespace. (jnapiorkowski)
1191 * Moose::Util::TypeConstraints
1192 - Parameter and Union args are now sorted, this makes Int|Str
1193 the same constraint as Str|Int. (jnapiorkowski)
1194 - Changes to the way Union types are parsed to more correctly
1195 stringify their names. (jnapiorkowski)
1196 - When creating a parameterized type, we now use the new
1197 parameterize method. (jnapiorkowski)
1198 - Incoming type constraint strings are now normalized to remove
1199 all whitespace differences. (jnapiorkowski)
1200 - Changed the way we parse type constraint strings so that we now
1201 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1202 constraints. This lays the foundation for more flexible type
1203 constraint implementations.
1205 * Tests and docs for all the above. (jnapiorkowski)
1209 - Moose::Exporter will no longer remove a subroutine that the
1210 exporting package re-exports. Moose re-exports the
1211 Carp::confess function, among others. The reasoning is that we
1212 cannot know whether you have also explicitly imported those
1213 functions for your own use, so we err on the safe side and
1214 always keep them. (Dave Rolsky)
1215 - added tests for this (rafl)
1217 * Moose::Meta::Class
1218 - Changes to how we fix metaclass compatibility that are much
1219 too complicated to go into. The summary is that Moose is much
1220 less likely to complain about metaclass incompatibility
1221 now. In particular, if two metaclasses differ because
1222 Moose::Util::MetaRole was used on the two corresponding
1223 classes, then the difference in roles is reconciled for the
1224 subclass's metaclass. (Dave Rolsky)
1225 - Squashed an warning in _process_attribute (thepler)
1228 - throw exceptions (sooner) for invalid attribute names (thepler)
1229 - added tests for this (thepler)
1231 * Moose::Util::MetaRole
1232 - If you explicitly set a constructor or destructor class for a
1233 metaclass object, and then applied roles to the metaclass,
1234 that explicitly set class would be lost and replaced with the
1237 * Moose::Meta::Class
1238 * Moose::Meta::Attribute
1239 * Moose::Meta::Method
1242 * Moose::Error::Default
1243 * Moose::Error::Croak
1244 * Moose::Error::Confess
1245 - All instances of confess() changed to use overridable
1246 C<throw_error> method. This method ultimately calls a class
1247 constructor, and you can change the class being called. In
1248 addition, errors now pass more information than just a string.
1249 The default C<error_class> behaves like C<Carp::confess>, so
1250 the behavior is not visibly different for end users.
1252 0.57 Wed September 3, 2008
1254 - A new bit of doc intended to introduce folks familiar with
1255 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1257 * Moose::Unsweetened
1258 - Shows examples of two classes, each done first with and then
1259 without Moose. This makes a nice parallel to
1260 Moose::Intro. (Dave Rolsky)
1262 * Moose::Util::TypeConstraints
1263 - Fixed a bug in find_or_parse_type_constraint so that it
1264 accepts a Moose::Meta::TypeConstraint object as the parent
1265 type, not just a name (jnapiorkowski)
1266 - added tests (jnapiorkowski)
1269 - If Sub::Name was not present, unimporting failed to actually
1270 remove some sugar subs, causing test failures (Dave Rolsky)
1272 0.56 Mon September 1, 2008
1273 For those not following the series of dev releases, there are
1274 several major changes in this release of Moose.
1275 ! Moose::init_meta should now be called as a method. See the
1278 - Major performance improvements by nothingmuch.
1280 - New modules for extension writers, Moose::Exporter and
1281 Moose::Util::MetaRole by Dave Rolsky.
1283 - Lots of doc improvements and additions, especially in the
1286 - Various bug fixes.
1288 * Removed all references to the experimental-but-no-longer-needed
1289 Moose::Meta::Role::Application::ToMetaclassInstance.
1291 * Require Class::MOP 0.65.
1293 0.55_04 Sat August 30, 2008
1294 * Moose::Util::MetaRole
1295 * Moose::Cookbook::Extending::Recipe2
1296 - This simplifies the application of roles to any meta class, as
1297 well as the base object class. Reimplemented metaclass traits
1298 using this module. (Dave Rolsky)
1300 * Moose::Cookbook::Extending::Recipe1
1301 - This a new recipe, an overview of various ways to write Moose
1302 extensions (Dave Rolsky)
1304 * Moose::Cookbook::Extending::Recipe3
1305 * Moose::Cookbook::Extending::Recipe4
1306 - These used to be Extending::Recipe1 and Extending::Recipe2,
1309 0.55_03 Fri August 29, 2008
1310 * No changes from 0.55_02 except increasing the Class::MOP
1311 dependency to 0.64_07.
1313 0.55_02 Fri August 29, 2008
1314 * Makefile.PL and Moose.pm
1315 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1317 * Moose::Util::TypeConstraints
1318 - Fix warnings from find_type_constraint if the type is not
1321 * Moose::Meta::TypeConstraint
1322 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1323 return false if the type you specify cannot be found in the
1324 type registry, rather than throwing an unhelpful and
1325 coincidental exception. (t0m).
1326 - added docs & test for this (t0m)
1328 * Moose::Meta::TypeConstraint::Registry
1329 - add_type_constraint now throws an exception if a parameter is
1331 - added docs & test for this (t0m)
1333 * Moose::Cookbook::FAQ
1334 - Added a faq entry on the difference between "role" and "trait"
1338 - Fixed a bug that caused role composition to not see a required
1339 method when that method was provided by another role being
1340 composed at the same time. (Dave Rolsky)
1341 - test and bug finding (tokuhirom)
1343 0.55_01 Wed August 20, 2008
1345 !! Calling Moose::init_meta as a function is now !!
1346 !! deprecated. Please see the Moose.pm docs for details. !!
1348 * Moose::Meta::Method::Constructor
1349 - Fix inlined constructor so that values produced by default
1350 or builder methods are coerced as required. (t0m)
1351 - added test for this (t0m)
1353 * Moose::Meta::Attribute
1354 - A lazy attribute with a default or builder did not attempt to
1355 coerce the default value. The immutable code _did_
1357 - added test for this (t0m)
1360 - This is a new helper module for writing "Moose-alike"
1361 modules. This should make the lives of MooseX module authors
1362 much easier. (Dave Rolsky)
1365 * Moose::Cookbook::Meta::Recipe5
1366 - Implemented metaclass traits (and wrote a recipe for it):
1368 use Moose -traits => 'Foo'
1370 This should make writing small Moose extensions a little
1371 easier (Dave Rolsky)
1373 * Moose::Cookbook::Basics::Recipe1
1374 - Removed any examples of direct hashref access, and applied an
1375 editorial axe to reduce verbosity. (Dave Rolsky)
1377 * Moose::Cookbook::Basics::Recipe1
1378 - Also applied an editorial axe here. (Dave Rolsky)
1381 * Moose::Cookbook::Extending::Recipe1
1382 * Moose::Cookbook::Extending::Recipe2
1383 - Rewrote extending and embedding moose documentation and
1384 recipes to use Moose::Exporter (Dave Rolsky)
1388 - These two modules now warn when you load them from the main
1389 package "main" package, because we will not export sugar to
1390 main. Previously it just did nothing. (Dave Rolsky)
1393 - Now provide an init_meta method just like Moose.pm, and you
1394 can call this to provide an alternate role metaclass. (Dave
1395 Rolsky and nothingmuch)
1396 - get_method_map now respects the package cache flag (nothingmuch)
1399 - Two new methods - add_method and wrap_method_body
1403 - Optimizations including allowing constructors to accept hash
1404 refs, making many more classes immutable, and making
1405 constructors immutable. (nothingmuch)
1407 0.55 Sun August 3, 2008
1408 * Moose::Meta::Attribute
1409 - breaking down the way 'handles' methods are
1410 created so that the process can be more easily
1411 overridden by subclasses (stevan)
1413 * Moose::Meta::TypeConstraint
1414 - fixing what is passed into a ->message with
1415 the type constraints (RT #37569)
1416 - added tests for this (Charles Alderman)
1418 * Moose::Util::TypeConstraints
1419 - fix coerce to accept anon types like subtype can (mst)
1422 - reorganized the recipes into sections - Basics, Roles, Meta,
1423 Extending - and wrote abstracts for each section (Dave Rolsky)
1425 * Moose::Cookbook::Basics::Recipe10
1426 - A new recipe that demonstrates operator overloading
1427 in combination with Moose. (bluefeet)
1429 * Moose::Cookbook::Meta::Recipe1
1430 - an introduction to what meta is and why you'd want to make
1431 your own metaclass extensions (Dave Rolsky)
1433 * Moose::Cookbook::Meta::Recipe4
1434 - a very simple metaclass example (Dave Rolsky)
1436 * Moose::Cookbook::Extending::Recipe1
1437 - how to write a Moose-alike module to use your own object base
1440 * Moose::Cookbook::Extending::Recipe2
1441 - how to write modules with an API just like C<Moose.pm> (Dave
1445 - Tons of fixes, both syntactical and grammatical (Dave
1446 Rolsky, Paul Fenwick)
1448 0.54 Thurs. July 3, 2008
1449 ... this is not my day today ...
1451 * Moose::Meta::Attribute
1452 - fixed legal_options_for_inheritance such that
1453 clone_and_inherit options still works for
1454 Class::MOP::Attribute objects and therefore
1455 does not break MooseX::AttributeHelpers
1458 0.53 Thurs. July 3, 2008
1459 * Whoops, I guess I should run 'make manifest' before
1460 actually releasing the module. No actual changes
1461 in this release, except the fact that it includes
1462 the changes that I didn't include in the last
1465 0.52 Thurs. July 3, 2008
1467 - added "FEATURE REQUESTS" section to the Moose docs
1468 to properly direct people (stevan) (RT #34333)
1469 - making 'extends' croak if it is passed a Role since
1470 this is not ever something you want to do
1471 (fixed by stevan, found by obra)
1472 - added tests for this (stevan)
1475 - adding support for DOES (as in UNIVERSAL::DOES)
1477 - added test for this
1479 * Moose::Meta::Attribute
1480 - added legal_options_for_inheritance (wreis)
1481 - added tests for this (wreis)
1483 * Moose::Cookbook::Snacks::*
1484 - removed some of the unfinished snacks that should
1485 not have been released yet. Added some more examples
1486 to the 'Keywords' snack. (stevan)
1488 * Moose::Cookbook::Style
1489 - added general Moose "style guide" of sorts to the
1490 cookbook (nothingmuch) (RT #34335)
1493 - added more BUILDARGS tests (stevan)
1495 0.51 Thurs. Jun 26, 2008
1497 - add unimport so "no Moose::Role" actually does
1500 * Moose::Meta::Role::Application::ToRole
1501 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1502 order to provide its own implementation, that method still got
1503 added to the list of required methods for consumers of
1504 RoleB. Now an aliased method is only added to the list of
1505 required methods if the role doing the aliasing does not
1506 provide its own implementation. See Recipe 11 for an example
1507 of all this. (Dave Rolsky)
1508 - added tests for this
1510 * Moose::Meta::Method::Constructor
1511 - when a single argument that wasn't a hashref was provided to
1512 an immutabilized constructor, the error message was very
1513 unhelpful, as opposed to the non-immutable error. Reported by
1515 - added test for this (Dave Rolsky)
1517 * Moose::Meta::Attribute
1518 - added support for meta_attr->does("ShortAlias") (sartak)
1519 - added tests for this (sartak)
1520 - moved the bulk of the `handles` handling to the new
1521 install_delegation method (Stevan)
1524 - Added BUILDARGS, a new step in new()
1526 * Moose::Meta::Role::Application::RoleSummation
1527 - fix typos no one ever sees (sartak)
1529 * Moose::Util::TypeConstraints
1530 * Moose::Meta::TypeConstraint
1531 * Moose::Meta::TypeCoercion
1532 - Attempt to work around the ??{ } vs. threads issue
1534 - Some null_constraint optimizations
1536 0.50 Thurs. Jun 11, 2008
1537 - Fixed a version number issue by bumping all modules
1540 0.49 Thurs. Jun 11, 2008
1541 !! This version now approx. 20-25% !!
1542 !! faster with new Class::MOP 0.59 !!
1544 * Moose::Meta::Attribute
1545 - fixed how the is => (ro|rw) works with
1546 custom defined reader, writer and accessor
1548 - added docs for this (TODO).
1549 - added tests for this (Thanks to Penfold)
1550 - added the custom attribute alias for regular
1551 Moose attributes which is "Moose"
1552 - fix builder and default both being used
1557 Moose::Meta::Attribute
1559 Moose::Meta::Role::Composite
1560 Moose::Util::TypeConstraints
1561 - switched usage of reftype to ref because
1565 - changing add_package_symbol to use the new
1569 - fixed how DEMOLISHALL is called so that it
1570 can be overrided in subclasses (thanks to Sartak)
1571 - added test for this (thanks to Sartak)
1573 * Moose::Util::TypeConstraints
1574 - move the ClassName type check code to
1575 Class::MOP::is_class_loaded (thanks to Sartak)
1577 * Moose::Cookbook::Recipe11
1578 - add tests for this (thanks to tokuhirom)
1580 0.48 Thurs. May 29, 2008
1581 (early morning release engineering)--
1583 - fixing the version in Moose::Meta::Method::Destructor
1584 which was causing the indexer to choke
1586 0.47 Thurs. May 29, 2008
1587 (late night release engineering)--
1589 - fixing the version is META.yml, no functional
1590 changes in this release
1592 0.46 Wed. May 28, 2008
1593 !! This version now approx. 20-25% !!
1594 !! faster with new Class::MOP 0.57 !!
1596 * Moose::Meta::Class
1597 - some optimizations of the &initialize method
1598 since it is called so often by &meta
1600 * Moose::Meta::Class
1602 - now use the get_all_package_symbols from the
1603 updated Class::MOP, test suite is now 10 seconds
1606 * Moose::Meta::Method::Destructor
1607 - is_needed can now also be called as a class
1608 method for immutablization to check if the
1609 destructor object even needs to be created
1612 * Moose::Meta::Method::Destructor
1613 Moose::Meta::Method::Constructor
1614 - added more descriptive error message to help
1615 keep people from wasting time tracking an error
1616 that is easily fixed by upgrading.
1618 0.45 Saturday, May 24, 2008
1620 - Because of work in Class::MOP 0.57, all
1621 XS based functionality is now optional
1622 and a Pure Perl version is supplied
1623 - the CLASS_MOP_NO_XS environment variable
1624 can now be used to force non-XS versions
1626 - several of the packages have been tweaked
1627 to take care of this, mostly we added
1628 support for the package_name and name
1629 variables in all the Method metaclasses
1630 - before/around/after method modifiers now
1631 support regexp matching of names
1632 (thanks to Takatoshi Kitano)
1633 - tests added for this
1634 - NOTE: this only works for classes, it
1635 is currently not supported in roles,
1636 but, ... patches welcome
1637 - All usage of Carp::confess have been replaced
1638 by Carp::croak in the "keyword" functions since
1639 the stack trace is usually not helpful
1642 - All usage of Carp::confess have been replaced
1643 by Carp::croak in the "keyword" functions since
1644 the stack trace is usually not helpful
1645 - The 'has' keyword for roles now accepts the
1646 same array ref form that Moose.pm does
1647 (has [qw/foo bar/] => (is => 'rw', ...))
1648 - added test for this
1650 * Moose::Meta::Attribute
1651 - trigger on a ro-attribute is no longer an
1652 error, as it's useful to trigger off of the
1655 * Moose::Meta::Class
1656 - added same 'add_package_symbol' fix as in
1660 - does_role now handles non-Moose classes
1662 - added tests for this
1663 - added the 'add_method_modifier' function
1664 (thanks to Takatoshi Kitano)
1666 * Moose::Util::TypeConstraints
1667 - subtypes of parameterizable types now are
1668 themselves parameterizable types
1670 * Moose::Meta::Method::Constructor
1671 - fixed bug where trigger was not being
1672 called by the inlined immutable
1674 - added test for this (thanks to Caelum)
1676 * Moose::Meta::Role::Application::ToInstance
1677 - now uses the metaclass of the instance
1678 (if possible) to create the anon-class
1679 (thanks Jonathan Rockway)
1681 * Moose::Cookbook::Recipe22
1682 - added the meta-attribute trait recipe
1686 - fixed hash-ordering test bug that was
1687 causing occasional cpantester failures
1688 - renamed the t/000_recipe/*.t tests to be
1689 more descriptive (thanks to Sartak)
1691 0.44 Sat. May 10, 2008
1693 - made make_immutable warning cluck to
1694 show where the error is (thanks mst)
1697 - BUILDALL and DEMOLISHALL now call
1698 ->body when looping through the
1699 methods, to avoid the overloaded
1701 - fixed issue where DEMOLISHALL was
1702 eating the $@ values, and so not
1703 working correctly, it still kind of
1704 eats them, but so does vanilla perl
1705 - added tests for this
1707 * Moose::Cookbook::Recipe7
1708 - added new recipe for immutable
1709 functionality (thanks Dave Rolsky)
1711 * Moose::Cookbook::Recipe9
1712 - added new recipe for builder and
1713 lazy_build (thanks Dave Rolsky)
1715 * Moose::Cookbook::Recipe11
1716 - added new recipe for method aliasing
1717 and exclusion with Roles (thanks Dave Rolsky)
1720 - fixed Win32 test failure (thanks spicyjack)
1722 ~ removed Build.PL and Module::Build compat
1723 since Module::Install has done that.
1725 0.43 Wed. April, 30, 2008
1727 drink more coffee before
1728 doing release engineering
1730 - whoops, forgot to do the smolder tests,
1731 and we broke some of the custom meta-attr
1732 modules. This fixes that.
1734 0.42 Mon. April 28, 2008
1735 - some bad tests slipped by, nothing else
1736 changed in this release (cpantesters++)
1738 - upped the Class::MOP dependency to 0.55
1739 since we have tests which need the C3
1742 0.41 Mon. April 28, 2008
1743 ~~ numerous documentation updates ~~
1745 - Changed all usage of die to Carp::croak for better
1746 error reporting (initial patch by Tod Hagan)
1748 ** IMPORTANT NOTE **
1749 - the make_immutable keyword is now deprecated, don't
1750 use it in any new code and please fix your old code
1751 as well. There will be 2 releases, and then it will
1757 - refactored the way inner and super work to avoid
1758 any method/@ISA cache penalty (nothingmuch)
1760 * Moose::Meta::Class
1761 - fixing &new_object to make sure trigger gets the
1762 coerced value (spotted by Charles Alderman on the
1764 - added test for this
1766 * Moose::Meta::Method::Constructor
1767 - immutable classes which had non-lazy attributes were calling
1768 the default generating sub twice in the constructor. (bug
1769 found by Jesse Luehrs, fixed by Dave Rolsky)
1770 - added tests for this (Dave Rolsky)
1771 - fix typo in initialize_body method (nothingmuch)
1773 * Moose::Meta::Method::Destructor
1774 - fix typo in initialize_body method (nothingmuch)
1776 * Moose::Meta::Method::Overriden
1777 Moose::Meta::Method::Augmented
1778 - moved the logic for these into their own
1779 classes (nothingmuch)
1781 * Moose::Meta::Attribute
1782 - inherited attributes may now be extended without
1783 restriction on the type ('isa', 'does') (Sartak)
1784 - added tests for this (Sartak)
1785 - when an attribute property is malformed (such as lazy without
1786 a default), give the name of the attribute in the error
1788 - added the &applied_traits and &has_applied_traits methods
1789 to allow introspection of traits
1790 - added tests for this
1791 - moved 'trait' and 'metaclass' argument handling to here from
1793 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1794 '+foo' syntax) (nothingmuch)
1795 - added tests for this (t0m)
1798 - localize $@ inside DEMOLISHALL to avoid it
1799 eating $@ (found by Ernesto)
1800 - added test for this (thanks to Ernesto)
1802 * Moose::Util::TypeConstraints
1803 - &find_type_constraint now DWIMs when given an
1804 type constraint object or name (nothingmuch)
1805 - &find_or_create_type_constraint superseded with a number of more
1807 - find_or_create_{isa,does}_type_constraint
1808 - find_or_parse_type_constraint
1810 * Moose::Meta::TypeConstraint
1811 Moose::Meta::TypeConstraint::Class
1812 Moose::Meta::TypeConstraint::Role
1813 Moose::Meta::TypeConstraint::Enum
1814 Moose::Meta::TypeConstraint::Union
1815 Moose::Meta::TypeConstraint::Parameterized
1816 - added the &equals method for comparing two type
1817 constraints (nothingmuch)
1818 - added tests for this (nothingmuch)
1820 * Moose::Meta::TypeConstraint
1821 - add the &parents method, which is just an alias to &parent.
1822 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1824 * Moose::Meta::TypeConstraint::Class
1825 - added the class attribute for introspection purposes
1827 - added tests for this
1829 * Moose::Meta::TypeConstraint::Enum
1830 Moose::Meta::TypeConstraint::Role
1831 - broke these out into their own classes (nothingmuch)
1833 * Moose::Cookbook::Recipe*
1834 - fixed references to test file locations in the POD
1835 and updated up some text for new Moose features
1839 - Added &resolve_metaclass_alias, a helper function for finding an actual
1840 class for a short name (e.g. in the traits list)
1842 0.40 Fri. March 14, 2008
1843 - I hate Pod::Coverage
1845 0.39 Fri. March 14, 2008
1847 - documenting the use of '+name' with attributes
1848 that come from recently composed roles. It makes
1849 sense, people are using it, and so why not just
1850 officially support it.
1851 - fixing the 'extends' keyword so that it will not
1852 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1855 - added the perl -Moose=+Class::Name feature to allow
1856 monkeypatching of classes in one liners
1859 - fixing the 'apply_all_roles' keyword so that it will not
1860 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1862 * Moose::Meta::Class
1863 - added ->create method which now supports roles (thanks to jrockway)
1864 - added tests for this
1865 - added ->create_anon_class which now supports roles and caching of
1866 the results (thanks to jrockway)
1867 - added tests for this
1868 - made ->does_role a little more forgiving when it is
1869 checking a Class::MOP era metaclasses.
1871 * Moose::Meta::Role::Application::ToInstance
1872 - it is now possible to pass extra params to be used when
1873 a role is applied to an the instance (rebless_params)
1874 - added tests for this
1876 * Moose::Util::TypeConstraints
1877 - class_type now accepts an optional second argument for a
1878 custom message. POD anotated accordingly (groditi)
1879 - added tests for this
1880 - it is now possible to make anon-enums by passing 'enum' an
1881 ARRAY ref instead of the $name => @values. Everything else
1883 - added tests for this
1886 - making test for using '+name' on attributes consumed
1887 from a role, it works and makes sense too.
1889 * Moose::Meta::Attribute
1890 - fix handles so that it doesn't return nothing
1891 when the method cannot be found, not sure why
1892 it ever did this originally, this means we now
1893 have slightly better support for AUTOLOADed
1895 - added more delegation tests
1896 - adding ->does method to this so as to better
1897 support traits and their introspection.
1898 - added tests for this
1901 - localizing the Data::Dumper configurations so
1902 that it does not pollute others (RT #33509)
1903 - made ->does a little more forgiving when it is
1904 passed Class::MOP era metaclasses.
1906 0.38 Fri. Feb. 15, 2008
1907 * Moose::Meta::Attribute
1908 - fixed initializer to correctly do
1909 type checking and coercion in the
1911 - added tests for this
1914 - fixed some finicky tests (thanks to konobi)
1916 0.37 Thurs. Feb. 14, 2008
1918 - fixed some details in Moose::init_meta
1919 and its superclass handling (thanks thepler)
1920 - added tests for this (thanks thepler)
1921 - 'has' now dies if you don't pass in name
1923 - added the 'make_immutable' keyword as a shortcut
1926 * Moose::Meta::Class
1927 Moose::Meta::Method::Constructor
1928 Moose::Meta::Attribute
1929 - making (init_arg => undef) work here too
1930 (thanks to nothingmuch)
1932 * Moose::Meta::Attribute
1933 Moose::Meta::Method::Constructor
1934 Moose::Meta::Method::Accessor
1935 - make lazy attributes respect attr initializers (rjbs)
1936 - added tests for this
1938 * Moose::Util::TypeConstraints
1939 Moose::Util::TypeConstraints::OptimizedConstraints
1940 Moose::Meta::TypeConstraints
1941 Moose::Meta::Attribute
1942 Moose::Meta::Method::Constructor
1943 Moose::Meta::Method::Accessor
1944 - making type errors use the
1945 assigned message (thanks to Sartak)
1946 - added tests for this
1948 * Moose::Meta::Method::Destructor
1949 - making sure DESTROY gets inlined properly
1950 with successive DEMOLISH calls (thanks to manito)
1952 * Moose::Meta::Attribute
1953 Moose::Meta::Method::Accessor
1954 - fixed handling of undef with type constraints
1956 - added tests for this
1959 - added &get_all_init_args and &get_all_attribute_values
1960 (thanks to Sartak and nothingmuch)
1962 0.36 Sat. Jan. 26, 2008
1964 Moose::Meta::Attribute
1965 - role type tests now support when roles are
1966 applied to non-Moose classes (found by ash)
1967 - added tests for this (thanks to ash)
1968 - couple extra tests to boost code coverage
1970 * Moose::Meta::Method::Constructor
1971 - improved fix for handling Class::MOP attributes
1972 - added test for this
1974 * Moose::Meta::Class
1975 - handled the add_attribute($attribute_meta_object)
1977 - added test for this
1979 0.35 Tues. Jan. 22, 2008
1980 * Moose::Meta::Method::Constructor
1981 - fix to make sure even Class::MOP attributes
1982 are handled correctly (Thanks to Dave Rolsky)
1983 - added test for this (also Dave Rolsky)
1985 * Moose::Meta::Class
1986 - improved error message on _apply_all_roles,
1987 you should now use Moose::Util::apply_all_roles
1988 and you shouldnt have been using a _ prefixed
1989 method in the first place ;)
1991 0.34 Mon. Jan. 21, 2008
1992 ~~~ more misc. doc. fixes ~~~
1993 ~~ updated copyright dates ~~
1995 Moose is now a postmodern object system :)
1996 - (see the POD for details)
1998 * <<Role System Refactoring>>
1999 - this release contains a major reworking and
2000 cleanup of the role system
2001 - 100% backwards compat.
2002 - Role application now restructured into seperate
2003 classes based on type of applicants
2004 - Role summation (combining of more than one role)
2005 is much cleaner and anon-classes are no longer
2006 used in this process
2007 - new Composite role metaclass
2008 - runtime application of roles to instances
2009 is now more efficient and re-uses generated
2010 classes when applicable
2012 * <<New Role composition features>>
2013 - methods can now be excluded from a given role
2015 - methods can now be aliased to another name (and
2016 still retain the original as well)
2018 * Moose::Util::TypeConstraints::OptimizedConstraints
2019 - added this module (see above)
2021 * Moose::Meta::Class
2022 - fixed the &_process_attribute method to be called
2023 by &add_attribute, so that the API is now correct
2025 * Moose::Meta::Method::Accessor
2026 - fixed bug when passing a list of values to
2027 an accessor would get (incorrectly) ignored.
2028 Thanks to Sartak for finding this ;)
2029 - added tests for this (Sartak again)
2031 * Moose::Meta::Method::Accessor
2032 Moose::Meta::Method::Constructor
2033 Moose::Meta::Attribute
2034 Moose::Meta::TypeConstraint
2035 Moose::Meta::TypeCoercion
2036 - lots of cleanup of such things as:
2038 - type constraint handling
2039 - error handling/messages
2040 (thanks to nothingmuch)
2042 * Moose::Meta::TypeConstraint::Parameterizable
2043 - added this module to support the refactor
2044 in Moose::Meta::TypeConstraint::Parameterized
2046 * Moose::Meta::TypeConstraint::Parameterized
2047 - refactored how these types are handled so they
2048 are more generic and not confined to ArrayRef
2052 - shortened some file names for better VMS support (RT #32381)
2054 0.33 Fri. Dec. 14, 2007
2055 !! Moose now loads 2 x faster !!
2056 !! with new Class::MOP 0.49 !!
2058 ++ new oose.pm module to make command line
2059 Moose-ness easier (see POD docs for more)
2061 * Moose::Meta::Class
2063 - several tweaks to take advantage of the
2064 new method map caching in Class::MOP
2066 * Moose::Meta::TypeConstraint::Parameterized
2067 - allow subtypes of ArrayRef and HashRef to
2068 be used as a container (sartak)
2069 - added tests for this
2070 - basic support for coercion to ArrayRef and
2071 HashRef for containers (sartak)
2072 - added tests for this
2074 * Moose::Meta::TypeCoercion
2075 - coercions will now create subtypes as needed
2076 so you can now add coercions to parameterized
2077 types without having to explictly define them
2078 - added tests for this
2080 * Moose::Meta::Method::Accessor
2081 - allow subclasses to decide whether we need
2082 to copy the value into a new variable (sartak)
2084 0.32 Tues. Dec. 4, 2007
2085 * Moose::Util::TypeConstraints
2086 - fixing how subtype aliases of unions work
2087 they should inherit the parent's coercion
2088 - added tests for this
2089 - you can now define multiple coercions on
2090 a single type at different times instead of
2091 having to do it all in one place
2092 - added tests for this
2094 * Moose::Meta::TypeConstraint
2095 - there is now a default constraint of sub { 1 }
2096 instead of Moose::Util::TypeConstraints setting
2099 * Moose::Meta::TypeCoercion
2100 * Moose::Meta::TypeCoercion::Union
2101 - added the &has_coercion_for_type and
2102 &add_type_coercions methods to support the
2103 new features above (although you cannot add
2104 more type coercions for Union types)
2106 0.31 Mon. Nov. 26, 2007
2107 * Moose::Meta::Attribute
2108 - made the +attr syntax handle extending types with
2109 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2110 now works if the original foo is an ArrayRef.
2111 - added tests for this.
2112 - delegation now works even if the attribute does not
2113 have a reader method using the get_read_method_ref
2114 method from Class::MOP::Attribute.
2115 - added tests for this
2116 - added docs for this
2118 * Moose::Util::TypeConstraints
2119 - passing no "additional attribute info" to
2120 &find_or_create_type_constraint will no longer
2121 attempt to create an __ANON__ type for you,
2122 instead it will just return undef.
2123 - added docs for this
2125 0.30 Fri. Nov. 23, 2007
2126 * Moose::Meta::Method::Constructor
2127 -builder related bug in inlined constructor. (groditi)
2129 * Moose::Meta::Method::Accessor
2130 - genereate unnecessary calls to predicates and refactor
2131 code generation for runtime speed (groditi)
2133 * Moose::Util::TypeConstraints
2134 - fix ClassName constraint to introspect symbol table (mst)
2135 - added more tests for this (mst)
2136 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2137 with work correctly.
2138 - added tests for this
2141 - adding the link to Recipie 11 (written by Sartak)
2142 - adding test for SYNOPSIS code
2145 - New tests for builder bug. Upon instantiation, if an
2146 attribute had a builder, no value and was not lazy the
2147 builder default was not getting run, oops. (groditi)
2149 0.29 Tues. Nov. 13, 2007
2150 * Moose::Meta::Attribute
2151 - Fix error message on missing builder method (groditi)
2153 * Moose::Meta::Method::Accessor
2154 - Fix error message on missing builder method (groditi)
2157 - Add test to check for the correct error message when
2158 builder method is missing (groditi)
2160 0.28 Tues. Nov. 13, 2007
2161 - 0.27 packaged incorrectly (groditi)
2163 0.27 Tues. Nov. 13, 2007
2164 * Moose::Meta::Attribute
2165 - Added support for the new builder option (groditi)
2166 - Added support for lazy_build option (groditi)
2167 - Changed slot initialization for predicate changes (groditi)
2169 * Moose::Meta::Method::Accessor
2170 - Added support for lazy_build option (groditi)
2171 - Fix inline methods to work with corrected predicate
2174 * Moose::Meta::Method::Constructor
2175 - Added support for lazy_build option (groditi)
2178 - tests for builder and lazy_build (groditi)
2180 * fixing some misc. bits in the docs that
2181 got mentioned on CPAN Forum & perlmonks
2184 - fixed how required methods are handled
2185 when they encounter overriden or modified
2186 methods from a class (thanks to confound).
2187 - added tests for this
2189 * Moose::Util::TypeConstraint
2190 - fixed the type notation parser so that
2191 the | always creates a union and so is
2192 no longer a valid type char (thanks to
2193 konobi, mugwump and #moose for working
2195 - added more tests for this
2197 0.26 Thurs. Sept. 27, 2007
2200 * Parameterized Types
2201 We now support parameterized collection types, such as:
2202 ArrayRef[Int] # array or integers
2203 HashRef[Object] # a hash with object values
2204 They can also be nested:
2205 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2206 And work with the type unions as well:
2207 ArrayRef[Int | Str] # array of integers of strings
2209 * Better Framework Extendability
2210 Moose.pm is now "extendable" such that it is now much
2211 easier to extend the framework and add your own keywords
2212 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2213 section of the Moose.pm docs.
2216 In an effort to begin documenting some of the various
2217 details of Moose as well as some common idioms, we have
2218 created Moose::Cookbook::Snacks as a place to find
2219 small (easily digestable) nuggets of Moose code.
2222 ~ Several doc updates/cleanup thanks to castaway ~
2224 - converted build system to use Module::Install instead of
2225 Module::Build (thanks to jrockway)
2228 - added all the meta classes to the immutable list and
2229 set it to inline the accessors
2230 - fix import to allow Sub::Exporter like { into => }
2231 and { into_level => } (perigrin)
2232 - exposed and documented init_meta() to allow better
2233 embedding and extending of Moose (perigrin)
2236 - complete re-organization of the test suite
2237 - added some new tests as well
2238 - finally re-enabled the Moose::POOP test since
2239 the new version of DBM::Deep now works again
2242 * Moose::Meta::Class
2243 - fixed very odd and very nasty recursion bug with
2245 - added tests for this (eilara)
2247 * Moose::Meta::Attribute
2248 Moose::Meta::Method::Constructor
2249 Moose::Meta::Method::Accessor
2250 - fixed issue with overload::Overloaded getting called
2251 on non-blessed items. (RT #29269)
2252 - added tests for this
2254 * Moose::Meta::Method::Accessor
2255 - fixed issue with generated accessor code making
2256 assumptions about hash based classes (thanks to dexter)
2258 * Moose::Coookbook::Snacks
2259 - these are bits of documentation, not quite as big as
2260 Recipes but which have no clear place in the module docs.
2261 So they are Snacks! (horray for castaway++)
2263 * Moose::Cookbook::Recipe4
2264 - updated it to use the new ArrayRef[MyType] construct
2265 - updated the accompanying test as well
2267 +++ Major Refactor of the Type Constraint system +++
2268 +++ with new features added as well +++
2270 * Moose::Util::TypeConstraint
2271 - no longer uses package variable to keep track of
2272 the type constraints, now uses the an instance of
2273 Moose::Meta::TypeConstraint::Registry to do it
2274 - added more sophisticated type notation parsing
2276 - added tests for this
2278 * Moose::Meta::TypeConstraint
2279 - some minor adjustments to make subclassing easier
2280 - added the package_defined_in attribute so that we
2281 can track where the type constraints are created
2283 * Moose::Meta::TypeConstraint::Union
2284 - this is now been refactored to be a subclass of
2285 Moose::Meta::TypeConstraint
2287 * Moose::Meta::TypeCoercion::Union
2288 - this has been added to service the newly refactored
2289 Moose::Meta::TypeConstraint::Union and is itself
2290 a subclass of Moose::Meta::TypeCoercion
2292 * Moose::Meta::TypeConstraint::Parameterized
2293 - added this module (taken from MooseX::AttributeHelpers)
2294 to help construct nested collection types
2295 - added tests for this
2297 * Moose::Meta::TypeConstraint::Registry
2298 - added this class to keep track of type constraints
2300 0.25 Mon. Aug. 13, 2007
2302 - Documentation update to reference Moose::Util::TypeConstraints
2303 under 'isa' in 'has' for how to define a new type
2304 (thanks to shlomif).
2306 * Moose::Meta::Attribute
2307 - required attributes now will no longer accept undef
2308 from the constructor, even if there is a default and lazy
2309 - added tests for this
2310 - default subroutines must return a value which passes the
2312 - added tests for this
2314 * Moose::Meta::Attribute
2315 * Moose::Meta::Method::Constructor
2316 * Moose::Meta::Method::Accessor
2317 - type-constraint tests now handle overloaded objects correctly
2318 in the error message
2319 - added tests for this (thanks to EvanCarroll)
2321 * Moose::Meta::TypeConstraint::Union
2322 - added (has_)hand_optimized_constraint to this class so that
2323 it behaves as the regular Moose::Meta::TypeConstraint does.
2326 - large refactoring of this code
2327 - added several more tests
2328 - tests for subtle conflict resolition issues
2329 added, but not currently running
2332 * Moose::Cookbook::Recipe7
2333 - added new recipe for augment/inner functionality
2335 - added test for this
2338 - a formal definition of roles (still in progress)
2341 - utilities for easier working with Moose classes
2342 - added tests for these
2345 - This contains Moose specific test functions
2346 - added tests for these
2348 0.24 Tues. July 3, 2007
2349 ~ Some doc updates/cleanup ~
2351 * Moose::Meta::Attribute
2352 - added support for roles to be given as parameters
2353 to the 'handles' option.
2354 - added tests and docs for this
2355 - the has '+foo' attribute form now accepts changes to
2356 the lazy option, and the addition of a handles option
2357 (but not changing the handles option)
2358 - added tests and docs for this
2361 - required methods are now fetched using find_method_by_name
2362 so that required methods can come from superclasses
2363 - adjusted tests for this
2365 0.23 Mon. June 18, 2007
2366 * Moose::Meta::Method::Constructor
2367 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2368 * Moose::Meta::Class
2369 - Modify make_immutable to work with the new Class::MOP immutable
2370 mechanism + POD + very basic test (groditi)
2371 * Moose::Meta::Attribute
2372 - Fix handles to use goto() so that caller() comes out properly on
2373 the other side (perigrin)
2375 0.22 Thurs. May 31, 2007
2376 * Moose::Util::TypeConstraints
2377 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2378 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2379 prototypes for functions
2380 - added the ClassName type constraint, this checks for strings
2381 which will respond true to ->isa(UNIVERSAL).
2382 - added tests and docs for this
2383 - subtyping just in name now works correctly by making the
2384 default for where be { 1 }
2385 - added test for this
2387 * Moose::Meta::Method::Accessor
2388 - coerce and lazy now work together correctly, thanks to
2389 merlyn for finding this bug
2390 - tests added for this
2391 - fix reader presedence bug in Moose::Meta::Attribute + tests
2394 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2395 a HASH-ref and missed. This produces better error messages then
2396 having it die cause undef is not a HASH.
2397 - added tests for this
2399 0.21 Thursday, May 2nd, 2007
2401 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2402 - modified unimport to remove super and inner along with the rest
2403 - altered unimport tests to handle this
2406 - altered super export to populate SUPER_SLOT
2408 * Moose::Meta::Class
2409 - altered augment and override modifier application to use *_SLOT
2410 - modified tests for these to unimport one test class each to test
2413 - fixed issue where custom attribute metaclasses
2414 where not handled correctly in roles
2415 - added tests for this
2417 * Moose::Meta::Class
2418 - fixed issue where extending metaclasses with
2419 roles would blow up. Thanks to Aankhen`` for
2420 finding this insidious error, and it's solution.
2422 ~~ lots of spelling and grammer fixes in the docs,
2423 many many thanks to rlb3 and Aankhen for these :)
2425 0.20 Friday, April 6th, 2007
2426 >> I messed up the SKIP logic in one test
2427 so this release is just to fix that.
2430 - 'has' now also accepts an ARRAY ref
2431 to create multiple attrs (see docs)
2432 (thanks to konobi for this)
2433 - added tests and docs
2435 0.19 Thurs. April 5th, 2007
2436 ~~ More documentation updates ~~
2438 * Moose::Util::TypeConstraints
2439 - 'type' now supports messages as well
2440 thanks to phaylon for finding this
2441 - added tests for this
2442 - added &list_all_type_constraints and
2443 &list_all_builtin_type_constraints
2444 functions to facilitate introspection.
2446 * Moose::Meta::Attribute
2447 - fixed regexp 'handles' declarations
2448 to build the list of delegated methods
2449 correctly (and not override important
2450 things like &new) thanks to ashleyb
2452 - added tests and docs for this
2453 - added the 'documentation' attributes
2454 so that you can actually document your
2455 attributes and inspect them through the
2457 - added tests and docs for this
2459 * Moose::Meta::Class
2460 - when loading custom attribute metaclasses
2461 it will first look in for the class in the
2462 Moose::Meta::Attribute::Custom::$name, and
2463 then default to just loading $name.
2464 - added tests and docs for this
2466 * Moose::Meta::TypeConstraint
2467 - type constraints now stringify to their names.
2468 - added test for this
2471 - added tests to assure we work with Module::Refresh
2472 - added stricter test skip logic in the Moose POOP
2473 test, ask Rob Kinyon why.
2474 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2476 0.18 Sat. March 10, 2007
2477 ~~ Many, many documentation updates ~~
2480 - We now use Class::MOP::load_class to
2482 - added tests to show types and subtypes
2483 working with Declare::Constraints::Simple
2484 and Test::Deep as constraint engines.
2487 !! You must have Class::MOP 0.37_001 !!
2488 !! for this developer release to work !!
2490 This release was primarily adding the immutable
2491 feature to Moose. An immutable class is one which
2492 you promise not to alter. When you set the class
2493 as immutable it will perform various bits of
2494 memoization and inline certain part of the code
2495 (constructors, destructors and accessors). This
2496 minimizes (and in some cases totally eliminates)
2497 one of Moose's biggest performance hits. This
2498 feature is not on by default, and is 100% optional.
2499 It has several configurable bits as well, so you
2500 can pick and choose to your specific needs.
2502 The changes involved in this were fairly wide and
2503 highly specific, but 100% backwards compatible, so
2504 I am not going to enumerate them here. If you are
2505 truely interested in what was changed, please do
2508 0.17 Tues. Nov. 14, 2006
2509 * Moose::Meta::Method::Accessor
2510 - bugfix for read-only accessors which
2511 are have a type constraint and lazy.
2512 Thanks to chansen for finding it.
2514 0.16 Tues. Nov. 14, 2006
2516 There are some speed improvements in this release,
2517 but they are only the begining, so stay tuned.
2520 - BUILDALL and DEMOLISHALL no longer get
2521 called unless they actually need to be.
2522 This gave us a signifigant speed boost
2523 for the cases when there is no BUILD or
2524 DEMOLISH method present.
2526 * Moose::Util::TypeConstraints
2527 * Moose::Meta::TypeConstraint
2528 - added an 'optimize_as' option to the
2529 type constraint, which allows for a
2530 hand optimized version of the type
2531 constraint to be used when possible.
2532 - Any internally created type constraints
2533 now provide an optimized version as well.
2535 0.15 Sun. Nov. 5, 2006
2537 This version of Moose *must* have Class::MOP 0.36 in order
2538 to work correctly. A number of small internal tweaks have
2539 been made in order to be compatible with that release.
2541 * Moose::Util::TypeConstraints
2542 - added &unimport so that you can clean out
2543 your class namespace of these exported
2546 * Moose::Meta::Class
2547 - fixed minor issue which occasionally
2548 comes up during global destruction
2550 - moved Moose::Meta::Method::Overriden into
2554 - moved Moose::Meta::Role::Method into
2557 * Moose::Meta::Attribute
2558 - changed how we do type checks so that
2559 we reduce the overall cost, but still
2562 - moved accessor generation methods to
2563 Moose::Meta::Method::Accessor to
2564 conform to the API changes from
2567 * Moose::Meta::TypeConstraint
2568 - changed how constraints are compiled
2569 so that we do less recursion and more
2570 iteration. This makes the type check
2572 - moved Moose::Meta::TypeConstraint::Union
2575 * Moose::Meta::Method::Accessor
2576 - created this from methods formerly found in
2577 Moose::Meta::Attribute
2579 * Moose::Meta::Role::Method
2580 - moved this from Moose::Meta::Role
2582 * Moose::Meta::Method::Overriden
2583 - moved this from Moose::Meta::Class
2585 * Moose::Meta::TypeConstraint::Union
2586 - moved this from Moose::Meta::TypeConstraint
2588 0.14 Mon. Oct. 9, 2006
2590 * Moose::Meta::Attribute
2591 - fixed lazy attributes which were not getting
2592 checked with the type constraint (thanks ashley)
2593 - added tests for this
2594 - removed the over-enthusiastic DWIMery of the
2595 automatic ArrayRef and HashRef defaults, it
2596 broke predicates in an ugly way.
2597 - removed tests for this
2599 0.13 Sat. Sept. 30, 2006
2601 This version of Moose *must* have Class::MOP 0.35 in order
2602 to work correctly. A number of small internal tweaks have
2603 been made in order to be compatible with that release.
2606 - Removed the use of UNIVERSAL::require to be a better
2607 symbol table citizen and remove a dependency
2608 (thanks Adam Kennedy)
2610 **~~ removed experimental & undocumented feature ~~**
2611 - commented out the 'method' and 'self' keywords, see the
2612 comments for more info.
2615 - added a FAQ and WTF files to document frequently
2616 asked questions and common problems
2618 * Moose::Util::TypeConstraints
2619 - added GlobRef and FileHandle type constraint
2620 - added tests for this
2622 * Moose::Meta::Attribute
2623 - if your attribute 'isa' ArrayRef of HashRef, and you have
2624 not explicitly set a default, then make the default DWIM.
2625 This will also work for subtypes of ArrayRef and HashRef
2627 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2628 - new test added for this (thanks to ashley)
2631 - added basic support for runtime role composition
2632 but this is still *highly experimental*, so feedback
2633 is much appreciated :)
2634 - added tests for this
2636 * Moose::Meta::TypeConstraint
2637 - the type constraint now handles the coercion process
2638 through delegation, this is to support the coercion
2641 * Moose::Meta::TypeConstraint::Union
2642 - it is now possible for coercions to be performed
2644 - added tests for this (thanks to konobi)
2646 * Moose::Meta::TypeCoercion
2647 - properly capturing error when type constraint
2651 - Scalar::Util 1.18 is bad on Win32, so temporarily
2652 only require version 1.17 for Win32 and cygwin.
2653 (thanks Adam Kennedy)
2655 0.12 Sat. Sept. 1, 2006
2657 - Recipe5 (subtypes & coercion) has been written
2660 - fixed "bad meta" error message to be more descriptive
2661 - fixed &unimport to not remove the &inner and &super
2662 keywords because we need to localize them.
2663 - fixed number of spelling/grammer issues, thanks Theory :)
2665 **~~ experimental & undocumented feature ~~**
2666 - added the method and self keywords, they are basically
2667 just sugar, and they may not stay around.
2670 - added &dump method to easily Data::Dumper
2673 * Moose::Meta::TypeConstraint
2674 - added the &is_a_type_of method to check both the current
2675 and the subtype of a method (similar to &isa with classes)
2678 - this is now a subclass of Class::MOP::Module, and no longer
2679 creates the _role_meta ugliness of before.
2680 - fixed tests to reflect this change
2682 0.11 Wed. July 12, 2006
2684 - added an &unimport method to remove all the keywords
2685 that Moose will import, simply add 'no Moose' to the
2686 bottom of your class file.
2689 - fixed some test failures caused by a forgotten test
2692 0.10 Thurs. July 6, 2006
2694 - improved error message when loading modules so
2695 it is less confusing when you load a role.
2696 - added &calculate_all_roles method to
2697 Moose::Meta::Class and Moose::Meta::Role
2700 This module has been tested against Class::MOP 0.30
2701 but it does not yet utilize the optimizations
2702 it makes available. Stay tuned for that ;)
2704 0.09_03 Fri. June 23, 2006
2705 ++ DEVELOPER RELEASE ++
2707 - 'use strict' and 'use warnings' are no longer
2708 needed in Moose classes, Moose itself will
2709 turn them on for you.
2710 - added tests for this
2711 - moved code from exported subs to private methods
2712 in Moose::Meta::Class
2715 - as with Moose, strict and warnings are
2716 automatically turned on for you.
2717 - added tests for this
2720 - now handles an edge case for override errors
2721 - added tests for this
2722 - added some more edge case tests
2724 0.09_02 Tues. May 16, 2006
2725 ++ DEVELOPER RELEASE ++
2727 - added prototypes to the exported subs
2731 - added prototypes to the exported subs
2734 * Moose::Util::TypeConstraints
2735 - cleaned up prototypes for the subs
2738 0.09_01 Fri. May 12, 2006
2739 ++ DEVELOPER RELEASE ++
2740 - This release works in combination with
2741 Class::MOP 0.29_01, it is a developer
2742 release because it uses the a new
2743 instance sub-protocol and a fairly
2744 complete Role implementation. It has
2745 not yet been optimized, so it slower
2746 the the previous CPAN version. This
2747 release also lacks good updated docs,
2748 the official release will have updated docs.
2751 - refactored the keyword exports
2752 - 'with' now checks Role validaity and
2753 accepts more than one Role at a time
2754 - 'extends' makes metaclass adjustments as
2755 needed to ensure metaclass compatibility
2758 - refactored the keyword exports
2759 - 'with' now checks Role validaity and
2760 accepts more than one Role at a time
2762 * Moose::Util::TypeConstraints
2763 - added the 'enum' keyword for simple
2764 string enumerations which can be used as
2766 - see example of usage in t/202_example.t
2769 - more careful checking of params to new()
2772 - much work done on the role composition
2773 - many new tests for conflict detection
2774 and composition edge cases
2775 - not enough documentation, I suggest
2776 looking at the tests
2778 * Moose::Meta::Instance
2779 - added new Instance metaclass to support
2780 the new Class::MOP instance protocol
2782 * Moose::Meta::Class
2783 - some small changes to support the new
2785 - some small additions to support Roles
2787 * Moose::Meta::Attribute
2788 - some improvements to the accessor generation code
2790 - some small changes to support the new
2792 - (still somewhat) experimental delegation support
2793 with the 'handles' option
2794 - added several tests for this
2795 - no docs for this yet
2797 0.05 Thurs. April 27, 2006
2799 - keywords are now exported with Sub::Exporter
2800 thanks to chansen for this commit
2801 - has keyword now takes a 'metaclass' option
2802 to support custom attribute meta-classes
2803 on a per-attribute basis
2804 - added tests for this
2805 - the 'has' keyword not accepts inherited slot
2806 specifications (has '+foo'). This is still an
2807 experimental feature and probably not finished
2808 see t/038_attribute_inherited_slot_specs.t for
2809 more details, or ask about it on #moose
2810 - added tests for this
2813 - keywords are now exported with Sub::Exporter
2815 * Moose::Utils::TypeConstraints
2816 - reorganized the type constraint hierarchy, thanks
2817 to nothingmuch and chansen for his help and advice
2819 - added some tests for this
2820 - keywords are now exported with Sub::Exporter
2821 thanks to chansen for this commit
2823 * Moose::Meta::Class
2824 - due to changes in Class::MOP, we had to change
2825 construct_instance (for the better)
2827 * Moose::Meta::Attribute
2828 - due to changes in Class::MOP, we had to add the
2829 initialize_instance_slot method (it's a good thing)
2831 * Moose::Meta::TypeConstraint
2832 - added type constraint unions
2833 - added tests for this
2834 - added the is_subtype_of predicate method
2835 - added tests for this
2837 0.04 Sun. April 16th, 2006
2839 - Roles can now consume other roles
2840 - added tests for this
2841 - Roles can specify required methods now with
2842 the requires() keyword
2843 - added tests for this
2846 - ripped out much of it's guts ,.. much cleaner now
2847 - added required methods and correct handling of
2848 them in apply() for both classes and roles
2849 - added tests for this
2850 - no longer adds a does() method to consuming classes
2851 it relys on the one in Moose::Object
2852 - added roles attribute and some methods to support
2853 roles consuming roles
2855 * Moose::Meta::Attribute
2856 - added support for triggers on attributes
2857 - added tests for this
2858 - added support for does option on an attribute
2859 - added tests for this
2861 * Moose::Meta::Class
2862 - added support for attribute triggers in the
2864 - added tests for this
2867 - Moose no longer creates a subtype for your class
2868 if a subtype of the same name already exists, this
2869 should DWIM in 99.9999% of all cases
2871 * Moose::Util::TypeConstraints
2872 - fixed bug where incorrect subtype conflicts were
2874 - added test for this
2877 - this class can now be extended with 'use base' if
2878 you need it, it properly loads the metaclass class now
2879 - added test for this
2881 0.03_02 Wed. April 12, 2006
2883 - you must now explictly use Moose::Util::TypeConstraints
2884 it no longer gets exported for you automatically
2887 - new() now accepts hash-refs as well as key/value lists
2888 - added does() method to check for Roles
2889 - added tests for this
2891 * Moose::Meta::Class
2892 - added roles attribute along with the add_role() and
2894 - added tests for this
2897 - now adds a does() method to consuming classes
2898 which tests the class's hierarchy for roles
2899 - added tests for this
2901 0.03_01 Mon. April 10, 2006
2903 - added new Role recipe (no content yet, only code)
2906 - added 'with' keyword for Role support
2907 - added test and docs for this
2908 - fixed subtype quoting bug
2909 - added test for this
2913 - added test and docs
2915 * Moose::Util::TypeConstraints
2916 - added the message keyword to add custom
2917 error messages to type constraints
2920 - the meta role to support Moose::Role
2921 - added tests and docs
2923 * Moose::Meta::Class
2924 - moved a number of things from Moose.pm
2925 to here, they should have been here
2928 * Moose::Meta::Attribute
2929 - moved the attribute option macros here
2930 instead of putting them in Moose.pm
2932 * Moose::Meta::TypeConstraint
2933 - added the message attributes and the
2935 - added tests and docs for this
2937 0.03 Thurs. March 30, 2006
2939 - added the Moose::Cookbook with 5 recipes,
2940 describing all the stuff Moose can do.
2943 - fixed an issue with &extends super class loading
2944 it now captures errors and deals with inline
2945 packages correctly (bug found by mst, solution
2947 - added super/override & inner/augment features
2948 - added tests and docs for these
2951 - BUILDALL now takes a reference of the %params
2952 that are passed to &new, and passes that to
2955 * Moose::Util::TypeConstraints
2956 - Type constraints now survive runtime reloading
2957 - added test for this
2959 * Moose::Meta::Class
2960 - fixed the way attribute defaults are handled
2961 during instance construction (bug found by chansen)
2963 * Moose::Meta::Attribute
2964 - read-only attributes now actually enforce their
2965 read-only-ness (this corrected in Class::MOP as
2968 0.02 Tues. March 21, 2006
2970 - many more tests, fixing some bugs and
2972 - &extends now loads the base module with
2974 - added UNIVERSAL::require to the
2977 - each new Moose class will also create
2978 and register a subtype of Object which
2979 correspond to the new Moose class.
2980 - the 'isa' option in &has now only
2981 accepts strings, and will DWIM in
2984 * Moose::Util::TypeConstraints
2985 - added type coercion features
2986 - added tests for this
2987 - added support for this in attributes
2988 and instance construction
2990 - type construction no longer creates a
2991 function, it registers the type instead.
2992 - added several functions to get the
2996 - BUILDALL and DEMOLISHALL were broken
2997 because of a mis-named hash key, Whoops :)
2999 * Moose::Meta::Attribute
3000 - adding support for coercion in the
3001 autogenerated accessors
3003 * Moose::Meta::Class
3004 - adding support for coercion in the
3005 instance construction
3007 * Moose::Meta::TypeConstraint
3008 * Moose::Meta::TypeCoercion
3009 - type constraints and coercions are now
3010 full fledges meta-objects
3012 0.01 Wed. March 15, 2006
3013 - Moooooooooooooooooose!!!