1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Improved support for anonymous roles by changing various APIs to take
9 Moose::Meta::Role objects as well as role names. This included
11 - Moose::Meta::Class->does_role
12 - Moose::Meta::Role->does_role
13 - Moose::Util::does_role
14 - Moose::Util::apply_all_roles
15 - Moose::Util::ensure_all_roles
16 - Moose::Util::search_class_by_role
18 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
21 0.93_03 Tue, Jan 5, 2009
25 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
26 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
28 0.93_02 Tue, Jan 5, 2009
32 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
33 testers. (Dave Rolsky)
35 0.93_01 Mon, Jan 4, 2009
39 See Moose::Manual::Delta for more details on backwards compatiblity issues.
41 * Role attributes are now objects of the Moose::Meta::Role::Attribute
44 * There were major changes to how metaroles are applied. We now distinguish
45 between metaroles for classes vs those for roles. See the
46 Moose::Util::MetaRole docs for details. (Dave Rolsky)
48 * The old MetaRole API has been deprecated, but will continue to
49 work. However, if you are applying an attribute metaclass role, this may
50 break because of the fact that roles now have an attribute metaclass
53 * Moose::Util::MetaRole::apply_metaclass_roles is now called
54 apply_metaroles. The old name is deprecated. Dave Rolsky>
56 * The unimport subs created by Moose::Exporter now clean up re-exported
57 functions like blessed and confess, unless the caller imported them from
58 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
60 [ENHANCEMENTS AND BUG FIXES]
62 * Changed the Str constraint to accept magic lvalue strings like one gets from
63 substr et al, again. (sorear)
65 * Sped up the type constraint parsing regex. (Sam Vilain)
67 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
70 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
71 easier testing of TypeConstraints from the command line. (perigrin)
73 * Added a with_immutable test function to Test::Moose, to run a block of tests
74 with and without certain classes being immutable. (doy)
76 * We now use Module::Install extensions explicitly to avoid confusing errors
77 if they're not installed. We use Module::Install::AuthorRequires to stop
78 test extraction and general failures if you don't have the author side
79 dependencies installed.
81 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
82 #51791. (Amir E. Aharoni)
84 0.93 Thu, Nov 19, 2009
86 - Calling $object->new() is no longer deprecated, and no longer
90 - The get_attribute_map method is now deprecated. (Dave Rolsky)
92 * Moose::Meta::Method::Delegation
93 - Preserve variable aliasing in @_ for delegated methods, so that
94 altering @_ affects the passed value. (doy)
96 * Moose::Util::TypeConstraints
97 - Allow array refs for non-anonymous form of enum and duck_type, not
98 just anonymous. The non-arrayref forms may be removed in the
100 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
101 - Properly document Int being a subtype of Str. (doy)
104 - Moose::Exporter using modules can now export their functions to the
105 main package. This applied to Moose and Moose::Role, among
106 others. (nothingmuch)
108 * Moose::Meta::Attribute
109 - Don't remove attribute accessors we never installed, during
110 remove_accessors. (doy)
112 * Moose::Meta::Attribute::Native::Trait::Array
113 - Don't bypass prototype checking when calling List::Util::first, to
114 avoid a segfault when it is called with a non-code argument. (doy)
116 * Moose::Meta::Attribute::Native::Trait::Code
117 - Fix passing arguments to code execute helpers. (doy)
119 0.92 Tue, Sep 22, 2009
120 * Moose::Util::TypeConstraints
121 - added the match_on_type operator (Stevan)
122 - added tests and docs for this (Stevan)
125 - Metaclass compat fixing should already happen recursively, there's no
126 need to explicitly walk up the inheritance tree. (doy)
128 * Moose::Meta::Attribute
129 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
131 0.91 Thu, Sep 17, 2009
133 - Don't import any functions, in order to avoid polluting our namespace
134 with things that can look like methods (blessed, try, etc)
137 * Moose::Meta::Method::Constructor
138 - The generated code needs to called Scalar::Util::blessed by its
139 fully-qualified name or else Perl can interpret the call to blessed as
140 an indirect method call. This broke Search::GIN, which in turn broke
141 KiokuDB. (nothingmuch)
143 0.90 Tue, Sep 15, 2009
144 * Moose::Meta::Attribute::Native::Trait::Counter
145 * Moose::Meta::Attribute::Native::Trait::String
146 - For these two traits, an attribute which did not explicitly provide
147 methods to handles magically ended up delegating *all* the helper
148 methods. This has been removed. You must be explicit in your handles
149 declaration for all Native Traits. (Dave Rolsky)
152 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
153 sure to rethrow its error message. However, we also localize $@ before
154 this so that if all the DEMOLISH methods success, the value of $@ will
155 be preserved. (nothingmuch and Dave Rolsky)
156 - We now also localize $? during object destruction. (nothingmuch and
158 - The handling of DEMOLISH methods was broken for immutablized classes,
159 which were not receiving the value of
160 Devel::GlobalDestruction::in_global_destruction.
161 - These two fixes address some of RT #48271, reported by Zefram.
162 - This is all now documented in Moose::Manual::Construction.
163 - Calling $object->new() is now deprecated. A warning will be
167 - Added more hooks to customize how roles are applied. The role
168 summation class, used to create composite roles, can now be changed
169 and/or have meta-roles applied to it. (rafl)
170 - The get_method_list method no longer explicitly excludes the "meta"
171 method. This was a hack that has been replaced by better hacks. (Dave
174 * Moose::Meta::Method::Delegation
175 - fixed delegated methods to make sure that any modifiers attached to
176 the accessor being delegated on will be called (Stevan)
177 - added tests for this (Stevan)
180 - Moose no longer warns when a class that is being made immutable has
181 mutable ancestors. While in theory this is a good thing to warn about,
182 we found so many exceptions to this that doing this properly became
185 0.89_02 Thu, Sep 10, 2009
186 * Moose::Meta::Attribute::Native
187 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
189 * Moose::Meta::Attribute::Native::Trait::Array
190 - Added a number of functions from List::Util and List::MoreUtils,
191 including reduce, shuffle, uniq, and natatime. (doy)
194 - This module will now generate an init_meta method for your exporting
195 class if you pass it options for
196 Moose::Util::MetaRole::apply_metaclass_roles or
197 apply_base_class_roles. This eliminates a lot of repetitive
198 boilerplate for typical MooseX modules. (doy).
199 - Documented the with_meta feature, which is a replacement for
200 with_caller. This feature was added by josh a while ago.
201 - The with_caller feature is now deprecated, but will not issue a
202 warning yet. (Dave Rolsky)
203 - If you try to wrap/export a subroutine which doesn't actually exist,
204 Moose::Exporter will warn you about this. (doy)
206 * Moose::Meta::Role::Application::ToRole
207 - When a role aliased a method from another role, it was only getting
208 the new (aliased) name, not the original name. This differed from what
209 happens when a class aliases a role's methods. If you _only_ want the
210 aliased name, make sure to also exclue the original name. (Dave
213 0.89_01 Wed Sep 2, 2009
214 * Moose::Meta::Attribute
215 - Added the currying syntax for delegation from AttributeHelpers to the
216 existing delegation API. (hdp)
218 * Moose::Meta::Attribute::Native
219 - We have merged the functionality of MooseX::AttributeHelpers into the
220 Moose core with some API tweaks. You can continue to use
221 MooseX::AttributeHelpers, but it will not be maintained except
222 (perhaps) for critical bug fixes in the future. See
223 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
226 * Moose::Error::Croak
227 * Moose::Error::Confess
228 - Clarify documentation on how to use different error-throwing
229 modules. (Curtis Jewell)
232 - Correct POD for builder to point to Recipe8, not 9. (gphat)
235 - When a nonexistent sub name is passed to as_is, with_caller, or
236 with_meta, throw a warning and skip the exporting, rather than
237 installing a broken sub. (doy)
240 - Moose now warns if you call C<make_immutable> for a class with mutable
243 0.89 Thu Aug 13, 2009
244 * Moose::Manual::Attributes
245 - Clarify "is", include discussion of "bare". (Sartak)
247 * Moose::Meta::Role::Method::Conflicting
248 * Moose::Meta::Role::Application::ToClass
249 - For the first set of roles involved in a conflict, report all
250 unresolved method conflicts, not just the first method. Fixes #47210
251 reported by Ovid. (Sartak)
253 * Moose::Meta::TypeConstraint
254 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
257 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
259 - Allow specifying role options (alias, excludes, MXRP stuff) in the
260 arrayref passed to "use Moose -traits" (doy)
263 - Add functions meta_class_alias and meta_attribute_alias for creating
264 aliases for class and attribute metaclasses and metatraits. (doy)
266 * Moose::Meta::Attribute
267 * Moose::Meta::Method::Accessor
268 - A trigger now receives the old value as a second argument, if the
269 attribute had one. (Dave Rolsky)
271 * Moose::Meta::Method::Constructor
272 - Fix a bug with $obj->new when $obj has stringify overloading.
273 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
274 - However, we will probably deprecate $obj->new, so please don't start
275 using it for new code!
277 * Moose::Meta::Role::Application
278 * Moose::Meta::Role::Application::RoleSummation
279 - Rename alias and excludes to -alias and -excludes (but keep the old
280 names for now, for backcompat) (doy)
282 0.88 Fri Jul 24, 2009
283 * Moose::Manual::Contributing
284 - Re-write the Moose::Manual::Contributing document to reflect
285 the new layout and methods of work for the Git repository. All
286 work now should be done in topic branches and reviewed by a
287 core committer before being applied to master. All releases
288 are done by a cabal member and merged from master to
289 stable. This plan was devised by Yuval, blame him. (perigrin)
292 - Create metaclass attributes for the different role application
295 * Moose::Util::MetaRole
296 - Allow applying roles to a meta role's role application
299 * Moose::Meta::Attribute
300 - Add weak_ref to allowed options for "has '+foo'" (mst)
302 * Moose::Meta::Method::Accessor
303 - No longer uses inline_slot_access in accessors, to support
304 non-lvalue-based meta instances. (sorear)
307 * Moose::Meta::Method::Delegation
308 - Once again allow class names as well as objects for
309 delegation. This was changed in 0.86.
312 * Moose::Meta::Class::Immutable::Trait
313 - Fixes to work with the latest Class::MOP.
315 * Moose::Meta::Method::Delegation
316 - Delegation now dies with a more useful error message if the
317 attribute's accessor returns something defined but
320 0.85 Fri, Jun 26, 2009
321 * Moose::Meta::Attribute
322 - The warning for 'no associated methods' is now split out into
323 the _check_associated_methods method, so that extensions can
324 safely call 'after install_accessors => ...'. This fixes a
325 warning from MooseX::AttributeHelpers. (hdp)
327 0.84 Fri, Jun 26, 2009
329 - has now sets definition_context for attributes defined in
332 * Moose::Meta::Attribute
333 - When adding an attribute to a metaclass, if the attribute has
334 no associated methods, it will give a deprecation
336 - Methods generated by delegation were not being added to
337 associated_methods. (hdp)
338 - Attribute accessors (reader, writer, accessor, predicate,
339 clearer) now warn if they overwrite an existing method. (doy)
340 - Attribute constructors now warn very noisily about unknown (or
341 misspelled) arguments
343 * Moose::Util::TypeConstraints
344 - Deprecated the totally useless Role type name, which just
345 checked if $object->can('does'). Note that this is _not_ the
346 same as a type created by calling role_type('RoleName').
348 * Moose::Util::TypeConstraints
349 * Moose::Meta::TypeConstraint::DuckType
350 - Reify duck type from a regular subtype into an actual class
352 - Document this because Sartak did all my work for me
355 * Moose::Meta::Attribute
356 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
357 it is just a list of methods (Sartak)
360 - The get_*_method_modifiers methods would die if the role had
361 no modifiers of the given type (Robert Buels).
363 0.83 Tue, Jun 23, 2009
365 - Fix _construct_instance not setting the special __MOP__ object
366 key in instances of anon classes. (doy)
368 0.82 Sun, Jun 21, 2009
369 * Moose::Manual::Types
370 - Mention MooseX::Types early to avoid users falling down the
371 string parsing rathole (mst)
373 * Moose::Manual::MooseX
374 - Add warnings about class-level extensions and mention considering
375 using plain objects instead
377 0.81 Sun, Jun 7, 2009
378 * Bumped our Class::MOP prereq to the latest version (0.85), since
381 0.80 Sat, Jun 6, 2009
383 - Add FAQ about the coercion change from 0.76 because it came up
384 three times today (perigrin)
385 - Win doy $10 dollars because Sartak didn't think anybody
386 would document this fast enough (perigrin)
388 * Moose::Meta::Method::Destructor
389 - Inline a DESTROY method even if there are no DEMOLISH methods
390 to prevent unnecessary introspection in
391 Moose::Object::DEMOLISHALL
394 - A role's required methods are now represented by
395 Moose::Meta::Role::Method::Required objects. Conflicts are now
396 represented by Moose::Meta::Role::Method::Conflicting
397 objects. The benefit for end-users in that unresolved
398 conflicts generate different, more instructive, errors,
399 resolving Ovid's #44895. (Sartak)
402 - Improve the error message of "extends" as suggested by Adam
403 Kennedy and confound (Sartak)
404 - Link to Moose::Manual::Roles from Moose::Role as we now have
405 excellent documentation (Adam Kennedy)
408 - Update test suite for subname change in Class::MOP
410 - Add TODO test for infinite recursion in Moose::Meta::Class
413 0.79 Wed, May 13, 2009
415 - More fixes for Win32 problems. Reported by Robert Krimen.
418 - The DEMOLISHALL method could still blow up in some cases
419 during global destruction. This method has been made more
420 resilient in the face of global destruction's random garbage
424 - If you "also" a module that isn't loaded, the error message
425 now acknowledges that (Sartak)
428 - When your ->meta method does not return a Moose::Meta::Class,
429 the error message gave the wrong output (Sartak)
431 0.78 Tue, May 12, 2009
432 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
433 - Merged these documents into what is now Moose::Manual::FAQ
436 - Moved to Moose::Manual::Unsweetened
438 * Moose::Cookbook::Basics::Recipes 9-12
439 - Renamed to be 8-11, since recipe 8 did not exist
442 - Make Moose::Exporter import strict and warnings into packages
446 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
447 methods during global destruction (doy)
450 * Moose::Meta::Role::Application::ToClass
451 - Track the Role::Application objects created during class-role
455 - Fix metaclass incompatibility errors when extending a vanilla perl
456 class which isa Moose class with a metaclass role applied (t0m)
459 - Add a role-combination hook, _role_for_combination, for the
460 benefit of MooseX::Role::Parameterized (Sartak)
463 - Some tests were failing on Win32 because they explicit checked
464 warning output for newlines. Reported by Nickolay Platonov.
466 0.77 Sat, May 2, 2009
468 - Add explicit use of Devel::GlobalDestruction and Sub::Name
472 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
473 or not we are currently in global destruction (doy)
474 - Add explicit use of Devel::GlobalDestruction and Sub::Name
477 * Moose::Cookbook::FAQ
478 - Reworked much of the existing content to be more useful to
479 modern Moose hackers (Sartak)
482 - Depend on Class::MOP 0.83 instead of 0.82_01.
484 0.76 Mon, April 27, 2009
485 * Moose::Meta::TypeConstraint
486 - Do not run coercions in coerce() if the value already passes the type
489 * Moose::Meta::TypeConstraint::Class
490 - In validation error messages, specifically say that the value is not
491 an instance of the class. This should alleviate some frustrating
492 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
494 * Moose::Meta::Role::Application::ToClass
495 - Revert the class-overrides-role warning in favor of a solution outside
496 of the Moose core (Sartak)
499 - Make Test::Output optional again, since it's only used in a few files
502 0.75_01 Thu, April 23, 2009
503 * Moose::Meta::Role::Application::ToClass
504 - Moose now warns about each class overriding methods from roles it
508 - Warnings tests have standardized on Test::Output which is now an
509 unconditionally dependency (Sartak)
512 - Changes to immutabilization to work with Class::MOP 0.82_01+.
514 0.75 Mon, April 20, 2009
517 - Move validation of not inheriting from roles from Moose::extends to
518 Moose::Meta::Class::superclasses (doy)
521 - add ensure_all_roles() function to encapsulate the common "apply this
522 role unless the object already does it" pattern (hdp)
525 - Users can now select a different metaclass with the "-metaclass"
526 option to import, for classes and roles (Sartak)
529 - Make method_metaclass an attr so that it can accept a metarole
532 0.74 Tue, April 7, 2009
534 * Moose::Meta::Method::Destructor
535 - Include stack traces in the deprecation warnings.
539 - Removed the long-deprecated _apply_all_roles method.
541 * Moose::Meta::TypeConstraint
542 - Removed the long-deprecated union method.
545 0.73_02 Mon, April 6, 2009
546 * More deprecations and renamings
547 - Moose::Meta::Method::Constructor
548 - initialize_body => _initialize_body (this is always called
549 when an object is constructed)
552 - The DEMOLISHALL method could throw an exception during global
553 destruction, meaning that your class's DEMOLISH methods would
554 not be properly called. Reported by t0m.
556 * Moose::Meta::Method::Destructor
557 - Destructor inlining was totally broken by the change to the
558 is_needed method in 0.72_01. Now there is a test for this
559 feature, and it works again.
562 - Bold the word 'not' in the POD for find_meta (t0m)
564 0.73_01 Sun, April 5, 2009
566 - Call user_class->meta in fewer places, with the eventual goal
567 of allowing the user to rename or exclude ->meta
568 altogether. Instead uses Class::MOP::class_of. (Sartak)
570 * Moose::Meta::Method::Accessor
571 - If an attribute had a lazy default, and that value did not
572 pass the attribute's type constraint, it did not get the
573 message from the type constraint, instead using a generic
574 message. Test provided by perigrin.
576 * Moose::Util::TypeConstraints
577 - Add duck_type keyword. It's sugar over making sure an object
578 can() a list of methods. This is easier than jrockway's
579 suggestion to fork all of CPAN. (perigrin)
580 - add tests and documentation (perigrin)
583 - Document the fact that init_meta() returns the target class's
584 metaclass object. (hdp)
586 * Moose::Cookbook::Extending::Recipe1
587 * Moose::Cookbook::Extending::Recipe2
588 * Moose::Cookbook::Extending::Recipe3
589 * Moose::Cookbook::Extending::Recipe4
590 - Make init_meta() examples explicitly return the metaclass and
591 point out this fact. (hdp)
593 * Moose::Cookbook::Basics::Recipe12
594 - A new recipe, creating a custom meta-method class.
596 * Moose::Cookbook::Meta::Recipe6
597 - A new recipe, creating a custom meta-method class.
600 * Moose::Meta::Method::Constructor
601 - Attribute triggers no longer receive the meta-attribute object
602 as an argument in any circumstance. Previously, triggers
603 called during instance construction were passed the
604 meta-attribute, but triggers called by normal accessors were
605 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
607 * Moose::Manual::Attributes
608 - Remove references to triggers receving the meta-attribute object as an
611 * Moose::Cookbook::FAQ
612 - Remove recommendation for deprecated Moose::Policy and
613 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
616 * Many methods have been renamed with a leading underscore, and a
617 few have been deprecated entirely. The methods with a leading
618 underscore are consider "internals only". People writing
619 subclasses or extensions to Moose should feel free to override
620 them, but they are not for "public" use.
623 - check_metaclass_compatibility => _check_metaclass_compatibility
625 - Moose::Meta::Method::Accessor
626 - initialize_body => _initialize_body (this is always called
627 when an object is constructed)
628 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
630 - Moose::Meta::Method::Constructor
631 - initialize_body => _initialize_body (this is always called
632 when an object is constructed)
633 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
634 - attributes => _attributes (now inherited from parent)
635 - meta_instance => _meta_instance (now inherited from parent)
638 - alias_method is deprecated. Use add_method
640 0.73 Fri, March 29, 2009
641 * No changes from 0.72_01.
643 0.72_01 Thu, March 26, 2009
645 - Almost every module has complete API documentation. A few
646 methods (and even whole classes) have been intentionally
647 excluded pending some rethinking of their APIs.
649 * Moose::Util::TypeConstraints
650 - Calling subtype with a name as the only argument is now an
651 exception. If you want an anonymous subtype do:
653 my $subtype = subtype as 'Foo';
655 * Moose::Cookbook::Meta::Recipe7
656 - A new recipe, creating a custom meta-instance class.
658 * Moose::Cookbook::Basics::Recipe5
659 - Fix various typos and mistakes. Includes a patch from Radu
662 * Moose::Cookbook::Basics::Recipe9
663 - Link to this recipe from Moose.pm's builder blurb
666 - When wrapping a function with a prototype, Moose::Exporter now
667 makes sure the wrapped function still has the same
668 prototype. (Daisuke Maki)
670 * Moose::Meta::Attribute
671 - Allow a subclass to set lazy_build for an inherited
675 - Explicitly depend on Data::OptList. We already had this dependency
676 via Sub::Exporter, but since we're using it directly we're
677 better off with it listed. (Sartak)
679 * Moose::Meta::Method::Constructor
680 - Make it easier to subclass the inlining behaviour. (Ash
683 * Moose::Manual::Delta
684 - Details significant changes in the history of Moose, along
685 with recommended workarounds.
687 * Moose::Manual::Contributing
688 - Contributor's guide to Moose.
690 * Moose::Meta::Method::Constructor
691 - The long-deprecated intialize_body method has been removed
692 (yes, spelled like that).
694 * Moose::Meta::Method::Destructor
695 - This is_needed method is now always a class method.
698 - Changes to the internals of how make_immutable works to match
699 changes in latest Class::MOP.
701 0.72 Mon, February 23, 2009
703 * Moose::Meta::Method::Constructor
704 - A mutable class accepted Foo->new(undef) without complaint,
705 while an immutable class would blow up with an unhelpful
706 error. Now, in both cases we throw a helpful error
707 instead. Reported by doy.
709 0.71_01 Sun, February 22, 2009
711 - Hopefully fixed some POD errors in a few recipes that caused
712 them to display weird on search.cpan.org.
714 * Moose::Util::TypeConstraints
715 - Calling type or subtype without the sugar helpers (as, where,
716 message) is now deprecated.
717 - The subtype function tried hard to guess what you meant, but
718 often got it wrong. For example:
720 my $subtype = subtype as 'ArrayRef[Object]';
722 This caused an error in the past, but now works as you'd
726 - Make sure Moose.pm is loaded before calling
727 Moose->throw_error. This wasn't normally an issue, but could
728 bite you in weird cases.
730 0.71 Thu, February 19, 2009
731 * Moose::Cookbook::Basics::Recipe11
732 - A new recipe which demonstrates the use of BUILDARGS and
735 * Moose::Cookbook::Roles::Recipe3
736 - A new recipe, applying a role to an object instance. (Dave
740 - Allow overriding specific keywords from "also" packages. (doy)
743 - Replace hardcoded cookbook tests with Test::Inline to ensure
744 the tests match the actual code in the recipes. (Dave Rolsky)
747 - Working on the above turned up a number of little bugs in the
748 recipe code. (Dave Rolsky)
750 * Moose::Util::TypeConstraints::Optimized
751 - Just use Class::MOP for the optimized ClassName check. (Dave
754 0.70 Sat, February 14, 2009
755 * Moose::Util::TypeConstraints
756 - Added the RoleName type (stevan)
757 - added tests for this (stevan)
759 * Moose::Cookbook::Basics::Recipe3
760 - Updated the before qw[left right] sub to be a little more
761 defensive about what it accepts (stevan)
762 - added more tests to t/000_recipies/basics/003_binary_tree.t
766 - We now always call DEMOLISHALL, even if a class does not
767 define DEMOLISH. This makes sure that method modifiers on
768 DEMOLISHALL work as expected. (doy)
769 - added tests for this (EvanCarroll)
771 * Moose::Util::MetaRole
772 - Accept roles for the wrapped_method_metaclass (rafl)
773 - added tests for this (rafl)
775 * Moose::Meta::Attribute
776 - We no longer pass the meta-attribute object as a final
777 argument to triggers. This actually changed for inlined code a
778 while back, but the non-inlined version and the docs were
782 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
783 they require 0.11. (Dave Rolsky)
786 - Lots of small changes to the manual, cookbook, and
787 elsewhere. These were based on feedback from various
788 users, too many to list here. (Dave Rolsky)
790 0.69 Thu, February 12, 2009
792 - Make some keyword errors use throw_error instead of croak
793 since Moose::Exporter wraps keywords now (Sartak)
796 - Revised every recipe for style and clarity. Also moved some
797 documentation out of cookbook recipes and into Moose::Manual
798 pages. This work was funded as part of the Moose docs grant
799 from TPF. (Dave Rolsky)
801 * Moose::Meta::Method::Delegation
802 - If the attribute doing the delegation was not populated, the
803 error message did not specify the attribute name
806 0.68 Wed, February 4, 2009
808 - Many spelling, typo, and formatting fixes by daxim.
810 * Moose::Manual::Attributes
811 - The NAME section in the POD used "Attribute" so search.cpan
812 didn't resolve links from other documents properly.
814 * Moose::Meta::Method::Overriden
815 - Now properly spelled as Overridden. Thanks to daxim for
818 0.67 Tue, February 3, 2009
820 - Lots of little typo fixes and a few clarifications. Several
821 pages didn't have proper titles, and so weren't actually
822 visible on search.cpan.org. Thanks to hanekomu for a variety
823 of fixes and formatting improvements.
825 0.66 Tue, February 3, 2009
827 - This is a brand new, extensive manual for Moose. This aims to
828 provide a complete introduction to all of Moose's
829 features. This work was funded as part of the Moose docs grant
830 from TPF. (Dave Rolsky)
832 * Moose::Meta::Attribute
833 - Added a delegation_metaclass method to replace a hard-coded
834 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
836 * Moose::Util::TypeConstraints
837 - If you created a subtype and passed a parent that Moose didn't
838 know about, it simply ignored the parent. Now it automatically
839 creates the parent as a class type. This may not be what you
840 want, but is less broken than before. (Dave Rolsky)
842 * Moose::Util::TypeConstraints
843 - This module tried throw errors by calling Moose->throw_error,
844 but it did not ensure that Moose was loaded first. This could
845 cause very unhelpful errors when it tried to throw an error
846 before Moose was loaded. (Dave Rolsky)
848 * Moose::Util::TypeConstraints
849 - You could declare a name with subtype such as "Foo!Bar" that
850 would be allowed, but if you used it in a parameterized type
851 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
852 vetting on names created via the sugar functions, so that they
853 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
855 0.65 Thu, January 22, 2008
856 * Moose and Moose::Meta::Method::Overridden
857 - If an overridden method called super(), and then the
858 superclass's method (not overridden) _also_ called super(),
859 Moose went into an endless recursion loop. Test provided by
860 Chris Prather. (Dave Rolsky)
862 * Moose::Meta::TypeConstraint
863 - All methods are now documented. (gphat)
865 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
866 - Fixed some bogus failures that occurred because we tried to
867 validate filesystem paths in a very ad-hoc and
868 not-quite-correct way. (Dave Rolsky)
870 * Moose::Util::TypeConstraints
871 - Added maybe_type to exports. See docs for details. (rjbs)
874 - Added Moose::Util::TypeConstraints to the SEE ALSO
878 - Methods created via an attribute can now fulfill a "requires"
879 declaration for a role. (nothingmuch)
881 * Moose::Meta::Method::*
882 - Stack traces from inlined code will now report its line and
883 file as being in your class, as opposed to in Moose
886 0.64 Wed, December 31, 2008
887 * Moose::Meta::Method::Accessor
888 - Always inline predicate and clearer methods (Sartak)
890 * Moose::Meta::Attribute
891 - Support for parameterized traits (Sartak)
892 - verify_against_type_constraint method to avoid duplication
893 and enhance extensibility (Sartak)
896 - Tests (but no support yet) for parameterized traits (Sartak)
899 - Require Class::MOP 0.75+, which has the side effect of making
900 sure we work on Win32. (Dave Rolsky)
902 0.63 Mon, December 8, 2008
904 - Some small grammar tweaks and bug fixes in non-Moose example
907 0.62_02 Fri, December 5, 2008
908 * Moose::Meta::Role::Application::ToClass
909 - When a class does not provide all of a role's required
910 methods, the error thrown now mentions all of the missing
911 methods, as opposed to just the first one found. Requested by
912 Curtis Poe (RT #41119). (Dave Rolsky)
914 * Moose::Meta::Method::Constructor
915 - Moose will no longer inline a constructor for your class
916 unless it inherits its constructor from Moose::Object, and
917 will warn when it doesn't inline. If you want to force
918 inlining anyway, pass "replace_constructor => 1" to
919 make_immutable. Addresses RT #40968, reported by Jon
920 Swartz. (Dave Rolsky)
921 - The quoting of default values could be broken if the default
922 contained a single quote ('). Now we use quotemeta to escape
923 anything potentially dangerous in the defaults. (Dave Rolsky)
925 0.62_01 Wed, December 3, 2008
927 - use the method->execute API for BUILDALL
928 and DEMOLISHALL (Sartak)
930 * Moose::Util::TypeConstraints
931 - We now make all the type constraint meta classes immutable
932 before creating the default types provided by Moose. This
933 should make loading Moose a little faster. (Dave Rolsky)
935 0.62 Wed November 26, 2008
936 * Moose::Meta::Role::Application::ToClass
937 Moose::Meta::Role::Application::ToRole
938 - fixed issues where excluding and aliasing the
939 same methods for a single role did not work
940 right (worked just fine with multiple
942 - added test for this (stevan)
944 * Moose::Meta::Role::Application::RoleSummation
945 - fixed the error message when trying to compose
946 a role with a role it excludes (Sartak)
949 - Catch another case where recursion caused the value
950 of $CALLER to be stamped on (t0m)
951 - added test for this (t0m)
954 - Remove the make_immutable keyword, which has been
955 deprecated since April. It breaks metaclasses that
956 use Moose without no Moose (Sartak)
958 * Moose::Meta::Attribute
959 - Removing an attribute from a class now also removes delegation
960 (handles) methods installed for that attribute (t0m)
961 - added test for this (t0m)
963 * Moose::Meta::Method::Constructor
964 - An attribute with a default that looked like a number (but was
965 really a string) would accidentally be treated as a number
966 when the constructor was made immutable (perigrin)
967 - added test for this (perigrin)
970 - create method for constructing a role
972 - added test for this (Sartak)
973 - anonymous roles! (Sartak)
974 - added test for this (Sartak)
977 - more consistent error messages (Sartak)
979 * Moose::Cookbook::Roles::Recipe1
980 - attempt to explain why a role that just requires
981 methods is useful (Sartak)
983 0.61 Fri November 7, 2008
984 * Moose::Meta::Attribute
985 - When passing a role to handles, it will be loaded if necessary
989 - Method objects returned by get_method (and other methods)
990 Could end up being returned without an associated_metaclass
991 attribute. Removing get_method_map, which is provided by
992 Class::MOP::Class, fixed this. The Moose version did nothing
993 different from its parent except introduce a bug. (Dave Rolsky)
994 - added tests for this (jdv79)
997 - Added a $VERSION to all .pm files which didn't have one. Fixes
998 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1000 * Moose::Cookbook::Basics::Recipe4
1001 * Moose::Cookbook::Basics::Recipe6
1002 - These files had spaces on the first line of the SYNOPSIS, as
1003 opposed to a totally empty line. According to RT #40432, this
1004 confuses POD parsers. (Dave Rolsky)
1006 0.60 Fri October 24, 2008
1008 - Passing "-traits" when loading Moose caused the Moose.pm
1009 exports to be broken. Reported by t0m. (Dave Rolsky)
1010 - Tests for this bug. (t0m)
1013 - Change resolve_metaclass alias to use the new
1014 load_first_existing_class function. This makes it a lot
1015 simpler, and also around 5 times faster. (t0m)
1016 - Add caching to resolve_metaclass_alias, which gives an order
1017 of magnitude speedup to things which repeatedly call the
1018 Moose::Meta::Attribute->does method, notably MooseX::Storage
1021 * Moose::Util::TypeConstraint
1022 - Put back the changes for parameterized constraints that
1023 shouldn't have been removed in 0.59. We still cannot parse
1024 them, but MooseX modules can create them in some other
1025 way. See the 0.58 changes for more details. (jnapiorkowski)
1026 - Changed the way subtypes are created so that the job is
1027 delegated to a type constraint parent. This clears up some
1028 hardcoded checking and should allow correct subtypes of
1029 Moose::Meta::Type::Constraint. Don't rely on this new API too
1030 much (create_child_type) because it may go away in the
1031 future. (jnapiorkowski)
1033 * Moose::Meta::TypeConstraint::Union
1034 - Type constraint names are sorted as strings, not numbers.
1037 * Moose::Meta::TypeConstraint::Parameterizable
1038 - New parameterize method. This can be used as a factory method
1039 to make a new type constraint with a given parameterized
1040 type. (jnapiorkowski)
1041 - added tests (jnapiorkowski)
1043 0.59 Tue October 14, 2008
1045 - Add abridged documentation for builder/default/initializer/
1046 predicate, and link to more details sections in
1047 Class::MOP::Attribute. (t0m)
1049 * Moose::Util::TypeConstraints
1050 - removed prototypes from all but the &-based stuff (mst)
1052 * Moose::Util::TypeConstraints
1053 - Creating a anonymous subtype with both a constraint and a
1054 message failed with a very unhelpful error, but should just
1055 work. Reported by t0m. (Dave Rolsky)
1058 - Some tests that used Test::Warn if it was available failed
1059 with older versions of Test::Warn. Reported by Fayland. (Dave
1061 - Test firing behavior of triggers in relation to builder/default/
1063 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1064 kinds of supported type. (t0m)
1066 * Moose::Meta::Class
1067 - In create(), do not pass "roles" option to the superclass
1068 - added related test that creates an anon metaclass with
1069 a required attribute
1071 * Moose::Meta::TypeConstraint::Class
1072 * Moose::Meta::TypeConstraint::Role
1073 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1074 other types (as per change in 0.55_02). (t0m)
1076 * Moose::Meta::TypeConstraint::Registry
1077 - Fix warning when dealing with unknown type names (t0m)
1079 * Moose::Util::TypeConstraints
1080 - Reverted changes from 0.58 related to handle parameterized
1081 types. This caused random failures on BSD and Win32 systems,
1082 apparently related to the regex engine. This means that Moose
1083 can no longer parse structured type constraints like
1084 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1085 supported in a slightly different way via MooseX::Types some
1086 time in the future. (Dave Rolsky)
1088 0.58 Sat September 20, 2008
1089 !! This release has an incompatible change regarding !!
1090 !! how roles add methods to a class !!
1092 * Roles and role application
1093 ! Roles now add methods by calling add_method, not
1094 alias_method. They make sure to always provide a method
1095 object, which will be cloned internally. This means that it is
1096 now possible to track the source of a method provided by a
1097 role, and even follow its history through intermediate roles.
1099 This means that methods added by a role now show up when
1100 looking at a class's method list/map. (Dave Rolsky)
1103 - From this release on, we'll try to maintain a list of
1104 conflicting modules, and warn you if you have one
1105 installed. For example, this release conflicts with ...
1106 - MooseX::Singleton <= 0.11
1107 - MooseX::Params::Validate <= 0.05
1110 In general, we try to not break backwards compatibility for
1111 most Moose users, but MooseX modules and other code which
1112 extends Moose's metaclasses is often affected by very small
1113 changes in the Moose internals.
1115 * Moose::Meta::Method::Delegation
1116 * Moose::Meta::Attribute
1117 - Delegation methods now have their own method class. (Dave
1120 * Moose::Meta::TypeConstraint::Parameterizable
1121 - Added a new method 'parameterize' which is basically a factory
1122 for the containing constraint. This makes it easier to create
1123 new types of parameterized constraints. (jnapiorkowski)
1125 * Moose::Meta::TypeConstraint::Union
1126 - Changed the way Union types canonicalize their names to follow
1127 the normalized TC naming rules, which means we strip all
1128 whitespace. (jnapiorkowski)
1130 * Moose::Util::TypeConstraints
1131 - Parameter and Union args are now sorted, this makes Int|Str
1132 the same constraint as Str|Int. (jnapiorkowski)
1133 - Changes to the way Union types are parsed to more correctly
1134 stringify their names. (jnapiorkowski)
1135 - When creating a parameterized type, we now use the new
1136 parameterize method. (jnapiorkowski)
1137 - Incoming type constraint strings are now normalized to remove
1138 all whitespace differences. (jnapiorkowski)
1139 - Changed the way we parse type constraint strings so that we now
1140 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1141 constraints. This lays the foundation for more flexible type
1142 constraint implementations.
1144 * Tests and docs for all the above. (jnapiorkowski)
1148 - Moose::Exporter will no longer remove a subroutine that the
1149 exporting package re-exports. Moose re-exports the
1150 Carp::confess function, among others. The reasoning is that we
1151 cannot know whether you have also explicitly imported those
1152 functions for your own use, so we err on the safe side and
1153 always keep them. (Dave Rolsky)
1154 - added tests for this (rafl)
1156 * Moose::Meta::Class
1157 - Changes to how we fix metaclass compatibility that are much
1158 too complicated to go into. The summary is that Moose is much
1159 less likely to complain about metaclass incompatibility
1160 now. In particular, if two metaclasses differ because
1161 Moose::Util::MetaRole was used on the two corresponding
1162 classes, then the difference in roles is reconciled for the
1163 subclass's metaclass. (Dave Rolsky)
1164 - Squashed an warning in _process_attribute (thepler)
1167 - throw exceptions (sooner) for invalid attribute names (thepler)
1168 - added tests for this (thepler)
1170 * Moose::Util::MetaRole
1171 - If you explicitly set a constructor or destructor class for a
1172 metaclass object, and then applied roles to the metaclass,
1173 that explicitly set class would be lost and replaced with the
1176 * Moose::Meta::Class
1177 * Moose::Meta::Attribute
1178 * Moose::Meta::Method
1181 * Moose::Error::Default
1182 * Moose::Error::Croak
1183 * Moose::Error::Confess
1184 - All instances of confess() changed to use overridable
1185 C<throw_error> method. This method ultimately calls a class
1186 constructor, and you can change the class being called. In
1187 addition, errors now pass more information than just a string.
1188 The default C<error_class> behaves like C<Carp::confess>, so
1189 the behavior is not visibly different for end users.
1191 0.57 Wed September 3, 2008
1193 - A new bit of doc intended to introduce folks familiar with
1194 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1196 * Moose::Unsweetened
1197 - Shows examples of two classes, each done first with and then
1198 without Moose. This makes a nice parallel to
1199 Moose::Intro. (Dave Rolsky)
1201 * Moose::Util::TypeConstraints
1202 - Fixed a bug in find_or_parse_type_constraint so that it
1203 accepts a Moose::Meta::TypeConstraint object as the parent
1204 type, not just a name (jnapiorkowski)
1205 - added tests (jnapiorkowski)
1208 - If Sub::Name was not present, unimporting failed to actually
1209 remove some sugar subs, causing test failures (Dave Rolsky)
1211 0.56 Mon September 1, 2008
1212 For those not following the series of dev releases, there are
1213 several major changes in this release of Moose.
1214 ! Moose::init_meta should now be called as a method. See the
1217 - Major performance improvements by nothingmuch.
1219 - New modules for extension writers, Moose::Exporter and
1220 Moose::Util::MetaRole by Dave Rolsky.
1222 - Lots of doc improvements and additions, especially in the
1225 - Various bug fixes.
1227 * Removed all references to the experimental-but-no-longer-needed
1228 Moose::Meta::Role::Application::ToMetaclassInstance.
1230 * Require Class::MOP 0.65.
1232 0.55_04 Sat August 30, 2008
1233 * Moose::Util::MetaRole
1234 * Moose::Cookbook::Extending::Recipe2
1235 - This simplifies the application of roles to any meta class, as
1236 well as the base object class. Reimplemented metaclass traits
1237 using this module. (Dave Rolsky)
1239 * Moose::Cookbook::Extending::Recipe1
1240 - This a new recipe, an overview of various ways to write Moose
1241 extensions (Dave Rolsky)
1243 * Moose::Cookbook::Extending::Recipe3
1244 * Moose::Cookbook::Extending::Recipe4
1245 - These used to be Extending::Recipe1 and Extending::Recipe2,
1248 0.55_03 Fri August 29, 2008
1249 * No changes from 0.55_02 except increasing the Class::MOP
1250 dependency to 0.64_07.
1252 0.55_02 Fri August 29, 2008
1253 * Makefile.PL and Moose.pm
1254 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1256 * Moose::Util::TypeConstraints
1257 - Fix warnings from find_type_constraint if the type is not
1260 * Moose::Meta::TypeConstraint
1261 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1262 return false if the type you specify cannot be found in the
1263 type registry, rather than throwing an unhelpful and
1264 coincidental exception. (t0m).
1265 - added docs & test for this (t0m)
1267 * Moose::Meta::TypeConstraint::Registry
1268 - add_type_constraint now throws an exception if a parameter is
1270 - added docs & test for this (t0m)
1272 * Moose::Cookbook::FAQ
1273 - Added a faq entry on the difference between "role" and "trait"
1277 - Fixed a bug that caused role composition to not see a required
1278 method when that method was provided by another role being
1279 composed at the same time. (Dave Rolsky)
1280 - test and bug finding (tokuhirom)
1282 0.55_01 Wed August 20, 2008
1284 !! Calling Moose::init_meta as a function is now !!
1285 !! deprecated. Please see the Moose.pm docs for details. !!
1287 * Moose::Meta::Method::Constructor
1288 - Fix inlined constructor so that values produced by default
1289 or builder methods are coerced as required. (t0m)
1290 - added test for this (t0m)
1292 * Moose::Meta::Attribute
1293 - A lazy attribute with a default or builder did not attempt to
1294 coerce the default value. The immutable code _did_
1296 - added test for this (t0m)
1299 - This is a new helper module for writing "Moose-alike"
1300 modules. This should make the lives of MooseX module authors
1301 much easier. (Dave Rolsky)
1304 * Moose::Cookbook::Meta::Recipe5
1305 - Implemented metaclass traits (and wrote a recipe for it):
1307 use Moose -traits => 'Foo'
1309 This should make writing small Moose extensions a little
1310 easier (Dave Rolsky)
1312 * Moose::Cookbook::Basics::Recipe1
1313 - Removed any examples of direct hashref access, and applied an
1314 editorial axe to reduce verbosity. (Dave Rolsky)
1316 * Moose::Cookbook::Basics::Recipe1
1317 - Also applied an editorial axe here. (Dave Rolsky)
1320 * Moose::Cookbook::Extending::Recipe1
1321 * Moose::Cookbook::Extending::Recipe2
1322 - Rewrote extending and embedding moose documentation and
1323 recipes to use Moose::Exporter (Dave Rolsky)
1327 - These two modules now warn when you load them from the main
1328 package "main" package, because we will not export sugar to
1329 main. Previously it just did nothing. (Dave Rolsky)
1332 - Now provide an init_meta method just like Moose.pm, and you
1333 can call this to provide an alternate role metaclass. (Dave
1334 Rolsky and nothingmuch)
1335 - get_method_map now respects the package cache flag (nothingmuch)
1338 - Two new methods - add_method and wrap_method_body
1342 - Optimizations including allowing constructors to accept hash
1343 refs, making many more classes immutable, and making
1344 constructors immutable. (nothingmuch)
1346 0.55 Sun August 3, 2008
1347 * Moose::Meta::Attribute
1348 - breaking down the way 'handles' methods are
1349 created so that the process can be more easily
1350 overridden by subclasses (stevan)
1352 * Moose::Meta::TypeConstraint
1353 - fixing what is passed into a ->message with
1354 the type constraints (RT #37569)
1355 - added tests for this (Charles Alderman)
1357 * Moose::Util::TypeConstraints
1358 - fix coerce to accept anon types like subtype can (mst)
1361 - reorganized the recipes into sections - Basics, Roles, Meta,
1362 Extending - and wrote abstracts for each section (Dave Rolsky)
1364 * Moose::Cookbook::Basics::Recipe10
1365 - A new recipe that demonstrates operator overloading
1366 in combination with Moose. (bluefeet)
1368 * Moose::Cookbook::Meta::Recipe1
1369 - an introduction to what meta is and why you'd want to make
1370 your own metaclass extensions (Dave Rolsky)
1372 * Moose::Cookbook::Meta::Recipe4
1373 - a very simple metaclass example (Dave Rolsky)
1375 * Moose::Cookbook::Extending::Recipe1
1376 - how to write a Moose-alike module to use your own object base
1379 * Moose::Cookbook::Extending::Recipe2
1380 - how to write modules with an API just like C<Moose.pm> (Dave
1384 - Tons of fixes, both syntactical and grammatical (Dave
1385 Rolsky, Paul Fenwick)
1387 0.54 Thurs. July 3, 2008
1388 ... this is not my day today ...
1390 * Moose::Meta::Attribute
1391 - fixed legal_options_for_inheritance such that
1392 clone_and_inherit options still works for
1393 Class::MOP::Attribute objects and therefore
1394 does not break MooseX::AttributeHelpers
1397 0.53 Thurs. July 3, 2008
1398 * Whoops, I guess I should run 'make manifest' before
1399 actually releasing the module. No actual changes
1400 in this release, except the fact that it includes
1401 the changes that I didn't include in the last
1404 0.52 Thurs. July 3, 2008
1406 - added "FEATURE REQUESTS" section to the Moose docs
1407 to properly direct people (stevan) (RT #34333)
1408 - making 'extends' croak if it is passed a Role since
1409 this is not ever something you want to do
1410 (fixed by stevan, found by obra)
1411 - added tests for this (stevan)
1414 - adding support for DOES (as in UNIVERSAL::DOES)
1416 - added test for this
1418 * Moose::Meta::Attribute
1419 - added legal_options_for_inheritance (wreis)
1420 - added tests for this (wreis)
1422 * Moose::Cookbook::Snacks::*
1423 - removed some of the unfinished snacks that should
1424 not have been released yet. Added some more examples
1425 to the 'Keywords' snack. (stevan)
1427 * Moose::Cookbook::Style
1428 - added general Moose "style guide" of sorts to the
1429 cookbook (nothingmuch) (RT #34335)
1432 - added more BUILDARGS tests (stevan)
1434 0.51 Thurs. Jun 26, 2008
1436 - add unimport so "no Moose::Role" actually does
1439 * Moose::Meta::Role::Application::ToRole
1440 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1441 order to provide its own implementation, that method still got
1442 added to the list of required methods for consumers of
1443 RoleB. Now an aliased method is only added to the list of
1444 required methods if the role doing the aliasing does not
1445 provide its own implementation. See Recipe 11 for an example
1446 of all this. (Dave Rolsky)
1447 - added tests for this
1449 * Moose::Meta::Method::Constructor
1450 - when a single argument that wasn't a hashref was provided to
1451 an immutabilized constructor, the error message was very
1452 unhelpful, as opposed to the non-immutable error. Reported by
1454 - added test for this (Dave Rolsky)
1456 * Moose::Meta::Attribute
1457 - added support for meta_attr->does("ShortAlias") (sartak)
1458 - added tests for this (sartak)
1459 - moved the bulk of the `handles` handling to the new
1460 install_delegation method (Stevan)
1463 - Added BUILDARGS, a new step in new()
1465 * Moose::Meta::Role::Application::RoleSummation
1466 - fix typos no one ever sees (sartak)
1468 * Moose::Util::TypeConstraints
1469 * Moose::Meta::TypeConstraint
1470 * Moose::Meta::TypeCoercion
1471 - Attempt to work around the ??{ } vs. threads issue
1473 - Some null_constraint optimizations
1475 0.50 Thurs. Jun 11, 2008
1476 - Fixed a version number issue by bumping all modules
1479 0.49 Thurs. Jun 11, 2008
1480 !! This version now approx. 20-25% !!
1481 !! faster with new Class::MOP 0.59 !!
1483 * Moose::Meta::Attribute
1484 - fixed how the is => (ro|rw) works with
1485 custom defined reader, writer and accessor
1487 - added docs for this (TODO).
1488 - added tests for this (Thanks to Penfold)
1489 - added the custom attribute alias for regular
1490 Moose attributes which is "Moose"
1491 - fix builder and default both being used
1496 Moose::Meta::Attribute
1498 Moose::Meta::Role::Composite
1499 Moose::Util::TypeConstraints
1500 - switched usage of reftype to ref because
1504 - changing add_package_symbol to use the new
1508 - fixed how DEMOLISHALL is called so that it
1509 can be overrided in subclasses (thanks to Sartak)
1510 - added test for this (thanks to Sartak)
1512 * Moose::Util::TypeConstraints
1513 - move the ClassName type check code to
1514 Class::MOP::is_class_loaded (thanks to Sartak)
1516 * Moose::Cookbook::Recipe11
1517 - add tests for this (thanks to tokuhirom)
1519 0.48 Thurs. May 29, 2008
1520 (early morning release engineering)--
1522 - fixing the version in Moose::Meta::Method::Destructor
1523 which was causing the indexer to choke
1525 0.47 Thurs. May 29, 2008
1526 (late night release engineering)--
1528 - fixing the version is META.yml, no functional
1529 changes in this release
1531 0.46 Wed. May 28, 2008
1532 !! This version now approx. 20-25% !!
1533 !! faster with new Class::MOP 0.57 !!
1535 * Moose::Meta::Class
1536 - some optimizations of the &initialize method
1537 since it is called so often by &meta
1539 * Moose::Meta::Class
1541 - now use the get_all_package_symbols from the
1542 updated Class::MOP, test suite is now 10 seconds
1545 * Moose::Meta::Method::Destructor
1546 - is_needed can now also be called as a class
1547 method for immutablization to check if the
1548 destructor object even needs to be created
1551 * Moose::Meta::Method::Destructor
1552 Moose::Meta::Method::Constructor
1553 - added more descriptive error message to help
1554 keep people from wasting time tracking an error
1555 that is easily fixed by upgrading.
1557 0.45 Saturday, May 24, 2008
1559 - Because of work in Class::MOP 0.57, all
1560 XS based functionality is now optional
1561 and a Pure Perl version is supplied
1562 - the CLASS_MOP_NO_XS environment variable
1563 can now be used to force non-XS versions
1565 - several of the packages have been tweaked
1566 to take care of this, mostly we added
1567 support for the package_name and name
1568 variables in all the Method metaclasses
1569 - before/around/after method modifiers now
1570 support regexp matching of names
1571 (thanks to Takatoshi Kitano)
1572 - tests added for this
1573 - NOTE: this only works for classes, it
1574 is currently not supported in roles,
1575 but, ... patches welcome
1576 - All usage of Carp::confess have been replaced
1577 by Carp::croak in the "keyword" functions since
1578 the stack trace is usually not helpful
1581 - All usage of Carp::confess have been replaced
1582 by Carp::croak in the "keyword" functions since
1583 the stack trace is usually not helpful
1584 - The 'has' keyword for roles now accepts the
1585 same array ref form that Moose.pm does
1586 (has [qw/foo bar/] => (is => 'rw', ...))
1587 - added test for this
1589 * Moose::Meta::Attribute
1590 - trigger on a ro-attribute is no longer an
1591 error, as it's useful to trigger off of the
1594 * Moose::Meta::Class
1595 - added same 'add_package_symbol' fix as in
1599 - does_role now handles non-Moose classes
1601 - added tests for this
1602 - added the 'add_method_modifier' function
1603 (thanks to Takatoshi Kitano)
1605 * Moose::Util::TypeConstraints
1606 - subtypes of parameterizable types now are
1607 themselves parameterizable types
1609 * Moose::Meta::Method::Constructor
1610 - fixed bug where trigger was not being
1611 called by the inlined immutable
1613 - added test for this (thanks to Caelum)
1615 * Moose::Meta::Role::Application::ToInstance
1616 - now uses the metaclass of the instance
1617 (if possible) to create the anon-class
1618 (thanks Jonathan Rockway)
1620 * Moose::Cookbook::Recipe22
1621 - added the meta-attribute trait recipe
1625 - fixed hash-ordering test bug that was
1626 causing occasional cpantester failures
1627 - renamed the t/000_recipe/*.t tests to be
1628 more descriptive (thanks to Sartak)
1630 0.44 Sat. May 10, 2008
1632 - made make_immutable warning cluck to
1633 show where the error is (thanks mst)
1636 - BUILDALL and DEMOLISHALL now call
1637 ->body when looping through the
1638 methods, to avoid the overloaded
1640 - fixed issue where DEMOLISHALL was
1641 eating the $@ values, and so not
1642 working correctly, it still kind of
1643 eats them, but so does vanilla perl
1644 - added tests for this
1646 * Moose::Cookbook::Recipe7
1647 - added new recipe for immutable
1648 functionality (thanks Dave Rolsky)
1650 * Moose::Cookbook::Recipe9
1651 - added new recipe for builder and
1652 lazy_build (thanks Dave Rolsky)
1654 * Moose::Cookbook::Recipe11
1655 - added new recipe for method aliasing
1656 and exclusion with Roles (thanks Dave Rolsky)
1659 - fixed Win32 test failure (thanks spicyjack)
1661 ~ removed Build.PL and Module::Build compat
1662 since Module::Install has done that.
1664 0.43 Wed. April, 30, 2008
1666 drink more coffee before
1667 doing release engineering
1669 - whoops, forgot to do the smolder tests,
1670 and we broke some of the custom meta-attr
1671 modules. This fixes that.
1673 0.42 Mon. April 28, 2008
1674 - some bad tests slipped by, nothing else
1675 changed in this release (cpantesters++)
1677 - upped the Class::MOP dependency to 0.55
1678 since we have tests which need the C3
1681 0.41 Mon. April 28, 2008
1682 ~~ numerous documentation updates ~~
1684 - Changed all usage of die to Carp::croak for better
1685 error reporting (initial patch by Tod Hagan)
1687 ** IMPORTANT NOTE **
1688 - the make_immutable keyword is now deprecated, don't
1689 use it in any new code and please fix your old code
1690 as well. There will be 2 releases, and then it will
1696 - refactored the way inner and super work to avoid
1697 any method/@ISA cache penalty (nothingmuch)
1699 * Moose::Meta::Class
1700 - fixing &new_object to make sure trigger gets the
1701 coerced value (spotted by Charles Alderman on the
1703 - added test for this
1705 * Moose::Meta::Method::Constructor
1706 - immutable classes which had non-lazy attributes were calling
1707 the default generating sub twice in the constructor. (bug
1708 found by Jesse Luehrs, fixed by Dave Rolsky)
1709 - added tests for this (Dave Rolsky)
1710 - fix typo in initialize_body method (nothingmuch)
1712 * Moose::Meta::Method::Destructor
1713 - fix typo in initialize_body method (nothingmuch)
1715 * Moose::Meta::Method::Overriden
1716 Moose::Meta::Method::Augmented
1717 - moved the logic for these into their own
1718 classes (nothingmuch)
1720 * Moose::Meta::Attribute
1721 - inherited attributes may now be extended without
1722 restriction on the type ('isa', 'does') (Sartak)
1723 - added tests for this (Sartak)
1724 - when an attribute property is malformed (such as lazy without
1725 a default), give the name of the attribute in the error
1727 - added the &applied_traits and &has_applied_traits methods
1728 to allow introspection of traits
1729 - added tests for this
1730 - moved 'trait' and 'metaclass' argument handling to here from
1732 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1733 '+foo' syntax) (nothingmuch)
1734 - added tests for this (t0m)
1737 - localize $@ inside DEMOLISHALL to avoid it
1738 eating $@ (found by Ernesto)
1739 - added test for this (thanks to Ernesto)
1741 * Moose::Util::TypeConstraints
1742 - &find_type_constraint now DWIMs when given an
1743 type constraint object or name (nothingmuch)
1744 - &find_or_create_type_constraint superseded with a number of more
1746 - find_or_create_{isa,does}_type_constraint
1747 - find_or_parse_type_constraint
1749 * Moose::Meta::TypeConstraint
1750 Moose::Meta::TypeConstraint::Class
1751 Moose::Meta::TypeConstraint::Role
1752 Moose::Meta::TypeConstraint::Enum
1753 Moose::Meta::TypeConstraint::Union
1754 Moose::Meta::TypeConstraint::Parameterized
1755 - added the &equals method for comparing two type
1756 constraints (nothingmuch)
1757 - added tests for this (nothingmuch)
1759 * Moose::Meta::TypeConstraint
1760 - add the &parents method, which is just an alias to &parent.
1761 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1763 * Moose::Meta::TypeConstraint::Class
1764 - added the class attribute for introspection purposes
1766 - added tests for this
1768 * Moose::Meta::TypeConstraint::Enum
1769 Moose::Meta::TypeConstraint::Role
1770 - broke these out into their own classes (nothingmuch)
1772 * Moose::Cookbook::Recipe*
1773 - fixed references to test file locations in the POD
1774 and updated up some text for new Moose features
1778 - Added &resolve_metaclass_alias, a helper function for finding an actual
1779 class for a short name (e.g. in the traits list)
1781 0.40 Fri. March 14, 2008
1782 - I hate Pod::Coverage
1784 0.39 Fri. March 14, 2008
1786 - documenting the use of '+name' with attributes
1787 that come from recently composed roles. It makes
1788 sense, people are using it, and so why not just
1789 officially support it.
1790 - fixing the 'extends' keyword so that it will not
1791 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1794 - added the perl -Moose=+Class::Name feature to allow
1795 monkeypatching of classes in one liners
1798 - fixing the 'apply_all_roles' keyword so that it will not
1799 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1801 * Moose::Meta::Class
1802 - added ->create method which now supports roles (thanks to jrockway)
1803 - added tests for this
1804 - added ->create_anon_class which now supports roles and caching of
1805 the results (thanks to jrockway)
1806 - added tests for this
1807 - made ->does_role a little more forgiving when it is
1808 checking a Class::MOP era metaclasses.
1810 * Moose::Meta::Role::Application::ToInstance
1811 - it is now possible to pass extra params to be used when
1812 a role is applied to an the instance (rebless_params)
1813 - added tests for this
1815 * Moose::Util::TypeConstraints
1816 - class_type now accepts an optional second argument for a
1817 custom message. POD anotated accordingly (groditi)
1818 - added tests for this
1819 - it is now possible to make anon-enums by passing 'enum' an
1820 ARRAY ref instead of the $name => @values. Everything else
1822 - added tests for this
1825 - making test for using '+name' on attributes consumed
1826 from a role, it works and makes sense too.
1828 * Moose::Meta::Attribute
1829 - fix handles so that it doesn't return nothing
1830 when the method cannot be found, not sure why
1831 it ever did this originally, this means we now
1832 have slightly better support for AUTOLOADed
1834 - added more delegation tests
1835 - adding ->does method to this so as to better
1836 support traits and their introspection.
1837 - added tests for this
1840 - localizing the Data::Dumper configurations so
1841 that it does not pollute others (RT #33509)
1842 - made ->does a little more forgiving when it is
1843 passed Class::MOP era metaclasses.
1845 0.38 Fri. Feb. 15, 2008
1846 * Moose::Meta::Attribute
1847 - fixed initializer to correctly do
1848 type checking and coercion in the
1850 - added tests for this
1853 - fixed some finicky tests (thanks to konobi)
1855 0.37 Thurs. Feb. 14, 2008
1857 - fixed some details in Moose::init_meta
1858 and its superclass handling (thanks thepler)
1859 - added tests for this (thanks thepler)
1860 - 'has' now dies if you don't pass in name
1862 - added the 'make_immutable' keyword as a shortcut
1865 * Moose::Meta::Class
1866 Moose::Meta::Method::Constructor
1867 Moose::Meta::Attribute
1868 - making (init_arg => undef) work here too
1869 (thanks to nothingmuch)
1871 * Moose::Meta::Attribute
1872 Moose::Meta::Method::Constructor
1873 Moose::Meta::Method::Accessor
1874 - make lazy attributes respect attr initializers (rjbs)
1875 - added tests for this
1877 * Moose::Util::TypeConstraints
1878 Moose::Util::TypeConstraints::OptimizedConstraints
1879 Moose::Meta::TypeConstraints
1880 Moose::Meta::Attribute
1881 Moose::Meta::Method::Constructor
1882 Moose::Meta::Method::Accessor
1883 - making type errors use the
1884 assigned message (thanks to Sartak)
1885 - added tests for this
1887 * Moose::Meta::Method::Destructor
1888 - making sure DESTROY gets inlined properly
1889 with successive DEMOLISH calls (thanks to manito)
1891 * Moose::Meta::Attribute
1892 Moose::Meta::Method::Accessor
1893 - fixed handling of undef with type constraints
1895 - added tests for this
1898 - added &get_all_init_args and &get_all_attribute_values
1899 (thanks to Sartak and nothingmuch)
1901 0.36 Sat. Jan. 26, 2008
1903 Moose::Meta::Attribute
1904 - role type tests now support when roles are
1905 applied to non-Moose classes (found by ash)
1906 - added tests for this (thanks to ash)
1907 - couple extra tests to boost code coverage
1909 * Moose::Meta::Method::Constructor
1910 - improved fix for handling Class::MOP attributes
1911 - added test for this
1913 * Moose::Meta::Class
1914 - handled the add_attribute($attribute_meta_object)
1916 - added test for this
1918 0.35 Tues. Jan. 22, 2008
1919 * Moose::Meta::Method::Constructor
1920 - fix to make sure even Class::MOP attributes
1921 are handled correctly (Thanks to Dave Rolsky)
1922 - added test for this (also Dave Rolsky)
1924 * Moose::Meta::Class
1925 - improved error message on _apply_all_roles,
1926 you should now use Moose::Util::apply_all_roles
1927 and you shouldnt have been using a _ prefixed
1928 method in the first place ;)
1930 0.34 Mon. Jan. 21, 2008
1931 ~~~ more misc. doc. fixes ~~~
1932 ~~ updated copyright dates ~~
1934 Moose is now a postmodern object system :)
1935 - (see the POD for details)
1937 * <<Role System Refactoring>>
1938 - this release contains a major reworking and
1939 cleanup of the role system
1940 - 100% backwards compat.
1941 - Role application now restructured into seperate
1942 classes based on type of applicants
1943 - Role summation (combining of more than one role)
1944 is much cleaner and anon-classes are no longer
1945 used in this process
1946 - new Composite role metaclass
1947 - runtime application of roles to instances
1948 is now more efficient and re-uses generated
1949 classes when applicable
1951 * <<New Role composition features>>
1952 - methods can now be excluded from a given role
1954 - methods can now be aliased to another name (and
1955 still retain the original as well)
1957 * Moose::Util::TypeConstraints::OptimizedConstraints
1958 - added this module (see above)
1960 * Moose::Meta::Class
1961 - fixed the &_process_attribute method to be called
1962 by &add_attribute, so that the API is now correct
1964 * Moose::Meta::Method::Accessor
1965 - fixed bug when passing a list of values to
1966 an accessor would get (incorrectly) ignored.
1967 Thanks to Sartak for finding this ;)
1968 - added tests for this (Sartak again)
1970 * Moose::Meta::Method::Accessor
1971 Moose::Meta::Method::Constructor
1972 Moose::Meta::Attribute
1973 Moose::Meta::TypeConstraint
1974 Moose::Meta::TypeCoercion
1975 - lots of cleanup of such things as:
1977 - type constraint handling
1978 - error handling/messages
1979 (thanks to nothingmuch)
1981 * Moose::Meta::TypeConstraint::Parameterizable
1982 - added this module to support the refactor
1983 in Moose::Meta::TypeConstraint::Parameterized
1985 * Moose::Meta::TypeConstraint::Parameterized
1986 - refactored how these types are handled so they
1987 are more generic and not confined to ArrayRef
1991 - shortened some file names for better VMS support (RT #32381)
1993 0.33 Fri. Dec. 14, 2007
1994 !! Moose now loads 2 x faster !!
1995 !! with new Class::MOP 0.49 !!
1997 ++ new oose.pm module to make command line
1998 Moose-ness easier (see POD docs for more)
2000 * Moose::Meta::Class
2002 - several tweaks to take advantage of the
2003 new method map caching in Class::MOP
2005 * Moose::Meta::TypeConstraint::Parameterized
2006 - allow subtypes of ArrayRef and HashRef to
2007 be used as a container (sartak)
2008 - added tests for this
2009 - basic support for coercion to ArrayRef and
2010 HashRef for containers (sartak)
2011 - added tests for this
2013 * Moose::Meta::TypeCoercion
2014 - coercions will now create subtypes as needed
2015 so you can now add coercions to parameterized
2016 types without having to explictly define them
2017 - added tests for this
2019 * Moose::Meta::Method::Accessor
2020 - allow subclasses to decide whether we need
2021 to copy the value into a new variable (sartak)
2023 0.32 Tues. Dec. 4, 2007
2024 * Moose::Util::TypeConstraints
2025 - fixing how subtype aliases of unions work
2026 they should inherit the parent's coercion
2027 - added tests for this
2028 - you can now define multiple coercions on
2029 a single type at different times instead of
2030 having to do it all in one place
2031 - added tests for this
2033 * Moose::Meta::TypeConstraint
2034 - there is now a default constraint of sub { 1 }
2035 instead of Moose::Util::TypeConstraints setting
2038 * Moose::Meta::TypeCoercion
2039 * Moose::Meta::TypeCoercion::Union
2040 - added the &has_coercion_for_type and
2041 &add_type_coercions methods to support the
2042 new features above (although you cannot add
2043 more type coercions for Union types)
2045 0.31 Mon. Nov. 26, 2007
2046 * Moose::Meta::Attribute
2047 - made the +attr syntax handle extending types with
2048 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2049 now works if the original foo is an ArrayRef.
2050 - added tests for this.
2051 - delegation now works even if the attribute does not
2052 have a reader method using the get_read_method_ref
2053 method from Class::MOP::Attribute.
2054 - added tests for this
2055 - added docs for this
2057 * Moose::Util::TypeConstraints
2058 - passing no "additional attribute info" to
2059 &find_or_create_type_constraint will no longer
2060 attempt to create an __ANON__ type for you,
2061 instead it will just return undef.
2062 - added docs for this
2064 0.30 Fri. Nov. 23, 2007
2065 * Moose::Meta::Method::Constructor
2066 -builder related bug in inlined constructor. (groditi)
2068 * Moose::Meta::Method::Accessor
2069 - genereate unnecessary calls to predicates and refactor
2070 code generation for runtime speed (groditi)
2072 * Moose::Util::TypeConstraints
2073 - fix ClassName constraint to introspect symbol table (mst)
2074 - added more tests for this (mst)
2075 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2076 with work correctly.
2077 - added tests for this
2080 - adding the link to Recipie 11 (written by Sartak)
2081 - adding test for SYNOPSIS code
2084 - New tests for builder bug. Upon instantiation, if an
2085 attribute had a builder, no value and was not lazy the
2086 builder default was not getting run, oops. (groditi)
2088 0.29 Tues. Nov. 13, 2007
2089 * Moose::Meta::Attribute
2090 - Fix error message on missing builder method (groditi)
2092 * Moose::Meta::Method::Accessor
2093 - Fix error message on missing builder method (groditi)
2096 - Add test to check for the correct error message when
2097 builder method is missing (groditi)
2099 0.28 Tues. Nov. 13, 2007
2100 - 0.27 packaged incorrectly (groditi)
2102 0.27 Tues. Nov. 13, 2007
2103 * Moose::Meta::Attribute
2104 - Added support for the new builder option (groditi)
2105 - Added support for lazy_build option (groditi)
2106 - Changed slot initialization for predicate changes (groditi)
2108 * Moose::Meta::Method::Accessor
2109 - Added support for lazy_build option (groditi)
2110 - Fix inline methods to work with corrected predicate
2113 * Moose::Meta::Method::Constructor
2114 - Added support for lazy_build option (groditi)
2117 - tests for builder and lazy_build (groditi)
2119 * fixing some misc. bits in the docs that
2120 got mentioned on CPAN Forum & perlmonks
2123 - fixed how required methods are handled
2124 when they encounter overriden or modified
2125 methods from a class (thanks to confound).
2126 - added tests for this
2128 * Moose::Util::TypeConstraint
2129 - fixed the type notation parser so that
2130 the | always creates a union and so is
2131 no longer a valid type char (thanks to
2132 konobi, mugwump and #moose for working
2134 - added more tests for this
2136 0.26 Thurs. Sept. 27, 2007
2139 * Parameterized Types
2140 We now support parameterized collection types, such as:
2141 ArrayRef[Int] # array or integers
2142 HashRef[Object] # a hash with object values
2143 They can also be nested:
2144 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2145 And work with the type unions as well:
2146 ArrayRef[Int | Str] # array of integers of strings
2148 * Better Framework Extendability
2149 Moose.pm is now "extendable" such that it is now much
2150 easier to extend the framework and add your own keywords
2151 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2152 section of the Moose.pm docs.
2155 In an effort to begin documenting some of the various
2156 details of Moose as well as some common idioms, we have
2157 created Moose::Cookbook::Snacks as a place to find
2158 small (easily digestable) nuggets of Moose code.
2161 ~ Several doc updates/cleanup thanks to castaway ~
2163 - converted build system to use Module::Install instead of
2164 Module::Build (thanks to jrockway)
2167 - added all the meta classes to the immutable list and
2168 set it to inline the accessors
2169 - fix import to allow Sub::Exporter like { into => }
2170 and { into_level => } (perigrin)
2171 - exposed and documented init_meta() to allow better
2172 embedding and extending of Moose (perigrin)
2175 - complete re-organization of the test suite
2176 - added some new tests as well
2177 - finally re-enabled the Moose::POOP test since
2178 the new version of DBM::Deep now works again
2181 * Moose::Meta::Class
2182 - fixed very odd and very nasty recursion bug with
2184 - added tests for this (eilara)
2186 * Moose::Meta::Attribute
2187 Moose::Meta::Method::Constructor
2188 Moose::Meta::Method::Accessor
2189 - fixed issue with overload::Overloaded getting called
2190 on non-blessed items. (RT #29269)
2191 - added tests for this
2193 * Moose::Meta::Method::Accessor
2194 - fixed issue with generated accessor code making
2195 assumptions about hash based classes (thanks to dexter)
2197 * Moose::Coookbook::Snacks
2198 - these are bits of documentation, not quite as big as
2199 Recipes but which have no clear place in the module docs.
2200 So they are Snacks! (horray for castaway++)
2202 * Moose::Cookbook::Recipe4
2203 - updated it to use the new ArrayRef[MyType] construct
2204 - updated the accompanying test as well
2206 +++ Major Refactor of the Type Constraint system +++
2207 +++ with new features added as well +++
2209 * Moose::Util::TypeConstraint
2210 - no longer uses package variable to keep track of
2211 the type constraints, now uses the an instance of
2212 Moose::Meta::TypeConstraint::Registry to do it
2213 - added more sophisticated type notation parsing
2215 - added tests for this
2217 * Moose::Meta::TypeConstraint
2218 - some minor adjustments to make subclassing easier
2219 - added the package_defined_in attribute so that we
2220 can track where the type constraints are created
2222 * Moose::Meta::TypeConstraint::Union
2223 - this is now been refactored to be a subclass of
2224 Moose::Meta::TypeConstraint
2226 * Moose::Meta::TypeCoercion::Union
2227 - this has been added to service the newly refactored
2228 Moose::Meta::TypeConstraint::Union and is itself
2229 a subclass of Moose::Meta::TypeCoercion
2231 * Moose::Meta::TypeConstraint::Parameterized
2232 - added this module (taken from MooseX::AttributeHelpers)
2233 to help construct nested collection types
2234 - added tests for this
2236 * Moose::Meta::TypeConstraint::Registry
2237 - added this class to keep track of type constraints
2239 0.25 Mon. Aug. 13, 2007
2241 - Documentation update to reference Moose::Util::TypeConstraints
2242 under 'isa' in 'has' for how to define a new type
2243 (thanks to shlomif).
2245 * Moose::Meta::Attribute
2246 - required attributes now will no longer accept undef
2247 from the constructor, even if there is a default and lazy
2248 - added tests for this
2249 - default subroutines must return a value which passes the
2251 - added tests for this
2253 * Moose::Meta::Attribute
2254 * Moose::Meta::Method::Constructor
2255 * Moose::Meta::Method::Accessor
2256 - type-constraint tests now handle overloaded objects correctly
2257 in the error message
2258 - added tests for this (thanks to EvanCarroll)
2260 * Moose::Meta::TypeConstraint::Union
2261 - added (has_)hand_optimized_constraint to this class so that
2262 it behaves as the regular Moose::Meta::TypeConstraint does.
2265 - large refactoring of this code
2266 - added several more tests
2267 - tests for subtle conflict resolition issues
2268 added, but not currently running
2271 * Moose::Cookbook::Recipe7
2272 - added new recipe for augment/inner functionality
2274 - added test for this
2277 - a formal definition of roles (still in progress)
2280 - utilities for easier working with Moose classes
2281 - added tests for these
2284 - This contains Moose specific test functions
2285 - added tests for these
2287 0.24 Tues. July 3, 2007
2288 ~ Some doc updates/cleanup ~
2290 * Moose::Meta::Attribute
2291 - added support for roles to be given as parameters
2292 to the 'handles' option.
2293 - added tests and docs for this
2294 - the has '+foo' attribute form now accepts changes to
2295 the lazy option, and the addition of a handles option
2296 (but not changing the handles option)
2297 - added tests and docs for this
2300 - required methods are now fetched using find_method_by_name
2301 so that required methods can come from superclasses
2302 - adjusted tests for this
2304 0.23 Mon. June 18, 2007
2305 * Moose::Meta::Method::Constructor
2306 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2307 * Moose::Meta::Class
2308 - Modify make_immutable to work with the new Class::MOP immutable
2309 mechanism + POD + very basic test (groditi)
2310 * Moose::Meta::Attribute
2311 - Fix handles to use goto() so that caller() comes out properly on
2312 the other side (perigrin)
2314 0.22 Thurs. May 31, 2007
2315 * Moose::Util::TypeConstraints
2316 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2317 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2318 prototypes for functions
2319 - added the ClassName type constraint, this checks for strings
2320 which will respond true to ->isa(UNIVERSAL).
2321 - added tests and docs for this
2322 - subtyping just in name now works correctly by making the
2323 default for where be { 1 }
2324 - added test for this
2326 * Moose::Meta::Method::Accessor
2327 - coerce and lazy now work together correctly, thanks to
2328 merlyn for finding this bug
2329 - tests added for this
2330 - fix reader presedence bug in Moose::Meta::Attribute + tests
2333 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2334 a HASH-ref and missed. This produces better error messages then
2335 having it die cause undef is not a HASH.
2336 - added tests for this
2338 0.21 Thursday, May 2nd, 2007
2340 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2341 - modified unimport to remove super and inner along with the rest
2342 - altered unimport tests to handle this
2345 - altered super export to populate SUPER_SLOT
2347 * Moose::Meta::Class
2348 - altered augment and override modifier application to use *_SLOT
2349 - modified tests for these to unimport one test class each to test
2352 - fixed issue where custom attribute metaclasses
2353 where not handled correctly in roles
2354 - added tests for this
2356 * Moose::Meta::Class
2357 - fixed issue where extending metaclasses with
2358 roles would blow up. Thanks to Aankhen`` for
2359 finding this insidious error, and it's solution.
2361 ~~ lots of spelling and grammer fixes in the docs,
2362 many many thanks to rlb3 and Aankhen for these :)
2364 0.20 Friday, April 6th, 2007
2365 >> I messed up the SKIP logic in one test
2366 so this release is just to fix that.
2369 - 'has' now also accepts an ARRAY ref
2370 to create multiple attrs (see docs)
2371 (thanks to konobi for this)
2372 - added tests and docs
2374 0.19 Thurs. April 5th, 2007
2375 ~~ More documentation updates ~~
2377 * Moose::Util::TypeConstraints
2378 - 'type' now supports messages as well
2379 thanks to phaylon for finding this
2380 - added tests for this
2381 - added &list_all_type_constraints and
2382 &list_all_builtin_type_constraints
2383 functions to facilitate introspection.
2385 * Moose::Meta::Attribute
2386 - fixed regexp 'handles' declarations
2387 to build the list of delegated methods
2388 correctly (and not override important
2389 things like &new) thanks to ashleyb
2391 - added tests and docs for this
2392 - added the 'documentation' attributes
2393 so that you can actually document your
2394 attributes and inspect them through the
2396 - added tests and docs for this
2398 * Moose::Meta::Class
2399 - when loading custom attribute metaclasses
2400 it will first look in for the class in the
2401 Moose::Meta::Attribute::Custom::$name, and
2402 then default to just loading $name.
2403 - added tests and docs for this
2405 * Moose::Meta::TypeConstraint
2406 - type constraints now stringify to their names.
2407 - added test for this
2410 - added tests to assure we work with Module::Refresh
2411 - added stricter test skip logic in the Moose POOP
2412 test, ask Rob Kinyon why.
2413 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2415 0.18 Sat. March 10, 2007
2416 ~~ Many, many documentation updates ~~
2419 - We now use Class::MOP::load_class to
2421 - added tests to show types and subtypes
2422 working with Declare::Constraints::Simple
2423 and Test::Deep as constraint engines.
2426 !! You must have Class::MOP 0.37_001 !!
2427 !! for this developer release to work !!
2429 This release was primarily adding the immutable
2430 feature to Moose. An immutable class is one which
2431 you promise not to alter. When you set the class
2432 as immutable it will perform various bits of
2433 memoization and inline certain part of the code
2434 (constructors, destructors and accessors). This
2435 minimizes (and in some cases totally eliminates)
2436 one of Moose's biggest performance hits. This
2437 feature is not on by default, and is 100% optional.
2438 It has several configurable bits as well, so you
2439 can pick and choose to your specific needs.
2441 The changes involved in this were fairly wide and
2442 highly specific, but 100% backwards compatible, so
2443 I am not going to enumerate them here. If you are
2444 truely interested in what was changed, please do
2447 0.17 Tues. Nov. 14, 2006
2448 * Moose::Meta::Method::Accessor
2449 - bugfix for read-only accessors which
2450 are have a type constraint and lazy.
2451 Thanks to chansen for finding it.
2453 0.16 Tues. Nov. 14, 2006
2455 There are some speed improvements in this release,
2456 but they are only the begining, so stay tuned.
2459 - BUILDALL and DEMOLISHALL no longer get
2460 called unless they actually need to be.
2461 This gave us a signifigant speed boost
2462 for the cases when there is no BUILD or
2463 DEMOLISH method present.
2465 * Moose::Util::TypeConstraints
2466 * Moose::Meta::TypeConstraint
2467 - added an 'optimize_as' option to the
2468 type constraint, which allows for a
2469 hand optimized version of the type
2470 constraint to be used when possible.
2471 - Any internally created type constraints
2472 now provide an optimized version as well.
2474 0.15 Sun. Nov. 5, 2006
2476 This version of Moose *must* have Class::MOP 0.36 in order
2477 to work correctly. A number of small internal tweaks have
2478 been made in order to be compatible with that release.
2480 * Moose::Util::TypeConstraints
2481 - added &unimport so that you can clean out
2482 your class namespace of these exported
2485 * Moose::Meta::Class
2486 - fixed minor issue which occasionally
2487 comes up during global destruction
2489 - moved Moose::Meta::Method::Overriden into
2493 - moved Moose::Meta::Role::Method into
2496 * Moose::Meta::Attribute
2497 - changed how we do type checks so that
2498 we reduce the overall cost, but still
2501 - moved accessor generation methods to
2502 Moose::Meta::Method::Accessor to
2503 conform to the API changes from
2506 * Moose::Meta::TypeConstraint
2507 - changed how constraints are compiled
2508 so that we do less recursion and more
2509 iteration. This makes the type check
2511 - moved Moose::Meta::TypeConstraint::Union
2514 * Moose::Meta::Method::Accessor
2515 - created this from methods formerly found in
2516 Moose::Meta::Attribute
2518 * Moose::Meta::Role::Method
2519 - moved this from Moose::Meta::Role
2521 * Moose::Meta::Method::Overriden
2522 - moved this from Moose::Meta::Class
2524 * Moose::Meta::TypeConstraint::Union
2525 - moved this from Moose::Meta::TypeConstraint
2527 0.14 Mon. Oct. 9, 2006
2529 * Moose::Meta::Attribute
2530 - fixed lazy attributes which were not getting
2531 checked with the type constraint (thanks ashley)
2532 - added tests for this
2533 - removed the over-enthusiastic DWIMery of the
2534 automatic ArrayRef and HashRef defaults, it
2535 broke predicates in an ugly way.
2536 - removed tests for this
2538 0.13 Sat. Sept. 30, 2006
2540 This version of Moose *must* have Class::MOP 0.35 in order
2541 to work correctly. A number of small internal tweaks have
2542 been made in order to be compatible with that release.
2545 - Removed the use of UNIVERSAL::require to be a better
2546 symbol table citizen and remove a dependency
2547 (thanks Adam Kennedy)
2549 **~~ removed experimental & undocumented feature ~~**
2550 - commented out the 'method' and 'self' keywords, see the
2551 comments for more info.
2554 - added a FAQ and WTF files to document frequently
2555 asked questions and common problems
2557 * Moose::Util::TypeConstraints
2558 - added GlobRef and FileHandle type constraint
2559 - added tests for this
2561 * Moose::Meta::Attribute
2562 - if your attribute 'isa' ArrayRef of HashRef, and you have
2563 not explicitly set a default, then make the default DWIM.
2564 This will also work for subtypes of ArrayRef and HashRef
2566 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2567 - new test added for this (thanks to ashley)
2570 - added basic support for runtime role composition
2571 but this is still *highly experimental*, so feedback
2572 is much appreciated :)
2573 - added tests for this
2575 * Moose::Meta::TypeConstraint
2576 - the type constraint now handles the coercion process
2577 through delegation, this is to support the coercion
2580 * Moose::Meta::TypeConstraint::Union
2581 - it is now possible for coercions to be performed
2583 - added tests for this (thanks to konobi)
2585 * Moose::Meta::TypeCoercion
2586 - properly capturing error when type constraint
2590 - Scalar::Util 1.18 is bad on Win32, so temporarily
2591 only require version 1.17 for Win32 and cygwin.
2592 (thanks Adam Kennedy)
2594 0.12 Sat. Sept. 1, 2006
2596 - Recipe5 (subtypes & coercion) has been written
2599 - fixed "bad meta" error message to be more descriptive
2600 - fixed &unimport to not remove the &inner and &super
2601 keywords because we need to localize them.
2602 - fixed number of spelling/grammer issues, thanks Theory :)
2604 **~~ experimental & undocumented feature ~~**
2605 - added the method and self keywords, they are basically
2606 just sugar, and they may not stay around.
2609 - added &dump method to easily Data::Dumper
2612 * Moose::Meta::TypeConstraint
2613 - added the &is_a_type_of method to check both the current
2614 and the subtype of a method (similar to &isa with classes)
2617 - this is now a subclass of Class::MOP::Module, and no longer
2618 creates the _role_meta ugliness of before.
2619 - fixed tests to reflect this change
2621 0.11 Wed. July 12, 2006
2623 - added an &unimport method to remove all the keywords
2624 that Moose will import, simply add 'no Moose' to the
2625 bottom of your class file.
2628 - fixed some test failures caused by a forgotten test
2631 0.10 Thurs. July 6, 2006
2633 - improved error message when loading modules so
2634 it is less confusing when you load a role.
2635 - added &calculate_all_roles method to
2636 Moose::Meta::Class and Moose::Meta::Role
2639 This module has been tested against Class::MOP 0.30
2640 but it does not yet utilize the optimizations
2641 it makes available. Stay tuned for that ;)
2643 0.09_03 Fri. June 23, 2006
2644 ++ DEVELOPER RELEASE ++
2646 - 'use strict' and 'use warnings' are no longer
2647 needed in Moose classes, Moose itself will
2648 turn them on for you.
2649 - added tests for this
2650 - moved code from exported subs to private methods
2651 in Moose::Meta::Class
2654 - as with Moose, strict and warnings are
2655 automatically turned on for you.
2656 - added tests for this
2659 - now handles an edge case for override errors
2660 - added tests for this
2661 - added some more edge case tests
2663 0.09_02 Tues. May 16, 2006
2664 ++ DEVELOPER RELEASE ++
2666 - added prototypes to the exported subs
2670 - added prototypes to the exported subs
2673 * Moose::Util::TypeConstraints
2674 - cleaned up prototypes for the subs
2677 0.09_01 Fri. May 12, 2006
2678 ++ DEVELOPER RELEASE ++
2679 - This release works in combination with
2680 Class::MOP 0.29_01, it is a developer
2681 release because it uses the a new
2682 instance sub-protocol and a fairly
2683 complete Role implementation. It has
2684 not yet been optimized, so it slower
2685 the the previous CPAN version. This
2686 release also lacks good updated docs,
2687 the official release will have updated docs.
2690 - refactored the keyword exports
2691 - 'with' now checks Role validaity and
2692 accepts more than one Role at a time
2693 - 'extends' makes metaclass adjustments as
2694 needed to ensure metaclass compatibility
2697 - refactored the keyword exports
2698 - 'with' now checks Role validaity and
2699 accepts more than one Role at a time
2701 * Moose::Util::TypeConstraints
2702 - added the 'enum' keyword for simple
2703 string enumerations which can be used as
2705 - see example of usage in t/202_example.t
2708 - more careful checking of params to new()
2711 - much work done on the role composition
2712 - many new tests for conflict detection
2713 and composition edge cases
2714 - not enough documentation, I suggest
2715 looking at the tests
2717 * Moose::Meta::Instance
2718 - added new Instance metaclass to support
2719 the new Class::MOP instance protocol
2721 * Moose::Meta::Class
2722 - some small changes to support the new
2724 - some small additions to support Roles
2726 * Moose::Meta::Attribute
2727 - some improvements to the accessor generation code
2729 - some small changes to support the new
2731 - (still somewhat) experimental delegation support
2732 with the 'handles' option
2733 - added several tests for this
2734 - no docs for this yet
2736 0.05 Thurs. April 27, 2006
2738 - keywords are now exported with Sub::Exporter
2739 thanks to chansen for this commit
2740 - has keyword now takes a 'metaclass' option
2741 to support custom attribute meta-classes
2742 on a per-attribute basis
2743 - added tests for this
2744 - the 'has' keyword not accepts inherited slot
2745 specifications (has '+foo'). This is still an
2746 experimental feature and probably not finished
2747 see t/038_attribute_inherited_slot_specs.t for
2748 more details, or ask about it on #moose
2749 - added tests for this
2752 - keywords are now exported with Sub::Exporter
2754 * Moose::Utils::TypeConstraints
2755 - reorganized the type constraint hierarchy, thanks
2756 to nothingmuch and chansen for his help and advice
2758 - added some tests for this
2759 - keywords are now exported with Sub::Exporter
2760 thanks to chansen for this commit
2762 * Moose::Meta::Class
2763 - due to changes in Class::MOP, we had to change
2764 construct_instance (for the better)
2766 * Moose::Meta::Attribute
2767 - due to changes in Class::MOP, we had to add the
2768 initialize_instance_slot method (it's a good thing)
2770 * Moose::Meta::TypeConstraint
2771 - added type constraint unions
2772 - added tests for this
2773 - added the is_subtype_of predicate method
2774 - added tests for this
2776 0.04 Sun. April 16th, 2006
2778 - Roles can now consume other roles
2779 - added tests for this
2780 - Roles can specify required methods now with
2781 the requires() keyword
2782 - added tests for this
2785 - ripped out much of it's guts ,.. much cleaner now
2786 - added required methods and correct handling of
2787 them in apply() for both classes and roles
2788 - added tests for this
2789 - no longer adds a does() method to consuming classes
2790 it relys on the one in Moose::Object
2791 - added roles attribute and some methods to support
2792 roles consuming roles
2794 * Moose::Meta::Attribute
2795 - added support for triggers on attributes
2796 - added tests for this
2797 - added support for does option on an attribute
2798 - added tests for this
2800 * Moose::Meta::Class
2801 - added support for attribute triggers in the
2803 - added tests for this
2806 - Moose no longer creates a subtype for your class
2807 if a subtype of the same name already exists, this
2808 should DWIM in 99.9999% of all cases
2810 * Moose::Util::TypeConstraints
2811 - fixed bug where incorrect subtype conflicts were
2813 - added test for this
2816 - this class can now be extended with 'use base' if
2817 you need it, it properly loads the metaclass class now
2818 - added test for this
2820 0.03_02 Wed. April 12, 2006
2822 - you must now explictly use Moose::Util::TypeConstraints
2823 it no longer gets exported for you automatically
2826 - new() now accepts hash-refs as well as key/value lists
2827 - added does() method to check for Roles
2828 - added tests for this
2830 * Moose::Meta::Class
2831 - added roles attribute along with the add_role() and
2833 - added tests for this
2836 - now adds a does() method to consuming classes
2837 which tests the class's hierarchy for roles
2838 - added tests for this
2840 0.03_01 Mon. April 10, 2006
2842 - added new Role recipe (no content yet, only code)
2845 - added 'with' keyword for Role support
2846 - added test and docs for this
2847 - fixed subtype quoting bug
2848 - added test for this
2852 - added test and docs
2854 * Moose::Util::TypeConstraints
2855 - added the message keyword to add custom
2856 error messages to type constraints
2859 - the meta role to support Moose::Role
2860 - added tests and docs
2862 * Moose::Meta::Class
2863 - moved a number of things from Moose.pm
2864 to here, they should have been here
2867 * Moose::Meta::Attribute
2868 - moved the attribute option macros here
2869 instead of putting them in Moose.pm
2871 * Moose::Meta::TypeConstraint
2872 - added the message attributes and the
2874 - added tests and docs for this
2876 0.03 Thurs. March 30, 2006
2878 - added the Moose::Cookbook with 5 recipes,
2879 describing all the stuff Moose can do.
2882 - fixed an issue with &extends super class loading
2883 it now captures errors and deals with inline
2884 packages correctly (bug found by mst, solution
2886 - added super/override & inner/augment features
2887 - added tests and docs for these
2890 - BUILDALL now takes a reference of the %params
2891 that are passed to &new, and passes that to
2894 * Moose::Util::TypeConstraints
2895 - Type constraints now survive runtime reloading
2896 - added test for this
2898 * Moose::Meta::Class
2899 - fixed the way attribute defaults are handled
2900 during instance construction (bug found by chansen)
2902 * Moose::Meta::Attribute
2903 - read-only attributes now actually enforce their
2904 read-only-ness (this corrected in Class::MOP as
2907 0.02 Tues. March 21, 2006
2909 - many more tests, fixing some bugs and
2911 - &extends now loads the base module with
2913 - added UNIVERSAL::require to the
2916 - each new Moose class will also create
2917 and register a subtype of Object which
2918 correspond to the new Moose class.
2919 - the 'isa' option in &has now only
2920 accepts strings, and will DWIM in
2923 * Moose::Util::TypeConstraints
2924 - added type coercion features
2925 - added tests for this
2926 - added support for this in attributes
2927 and instance construction
2929 - type construction no longer creates a
2930 function, it registers the type instead.
2931 - added several functions to get the
2935 - BUILDALL and DEMOLISHALL were broken
2936 because of a mis-named hash key, Whoops :)
2938 * Moose::Meta::Attribute
2939 - adding support for coercion in the
2940 autogenerated accessors
2942 * Moose::Meta::Class
2943 - adding support for coercion in the
2944 instance construction
2946 * Moose::Meta::TypeConstraint
2947 * Moose::Meta::TypeCoercion
2948 - type constraints and coercions are now
2949 full fledges meta-objects
2951 0.01 Wed. March 15, 2006
2952 - Moooooooooooooooooose!!!