1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
12 * Improved support for anonymous roles by changing various APIs to take
13 Moose::Meta::Role objects as well as role names. This included
15 - Moose::Meta::Class->does_role
16 - Moose::Meta::Role->does_role
17 - Moose::Util::does_role
18 - Moose::Util::apply_all_roles
19 - Moose::Util::ensure_all_roles
20 - Moose::Util::search_class_by_role
22 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
26 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
27 work as long as the accessor method names are explicitly set to valid Perl
28 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
31 0.93_03 Tue, Jan 5, 2010
35 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
36 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
39 0.93_02 Tue, Jan 5, 2010
43 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
44 testers. (Dave Rolsky)
47 0.93_01 Mon, Jan 4, 2010
51 See Moose::Manual::Delta for more details on backwards compatiblity issues.
53 * Role attributes are now objects of the Moose::Meta::Role::Attribute
56 * There were major changes to how metaroles are applied. We now distinguish
57 between metaroles for classes vs those for roles. See the
58 Moose::Util::MetaRole docs for details. (Dave Rolsky)
60 * The old MetaRole API has been deprecated, but will continue to
61 work. However, if you are applying an attribute metaclass role, this may
62 break because of the fact that roles now have an attribute metaclass
65 * Moose::Util::MetaRole::apply_metaclass_roles is now called
66 apply_metaroles. The old name is deprecated. Dave Rolsky>
68 * The unimport subs created by Moose::Exporter now clean up re-exported
69 functions like blessed and confess, unless the caller imported them from
70 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
72 [ENHANCEMENTS AND BUG FIXES]
74 * Changed the Str constraint to accept magic lvalue strings like one gets from
75 substr et al, again. (sorear)
77 * Sped up the type constraint parsing regex. (Sam Vilain)
79 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
82 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
83 easier testing of TypeConstraints from the command line. (perigrin)
85 * Added a with_immutable test function to Test::Moose, to run a block of tests
86 with and without certain classes being immutable. (doy)
88 * We now use Module::Install extensions explicitly to avoid confusing errors
89 if they're not installed. We use Module::Install::AuthorRequires to stop
90 test extraction and general failures if you don't have the author side
91 dependencies installed.
93 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
94 #51791. (Amir E. Aharoni)
97 0.93 Thu, Nov 19, 2009
99 - Calling $object->new() is no longer deprecated, and no longer
103 - The get_attribute_map method is now deprecated. (Dave Rolsky)
105 * Moose::Meta::Method::Delegation
106 - Preserve variable aliasing in @_ for delegated methods, so that
107 altering @_ affects the passed value. (doy)
109 * Moose::Util::TypeConstraints
110 - Allow array refs for non-anonymous form of enum and duck_type, not
111 just anonymous. The non-arrayref forms may be removed in the
113 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
114 - Properly document Int being a subtype of Str. (doy)
117 - Moose::Exporter using modules can now export their functions to the
118 main package. This applied to Moose and Moose::Role, among
119 others. (nothingmuch)
121 * Moose::Meta::Attribute
122 - Don't remove attribute accessors we never installed, during
123 remove_accessors. (doy)
125 * Moose::Meta::Attribute::Native::Trait::Array
126 - Don't bypass prototype checking when calling List::Util::first, to
127 avoid a segfault when it is called with a non-code argument. (doy)
129 * Moose::Meta::Attribute::Native::Trait::Code
130 - Fix passing arguments to code execute helpers. (doy)
132 0.92 Tue, Sep 22, 2009
133 * Moose::Util::TypeConstraints
134 - added the match_on_type operator (Stevan)
135 - added tests and docs for this (Stevan)
138 - Metaclass compat fixing should already happen recursively, there's no
139 need to explicitly walk up the inheritance tree. (doy)
141 * Moose::Meta::Attribute
142 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
144 0.91 Thu, Sep 17, 2009
146 - Don't import any functions, in order to avoid polluting our namespace
147 with things that can look like methods (blessed, try, etc)
150 * Moose::Meta::Method::Constructor
151 - The generated code needs to called Scalar::Util::blessed by its
152 fully-qualified name or else Perl can interpret the call to blessed as
153 an indirect method call. This broke Search::GIN, which in turn broke
154 KiokuDB. (nothingmuch)
156 0.90 Tue, Sep 15, 2009
157 * Moose::Meta::Attribute::Native::Trait::Counter
158 * Moose::Meta::Attribute::Native::Trait::String
159 - For these two traits, an attribute which did not explicitly provide
160 methods to handles magically ended up delegating *all* the helper
161 methods. This has been removed. You must be explicit in your handles
162 declaration for all Native Traits. (Dave Rolsky)
165 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
166 sure to rethrow its error message. However, we also localize $@ before
167 this so that if all the DEMOLISH methods success, the value of $@ will
168 be preserved. (nothingmuch and Dave Rolsky)
169 - We now also localize $? during object destruction. (nothingmuch and
171 - The handling of DEMOLISH methods was broken for immutablized classes,
172 which were not receiving the value of
173 Devel::GlobalDestruction::in_global_destruction.
174 - These two fixes address some of RT #48271, reported by Zefram.
175 - This is all now documented in Moose::Manual::Construction.
176 - Calling $object->new() is now deprecated. A warning will be
180 - Added more hooks to customize how roles are applied. The role
181 summation class, used to create composite roles, can now be changed
182 and/or have meta-roles applied to it. (rafl)
183 - The get_method_list method no longer explicitly excludes the "meta"
184 method. This was a hack that has been replaced by better hacks. (Dave
187 * Moose::Meta::Method::Delegation
188 - fixed delegated methods to make sure that any modifiers attached to
189 the accessor being delegated on will be called (Stevan)
190 - added tests for this (Stevan)
193 - Moose no longer warns when a class that is being made immutable has
194 mutable ancestors. While in theory this is a good thing to warn about,
195 we found so many exceptions to this that doing this properly became
198 0.89_02 Thu, Sep 10, 2009
199 * Moose::Meta::Attribute::Native
200 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
202 * Moose::Meta::Attribute::Native::Trait::Array
203 - Added a number of functions from List::Util and List::MoreUtils,
204 including reduce, shuffle, uniq, and natatime. (doy)
207 - This module will now generate an init_meta method for your exporting
208 class if you pass it options for
209 Moose::Util::MetaRole::apply_metaclass_roles or
210 apply_base_class_roles. This eliminates a lot of repetitive
211 boilerplate for typical MooseX modules. (doy).
212 - Documented the with_meta feature, which is a replacement for
213 with_caller. This feature was added by josh a while ago.
214 - The with_caller feature is now deprecated, but will not issue a
215 warning yet. (Dave Rolsky)
216 - If you try to wrap/export a subroutine which doesn't actually exist,
217 Moose::Exporter will warn you about this. (doy)
219 * Moose::Meta::Role::Application::ToRole
220 - When a role aliased a method from another role, it was only getting
221 the new (aliased) name, not the original name. This differed from what
222 happens when a class aliases a role's methods. If you _only_ want the
223 aliased name, make sure to also exclue the original name. (Dave
226 0.89_01 Wed Sep 2, 2009
227 * Moose::Meta::Attribute
228 - Added the currying syntax for delegation from AttributeHelpers to the
229 existing delegation API. (hdp)
231 * Moose::Meta::Attribute::Native
232 - We have merged the functionality of MooseX::AttributeHelpers into the
233 Moose core with some API tweaks. You can continue to use
234 MooseX::AttributeHelpers, but it will not be maintained except
235 (perhaps) for critical bug fixes in the future. See
236 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
239 * Moose::Error::Croak
240 * Moose::Error::Confess
241 - Clarify documentation on how to use different error-throwing
242 modules. (Curtis Jewell)
245 - Correct POD for builder to point to Recipe8, not 9. (gphat)
248 - When a nonexistent sub name is passed to as_is, with_caller, or
249 with_meta, throw a warning and skip the exporting, rather than
250 installing a broken sub. (doy)
253 - Moose now warns if you call C<make_immutable> for a class with mutable
256 0.89 Thu Aug 13, 2009
257 * Moose::Manual::Attributes
258 - Clarify "is", include discussion of "bare". (Sartak)
260 * Moose::Meta::Role::Method::Conflicting
261 * Moose::Meta::Role::Application::ToClass
262 - For the first set of roles involved in a conflict, report all
263 unresolved method conflicts, not just the first method. Fixes #47210
264 reported by Ovid. (Sartak)
266 * Moose::Meta::TypeConstraint
267 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
270 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
272 - Allow specifying role options (alias, excludes, MXRP stuff) in the
273 arrayref passed to "use Moose -traits" (doy)
276 - Add functions meta_class_alias and meta_attribute_alias for creating
277 aliases for class and attribute metaclasses and metatraits. (doy)
279 * Moose::Meta::Attribute
280 * Moose::Meta::Method::Accessor
281 - A trigger now receives the old value as a second argument, if the
282 attribute had one. (Dave Rolsky)
284 * Moose::Meta::Method::Constructor
285 - Fix a bug with $obj->new when $obj has stringify overloading.
286 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
287 - However, we will probably deprecate $obj->new, so please don't start
288 using it for new code!
290 * Moose::Meta::Role::Application
291 * Moose::Meta::Role::Application::RoleSummation
292 - Rename alias and excludes to -alias and -excludes (but keep the old
293 names for now, for backcompat) (doy)
295 0.88 Fri Jul 24, 2009
296 * Moose::Manual::Contributing
297 - Re-write the Moose::Manual::Contributing document to reflect
298 the new layout and methods of work for the Git repository. All
299 work now should be done in topic branches and reviewed by a
300 core committer before being applied to master. All releases
301 are done by a cabal member and merged from master to
302 stable. This plan was devised by Yuval, blame him. (perigrin)
305 - Create metaclass attributes for the different role application
308 * Moose::Util::MetaRole
309 - Allow applying roles to a meta role's role application
312 * Moose::Meta::Attribute
313 - Add weak_ref to allowed options for "has '+foo'" (mst)
315 * Moose::Meta::Method::Accessor
316 - No longer uses inline_slot_access in accessors, to support
317 non-lvalue-based meta instances. (sorear)
320 * Moose::Meta::Method::Delegation
321 - Once again allow class names as well as objects for
322 delegation. This was changed in 0.86.
325 * Moose::Meta::Class::Immutable::Trait
326 - Fixes to work with the latest Class::MOP.
328 * Moose::Meta::Method::Delegation
329 - Delegation now dies with a more useful error message if the
330 attribute's accessor returns something defined but
333 0.85 Fri, Jun 26, 2009
334 * Moose::Meta::Attribute
335 - The warning for 'no associated methods' is now split out into
336 the _check_associated_methods method, so that extensions can
337 safely call 'after install_accessors => ...'. This fixes a
338 warning from MooseX::AttributeHelpers. (hdp)
340 0.84 Fri, Jun 26, 2009
342 - has now sets definition_context for attributes defined in
345 * Moose::Meta::Attribute
346 - When adding an attribute to a metaclass, if the attribute has
347 no associated methods, it will give a deprecation
349 - Methods generated by delegation were not being added to
350 associated_methods. (hdp)
351 - Attribute accessors (reader, writer, accessor, predicate,
352 clearer) now warn if they overwrite an existing method. (doy)
353 - Attribute constructors now warn very noisily about unknown (or
354 misspelled) arguments
356 * Moose::Util::TypeConstraints
357 - Deprecated the totally useless Role type name, which just
358 checked if $object->can('does'). Note that this is _not_ the
359 same as a type created by calling role_type('RoleName').
361 * Moose::Util::TypeConstraints
362 * Moose::Meta::TypeConstraint::DuckType
363 - Reify duck type from a regular subtype into an actual class
365 - Document this because Sartak did all my work for me
368 * Moose::Meta::Attribute
369 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
370 it is just a list of methods (Sartak)
373 - The get_*_method_modifiers methods would die if the role had
374 no modifiers of the given type (Robert Buels).
376 0.83 Tue, Jun 23, 2009
378 - Fix _construct_instance not setting the special __MOP__ object
379 key in instances of anon classes. (doy)
381 0.82 Sun, Jun 21, 2009
382 * Moose::Manual::Types
383 - Mention MooseX::Types early to avoid users falling down the
384 string parsing rathole (mst)
386 * Moose::Manual::MooseX
387 - Add warnings about class-level extensions and mention considering
388 using plain objects instead
390 0.81 Sun, Jun 7, 2009
391 * Bumped our Class::MOP prereq to the latest version (0.85), since
394 0.80 Sat, Jun 6, 2009
396 - Add FAQ about the coercion change from 0.76 because it came up
397 three times today (perigrin)
398 - Win doy $10 dollars because Sartak didn't think anybody
399 would document this fast enough (perigrin)
401 * Moose::Meta::Method::Destructor
402 - Inline a DESTROY method even if there are no DEMOLISH methods
403 to prevent unnecessary introspection in
404 Moose::Object::DEMOLISHALL
407 - A role's required methods are now represented by
408 Moose::Meta::Role::Method::Required objects. Conflicts are now
409 represented by Moose::Meta::Role::Method::Conflicting
410 objects. The benefit for end-users in that unresolved
411 conflicts generate different, more instructive, errors,
412 resolving Ovid's #44895. (Sartak)
415 - Improve the error message of "extends" as suggested by Adam
416 Kennedy and confound (Sartak)
417 - Link to Moose::Manual::Roles from Moose::Role as we now have
418 excellent documentation (Adam Kennedy)
421 - Update test suite for subname change in Class::MOP
423 - Add TODO test for infinite recursion in Moose::Meta::Class
426 0.79 Wed, May 13, 2009
428 - More fixes for Win32 problems. Reported by Robert Krimen.
431 - The DEMOLISHALL method could still blow up in some cases
432 during global destruction. This method has been made more
433 resilient in the face of global destruction's random garbage
437 - If you "also" a module that isn't loaded, the error message
438 now acknowledges that (Sartak)
441 - When your ->meta method does not return a Moose::Meta::Class,
442 the error message gave the wrong output (Sartak)
444 0.78 Tue, May 12, 2009
445 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
446 - Merged these documents into what is now Moose::Manual::FAQ
449 - Moved to Moose::Manual::Unsweetened
451 * Moose::Cookbook::Basics::Recipes 9-12
452 - Renamed to be 8-11, since recipe 8 did not exist
455 - Make Moose::Exporter import strict and warnings into packages
459 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
460 methods during global destruction (doy)
463 * Moose::Meta::Role::Application::ToClass
464 - Track the Role::Application objects created during class-role
468 - Fix metaclass incompatibility errors when extending a vanilla perl
469 class which isa Moose class with a metaclass role applied (t0m)
472 - Add a role-combination hook, _role_for_combination, for the
473 benefit of MooseX::Role::Parameterized (Sartak)
476 - Some tests were failing on Win32 because they explicit checked
477 warning output for newlines. Reported by Nickolay Platonov.
479 0.77 Sat, May 2, 2009
481 - Add explicit use of Devel::GlobalDestruction and Sub::Name
485 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
486 or not we are currently in global destruction (doy)
487 - Add explicit use of Devel::GlobalDestruction and Sub::Name
490 * Moose::Cookbook::FAQ
491 - Reworked much of the existing content to be more useful to
492 modern Moose hackers (Sartak)
495 - Depend on Class::MOP 0.83 instead of 0.82_01.
497 0.76 Mon, April 27, 2009
498 * Moose::Meta::TypeConstraint
499 - Do not run coercions in coerce() if the value already passes the type
502 * Moose::Meta::TypeConstraint::Class
503 - In validation error messages, specifically say that the value is not
504 an instance of the class. This should alleviate some frustrating
505 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
507 * Moose::Meta::Role::Application::ToClass
508 - Revert the class-overrides-role warning in favor of a solution outside
509 of the Moose core (Sartak)
512 - Make Test::Output optional again, since it's only used in a few files
515 0.75_01 Thu, April 23, 2009
516 * Moose::Meta::Role::Application::ToClass
517 - Moose now warns about each class overriding methods from roles it
521 - Warnings tests have standardized on Test::Output which is now an
522 unconditionally dependency (Sartak)
525 - Changes to immutabilization to work with Class::MOP 0.82_01+.
527 0.75 Mon, April 20, 2009
530 - Move validation of not inheriting from roles from Moose::extends to
531 Moose::Meta::Class::superclasses (doy)
534 - add ensure_all_roles() function to encapsulate the common "apply this
535 role unless the object already does it" pattern (hdp)
538 - Users can now select a different metaclass with the "-metaclass"
539 option to import, for classes and roles (Sartak)
542 - Make method_metaclass an attr so that it can accept a metarole
545 0.74 Tue, April 7, 2009
547 * Moose::Meta::Method::Destructor
548 - Include stack traces in the deprecation warnings.
552 - Removed the long-deprecated _apply_all_roles method.
554 * Moose::Meta::TypeConstraint
555 - Removed the long-deprecated union method.
558 0.73_02 Mon, April 6, 2009
559 * More deprecations and renamings
560 - Moose::Meta::Method::Constructor
561 - initialize_body => _initialize_body (this is always called
562 when an object is constructed)
565 - The DEMOLISHALL method could throw an exception during global
566 destruction, meaning that your class's DEMOLISH methods would
567 not be properly called. Reported by t0m.
569 * Moose::Meta::Method::Destructor
570 - Destructor inlining was totally broken by the change to the
571 is_needed method in 0.72_01. Now there is a test for this
572 feature, and it works again.
575 - Bold the word 'not' in the POD for find_meta (t0m)
577 0.73_01 Sun, April 5, 2009
579 - Call user_class->meta in fewer places, with the eventual goal
580 of allowing the user to rename or exclude ->meta
581 altogether. Instead uses Class::MOP::class_of. (Sartak)
583 * Moose::Meta::Method::Accessor
584 - If an attribute had a lazy default, and that value did not
585 pass the attribute's type constraint, it did not get the
586 message from the type constraint, instead using a generic
587 message. Test provided by perigrin.
589 * Moose::Util::TypeConstraints
590 - Add duck_type keyword. It's sugar over making sure an object
591 can() a list of methods. This is easier than jrockway's
592 suggestion to fork all of CPAN. (perigrin)
593 - add tests and documentation (perigrin)
596 - Document the fact that init_meta() returns the target class's
597 metaclass object. (hdp)
599 * Moose::Cookbook::Extending::Recipe1
600 * Moose::Cookbook::Extending::Recipe2
601 * Moose::Cookbook::Extending::Recipe3
602 * Moose::Cookbook::Extending::Recipe4
603 - Make init_meta() examples explicitly return the metaclass and
604 point out this fact. (hdp)
606 * Moose::Cookbook::Basics::Recipe12
607 - A new recipe, creating a custom meta-method class.
609 * Moose::Cookbook::Meta::Recipe6
610 - A new recipe, creating a custom meta-method class.
613 * Moose::Meta::Method::Constructor
614 - Attribute triggers no longer receive the meta-attribute object
615 as an argument in any circumstance. Previously, triggers
616 called during instance construction were passed the
617 meta-attribute, but triggers called by normal accessors were
618 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
620 * Moose::Manual::Attributes
621 - Remove references to triggers receving the meta-attribute object as an
624 * Moose::Cookbook::FAQ
625 - Remove recommendation for deprecated Moose::Policy and
626 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
629 * Many methods have been renamed with a leading underscore, and a
630 few have been deprecated entirely. The methods with a leading
631 underscore are consider "internals only". People writing
632 subclasses or extensions to Moose should feel free to override
633 them, but they are not for "public" use.
636 - check_metaclass_compatibility => _check_metaclass_compatibility
638 - Moose::Meta::Method::Accessor
639 - initialize_body => _initialize_body (this is always called
640 when an object is constructed)
641 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
643 - Moose::Meta::Method::Constructor
644 - initialize_body => _initialize_body (this is always called
645 when an object is constructed)
646 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
647 - attributes => _attributes (now inherited from parent)
648 - meta_instance => _meta_instance (now inherited from parent)
651 - alias_method is deprecated. Use add_method
653 0.73 Fri, March 29, 2009
654 * No changes from 0.72_01.
656 0.72_01 Thu, March 26, 2009
658 - Almost every module has complete API documentation. A few
659 methods (and even whole classes) have been intentionally
660 excluded pending some rethinking of their APIs.
662 * Moose::Util::TypeConstraints
663 - Calling subtype with a name as the only argument is now an
664 exception. If you want an anonymous subtype do:
666 my $subtype = subtype as 'Foo';
668 * Moose::Cookbook::Meta::Recipe7
669 - A new recipe, creating a custom meta-instance class.
671 * Moose::Cookbook::Basics::Recipe5
672 - Fix various typos and mistakes. Includes a patch from Radu
675 * Moose::Cookbook::Basics::Recipe9
676 - Link to this recipe from Moose.pm's builder blurb
679 - When wrapping a function with a prototype, Moose::Exporter now
680 makes sure the wrapped function still has the same
681 prototype. (Daisuke Maki)
683 * Moose::Meta::Attribute
684 - Allow a subclass to set lazy_build for an inherited
688 - Explicitly depend on Data::OptList. We already had this dependency
689 via Sub::Exporter, but since we're using it directly we're
690 better off with it listed. (Sartak)
692 * Moose::Meta::Method::Constructor
693 - Make it easier to subclass the inlining behaviour. (Ash
696 * Moose::Manual::Delta
697 - Details significant changes in the history of Moose, along
698 with recommended workarounds.
700 * Moose::Manual::Contributing
701 - Contributor's guide to Moose.
703 * Moose::Meta::Method::Constructor
704 - The long-deprecated intialize_body method has been removed
705 (yes, spelled like that).
707 * Moose::Meta::Method::Destructor
708 - This is_needed method is now always a class method.
711 - Changes to the internals of how make_immutable works to match
712 changes in latest Class::MOP.
714 0.72 Mon, February 23, 2009
716 * Moose::Meta::Method::Constructor
717 - A mutable class accepted Foo->new(undef) without complaint,
718 while an immutable class would blow up with an unhelpful
719 error. Now, in both cases we throw a helpful error
720 instead. Reported by doy.
722 0.71_01 Sun, February 22, 2009
724 - Hopefully fixed some POD errors in a few recipes that caused
725 them to display weird on search.cpan.org.
727 * Moose::Util::TypeConstraints
728 - Calling type or subtype without the sugar helpers (as, where,
729 message) is now deprecated.
730 - The subtype function tried hard to guess what you meant, but
731 often got it wrong. For example:
733 my $subtype = subtype as 'ArrayRef[Object]';
735 This caused an error in the past, but now works as you'd
739 - Make sure Moose.pm is loaded before calling
740 Moose->throw_error. This wasn't normally an issue, but could
741 bite you in weird cases.
743 0.71 Thu, February 19, 2009
744 * Moose::Cookbook::Basics::Recipe11
745 - A new recipe which demonstrates the use of BUILDARGS and
748 * Moose::Cookbook::Roles::Recipe3
749 - A new recipe, applying a role to an object instance. (Dave
753 - Allow overriding specific keywords from "also" packages. (doy)
756 - Replace hardcoded cookbook tests with Test::Inline to ensure
757 the tests match the actual code in the recipes. (Dave Rolsky)
760 - Working on the above turned up a number of little bugs in the
761 recipe code. (Dave Rolsky)
763 * Moose::Util::TypeConstraints::Optimized
764 - Just use Class::MOP for the optimized ClassName check. (Dave
767 0.70 Sat, February 14, 2009
768 * Moose::Util::TypeConstraints
769 - Added the RoleName type (stevan)
770 - added tests for this (stevan)
772 * Moose::Cookbook::Basics::Recipe3
773 - Updated the before qw[left right] sub to be a little more
774 defensive about what it accepts (stevan)
775 - added more tests to t/000_recipies/basics/003_binary_tree.t
779 - We now always call DEMOLISHALL, even if a class does not
780 define DEMOLISH. This makes sure that method modifiers on
781 DEMOLISHALL work as expected. (doy)
782 - added tests for this (EvanCarroll)
784 * Moose::Util::MetaRole
785 - Accept roles for the wrapped_method_metaclass (rafl)
786 - added tests for this (rafl)
788 * Moose::Meta::Attribute
789 - We no longer pass the meta-attribute object as a final
790 argument to triggers. This actually changed for inlined code a
791 while back, but the non-inlined version and the docs were
795 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
796 they require 0.11. (Dave Rolsky)
799 - Lots of small changes to the manual, cookbook, and
800 elsewhere. These were based on feedback from various
801 users, too many to list here. (Dave Rolsky)
803 0.69 Thu, February 12, 2009
805 - Make some keyword errors use throw_error instead of croak
806 since Moose::Exporter wraps keywords now (Sartak)
809 - Revised every recipe for style and clarity. Also moved some
810 documentation out of cookbook recipes and into Moose::Manual
811 pages. This work was funded as part of the Moose docs grant
812 from TPF. (Dave Rolsky)
814 * Moose::Meta::Method::Delegation
815 - If the attribute doing the delegation was not populated, the
816 error message did not specify the attribute name
819 0.68 Wed, February 4, 2009
821 - Many spelling, typo, and formatting fixes by daxim.
823 * Moose::Manual::Attributes
824 - The NAME section in the POD used "Attribute" so search.cpan
825 didn't resolve links from other documents properly.
827 * Moose::Meta::Method::Overriden
828 - Now properly spelled as Overridden. Thanks to daxim for
831 0.67 Tue, February 3, 2009
833 - Lots of little typo fixes and a few clarifications. Several
834 pages didn't have proper titles, and so weren't actually
835 visible on search.cpan.org. Thanks to hanekomu for a variety
836 of fixes and formatting improvements.
838 0.66 Tue, February 3, 2009
840 - This is a brand new, extensive manual for Moose. This aims to
841 provide a complete introduction to all of Moose's
842 features. This work was funded as part of the Moose docs grant
843 from TPF. (Dave Rolsky)
845 * Moose::Meta::Attribute
846 - Added a delegation_metaclass method to replace a hard-coded
847 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
849 * Moose::Util::TypeConstraints
850 - If you created a subtype and passed a parent that Moose didn't
851 know about, it simply ignored the parent. Now it automatically
852 creates the parent as a class type. This may not be what you
853 want, but is less broken than before. (Dave Rolsky)
855 * Moose::Util::TypeConstraints
856 - This module tried throw errors by calling Moose->throw_error,
857 but it did not ensure that Moose was loaded first. This could
858 cause very unhelpful errors when it tried to throw an error
859 before Moose was loaded. (Dave Rolsky)
861 * Moose::Util::TypeConstraints
862 - You could declare a name with subtype such as "Foo!Bar" that
863 would be allowed, but if you used it in a parameterized type
864 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
865 vetting on names created via the sugar functions, so that they
866 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
868 0.65 Thu, January 22, 2008
869 * Moose and Moose::Meta::Method::Overridden
870 - If an overridden method called super(), and then the
871 superclass's method (not overridden) _also_ called super(),
872 Moose went into an endless recursion loop. Test provided by
873 Chris Prather. (Dave Rolsky)
875 * Moose::Meta::TypeConstraint
876 - All methods are now documented. (gphat)
878 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
879 - Fixed some bogus failures that occurred because we tried to
880 validate filesystem paths in a very ad-hoc and
881 not-quite-correct way. (Dave Rolsky)
883 * Moose::Util::TypeConstraints
884 - Added maybe_type to exports. See docs for details. (rjbs)
887 - Added Moose::Util::TypeConstraints to the SEE ALSO
891 - Methods created via an attribute can now fulfill a "requires"
892 declaration for a role. (nothingmuch)
894 * Moose::Meta::Method::*
895 - Stack traces from inlined code will now report its line and
896 file as being in your class, as opposed to in Moose
899 0.64 Wed, December 31, 2008
900 * Moose::Meta::Method::Accessor
901 - Always inline predicate and clearer methods (Sartak)
903 * Moose::Meta::Attribute
904 - Support for parameterized traits (Sartak)
905 - verify_against_type_constraint method to avoid duplication
906 and enhance extensibility (Sartak)
909 - Tests (but no support yet) for parameterized traits (Sartak)
912 - Require Class::MOP 0.75+, which has the side effect of making
913 sure we work on Win32. (Dave Rolsky)
915 0.63 Mon, December 8, 2008
917 - Some small grammar tweaks and bug fixes in non-Moose example
920 0.62_02 Fri, December 5, 2008
921 * Moose::Meta::Role::Application::ToClass
922 - When a class does not provide all of a role's required
923 methods, the error thrown now mentions all of the missing
924 methods, as opposed to just the first one found. Requested by
925 Curtis Poe (RT #41119). (Dave Rolsky)
927 * Moose::Meta::Method::Constructor
928 - Moose will no longer inline a constructor for your class
929 unless it inherits its constructor from Moose::Object, and
930 will warn when it doesn't inline. If you want to force
931 inlining anyway, pass "replace_constructor => 1" to
932 make_immutable. Addresses RT #40968, reported by Jon
933 Swartz. (Dave Rolsky)
934 - The quoting of default values could be broken if the default
935 contained a single quote ('). Now we use quotemeta to escape
936 anything potentially dangerous in the defaults. (Dave Rolsky)
938 0.62_01 Wed, December 3, 2008
940 - use the method->execute API for BUILDALL
941 and DEMOLISHALL (Sartak)
943 * Moose::Util::TypeConstraints
944 - We now make all the type constraint meta classes immutable
945 before creating the default types provided by Moose. This
946 should make loading Moose a little faster. (Dave Rolsky)
948 0.62 Wed November 26, 2008
949 * Moose::Meta::Role::Application::ToClass
950 Moose::Meta::Role::Application::ToRole
951 - fixed issues where excluding and aliasing the
952 same methods for a single role did not work
953 right (worked just fine with multiple
955 - added test for this (stevan)
957 * Moose::Meta::Role::Application::RoleSummation
958 - fixed the error message when trying to compose
959 a role with a role it excludes (Sartak)
962 - Catch another case where recursion caused the value
963 of $CALLER to be stamped on (t0m)
964 - added test for this (t0m)
967 - Remove the make_immutable keyword, which has been
968 deprecated since April. It breaks metaclasses that
969 use Moose without no Moose (Sartak)
971 * Moose::Meta::Attribute
972 - Removing an attribute from a class now also removes delegation
973 (handles) methods installed for that attribute (t0m)
974 - added test for this (t0m)
976 * Moose::Meta::Method::Constructor
977 - An attribute with a default that looked like a number (but was
978 really a string) would accidentally be treated as a number
979 when the constructor was made immutable (perigrin)
980 - added test for this (perigrin)
983 - create method for constructing a role
985 - added test for this (Sartak)
986 - anonymous roles! (Sartak)
987 - added test for this (Sartak)
990 - more consistent error messages (Sartak)
992 * Moose::Cookbook::Roles::Recipe1
993 - attempt to explain why a role that just requires
994 methods is useful (Sartak)
996 0.61 Fri November 7, 2008
997 * Moose::Meta::Attribute
998 - When passing a role to handles, it will be loaded if necessary
1001 * Moose::Meta::Class
1002 - Method objects returned by get_method (and other methods)
1003 Could end up being returned without an associated_metaclass
1004 attribute. Removing get_method_map, which is provided by
1005 Class::MOP::Class, fixed this. The Moose version did nothing
1006 different from its parent except introduce a bug. (Dave Rolsky)
1007 - added tests for this (jdv79)
1010 - Added a $VERSION to all .pm files which didn't have one. Fixes
1011 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1013 * Moose::Cookbook::Basics::Recipe4
1014 * Moose::Cookbook::Basics::Recipe6
1015 - These files had spaces on the first line of the SYNOPSIS, as
1016 opposed to a totally empty line. According to RT #40432, this
1017 confuses POD parsers. (Dave Rolsky)
1019 0.60 Fri October 24, 2008
1021 - Passing "-traits" when loading Moose caused the Moose.pm
1022 exports to be broken. Reported by t0m. (Dave Rolsky)
1023 - Tests for this bug. (t0m)
1026 - Change resolve_metaclass alias to use the new
1027 load_first_existing_class function. This makes it a lot
1028 simpler, and also around 5 times faster. (t0m)
1029 - Add caching to resolve_metaclass_alias, which gives an order
1030 of magnitude speedup to things which repeatedly call the
1031 Moose::Meta::Attribute->does method, notably MooseX::Storage
1034 * Moose::Util::TypeConstraint
1035 - Put back the changes for parameterized constraints that
1036 shouldn't have been removed in 0.59. We still cannot parse
1037 them, but MooseX modules can create them in some other
1038 way. See the 0.58 changes for more details. (jnapiorkowski)
1039 - Changed the way subtypes are created so that the job is
1040 delegated to a type constraint parent. This clears up some
1041 hardcoded checking and should allow correct subtypes of
1042 Moose::Meta::Type::Constraint. Don't rely on this new API too
1043 much (create_child_type) because it may go away in the
1044 future. (jnapiorkowski)
1046 * Moose::Meta::TypeConstraint::Union
1047 - Type constraint names are sorted as strings, not numbers.
1050 * Moose::Meta::TypeConstraint::Parameterizable
1051 - New parameterize method. This can be used as a factory method
1052 to make a new type constraint with a given parameterized
1053 type. (jnapiorkowski)
1054 - added tests (jnapiorkowski)
1056 0.59 Tue October 14, 2008
1058 - Add abridged documentation for builder/default/initializer/
1059 predicate, and link to more details sections in
1060 Class::MOP::Attribute. (t0m)
1062 * Moose::Util::TypeConstraints
1063 - removed prototypes from all but the &-based stuff (mst)
1065 * Moose::Util::TypeConstraints
1066 - Creating a anonymous subtype with both a constraint and a
1067 message failed with a very unhelpful error, but should just
1068 work. Reported by t0m. (Dave Rolsky)
1071 - Some tests that used Test::Warn if it was available failed
1072 with older versions of Test::Warn. Reported by Fayland. (Dave
1074 - Test firing behavior of triggers in relation to builder/default/
1076 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1077 kinds of supported type. (t0m)
1079 * Moose::Meta::Class
1080 - In create(), do not pass "roles" option to the superclass
1081 - added related test that creates an anon metaclass with
1082 a required attribute
1084 * Moose::Meta::TypeConstraint::Class
1085 * Moose::Meta::TypeConstraint::Role
1086 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1087 other types (as per change in 0.55_02). (t0m)
1089 * Moose::Meta::TypeConstraint::Registry
1090 - Fix warning when dealing with unknown type names (t0m)
1092 * Moose::Util::TypeConstraints
1093 - Reverted changes from 0.58 related to handle parameterized
1094 types. This caused random failures on BSD and Win32 systems,
1095 apparently related to the regex engine. This means that Moose
1096 can no longer parse structured type constraints like
1097 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1098 supported in a slightly different way via MooseX::Types some
1099 time in the future. (Dave Rolsky)
1101 0.58 Sat September 20, 2008
1102 !! This release has an incompatible change regarding !!
1103 !! how roles add methods to a class !!
1105 * Roles and role application
1106 ! Roles now add methods by calling add_method, not
1107 alias_method. They make sure to always provide a method
1108 object, which will be cloned internally. This means that it is
1109 now possible to track the source of a method provided by a
1110 role, and even follow its history through intermediate roles.
1112 This means that methods added by a role now show up when
1113 looking at a class's method list/map. (Dave Rolsky)
1116 - From this release on, we'll try to maintain a list of
1117 conflicting modules, and warn you if you have one
1118 installed. For example, this release conflicts with ...
1119 - MooseX::Singleton <= 0.11
1120 - MooseX::Params::Validate <= 0.05
1123 In general, we try to not break backwards compatibility for
1124 most Moose users, but MooseX modules and other code which
1125 extends Moose's metaclasses is often affected by very small
1126 changes in the Moose internals.
1128 * Moose::Meta::Method::Delegation
1129 * Moose::Meta::Attribute
1130 - Delegation methods now have their own method class. (Dave
1133 * Moose::Meta::TypeConstraint::Parameterizable
1134 - Added a new method 'parameterize' which is basically a factory
1135 for the containing constraint. This makes it easier to create
1136 new types of parameterized constraints. (jnapiorkowski)
1138 * Moose::Meta::TypeConstraint::Union
1139 - Changed the way Union types canonicalize their names to follow
1140 the normalized TC naming rules, which means we strip all
1141 whitespace. (jnapiorkowski)
1143 * Moose::Util::TypeConstraints
1144 - Parameter and Union args are now sorted, this makes Int|Str
1145 the same constraint as Str|Int. (jnapiorkowski)
1146 - Changes to the way Union types are parsed to more correctly
1147 stringify their names. (jnapiorkowski)
1148 - When creating a parameterized type, we now use the new
1149 parameterize method. (jnapiorkowski)
1150 - Incoming type constraint strings are now normalized to remove
1151 all whitespace differences. (jnapiorkowski)
1152 - Changed the way we parse type constraint strings so that we now
1153 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1154 constraints. This lays the foundation for more flexible type
1155 constraint implementations.
1157 * Tests and docs for all the above. (jnapiorkowski)
1161 - Moose::Exporter will no longer remove a subroutine that the
1162 exporting package re-exports. Moose re-exports the
1163 Carp::confess function, among others. The reasoning is that we
1164 cannot know whether you have also explicitly imported those
1165 functions for your own use, so we err on the safe side and
1166 always keep them. (Dave Rolsky)
1167 - added tests for this (rafl)
1169 * Moose::Meta::Class
1170 - Changes to how we fix metaclass compatibility that are much
1171 too complicated to go into. The summary is that Moose is much
1172 less likely to complain about metaclass incompatibility
1173 now. In particular, if two metaclasses differ because
1174 Moose::Util::MetaRole was used on the two corresponding
1175 classes, then the difference in roles is reconciled for the
1176 subclass's metaclass. (Dave Rolsky)
1177 - Squashed an warning in _process_attribute (thepler)
1180 - throw exceptions (sooner) for invalid attribute names (thepler)
1181 - added tests for this (thepler)
1183 * Moose::Util::MetaRole
1184 - If you explicitly set a constructor or destructor class for a
1185 metaclass object, and then applied roles to the metaclass,
1186 that explicitly set class would be lost and replaced with the
1189 * Moose::Meta::Class
1190 * Moose::Meta::Attribute
1191 * Moose::Meta::Method
1194 * Moose::Error::Default
1195 * Moose::Error::Croak
1196 * Moose::Error::Confess
1197 - All instances of confess() changed to use overridable
1198 C<throw_error> method. This method ultimately calls a class
1199 constructor, and you can change the class being called. In
1200 addition, errors now pass more information than just a string.
1201 The default C<error_class> behaves like C<Carp::confess>, so
1202 the behavior is not visibly different for end users.
1204 0.57 Wed September 3, 2008
1206 - A new bit of doc intended to introduce folks familiar with
1207 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1209 * Moose::Unsweetened
1210 - Shows examples of two classes, each done first with and then
1211 without Moose. This makes a nice parallel to
1212 Moose::Intro. (Dave Rolsky)
1214 * Moose::Util::TypeConstraints
1215 - Fixed a bug in find_or_parse_type_constraint so that it
1216 accepts a Moose::Meta::TypeConstraint object as the parent
1217 type, not just a name (jnapiorkowski)
1218 - added tests (jnapiorkowski)
1221 - If Sub::Name was not present, unimporting failed to actually
1222 remove some sugar subs, causing test failures (Dave Rolsky)
1224 0.56 Mon September 1, 2008
1225 For those not following the series of dev releases, there are
1226 several major changes in this release of Moose.
1227 ! Moose::init_meta should now be called as a method. See the
1230 - Major performance improvements by nothingmuch.
1232 - New modules for extension writers, Moose::Exporter and
1233 Moose::Util::MetaRole by Dave Rolsky.
1235 - Lots of doc improvements and additions, especially in the
1238 - Various bug fixes.
1240 * Removed all references to the experimental-but-no-longer-needed
1241 Moose::Meta::Role::Application::ToMetaclassInstance.
1243 * Require Class::MOP 0.65.
1245 0.55_04 Sat August 30, 2008
1246 * Moose::Util::MetaRole
1247 * Moose::Cookbook::Extending::Recipe2
1248 - This simplifies the application of roles to any meta class, as
1249 well as the base object class. Reimplemented metaclass traits
1250 using this module. (Dave Rolsky)
1252 * Moose::Cookbook::Extending::Recipe1
1253 - This a new recipe, an overview of various ways to write Moose
1254 extensions (Dave Rolsky)
1256 * Moose::Cookbook::Extending::Recipe3
1257 * Moose::Cookbook::Extending::Recipe4
1258 - These used to be Extending::Recipe1 and Extending::Recipe2,
1261 0.55_03 Fri August 29, 2008
1262 * No changes from 0.55_02 except increasing the Class::MOP
1263 dependency to 0.64_07.
1265 0.55_02 Fri August 29, 2008
1266 * Makefile.PL and Moose.pm
1267 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1269 * Moose::Util::TypeConstraints
1270 - Fix warnings from find_type_constraint if the type is not
1273 * Moose::Meta::TypeConstraint
1274 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1275 return false if the type you specify cannot be found in the
1276 type registry, rather than throwing an unhelpful and
1277 coincidental exception. (t0m).
1278 - added docs & test for this (t0m)
1280 * Moose::Meta::TypeConstraint::Registry
1281 - add_type_constraint now throws an exception if a parameter is
1283 - added docs & test for this (t0m)
1285 * Moose::Cookbook::FAQ
1286 - Added a faq entry on the difference between "role" and "trait"
1290 - Fixed a bug that caused role composition to not see a required
1291 method when that method was provided by another role being
1292 composed at the same time. (Dave Rolsky)
1293 - test and bug finding (tokuhirom)
1295 0.55_01 Wed August 20, 2008
1297 !! Calling Moose::init_meta as a function is now !!
1298 !! deprecated. Please see the Moose.pm docs for details. !!
1300 * Moose::Meta::Method::Constructor
1301 - Fix inlined constructor so that values produced by default
1302 or builder methods are coerced as required. (t0m)
1303 - added test for this (t0m)
1305 * Moose::Meta::Attribute
1306 - A lazy attribute with a default or builder did not attempt to
1307 coerce the default value. The immutable code _did_
1309 - added test for this (t0m)
1312 - This is a new helper module for writing "Moose-alike"
1313 modules. This should make the lives of MooseX module authors
1314 much easier. (Dave Rolsky)
1317 * Moose::Cookbook::Meta::Recipe5
1318 - Implemented metaclass traits (and wrote a recipe for it):
1320 use Moose -traits => 'Foo'
1322 This should make writing small Moose extensions a little
1323 easier (Dave Rolsky)
1325 * Moose::Cookbook::Basics::Recipe1
1326 - Removed any examples of direct hashref access, and applied an
1327 editorial axe to reduce verbosity. (Dave Rolsky)
1329 * Moose::Cookbook::Basics::Recipe1
1330 - Also applied an editorial axe here. (Dave Rolsky)
1333 * Moose::Cookbook::Extending::Recipe1
1334 * Moose::Cookbook::Extending::Recipe2
1335 - Rewrote extending and embedding moose documentation and
1336 recipes to use Moose::Exporter (Dave Rolsky)
1340 - These two modules now warn when you load them from the main
1341 package "main" package, because we will not export sugar to
1342 main. Previously it just did nothing. (Dave Rolsky)
1345 - Now provide an init_meta method just like Moose.pm, and you
1346 can call this to provide an alternate role metaclass. (Dave
1347 Rolsky and nothingmuch)
1348 - get_method_map now respects the package cache flag (nothingmuch)
1351 - Two new methods - add_method and wrap_method_body
1355 - Optimizations including allowing constructors to accept hash
1356 refs, making many more classes immutable, and making
1357 constructors immutable. (nothingmuch)
1359 0.55 Sun August 3, 2008
1360 * Moose::Meta::Attribute
1361 - breaking down the way 'handles' methods are
1362 created so that the process can be more easily
1363 overridden by subclasses (stevan)
1365 * Moose::Meta::TypeConstraint
1366 - fixing what is passed into a ->message with
1367 the type constraints (RT #37569)
1368 - added tests for this (Charles Alderman)
1370 * Moose::Util::TypeConstraints
1371 - fix coerce to accept anon types like subtype can (mst)
1374 - reorganized the recipes into sections - Basics, Roles, Meta,
1375 Extending - and wrote abstracts for each section (Dave Rolsky)
1377 * Moose::Cookbook::Basics::Recipe10
1378 - A new recipe that demonstrates operator overloading
1379 in combination with Moose. (bluefeet)
1381 * Moose::Cookbook::Meta::Recipe1
1382 - an introduction to what meta is and why you'd want to make
1383 your own metaclass extensions (Dave Rolsky)
1385 * Moose::Cookbook::Meta::Recipe4
1386 - a very simple metaclass example (Dave Rolsky)
1388 * Moose::Cookbook::Extending::Recipe1
1389 - how to write a Moose-alike module to use your own object base
1392 * Moose::Cookbook::Extending::Recipe2
1393 - how to write modules with an API just like C<Moose.pm> (Dave
1397 - Tons of fixes, both syntactical and grammatical (Dave
1398 Rolsky, Paul Fenwick)
1400 0.54 Thurs. July 3, 2008
1401 ... this is not my day today ...
1403 * Moose::Meta::Attribute
1404 - fixed legal_options_for_inheritance such that
1405 clone_and_inherit options still works for
1406 Class::MOP::Attribute objects and therefore
1407 does not break MooseX::AttributeHelpers
1410 0.53 Thurs. July 3, 2008
1411 * Whoops, I guess I should run 'make manifest' before
1412 actually releasing the module. No actual changes
1413 in this release, except the fact that it includes
1414 the changes that I didn't include in the last
1417 0.52 Thurs. July 3, 2008
1419 - added "FEATURE REQUESTS" section to the Moose docs
1420 to properly direct people (stevan) (RT #34333)
1421 - making 'extends' croak if it is passed a Role since
1422 this is not ever something you want to do
1423 (fixed by stevan, found by obra)
1424 - added tests for this (stevan)
1427 - adding support for DOES (as in UNIVERSAL::DOES)
1429 - added test for this
1431 * Moose::Meta::Attribute
1432 - added legal_options_for_inheritance (wreis)
1433 - added tests for this (wreis)
1435 * Moose::Cookbook::Snacks::*
1436 - removed some of the unfinished snacks that should
1437 not have been released yet. Added some more examples
1438 to the 'Keywords' snack. (stevan)
1440 * Moose::Cookbook::Style
1441 - added general Moose "style guide" of sorts to the
1442 cookbook (nothingmuch) (RT #34335)
1445 - added more BUILDARGS tests (stevan)
1447 0.51 Thurs. Jun 26, 2008
1449 - add unimport so "no Moose::Role" actually does
1452 * Moose::Meta::Role::Application::ToRole
1453 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1454 order to provide its own implementation, that method still got
1455 added to the list of required methods for consumers of
1456 RoleB. Now an aliased method is only added to the list of
1457 required methods if the role doing the aliasing does not
1458 provide its own implementation. See Recipe 11 for an example
1459 of all this. (Dave Rolsky)
1460 - added tests for this
1462 * Moose::Meta::Method::Constructor
1463 - when a single argument that wasn't a hashref was provided to
1464 an immutabilized constructor, the error message was very
1465 unhelpful, as opposed to the non-immutable error. Reported by
1467 - added test for this (Dave Rolsky)
1469 * Moose::Meta::Attribute
1470 - added support for meta_attr->does("ShortAlias") (sartak)
1471 - added tests for this (sartak)
1472 - moved the bulk of the `handles` handling to the new
1473 install_delegation method (Stevan)
1476 - Added BUILDARGS, a new step in new()
1478 * Moose::Meta::Role::Application::RoleSummation
1479 - fix typos no one ever sees (sartak)
1481 * Moose::Util::TypeConstraints
1482 * Moose::Meta::TypeConstraint
1483 * Moose::Meta::TypeCoercion
1484 - Attempt to work around the ??{ } vs. threads issue
1486 - Some null_constraint optimizations
1488 0.50 Thurs. Jun 11, 2008
1489 - Fixed a version number issue by bumping all modules
1492 0.49 Thurs. Jun 11, 2008
1493 !! This version now approx. 20-25% !!
1494 !! faster with new Class::MOP 0.59 !!
1496 * Moose::Meta::Attribute
1497 - fixed how the is => (ro|rw) works with
1498 custom defined reader, writer and accessor
1500 - added docs for this (TODO).
1501 - added tests for this (Thanks to Penfold)
1502 - added the custom attribute alias for regular
1503 Moose attributes which is "Moose"
1504 - fix builder and default both being used
1509 Moose::Meta::Attribute
1511 Moose::Meta::Role::Composite
1512 Moose::Util::TypeConstraints
1513 - switched usage of reftype to ref because
1517 - changing add_package_symbol to use the new
1521 - fixed how DEMOLISHALL is called so that it
1522 can be overrided in subclasses (thanks to Sartak)
1523 - added test for this (thanks to Sartak)
1525 * Moose::Util::TypeConstraints
1526 - move the ClassName type check code to
1527 Class::MOP::is_class_loaded (thanks to Sartak)
1529 * Moose::Cookbook::Recipe11
1530 - add tests for this (thanks to tokuhirom)
1532 0.48 Thurs. May 29, 2008
1533 (early morning release engineering)--
1535 - fixing the version in Moose::Meta::Method::Destructor
1536 which was causing the indexer to choke
1538 0.47 Thurs. May 29, 2008
1539 (late night release engineering)--
1541 - fixing the version is META.yml, no functional
1542 changes in this release
1544 0.46 Wed. May 28, 2008
1545 !! This version now approx. 20-25% !!
1546 !! faster with new Class::MOP 0.57 !!
1548 * Moose::Meta::Class
1549 - some optimizations of the &initialize method
1550 since it is called so often by &meta
1552 * Moose::Meta::Class
1554 - now use the get_all_package_symbols from the
1555 updated Class::MOP, test suite is now 10 seconds
1558 * Moose::Meta::Method::Destructor
1559 - is_needed can now also be called as a class
1560 method for immutablization to check if the
1561 destructor object even needs to be created
1564 * Moose::Meta::Method::Destructor
1565 Moose::Meta::Method::Constructor
1566 - added more descriptive error message to help
1567 keep people from wasting time tracking an error
1568 that is easily fixed by upgrading.
1570 0.45 Saturday, May 24, 2008
1572 - Because of work in Class::MOP 0.57, all
1573 XS based functionality is now optional
1574 and a Pure Perl version is supplied
1575 - the CLASS_MOP_NO_XS environment variable
1576 can now be used to force non-XS versions
1578 - several of the packages have been tweaked
1579 to take care of this, mostly we added
1580 support for the package_name and name
1581 variables in all the Method metaclasses
1582 - before/around/after method modifiers now
1583 support regexp matching of names
1584 (thanks to Takatoshi Kitano)
1585 - tests added for this
1586 - NOTE: this only works for classes, it
1587 is currently not supported in roles,
1588 but, ... patches welcome
1589 - All usage of Carp::confess have been replaced
1590 by Carp::croak in the "keyword" functions since
1591 the stack trace is usually not helpful
1594 - All usage of Carp::confess have been replaced
1595 by Carp::croak in the "keyword" functions since
1596 the stack trace is usually not helpful
1597 - The 'has' keyword for roles now accepts the
1598 same array ref form that Moose.pm does
1599 (has [qw/foo bar/] => (is => 'rw', ...))
1600 - added test for this
1602 * Moose::Meta::Attribute
1603 - trigger on a ro-attribute is no longer an
1604 error, as it's useful to trigger off of the
1607 * Moose::Meta::Class
1608 - added same 'add_package_symbol' fix as in
1612 - does_role now handles non-Moose classes
1614 - added tests for this
1615 - added the 'add_method_modifier' function
1616 (thanks to Takatoshi Kitano)
1618 * Moose::Util::TypeConstraints
1619 - subtypes of parameterizable types now are
1620 themselves parameterizable types
1622 * Moose::Meta::Method::Constructor
1623 - fixed bug where trigger was not being
1624 called by the inlined immutable
1626 - added test for this (thanks to Caelum)
1628 * Moose::Meta::Role::Application::ToInstance
1629 - now uses the metaclass of the instance
1630 (if possible) to create the anon-class
1631 (thanks Jonathan Rockway)
1633 * Moose::Cookbook::Recipe22
1634 - added the meta-attribute trait recipe
1638 - fixed hash-ordering test bug that was
1639 causing occasional cpantester failures
1640 - renamed the t/000_recipe/*.t tests to be
1641 more descriptive (thanks to Sartak)
1643 0.44 Sat. May 10, 2008
1645 - made make_immutable warning cluck to
1646 show where the error is (thanks mst)
1649 - BUILDALL and DEMOLISHALL now call
1650 ->body when looping through the
1651 methods, to avoid the overloaded
1653 - fixed issue where DEMOLISHALL was
1654 eating the $@ values, and so not
1655 working correctly, it still kind of
1656 eats them, but so does vanilla perl
1657 - added tests for this
1659 * Moose::Cookbook::Recipe7
1660 - added new recipe for immutable
1661 functionality (thanks Dave Rolsky)
1663 * Moose::Cookbook::Recipe9
1664 - added new recipe for builder and
1665 lazy_build (thanks Dave Rolsky)
1667 * Moose::Cookbook::Recipe11
1668 - added new recipe for method aliasing
1669 and exclusion with Roles (thanks Dave Rolsky)
1672 - fixed Win32 test failure (thanks spicyjack)
1674 ~ removed Build.PL and Module::Build compat
1675 since Module::Install has done that.
1677 0.43 Wed. April, 30, 2008
1679 drink more coffee before
1680 doing release engineering
1682 - whoops, forgot to do the smolder tests,
1683 and we broke some of the custom meta-attr
1684 modules. This fixes that.
1686 0.42 Mon. April 28, 2008
1687 - some bad tests slipped by, nothing else
1688 changed in this release (cpantesters++)
1690 - upped the Class::MOP dependency to 0.55
1691 since we have tests which need the C3
1694 0.41 Mon. April 28, 2008
1695 ~~ numerous documentation updates ~~
1697 - Changed all usage of die to Carp::croak for better
1698 error reporting (initial patch by Tod Hagan)
1700 ** IMPORTANT NOTE **
1701 - the make_immutable keyword is now deprecated, don't
1702 use it in any new code and please fix your old code
1703 as well. There will be 2 releases, and then it will
1709 - refactored the way inner and super work to avoid
1710 any method/@ISA cache penalty (nothingmuch)
1712 * Moose::Meta::Class
1713 - fixing &new_object to make sure trigger gets the
1714 coerced value (spotted by Charles Alderman on the
1716 - added test for this
1718 * Moose::Meta::Method::Constructor
1719 - immutable classes which had non-lazy attributes were calling
1720 the default generating sub twice in the constructor. (bug
1721 found by Jesse Luehrs, fixed by Dave Rolsky)
1722 - added tests for this (Dave Rolsky)
1723 - fix typo in initialize_body method (nothingmuch)
1725 * Moose::Meta::Method::Destructor
1726 - fix typo in initialize_body method (nothingmuch)
1728 * Moose::Meta::Method::Overriden
1729 Moose::Meta::Method::Augmented
1730 - moved the logic for these into their own
1731 classes (nothingmuch)
1733 * Moose::Meta::Attribute
1734 - inherited attributes may now be extended without
1735 restriction on the type ('isa', 'does') (Sartak)
1736 - added tests for this (Sartak)
1737 - when an attribute property is malformed (such as lazy without
1738 a default), give the name of the attribute in the error
1740 - added the &applied_traits and &has_applied_traits methods
1741 to allow introspection of traits
1742 - added tests for this
1743 - moved 'trait' and 'metaclass' argument handling to here from
1745 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1746 '+foo' syntax) (nothingmuch)
1747 - added tests for this (t0m)
1750 - localize $@ inside DEMOLISHALL to avoid it
1751 eating $@ (found by Ernesto)
1752 - added test for this (thanks to Ernesto)
1754 * Moose::Util::TypeConstraints
1755 - &find_type_constraint now DWIMs when given an
1756 type constraint object or name (nothingmuch)
1757 - &find_or_create_type_constraint superseded with a number of more
1759 - find_or_create_{isa,does}_type_constraint
1760 - find_or_parse_type_constraint
1762 * Moose::Meta::TypeConstraint
1763 Moose::Meta::TypeConstraint::Class
1764 Moose::Meta::TypeConstraint::Role
1765 Moose::Meta::TypeConstraint::Enum
1766 Moose::Meta::TypeConstraint::Union
1767 Moose::Meta::TypeConstraint::Parameterized
1768 - added the &equals method for comparing two type
1769 constraints (nothingmuch)
1770 - added tests for this (nothingmuch)
1772 * Moose::Meta::TypeConstraint
1773 - add the &parents method, which is just an alias to &parent.
1774 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1776 * Moose::Meta::TypeConstraint::Class
1777 - added the class attribute for introspection purposes
1779 - added tests for this
1781 * Moose::Meta::TypeConstraint::Enum
1782 Moose::Meta::TypeConstraint::Role
1783 - broke these out into their own classes (nothingmuch)
1785 * Moose::Cookbook::Recipe*
1786 - fixed references to test file locations in the POD
1787 and updated up some text for new Moose features
1791 - Added &resolve_metaclass_alias, a helper function for finding an actual
1792 class for a short name (e.g. in the traits list)
1794 0.40 Fri. March 14, 2008
1795 - I hate Pod::Coverage
1797 0.39 Fri. March 14, 2008
1799 - documenting the use of '+name' with attributes
1800 that come from recently composed roles. It makes
1801 sense, people are using it, and so why not just
1802 officially support it.
1803 - fixing the 'extends' keyword so that it will not
1804 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1807 - added the perl -Moose=+Class::Name feature to allow
1808 monkeypatching of classes in one liners
1811 - fixing the 'apply_all_roles' keyword so that it will not
1812 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1814 * Moose::Meta::Class
1815 - added ->create method which now supports roles (thanks to jrockway)
1816 - added tests for this
1817 - added ->create_anon_class which now supports roles and caching of
1818 the results (thanks to jrockway)
1819 - added tests for this
1820 - made ->does_role a little more forgiving when it is
1821 checking a Class::MOP era metaclasses.
1823 * Moose::Meta::Role::Application::ToInstance
1824 - it is now possible to pass extra params to be used when
1825 a role is applied to an the instance (rebless_params)
1826 - added tests for this
1828 * Moose::Util::TypeConstraints
1829 - class_type now accepts an optional second argument for a
1830 custom message. POD anotated accordingly (groditi)
1831 - added tests for this
1832 - it is now possible to make anon-enums by passing 'enum' an
1833 ARRAY ref instead of the $name => @values. Everything else
1835 - added tests for this
1838 - making test for using '+name' on attributes consumed
1839 from a role, it works and makes sense too.
1841 * Moose::Meta::Attribute
1842 - fix handles so that it doesn't return nothing
1843 when the method cannot be found, not sure why
1844 it ever did this originally, this means we now
1845 have slightly better support for AUTOLOADed
1847 - added more delegation tests
1848 - adding ->does method to this so as to better
1849 support traits and their introspection.
1850 - added tests for this
1853 - localizing the Data::Dumper configurations so
1854 that it does not pollute others (RT #33509)
1855 - made ->does a little more forgiving when it is
1856 passed Class::MOP era metaclasses.
1858 0.38 Fri. Feb. 15, 2008
1859 * Moose::Meta::Attribute
1860 - fixed initializer to correctly do
1861 type checking and coercion in the
1863 - added tests for this
1866 - fixed some finicky tests (thanks to konobi)
1868 0.37 Thurs. Feb. 14, 2008
1870 - fixed some details in Moose::init_meta
1871 and its superclass handling (thanks thepler)
1872 - added tests for this (thanks thepler)
1873 - 'has' now dies if you don't pass in name
1875 - added the 'make_immutable' keyword as a shortcut
1878 * Moose::Meta::Class
1879 Moose::Meta::Method::Constructor
1880 Moose::Meta::Attribute
1881 - making (init_arg => undef) work here too
1882 (thanks to nothingmuch)
1884 * Moose::Meta::Attribute
1885 Moose::Meta::Method::Constructor
1886 Moose::Meta::Method::Accessor
1887 - make lazy attributes respect attr initializers (rjbs)
1888 - added tests for this
1890 * Moose::Util::TypeConstraints
1891 Moose::Util::TypeConstraints::OptimizedConstraints
1892 Moose::Meta::TypeConstraints
1893 Moose::Meta::Attribute
1894 Moose::Meta::Method::Constructor
1895 Moose::Meta::Method::Accessor
1896 - making type errors use the
1897 assigned message (thanks to Sartak)
1898 - added tests for this
1900 * Moose::Meta::Method::Destructor
1901 - making sure DESTROY gets inlined properly
1902 with successive DEMOLISH calls (thanks to manito)
1904 * Moose::Meta::Attribute
1905 Moose::Meta::Method::Accessor
1906 - fixed handling of undef with type constraints
1908 - added tests for this
1911 - added &get_all_init_args and &get_all_attribute_values
1912 (thanks to Sartak and nothingmuch)
1914 0.36 Sat. Jan. 26, 2008
1916 Moose::Meta::Attribute
1917 - role type tests now support when roles are
1918 applied to non-Moose classes (found by ash)
1919 - added tests for this (thanks to ash)
1920 - couple extra tests to boost code coverage
1922 * Moose::Meta::Method::Constructor
1923 - improved fix for handling Class::MOP attributes
1924 - added test for this
1926 * Moose::Meta::Class
1927 - handled the add_attribute($attribute_meta_object)
1929 - added test for this
1931 0.35 Tues. Jan. 22, 2008
1932 * Moose::Meta::Method::Constructor
1933 - fix to make sure even Class::MOP attributes
1934 are handled correctly (Thanks to Dave Rolsky)
1935 - added test for this (also Dave Rolsky)
1937 * Moose::Meta::Class
1938 - improved error message on _apply_all_roles,
1939 you should now use Moose::Util::apply_all_roles
1940 and you shouldnt have been using a _ prefixed
1941 method in the first place ;)
1943 0.34 Mon. Jan. 21, 2008
1944 ~~~ more misc. doc. fixes ~~~
1945 ~~ updated copyright dates ~~
1947 Moose is now a postmodern object system :)
1948 - (see the POD for details)
1950 * <<Role System Refactoring>>
1951 - this release contains a major reworking and
1952 cleanup of the role system
1953 - 100% backwards compat.
1954 - Role application now restructured into seperate
1955 classes based on type of applicants
1956 - Role summation (combining of more than one role)
1957 is much cleaner and anon-classes are no longer
1958 used in this process
1959 - new Composite role metaclass
1960 - runtime application of roles to instances
1961 is now more efficient and re-uses generated
1962 classes when applicable
1964 * <<New Role composition features>>
1965 - methods can now be excluded from a given role
1967 - methods can now be aliased to another name (and
1968 still retain the original as well)
1970 * Moose::Util::TypeConstraints::OptimizedConstraints
1971 - added this module (see above)
1973 * Moose::Meta::Class
1974 - fixed the &_process_attribute method to be called
1975 by &add_attribute, so that the API is now correct
1977 * Moose::Meta::Method::Accessor
1978 - fixed bug when passing a list of values to
1979 an accessor would get (incorrectly) ignored.
1980 Thanks to Sartak for finding this ;)
1981 - added tests for this (Sartak again)
1983 * Moose::Meta::Method::Accessor
1984 Moose::Meta::Method::Constructor
1985 Moose::Meta::Attribute
1986 Moose::Meta::TypeConstraint
1987 Moose::Meta::TypeCoercion
1988 - lots of cleanup of such things as:
1990 - type constraint handling
1991 - error handling/messages
1992 (thanks to nothingmuch)
1994 * Moose::Meta::TypeConstraint::Parameterizable
1995 - added this module to support the refactor
1996 in Moose::Meta::TypeConstraint::Parameterized
1998 * Moose::Meta::TypeConstraint::Parameterized
1999 - refactored how these types are handled so they
2000 are more generic and not confined to ArrayRef
2004 - shortened some file names for better VMS support (RT #32381)
2006 0.33 Fri. Dec. 14, 2007
2007 !! Moose now loads 2 x faster !!
2008 !! with new Class::MOP 0.49 !!
2010 ++ new oose.pm module to make command line
2011 Moose-ness easier (see POD docs for more)
2013 * Moose::Meta::Class
2015 - several tweaks to take advantage of the
2016 new method map caching in Class::MOP
2018 * Moose::Meta::TypeConstraint::Parameterized
2019 - allow subtypes of ArrayRef and HashRef to
2020 be used as a container (sartak)
2021 - added tests for this
2022 - basic support for coercion to ArrayRef and
2023 HashRef for containers (sartak)
2024 - added tests for this
2026 * Moose::Meta::TypeCoercion
2027 - coercions will now create subtypes as needed
2028 so you can now add coercions to parameterized
2029 types without having to explictly define them
2030 - added tests for this
2032 * Moose::Meta::Method::Accessor
2033 - allow subclasses to decide whether we need
2034 to copy the value into a new variable (sartak)
2036 0.32 Tues. Dec. 4, 2007
2037 * Moose::Util::TypeConstraints
2038 - fixing how subtype aliases of unions work
2039 they should inherit the parent's coercion
2040 - added tests for this
2041 - you can now define multiple coercions on
2042 a single type at different times instead of
2043 having to do it all in one place
2044 - added tests for this
2046 * Moose::Meta::TypeConstraint
2047 - there is now a default constraint of sub { 1 }
2048 instead of Moose::Util::TypeConstraints setting
2051 * Moose::Meta::TypeCoercion
2052 * Moose::Meta::TypeCoercion::Union
2053 - added the &has_coercion_for_type and
2054 &add_type_coercions methods to support the
2055 new features above (although you cannot add
2056 more type coercions for Union types)
2058 0.31 Mon. Nov. 26, 2007
2059 * Moose::Meta::Attribute
2060 - made the +attr syntax handle extending types with
2061 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2062 now works if the original foo is an ArrayRef.
2063 - added tests for this.
2064 - delegation now works even if the attribute does not
2065 have a reader method using the get_read_method_ref
2066 method from Class::MOP::Attribute.
2067 - added tests for this
2068 - added docs for this
2070 * Moose::Util::TypeConstraints
2071 - passing no "additional attribute info" to
2072 &find_or_create_type_constraint will no longer
2073 attempt to create an __ANON__ type for you,
2074 instead it will just return undef.
2075 - added docs for this
2077 0.30 Fri. Nov. 23, 2007
2078 * Moose::Meta::Method::Constructor
2079 -builder related bug in inlined constructor. (groditi)
2081 * Moose::Meta::Method::Accessor
2082 - genereate unnecessary calls to predicates and refactor
2083 code generation for runtime speed (groditi)
2085 * Moose::Util::TypeConstraints
2086 - fix ClassName constraint to introspect symbol table (mst)
2087 - added more tests for this (mst)
2088 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2089 with work correctly.
2090 - added tests for this
2093 - adding the link to Recipie 11 (written by Sartak)
2094 - adding test for SYNOPSIS code
2097 - New tests for builder bug. Upon instantiation, if an
2098 attribute had a builder, no value and was not lazy the
2099 builder default was not getting run, oops. (groditi)
2101 0.29 Tues. Nov. 13, 2007
2102 * Moose::Meta::Attribute
2103 - Fix error message on missing builder method (groditi)
2105 * Moose::Meta::Method::Accessor
2106 - Fix error message on missing builder method (groditi)
2109 - Add test to check for the correct error message when
2110 builder method is missing (groditi)
2112 0.28 Tues. Nov. 13, 2007
2113 - 0.27 packaged incorrectly (groditi)
2115 0.27 Tues. Nov. 13, 2007
2116 * Moose::Meta::Attribute
2117 - Added support for the new builder option (groditi)
2118 - Added support for lazy_build option (groditi)
2119 - Changed slot initialization for predicate changes (groditi)
2121 * Moose::Meta::Method::Accessor
2122 - Added support for lazy_build option (groditi)
2123 - Fix inline methods to work with corrected predicate
2126 * Moose::Meta::Method::Constructor
2127 - Added support for lazy_build option (groditi)
2130 - tests for builder and lazy_build (groditi)
2132 * fixing some misc. bits in the docs that
2133 got mentioned on CPAN Forum & perlmonks
2136 - fixed how required methods are handled
2137 when they encounter overriden or modified
2138 methods from a class (thanks to confound).
2139 - added tests for this
2141 * Moose::Util::TypeConstraint
2142 - fixed the type notation parser so that
2143 the | always creates a union and so is
2144 no longer a valid type char (thanks to
2145 konobi, mugwump and #moose for working
2147 - added more tests for this
2149 0.26 Thurs. Sept. 27, 2007
2152 * Parameterized Types
2153 We now support parameterized collection types, such as:
2154 ArrayRef[Int] # array or integers
2155 HashRef[Object] # a hash with object values
2156 They can also be nested:
2157 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2158 And work with the type unions as well:
2159 ArrayRef[Int | Str] # array of integers of strings
2161 * Better Framework Extendability
2162 Moose.pm is now "extendable" such that it is now much
2163 easier to extend the framework and add your own keywords
2164 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2165 section of the Moose.pm docs.
2168 In an effort to begin documenting some of the various
2169 details of Moose as well as some common idioms, we have
2170 created Moose::Cookbook::Snacks as a place to find
2171 small (easily digestable) nuggets of Moose code.
2174 ~ Several doc updates/cleanup thanks to castaway ~
2176 - converted build system to use Module::Install instead of
2177 Module::Build (thanks to jrockway)
2180 - added all the meta classes to the immutable list and
2181 set it to inline the accessors
2182 - fix import to allow Sub::Exporter like { into => }
2183 and { into_level => } (perigrin)
2184 - exposed and documented init_meta() to allow better
2185 embedding and extending of Moose (perigrin)
2188 - complete re-organization of the test suite
2189 - added some new tests as well
2190 - finally re-enabled the Moose::POOP test since
2191 the new version of DBM::Deep now works again
2194 * Moose::Meta::Class
2195 - fixed very odd and very nasty recursion bug with
2197 - added tests for this (eilara)
2199 * Moose::Meta::Attribute
2200 Moose::Meta::Method::Constructor
2201 Moose::Meta::Method::Accessor
2202 - fixed issue with overload::Overloaded getting called
2203 on non-blessed items. (RT #29269)
2204 - added tests for this
2206 * Moose::Meta::Method::Accessor
2207 - fixed issue with generated accessor code making
2208 assumptions about hash based classes (thanks to dexter)
2210 * Moose::Coookbook::Snacks
2211 - these are bits of documentation, not quite as big as
2212 Recipes but which have no clear place in the module docs.
2213 So they are Snacks! (horray for castaway++)
2215 * Moose::Cookbook::Recipe4
2216 - updated it to use the new ArrayRef[MyType] construct
2217 - updated the accompanying test as well
2219 +++ Major Refactor of the Type Constraint system +++
2220 +++ with new features added as well +++
2222 * Moose::Util::TypeConstraint
2223 - no longer uses package variable to keep track of
2224 the type constraints, now uses the an instance of
2225 Moose::Meta::TypeConstraint::Registry to do it
2226 - added more sophisticated type notation parsing
2228 - added tests for this
2230 * Moose::Meta::TypeConstraint
2231 - some minor adjustments to make subclassing easier
2232 - added the package_defined_in attribute so that we
2233 can track where the type constraints are created
2235 * Moose::Meta::TypeConstraint::Union
2236 - this is now been refactored to be a subclass of
2237 Moose::Meta::TypeConstraint
2239 * Moose::Meta::TypeCoercion::Union
2240 - this has been added to service the newly refactored
2241 Moose::Meta::TypeConstraint::Union and is itself
2242 a subclass of Moose::Meta::TypeCoercion
2244 * Moose::Meta::TypeConstraint::Parameterized
2245 - added this module (taken from MooseX::AttributeHelpers)
2246 to help construct nested collection types
2247 - added tests for this
2249 * Moose::Meta::TypeConstraint::Registry
2250 - added this class to keep track of type constraints
2252 0.25 Mon. Aug. 13, 2007
2254 - Documentation update to reference Moose::Util::TypeConstraints
2255 under 'isa' in 'has' for how to define a new type
2256 (thanks to shlomif).
2258 * Moose::Meta::Attribute
2259 - required attributes now will no longer accept undef
2260 from the constructor, even if there is a default and lazy
2261 - added tests for this
2262 - default subroutines must return a value which passes the
2264 - added tests for this
2266 * Moose::Meta::Attribute
2267 * Moose::Meta::Method::Constructor
2268 * Moose::Meta::Method::Accessor
2269 - type-constraint tests now handle overloaded objects correctly
2270 in the error message
2271 - added tests for this (thanks to EvanCarroll)
2273 * Moose::Meta::TypeConstraint::Union
2274 - added (has_)hand_optimized_constraint to this class so that
2275 it behaves as the regular Moose::Meta::TypeConstraint does.
2278 - large refactoring of this code
2279 - added several more tests
2280 - tests for subtle conflict resolition issues
2281 added, but not currently running
2284 * Moose::Cookbook::Recipe7
2285 - added new recipe for augment/inner functionality
2287 - added test for this
2290 - a formal definition of roles (still in progress)
2293 - utilities for easier working with Moose classes
2294 - added tests for these
2297 - This contains Moose specific test functions
2298 - added tests for these
2300 0.24 Tues. July 3, 2007
2301 ~ Some doc updates/cleanup ~
2303 * Moose::Meta::Attribute
2304 - added support for roles to be given as parameters
2305 to the 'handles' option.
2306 - added tests and docs for this
2307 - the has '+foo' attribute form now accepts changes to
2308 the lazy option, and the addition of a handles option
2309 (but not changing the handles option)
2310 - added tests and docs for this
2313 - required methods are now fetched using find_method_by_name
2314 so that required methods can come from superclasses
2315 - adjusted tests for this
2317 0.23 Mon. June 18, 2007
2318 * Moose::Meta::Method::Constructor
2319 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2320 * Moose::Meta::Class
2321 - Modify make_immutable to work with the new Class::MOP immutable
2322 mechanism + POD + very basic test (groditi)
2323 * Moose::Meta::Attribute
2324 - Fix handles to use goto() so that caller() comes out properly on
2325 the other side (perigrin)
2327 0.22 Thurs. May 31, 2007
2328 * Moose::Util::TypeConstraints
2329 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2330 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2331 prototypes for functions
2332 - added the ClassName type constraint, this checks for strings
2333 which will respond true to ->isa(UNIVERSAL).
2334 - added tests and docs for this
2335 - subtyping just in name now works correctly by making the
2336 default for where be { 1 }
2337 - added test for this
2339 * Moose::Meta::Method::Accessor
2340 - coerce and lazy now work together correctly, thanks to
2341 merlyn for finding this bug
2342 - tests added for this
2343 - fix reader presedence bug in Moose::Meta::Attribute + tests
2346 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2347 a HASH-ref and missed. This produces better error messages then
2348 having it die cause undef is not a HASH.
2349 - added tests for this
2351 0.21 Thursday, May 2nd, 2007
2353 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2354 - modified unimport to remove super and inner along with the rest
2355 - altered unimport tests to handle this
2358 - altered super export to populate SUPER_SLOT
2360 * Moose::Meta::Class
2361 - altered augment and override modifier application to use *_SLOT
2362 - modified tests for these to unimport one test class each to test
2365 - fixed issue where custom attribute metaclasses
2366 where not handled correctly in roles
2367 - added tests for this
2369 * Moose::Meta::Class
2370 - fixed issue where extending metaclasses with
2371 roles would blow up. Thanks to Aankhen`` for
2372 finding this insidious error, and it's solution.
2374 ~~ lots of spelling and grammer fixes in the docs,
2375 many many thanks to rlb3 and Aankhen for these :)
2377 0.20 Friday, April 6th, 2007
2378 >> I messed up the SKIP logic in one test
2379 so this release is just to fix that.
2382 - 'has' now also accepts an ARRAY ref
2383 to create multiple attrs (see docs)
2384 (thanks to konobi for this)
2385 - added tests and docs
2387 0.19 Thurs. April 5th, 2007
2388 ~~ More documentation updates ~~
2390 * Moose::Util::TypeConstraints
2391 - 'type' now supports messages as well
2392 thanks to phaylon for finding this
2393 - added tests for this
2394 - added &list_all_type_constraints and
2395 &list_all_builtin_type_constraints
2396 functions to facilitate introspection.
2398 * Moose::Meta::Attribute
2399 - fixed regexp 'handles' declarations
2400 to build the list of delegated methods
2401 correctly (and not override important
2402 things like &new) thanks to ashleyb
2404 - added tests and docs for this
2405 - added the 'documentation' attributes
2406 so that you can actually document your
2407 attributes and inspect them through the
2409 - added tests and docs for this
2411 * Moose::Meta::Class
2412 - when loading custom attribute metaclasses
2413 it will first look in for the class in the
2414 Moose::Meta::Attribute::Custom::$name, and
2415 then default to just loading $name.
2416 - added tests and docs for this
2418 * Moose::Meta::TypeConstraint
2419 - type constraints now stringify to their names.
2420 - added test for this
2423 - added tests to assure we work with Module::Refresh
2424 - added stricter test skip logic in the Moose POOP
2425 test, ask Rob Kinyon why.
2426 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2428 0.18 Sat. March 10, 2007
2429 ~~ Many, many documentation updates ~~
2432 - We now use Class::MOP::load_class to
2434 - added tests to show types and subtypes
2435 working with Declare::Constraints::Simple
2436 and Test::Deep as constraint engines.
2439 !! You must have Class::MOP 0.37_001 !!
2440 !! for this developer release to work !!
2442 This release was primarily adding the immutable
2443 feature to Moose. An immutable class is one which
2444 you promise not to alter. When you set the class
2445 as immutable it will perform various bits of
2446 memoization and inline certain part of the code
2447 (constructors, destructors and accessors). This
2448 minimizes (and in some cases totally eliminates)
2449 one of Moose's biggest performance hits. This
2450 feature is not on by default, and is 100% optional.
2451 It has several configurable bits as well, so you
2452 can pick and choose to your specific needs.
2454 The changes involved in this were fairly wide and
2455 highly specific, but 100% backwards compatible, so
2456 I am not going to enumerate them here. If you are
2457 truely interested in what was changed, please do
2460 0.17 Tues. Nov. 14, 2006
2461 * Moose::Meta::Method::Accessor
2462 - bugfix for read-only accessors which
2463 are have a type constraint and lazy.
2464 Thanks to chansen for finding it.
2466 0.16 Tues. Nov. 14, 2006
2468 There are some speed improvements in this release,
2469 but they are only the begining, so stay tuned.
2472 - BUILDALL and DEMOLISHALL no longer get
2473 called unless they actually need to be.
2474 This gave us a signifigant speed boost
2475 for the cases when there is no BUILD or
2476 DEMOLISH method present.
2478 * Moose::Util::TypeConstraints
2479 * Moose::Meta::TypeConstraint
2480 - added an 'optimize_as' option to the
2481 type constraint, which allows for a
2482 hand optimized version of the type
2483 constraint to be used when possible.
2484 - Any internally created type constraints
2485 now provide an optimized version as well.
2487 0.15 Sun. Nov. 5, 2006
2489 This version of Moose *must* have Class::MOP 0.36 in order
2490 to work correctly. A number of small internal tweaks have
2491 been made in order to be compatible with that release.
2493 * Moose::Util::TypeConstraints
2494 - added &unimport so that you can clean out
2495 your class namespace of these exported
2498 * Moose::Meta::Class
2499 - fixed minor issue which occasionally
2500 comes up during global destruction
2502 - moved Moose::Meta::Method::Overriden into
2506 - moved Moose::Meta::Role::Method into
2509 * Moose::Meta::Attribute
2510 - changed how we do type checks so that
2511 we reduce the overall cost, but still
2514 - moved accessor generation methods to
2515 Moose::Meta::Method::Accessor to
2516 conform to the API changes from
2519 * Moose::Meta::TypeConstraint
2520 - changed how constraints are compiled
2521 so that we do less recursion and more
2522 iteration. This makes the type check
2524 - moved Moose::Meta::TypeConstraint::Union
2527 * Moose::Meta::Method::Accessor
2528 - created this from methods formerly found in
2529 Moose::Meta::Attribute
2531 * Moose::Meta::Role::Method
2532 - moved this from Moose::Meta::Role
2534 * Moose::Meta::Method::Overriden
2535 - moved this from Moose::Meta::Class
2537 * Moose::Meta::TypeConstraint::Union
2538 - moved this from Moose::Meta::TypeConstraint
2540 0.14 Mon. Oct. 9, 2006
2542 * Moose::Meta::Attribute
2543 - fixed lazy attributes which were not getting
2544 checked with the type constraint (thanks ashley)
2545 - added tests for this
2546 - removed the over-enthusiastic DWIMery of the
2547 automatic ArrayRef and HashRef defaults, it
2548 broke predicates in an ugly way.
2549 - removed tests for this
2551 0.13 Sat. Sept. 30, 2006
2553 This version of Moose *must* have Class::MOP 0.35 in order
2554 to work correctly. A number of small internal tweaks have
2555 been made in order to be compatible with that release.
2558 - Removed the use of UNIVERSAL::require to be a better
2559 symbol table citizen and remove a dependency
2560 (thanks Adam Kennedy)
2562 **~~ removed experimental & undocumented feature ~~**
2563 - commented out the 'method' and 'self' keywords, see the
2564 comments for more info.
2567 - added a FAQ and WTF files to document frequently
2568 asked questions and common problems
2570 * Moose::Util::TypeConstraints
2571 - added GlobRef and FileHandle type constraint
2572 - added tests for this
2574 * Moose::Meta::Attribute
2575 - if your attribute 'isa' ArrayRef of HashRef, and you have
2576 not explicitly set a default, then make the default DWIM.
2577 This will also work for subtypes of ArrayRef and HashRef
2579 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2580 - new test added for this (thanks to ashley)
2583 - added basic support for runtime role composition
2584 but this is still *highly experimental*, so feedback
2585 is much appreciated :)
2586 - added tests for this
2588 * Moose::Meta::TypeConstraint
2589 - the type constraint now handles the coercion process
2590 through delegation, this is to support the coercion
2593 * Moose::Meta::TypeConstraint::Union
2594 - it is now possible for coercions to be performed
2596 - added tests for this (thanks to konobi)
2598 * Moose::Meta::TypeCoercion
2599 - properly capturing error when type constraint
2603 - Scalar::Util 1.18 is bad on Win32, so temporarily
2604 only require version 1.17 for Win32 and cygwin.
2605 (thanks Adam Kennedy)
2607 0.12 Sat. Sept. 1, 2006
2609 - Recipe5 (subtypes & coercion) has been written
2612 - fixed "bad meta" error message to be more descriptive
2613 - fixed &unimport to not remove the &inner and &super
2614 keywords because we need to localize them.
2615 - fixed number of spelling/grammer issues, thanks Theory :)
2617 **~~ experimental & undocumented feature ~~**
2618 - added the method and self keywords, they are basically
2619 just sugar, and they may not stay around.
2622 - added &dump method to easily Data::Dumper
2625 * Moose::Meta::TypeConstraint
2626 - added the &is_a_type_of method to check both the current
2627 and the subtype of a method (similar to &isa with classes)
2630 - this is now a subclass of Class::MOP::Module, and no longer
2631 creates the _role_meta ugliness of before.
2632 - fixed tests to reflect this change
2634 0.11 Wed. July 12, 2006
2636 - added an &unimport method to remove all the keywords
2637 that Moose will import, simply add 'no Moose' to the
2638 bottom of your class file.
2641 - fixed some test failures caused by a forgotten test
2644 0.10 Thurs. July 6, 2006
2646 - improved error message when loading modules so
2647 it is less confusing when you load a role.
2648 - added &calculate_all_roles method to
2649 Moose::Meta::Class and Moose::Meta::Role
2652 This module has been tested against Class::MOP 0.30
2653 but it does not yet utilize the optimizations
2654 it makes available. Stay tuned for that ;)
2656 0.09_03 Fri. June 23, 2006
2657 ++ DEVELOPER RELEASE ++
2659 - 'use strict' and 'use warnings' are no longer
2660 needed in Moose classes, Moose itself will
2661 turn them on for you.
2662 - added tests for this
2663 - moved code from exported subs to private methods
2664 in Moose::Meta::Class
2667 - as with Moose, strict and warnings are
2668 automatically turned on for you.
2669 - added tests for this
2672 - now handles an edge case for override errors
2673 - added tests for this
2674 - added some more edge case tests
2676 0.09_02 Tues. May 16, 2006
2677 ++ DEVELOPER RELEASE ++
2679 - added prototypes to the exported subs
2683 - added prototypes to the exported subs
2686 * Moose::Util::TypeConstraints
2687 - cleaned up prototypes for the subs
2690 0.09_01 Fri. May 12, 2006
2691 ++ DEVELOPER RELEASE ++
2692 - This release works in combination with
2693 Class::MOP 0.29_01, it is a developer
2694 release because it uses the a new
2695 instance sub-protocol and a fairly
2696 complete Role implementation. It has
2697 not yet been optimized, so it slower
2698 the the previous CPAN version. This
2699 release also lacks good updated docs,
2700 the official release will have updated docs.
2703 - refactored the keyword exports
2704 - 'with' now checks Role validaity and
2705 accepts more than one Role at a time
2706 - 'extends' makes metaclass adjustments as
2707 needed to ensure metaclass compatibility
2710 - refactored the keyword exports
2711 - 'with' now checks Role validaity and
2712 accepts more than one Role at a time
2714 * Moose::Util::TypeConstraints
2715 - added the 'enum' keyword for simple
2716 string enumerations which can be used as
2718 - see example of usage in t/202_example.t
2721 - more careful checking of params to new()
2724 - much work done on the role composition
2725 - many new tests for conflict detection
2726 and composition edge cases
2727 - not enough documentation, I suggest
2728 looking at the tests
2730 * Moose::Meta::Instance
2731 - added new Instance metaclass to support
2732 the new Class::MOP instance protocol
2734 * Moose::Meta::Class
2735 - some small changes to support the new
2737 - some small additions to support Roles
2739 * Moose::Meta::Attribute
2740 - some improvements to the accessor generation code
2742 - some small changes to support the new
2744 - (still somewhat) experimental delegation support
2745 with the 'handles' option
2746 - added several tests for this
2747 - no docs for this yet
2749 0.05 Thurs. April 27, 2006
2751 - keywords are now exported with Sub::Exporter
2752 thanks to chansen for this commit
2753 - has keyword now takes a 'metaclass' option
2754 to support custom attribute meta-classes
2755 on a per-attribute basis
2756 - added tests for this
2757 - the 'has' keyword not accepts inherited slot
2758 specifications (has '+foo'). This is still an
2759 experimental feature and probably not finished
2760 see t/038_attribute_inherited_slot_specs.t for
2761 more details, or ask about it on #moose
2762 - added tests for this
2765 - keywords are now exported with Sub::Exporter
2767 * Moose::Utils::TypeConstraints
2768 - reorganized the type constraint hierarchy, thanks
2769 to nothingmuch and chansen for his help and advice
2771 - added some tests for this
2772 - keywords are now exported with Sub::Exporter
2773 thanks to chansen for this commit
2775 * Moose::Meta::Class
2776 - due to changes in Class::MOP, we had to change
2777 construct_instance (for the better)
2779 * Moose::Meta::Attribute
2780 - due to changes in Class::MOP, we had to add the
2781 initialize_instance_slot method (it's a good thing)
2783 * Moose::Meta::TypeConstraint
2784 - added type constraint unions
2785 - added tests for this
2786 - added the is_subtype_of predicate method
2787 - added tests for this
2789 0.04 Sun. April 16th, 2006
2791 - Roles can now consume other roles
2792 - added tests for this
2793 - Roles can specify required methods now with
2794 the requires() keyword
2795 - added tests for this
2798 - ripped out much of it's guts ,.. much cleaner now
2799 - added required methods and correct handling of
2800 them in apply() for both classes and roles
2801 - added tests for this
2802 - no longer adds a does() method to consuming classes
2803 it relys on the one in Moose::Object
2804 - added roles attribute and some methods to support
2805 roles consuming roles
2807 * Moose::Meta::Attribute
2808 - added support for triggers on attributes
2809 - added tests for this
2810 - added support for does option on an attribute
2811 - added tests for this
2813 * Moose::Meta::Class
2814 - added support for attribute triggers in the
2816 - added tests for this
2819 - Moose no longer creates a subtype for your class
2820 if a subtype of the same name already exists, this
2821 should DWIM in 99.9999% of all cases
2823 * Moose::Util::TypeConstraints
2824 - fixed bug where incorrect subtype conflicts were
2826 - added test for this
2829 - this class can now be extended with 'use base' if
2830 you need it, it properly loads the metaclass class now
2831 - added test for this
2833 0.03_02 Wed. April 12, 2006
2835 - you must now explictly use Moose::Util::TypeConstraints
2836 it no longer gets exported for you automatically
2839 - new() now accepts hash-refs as well as key/value lists
2840 - added does() method to check for Roles
2841 - added tests for this
2843 * Moose::Meta::Class
2844 - added roles attribute along with the add_role() and
2846 - added tests for this
2849 - now adds a does() method to consuming classes
2850 which tests the class's hierarchy for roles
2851 - added tests for this
2853 0.03_01 Mon. April 10, 2006
2855 - added new Role recipe (no content yet, only code)
2858 - added 'with' keyword for Role support
2859 - added test and docs for this
2860 - fixed subtype quoting bug
2861 - added test for this
2865 - added test and docs
2867 * Moose::Util::TypeConstraints
2868 - added the message keyword to add custom
2869 error messages to type constraints
2872 - the meta role to support Moose::Role
2873 - added tests and docs
2875 * Moose::Meta::Class
2876 - moved a number of things from Moose.pm
2877 to here, they should have been here
2880 * Moose::Meta::Attribute
2881 - moved the attribute option macros here
2882 instead of putting them in Moose.pm
2884 * Moose::Meta::TypeConstraint
2885 - added the message attributes and the
2887 - added tests and docs for this
2889 0.03 Thurs. March 30, 2006
2891 - added the Moose::Cookbook with 5 recipes,
2892 describing all the stuff Moose can do.
2895 - fixed an issue with &extends super class loading
2896 it now captures errors and deals with inline
2897 packages correctly (bug found by mst, solution
2899 - added super/override & inner/augment features
2900 - added tests and docs for these
2903 - BUILDALL now takes a reference of the %params
2904 that are passed to &new, and passes that to
2907 * Moose::Util::TypeConstraints
2908 - Type constraints now survive runtime reloading
2909 - added test for this
2911 * Moose::Meta::Class
2912 - fixed the way attribute defaults are handled
2913 during instance construction (bug found by chansen)
2915 * Moose::Meta::Attribute
2916 - read-only attributes now actually enforce their
2917 read-only-ness (this corrected in Class::MOP as
2920 0.02 Tues. March 21, 2006
2922 - many more tests, fixing some bugs and
2924 - &extends now loads the base module with
2926 - added UNIVERSAL::require to the
2929 - each new Moose class will also create
2930 and register a subtype of Object which
2931 correspond to the new Moose class.
2932 - the 'isa' option in &has now only
2933 accepts strings, and will DWIM in
2936 * Moose::Util::TypeConstraints
2937 - added type coercion features
2938 - added tests for this
2939 - added support for this in attributes
2940 and instance construction
2942 - type construction no longer creates a
2943 function, it registers the type instead.
2944 - added several functions to get the
2948 - BUILDALL and DEMOLISHALL were broken
2949 because of a mis-named hash key, Whoops :)
2951 * Moose::Meta::Attribute
2952 - adding support for coercion in the
2953 autogenerated accessors
2955 * Moose::Meta::Class
2956 - adding support for coercion in the
2957 instance construction
2959 * Moose::Meta::TypeConstraint
2960 * Moose::Meta::TypeCoercion
2961 - type constraints and coercions are now
2962 full fledges meta-objects
2964 0.01 Wed. March 15, 2006
2965 - Moooooooooooooooooose!!!