1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * ScalarRef is now a parameterized type. You can now specify a type
6 constraint for whatever the reference points to. (Closes RT#50857)
7 (Michael G. Schwern, Florian Ragwitz)
13 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method, in
14 addition to execute, to be able to call a code attribute as a method.
19 * Moose::Object::does no longer checks the entire inheritance tree, since
20 Moose::Meta::Class::does_role already does this. (doy)
21 * Moose::Util::add_method_modifier (and subsequently the sugar functions Moose::before,
22 Moose::after, and Moose::around) can now accept arrayrefs, with the same
23 behavior as lists. Types other than arrayref and regexp result in an error.
26 0.94 Mon, Jan 18, 2010
30 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
34 * Improved support for anonymous roles by changing various APIs to take
35 Moose::Meta::Role objects as well as role names. This included
37 - Moose::Meta::Class->does_role
38 - Moose::Meta::Role->does_role
39 - Moose::Util::does_role
40 - Moose::Util::apply_all_roles
41 - Moose::Util::ensure_all_roles
42 - Moose::Util::search_class_by_role
44 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
48 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
49 work as long as the accessor method names are explicitly set to valid Perl
50 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
53 0.93_03 Tue, Jan 5, 2010
57 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
58 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
61 0.93_02 Tue, Jan 5, 2010
65 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
66 testers. (Dave Rolsky)
69 0.93_01 Mon, Jan 4, 2010
73 See Moose::Manual::Delta for more details on backwards compatiblity issues.
75 * Role attributes are now objects of the Moose::Meta::Role::Attribute
78 * There were major changes to how metaroles are applied. We now distinguish
79 between metaroles for classes vs those for roles. See the
80 Moose::Util::MetaRole docs for details. (Dave Rolsky)
82 * The old MetaRole API has been deprecated, but will continue to
83 work. However, if you are applying an attribute metaclass role, this may
84 break because of the fact that roles now have an attribute metaclass
87 * Moose::Util::MetaRole::apply_metaclass_roles is now called
88 apply_metaroles. The old name is deprecated. Dave Rolsky>
90 * The unimport subs created by Moose::Exporter now clean up re-exported
91 functions like blessed and confess, unless the caller imported them from
92 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
94 [ENHANCEMENTS AND BUG FIXES]
96 * Changed the Str constraint to accept magic lvalue strings like one gets from
97 substr et al, again. (sorear)
99 * Sped up the type constraint parsing regex. (Sam Vilain)
101 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
104 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
105 easier testing of TypeConstraints from the command line. (perigrin)
107 * Added a with_immutable test function to Test::Moose, to run a block of tests
108 with and without certain classes being immutable. (doy)
110 * We now use Module::Install extensions explicitly to avoid confusing errors
111 if they're not installed. We use Module::Install::AuthorRequires to stop
112 test extraction and general failures if you don't have the author side
113 dependencies installed.
115 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
116 #51791. (Amir E. Aharoni)
119 0.93 Thu, Nov 19, 2009
121 - Calling $object->new() is no longer deprecated, and no longer
125 - The get_attribute_map method is now deprecated. (Dave Rolsky)
127 * Moose::Meta::Method::Delegation
128 - Preserve variable aliasing in @_ for delegated methods, so that
129 altering @_ affects the passed value. (doy)
131 * Moose::Util::TypeConstraints
132 - Allow array refs for non-anonymous form of enum and duck_type, not
133 just anonymous. The non-arrayref forms may be removed in the
135 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
136 - Properly document Int being a subtype of Str. (doy)
139 - Moose::Exporter using modules can now export their functions to the
140 main package. This applied to Moose and Moose::Role, among
141 others. (nothingmuch)
143 * Moose::Meta::Attribute
144 - Don't remove attribute accessors we never installed, during
145 remove_accessors. (doy)
147 * Moose::Meta::Attribute::Native::Trait::Array
148 - Don't bypass prototype checking when calling List::Util::first, to
149 avoid a segfault when it is called with a non-code argument. (doy)
151 * Moose::Meta::Attribute::Native::Trait::Code
152 - Fix passing arguments to code execute helpers. (doy)
154 0.92 Tue, Sep 22, 2009
155 * Moose::Util::TypeConstraints
156 - added the match_on_type operator (Stevan)
157 - added tests and docs for this (Stevan)
160 - Metaclass compat fixing should already happen recursively, there's no
161 need to explicitly walk up the inheritance tree. (doy)
163 * Moose::Meta::Attribute
164 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
166 0.91 Thu, Sep 17, 2009
168 - Don't import any functions, in order to avoid polluting our namespace
169 with things that can look like methods (blessed, try, etc)
172 * Moose::Meta::Method::Constructor
173 - The generated code needs to called Scalar::Util::blessed by its
174 fully-qualified name or else Perl can interpret the call to blessed as
175 an indirect method call. This broke Search::GIN, which in turn broke
176 KiokuDB. (nothingmuch)
178 0.90 Tue, Sep 15, 2009
179 * Moose::Meta::Attribute::Native::Trait::Counter
180 * Moose::Meta::Attribute::Native::Trait::String
181 - For these two traits, an attribute which did not explicitly provide
182 methods to handles magically ended up delegating *all* the helper
183 methods. This has been removed. You must be explicit in your handles
184 declaration for all Native Traits. (Dave Rolsky)
187 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
188 sure to rethrow its error message. However, we also localize $@ before
189 this so that if all the DEMOLISH methods success, the value of $@ will
190 be preserved. (nothingmuch and Dave Rolsky)
191 - We now also localize $? during object destruction. (nothingmuch and
193 - The handling of DEMOLISH methods was broken for immutablized classes,
194 which were not receiving the value of
195 Devel::GlobalDestruction::in_global_destruction.
196 - These two fixes address some of RT #48271, reported by Zefram.
197 - This is all now documented in Moose::Manual::Construction.
198 - Calling $object->new() is now deprecated. A warning will be
202 - Added more hooks to customize how roles are applied. The role
203 summation class, used to create composite roles, can now be changed
204 and/or have meta-roles applied to it. (rafl)
205 - The get_method_list method no longer explicitly excludes the "meta"
206 method. This was a hack that has been replaced by better hacks. (Dave
209 * Moose::Meta::Method::Delegation
210 - fixed delegated methods to make sure that any modifiers attached to
211 the accessor being delegated on will be called (Stevan)
212 - added tests for this (Stevan)
215 - Moose no longer warns when a class that is being made immutable has
216 mutable ancestors. While in theory this is a good thing to warn about,
217 we found so many exceptions to this that doing this properly became
220 0.89_02 Thu, Sep 10, 2009
221 * Moose::Meta::Attribute::Native
222 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
224 * Moose::Meta::Attribute::Native::Trait::Array
225 - Added a number of functions from List::Util and List::MoreUtils,
226 including reduce, shuffle, uniq, and natatime. (doy)
229 - This module will now generate an init_meta method for your exporting
230 class if you pass it options for
231 Moose::Util::MetaRole::apply_metaclass_roles or
232 apply_base_class_roles. This eliminates a lot of repetitive
233 boilerplate for typical MooseX modules. (doy).
234 - Documented the with_meta feature, which is a replacement for
235 with_caller. This feature was added by josh a while ago.
236 - The with_caller feature is now deprecated, but will not issue a
237 warning yet. (Dave Rolsky)
238 - If you try to wrap/export a subroutine which doesn't actually exist,
239 Moose::Exporter will warn you about this. (doy)
241 * Moose::Meta::Role::Application::ToRole
242 - When a role aliased a method from another role, it was only getting
243 the new (aliased) name, not the original name. This differed from what
244 happens when a class aliases a role's methods. If you _only_ want the
245 aliased name, make sure to also exclue the original name. (Dave
248 0.89_01 Wed Sep 2, 2009
249 * Moose::Meta::Attribute
250 - Added the currying syntax for delegation from AttributeHelpers to the
251 existing delegation API. (hdp)
253 * Moose::Meta::Attribute::Native
254 - We have merged the functionality of MooseX::AttributeHelpers into the
255 Moose core with some API tweaks. You can continue to use
256 MooseX::AttributeHelpers, but it will not be maintained except
257 (perhaps) for critical bug fixes in the future. See
258 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
261 * Moose::Error::Croak
262 * Moose::Error::Confess
263 - Clarify documentation on how to use different error-throwing
264 modules. (Curtis Jewell)
267 - Correct POD for builder to point to Recipe8, not 9. (gphat)
270 - When a nonexistent sub name is passed to as_is, with_caller, or
271 with_meta, throw a warning and skip the exporting, rather than
272 installing a broken sub. (doy)
275 - Moose now warns if you call C<make_immutable> for a class with mutable
278 0.89 Thu Aug 13, 2009
279 * Moose::Manual::Attributes
280 - Clarify "is", include discussion of "bare". (Sartak)
282 * Moose::Meta::Role::Method::Conflicting
283 * Moose::Meta::Role::Application::ToClass
284 - For the first set of roles involved in a conflict, report all
285 unresolved method conflicts, not just the first method. Fixes #47210
286 reported by Ovid. (Sartak)
288 * Moose::Meta::TypeConstraint
289 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
292 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
294 - Allow specifying role options (alias, excludes, MXRP stuff) in the
295 arrayref passed to "use Moose -traits" (doy)
298 - Add functions meta_class_alias and meta_attribute_alias for creating
299 aliases for class and attribute metaclasses and metatraits. (doy)
301 * Moose::Meta::Attribute
302 * Moose::Meta::Method::Accessor
303 - A trigger now receives the old value as a second argument, if the
304 attribute had one. (Dave Rolsky)
306 * Moose::Meta::Method::Constructor
307 - Fix a bug with $obj->new when $obj has stringify overloading.
308 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
309 - However, we will probably deprecate $obj->new, so please don't start
310 using it for new code!
312 * Moose::Meta::Role::Application
313 * Moose::Meta::Role::Application::RoleSummation
314 - Rename alias and excludes to -alias and -excludes (but keep the old
315 names for now, for backcompat) (doy)
317 0.88 Fri Jul 24, 2009
318 * Moose::Manual::Contributing
319 - Re-write the Moose::Manual::Contributing document to reflect
320 the new layout and methods of work for the Git repository. All
321 work now should be done in topic branches and reviewed by a
322 core committer before being applied to master. All releases
323 are done by a cabal member and merged from master to
324 stable. This plan was devised by Yuval, blame him. (perigrin)
327 - Create metaclass attributes for the different role application
330 * Moose::Util::MetaRole
331 - Allow applying roles to a meta role's role application
334 * Moose::Meta::Attribute
335 - Add weak_ref to allowed options for "has '+foo'" (mst)
337 * Moose::Meta::Method::Accessor
338 - No longer uses inline_slot_access in accessors, to support
339 non-lvalue-based meta instances. (sorear)
342 * Moose::Meta::Method::Delegation
343 - Once again allow class names as well as objects for
344 delegation. This was changed in 0.86.
347 * Moose::Meta::Class::Immutable::Trait
348 - Fixes to work with the latest Class::MOP.
350 * Moose::Meta::Method::Delegation
351 - Delegation now dies with a more useful error message if the
352 attribute's accessor returns something defined but
355 0.85 Fri, Jun 26, 2009
356 * Moose::Meta::Attribute
357 - The warning for 'no associated methods' is now split out into
358 the _check_associated_methods method, so that extensions can
359 safely call 'after install_accessors => ...'. This fixes a
360 warning from MooseX::AttributeHelpers. (hdp)
362 0.84 Fri, Jun 26, 2009
364 - has now sets definition_context for attributes defined in
367 * Moose::Meta::Attribute
368 - When adding an attribute to a metaclass, if the attribute has
369 no associated methods, it will give a deprecation
371 - Methods generated by delegation were not being added to
372 associated_methods. (hdp)
373 - Attribute accessors (reader, writer, accessor, predicate,
374 clearer) now warn if they overwrite an existing method. (doy)
375 - Attribute constructors now warn very noisily about unknown (or
376 misspelled) arguments
378 * Moose::Util::TypeConstraints
379 - Deprecated the totally useless Role type name, which just
380 checked if $object->can('does'). Note that this is _not_ the
381 same as a type created by calling role_type('RoleName').
383 * Moose::Util::TypeConstraints
384 * Moose::Meta::TypeConstraint::DuckType
385 - Reify duck type from a regular subtype into an actual class
387 - Document this because Sartak did all my work for me
390 * Moose::Meta::Attribute
391 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
392 it is just a list of methods (Sartak)
395 - The get_*_method_modifiers methods would die if the role had
396 no modifiers of the given type (Robert Buels).
398 0.83 Tue, Jun 23, 2009
400 - Fix _construct_instance not setting the special __MOP__ object
401 key in instances of anon classes. (doy)
403 0.82 Sun, Jun 21, 2009
404 * Moose::Manual::Types
405 - Mention MooseX::Types early to avoid users falling down the
406 string parsing rathole (mst)
408 * Moose::Manual::MooseX
409 - Add warnings about class-level extensions and mention considering
410 using plain objects instead
412 0.81 Sun, Jun 7, 2009
413 * Bumped our Class::MOP prereq to the latest version (0.85), since
416 0.80 Sat, Jun 6, 2009
418 - Add FAQ about the coercion change from 0.76 because it came up
419 three times today (perigrin)
420 - Win doy $10 dollars because Sartak didn't think anybody
421 would document this fast enough (perigrin)
423 * Moose::Meta::Method::Destructor
424 - Inline a DESTROY method even if there are no DEMOLISH methods
425 to prevent unnecessary introspection in
426 Moose::Object::DEMOLISHALL
429 - A role's required methods are now represented by
430 Moose::Meta::Role::Method::Required objects. Conflicts are now
431 represented by Moose::Meta::Role::Method::Conflicting
432 objects. The benefit for end-users in that unresolved
433 conflicts generate different, more instructive, errors,
434 resolving Ovid's #44895. (Sartak)
437 - Improve the error message of "extends" as suggested by Adam
438 Kennedy and confound (Sartak)
439 - Link to Moose::Manual::Roles from Moose::Role as we now have
440 excellent documentation (Adam Kennedy)
443 - Update test suite for subname change in Class::MOP
445 - Add TODO test for infinite recursion in Moose::Meta::Class
448 0.79 Wed, May 13, 2009
450 - More fixes for Win32 problems. Reported by Robert Krimen.
453 - The DEMOLISHALL method could still blow up in some cases
454 during global destruction. This method has been made more
455 resilient in the face of global destruction's random garbage
459 - If you "also" a module that isn't loaded, the error message
460 now acknowledges that (Sartak)
463 - When your ->meta method does not return a Moose::Meta::Class,
464 the error message gave the wrong output (Sartak)
466 0.78 Tue, May 12, 2009
467 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
468 - Merged these documents into what is now Moose::Manual::FAQ
471 - Moved to Moose::Manual::Unsweetened
473 * Moose::Cookbook::Basics::Recipes 9-12
474 - Renamed to be 8-11, since recipe 8 did not exist
477 - Make Moose::Exporter import strict and warnings into packages
481 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
482 methods during global destruction (doy)
485 * Moose::Meta::Role::Application::ToClass
486 - Track the Role::Application objects created during class-role
490 - Fix metaclass incompatibility errors when extending a vanilla perl
491 class which isa Moose class with a metaclass role applied (t0m)
494 - Add a role-combination hook, _role_for_combination, for the
495 benefit of MooseX::Role::Parameterized (Sartak)
498 - Some tests were failing on Win32 because they explicit checked
499 warning output for newlines. Reported by Nickolay Platonov.
501 0.77 Sat, May 2, 2009
503 - Add explicit use of Devel::GlobalDestruction and Sub::Name
507 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
508 or not we are currently in global destruction (doy)
509 - Add explicit use of Devel::GlobalDestruction and Sub::Name
512 * Moose::Cookbook::FAQ
513 - Reworked much of the existing content to be more useful to
514 modern Moose hackers (Sartak)
517 - Depend on Class::MOP 0.83 instead of 0.82_01.
519 0.76 Mon, April 27, 2009
520 * Moose::Meta::TypeConstraint
521 - Do not run coercions in coerce() if the value already passes the type
524 * Moose::Meta::TypeConstraint::Class
525 - In validation error messages, specifically say that the value is not
526 an instance of the class. This should alleviate some frustrating
527 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
529 * Moose::Meta::Role::Application::ToClass
530 - Revert the class-overrides-role warning in favor of a solution outside
531 of the Moose core (Sartak)
534 - Make Test::Output optional again, since it's only used in a few files
537 0.75_01 Thu, April 23, 2009
538 * Moose::Meta::Role::Application::ToClass
539 - Moose now warns about each class overriding methods from roles it
543 - Warnings tests have standardized on Test::Output which is now an
544 unconditionally dependency (Sartak)
547 - Changes to immutabilization to work with Class::MOP 0.82_01+.
549 0.75 Mon, April 20, 2009
552 - Move validation of not inheriting from roles from Moose::extends to
553 Moose::Meta::Class::superclasses (doy)
556 - add ensure_all_roles() function to encapsulate the common "apply this
557 role unless the object already does it" pattern (hdp)
560 - Users can now select a different metaclass with the "-metaclass"
561 option to import, for classes and roles (Sartak)
564 - Make method_metaclass an attr so that it can accept a metarole
567 0.74 Tue, April 7, 2009
569 * Moose::Meta::Method::Destructor
570 - Include stack traces in the deprecation warnings.
574 - Removed the long-deprecated _apply_all_roles method.
576 * Moose::Meta::TypeConstraint
577 - Removed the long-deprecated union method.
580 0.73_02 Mon, April 6, 2009
581 * More deprecations and renamings
582 - Moose::Meta::Method::Constructor
583 - initialize_body => _initialize_body (this is always called
584 when an object is constructed)
587 - The DEMOLISHALL method could throw an exception during global
588 destruction, meaning that your class's DEMOLISH methods would
589 not be properly called. Reported by t0m.
591 * Moose::Meta::Method::Destructor
592 - Destructor inlining was totally broken by the change to the
593 is_needed method in 0.72_01. Now there is a test for this
594 feature, and it works again.
597 - Bold the word 'not' in the POD for find_meta (t0m)
599 0.73_01 Sun, April 5, 2009
601 - Call user_class->meta in fewer places, with the eventual goal
602 of allowing the user to rename or exclude ->meta
603 altogether. Instead uses Class::MOP::class_of. (Sartak)
605 * Moose::Meta::Method::Accessor
606 - If an attribute had a lazy default, and that value did not
607 pass the attribute's type constraint, it did not get the
608 message from the type constraint, instead using a generic
609 message. Test provided by perigrin.
611 * Moose::Util::TypeConstraints
612 - Add duck_type keyword. It's sugar over making sure an object
613 can() a list of methods. This is easier than jrockway's
614 suggestion to fork all of CPAN. (perigrin)
615 - add tests and documentation (perigrin)
618 - Document the fact that init_meta() returns the target class's
619 metaclass object. (hdp)
621 * Moose::Cookbook::Extending::Recipe1
622 * Moose::Cookbook::Extending::Recipe2
623 * Moose::Cookbook::Extending::Recipe3
624 * Moose::Cookbook::Extending::Recipe4
625 - Make init_meta() examples explicitly return the metaclass and
626 point out this fact. (hdp)
628 * Moose::Cookbook::Basics::Recipe12
629 - A new recipe, creating a custom meta-method class.
631 * Moose::Cookbook::Meta::Recipe6
632 - A new recipe, creating a custom meta-method class.
635 * Moose::Meta::Method::Constructor
636 - Attribute triggers no longer receive the meta-attribute object
637 as an argument in any circumstance. Previously, triggers
638 called during instance construction were passed the
639 meta-attribute, but triggers called by normal accessors were
640 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
642 * Moose::Manual::Attributes
643 - Remove references to triggers receving the meta-attribute object as an
646 * Moose::Cookbook::FAQ
647 - Remove recommendation for deprecated Moose::Policy and
648 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
651 * Many methods have been renamed with a leading underscore, and a
652 few have been deprecated entirely. The methods with a leading
653 underscore are consider "internals only". People writing
654 subclasses or extensions to Moose should feel free to override
655 them, but they are not for "public" use.
658 - check_metaclass_compatibility => _check_metaclass_compatibility
660 - Moose::Meta::Method::Accessor
661 - initialize_body => _initialize_body (this is always called
662 when an object is constructed)
663 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
665 - Moose::Meta::Method::Constructor
666 - initialize_body => _initialize_body (this is always called
667 when an object is constructed)
668 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
669 - attributes => _attributes (now inherited from parent)
670 - meta_instance => _meta_instance (now inherited from parent)
673 - alias_method is deprecated. Use add_method
675 0.73 Fri, March 29, 2009
676 * No changes from 0.72_01.
678 0.72_01 Thu, March 26, 2009
680 - Almost every module has complete API documentation. A few
681 methods (and even whole classes) have been intentionally
682 excluded pending some rethinking of their APIs.
684 * Moose::Util::TypeConstraints
685 - Calling subtype with a name as the only argument is now an
686 exception. If you want an anonymous subtype do:
688 my $subtype = subtype as 'Foo';
690 * Moose::Cookbook::Meta::Recipe7
691 - A new recipe, creating a custom meta-instance class.
693 * Moose::Cookbook::Basics::Recipe5
694 - Fix various typos and mistakes. Includes a patch from Radu
697 * Moose::Cookbook::Basics::Recipe9
698 - Link to this recipe from Moose.pm's builder blurb
701 - When wrapping a function with a prototype, Moose::Exporter now
702 makes sure the wrapped function still has the same
703 prototype. (Daisuke Maki)
705 * Moose::Meta::Attribute
706 - Allow a subclass to set lazy_build for an inherited
710 - Explicitly depend on Data::OptList. We already had this dependency
711 via Sub::Exporter, but since we're using it directly we're
712 better off with it listed. (Sartak)
714 * Moose::Meta::Method::Constructor
715 - Make it easier to subclass the inlining behaviour. (Ash
718 * Moose::Manual::Delta
719 - Details significant changes in the history of Moose, along
720 with recommended workarounds.
722 * Moose::Manual::Contributing
723 - Contributor's guide to Moose.
725 * Moose::Meta::Method::Constructor
726 - The long-deprecated intialize_body method has been removed
727 (yes, spelled like that).
729 * Moose::Meta::Method::Destructor
730 - This is_needed method is now always a class method.
733 - Changes to the internals of how make_immutable works to match
734 changes in latest Class::MOP.
736 0.72 Mon, February 23, 2009
738 * Moose::Meta::Method::Constructor
739 - A mutable class accepted Foo->new(undef) without complaint,
740 while an immutable class would blow up with an unhelpful
741 error. Now, in both cases we throw a helpful error
742 instead. Reported by doy.
744 0.71_01 Sun, February 22, 2009
746 - Hopefully fixed some POD errors in a few recipes that caused
747 them to display weird on search.cpan.org.
749 * Moose::Util::TypeConstraints
750 - Calling type or subtype without the sugar helpers (as, where,
751 message) is now deprecated.
752 - The subtype function tried hard to guess what you meant, but
753 often got it wrong. For example:
755 my $subtype = subtype as 'ArrayRef[Object]';
757 This caused an error in the past, but now works as you'd
761 - Make sure Moose.pm is loaded before calling
762 Moose->throw_error. This wasn't normally an issue, but could
763 bite you in weird cases.
765 0.71 Thu, February 19, 2009
766 * Moose::Cookbook::Basics::Recipe11
767 - A new recipe which demonstrates the use of BUILDARGS and
770 * Moose::Cookbook::Roles::Recipe3
771 - A new recipe, applying a role to an object instance. (Dave
775 - Allow overriding specific keywords from "also" packages. (doy)
778 - Replace hardcoded cookbook tests with Test::Inline to ensure
779 the tests match the actual code in the recipes. (Dave Rolsky)
782 - Working on the above turned up a number of little bugs in the
783 recipe code. (Dave Rolsky)
785 * Moose::Util::TypeConstraints::Optimized
786 - Just use Class::MOP for the optimized ClassName check. (Dave
789 0.70 Sat, February 14, 2009
790 * Moose::Util::TypeConstraints
791 - Added the RoleName type (stevan)
792 - added tests for this (stevan)
794 * Moose::Cookbook::Basics::Recipe3
795 - Updated the before qw[left right] sub to be a little more
796 defensive about what it accepts (stevan)
797 - added more tests to t/000_recipies/basics/003_binary_tree.t
801 - We now always call DEMOLISHALL, even if a class does not
802 define DEMOLISH. This makes sure that method modifiers on
803 DEMOLISHALL work as expected. (doy)
804 - added tests for this (EvanCarroll)
806 * Moose::Util::MetaRole
807 - Accept roles for the wrapped_method_metaclass (rafl)
808 - added tests for this (rafl)
810 * Moose::Meta::Attribute
811 - We no longer pass the meta-attribute object as a final
812 argument to triggers. This actually changed for inlined code a
813 while back, but the non-inlined version and the docs were
817 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
818 they require 0.11. (Dave Rolsky)
821 - Lots of small changes to the manual, cookbook, and
822 elsewhere. These were based on feedback from various
823 users, too many to list here. (Dave Rolsky)
825 0.69 Thu, February 12, 2009
827 - Make some keyword errors use throw_error instead of croak
828 since Moose::Exporter wraps keywords now (Sartak)
831 - Revised every recipe for style and clarity. Also moved some
832 documentation out of cookbook recipes and into Moose::Manual
833 pages. This work was funded as part of the Moose docs grant
834 from TPF. (Dave Rolsky)
836 * Moose::Meta::Method::Delegation
837 - If the attribute doing the delegation was not populated, the
838 error message did not specify the attribute name
841 0.68 Wed, February 4, 2009
843 - Many spelling, typo, and formatting fixes by daxim.
845 * Moose::Manual::Attributes
846 - The NAME section in the POD used "Attribute" so search.cpan
847 didn't resolve links from other documents properly.
849 * Moose::Meta::Method::Overriden
850 - Now properly spelled as Overridden. Thanks to daxim for
853 0.67 Tue, February 3, 2009
855 - Lots of little typo fixes and a few clarifications. Several
856 pages didn't have proper titles, and so weren't actually
857 visible on search.cpan.org. Thanks to hanekomu for a variety
858 of fixes and formatting improvements.
860 0.66 Tue, February 3, 2009
862 - This is a brand new, extensive manual for Moose. This aims to
863 provide a complete introduction to all of Moose's
864 features. This work was funded as part of the Moose docs grant
865 from TPF. (Dave Rolsky)
867 * Moose::Meta::Attribute
868 - Added a delegation_metaclass method to replace a hard-coded
869 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
871 * Moose::Util::TypeConstraints
872 - If you created a subtype and passed a parent that Moose didn't
873 know about, it simply ignored the parent. Now it automatically
874 creates the parent as a class type. This may not be what you
875 want, but is less broken than before. (Dave Rolsky)
877 * Moose::Util::TypeConstraints
878 - This module tried throw errors by calling Moose->throw_error,
879 but it did not ensure that Moose was loaded first. This could
880 cause very unhelpful errors when it tried to throw an error
881 before Moose was loaded. (Dave Rolsky)
883 * Moose::Util::TypeConstraints
884 - You could declare a name with subtype such as "Foo!Bar" that
885 would be allowed, but if you used it in a parameterized type
886 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
887 vetting on names created via the sugar functions, so that they
888 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
890 0.65 Thu, January 22, 2008
891 * Moose and Moose::Meta::Method::Overridden
892 - If an overridden method called super(), and then the
893 superclass's method (not overridden) _also_ called super(),
894 Moose went into an endless recursion loop. Test provided by
895 Chris Prather. (Dave Rolsky)
897 * Moose::Meta::TypeConstraint
898 - All methods are now documented. (gphat)
900 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
901 - Fixed some bogus failures that occurred because we tried to
902 validate filesystem paths in a very ad-hoc and
903 not-quite-correct way. (Dave Rolsky)
905 * Moose::Util::TypeConstraints
906 - Added maybe_type to exports. See docs for details. (rjbs)
909 - Added Moose::Util::TypeConstraints to the SEE ALSO
913 - Methods created via an attribute can now fulfill a "requires"
914 declaration for a role. (nothingmuch)
916 * Moose::Meta::Method::*
917 - Stack traces from inlined code will now report its line and
918 file as being in your class, as opposed to in Moose
921 0.64 Wed, December 31, 2008
922 * Moose::Meta::Method::Accessor
923 - Always inline predicate and clearer methods (Sartak)
925 * Moose::Meta::Attribute
926 - Support for parameterized traits (Sartak)
927 - verify_against_type_constraint method to avoid duplication
928 and enhance extensibility (Sartak)
931 - Tests (but no support yet) for parameterized traits (Sartak)
934 - Require Class::MOP 0.75+, which has the side effect of making
935 sure we work on Win32. (Dave Rolsky)
937 0.63 Mon, December 8, 2008
939 - Some small grammar tweaks and bug fixes in non-Moose example
942 0.62_02 Fri, December 5, 2008
943 * Moose::Meta::Role::Application::ToClass
944 - When a class does not provide all of a role's required
945 methods, the error thrown now mentions all of the missing
946 methods, as opposed to just the first one found. Requested by
947 Curtis Poe (RT #41119). (Dave Rolsky)
949 * Moose::Meta::Method::Constructor
950 - Moose will no longer inline a constructor for your class
951 unless it inherits its constructor from Moose::Object, and
952 will warn when it doesn't inline. If you want to force
953 inlining anyway, pass "replace_constructor => 1" to
954 make_immutable. Addresses RT #40968, reported by Jon
955 Swartz. (Dave Rolsky)
956 - The quoting of default values could be broken if the default
957 contained a single quote ('). Now we use quotemeta to escape
958 anything potentially dangerous in the defaults. (Dave Rolsky)
960 0.62_01 Wed, December 3, 2008
962 - use the method->execute API for BUILDALL
963 and DEMOLISHALL (Sartak)
965 * Moose::Util::TypeConstraints
966 - We now make all the type constraint meta classes immutable
967 before creating the default types provided by Moose. This
968 should make loading Moose a little faster. (Dave Rolsky)
970 0.62 Wed November 26, 2008
971 * Moose::Meta::Role::Application::ToClass
972 Moose::Meta::Role::Application::ToRole
973 - fixed issues where excluding and aliasing the
974 same methods for a single role did not work
975 right (worked just fine with multiple
977 - added test for this (stevan)
979 * Moose::Meta::Role::Application::RoleSummation
980 - fixed the error message when trying to compose
981 a role with a role it excludes (Sartak)
984 - Catch another case where recursion caused the value
985 of $CALLER to be stamped on (t0m)
986 - added test for this (t0m)
989 - Remove the make_immutable keyword, which has been
990 deprecated since April. It breaks metaclasses that
991 use Moose without no Moose (Sartak)
993 * Moose::Meta::Attribute
994 - Removing an attribute from a class now also removes delegation
995 (handles) methods installed for that attribute (t0m)
996 - added test for this (t0m)
998 * Moose::Meta::Method::Constructor
999 - An attribute with a default that looked like a number (but was
1000 really a string) would accidentally be treated as a number
1001 when the constructor was made immutable (perigrin)
1002 - added test for this (perigrin)
1005 - create method for constructing a role
1006 dynamically (Sartak)
1007 - added test for this (Sartak)
1008 - anonymous roles! (Sartak)
1009 - added test for this (Sartak)
1012 - more consistent error messages (Sartak)
1014 * Moose::Cookbook::Roles::Recipe1
1015 - attempt to explain why a role that just requires
1016 methods is useful (Sartak)
1018 0.61 Fri November 7, 2008
1019 * Moose::Meta::Attribute
1020 - When passing a role to handles, it will be loaded if necessary
1023 * Moose::Meta::Class
1024 - Method objects returned by get_method (and other methods)
1025 Could end up being returned without an associated_metaclass
1026 attribute. Removing get_method_map, which is provided by
1027 Class::MOP::Class, fixed this. The Moose version did nothing
1028 different from its parent except introduce a bug. (Dave Rolsky)
1029 - added tests for this (jdv79)
1032 - Added a $VERSION to all .pm files which didn't have one. Fixes
1033 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1035 * Moose::Cookbook::Basics::Recipe4
1036 * Moose::Cookbook::Basics::Recipe6
1037 - These files had spaces on the first line of the SYNOPSIS, as
1038 opposed to a totally empty line. According to RT #40432, this
1039 confuses POD parsers. (Dave Rolsky)
1041 0.60 Fri October 24, 2008
1043 - Passing "-traits" when loading Moose caused the Moose.pm
1044 exports to be broken. Reported by t0m. (Dave Rolsky)
1045 - Tests for this bug. (t0m)
1048 - Change resolve_metaclass alias to use the new
1049 load_first_existing_class function. This makes it a lot
1050 simpler, and also around 5 times faster. (t0m)
1051 - Add caching to resolve_metaclass_alias, which gives an order
1052 of magnitude speedup to things which repeatedly call the
1053 Moose::Meta::Attribute->does method, notably MooseX::Storage
1056 * Moose::Util::TypeConstraint
1057 - Put back the changes for parameterized constraints that
1058 shouldn't have been removed in 0.59. We still cannot parse
1059 them, but MooseX modules can create them in some other
1060 way. See the 0.58 changes for more details. (jnapiorkowski)
1061 - Changed the way subtypes are created so that the job is
1062 delegated to a type constraint parent. This clears up some
1063 hardcoded checking and should allow correct subtypes of
1064 Moose::Meta::Type::Constraint. Don't rely on this new API too
1065 much (create_child_type) because it may go away in the
1066 future. (jnapiorkowski)
1068 * Moose::Meta::TypeConstraint::Union
1069 - Type constraint names are sorted as strings, not numbers.
1072 * Moose::Meta::TypeConstraint::Parameterizable
1073 - New parameterize method. This can be used as a factory method
1074 to make a new type constraint with a given parameterized
1075 type. (jnapiorkowski)
1076 - added tests (jnapiorkowski)
1078 0.59 Tue October 14, 2008
1080 - Add abridged documentation for builder/default/initializer/
1081 predicate, and link to more details sections in
1082 Class::MOP::Attribute. (t0m)
1084 * Moose::Util::TypeConstraints
1085 - removed prototypes from all but the &-based stuff (mst)
1087 * Moose::Util::TypeConstraints
1088 - Creating a anonymous subtype with both a constraint and a
1089 message failed with a very unhelpful error, but should just
1090 work. Reported by t0m. (Dave Rolsky)
1093 - Some tests that used Test::Warn if it was available failed
1094 with older versions of Test::Warn. Reported by Fayland. (Dave
1096 - Test firing behavior of triggers in relation to builder/default/
1098 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1099 kinds of supported type. (t0m)
1101 * Moose::Meta::Class
1102 - In create(), do not pass "roles" option to the superclass
1103 - added related test that creates an anon metaclass with
1104 a required attribute
1106 * Moose::Meta::TypeConstraint::Class
1107 * Moose::Meta::TypeConstraint::Role
1108 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1109 other types (as per change in 0.55_02). (t0m)
1111 * Moose::Meta::TypeConstraint::Registry
1112 - Fix warning when dealing with unknown type names (t0m)
1114 * Moose::Util::TypeConstraints
1115 - Reverted changes from 0.58 related to handle parameterized
1116 types. This caused random failures on BSD and Win32 systems,
1117 apparently related to the regex engine. This means that Moose
1118 can no longer parse structured type constraints like
1119 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1120 supported in a slightly different way via MooseX::Types some
1121 time in the future. (Dave Rolsky)
1123 0.58 Sat September 20, 2008
1124 !! This release has an incompatible change regarding !!
1125 !! how roles add methods to a class !!
1127 * Roles and role application
1128 ! Roles now add methods by calling add_method, not
1129 alias_method. They make sure to always provide a method
1130 object, which will be cloned internally. This means that it is
1131 now possible to track the source of a method provided by a
1132 role, and even follow its history through intermediate roles.
1134 This means that methods added by a role now show up when
1135 looking at a class's method list/map. (Dave Rolsky)
1138 - From this release on, we'll try to maintain a list of
1139 conflicting modules, and warn you if you have one
1140 installed. For example, this release conflicts with ...
1141 - MooseX::Singleton <= 0.11
1142 - MooseX::Params::Validate <= 0.05
1145 In general, we try to not break backwards compatibility for
1146 most Moose users, but MooseX modules and other code which
1147 extends Moose's metaclasses is often affected by very small
1148 changes in the Moose internals.
1150 * Moose::Meta::Method::Delegation
1151 * Moose::Meta::Attribute
1152 - Delegation methods now have their own method class. (Dave
1155 * Moose::Meta::TypeConstraint::Parameterizable
1156 - Added a new method 'parameterize' which is basically a factory
1157 for the containing constraint. This makes it easier to create
1158 new types of parameterized constraints. (jnapiorkowski)
1160 * Moose::Meta::TypeConstraint::Union
1161 - Changed the way Union types canonicalize their names to follow
1162 the normalized TC naming rules, which means we strip all
1163 whitespace. (jnapiorkowski)
1165 * Moose::Util::TypeConstraints
1166 - Parameter and Union args are now sorted, this makes Int|Str
1167 the same constraint as Str|Int. (jnapiorkowski)
1168 - Changes to the way Union types are parsed to more correctly
1169 stringify their names. (jnapiorkowski)
1170 - When creating a parameterized type, we now use the new
1171 parameterize method. (jnapiorkowski)
1172 - Incoming type constraint strings are now normalized to remove
1173 all whitespace differences. (jnapiorkowski)
1174 - Changed the way we parse type constraint strings so that we now
1175 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1176 constraints. This lays the foundation for more flexible type
1177 constraint implementations.
1179 * Tests and docs for all the above. (jnapiorkowski)
1183 - Moose::Exporter will no longer remove a subroutine that the
1184 exporting package re-exports. Moose re-exports the
1185 Carp::confess function, among others. The reasoning is that we
1186 cannot know whether you have also explicitly imported those
1187 functions for your own use, so we err on the safe side and
1188 always keep them. (Dave Rolsky)
1189 - added tests for this (rafl)
1191 * Moose::Meta::Class
1192 - Changes to how we fix metaclass compatibility that are much
1193 too complicated to go into. The summary is that Moose is much
1194 less likely to complain about metaclass incompatibility
1195 now. In particular, if two metaclasses differ because
1196 Moose::Util::MetaRole was used on the two corresponding
1197 classes, then the difference in roles is reconciled for the
1198 subclass's metaclass. (Dave Rolsky)
1199 - Squashed an warning in _process_attribute (thepler)
1202 - throw exceptions (sooner) for invalid attribute names (thepler)
1203 - added tests for this (thepler)
1205 * Moose::Util::MetaRole
1206 - If you explicitly set a constructor or destructor class for a
1207 metaclass object, and then applied roles to the metaclass,
1208 that explicitly set class would be lost and replaced with the
1211 * Moose::Meta::Class
1212 * Moose::Meta::Attribute
1213 * Moose::Meta::Method
1216 * Moose::Error::Default
1217 * Moose::Error::Croak
1218 * Moose::Error::Confess
1219 - All instances of confess() changed to use overridable
1220 C<throw_error> method. This method ultimately calls a class
1221 constructor, and you can change the class being called. In
1222 addition, errors now pass more information than just a string.
1223 The default C<error_class> behaves like C<Carp::confess>, so
1224 the behavior is not visibly different for end users.
1226 0.57 Wed September 3, 2008
1228 - A new bit of doc intended to introduce folks familiar with
1229 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1231 * Moose::Unsweetened
1232 - Shows examples of two classes, each done first with and then
1233 without Moose. This makes a nice parallel to
1234 Moose::Intro. (Dave Rolsky)
1236 * Moose::Util::TypeConstraints
1237 - Fixed a bug in find_or_parse_type_constraint so that it
1238 accepts a Moose::Meta::TypeConstraint object as the parent
1239 type, not just a name (jnapiorkowski)
1240 - added tests (jnapiorkowski)
1243 - If Sub::Name was not present, unimporting failed to actually
1244 remove some sugar subs, causing test failures (Dave Rolsky)
1246 0.56 Mon September 1, 2008
1247 For those not following the series of dev releases, there are
1248 several major changes in this release of Moose.
1249 ! Moose::init_meta should now be called as a method. See the
1252 - Major performance improvements by nothingmuch.
1254 - New modules for extension writers, Moose::Exporter and
1255 Moose::Util::MetaRole by Dave Rolsky.
1257 - Lots of doc improvements and additions, especially in the
1260 - Various bug fixes.
1262 * Removed all references to the experimental-but-no-longer-needed
1263 Moose::Meta::Role::Application::ToMetaclassInstance.
1265 * Require Class::MOP 0.65.
1267 0.55_04 Sat August 30, 2008
1268 * Moose::Util::MetaRole
1269 * Moose::Cookbook::Extending::Recipe2
1270 - This simplifies the application of roles to any meta class, as
1271 well as the base object class. Reimplemented metaclass traits
1272 using this module. (Dave Rolsky)
1274 * Moose::Cookbook::Extending::Recipe1
1275 - This a new recipe, an overview of various ways to write Moose
1276 extensions (Dave Rolsky)
1278 * Moose::Cookbook::Extending::Recipe3
1279 * Moose::Cookbook::Extending::Recipe4
1280 - These used to be Extending::Recipe1 and Extending::Recipe2,
1283 0.55_03 Fri August 29, 2008
1284 * No changes from 0.55_02 except increasing the Class::MOP
1285 dependency to 0.64_07.
1287 0.55_02 Fri August 29, 2008
1288 * Makefile.PL and Moose.pm
1289 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1291 * Moose::Util::TypeConstraints
1292 - Fix warnings from find_type_constraint if the type is not
1295 * Moose::Meta::TypeConstraint
1296 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1297 return false if the type you specify cannot be found in the
1298 type registry, rather than throwing an unhelpful and
1299 coincidental exception. (t0m).
1300 - added docs & test for this (t0m)
1302 * Moose::Meta::TypeConstraint::Registry
1303 - add_type_constraint now throws an exception if a parameter is
1305 - added docs & test for this (t0m)
1307 * Moose::Cookbook::FAQ
1308 - Added a faq entry on the difference between "role" and "trait"
1312 - Fixed a bug that caused role composition to not see a required
1313 method when that method was provided by another role being
1314 composed at the same time. (Dave Rolsky)
1315 - test and bug finding (tokuhirom)
1317 0.55_01 Wed August 20, 2008
1319 !! Calling Moose::init_meta as a function is now !!
1320 !! deprecated. Please see the Moose.pm docs for details. !!
1322 * Moose::Meta::Method::Constructor
1323 - Fix inlined constructor so that values produced by default
1324 or builder methods are coerced as required. (t0m)
1325 - added test for this (t0m)
1327 * Moose::Meta::Attribute
1328 - A lazy attribute with a default or builder did not attempt to
1329 coerce the default value. The immutable code _did_
1331 - added test for this (t0m)
1334 - This is a new helper module for writing "Moose-alike"
1335 modules. This should make the lives of MooseX module authors
1336 much easier. (Dave Rolsky)
1339 * Moose::Cookbook::Meta::Recipe5
1340 - Implemented metaclass traits (and wrote a recipe for it):
1342 use Moose -traits => 'Foo'
1344 This should make writing small Moose extensions a little
1345 easier (Dave Rolsky)
1347 * Moose::Cookbook::Basics::Recipe1
1348 - Removed any examples of direct hashref access, and applied an
1349 editorial axe to reduce verbosity. (Dave Rolsky)
1351 * Moose::Cookbook::Basics::Recipe1
1352 - Also applied an editorial axe here. (Dave Rolsky)
1355 * Moose::Cookbook::Extending::Recipe1
1356 * Moose::Cookbook::Extending::Recipe2
1357 - Rewrote extending and embedding moose documentation and
1358 recipes to use Moose::Exporter (Dave Rolsky)
1362 - These two modules now warn when you load them from the main
1363 package "main" package, because we will not export sugar to
1364 main. Previously it just did nothing. (Dave Rolsky)
1367 - Now provide an init_meta method just like Moose.pm, and you
1368 can call this to provide an alternate role metaclass. (Dave
1369 Rolsky and nothingmuch)
1370 - get_method_map now respects the package cache flag (nothingmuch)
1373 - Two new methods - add_method and wrap_method_body
1377 - Optimizations including allowing constructors to accept hash
1378 refs, making many more classes immutable, and making
1379 constructors immutable. (nothingmuch)
1381 0.55 Sun August 3, 2008
1382 * Moose::Meta::Attribute
1383 - breaking down the way 'handles' methods are
1384 created so that the process can be more easily
1385 overridden by subclasses (stevan)
1387 * Moose::Meta::TypeConstraint
1388 - fixing what is passed into a ->message with
1389 the type constraints (RT #37569)
1390 - added tests for this (Charles Alderman)
1392 * Moose::Util::TypeConstraints
1393 - fix coerce to accept anon types like subtype can (mst)
1396 - reorganized the recipes into sections - Basics, Roles, Meta,
1397 Extending - and wrote abstracts for each section (Dave Rolsky)
1399 * Moose::Cookbook::Basics::Recipe10
1400 - A new recipe that demonstrates operator overloading
1401 in combination with Moose. (bluefeet)
1403 * Moose::Cookbook::Meta::Recipe1
1404 - an introduction to what meta is and why you'd want to make
1405 your own metaclass extensions (Dave Rolsky)
1407 * Moose::Cookbook::Meta::Recipe4
1408 - a very simple metaclass example (Dave Rolsky)
1410 * Moose::Cookbook::Extending::Recipe1
1411 - how to write a Moose-alike module to use your own object base
1414 * Moose::Cookbook::Extending::Recipe2
1415 - how to write modules with an API just like C<Moose.pm> (Dave
1419 - Tons of fixes, both syntactical and grammatical (Dave
1420 Rolsky, Paul Fenwick)
1422 0.54 Thurs. July 3, 2008
1423 ... this is not my day today ...
1425 * Moose::Meta::Attribute
1426 - fixed legal_options_for_inheritance such that
1427 clone_and_inherit options still works for
1428 Class::MOP::Attribute objects and therefore
1429 does not break MooseX::AttributeHelpers
1432 0.53 Thurs. July 3, 2008
1433 * Whoops, I guess I should run 'make manifest' before
1434 actually releasing the module. No actual changes
1435 in this release, except the fact that it includes
1436 the changes that I didn't include in the last
1439 0.52 Thurs. July 3, 2008
1441 - added "FEATURE REQUESTS" section to the Moose docs
1442 to properly direct people (stevan) (RT #34333)
1443 - making 'extends' croak if it is passed a Role since
1444 this is not ever something you want to do
1445 (fixed by stevan, found by obra)
1446 - added tests for this (stevan)
1449 - adding support for DOES (as in UNIVERSAL::DOES)
1451 - added test for this
1453 * Moose::Meta::Attribute
1454 - added legal_options_for_inheritance (wreis)
1455 - added tests for this (wreis)
1457 * Moose::Cookbook::Snacks::*
1458 - removed some of the unfinished snacks that should
1459 not have been released yet. Added some more examples
1460 to the 'Keywords' snack. (stevan)
1462 * Moose::Cookbook::Style
1463 - added general Moose "style guide" of sorts to the
1464 cookbook (nothingmuch) (RT #34335)
1467 - added more BUILDARGS tests (stevan)
1469 0.51 Thurs. Jun 26, 2008
1471 - add unimport so "no Moose::Role" actually does
1474 * Moose::Meta::Role::Application::ToRole
1475 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1476 order to provide its own implementation, that method still got
1477 added to the list of required methods for consumers of
1478 RoleB. Now an aliased method is only added to the list of
1479 required methods if the role doing the aliasing does not
1480 provide its own implementation. See Recipe 11 for an example
1481 of all this. (Dave Rolsky)
1482 - added tests for this
1484 * Moose::Meta::Method::Constructor
1485 - when a single argument that wasn't a hashref was provided to
1486 an immutabilized constructor, the error message was very
1487 unhelpful, as opposed to the non-immutable error. Reported by
1489 - added test for this (Dave Rolsky)
1491 * Moose::Meta::Attribute
1492 - added support for meta_attr->does("ShortAlias") (sartak)
1493 - added tests for this (sartak)
1494 - moved the bulk of the `handles` handling to the new
1495 install_delegation method (Stevan)
1498 - Added BUILDARGS, a new step in new()
1500 * Moose::Meta::Role::Application::RoleSummation
1501 - fix typos no one ever sees (sartak)
1503 * Moose::Util::TypeConstraints
1504 * Moose::Meta::TypeConstraint
1505 * Moose::Meta::TypeCoercion
1506 - Attempt to work around the ??{ } vs. threads issue
1508 - Some null_constraint optimizations
1510 0.50 Thurs. Jun 11, 2008
1511 - Fixed a version number issue by bumping all modules
1514 0.49 Thurs. Jun 11, 2008
1515 !! This version now approx. 20-25% !!
1516 !! faster with new Class::MOP 0.59 !!
1518 * Moose::Meta::Attribute
1519 - fixed how the is => (ro|rw) works with
1520 custom defined reader, writer and accessor
1522 - added docs for this (TODO).
1523 - added tests for this (Thanks to Penfold)
1524 - added the custom attribute alias for regular
1525 Moose attributes which is "Moose"
1526 - fix builder and default both being used
1531 Moose::Meta::Attribute
1533 Moose::Meta::Role::Composite
1534 Moose::Util::TypeConstraints
1535 - switched usage of reftype to ref because
1539 - changing add_package_symbol to use the new
1543 - fixed how DEMOLISHALL is called so that it
1544 can be overrided in subclasses (thanks to Sartak)
1545 - added test for this (thanks to Sartak)
1547 * Moose::Util::TypeConstraints
1548 - move the ClassName type check code to
1549 Class::MOP::is_class_loaded (thanks to Sartak)
1551 * Moose::Cookbook::Recipe11
1552 - add tests for this (thanks to tokuhirom)
1554 0.48 Thurs. May 29, 2008
1555 (early morning release engineering)--
1557 - fixing the version in Moose::Meta::Method::Destructor
1558 which was causing the indexer to choke
1560 0.47 Thurs. May 29, 2008
1561 (late night release engineering)--
1563 - fixing the version is META.yml, no functional
1564 changes in this release
1566 0.46 Wed. May 28, 2008
1567 !! This version now approx. 20-25% !!
1568 !! faster with new Class::MOP 0.57 !!
1570 * Moose::Meta::Class
1571 - some optimizations of the &initialize method
1572 since it is called so often by &meta
1574 * Moose::Meta::Class
1576 - now use the get_all_package_symbols from the
1577 updated Class::MOP, test suite is now 10 seconds
1580 * Moose::Meta::Method::Destructor
1581 - is_needed can now also be called as a class
1582 method for immutablization to check if the
1583 destructor object even needs to be created
1586 * Moose::Meta::Method::Destructor
1587 Moose::Meta::Method::Constructor
1588 - added more descriptive error message to help
1589 keep people from wasting time tracking an error
1590 that is easily fixed by upgrading.
1592 0.45 Saturday, May 24, 2008
1594 - Because of work in Class::MOP 0.57, all
1595 XS based functionality is now optional
1596 and a Pure Perl version is supplied
1597 - the CLASS_MOP_NO_XS environment variable
1598 can now be used to force non-XS versions
1600 - several of the packages have been tweaked
1601 to take care of this, mostly we added
1602 support for the package_name and name
1603 variables in all the Method metaclasses
1604 - before/around/after method modifiers now
1605 support regexp matching of names
1606 (thanks to Takatoshi Kitano)
1607 - tests added for this
1608 - NOTE: this only works for classes, it
1609 is currently not supported in roles,
1610 but, ... patches welcome
1611 - All usage of Carp::confess have been replaced
1612 by Carp::croak in the "keyword" functions since
1613 the stack trace is usually not helpful
1616 - All usage of Carp::confess have been replaced
1617 by Carp::croak in the "keyword" functions since
1618 the stack trace is usually not helpful
1619 - The 'has' keyword for roles now accepts the
1620 same array ref form that Moose.pm does
1621 (has [qw/foo bar/] => (is => 'rw', ...))
1622 - added test for this
1624 * Moose::Meta::Attribute
1625 - trigger on a ro-attribute is no longer an
1626 error, as it's useful to trigger off of the
1629 * Moose::Meta::Class
1630 - added same 'add_package_symbol' fix as in
1634 - does_role now handles non-Moose classes
1636 - added tests for this
1637 - added the 'add_method_modifier' function
1638 (thanks to Takatoshi Kitano)
1640 * Moose::Util::TypeConstraints
1641 - subtypes of parameterizable types now are
1642 themselves parameterizable types
1644 * Moose::Meta::Method::Constructor
1645 - fixed bug where trigger was not being
1646 called by the inlined immutable
1648 - added test for this (thanks to Caelum)
1650 * Moose::Meta::Role::Application::ToInstance
1651 - now uses the metaclass of the instance
1652 (if possible) to create the anon-class
1653 (thanks Jonathan Rockway)
1655 * Moose::Cookbook::Recipe22
1656 - added the meta-attribute trait recipe
1660 - fixed hash-ordering test bug that was
1661 causing occasional cpantester failures
1662 - renamed the t/000_recipe/*.t tests to be
1663 more descriptive (thanks to Sartak)
1665 0.44 Sat. May 10, 2008
1667 - made make_immutable warning cluck to
1668 show where the error is (thanks mst)
1671 - BUILDALL and DEMOLISHALL now call
1672 ->body when looping through the
1673 methods, to avoid the overloaded
1675 - fixed issue where DEMOLISHALL was
1676 eating the $@ values, and so not
1677 working correctly, it still kind of
1678 eats them, but so does vanilla perl
1679 - added tests for this
1681 * Moose::Cookbook::Recipe7
1682 - added new recipe for immutable
1683 functionality (thanks Dave Rolsky)
1685 * Moose::Cookbook::Recipe9
1686 - added new recipe for builder and
1687 lazy_build (thanks Dave Rolsky)
1689 * Moose::Cookbook::Recipe11
1690 - added new recipe for method aliasing
1691 and exclusion with Roles (thanks Dave Rolsky)
1694 - fixed Win32 test failure (thanks spicyjack)
1696 ~ removed Build.PL and Module::Build compat
1697 since Module::Install has done that.
1699 0.43 Wed. April, 30, 2008
1701 drink more coffee before
1702 doing release engineering
1704 - whoops, forgot to do the smolder tests,
1705 and we broke some of the custom meta-attr
1706 modules. This fixes that.
1708 0.42 Mon. April 28, 2008
1709 - some bad tests slipped by, nothing else
1710 changed in this release (cpantesters++)
1712 - upped the Class::MOP dependency to 0.55
1713 since we have tests which need the C3
1716 0.41 Mon. April 28, 2008
1717 ~~ numerous documentation updates ~~
1719 - Changed all usage of die to Carp::croak for better
1720 error reporting (initial patch by Tod Hagan)
1722 ** IMPORTANT NOTE **
1723 - the make_immutable keyword is now deprecated, don't
1724 use it in any new code and please fix your old code
1725 as well. There will be 2 releases, and then it will
1731 - refactored the way inner and super work to avoid
1732 any method/@ISA cache penalty (nothingmuch)
1734 * Moose::Meta::Class
1735 - fixing &new_object to make sure trigger gets the
1736 coerced value (spotted by Charles Alderman on the
1738 - added test for this
1740 * Moose::Meta::Method::Constructor
1741 - immutable classes which had non-lazy attributes were calling
1742 the default generating sub twice in the constructor. (bug
1743 found by Jesse Luehrs, fixed by Dave Rolsky)
1744 - added tests for this (Dave Rolsky)
1745 - fix typo in initialize_body method (nothingmuch)
1747 * Moose::Meta::Method::Destructor
1748 - fix typo in initialize_body method (nothingmuch)
1750 * Moose::Meta::Method::Overriden
1751 Moose::Meta::Method::Augmented
1752 - moved the logic for these into their own
1753 classes (nothingmuch)
1755 * Moose::Meta::Attribute
1756 - inherited attributes may now be extended without
1757 restriction on the type ('isa', 'does') (Sartak)
1758 - added tests for this (Sartak)
1759 - when an attribute property is malformed (such as lazy without
1760 a default), give the name of the attribute in the error
1762 - added the &applied_traits and &has_applied_traits methods
1763 to allow introspection of traits
1764 - added tests for this
1765 - moved 'trait' and 'metaclass' argument handling to here from
1767 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1768 '+foo' syntax) (nothingmuch)
1769 - added tests for this (t0m)
1772 - localize $@ inside DEMOLISHALL to avoid it
1773 eating $@ (found by Ernesto)
1774 - added test for this (thanks to Ernesto)
1776 * Moose::Util::TypeConstraints
1777 - &find_type_constraint now DWIMs when given an
1778 type constraint object or name (nothingmuch)
1779 - &find_or_create_type_constraint superseded with a number of more
1781 - find_or_create_{isa,does}_type_constraint
1782 - find_or_parse_type_constraint
1784 * Moose::Meta::TypeConstraint
1785 Moose::Meta::TypeConstraint::Class
1786 Moose::Meta::TypeConstraint::Role
1787 Moose::Meta::TypeConstraint::Enum
1788 Moose::Meta::TypeConstraint::Union
1789 Moose::Meta::TypeConstraint::Parameterized
1790 - added the &equals method for comparing two type
1791 constraints (nothingmuch)
1792 - added tests for this (nothingmuch)
1794 * Moose::Meta::TypeConstraint
1795 - add the &parents method, which is just an alias to &parent.
1796 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1798 * Moose::Meta::TypeConstraint::Class
1799 - added the class attribute for introspection purposes
1801 - added tests for this
1803 * Moose::Meta::TypeConstraint::Enum
1804 Moose::Meta::TypeConstraint::Role
1805 - broke these out into their own classes (nothingmuch)
1807 * Moose::Cookbook::Recipe*
1808 - fixed references to test file locations in the POD
1809 and updated up some text for new Moose features
1813 - Added &resolve_metaclass_alias, a helper function for finding an actual
1814 class for a short name (e.g. in the traits list)
1816 0.40 Fri. March 14, 2008
1817 - I hate Pod::Coverage
1819 0.39 Fri. March 14, 2008
1821 - documenting the use of '+name' with attributes
1822 that come from recently composed roles. It makes
1823 sense, people are using it, and so why not just
1824 officially support it.
1825 - fixing the 'extends' keyword so that it will not
1826 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1829 - added the perl -Moose=+Class::Name feature to allow
1830 monkeypatching of classes in one liners
1833 - fixing the 'apply_all_roles' keyword so that it will not
1834 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1836 * Moose::Meta::Class
1837 - added ->create method which now supports roles (thanks to jrockway)
1838 - added tests for this
1839 - added ->create_anon_class which now supports roles and caching of
1840 the results (thanks to jrockway)
1841 - added tests for this
1842 - made ->does_role a little more forgiving when it is
1843 checking a Class::MOP era metaclasses.
1845 * Moose::Meta::Role::Application::ToInstance
1846 - it is now possible to pass extra params to be used when
1847 a role is applied to an the instance (rebless_params)
1848 - added tests for this
1850 * Moose::Util::TypeConstraints
1851 - class_type now accepts an optional second argument for a
1852 custom message. POD anotated accordingly (groditi)
1853 - added tests for this
1854 - it is now possible to make anon-enums by passing 'enum' an
1855 ARRAY ref instead of the $name => @values. Everything else
1857 - added tests for this
1860 - making test for using '+name' on attributes consumed
1861 from a role, it works and makes sense too.
1863 * Moose::Meta::Attribute
1864 - fix handles so that it doesn't return nothing
1865 when the method cannot be found, not sure why
1866 it ever did this originally, this means we now
1867 have slightly better support for AUTOLOADed
1869 - added more delegation tests
1870 - adding ->does method to this so as to better
1871 support traits and their introspection.
1872 - added tests for this
1875 - localizing the Data::Dumper configurations so
1876 that it does not pollute others (RT #33509)
1877 - made ->does a little more forgiving when it is
1878 passed Class::MOP era metaclasses.
1880 0.38 Fri. Feb. 15, 2008
1881 * Moose::Meta::Attribute
1882 - fixed initializer to correctly do
1883 type checking and coercion in the
1885 - added tests for this
1888 - fixed some finicky tests (thanks to konobi)
1890 0.37 Thurs. Feb. 14, 2008
1892 - fixed some details in Moose::init_meta
1893 and its superclass handling (thanks thepler)
1894 - added tests for this (thanks thepler)
1895 - 'has' now dies if you don't pass in name
1897 - added the 'make_immutable' keyword as a shortcut
1900 * Moose::Meta::Class
1901 Moose::Meta::Method::Constructor
1902 Moose::Meta::Attribute
1903 - making (init_arg => undef) work here too
1904 (thanks to nothingmuch)
1906 * Moose::Meta::Attribute
1907 Moose::Meta::Method::Constructor
1908 Moose::Meta::Method::Accessor
1909 - make lazy attributes respect attr initializers (rjbs)
1910 - added tests for this
1912 * Moose::Util::TypeConstraints
1913 Moose::Util::TypeConstraints::OptimizedConstraints
1914 Moose::Meta::TypeConstraints
1915 Moose::Meta::Attribute
1916 Moose::Meta::Method::Constructor
1917 Moose::Meta::Method::Accessor
1918 - making type errors use the
1919 assigned message (thanks to Sartak)
1920 - added tests for this
1922 * Moose::Meta::Method::Destructor
1923 - making sure DESTROY gets inlined properly
1924 with successive DEMOLISH calls (thanks to manito)
1926 * Moose::Meta::Attribute
1927 Moose::Meta::Method::Accessor
1928 - fixed handling of undef with type constraints
1930 - added tests for this
1933 - added &get_all_init_args and &get_all_attribute_values
1934 (thanks to Sartak and nothingmuch)
1936 0.36 Sat. Jan. 26, 2008
1938 Moose::Meta::Attribute
1939 - role type tests now support when roles are
1940 applied to non-Moose classes (found by ash)
1941 - added tests for this (thanks to ash)
1942 - couple extra tests to boost code coverage
1944 * Moose::Meta::Method::Constructor
1945 - improved fix for handling Class::MOP attributes
1946 - added test for this
1948 * Moose::Meta::Class
1949 - handled the add_attribute($attribute_meta_object)
1951 - added test for this
1953 0.35 Tues. Jan. 22, 2008
1954 * Moose::Meta::Method::Constructor
1955 - fix to make sure even Class::MOP attributes
1956 are handled correctly (Thanks to Dave Rolsky)
1957 - added test for this (also Dave Rolsky)
1959 * Moose::Meta::Class
1960 - improved error message on _apply_all_roles,
1961 you should now use Moose::Util::apply_all_roles
1962 and you shouldnt have been using a _ prefixed
1963 method in the first place ;)
1965 0.34 Mon. Jan. 21, 2008
1966 ~~~ more misc. doc. fixes ~~~
1967 ~~ updated copyright dates ~~
1969 Moose is now a postmodern object system :)
1970 - (see the POD for details)
1972 * <<Role System Refactoring>>
1973 - this release contains a major reworking and
1974 cleanup of the role system
1975 - 100% backwards compat.
1976 - Role application now restructured into seperate
1977 classes based on type of applicants
1978 - Role summation (combining of more than one role)
1979 is much cleaner and anon-classes are no longer
1980 used in this process
1981 - new Composite role metaclass
1982 - runtime application of roles to instances
1983 is now more efficient and re-uses generated
1984 classes when applicable
1986 * <<New Role composition features>>
1987 - methods can now be excluded from a given role
1989 - methods can now be aliased to another name (and
1990 still retain the original as well)
1992 * Moose::Util::TypeConstraints::OptimizedConstraints
1993 - added this module (see above)
1995 * Moose::Meta::Class
1996 - fixed the &_process_attribute method to be called
1997 by &add_attribute, so that the API is now correct
1999 * Moose::Meta::Method::Accessor
2000 - fixed bug when passing a list of values to
2001 an accessor would get (incorrectly) ignored.
2002 Thanks to Sartak for finding this ;)
2003 - added tests for this (Sartak again)
2005 * Moose::Meta::Method::Accessor
2006 Moose::Meta::Method::Constructor
2007 Moose::Meta::Attribute
2008 Moose::Meta::TypeConstraint
2009 Moose::Meta::TypeCoercion
2010 - lots of cleanup of such things as:
2012 - type constraint handling
2013 - error handling/messages
2014 (thanks to nothingmuch)
2016 * Moose::Meta::TypeConstraint::Parameterizable
2017 - added this module to support the refactor
2018 in Moose::Meta::TypeConstraint::Parameterized
2020 * Moose::Meta::TypeConstraint::Parameterized
2021 - refactored how these types are handled so they
2022 are more generic and not confined to ArrayRef
2026 - shortened some file names for better VMS support (RT #32381)
2028 0.33 Fri. Dec. 14, 2007
2029 !! Moose now loads 2 x faster !!
2030 !! with new Class::MOP 0.49 !!
2032 ++ new oose.pm module to make command line
2033 Moose-ness easier (see POD docs for more)
2035 * Moose::Meta::Class
2037 - several tweaks to take advantage of the
2038 new method map caching in Class::MOP
2040 * Moose::Meta::TypeConstraint::Parameterized
2041 - allow subtypes of ArrayRef and HashRef to
2042 be used as a container (sartak)
2043 - added tests for this
2044 - basic support for coercion to ArrayRef and
2045 HashRef for containers (sartak)
2046 - added tests for this
2048 * Moose::Meta::TypeCoercion
2049 - coercions will now create subtypes as needed
2050 so you can now add coercions to parameterized
2051 types without having to explictly define them
2052 - added tests for this
2054 * Moose::Meta::Method::Accessor
2055 - allow subclasses to decide whether we need
2056 to copy the value into a new variable (sartak)
2058 0.32 Tues. Dec. 4, 2007
2059 * Moose::Util::TypeConstraints
2060 - fixing how subtype aliases of unions work
2061 they should inherit the parent's coercion
2062 - added tests for this
2063 - you can now define multiple coercions on
2064 a single type at different times instead of
2065 having to do it all in one place
2066 - added tests for this
2068 * Moose::Meta::TypeConstraint
2069 - there is now a default constraint of sub { 1 }
2070 instead of Moose::Util::TypeConstraints setting
2073 * Moose::Meta::TypeCoercion
2074 * Moose::Meta::TypeCoercion::Union
2075 - added the &has_coercion_for_type and
2076 &add_type_coercions methods to support the
2077 new features above (although you cannot add
2078 more type coercions for Union types)
2080 0.31 Mon. Nov. 26, 2007
2081 * Moose::Meta::Attribute
2082 - made the +attr syntax handle extending types with
2083 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2084 now works if the original foo is an ArrayRef.
2085 - added tests for this.
2086 - delegation now works even if the attribute does not
2087 have a reader method using the get_read_method_ref
2088 method from Class::MOP::Attribute.
2089 - added tests for this
2090 - added docs for this
2092 * Moose::Util::TypeConstraints
2093 - passing no "additional attribute info" to
2094 &find_or_create_type_constraint will no longer
2095 attempt to create an __ANON__ type for you,
2096 instead it will just return undef.
2097 - added docs for this
2099 0.30 Fri. Nov. 23, 2007
2100 * Moose::Meta::Method::Constructor
2101 -builder related bug in inlined constructor. (groditi)
2103 * Moose::Meta::Method::Accessor
2104 - genereate unnecessary calls to predicates and refactor
2105 code generation for runtime speed (groditi)
2107 * Moose::Util::TypeConstraints
2108 - fix ClassName constraint to introspect symbol table (mst)
2109 - added more tests for this (mst)
2110 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2111 with work correctly.
2112 - added tests for this
2115 - adding the link to Recipie 11 (written by Sartak)
2116 - adding test for SYNOPSIS code
2119 - New tests for builder bug. Upon instantiation, if an
2120 attribute had a builder, no value and was not lazy the
2121 builder default was not getting run, oops. (groditi)
2123 0.29 Tues. Nov. 13, 2007
2124 * Moose::Meta::Attribute
2125 - Fix error message on missing builder method (groditi)
2127 * Moose::Meta::Method::Accessor
2128 - Fix error message on missing builder method (groditi)
2131 - Add test to check for the correct error message when
2132 builder method is missing (groditi)
2134 0.28 Tues. Nov. 13, 2007
2135 - 0.27 packaged incorrectly (groditi)
2137 0.27 Tues. Nov. 13, 2007
2138 * Moose::Meta::Attribute
2139 - Added support for the new builder option (groditi)
2140 - Added support for lazy_build option (groditi)
2141 - Changed slot initialization for predicate changes (groditi)
2143 * Moose::Meta::Method::Accessor
2144 - Added support for lazy_build option (groditi)
2145 - Fix inline methods to work with corrected predicate
2148 * Moose::Meta::Method::Constructor
2149 - Added support for lazy_build option (groditi)
2152 - tests for builder and lazy_build (groditi)
2154 * fixing some misc. bits in the docs that
2155 got mentioned on CPAN Forum & perlmonks
2158 - fixed how required methods are handled
2159 when they encounter overriden or modified
2160 methods from a class (thanks to confound).
2161 - added tests for this
2163 * Moose::Util::TypeConstraint
2164 - fixed the type notation parser so that
2165 the | always creates a union and so is
2166 no longer a valid type char (thanks to
2167 konobi, mugwump and #moose for working
2169 - added more tests for this
2171 0.26 Thurs. Sept. 27, 2007
2174 * Parameterized Types
2175 We now support parameterized collection types, such as:
2176 ArrayRef[Int] # array or integers
2177 HashRef[Object] # a hash with object values
2178 They can also be nested:
2179 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2180 And work with the type unions as well:
2181 ArrayRef[Int | Str] # array of integers of strings
2183 * Better Framework Extendability
2184 Moose.pm is now "extendable" such that it is now much
2185 easier to extend the framework and add your own keywords
2186 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2187 section of the Moose.pm docs.
2190 In an effort to begin documenting some of the various
2191 details of Moose as well as some common idioms, we have
2192 created Moose::Cookbook::Snacks as a place to find
2193 small (easily digestable) nuggets of Moose code.
2196 ~ Several doc updates/cleanup thanks to castaway ~
2198 - converted build system to use Module::Install instead of
2199 Module::Build (thanks to jrockway)
2202 - added all the meta classes to the immutable list and
2203 set it to inline the accessors
2204 - fix import to allow Sub::Exporter like { into => }
2205 and { into_level => } (perigrin)
2206 - exposed and documented init_meta() to allow better
2207 embedding and extending of Moose (perigrin)
2210 - complete re-organization of the test suite
2211 - added some new tests as well
2212 - finally re-enabled the Moose::POOP test since
2213 the new version of DBM::Deep now works again
2216 * Moose::Meta::Class
2217 - fixed very odd and very nasty recursion bug with
2219 - added tests for this (eilara)
2221 * Moose::Meta::Attribute
2222 Moose::Meta::Method::Constructor
2223 Moose::Meta::Method::Accessor
2224 - fixed issue with overload::Overloaded getting called
2225 on non-blessed items. (RT #29269)
2226 - added tests for this
2228 * Moose::Meta::Method::Accessor
2229 - fixed issue with generated accessor code making
2230 assumptions about hash based classes (thanks to dexter)
2232 * Moose::Coookbook::Snacks
2233 - these are bits of documentation, not quite as big as
2234 Recipes but which have no clear place in the module docs.
2235 So they are Snacks! (horray for castaway++)
2237 * Moose::Cookbook::Recipe4
2238 - updated it to use the new ArrayRef[MyType] construct
2239 - updated the accompanying test as well
2241 +++ Major Refactor of the Type Constraint system +++
2242 +++ with new features added as well +++
2244 * Moose::Util::TypeConstraint
2245 - no longer uses package variable to keep track of
2246 the type constraints, now uses the an instance of
2247 Moose::Meta::TypeConstraint::Registry to do it
2248 - added more sophisticated type notation parsing
2250 - added tests for this
2252 * Moose::Meta::TypeConstraint
2253 - some minor adjustments to make subclassing easier
2254 - added the package_defined_in attribute so that we
2255 can track where the type constraints are created
2257 * Moose::Meta::TypeConstraint::Union
2258 - this is now been refactored to be a subclass of
2259 Moose::Meta::TypeConstraint
2261 * Moose::Meta::TypeCoercion::Union
2262 - this has been added to service the newly refactored
2263 Moose::Meta::TypeConstraint::Union and is itself
2264 a subclass of Moose::Meta::TypeCoercion
2266 * Moose::Meta::TypeConstraint::Parameterized
2267 - added this module (taken from MooseX::AttributeHelpers)
2268 to help construct nested collection types
2269 - added tests for this
2271 * Moose::Meta::TypeConstraint::Registry
2272 - added this class to keep track of type constraints
2274 0.25 Mon. Aug. 13, 2007
2276 - Documentation update to reference Moose::Util::TypeConstraints
2277 under 'isa' in 'has' for how to define a new type
2278 (thanks to shlomif).
2280 * Moose::Meta::Attribute
2281 - required attributes now will no longer accept undef
2282 from the constructor, even if there is a default and lazy
2283 - added tests for this
2284 - default subroutines must return a value which passes the
2286 - added tests for this
2288 * Moose::Meta::Attribute
2289 * Moose::Meta::Method::Constructor
2290 * Moose::Meta::Method::Accessor
2291 - type-constraint tests now handle overloaded objects correctly
2292 in the error message
2293 - added tests for this (thanks to EvanCarroll)
2295 * Moose::Meta::TypeConstraint::Union
2296 - added (has_)hand_optimized_constraint to this class so that
2297 it behaves as the regular Moose::Meta::TypeConstraint does.
2300 - large refactoring of this code
2301 - added several more tests
2302 - tests for subtle conflict resolition issues
2303 added, but not currently running
2306 * Moose::Cookbook::Recipe7
2307 - added new recipe for augment/inner functionality
2309 - added test for this
2312 - a formal definition of roles (still in progress)
2315 - utilities for easier working with Moose classes
2316 - added tests for these
2319 - This contains Moose specific test functions
2320 - added tests for these
2322 0.24 Tues. July 3, 2007
2323 ~ Some doc updates/cleanup ~
2325 * Moose::Meta::Attribute
2326 - added support for roles to be given as parameters
2327 to the 'handles' option.
2328 - added tests and docs for this
2329 - the has '+foo' attribute form now accepts changes to
2330 the lazy option, and the addition of a handles option
2331 (but not changing the handles option)
2332 - added tests and docs for this
2335 - required methods are now fetched using find_method_by_name
2336 so that required methods can come from superclasses
2337 - adjusted tests for this
2339 0.23 Mon. June 18, 2007
2340 * Moose::Meta::Method::Constructor
2341 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2342 * Moose::Meta::Class
2343 - Modify make_immutable to work with the new Class::MOP immutable
2344 mechanism + POD + very basic test (groditi)
2345 * Moose::Meta::Attribute
2346 - Fix handles to use goto() so that caller() comes out properly on
2347 the other side (perigrin)
2349 0.22 Thurs. May 31, 2007
2350 * Moose::Util::TypeConstraints
2351 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2352 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2353 prototypes for functions
2354 - added the ClassName type constraint, this checks for strings
2355 which will respond true to ->isa(UNIVERSAL).
2356 - added tests and docs for this
2357 - subtyping just in name now works correctly by making the
2358 default for where be { 1 }
2359 - added test for this
2361 * Moose::Meta::Method::Accessor
2362 - coerce and lazy now work together correctly, thanks to
2363 merlyn for finding this bug
2364 - tests added for this
2365 - fix reader presedence bug in Moose::Meta::Attribute + tests
2368 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2369 a HASH-ref and missed. This produces better error messages then
2370 having it die cause undef is not a HASH.
2371 - added tests for this
2373 0.21 Thursday, May 2nd, 2007
2375 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2376 - modified unimport to remove super and inner along with the rest
2377 - altered unimport tests to handle this
2380 - altered super export to populate SUPER_SLOT
2382 * Moose::Meta::Class
2383 - altered augment and override modifier application to use *_SLOT
2384 - modified tests for these to unimport one test class each to test
2387 - fixed issue where custom attribute metaclasses
2388 where not handled correctly in roles
2389 - added tests for this
2391 * Moose::Meta::Class
2392 - fixed issue where extending metaclasses with
2393 roles would blow up. Thanks to Aankhen`` for
2394 finding this insidious error, and it's solution.
2396 ~~ lots of spelling and grammer fixes in the docs,
2397 many many thanks to rlb3 and Aankhen for these :)
2399 0.20 Friday, April 6th, 2007
2400 >> I messed up the SKIP logic in one test
2401 so this release is just to fix that.
2404 - 'has' now also accepts an ARRAY ref
2405 to create multiple attrs (see docs)
2406 (thanks to konobi for this)
2407 - added tests and docs
2409 0.19 Thurs. April 5th, 2007
2410 ~~ More documentation updates ~~
2412 * Moose::Util::TypeConstraints
2413 - 'type' now supports messages as well
2414 thanks to phaylon for finding this
2415 - added tests for this
2416 - added &list_all_type_constraints and
2417 &list_all_builtin_type_constraints
2418 functions to facilitate introspection.
2420 * Moose::Meta::Attribute
2421 - fixed regexp 'handles' declarations
2422 to build the list of delegated methods
2423 correctly (and not override important
2424 things like &new) thanks to ashleyb
2426 - added tests and docs for this
2427 - added the 'documentation' attributes
2428 so that you can actually document your
2429 attributes and inspect them through the
2431 - added tests and docs for this
2433 * Moose::Meta::Class
2434 - when loading custom attribute metaclasses
2435 it will first look in for the class in the
2436 Moose::Meta::Attribute::Custom::$name, and
2437 then default to just loading $name.
2438 - added tests and docs for this
2440 * Moose::Meta::TypeConstraint
2441 - type constraints now stringify to their names.
2442 - added test for this
2445 - added tests to assure we work with Module::Refresh
2446 - added stricter test skip logic in the Moose POOP
2447 test, ask Rob Kinyon why.
2448 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2450 0.18 Sat. March 10, 2007
2451 ~~ Many, many documentation updates ~~
2454 - We now use Class::MOP::load_class to
2456 - added tests to show types and subtypes
2457 working with Declare::Constraints::Simple
2458 and Test::Deep as constraint engines.
2461 !! You must have Class::MOP 0.37_001 !!
2462 !! for this developer release to work !!
2464 This release was primarily adding the immutable
2465 feature to Moose. An immutable class is one which
2466 you promise not to alter. When you set the class
2467 as immutable it will perform various bits of
2468 memoization and inline certain part of the code
2469 (constructors, destructors and accessors). This
2470 minimizes (and in some cases totally eliminates)
2471 one of Moose's biggest performance hits. This
2472 feature is not on by default, and is 100% optional.
2473 It has several configurable bits as well, so you
2474 can pick and choose to your specific needs.
2476 The changes involved in this were fairly wide and
2477 highly specific, but 100% backwards compatible, so
2478 I am not going to enumerate them here. If you are
2479 truely interested in what was changed, please do
2482 0.17 Tues. Nov. 14, 2006
2483 * Moose::Meta::Method::Accessor
2484 - bugfix for read-only accessors which
2485 are have a type constraint and lazy.
2486 Thanks to chansen for finding it.
2488 0.16 Tues. Nov. 14, 2006
2490 There are some speed improvements in this release,
2491 but they are only the begining, so stay tuned.
2494 - BUILDALL and DEMOLISHALL no longer get
2495 called unless they actually need to be.
2496 This gave us a signifigant speed boost
2497 for the cases when there is no BUILD or
2498 DEMOLISH method present.
2500 * Moose::Util::TypeConstraints
2501 * Moose::Meta::TypeConstraint
2502 - added an 'optimize_as' option to the
2503 type constraint, which allows for a
2504 hand optimized version of the type
2505 constraint to be used when possible.
2506 - Any internally created type constraints
2507 now provide an optimized version as well.
2509 0.15 Sun. Nov. 5, 2006
2511 This version of Moose *must* have Class::MOP 0.36 in order
2512 to work correctly. A number of small internal tweaks have
2513 been made in order to be compatible with that release.
2515 * Moose::Util::TypeConstraints
2516 - added &unimport so that you can clean out
2517 your class namespace of these exported
2520 * Moose::Meta::Class
2521 - fixed minor issue which occasionally
2522 comes up during global destruction
2524 - moved Moose::Meta::Method::Overriden into
2528 - moved Moose::Meta::Role::Method into
2531 * Moose::Meta::Attribute
2532 - changed how we do type checks so that
2533 we reduce the overall cost, but still
2536 - moved accessor generation methods to
2537 Moose::Meta::Method::Accessor to
2538 conform to the API changes from
2541 * Moose::Meta::TypeConstraint
2542 - changed how constraints are compiled
2543 so that we do less recursion and more
2544 iteration. This makes the type check
2546 - moved Moose::Meta::TypeConstraint::Union
2549 * Moose::Meta::Method::Accessor
2550 - created this from methods formerly found in
2551 Moose::Meta::Attribute
2553 * Moose::Meta::Role::Method
2554 - moved this from Moose::Meta::Role
2556 * Moose::Meta::Method::Overriden
2557 - moved this from Moose::Meta::Class
2559 * Moose::Meta::TypeConstraint::Union
2560 - moved this from Moose::Meta::TypeConstraint
2562 0.14 Mon. Oct. 9, 2006
2564 * Moose::Meta::Attribute
2565 - fixed lazy attributes which were not getting
2566 checked with the type constraint (thanks ashley)
2567 - added tests for this
2568 - removed the over-enthusiastic DWIMery of the
2569 automatic ArrayRef and HashRef defaults, it
2570 broke predicates in an ugly way.
2571 - removed tests for this
2573 0.13 Sat. Sept. 30, 2006
2575 This version of Moose *must* have Class::MOP 0.35 in order
2576 to work correctly. A number of small internal tweaks have
2577 been made in order to be compatible with that release.
2580 - Removed the use of UNIVERSAL::require to be a better
2581 symbol table citizen and remove a dependency
2582 (thanks Adam Kennedy)
2584 **~~ removed experimental & undocumented feature ~~**
2585 - commented out the 'method' and 'self' keywords, see the
2586 comments for more info.
2589 - added a FAQ and WTF files to document frequently
2590 asked questions and common problems
2592 * Moose::Util::TypeConstraints
2593 - added GlobRef and FileHandle type constraint
2594 - added tests for this
2596 * Moose::Meta::Attribute
2597 - if your attribute 'isa' ArrayRef of HashRef, and you have
2598 not explicitly set a default, then make the default DWIM.
2599 This will also work for subtypes of ArrayRef and HashRef
2601 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2602 - new test added for this (thanks to ashley)
2605 - added basic support for runtime role composition
2606 but this is still *highly experimental*, so feedback
2607 is much appreciated :)
2608 - added tests for this
2610 * Moose::Meta::TypeConstraint
2611 - the type constraint now handles the coercion process
2612 through delegation, this is to support the coercion
2615 * Moose::Meta::TypeConstraint::Union
2616 - it is now possible for coercions to be performed
2618 - added tests for this (thanks to konobi)
2620 * Moose::Meta::TypeCoercion
2621 - properly capturing error when type constraint
2625 - Scalar::Util 1.18 is bad on Win32, so temporarily
2626 only require version 1.17 for Win32 and cygwin.
2627 (thanks Adam Kennedy)
2629 0.12 Sat. Sept. 1, 2006
2631 - Recipe5 (subtypes & coercion) has been written
2634 - fixed "bad meta" error message to be more descriptive
2635 - fixed &unimport to not remove the &inner and &super
2636 keywords because we need to localize them.
2637 - fixed number of spelling/grammer issues, thanks Theory :)
2639 **~~ experimental & undocumented feature ~~**
2640 - added the method and self keywords, they are basically
2641 just sugar, and they may not stay around.
2644 - added &dump method to easily Data::Dumper
2647 * Moose::Meta::TypeConstraint
2648 - added the &is_a_type_of method to check both the current
2649 and the subtype of a method (similar to &isa with classes)
2652 - this is now a subclass of Class::MOP::Module, and no longer
2653 creates the _role_meta ugliness of before.
2654 - fixed tests to reflect this change
2656 0.11 Wed. July 12, 2006
2658 - added an &unimport method to remove all the keywords
2659 that Moose will import, simply add 'no Moose' to the
2660 bottom of your class file.
2663 - fixed some test failures caused by a forgotten test
2666 0.10 Thurs. July 6, 2006
2668 - improved error message when loading modules so
2669 it is less confusing when you load a role.
2670 - added &calculate_all_roles method to
2671 Moose::Meta::Class and Moose::Meta::Role
2674 This module has been tested against Class::MOP 0.30
2675 but it does not yet utilize the optimizations
2676 it makes available. Stay tuned for that ;)
2678 0.09_03 Fri. June 23, 2006
2679 ++ DEVELOPER RELEASE ++
2681 - 'use strict' and 'use warnings' are no longer
2682 needed in Moose classes, Moose itself will
2683 turn them on for you.
2684 - added tests for this
2685 - moved code from exported subs to private methods
2686 in Moose::Meta::Class
2689 - as with Moose, strict and warnings are
2690 automatically turned on for you.
2691 - added tests for this
2694 - now handles an edge case for override errors
2695 - added tests for this
2696 - added some more edge case tests
2698 0.09_02 Tues. May 16, 2006
2699 ++ DEVELOPER RELEASE ++
2701 - added prototypes to the exported subs
2705 - added prototypes to the exported subs
2708 * Moose::Util::TypeConstraints
2709 - cleaned up prototypes for the subs
2712 0.09_01 Fri. May 12, 2006
2713 ++ DEVELOPER RELEASE ++
2714 - This release works in combination with
2715 Class::MOP 0.29_01, it is a developer
2716 release because it uses the a new
2717 instance sub-protocol and a fairly
2718 complete Role implementation. It has
2719 not yet been optimized, so it slower
2720 the the previous CPAN version. This
2721 release also lacks good updated docs,
2722 the official release will have updated docs.
2725 - refactored the keyword exports
2726 - 'with' now checks Role validaity and
2727 accepts more than one Role at a time
2728 - 'extends' makes metaclass adjustments as
2729 needed to ensure metaclass compatibility
2732 - refactored the keyword exports
2733 - 'with' now checks Role validaity and
2734 accepts more than one Role at a time
2736 * Moose::Util::TypeConstraints
2737 - added the 'enum' keyword for simple
2738 string enumerations which can be used as
2740 - see example of usage in t/202_example.t
2743 - more careful checking of params to new()
2746 - much work done on the role composition
2747 - many new tests for conflict detection
2748 and composition edge cases
2749 - not enough documentation, I suggest
2750 looking at the tests
2752 * Moose::Meta::Instance
2753 - added new Instance metaclass to support
2754 the new Class::MOP instance protocol
2756 * Moose::Meta::Class
2757 - some small changes to support the new
2759 - some small additions to support Roles
2761 * Moose::Meta::Attribute
2762 - some improvements to the accessor generation code
2764 - some small changes to support the new
2766 - (still somewhat) experimental delegation support
2767 with the 'handles' option
2768 - added several tests for this
2769 - no docs for this yet
2771 0.05 Thurs. April 27, 2006
2773 - keywords are now exported with Sub::Exporter
2774 thanks to chansen for this commit
2775 - has keyword now takes a 'metaclass' option
2776 to support custom attribute meta-classes
2777 on a per-attribute basis
2778 - added tests for this
2779 - the 'has' keyword not accepts inherited slot
2780 specifications (has '+foo'). This is still an
2781 experimental feature and probably not finished
2782 see t/038_attribute_inherited_slot_specs.t for
2783 more details, or ask about it on #moose
2784 - added tests for this
2787 - keywords are now exported with Sub::Exporter
2789 * Moose::Utils::TypeConstraints
2790 - reorganized the type constraint hierarchy, thanks
2791 to nothingmuch and chansen for his help and advice
2793 - added some tests for this
2794 - keywords are now exported with Sub::Exporter
2795 thanks to chansen for this commit
2797 * Moose::Meta::Class
2798 - due to changes in Class::MOP, we had to change
2799 construct_instance (for the better)
2801 * Moose::Meta::Attribute
2802 - due to changes in Class::MOP, we had to add the
2803 initialize_instance_slot method (it's a good thing)
2805 * Moose::Meta::TypeConstraint
2806 - added type constraint unions
2807 - added tests for this
2808 - added the is_subtype_of predicate method
2809 - added tests for this
2811 0.04 Sun. April 16th, 2006
2813 - Roles can now consume other roles
2814 - added tests for this
2815 - Roles can specify required methods now with
2816 the requires() keyword
2817 - added tests for this
2820 - ripped out much of it's guts ,.. much cleaner now
2821 - added required methods and correct handling of
2822 them in apply() for both classes and roles
2823 - added tests for this
2824 - no longer adds a does() method to consuming classes
2825 it relys on the one in Moose::Object
2826 - added roles attribute and some methods to support
2827 roles consuming roles
2829 * Moose::Meta::Attribute
2830 - added support for triggers on attributes
2831 - added tests for this
2832 - added support for does option on an attribute
2833 - added tests for this
2835 * Moose::Meta::Class
2836 - added support for attribute triggers in the
2838 - added tests for this
2841 - Moose no longer creates a subtype for your class
2842 if a subtype of the same name already exists, this
2843 should DWIM in 99.9999% of all cases
2845 * Moose::Util::TypeConstraints
2846 - fixed bug where incorrect subtype conflicts were
2848 - added test for this
2851 - this class can now be extended with 'use base' if
2852 you need it, it properly loads the metaclass class now
2853 - added test for this
2855 0.03_02 Wed. April 12, 2006
2857 - you must now explictly use Moose::Util::TypeConstraints
2858 it no longer gets exported for you automatically
2861 - new() now accepts hash-refs as well as key/value lists
2862 - added does() method to check for Roles
2863 - added tests for this
2865 * Moose::Meta::Class
2866 - added roles attribute along with the add_role() and
2868 - added tests for this
2871 - now adds a does() method to consuming classes
2872 which tests the class's hierarchy for roles
2873 - added tests for this
2875 0.03_01 Mon. April 10, 2006
2877 - added new Role recipe (no content yet, only code)
2880 - added 'with' keyword for Role support
2881 - added test and docs for this
2882 - fixed subtype quoting bug
2883 - added test for this
2887 - added test and docs
2889 * Moose::Util::TypeConstraints
2890 - added the message keyword to add custom
2891 error messages to type constraints
2894 - the meta role to support Moose::Role
2895 - added tests and docs
2897 * Moose::Meta::Class
2898 - moved a number of things from Moose.pm
2899 to here, they should have been here
2902 * Moose::Meta::Attribute
2903 - moved the attribute option macros here
2904 instead of putting them in Moose.pm
2906 * Moose::Meta::TypeConstraint
2907 - added the message attributes and the
2909 - added tests and docs for this
2911 0.03 Thurs. March 30, 2006
2913 - added the Moose::Cookbook with 5 recipes,
2914 describing all the stuff Moose can do.
2917 - fixed an issue with &extends super class loading
2918 it now captures errors and deals with inline
2919 packages correctly (bug found by mst, solution
2921 - added super/override & inner/augment features
2922 - added tests and docs for these
2925 - BUILDALL now takes a reference of the %params
2926 that are passed to &new, and passes that to
2929 * Moose::Util::TypeConstraints
2930 - Type constraints now survive runtime reloading
2931 - added test for this
2933 * Moose::Meta::Class
2934 - fixed the way attribute defaults are handled
2935 during instance construction (bug found by chansen)
2937 * Moose::Meta::Attribute
2938 - read-only attributes now actually enforce their
2939 read-only-ness (this corrected in Class::MOP as
2942 0.02 Tues. March 21, 2006
2944 - many more tests, fixing some bugs and
2946 - &extends now loads the base module with
2948 - added UNIVERSAL::require to the
2951 - each new Moose class will also create
2952 and register a subtype of Object which
2953 correspond to the new Moose class.
2954 - the 'isa' option in &has now only
2955 accepts strings, and will DWIM in
2958 * Moose::Util::TypeConstraints
2959 - added type coercion features
2960 - added tests for this
2961 - added support for this in attributes
2962 and instance construction
2964 - type construction no longer creates a
2965 function, it registers the type instead.
2966 - added several functions to get the
2970 - BUILDALL and DEMOLISHALL were broken
2971 because of a mis-named hash key, Whoops :)
2973 * Moose::Meta::Attribute
2974 - adding support for coercion in the
2975 autogenerated accessors
2977 * Moose::Meta::Class
2978 - adding support for coercion in the
2979 instance construction
2981 * Moose::Meta::TypeConstraint
2982 * Moose::Meta::TypeCoercion
2983 - type constraints and coercions are now
2984 full fledges meta-objects
2986 0.01 Wed. March 15, 2006
2987 - Moooooooooooooooooose!!!