1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 - Use Module::Install extensions explicitly to avoid confusing errors if
7 - Use Module::Install::AuthorRequires to stop test extraction and general
8 failures if you don't have the author side dependencies installed
11 - Added a with_immutable test function, to run a block of tests with and
12 without certain classes being immutable. (doy)
15 * Moose::Cookbook::Basics::Recipe4
16 - Grammar error [rt.cpan.org #51791] (Amir E. Aharoni)
17 * Moose::Util::TypeConstraints
18 - Changed Str constraint to accept magic lvalue strings like one gets
19 from substr et al, again. (sorear)
21 0.93 Thu, Nov 19, 2009
23 - Calling $object->new() is no longer deprecated, and no longer
27 - The get_attribute_map method is now deprecated. (Dave Rolsky)
29 * Moose::Meta::Method::Delegation
30 - Preserve variable aliasing in @_ for delegated methods, so that
31 altering @_ affects the passed value. (doy)
33 * Moose::Util::TypeConstraints
34 - Allow array refs for non-anonymous form of enum and duck_type, not
35 just anonymous. The non-arrayref forms may be removed in the
37 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
38 - Properly document Int being a subtype of Str. (doy)
41 - Moose::Exporter using modules can now export their functions to the
42 main package. This applied to Moose and Moose::Role, among
45 * Moose::Meta::Attribute
46 - Don't remove attribute accessors we never installed, during
47 remove_accessors. (doy)
49 * Moose::Meta::Attribute::Native::Trait::Array
50 - Don't bypass prototype checking when calling List::Util::first, to
51 avoid a segfault when it is called with a non-code argument. (doy)
53 * Moose::Meta::Attribute::Native::Trait::Code
54 - Fix passing arguments to code execute helpers. (doy)
56 0.92 Tue, Sep 22, 2009
57 * Moose::Util::TypeConstraints
58 - added the match_on_type operator (Stevan)
59 - added tests and docs for this (Stevan)
62 - Metaclass compat fixing should already happen recursively, there's no
63 need to explicitly walk up the inheritance tree. (doy)
65 * Moose::Meta::Attribute
66 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
68 0.91 Thu, Sep 17, 2009
70 - Don't import any functions, in order to avoid polluting our namespace
71 with things that can look like methods (blessed, try, etc)
74 * Moose::Meta::Method::Constructor
75 - The generated code needs to called Scalar::Util::blessed by its
76 fully-qualified name or else Perl can interpret the call to blessed as
77 an indirect method call. This broke Search::GIN, which in turn broke
78 KiokuDB. (nothingmuch)
80 0.90 Tue, Sep 15, 2009
81 * Moose::Meta::Attribute::Native::Trait::Counter
82 * Moose::Meta::Attribute::Native::Trait::String
83 - For these two traits, an attribute which did not explicitly provide
84 methods to handles magically ended up delegating *all* the helper
85 methods. This has been removed. You must be explicit in your handles
86 declaration for all Native Traits. (Dave Rolsky)
89 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
90 sure to rethrow its error message. However, we also localize $@ before
91 this so that if all the DEMOLISH methods success, the value of $@ will
92 be preserved. (nothingmuch and Dave Rolsky)
93 - We now also localize $? during object destruction. (nothingmuch and
95 - The handling of DEMOLISH methods was broken for immutablized classes,
96 which were not receiving the value of
97 Devel::GlobalDestruction::in_global_destruction.
98 - These two fixes address some of RT #48271, reported by Zefram.
99 - This is all now documented in Moose::Manual::Construction.
100 - Calling $object->new() is now deprecated. A warning will be
104 - Added more hooks to customize how roles are applied. The role
105 summation class, used to create composite roles, can now be changed
106 and/or have meta-roles applied to it. (rafl)
107 - The get_method_list method no longer explicitly excludes the "meta"
108 method. This was a hack that has been replaced by better hacks. (Dave
111 * Moose::Meta::Method::Delegation
112 - fixed delegated methods to make sure that any modifiers attached to
113 the accessor being delegated on will be called (Stevan)
114 - added tests for this (Stevan)
117 - Moose no longer warns when a class that is being made immutable has
118 mutable ancestors. While in theory this is a good thing to warn about,
119 we found so many exceptions to this that doing this properly became
122 0.89_02 Thu, Sep 10, 2009
123 * Moose::Meta::Attribute::Native
124 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
126 * Moose::Meta::Attribute::Native::Trait::Array
127 - Added a number of functions from List::Util and List::MoreUtils,
128 including reduce, shuffle, uniq, and natatime. (doy)
131 - This module will now generate an init_meta method for your exporting
132 class if you pass it options for
133 Moose::Util::MetaRole::apply_metaclass_roles or
134 apply_base_class_roles. This eliminates a lot of repetitive
135 boilerplate for typical MooseX modules. (doy).
136 - Documented the with_meta feature, which is a replacement for
137 with_caller. This feature was added by josh a while ago.
138 - The with_caller feature is now deprecated, but will not issue a
139 warning yet. (Dave Rolsky)
140 - If you try to wrap/export a subroutine which doesn't actually exist,
141 Moose::Exporter will warn you about this. (doy)
143 * Moose::Meta::Role::Application::ToRole
144 - When a role aliased a method from another role, it was only getting
145 the new (aliased) name, not the original name. This differed from what
146 happens when a class aliases a role's methods. If you _only_ want the
147 aliased name, make sure to also exclue the original name. (Dave
150 0.89_01 Wed Sep 2, 2009
151 * Moose::Meta::Attribute
152 - Added the currying syntax for delegation from AttributeHelpers to the
153 existing delegation API. (hdp)
155 * Moose::Meta::Attribute::Native
156 - We have merged the functionality of MooseX::AttributeHelpers into the
157 Moose core with some API tweaks. You can continue to use
158 MooseX::AttributeHelpers, but it will not be maintained except
159 (perhaps) for critical bug fixes in the future. See
160 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
163 * Moose::Error::Croak
164 * Moose::Error::Confess
165 - Clarify documentation on how to use different error-throwing
166 modules. (Curtis Jewell)
169 - Correct POD for builder to point to Recipe8, not 9. (gphat)
172 - When a nonexistent sub name is passed to as_is, with_caller, or
173 with_meta, throw a warning and skip the exporting, rather than
174 installing a broken sub. (doy)
177 - Moose now warns if you call C<make_immutable> for a class with mutable
180 0.89 Thu Aug 13, 2009
181 * Moose::Manual::Attributes
182 - Clarify "is", include discussion of "bare". (Sartak)
184 * Moose::Meta::Role::Method::Conflicting
185 * Moose::Meta::Role::Application::ToClass
186 - For the first set of roles involved in a conflict, report all
187 unresolved method conflicts, not just the first method. Fixes #47210
188 reported by Ovid. (Sartak)
190 * Moose::Meta::TypeConstraint
191 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
194 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
196 - Allow specifying role options (alias, excludes, MXRP stuff) in the
197 arrayref passed to "use Moose -traits" (doy)
200 - Add functions meta_class_alias and meta_attribute_alias for creating
201 aliases for class and attribute metaclasses and metatraits. (doy)
203 * Moose::Meta::Attribute
204 * Moose::Meta::Method::Accessor
205 - A trigger now receives the old value as a second argument, if the
206 attribute had one. (Dave Rolsky)
208 * Moose::Meta::Method::Constructor
209 - Fix a bug with $obj->new when $obj has stringify overloading.
210 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
211 - However, we will probably deprecate $obj->new, so please don't start
212 using it for new code!
214 * Moose::Meta::Role::Application
215 * Moose::Meta::Role::Application::RoleSummation
216 - Rename alias and excludes to -alias and -excludes (but keep the old
217 names for now, for backcompat) (doy)
219 0.88 Fri Jul 24, 2009
220 * Moose::Manual::Contributing
221 - Re-write the Moose::Manual::Contributing document to reflect
222 the new layout and methods of work for the Git repository. All
223 work now should be done in topic branches and reviewed by a
224 core committer before being applied to master. All releases
225 are done by a cabal member and merged from master to
226 stable. This plan was devised by Yuval, blame him. (perigrin)
229 - Create metaclass attributes for the different role application
232 * Moose::Util::MetaRole
233 - Allow applying roles to a meta role's role application
236 * Moose::Meta::Attribute
237 - Add weak_ref to allowed options for "has '+foo'" (mst)
239 * Moose::Meta::Method::Accessor
240 - No longer uses inline_slot_access in accessors, to support
241 non-lvalue-based meta instances. (sorear)
244 * Moose::Meta::Method::Delegation
245 - Once again allow class names as well as objects for
246 delegation. This was changed in 0.86.
249 * Moose::Meta::Class::Immutable::Trait
250 - Fixes to work with the latest Class::MOP.
252 * Moose::Meta::Method::Delegation
253 - Delegation now dies with a more useful error message if the
254 attribute's accessor returns something defined but
257 0.85 Fri, Jun 26, 2009
258 * Moose::Meta::Attribute
259 - The warning for 'no associated methods' is now split out into
260 the _check_associated_methods method, so that extensions can
261 safely call 'after install_accessors => ...'. This fixes a
262 warning from MooseX::AttributeHelpers. (hdp)
264 0.84 Fri, Jun 26, 2009
266 - has now sets definition_context for attributes defined in
269 * Moose::Meta::Attribute
270 - When adding an attribute to a metaclass, if the attribute has
271 no associated methods, it will give a deprecation
273 - Methods generated by delegation were not being added to
274 associated_methods. (hdp)
275 - Attribute accessors (reader, writer, accessor, predicate,
276 clearer) now warn if they overwrite an existing method. (doy)
277 - Attribute constructors now warn very noisily about unknown (or
278 misspelled) arguments
280 * Moose::Util::TypeConstraints
281 - Deprecated the totally useless Role type name, which just
282 checked if $object->can('does'). Note that this is _not_ the
283 same as a type created by calling role_type('RoleName').
285 * Moose::Util::TypeConstraints
286 * Moose::Meta::TypeConstraint::DuckType
287 - Reify duck type from a regular subtype into an actual class
289 - Document this because Sartak did all my work for me
292 * Moose::Meta::Attribute
293 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
294 it is just a list of methods (Sartak)
297 - The get_*_method_modifiers methods would die if the role had
298 no modifiers of the given type (Robert Buels).
300 0.83 Tue, Jun 23, 2009
302 - Fix _construct_instance not setting the special __MOP__ object
303 key in instances of anon classes. (doy)
305 0.82 Sun, Jun 21, 2009
306 * Moose::Manual::Types
307 - Mention MooseX::Types early to avoid users falling down the
308 string parsing rathole (mst)
310 * Moose::Manual::MooseX
311 - Add warnings about class-level extensions and mention considering
312 using plain objects instead
314 0.81 Sun, Jun 7, 2009
315 * Bumped our Class::MOP prereq to the latest version (0.85), since
318 0.80 Sat, Jun 6, 2009
320 - Add FAQ about the coercion change from 0.76 because it came up
321 three times today (perigrin)
322 - Win doy $10 dollars because Sartak didn't think anybody
323 would document this fast enough (perigrin)
325 * Moose::Meta::Method::Destructor
326 - Inline a DESTROY method even if there are no DEMOLISH methods
327 to prevent unnecessary introspection in
328 Moose::Object::DEMOLISHALL
331 - A role's required methods are now represented by
332 Moose::Meta::Role::Method::Required objects. Conflicts are now
333 represented by Moose::Meta::Role::Method::Conflicting
334 objects. The benefit for end-users in that unresolved
335 conflicts generate different, more instructive, errors,
336 resolving Ovid's #44895. (Sartak)
339 - Improve the error message of "extends" as suggested by Adam
340 Kennedy and confound (Sartak)
341 - Link to Moose::Manual::Roles from Moose::Role as we now have
342 excellent documentation (Adam Kennedy)
345 - Update test suite for subname change in Class::MOP
347 - Add TODO test for infinite recursion in Moose::Meta::Class
350 0.79 Wed, May 13, 2009
352 - More fixes for Win32 problems. Reported by Robert Krimen.
355 - The DEMOLISHALL method could still blow up in some cases
356 during global destruction. This method has been made more
357 resilient in the face of global destruction's random garbage
361 - If you "also" a module that isn't loaded, the error message
362 now acknowledges that (Sartak)
365 - When your ->meta method does not return a Moose::Meta::Class,
366 the error message gave the wrong output (Sartak)
368 0.78 Tue, May 12, 2009
369 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
370 - Merged these documents into what is now Moose::Manual::FAQ
373 - Moved to Moose::Manual::Unsweetened
375 * Moose::Cookbook::Basics::Recipes 9-12
376 - Renamed to be 8-11, since recipe 8 did not exist
379 - Make Moose::Exporter import strict and warnings into packages
383 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
384 methods during global destruction (doy)
387 * Moose::Meta::Role::Application::ToClass
388 - Track the Role::Application objects created during class-role
392 - Fix metaclass incompatibility errors when extending a vanilla perl
393 class which isa Moose class with a metaclass role applied (t0m)
396 - Add a role-combination hook, _role_for_combination, for the
397 benefit of MooseX::Role::Parameterized (Sartak)
400 - Some tests were failing on Win32 because they explicit checked
401 warning output for newlines. Reported by Nickolay Platonov.
403 0.77 Sat, May 2, 2009
405 - Add explicit use of Devel::GlobalDestruction and Sub::Name
409 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
410 or not we are currently in global destruction (doy)
411 - Add explicit use of Devel::GlobalDestruction and Sub::Name
414 * Moose::Cookbook::FAQ
415 - Reworked much of the existing content to be more useful to
416 modern Moose hackers (Sartak)
419 - Depend on Class::MOP 0.83 instead of 0.82_01.
421 0.76 Mon, April 27, 2009
422 * Moose::Meta::TypeConstraint
423 - Do not run coercions in coerce() if the value already passes the type
426 * Moose::Meta::TypeConstraint::Class
427 - In validation error messages, specifically say that the value is not
428 an instance of the class. This should alleviate some frustrating
429 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
431 * Moose::Meta::Role::Application::ToClass
432 - Revert the class-overrides-role warning in favor of a solution outside
433 of the Moose core (Sartak)
436 - Make Test::Output optional again, since it's only used in a few files
439 0.75_01 Thu, April 23, 2009
440 * Moose::Meta::Role::Application::ToClass
441 - Moose now warns about each class overriding methods from roles it
445 - Warnings tests have standardized on Test::Output which is now an
446 unconditionally dependency (Sartak)
449 - Changes to immutabilization to work with Class::MOP 0.82_01+.
451 0.75 Mon, April 20, 2009
454 - Move validation of not inheriting from roles from Moose::extends to
455 Moose::Meta::Class::superclasses (doy)
458 - add ensure_all_roles() function to encapsulate the common "apply this
459 role unless the object already does it" pattern (hdp)
462 - Users can now select a different metaclass with the "-metaclass"
463 option to import, for classes and roles (Sartak)
466 - Make method_metaclass an attr so that it can accept a metarole
469 0.74 Tue, April 7, 2009
471 * Moose::Meta::Method::Destructor
472 - Include stack traces in the deprecation warnings.
476 - Removed the long-deprecated _apply_all_roles method.
478 * Moose::Meta::TypeConstraint
479 - Removed the long-deprecated union method.
482 0.73_02 Mon, April 6, 2009
483 * More deprecations and renamings
484 - Moose::Meta::Method::Constructor
485 - initialize_body => _initialize_body (this is always called
486 when an object is constructed)
489 - The DEMOLISHALL method could throw an exception during global
490 destruction, meaning that your class's DEMOLISH methods would
491 not be properly called. Reported by t0m.
493 * Moose::Meta::Method::Destructor
494 - Destructor inlining was totally broken by the change to the
495 is_needed method in 0.72_01. Now there is a test for this
496 feature, and it works again.
499 - Bold the word 'not' in the POD for find_meta (t0m)
501 0.73_01 Sun, April 5, 2009
503 - Call user_class->meta in fewer places, with the eventual goal
504 of allowing the user to rename or exclude ->meta
505 altogether. Instead uses Class::MOP::class_of. (Sartak)
507 * Moose::Meta::Method::Accessor
508 - If an attribute had a lazy default, and that value did not
509 pass the attribute's type constraint, it did not get the
510 message from the type constraint, instead using a generic
511 message. Test provided by perigrin.
513 * Moose::Util::TypeConstraints
514 - Add duck_type keyword. It's sugar over making sure an object
515 can() a list of methods. This is easier than jrockway's
516 suggestion to fork all of CPAN. (perigrin)
517 - add tests and documentation (perigrin)
520 - Document the fact that init_meta() returns the target class's
521 metaclass object. (hdp)
523 * Moose::Cookbook::Extending::Recipe1
524 * Moose::Cookbook::Extending::Recipe2
525 * Moose::Cookbook::Extending::Recipe3
526 * Moose::Cookbook::Extending::Recipe4
527 - Make init_meta() examples explicitly return the metaclass and
528 point out this fact. (hdp)
530 * Moose::Cookbook::Basics::Recipe12
531 - A new recipe, creating a custom meta-method class.
533 * Moose::Cookbook::Meta::Recipe6
534 - A new recipe, creating a custom meta-method class.
537 * Moose::Meta::Method::Constructor
538 - Attribute triggers no longer receive the meta-attribute object
539 as an argument in any circumstance. Previously, triggers
540 called during instance construction were passed the
541 meta-attribute, but triggers called by normal accessors were
542 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
544 * Moose::Manual::Attributes
545 - Remove references to triggers receving the meta-attribute object as an
548 * Moose::Cookbook::FAQ
549 - Remove recommendation for deprecated Moose::Policy and
550 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
553 * Many methods have been renamed with a leading underscore, and a
554 few have been deprecated entirely. The methods with a leading
555 underscore are consider "internals only". People writing
556 subclasses or extensions to Moose should feel free to override
557 them, but they are not for "public" use.
560 - check_metaclass_compatibility => _check_metaclass_compatibility
562 - Moose::Meta::Method::Accessor
563 - initialize_body => _initialize_body (this is always called
564 when an object is constructed)
565 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
567 - Moose::Meta::Method::Constructor
568 - initialize_body => _initialize_body (this is always called
569 when an object is constructed)
570 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
571 - attributes => _attributes (now inherited from parent)
572 - meta_instance => _meta_instance (now inherited from parent)
575 - alias_method is deprecated. Use add_method
577 0.73 Fri, March 29, 2009
578 * No changes from 0.72_01.
580 0.72_01 Thu, March 26, 2009
582 - Almost every module has complete API documentation. A few
583 methods (and even whole classes) have been intentionally
584 excluded pending some rethinking of their APIs.
586 * Moose::Util::TypeConstraints
587 - Calling subtype with a name as the only argument is now an
588 exception. If you want an anonymous subtype do:
590 my $subtype = subtype as 'Foo';
592 * Moose::Cookbook::Meta::Recipe7
593 - A new recipe, creating a custom meta-instance class.
595 * Moose::Cookbook::Basics::Recipe5
596 - Fix various typos and mistakes. Includes a patch from Radu
599 * Moose::Cookbook::Basics::Recipe9
600 - Link to this recipe from Moose.pm's builder blurb
603 - When wrapping a function with a prototype, Moose::Exporter now
604 makes sure the wrapped function still has the same
605 prototype. (Daisuke Maki)
607 * Moose::Meta::Attribute
608 - Allow a subclass to set lazy_build for an inherited
612 - Explicitly depend on Data::OptList. We already had this dependency
613 via Sub::Exporter, but since we're using it directly we're
614 better off with it listed. (Sartak)
616 * Moose::Meta::Method::Constructor
617 - Make it easier to subclass the inlining behaviour. (Ash
620 * Moose::Manual::Delta
621 - Details significant changes in the history of Moose, along
622 with recommended workarounds.
624 * Moose::Manual::Contributing
625 - Contributor's guide to Moose.
627 * Moose::Meta::Method::Constructor
628 - The long-deprecated intialize_body method has been removed
629 (yes, spelled like that).
631 * Moose::Meta::Method::Destructor
632 - This is_needed method is now always a class method.
635 - Changes to the internals of how make_immutable works to match
636 changes in latest Class::MOP.
638 0.72 Mon, February 23, 2009
640 * Moose::Meta::Method::Constructor
641 - A mutable class accepted Foo->new(undef) without complaint,
642 while an immutable class would blow up with an unhelpful
643 error. Now, in both cases we throw a helpful error
644 instead. Reported by doy.
646 0.71_01 Sun, February 22, 2009
648 - Hopefully fixed some POD errors in a few recipes that caused
649 them to display weird on search.cpan.org.
651 * Moose::Util::TypeConstraints
652 - Calling type or subtype without the sugar helpers (as, where,
653 message) is now deprecated.
654 - The subtype function tried hard to guess what you meant, but
655 often got it wrong. For example:
657 my $subtype = subtype as 'ArrayRef[Object]';
659 This caused an error in the past, but now works as you'd
663 - Make sure Moose.pm is loaded before calling
664 Moose->throw_error. This wasn't normally an issue, but could
665 bite you in weird cases.
667 0.71 Thu, February 19, 2009
668 * Moose::Cookbook::Basics::Recipe11
669 - A new recipe which demonstrates the use of BUILDARGS and
672 * Moose::Cookbook::Roles::Recipe3
673 - A new recipe, applying a role to an object instance. (Dave
677 - Allow overriding specific keywords from "also" packages. (doy)
680 - Replace hardcoded cookbook tests with Test::Inline to ensure
681 the tests match the actual code in the recipes. (Dave Rolsky)
684 - Working on the above turned up a number of little bugs in the
685 recipe code. (Dave Rolsky)
687 * Moose::Util::TypeConstraints::Optimized
688 - Just use Class::MOP for the optimized ClassName check. (Dave
691 0.70 Sat, February 14, 2009
692 * Moose::Util::TypeConstraints
693 - Added the RoleName type (stevan)
694 - added tests for this (stevan)
696 * Moose::Cookbook::Basics::Recipe3
697 - Updated the before qw[left right] sub to be a little more
698 defensive about what it accepts (stevan)
699 - added more tests to t/000_recipies/basics/003_binary_tree.t
703 - We now always call DEMOLISHALL, even if a class does not
704 define DEMOLISH. This makes sure that method modifiers on
705 DEMOLISHALL work as expected. (doy)
706 - added tests for this (EvanCarroll)
708 * Moose::Util::MetaRole
709 - Accept roles for the wrapped_method_metaclass (rafl)
710 - added tests for this (rafl)
712 * Moose::Meta::Attribute
713 - We no longer pass the meta-attribute object as a final
714 argument to triggers. This actually changed for inlined code a
715 while back, but the non-inlined version and the docs were
719 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
720 they require 0.11. (Dave Rolsky)
723 - Lots of small changes to the manual, cookbook, and
724 elsewhere. These were based on feedback from various
725 users, too many to list here. (Dave Rolsky)
727 0.69 Thu, February 12, 2009
729 - Make some keyword errors use throw_error instead of croak
730 since Moose::Exporter wraps keywords now (Sartak)
733 - Revised every recipe for style and clarity. Also moved some
734 documentation out of cookbook recipes and into Moose::Manual
735 pages. This work was funded as part of the Moose docs grant
736 from TPF. (Dave Rolsky)
738 * Moose::Meta::Method::Delegation
739 - If the attribute doing the delegation was not populated, the
740 error message did not specify the attribute name
743 0.68 Wed, February 4, 2009
745 - Many spelling, typo, and formatting fixes by daxim.
747 * Moose::Manual::Attributes
748 - The NAME section in the POD used "Attribute" so search.cpan
749 didn't resolve links from other documents properly.
751 * Moose::Meta::Method::Overriden
752 - Now properly spelled as Overridden. Thanks to daxim for
755 0.67 Tue, February 3, 2009
757 - Lots of little typo fixes and a few clarifications. Several
758 pages didn't have proper titles, and so weren't actually
759 visible on search.cpan.org. Thanks to hanekomu for a variety
760 of fixes and formatting improvements.
762 0.66 Tue, February 3, 2009
764 - This is a brand new, extensive manual for Moose. This aims to
765 provide a complete introduction to all of Moose's
766 features. This work was funded as part of the Moose docs grant
767 from TPF. (Dave Rolsky)
769 * Moose::Meta::Attribute
770 - Added a delegation_metaclass method to replace a hard-coded
771 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
773 * Moose::Util::TypeConstraints
774 - If you created a subtype and passed a parent that Moose didn't
775 know about, it simply ignored the parent. Now it automatically
776 creates the parent as a class type. This may not be what you
777 want, but is less broken than before. (Dave Rolsky)
779 * Moose::Util::TypeConstraints
780 - This module tried throw errors by calling Moose->throw_error,
781 but it did not ensure that Moose was loaded first. This could
782 cause very unhelpful errors when it tried to throw an error
783 before Moose was loaded. (Dave Rolsky)
785 * Moose::Util::TypeConstraints
786 - You could declare a name with subtype such as "Foo!Bar" that
787 would be allowed, but if you used it in a parameterized type
788 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
789 vetting on names created via the sugar functions, so that they
790 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
792 0.65 Thu, January 22, 2008
793 * Moose and Moose::Meta::Method::Overridden
794 - If an overridden method called super(), and then the
795 superclass's method (not overridden) _also_ called super(),
796 Moose went into an endless recursion loop. Test provided by
797 Chris Prather. (Dave Rolsky)
799 * Moose::Meta::TypeConstraint
800 - All methods are now documented. (gphat)
802 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
803 - Fixed some bogus failures that occurred because we tried to
804 validate filesystem paths in a very ad-hoc and
805 not-quite-correct way. (Dave Rolsky)
807 * Moose::Util::TypeConstraints
808 - Added maybe_type to exports. See docs for details. (rjbs)
811 - Added Moose::Util::TypeConstraints to the SEE ALSO
815 - Methods created via an attribute can now fulfill a "requires"
816 declaration for a role. (nothingmuch)
818 * Moose::Meta::Method::*
819 - Stack traces from inlined code will now report its line and
820 file as being in your class, as opposed to in Moose
823 0.64 Wed, December 31, 2008
824 * Moose::Meta::Method::Accessor
825 - Always inline predicate and clearer methods (Sartak)
827 * Moose::Meta::Attribute
828 - Support for parameterized traits (Sartak)
829 - verify_against_type_constraint method to avoid duplication
830 and enhance extensibility (Sartak)
833 - Tests (but no support yet) for parameterized traits (Sartak)
836 - Require Class::MOP 0.75+, which has the side effect of making
837 sure we work on Win32. (Dave Rolsky)
839 0.63 Mon, December 8, 2008
841 - Some small grammar tweaks and bug fixes in non-Moose example
844 0.62_02 Fri, December 5, 2008
845 * Moose::Meta::Role::Application::ToClass
846 - When a class does not provide all of a role's required
847 methods, the error thrown now mentions all of the missing
848 methods, as opposed to just the first one found. Requested by
849 Curtis Poe (RT #41119). (Dave Rolsky)
851 * Moose::Meta::Method::Constructor
852 - Moose will no longer inline a constructor for your class
853 unless it inherits its constructor from Moose::Object, and
854 will warn when it doesn't inline. If you want to force
855 inlining anyway, pass "replace_constructor => 1" to
856 make_immutable. Addresses RT #40968, reported by Jon
857 Swartz. (Dave Rolsky)
858 - The quoting of default values could be broken if the default
859 contained a single quote ('). Now we use quotemeta to escape
860 anything potentially dangerous in the defaults. (Dave Rolsky)
862 0.62_01 Wed, December 3, 2008
864 - use the method->execute API for BUILDALL
865 and DEMOLISHALL (Sartak)
867 * Moose::Util::TypeConstraints
868 - We now make all the type constraint meta classes immutable
869 before creating the default types provided by Moose. This
870 should make loading Moose a little faster. (Dave Rolsky)
872 0.62 Wed November 26, 2008
873 * Moose::Meta::Role::Application::ToClass
874 Moose::Meta::Role::Application::ToRole
875 - fixed issues where excluding and aliasing the
876 same methods for a single role did not work
877 right (worked just fine with multiple
879 - added test for this (stevan)
881 * Moose::Meta::Role::Application::RoleSummation
882 - fixed the error message when trying to compose
883 a role with a role it excludes (Sartak)
886 - Catch another case where recursion caused the value
887 of $CALLER to be stamped on (t0m)
888 - added test for this (t0m)
891 - Remove the make_immutable keyword, which has been
892 deprecated since April. It breaks metaclasses that
893 use Moose without no Moose (Sartak)
895 * Moose::Meta::Attribute
896 - Removing an attribute from a class now also removes delegation
897 (handles) methods installed for that attribute (t0m)
898 - added test for this (t0m)
900 * Moose::Meta::Method::Constructor
901 - An attribute with a default that looked like a number (but was
902 really a string) would accidentally be treated as a number
903 when the constructor was made immutable (perigrin)
904 - added test for this (perigrin)
907 - create method for constructing a role
909 - added test for this (Sartak)
910 - anonymous roles! (Sartak)
911 - added test for this (Sartak)
914 - more consistent error messages (Sartak)
916 * Moose::Cookbook::Roles::Recipe1
917 - attempt to explain why a role that just requires
918 methods is useful (Sartak)
920 0.61 Fri November 7, 2008
921 * Moose::Meta::Attribute
922 - When passing a role to handles, it will be loaded if necessary
926 - Method objects returned by get_method (and other methods)
927 Could end up being returned without an associated_metaclass
928 attribute. Removing get_method_map, which is provided by
929 Class::MOP::Class, fixed this. The Moose version did nothing
930 different from its parent except introduce a bug. (Dave Rolsky)
931 - added tests for this (jdv79)
934 - Added a $VERSION to all .pm files which didn't have one. Fixes
935 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
937 * Moose::Cookbook::Basics::Recipe4
938 * Moose::Cookbook::Basics::Recipe6
939 - These files had spaces on the first line of the SYNOPSIS, as
940 opposed to a totally empty line. According to RT #40432, this
941 confuses POD parsers. (Dave Rolsky)
943 0.60 Fri October 24, 2008
945 - Passing "-traits" when loading Moose caused the Moose.pm
946 exports to be broken. Reported by t0m. (Dave Rolsky)
947 - Tests for this bug. (t0m)
950 - Change resolve_metaclass alias to use the new
951 load_first_existing_class function. This makes it a lot
952 simpler, and also around 5 times faster. (t0m)
953 - Add caching to resolve_metaclass_alias, which gives an order
954 of magnitude speedup to things which repeatedly call the
955 Moose::Meta::Attribute->does method, notably MooseX::Storage
958 * Moose::Util::TypeConstraint
959 - Put back the changes for parameterized constraints that
960 shouldn't have been removed in 0.59. We still cannot parse
961 them, but MooseX modules can create them in some other
962 way. See the 0.58 changes for more details. (jnapiorkowski)
963 - Changed the way subtypes are created so that the job is
964 delegated to a type constraint parent. This clears up some
965 hardcoded checking and should allow correct subtypes of
966 Moose::Meta::Type::Constraint. Don't rely on this new API too
967 much (create_child_type) because it may go away in the
968 future. (jnapiorkowski)
970 * Moose::Meta::TypeConstraint::Union
971 - Type constraint names are sorted as strings, not numbers.
974 * Moose::Meta::TypeConstraint::Parameterizable
975 - New parameterize method. This can be used as a factory method
976 to make a new type constraint with a given parameterized
977 type. (jnapiorkowski)
978 - added tests (jnapiorkowski)
980 0.59 Tue October 14, 2008
982 - Add abridged documentation for builder/default/initializer/
983 predicate, and link to more details sections in
984 Class::MOP::Attribute. (t0m)
986 * Moose::Util::TypeConstraints
987 - removed prototypes from all but the &-based stuff (mst)
989 * Moose::Util::TypeConstraints
990 - Creating a anonymous subtype with both a constraint and a
991 message failed with a very unhelpful error, but should just
992 work. Reported by t0m. (Dave Rolsky)
995 - Some tests that used Test::Warn if it was available failed
996 with older versions of Test::Warn. Reported by Fayland. (Dave
998 - Test firing behavior of triggers in relation to builder/default/
1000 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1001 kinds of supported type. (t0m)
1003 * Moose::Meta::Class
1004 - In create(), do not pass "roles" option to the superclass
1005 - added related test that creates an anon metaclass with
1006 a required attribute
1008 * Moose::Meta::TypeConstraint::Class
1009 * Moose::Meta::TypeConstraint::Role
1010 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1011 other types (as per change in 0.55_02). (t0m)
1013 * Moose::Meta::TypeConstraint::Registry
1014 - Fix warning when dealing with unknown type names (t0m)
1016 * Moose::Util::TypeConstraints
1017 - Reverted changes from 0.58 related to handle parameterized
1018 types. This caused random failures on BSD and Win32 systems,
1019 apparently related to the regex engine. This means that Moose
1020 can no longer parse structured type constraints like
1021 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1022 supported in a slightly different way via MooseX::Types some
1023 time in the future. (Dave Rolsky)
1025 0.58 Sat September 20, 2008
1026 !! This release has an incompatible change regarding !!
1027 !! how roles add methods to a class !!
1029 * Roles and role application
1030 ! Roles now add methods by calling add_method, not
1031 alias_method. They make sure to always provide a method
1032 object, which will be cloned internally. This means that it is
1033 now possible to track the source of a method provided by a
1034 role, and even follow its history through intermediate roles.
1036 This means that methods added by a role now show up when
1037 looking at a class's method list/map. (Dave Rolsky)
1040 - From this release on, we'll try to maintain a list of
1041 conflicting modules, and warn you if you have one
1042 installed. For example, this release conflicts with ...
1043 - MooseX::Singleton <= 0.11
1044 - MooseX::Params::Validate <= 0.05
1047 In general, we try to not break backwards compatibility for
1048 most Moose users, but MooseX modules and other code which
1049 extends Moose's metaclasses is often affected by very small
1050 changes in the Moose internals.
1052 * Moose::Meta::Method::Delegation
1053 * Moose::Meta::Attribute
1054 - Delegation methods now have their own method class. (Dave
1057 * Moose::Meta::TypeConstraint::Parameterizable
1058 - Added a new method 'parameterize' which is basically a factory
1059 for the containing constraint. This makes it easier to create
1060 new types of parameterized constraints. (jnapiorkowski)
1062 * Moose::Meta::TypeConstraint::Union
1063 - Changed the way Union types canonicalize their names to follow
1064 the normalized TC naming rules, which means we strip all
1065 whitespace. (jnapiorkowski)
1067 * Moose::Util::TypeConstraints
1068 - Parameter and Union args are now sorted, this makes Int|Str
1069 the same constraint as Str|Int. (jnapiorkowski)
1070 - Changes to the way Union types are parsed to more correctly
1071 stringify their names. (jnapiorkowski)
1072 - When creating a parameterized type, we now use the new
1073 parameterize method. (jnapiorkowski)
1074 - Incoming type constraint strings are now normalized to remove
1075 all whitespace differences. (jnapiorkowski)
1076 - Changed the way we parse type constraint strings so that we now
1077 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1078 constraints. This lays the foundation for more flexible type
1079 constraint implementations.
1081 * Tests and docs for all the above. (jnapiorkowski)
1085 - Moose::Exporter will no longer remove a subroutine that the
1086 exporting package re-exports. Moose re-exports the
1087 Carp::confess function, among others. The reasoning is that we
1088 cannot know whether you have also explicitly imported those
1089 functions for your own use, so we err on the safe side and
1090 always keep them. (Dave Rolsky)
1091 - added tests for this (rafl)
1093 * Moose::Meta::Class
1094 - Changes to how we fix metaclass compatibility that are much
1095 too complicated to go into. The summary is that Moose is much
1096 less likely to complain about metaclass incompatibility
1097 now. In particular, if two metaclasses differ because
1098 Moose::Util::MetaRole was used on the two corresponding
1099 classes, then the difference in roles is reconciled for the
1100 subclass's metaclass. (Dave Rolsky)
1101 - Squashed an warning in _process_attribute (thepler)
1104 - throw exceptions (sooner) for invalid attribute names (thepler)
1105 - added tests for this (thepler)
1107 * Moose::Util::MetaRole
1108 - If you explicitly set a constructor or destructor class for a
1109 metaclass object, and then applied roles to the metaclass,
1110 that explicitly set class would be lost and replaced with the
1113 * Moose::Meta::Class
1114 * Moose::Meta::Attribute
1115 * Moose::Meta::Method
1118 * Moose::Error::Default
1119 * Moose::Error::Croak
1120 * Moose::Error::Confess
1121 - All instances of confess() changed to use overridable
1122 C<throw_error> method. This method ultimately calls a class
1123 constructor, and you can change the class being called. In
1124 addition, errors now pass more information than just a string.
1125 The default C<error_class> behaves like C<Carp::confess>, so
1126 the behavior is not visibly different for end users.
1128 0.57 Wed September 3, 2008
1130 - A new bit of doc intended to introduce folks familiar with
1131 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1133 * Moose::Unsweetened
1134 - Shows examples of two classes, each done first with and then
1135 without Moose. This makes a nice parallel to
1136 Moose::Intro. (Dave Rolsky)
1138 * Moose::Util::TypeConstraints
1139 - Fixed a bug in find_or_parse_type_constraint so that it
1140 accepts a Moose::Meta::TypeConstraint object as the parent
1141 type, not just a name (jnapiorkowski)
1142 - added tests (jnapiorkowski)
1145 - If Sub::Name was not present, unimporting failed to actually
1146 remove some sugar subs, causing test failures (Dave Rolsky)
1148 0.56 Mon September 1, 2008
1149 For those not following the series of dev releases, there are
1150 several major changes in this release of Moose.
1151 ! Moose::init_meta should now be called as a method. See the
1154 - Major performance improvements by nothingmuch.
1156 - New modules for extension writers, Moose::Exporter and
1157 Moose::Util::MetaRole by Dave Rolsky.
1159 - Lots of doc improvements and additions, especially in the
1162 - Various bug fixes.
1164 * Removed all references to the experimental-but-no-longer-needed
1165 Moose::Meta::Role::Application::ToMetaclassInstance.
1167 * Require Class::MOP 0.65.
1169 0.55_04 Sat August 30, 2008
1170 * Moose::Util::MetaRole
1171 * Moose::Cookbook::Extending::Recipe2
1172 - This simplifies the application of roles to any meta class, as
1173 well as the base object class. Reimplemented metaclass traits
1174 using this module. (Dave Rolsky)
1176 * Moose::Cookbook::Extending::Recipe1
1177 - This a new recipe, an overview of various ways to write Moose
1178 extensions (Dave Rolsky)
1180 * Moose::Cookbook::Extending::Recipe3
1181 * Moose::Cookbook::Extending::Recipe4
1182 - These used to be Extending::Recipe1 and Extending::Recipe2,
1185 0.55_03 Fri August 29, 2008
1186 * No changes from 0.55_02 except increasing the Class::MOP
1187 dependency to 0.64_07.
1189 0.55_02 Fri August 29, 2008
1190 * Makefile.PL and Moose.pm
1191 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1193 * Moose::Util::TypeConstraints
1194 - Fix warnings from find_type_constraint if the type is not
1197 * Moose::Meta::TypeConstraint
1198 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1199 return false if the type you specify cannot be found in the
1200 type registry, rather than throwing an unhelpful and
1201 coincidental exception. (t0m).
1202 - added docs & test for this (t0m)
1204 * Moose::Meta::TypeConstraint::Registry
1205 - add_type_constraint now throws an exception if a parameter is
1207 - added docs & test for this (t0m)
1209 * Moose::Cookbook::FAQ
1210 - Added a faq entry on the difference between "role" and "trait"
1214 - Fixed a bug that caused role composition to not see a required
1215 method when that method was provided by another role being
1216 composed at the same time. (Dave Rolsky)
1217 - test and bug finding (tokuhirom)
1219 0.55_01 Wed August 20, 2008
1221 !! Calling Moose::init_meta as a function is now !!
1222 !! deprecated. Please see the Moose.pm docs for details. !!
1224 * Moose::Meta::Method::Constructor
1225 - Fix inlined constructor so that values produced by default
1226 or builder methods are coerced as required. (t0m)
1227 - added test for this (t0m)
1229 * Moose::Meta::Attribute
1230 - A lazy attribute with a default or builder did not attempt to
1231 coerce the default value. The immutable code _did_
1233 - added test for this (t0m)
1236 - This is a new helper module for writing "Moose-alike"
1237 modules. This should make the lives of MooseX module authors
1238 much easier. (Dave Rolsky)
1241 * Moose::Cookbook::Meta::Recipe5
1242 - Implemented metaclass traits (and wrote a recipe for it):
1244 use Moose -traits => 'Foo'
1246 This should make writing small Moose extensions a little
1247 easier (Dave Rolsky)
1249 * Moose::Cookbook::Basics::Recipe1
1250 - Removed any examples of direct hashref access, and applied an
1251 editorial axe to reduce verbosity. (Dave Rolsky)
1253 * Moose::Cookbook::Basics::Recipe1
1254 - Also applied an editorial axe here. (Dave Rolsky)
1257 * Moose::Cookbook::Extending::Recipe1
1258 * Moose::Cookbook::Extending::Recipe2
1259 - Rewrote extending and embedding moose documentation and
1260 recipes to use Moose::Exporter (Dave Rolsky)
1264 - These two modules now warn when you load them from the main
1265 package "main" package, because we will not export sugar to
1266 main. Previously it just did nothing. (Dave Rolsky)
1269 - Now provide an init_meta method just like Moose.pm, and you
1270 can call this to provide an alternate role metaclass. (Dave
1271 Rolsky and nothingmuch)
1272 - get_method_map now respects the package cache flag (nothingmuch)
1275 - Two new methods - add_method and wrap_method_body
1279 - Optimizations including allowing constructors to accept hash
1280 refs, making many more classes immutable, and making
1281 constructors immutable. (nothingmuch)
1283 0.55 Sun August 3, 2008
1284 * Moose::Meta::Attribute
1285 - breaking down the way 'handles' methods are
1286 created so that the process can be more easily
1287 overridden by subclasses (stevan)
1289 * Moose::Meta::TypeConstraint
1290 - fixing what is passed into a ->message with
1291 the type constraints (RT #37569)
1292 - added tests for this (Charles Alderman)
1294 * Moose::Util::TypeConstraints
1295 - fix coerce to accept anon types like subtype can (mst)
1298 - reorganized the recipes into sections - Basics, Roles, Meta,
1299 Extending - and wrote abstracts for each section (Dave Rolsky)
1301 * Moose::Cookbook::Basics::Recipe10
1302 - A new recipe that demonstrates operator overloading
1303 in combination with Moose. (bluefeet)
1305 * Moose::Cookbook::Meta::Recipe1
1306 - an introduction to what meta is and why you'd want to make
1307 your own metaclass extensions (Dave Rolsky)
1309 * Moose::Cookbook::Meta::Recipe4
1310 - a very simple metaclass example (Dave Rolsky)
1312 * Moose::Cookbook::Extending::Recipe1
1313 - how to write a Moose-alike module to use your own object base
1316 * Moose::Cookbook::Extending::Recipe2
1317 - how to write modules with an API just like C<Moose.pm> (Dave
1321 - Tons of fixes, both syntactical and grammatical (Dave
1322 Rolsky, Paul Fenwick)
1324 0.54 Thurs. July 3, 2008
1325 ... this is not my day today ...
1327 * Moose::Meta::Attribute
1328 - fixed legal_options_for_inheritance such that
1329 clone_and_inherit options still works for
1330 Class::MOP::Attribute objects and therefore
1331 does not break MooseX::AttributeHelpers
1334 0.53 Thurs. July 3, 2008
1335 * Whoops, I guess I should run 'make manifest' before
1336 actually releasing the module. No actual changes
1337 in this release, except the fact that it includes
1338 the changes that I didn't include in the last
1341 0.52 Thurs. July 3, 2008
1343 - added "FEATURE REQUESTS" section to the Moose docs
1344 to properly direct people (stevan) (RT #34333)
1345 - making 'extends' croak if it is passed a Role since
1346 this is not ever something you want to do
1347 (fixed by stevan, found by obra)
1348 - added tests for this (stevan)
1351 - adding support for DOES (as in UNIVERSAL::DOES)
1353 - added test for this
1355 * Moose::Meta::Attribute
1356 - added legal_options_for_inheritance (wreis)
1357 - added tests for this (wreis)
1359 * Moose::Cookbook::Snacks::*
1360 - removed some of the unfinished snacks that should
1361 not have been released yet. Added some more examples
1362 to the 'Keywords' snack. (stevan)
1364 * Moose::Cookbook::Style
1365 - added general Moose "style guide" of sorts to the
1366 cookbook (nothingmuch) (RT #34335)
1369 - added more BUILDARGS tests (stevan)
1371 0.51 Thurs. Jun 26, 2008
1373 - add unimport so "no Moose::Role" actually does
1376 * Moose::Meta::Role::Application::ToRole
1377 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1378 order to provide its own implementation, that method still got
1379 added to the list of required methods for consumers of
1380 RoleB. Now an aliased method is only added to the list of
1381 required methods if the role doing the aliasing does not
1382 provide its own implementation. See Recipe 11 for an example
1383 of all this. (Dave Rolsky)
1384 - added tests for this
1386 * Moose::Meta::Method::Constructor
1387 - when a single argument that wasn't a hashref was provided to
1388 an immutabilized constructor, the error message was very
1389 unhelpful, as opposed to the non-immutable error. Reported by
1391 - added test for this (Dave Rolsky)
1393 * Moose::Meta::Attribute
1394 - added support for meta_attr->does("ShortAlias") (sartak)
1395 - added tests for this (sartak)
1396 - moved the bulk of the `handles` handling to the new
1397 install_delegation method (Stevan)
1400 - Added BUILDARGS, a new step in new()
1402 * Moose::Meta::Role::Application::RoleSummation
1403 - fix typos no one ever sees (sartak)
1405 * Moose::Util::TypeConstraints
1406 * Moose::Meta::TypeConstraint
1407 * Moose::Meta::TypeCoercion
1408 - Attempt to work around the ??{ } vs. threads issue
1410 - Some null_constraint optimizations
1412 0.50 Thurs. Jun 11, 2008
1413 - Fixed a version number issue by bumping all modules
1416 0.49 Thurs. Jun 11, 2008
1417 !! This version now approx. 20-25% !!
1418 !! faster with new Class::MOP 0.59 !!
1420 * Moose::Meta::Attribute
1421 - fixed how the is => (ro|rw) works with
1422 custom defined reader, writer and accessor
1424 - added docs for this (TODO).
1425 - added tests for this (Thanks to Penfold)
1426 - added the custom attribute alias for regular
1427 Moose attributes which is "Moose"
1428 - fix builder and default both being used
1433 Moose::Meta::Attribute
1435 Moose::Meta::Role::Composite
1436 Moose::Util::TypeConstraints
1437 - switched usage of reftype to ref because
1441 - changing add_package_symbol to use the new
1445 - fixed how DEMOLISHALL is called so that it
1446 can be overrided in subclasses (thanks to Sartak)
1447 - added test for this (thanks to Sartak)
1449 * Moose::Util::TypeConstraints
1450 - move the ClassName type check code to
1451 Class::MOP::is_class_loaded (thanks to Sartak)
1453 * Moose::Cookbook::Recipe11
1454 - add tests for this (thanks to tokuhirom)
1456 0.48 Thurs. May 29, 2008
1457 (early morning release engineering)--
1459 - fixing the version in Moose::Meta::Method::Destructor
1460 which was causing the indexer to choke
1462 0.47 Thurs. May 29, 2008
1463 (late night release engineering)--
1465 - fixing the version is META.yml, no functional
1466 changes in this release
1468 0.46 Wed. May 28, 2008
1469 !! This version now approx. 20-25% !!
1470 !! faster with new Class::MOP 0.57 !!
1472 * Moose::Meta::Class
1473 - some optimizations of the &initialize method
1474 since it is called so often by &meta
1476 * Moose::Meta::Class
1478 - now use the get_all_package_symbols from the
1479 updated Class::MOP, test suite is now 10 seconds
1482 * Moose::Meta::Method::Destructor
1483 - is_needed can now also be called as a class
1484 method for immutablization to check if the
1485 destructor object even needs to be created
1488 * Moose::Meta::Method::Destructor
1489 Moose::Meta::Method::Constructor
1490 - added more descriptive error message to help
1491 keep people from wasting time tracking an error
1492 that is easily fixed by upgrading.
1494 0.45 Saturday, May 24, 2008
1496 - Because of work in Class::MOP 0.57, all
1497 XS based functionality is now optional
1498 and a Pure Perl version is supplied
1499 - the CLASS_MOP_NO_XS environment variable
1500 can now be used to force non-XS versions
1502 - several of the packages have been tweaked
1503 to take care of this, mostly we added
1504 support for the package_name and name
1505 variables in all the Method metaclasses
1506 - before/around/after method modifiers now
1507 support regexp matching of names
1508 (thanks to Takatoshi Kitano)
1509 - tests added for this
1510 - NOTE: this only works for classes, it
1511 is currently not supported in roles,
1512 but, ... patches welcome
1513 - All usage of Carp::confess have been replaced
1514 by Carp::croak in the "keyword" functions since
1515 the stack trace is usually not helpful
1518 - All usage of Carp::confess have been replaced
1519 by Carp::croak in the "keyword" functions since
1520 the stack trace is usually not helpful
1521 - The 'has' keyword for roles now accepts the
1522 same array ref form that Moose.pm does
1523 (has [qw/foo bar/] => (is => 'rw', ...))
1524 - added test for this
1526 * Moose::Meta::Attribute
1527 - trigger on a ro-attribute is no longer an
1528 error, as it's useful to trigger off of the
1531 * Moose::Meta::Class
1532 - added same 'add_package_symbol' fix as in
1536 - does_role now handles non-Moose classes
1538 - added tests for this
1539 - added the 'add_method_modifier' function
1540 (thanks to Takatoshi Kitano)
1542 * Moose::Util::TypeConstraints
1543 - subtypes of parameterizable types now are
1544 themselves parameterizable types
1546 * Moose::Meta::Method::Constructor
1547 - fixed bug where trigger was not being
1548 called by the inlined immutable
1550 - added test for this (thanks to Caelum)
1552 * Moose::Meta::Role::Application::ToInstance
1553 - now uses the metaclass of the instance
1554 (if possible) to create the anon-class
1555 (thanks Jonathan Rockway)
1557 * Moose::Cookbook::Recipe22
1558 - added the meta-attribute trait recipe
1562 - fixed hash-ordering test bug that was
1563 causing occasional cpantester failures
1564 - renamed the t/000_recipe/*.t tests to be
1565 more descriptive (thanks to Sartak)
1567 0.44 Sat. May 10, 2008
1569 - made make_immutable warning cluck to
1570 show where the error is (thanks mst)
1573 - BUILDALL and DEMOLISHALL now call
1574 ->body when looping through the
1575 methods, to avoid the overloaded
1577 - fixed issue where DEMOLISHALL was
1578 eating the $@ values, and so not
1579 working correctly, it still kind of
1580 eats them, but so does vanilla perl
1581 - added tests for this
1583 * Moose::Cookbook::Recipe7
1584 - added new recipe for immutable
1585 functionality (thanks Dave Rolsky)
1587 * Moose::Cookbook::Recipe9
1588 - added new recipe for builder and
1589 lazy_build (thanks Dave Rolsky)
1591 * Moose::Cookbook::Recipe11
1592 - added new recipe for method aliasing
1593 and exclusion with Roles (thanks Dave Rolsky)
1596 - fixed Win32 test failure (thanks spicyjack)
1598 ~ removed Build.PL and Module::Build compat
1599 since Module::Install has done that.
1601 0.43 Wed. April, 30, 2008
1603 drink more coffee before
1604 doing release engineering
1606 - whoops, forgot to do the smolder tests,
1607 and we broke some of the custom meta-attr
1608 modules. This fixes that.
1610 0.42 Mon. April 28, 2008
1611 - some bad tests slipped by, nothing else
1612 changed in this release (cpantesters++)
1614 - upped the Class::MOP dependency to 0.55
1615 since we have tests which need the C3
1618 0.41 Mon. April 28, 2008
1619 ~~ numerous documentation updates ~~
1621 - Changed all usage of die to Carp::croak for better
1622 error reporting (initial patch by Tod Hagan)
1624 ** IMPORTANT NOTE **
1625 - the make_immutable keyword is now deprecated, don't
1626 use it in any new code and please fix your old code
1627 as well. There will be 2 releases, and then it will
1633 - refactored the way inner and super work to avoid
1634 any method/@ISA cache penalty (nothingmuch)
1636 * Moose::Meta::Class
1637 - fixing &new_object to make sure trigger gets the
1638 coerced value (spotted by Charles Alderman on the
1640 - added test for this
1642 * Moose::Meta::Method::Constructor
1643 - immutable classes which had non-lazy attributes were calling
1644 the default generating sub twice in the constructor. (bug
1645 found by Jesse Luehrs, fixed by Dave Rolsky)
1646 - added tests for this (Dave Rolsky)
1647 - fix typo in initialize_body method (nothingmuch)
1649 * Moose::Meta::Method::Destructor
1650 - fix typo in initialize_body method (nothingmuch)
1652 * Moose::Meta::Method::Overriden
1653 Moose::Meta::Method::Augmented
1654 - moved the logic for these into their own
1655 classes (nothingmuch)
1657 * Moose::Meta::Attribute
1658 - inherited attributes may now be extended without
1659 restriction on the type ('isa', 'does') (Sartak)
1660 - added tests for this (Sartak)
1661 - when an attribute property is malformed (such as lazy without
1662 a default), give the name of the attribute in the error
1664 - added the &applied_traits and &has_applied_traits methods
1665 to allow introspection of traits
1666 - added tests for this
1667 - moved 'trait' and 'metaclass' argument handling to here from
1669 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1670 '+foo' syntax) (nothingmuch)
1671 - added tests for this (t0m)
1674 - localize $@ inside DEMOLISHALL to avoid it
1675 eating $@ (found by Ernesto)
1676 - added test for this (thanks to Ernesto)
1678 * Moose::Util::TypeConstraints
1679 - &find_type_constraint now DWIMs when given an
1680 type constraint object or name (nothingmuch)
1681 - &find_or_create_type_constraint superseded with a number of more
1683 - find_or_create_{isa,does}_type_constraint
1684 - find_or_parse_type_constraint
1686 * Moose::Meta::TypeConstraint
1687 Moose::Meta::TypeConstraint::Class
1688 Moose::Meta::TypeConstraint::Role
1689 Moose::Meta::TypeConstraint::Enum
1690 Moose::Meta::TypeConstraint::Union
1691 Moose::Meta::TypeConstraint::Parameterized
1692 - added the &equals method for comparing two type
1693 constraints (nothingmuch)
1694 - added tests for this (nothingmuch)
1696 * Moose::Meta::TypeConstraint
1697 - add the &parents method, which is just an alias to &parent.
1698 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1700 * Moose::Meta::TypeConstraint::Class
1701 - added the class attribute for introspection purposes
1703 - added tests for this
1705 * Moose::Meta::TypeConstraint::Enum
1706 Moose::Meta::TypeConstraint::Role
1707 - broke these out into their own classes (nothingmuch)
1709 * Moose::Cookbook::Recipe*
1710 - fixed references to test file locations in the POD
1711 and updated up some text for new Moose features
1715 - Added &resolve_metaclass_alias, a helper function for finding an actual
1716 class for a short name (e.g. in the traits list)
1718 0.40 Fri. March 14, 2008
1719 - I hate Pod::Coverage
1721 0.39 Fri. March 14, 2008
1723 - documenting the use of '+name' with attributes
1724 that come from recently composed roles. It makes
1725 sense, people are using it, and so why not just
1726 officially support it.
1727 - fixing the 'extends' keyword so that it will not
1728 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1731 - added the perl -Moose=+Class::Name feature to allow
1732 monkeypatching of classes in one liners
1735 - fixing the 'apply_all_roles' keyword so that it will not
1736 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1738 * Moose::Meta::Class
1739 - added ->create method which now supports roles (thanks to jrockway)
1740 - added tests for this
1741 - added ->create_anon_class which now supports roles and caching of
1742 the results (thanks to jrockway)
1743 - added tests for this
1744 - made ->does_role a little more forgiving when it is
1745 checking a Class::MOP era metaclasses.
1747 * Moose::Meta::Role::Application::ToInstance
1748 - it is now possible to pass extra params to be used when
1749 a role is applied to an the instance (rebless_params)
1750 - added tests for this
1752 * Moose::Util::TypeConstraints
1753 - class_type now accepts an optional second argument for a
1754 custom message. POD anotated accordingly (groditi)
1755 - added tests for this
1756 - it is now possible to make anon-enums by passing 'enum' an
1757 ARRAY ref instead of the $name => @values. Everything else
1759 - added tests for this
1762 - making test for using '+name' on attributes consumed
1763 from a role, it works and makes sense too.
1765 * Moose::Meta::Attribute
1766 - fix handles so that it doesn't return nothing
1767 when the method cannot be found, not sure why
1768 it ever did this originally, this means we now
1769 have slightly better support for AUTOLOADed
1771 - added more delegation tests
1772 - adding ->does method to this so as to better
1773 support traits and their introspection.
1774 - added tests for this
1777 - localizing the Data::Dumper configurations so
1778 that it does not pollute others (RT #33509)
1779 - made ->does a little more forgiving when it is
1780 passed Class::MOP era metaclasses.
1782 0.38 Fri. Feb. 15, 2008
1783 * Moose::Meta::Attribute
1784 - fixed initializer to correctly do
1785 type checking and coercion in the
1787 - added tests for this
1790 - fixed some finicky tests (thanks to konobi)
1792 0.37 Thurs. Feb. 14, 2008
1794 - fixed some details in Moose::init_meta
1795 and its superclass handling (thanks thepler)
1796 - added tests for this (thanks thepler)
1797 - 'has' now dies if you don't pass in name
1799 - added the 'make_immutable' keyword as a shortcut
1802 * Moose::Meta::Class
1803 Moose::Meta::Method::Constructor
1804 Moose::Meta::Attribute
1805 - making (init_arg => undef) work here too
1806 (thanks to nothingmuch)
1808 * Moose::Meta::Attribute
1809 Moose::Meta::Method::Constructor
1810 Moose::Meta::Method::Accessor
1811 - make lazy attributes respect attr initializers (rjbs)
1812 - added tests for this
1814 * Moose::Util::TypeConstraints
1815 Moose::Util::TypeConstraints::OptimizedConstraints
1816 Moose::Meta::TypeConstraints
1817 Moose::Meta::Attribute
1818 Moose::Meta::Method::Constructor
1819 Moose::Meta::Method::Accessor
1820 - making type errors use the
1821 assigned message (thanks to Sartak)
1822 - added tests for this
1824 * Moose::Meta::Method::Destructor
1825 - making sure DESTROY gets inlined properly
1826 with successive DEMOLISH calls (thanks to manito)
1828 * Moose::Meta::Attribute
1829 Moose::Meta::Method::Accessor
1830 - fixed handling of undef with type constraints
1832 - added tests for this
1835 - added &get_all_init_args and &get_all_attribute_values
1836 (thanks to Sartak and nothingmuch)
1838 0.36 Sat. Jan. 26, 2008
1840 Moose::Meta::Attribute
1841 - role type tests now support when roles are
1842 applied to non-Moose classes (found by ash)
1843 - added tests for this (thanks to ash)
1844 - couple extra tests to boost code coverage
1846 * Moose::Meta::Method::Constructor
1847 - improved fix for handling Class::MOP attributes
1848 - added test for this
1850 * Moose::Meta::Class
1851 - handled the add_attribute($attribute_meta_object)
1853 - added test for this
1855 0.35 Tues. Jan. 22, 2008
1856 * Moose::Meta::Method::Constructor
1857 - fix to make sure even Class::MOP attributes
1858 are handled correctly (Thanks to Dave Rolsky)
1859 - added test for this (also Dave Rolsky)
1861 * Moose::Meta::Class
1862 - improved error message on _apply_all_roles,
1863 you should now use Moose::Util::apply_all_roles
1864 and you shouldnt have been using a _ prefixed
1865 method in the first place ;)
1867 0.34 Mon. Jan. 21, 2008
1868 ~~~ more misc. doc. fixes ~~~
1869 ~~ updated copyright dates ~~
1871 Moose is now a postmodern object system :)
1872 - (see the POD for details)
1874 * <<Role System Refactoring>>
1875 - this release contains a major reworking and
1876 cleanup of the role system
1877 - 100% backwards compat.
1878 - Role application now restructured into seperate
1879 classes based on type of applicants
1880 - Role summation (combining of more than one role)
1881 is much cleaner and anon-classes are no longer
1882 used in this process
1883 - new Composite role metaclass
1884 - runtime application of roles to instances
1885 is now more efficient and re-uses generated
1886 classes when applicable
1888 * <<New Role composition features>>
1889 - methods can now be excluded from a given role
1891 - methods can now be aliased to another name (and
1892 still retain the original as well)
1894 * Moose::Util::TypeConstraints::OptimizedConstraints
1895 - added this module (see above)
1897 * Moose::Meta::Class
1898 - fixed the &_process_attribute method to be called
1899 by &add_attribute, so that the API is now correct
1901 * Moose::Meta::Method::Accessor
1902 - fixed bug when passing a list of values to
1903 an accessor would get (incorrectly) ignored.
1904 Thanks to Sartak for finding this ;)
1905 - added tests for this (Sartak again)
1907 * Moose::Meta::Method::Accessor
1908 Moose::Meta::Method::Constructor
1909 Moose::Meta::Attribute
1910 Moose::Meta::TypeConstraint
1911 Moose::Meta::TypeCoercion
1912 - lots of cleanup of such things as:
1914 - type constraint handling
1915 - error handling/messages
1916 (thanks to nothingmuch)
1918 * Moose::Meta::TypeConstraint::Parameterizable
1919 - added this module to support the refactor
1920 in Moose::Meta::TypeConstraint::Parameterized
1922 * Moose::Meta::TypeConstraint::Parameterized
1923 - refactored how these types are handled so they
1924 are more generic and not confined to ArrayRef
1928 - shortened some file names for better VMS support (RT #32381)
1930 0.33 Fri. Dec. 14, 2007
1931 !! Moose now loads 2 x faster !!
1932 !! with new Class::MOP 0.49 !!
1934 ++ new oose.pm module to make command line
1935 Moose-ness easier (see POD docs for more)
1937 * Moose::Meta::Class
1939 - several tweaks to take advantage of the
1940 new method map caching in Class::MOP
1942 * Moose::Meta::TypeConstraint::Parameterized
1943 - allow subtypes of ArrayRef and HashRef to
1944 be used as a container (sartak)
1945 - added tests for this
1946 - basic support for coercion to ArrayRef and
1947 HashRef for containers (sartak)
1948 - added tests for this
1950 * Moose::Meta::TypeCoercion
1951 - coercions will now create subtypes as needed
1952 so you can now add coercions to parameterized
1953 types without having to explictly define them
1954 - added tests for this
1956 * Moose::Meta::Method::Accessor
1957 - allow subclasses to decide whether we need
1958 to copy the value into a new variable (sartak)
1960 0.32 Tues. Dec. 4, 2007
1961 * Moose::Util::TypeConstraints
1962 - fixing how subtype aliases of unions work
1963 they should inherit the parent's coercion
1964 - added tests for this
1965 - you can now define multiple coercions on
1966 a single type at different times instead of
1967 having to do it all in one place
1968 - added tests for this
1970 * Moose::Meta::TypeConstraint
1971 - there is now a default constraint of sub { 1 }
1972 instead of Moose::Util::TypeConstraints setting
1975 * Moose::Meta::TypeCoercion
1976 * Moose::Meta::TypeCoercion::Union
1977 - added the &has_coercion_for_type and
1978 &add_type_coercions methods to support the
1979 new features above (although you cannot add
1980 more type coercions for Union types)
1982 0.31 Mon. Nov. 26, 2007
1983 * Moose::Meta::Attribute
1984 - made the +attr syntax handle extending types with
1985 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1986 now works if the original foo is an ArrayRef.
1987 - added tests for this.
1988 - delegation now works even if the attribute does not
1989 have a reader method using the get_read_method_ref
1990 method from Class::MOP::Attribute.
1991 - added tests for this
1992 - added docs for this
1994 * Moose::Util::TypeConstraints
1995 - passing no "additional attribute info" to
1996 &find_or_create_type_constraint will no longer
1997 attempt to create an __ANON__ type for you,
1998 instead it will just return undef.
1999 - added docs for this
2001 0.30 Fri. Nov. 23, 2007
2002 * Moose::Meta::Method::Constructor
2003 -builder related bug in inlined constructor. (groditi)
2005 * Moose::Meta::Method::Accessor
2006 - genereate unnecessary calls to predicates and refactor
2007 code generation for runtime speed (groditi)
2009 * Moose::Util::TypeConstraints
2010 - fix ClassName constraint to introspect symbol table (mst)
2011 - added more tests for this (mst)
2012 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2013 with work correctly.
2014 - added tests for this
2017 - adding the link to Recipie 11 (written by Sartak)
2018 - adding test for SYNOPSIS code
2021 - New tests for builder bug. Upon instantiation, if an
2022 attribute had a builder, no value and was not lazy the
2023 builder default was not getting run, oops. (groditi)
2025 0.29 Tues. Nov. 13, 2007
2026 * Moose::Meta::Attribute
2027 - Fix error message on missing builder method (groditi)
2029 * Moose::Meta::Method::Accessor
2030 - Fix error message on missing builder method (groditi)
2033 - Add test to check for the correct error message when
2034 builder method is missing (groditi)
2036 0.28 Tues. Nov. 13, 2007
2037 - 0.27 packaged incorrectly (groditi)
2039 0.27 Tues. Nov. 13, 2007
2040 * Moose::Meta::Attribute
2041 - Added support for the new builder option (groditi)
2042 - Added support for lazy_build option (groditi)
2043 - Changed slot initialization for predicate changes (groditi)
2045 * Moose::Meta::Method::Accessor
2046 - Added support for lazy_build option (groditi)
2047 - Fix inline methods to work with corrected predicate
2050 * Moose::Meta::Method::Constructor
2051 - Added support for lazy_build option (groditi)
2054 - tests for builder and lazy_build (groditi)
2056 * fixing some misc. bits in the docs that
2057 got mentioned on CPAN Forum & perlmonks
2060 - fixed how required methods are handled
2061 when they encounter overriden or modified
2062 methods from a class (thanks to confound).
2063 - added tests for this
2065 * Moose::Util::TypeConstraint
2066 - fixed the type notation parser so that
2067 the | always creates a union and so is
2068 no longer a valid type char (thanks to
2069 konobi, mugwump and #moose for working
2071 - added more tests for this
2073 0.26 Thurs. Sept. 27, 2007
2076 * Parameterized Types
2077 We now support parameterized collection types, such as:
2078 ArrayRef[Int] # array or integers
2079 HashRef[Object] # a hash with object values
2080 They can also be nested:
2081 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2082 And work with the type unions as well:
2083 ArrayRef[Int | Str] # array of integers of strings
2085 * Better Framework Extendability
2086 Moose.pm is now "extendable" such that it is now much
2087 easier to extend the framework and add your own keywords
2088 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2089 section of the Moose.pm docs.
2092 In an effort to begin documenting some of the various
2093 details of Moose as well as some common idioms, we have
2094 created Moose::Cookbook::Snacks as a place to find
2095 small (easily digestable) nuggets of Moose code.
2098 ~ Several doc updates/cleanup thanks to castaway ~
2100 - converted build system to use Module::Install instead of
2101 Module::Build (thanks to jrockway)
2104 - added all the meta classes to the immutable list and
2105 set it to inline the accessors
2106 - fix import to allow Sub::Exporter like { into => }
2107 and { into_level => } (perigrin)
2108 - exposed and documented init_meta() to allow better
2109 embedding and extending of Moose (perigrin)
2112 - complete re-organization of the test suite
2113 - added some new tests as well
2114 - finally re-enabled the Moose::POOP test since
2115 the new version of DBM::Deep now works again
2118 * Moose::Meta::Class
2119 - fixed very odd and very nasty recursion bug with
2121 - added tests for this (eilara)
2123 * Moose::Meta::Attribute
2124 Moose::Meta::Method::Constructor
2125 Moose::Meta::Method::Accessor
2126 - fixed issue with overload::Overloaded getting called
2127 on non-blessed items. (RT #29269)
2128 - added tests for this
2130 * Moose::Meta::Method::Accessor
2131 - fixed issue with generated accessor code making
2132 assumptions about hash based classes (thanks to dexter)
2134 * Moose::Coookbook::Snacks
2135 - these are bits of documentation, not quite as big as
2136 Recipes but which have no clear place in the module docs.
2137 So they are Snacks! (horray for castaway++)
2139 * Moose::Cookbook::Recipe4
2140 - updated it to use the new ArrayRef[MyType] construct
2141 - updated the accompanying test as well
2143 +++ Major Refactor of the Type Constraint system +++
2144 +++ with new features added as well +++
2146 * Moose::Util::TypeConstraint
2147 - no longer uses package variable to keep track of
2148 the type constraints, now uses the an instance of
2149 Moose::Meta::TypeConstraint::Registry to do it
2150 - added more sophisticated type notation parsing
2152 - added tests for this
2154 * Moose::Meta::TypeConstraint
2155 - some minor adjustments to make subclassing easier
2156 - added the package_defined_in attribute so that we
2157 can track where the type constraints are created
2159 * Moose::Meta::TypeConstraint::Union
2160 - this is now been refactored to be a subclass of
2161 Moose::Meta::TypeConstraint
2163 * Moose::Meta::TypeCoercion::Union
2164 - this has been added to service the newly refactored
2165 Moose::Meta::TypeConstraint::Union and is itself
2166 a subclass of Moose::Meta::TypeCoercion
2168 * Moose::Meta::TypeConstraint::Parameterized
2169 - added this module (taken from MooseX::AttributeHelpers)
2170 to help construct nested collection types
2171 - added tests for this
2173 * Moose::Meta::TypeConstraint::Registry
2174 - added this class to keep track of type constraints
2176 0.25 Mon. Aug. 13, 2007
2178 - Documentation update to reference Moose::Util::TypeConstraints
2179 under 'isa' in 'has' for how to define a new type
2180 (thanks to shlomif).
2182 * Moose::Meta::Attribute
2183 - required attributes now will no longer accept undef
2184 from the constructor, even if there is a default and lazy
2185 - added tests for this
2186 - default subroutines must return a value which passes the
2188 - added tests for this
2190 * Moose::Meta::Attribute
2191 * Moose::Meta::Method::Constructor
2192 * Moose::Meta::Method::Accessor
2193 - type-constraint tests now handle overloaded objects correctly
2194 in the error message
2195 - added tests for this (thanks to EvanCarroll)
2197 * Moose::Meta::TypeConstraint::Union
2198 - added (has_)hand_optimized_constraint to this class so that
2199 it behaves as the regular Moose::Meta::TypeConstraint does.
2202 - large refactoring of this code
2203 - added several more tests
2204 - tests for subtle conflict resolition issues
2205 added, but not currently running
2208 * Moose::Cookbook::Recipe7
2209 - added new recipe for augment/inner functionality
2211 - added test for this
2214 - a formal definition of roles (still in progress)
2217 - utilities for easier working with Moose classes
2218 - added tests for these
2221 - This contains Moose specific test functions
2222 - added tests for these
2224 0.24 Tues. July 3, 2007
2225 ~ Some doc updates/cleanup ~
2227 * Moose::Meta::Attribute
2228 - added support for roles to be given as parameters
2229 to the 'handles' option.
2230 - added tests and docs for this
2231 - the has '+foo' attribute form now accepts changes to
2232 the lazy option, and the addition of a handles option
2233 (but not changing the handles option)
2234 - added tests and docs for this
2237 - required methods are now fetched using find_method_by_name
2238 so that required methods can come from superclasses
2239 - adjusted tests for this
2241 0.23 Mon. June 18, 2007
2242 * Moose::Meta::Method::Constructor
2243 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2244 * Moose::Meta::Class
2245 - Modify make_immutable to work with the new Class::MOP immutable
2246 mechanism + POD + very basic test (groditi)
2247 * Moose::Meta::Attribute
2248 - Fix handles to use goto() so that caller() comes out properly on
2249 the other side (perigrin)
2251 0.22 Thurs. May 31, 2007
2252 * Moose::Util::TypeConstraints
2253 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2254 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2255 prototypes for functions
2256 - added the ClassName type constraint, this checks for strings
2257 which will respond true to ->isa(UNIVERSAL).
2258 - added tests and docs for this
2259 - subtyping just in name now works correctly by making the
2260 default for where be { 1 }
2261 - added test for this
2263 * Moose::Meta::Method::Accessor
2264 - coerce and lazy now work together correctly, thanks to
2265 merlyn for finding this bug
2266 - tests added for this
2267 - fix reader presedence bug in Moose::Meta::Attribute + tests
2270 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2271 a HASH-ref and missed. This produces better error messages then
2272 having it die cause undef is not a HASH.
2273 - added tests for this
2275 0.21 Thursday, May 2nd, 2007
2277 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2278 - modified unimport to remove super and inner along with the rest
2279 - altered unimport tests to handle this
2282 - altered super export to populate SUPER_SLOT
2284 * Moose::Meta::Class
2285 - altered augment and override modifier application to use *_SLOT
2286 - modified tests for these to unimport one test class each to test
2289 - fixed issue where custom attribute metaclasses
2290 where not handled correctly in roles
2291 - added tests for this
2293 * Moose::Meta::Class
2294 - fixed issue where extending metaclasses with
2295 roles would blow up. Thanks to Aankhen`` for
2296 finding this insidious error, and it's solution.
2298 ~~ lots of spelling and grammer fixes in the docs,
2299 many many thanks to rlb3 and Aankhen for these :)
2301 0.20 Friday, April 6th, 2007
2302 >> I messed up the SKIP logic in one test
2303 so this release is just to fix that.
2306 - 'has' now also accepts an ARRAY ref
2307 to create multiple attrs (see docs)
2308 (thanks to konobi for this)
2309 - added tests and docs
2311 0.19 Thurs. April 5th, 2007
2312 ~~ More documentation updates ~~
2314 * Moose::Util::TypeConstraints
2315 - 'type' now supports messages as well
2316 thanks to phaylon for finding this
2317 - added tests for this
2318 - added &list_all_type_constraints and
2319 &list_all_builtin_type_constraints
2320 functions to facilitate introspection.
2322 * Moose::Meta::Attribute
2323 - fixed regexp 'handles' declarations
2324 to build the list of delegated methods
2325 correctly (and not override important
2326 things like &new) thanks to ashleyb
2328 - added tests and docs for this
2329 - added the 'documentation' attributes
2330 so that you can actually document your
2331 attributes and inspect them through the
2333 - added tests and docs for this
2335 * Moose::Meta::Class
2336 - when loading custom attribute metaclasses
2337 it will first look in for the class in the
2338 Moose::Meta::Attribute::Custom::$name, and
2339 then default to just loading $name.
2340 - added tests and docs for this
2342 * Moose::Meta::TypeConstraint
2343 - type constraints now stringify to their names.
2344 - added test for this
2347 - added tests to assure we work with Module::Refresh
2348 - added stricter test skip logic in the Moose POOP
2349 test, ask Rob Kinyon why.
2350 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2352 0.18 Sat. March 10, 2007
2353 ~~ Many, many documentation updates ~~
2356 - We now use Class::MOP::load_class to
2358 - added tests to show types and subtypes
2359 working with Declare::Constraints::Simple
2360 and Test::Deep as constraint engines.
2363 !! You must have Class::MOP 0.37_001 !!
2364 !! for this developer release to work !!
2366 This release was primarily adding the immutable
2367 feature to Moose. An immutable class is one which
2368 you promise not to alter. When you set the class
2369 as immutable it will perform various bits of
2370 memoization and inline certain part of the code
2371 (constructors, destructors and accessors). This
2372 minimizes (and in some cases totally eliminates)
2373 one of Moose's biggest performance hits. This
2374 feature is not on by default, and is 100% optional.
2375 It has several configurable bits as well, so you
2376 can pick and choose to your specific needs.
2378 The changes involved in this were fairly wide and
2379 highly specific, but 100% backwards compatible, so
2380 I am not going to enumerate them here. If you are
2381 truely interested in what was changed, please do
2384 0.17 Tues. Nov. 14, 2006
2385 * Moose::Meta::Method::Accessor
2386 - bugfix for read-only accessors which
2387 are have a type constraint and lazy.
2388 Thanks to chansen for finding it.
2390 0.16 Tues. Nov. 14, 2006
2392 There are some speed improvements in this release,
2393 but they are only the begining, so stay tuned.
2396 - BUILDALL and DEMOLISHALL no longer get
2397 called unless they actually need to be.
2398 This gave us a signifigant speed boost
2399 for the cases when there is no BUILD or
2400 DEMOLISH method present.
2402 * Moose::Util::TypeConstraints
2403 * Moose::Meta::TypeConstraint
2404 - added an 'optimize_as' option to the
2405 type constraint, which allows for a
2406 hand optimized version of the type
2407 constraint to be used when possible.
2408 - Any internally created type constraints
2409 now provide an optimized version as well.
2411 0.15 Sun. Nov. 5, 2006
2413 This version of Moose *must* have Class::MOP 0.36 in order
2414 to work correctly. A number of small internal tweaks have
2415 been made in order to be compatible with that release.
2417 * Moose::Util::TypeConstraints
2418 - added &unimport so that you can clean out
2419 your class namespace of these exported
2422 * Moose::Meta::Class
2423 - fixed minor issue which occasionally
2424 comes up during global destruction
2426 - moved Moose::Meta::Method::Overriden into
2430 - moved Moose::Meta::Role::Method into
2433 * Moose::Meta::Attribute
2434 - changed how we do type checks so that
2435 we reduce the overall cost, but still
2438 - moved accessor generation methods to
2439 Moose::Meta::Method::Accessor to
2440 conform to the API changes from
2443 * Moose::Meta::TypeConstraint
2444 - changed how constraints are compiled
2445 so that we do less recursion and more
2446 iteration. This makes the type check
2448 - moved Moose::Meta::TypeConstraint::Union
2451 * Moose::Meta::Method::Accessor
2452 - created this from methods formerly found in
2453 Moose::Meta::Attribute
2455 * Moose::Meta::Role::Method
2456 - moved this from Moose::Meta::Role
2458 * Moose::Meta::Method::Overriden
2459 - moved this from Moose::Meta::Class
2461 * Moose::Meta::TypeConstraint::Union
2462 - moved this from Moose::Meta::TypeConstraint
2464 0.14 Mon. Oct. 9, 2006
2466 * Moose::Meta::Attribute
2467 - fixed lazy attributes which were not getting
2468 checked with the type constraint (thanks ashley)
2469 - added tests for this
2470 - removed the over-enthusiastic DWIMery of the
2471 automatic ArrayRef and HashRef defaults, it
2472 broke predicates in an ugly way.
2473 - removed tests for this
2475 0.13 Sat. Sept. 30, 2006
2477 This version of Moose *must* have Class::MOP 0.35 in order
2478 to work correctly. A number of small internal tweaks have
2479 been made in order to be compatible with that release.
2482 - Removed the use of UNIVERSAL::require to be a better
2483 symbol table citizen and remove a dependency
2484 (thanks Adam Kennedy)
2486 **~~ removed experimental & undocumented feature ~~**
2487 - commented out the 'method' and 'self' keywords, see the
2488 comments for more info.
2491 - added a FAQ and WTF files to document frequently
2492 asked questions and common problems
2494 * Moose::Util::TypeConstraints
2495 - added GlobRef and FileHandle type constraint
2496 - added tests for this
2498 * Moose::Meta::Attribute
2499 - if your attribute 'isa' ArrayRef of HashRef, and you have
2500 not explicitly set a default, then make the default DWIM.
2501 This will also work for subtypes of ArrayRef and HashRef
2503 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2504 - new test added for this (thanks to ashley)
2507 - added basic support for runtime role composition
2508 but this is still *highly experimental*, so feedback
2509 is much appreciated :)
2510 - added tests for this
2512 * Moose::Meta::TypeConstraint
2513 - the type constraint now handles the coercion process
2514 through delegation, this is to support the coercion
2517 * Moose::Meta::TypeConstraint::Union
2518 - it is now possible for coercions to be performed
2520 - added tests for this (thanks to konobi)
2522 * Moose::Meta::TypeCoercion
2523 - properly capturing error when type constraint
2527 - Scalar::Util 1.18 is bad on Win32, so temporarily
2528 only require version 1.17 for Win32 and cygwin.
2529 (thanks Adam Kennedy)
2531 0.12 Sat. Sept. 1, 2006
2533 - Recipe5 (subtypes & coercion) has been written
2536 - fixed "bad meta" error message to be more descriptive
2537 - fixed &unimport to not remove the &inner and &super
2538 keywords because we need to localize them.
2539 - fixed number of spelling/grammer issues, thanks Theory :)
2541 **~~ experimental & undocumented feature ~~**
2542 - added the method and self keywords, they are basically
2543 just sugar, and they may not stay around.
2546 - added &dump method to easily Data::Dumper
2549 * Moose::Meta::TypeConstraint
2550 - added the &is_a_type_of method to check both the current
2551 and the subtype of a method (similar to &isa with classes)
2554 - this is now a subclass of Class::MOP::Module, and no longer
2555 creates the _role_meta ugliness of before.
2556 - fixed tests to reflect this change
2558 0.11 Wed. July 12, 2006
2560 - added an &unimport method to remove all the keywords
2561 that Moose will import, simply add 'no Moose' to the
2562 bottom of your class file.
2565 - fixed some test failures caused by a forgotten test
2568 0.10 Thurs. July 6, 2006
2570 - improved error message when loading modules so
2571 it is less confusing when you load a role.
2572 - added &calculate_all_roles method to
2573 Moose::Meta::Class and Moose::Meta::Role
2576 This module has been tested against Class::MOP 0.30
2577 but it does not yet utilize the optimizations
2578 it makes available. Stay tuned for that ;)
2580 0.09_03 Fri. June 23, 2006
2581 ++ DEVELOPER RELEASE ++
2583 - 'use strict' and 'use warnings' are no longer
2584 needed in Moose classes, Moose itself will
2585 turn them on for you.
2586 - added tests for this
2587 - moved code from exported subs to private methods
2588 in Moose::Meta::Class
2591 - as with Moose, strict and warnings are
2592 automatically turned on for you.
2593 - added tests for this
2596 - now handles an edge case for override errors
2597 - added tests for this
2598 - added some more edge case tests
2600 0.09_02 Tues. May 16, 2006
2601 ++ DEVELOPER RELEASE ++
2603 - added prototypes to the exported subs
2607 - added prototypes to the exported subs
2610 * Moose::Util::TypeConstraints
2611 - cleaned up prototypes for the subs
2614 0.09_01 Fri. May 12, 2006
2615 ++ DEVELOPER RELEASE ++
2616 - This release works in combination with
2617 Class::MOP 0.29_01, it is a developer
2618 release because it uses the a new
2619 instance sub-protocol and a fairly
2620 complete Role implementation. It has
2621 not yet been optimized, so it slower
2622 the the previous CPAN version. This
2623 release also lacks good updated docs,
2624 the official release will have updated docs.
2627 - refactored the keyword exports
2628 - 'with' now checks Role validaity and
2629 accepts more than one Role at a time
2630 - 'extends' makes metaclass adjustments as
2631 needed to ensure metaclass compatibility
2634 - refactored the keyword exports
2635 - 'with' now checks Role validaity and
2636 accepts more than one Role at a time
2638 * Moose::Util::TypeConstraints
2639 - added the 'enum' keyword for simple
2640 string enumerations which can be used as
2642 - see example of usage in t/202_example.t
2645 - more careful checking of params to new()
2648 - much work done on the role composition
2649 - many new tests for conflict detection
2650 and composition edge cases
2651 - not enough documentation, I suggest
2652 looking at the tests
2654 * Moose::Meta::Instance
2655 - added new Instance metaclass to support
2656 the new Class::MOP instance protocol
2658 * Moose::Meta::Class
2659 - some small changes to support the new
2661 - some small additions to support Roles
2663 * Moose::Meta::Attribute
2664 - some improvements to the accessor generation code
2666 - some small changes to support the new
2668 - (still somewhat) experimental delegation support
2669 with the 'handles' option
2670 - added several tests for this
2671 - no docs for this yet
2673 0.05 Thurs. April 27, 2006
2675 - keywords are now exported with Sub::Exporter
2676 thanks to chansen for this commit
2677 - has keyword now takes a 'metaclass' option
2678 to support custom attribute meta-classes
2679 on a per-attribute basis
2680 - added tests for this
2681 - the 'has' keyword not accepts inherited slot
2682 specifications (has '+foo'). This is still an
2683 experimental feature and probably not finished
2684 see t/038_attribute_inherited_slot_specs.t for
2685 more details, or ask about it on #moose
2686 - added tests for this
2689 - keywords are now exported with Sub::Exporter
2691 * Moose::Utils::TypeConstraints
2692 - reorganized the type constraint hierarchy, thanks
2693 to nothingmuch and chansen for his help and advice
2695 - added some tests for this
2696 - keywords are now exported with Sub::Exporter
2697 thanks to chansen for this commit
2699 * Moose::Meta::Class
2700 - due to changes in Class::MOP, we had to change
2701 construct_instance (for the better)
2703 * Moose::Meta::Attribute
2704 - due to changes in Class::MOP, we had to add the
2705 initialize_instance_slot method (it's a good thing)
2707 * Moose::Meta::TypeConstraint
2708 - added type constraint unions
2709 - added tests for this
2710 - added the is_subtype_of predicate method
2711 - added tests for this
2713 0.04 Sun. April 16th, 2006
2715 - Roles can now consume other roles
2716 - added tests for this
2717 - Roles can specify required methods now with
2718 the requires() keyword
2719 - added tests for this
2722 - ripped out much of it's guts ,.. much cleaner now
2723 - added required methods and correct handling of
2724 them in apply() for both classes and roles
2725 - added tests for this
2726 - no longer adds a does() method to consuming classes
2727 it relys on the one in Moose::Object
2728 - added roles attribute and some methods to support
2729 roles consuming roles
2731 * Moose::Meta::Attribute
2732 - added support for triggers on attributes
2733 - added tests for this
2734 - added support for does option on an attribute
2735 - added tests for this
2737 * Moose::Meta::Class
2738 - added support for attribute triggers in the
2740 - added tests for this
2743 - Moose no longer creates a subtype for your class
2744 if a subtype of the same name already exists, this
2745 should DWIM in 99.9999% of all cases
2747 * Moose::Util::TypeConstraints
2748 - fixed bug where incorrect subtype conflicts were
2750 - added test for this
2753 - this class can now be extended with 'use base' if
2754 you need it, it properly loads the metaclass class now
2755 - added test for this
2757 0.03_02 Wed. April 12, 2006
2759 - you must now explictly use Moose::Util::TypeConstraints
2760 it no longer gets exported for you automatically
2763 - new() now accepts hash-refs as well as key/value lists
2764 - added does() method to check for Roles
2765 - added tests for this
2767 * Moose::Meta::Class
2768 - added roles attribute along with the add_role() and
2770 - added tests for this
2773 - now adds a does() method to consuming classes
2774 which tests the class's hierarchy for roles
2775 - added tests for this
2777 0.03_01 Mon. April 10, 2006
2779 - added new Role recipe (no content yet, only code)
2782 - added 'with' keyword for Role support
2783 - added test and docs for this
2784 - fixed subtype quoting bug
2785 - added test for this
2789 - added test and docs
2791 * Moose::Util::TypeConstraints
2792 - added the message keyword to add custom
2793 error messages to type constraints
2796 - the meta role to support Moose::Role
2797 - added tests and docs
2799 * Moose::Meta::Class
2800 - moved a number of things from Moose.pm
2801 to here, they should have been here
2804 * Moose::Meta::Attribute
2805 - moved the attribute option macros here
2806 instead of putting them in Moose.pm
2808 * Moose::Meta::TypeConstraint
2809 - added the message attributes and the
2811 - added tests and docs for this
2813 0.03 Thurs. March 30, 2006
2815 - added the Moose::Cookbook with 5 recipes,
2816 describing all the stuff Moose can do.
2819 - fixed an issue with &extends super class loading
2820 it now captures errors and deals with inline
2821 packages correctly (bug found by mst, solution
2823 - added super/override & inner/augment features
2824 - added tests and docs for these
2827 - BUILDALL now takes a reference of the %params
2828 that are passed to &new, and passes that to
2831 * Moose::Util::TypeConstraints
2832 - Type constraints now survive runtime reloading
2833 - added test for this
2835 * Moose::Meta::Class
2836 - fixed the way attribute defaults are handled
2837 during instance construction (bug found by chansen)
2839 * Moose::Meta::Attribute
2840 - read-only attributes now actually enforce their
2841 read-only-ness (this corrected in Class::MOP as
2844 0.02 Tues. March 21, 2006
2846 - many more tests, fixing some bugs and
2848 - &extends now loads the base module with
2850 - added UNIVERSAL::require to the
2853 - each new Moose class will also create
2854 and register a subtype of Object which
2855 correspond to the new Moose class.
2856 - the 'isa' option in &has now only
2857 accepts strings, and will DWIM in
2860 * Moose::Util::TypeConstraints
2861 - added type coercion features
2862 - added tests for this
2863 - added support for this in attributes
2864 and instance construction
2866 - type construction no longer creates a
2867 function, it registers the type instead.
2868 - added several functions to get the
2872 - BUILDALL and DEMOLISHALL were broken
2873 because of a mis-named hash key, Whoops :)
2875 * Moose::Meta::Attribute
2876 - adding support for coercion in the
2877 autogenerated accessors
2879 * Moose::Meta::Class
2880 - adding support for coercion in the
2881 instance construction
2883 * Moose::Meta::TypeConstraint
2884 * Moose::Meta::TypeCoercion
2885 - type constraints and coercions are now
2886 full fledges meta-objects
2888 0.01 Wed. March 15, 2006
2889 - Moooooooooooooooooose!!!