1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 * Moose::Object::does no longer checks the entire inheritance tree, since
7 Moose::Meta::Class::does_role already does this. (doy)
8 * Moose::Object now has stubs for BUILD and DEMOLISH, so they can be safely
9 wrapped in roles without needing to provide your own stubs. (doy)
11 * Moose::Meta::Method::Delegation
12 * Moose::Meta::Attribute
13 - Delegations are now inlined on make_immutable and have file/line set
14 to the point at which the delegation was defined. (pdcawley)
16 0.94 Mon, Jan 18, 2010
20 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
24 * Improved support for anonymous roles by changing various APIs to take
25 Moose::Meta::Role objects as well as role names. This included
27 - Moose::Meta::Class->does_role
28 - Moose::Meta::Role->does_role
29 - Moose::Util::does_role
30 - Moose::Util::apply_all_roles
31 - Moose::Util::ensure_all_roles
32 - Moose::Util::search_class_by_role
34 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
38 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
39 work as long as the accessor method names are explicitly set to valid Perl
40 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
43 0.93_03 Tue, Jan 5, 2010
47 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
48 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
51 0.93_02 Tue, Jan 5, 2010
55 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
56 testers. (Dave Rolsky)
59 0.93_01 Mon, Jan 4, 2010
63 See Moose::Manual::Delta for more details on backwards compatiblity issues.
65 * Role attributes are now objects of the Moose::Meta::Role::Attribute
68 * There were major changes to how metaroles are applied. We now distinguish
69 between metaroles for classes vs those for roles. See the
70 Moose::Util::MetaRole docs for details. (Dave Rolsky)
72 * The old MetaRole API has been deprecated, but will continue to
73 work. However, if you are applying an attribute metaclass role, this may
74 break because of the fact that roles now have an attribute metaclass
77 * Moose::Util::MetaRole::apply_metaclass_roles is now called
78 apply_metaroles. The old name is deprecated. Dave Rolsky>
80 * The unimport subs created by Moose::Exporter now clean up re-exported
81 functions like blessed and confess, unless the caller imported them from
82 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
84 [ENHANCEMENTS AND BUG FIXES]
86 * Changed the Str constraint to accept magic lvalue strings like one gets from
87 substr et al, again. (sorear)
89 * Sped up the type constraint parsing regex. (Sam Vilain)
91 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
94 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
95 easier testing of TypeConstraints from the command line. (perigrin)
97 * Added a with_immutable test function to Test::Moose, to run a block of tests
98 with and without certain classes being immutable. (doy)
100 * We now use Module::Install extensions explicitly to avoid confusing errors
101 if they're not installed. We use Module::Install::AuthorRequires to stop
102 test extraction and general failures if you don't have the author side
103 dependencies installed.
105 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
106 #51791. (Amir E. Aharoni)
109 0.93 Thu, Nov 19, 2009
111 - Calling $object->new() is no longer deprecated, and no longer
115 - The get_attribute_map method is now deprecated. (Dave Rolsky)
117 * Moose::Meta::Method::Delegation
118 - Preserve variable aliasing in @_ for delegated methods, so that
119 altering @_ affects the passed value. (doy)
121 * Moose::Util::TypeConstraints
122 - Allow array refs for non-anonymous form of enum and duck_type, not
123 just anonymous. The non-arrayref forms may be removed in the
125 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
126 - Properly document Int being a subtype of Str. (doy)
129 - Moose::Exporter using modules can now export their functions to the
130 main package. This applied to Moose and Moose::Role, among
131 others. (nothingmuch)
133 * Moose::Meta::Attribute
134 - Don't remove attribute accessors we never installed, during
135 remove_accessors. (doy)
137 * Moose::Meta::Attribute::Native::Trait::Array
138 - Don't bypass prototype checking when calling List::Util::first, to
139 avoid a segfault when it is called with a non-code argument. (doy)
141 * Moose::Meta::Attribute::Native::Trait::Code
142 - Fix passing arguments to code execute helpers. (doy)
144 0.92 Tue, Sep 22, 2009
145 * Moose::Util::TypeConstraints
146 - added the match_on_type operator (Stevan)
147 - added tests and docs for this (Stevan)
150 - Metaclass compat fixing should already happen recursively, there's no
151 need to explicitly walk up the inheritance tree. (doy)
153 * Moose::Meta::Attribute
154 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
156 0.91 Thu, Sep 17, 2009
158 - Don't import any functions, in order to avoid polluting our namespace
159 with things that can look like methods (blessed, try, etc)
162 * Moose::Meta::Method::Constructor
163 - The generated code needs to called Scalar::Util::blessed by its
164 fully-qualified name or else Perl can interpret the call to blessed as
165 an indirect method call. This broke Search::GIN, which in turn broke
166 KiokuDB. (nothingmuch)
168 0.90 Tue, Sep 15, 2009
169 * Moose::Meta::Attribute::Native::Trait::Counter
170 * Moose::Meta::Attribute::Native::Trait::String
171 - For these two traits, an attribute which did not explicitly provide
172 methods to handles magically ended up delegating *all* the helper
173 methods. This has been removed. You must be explicit in your handles
174 declaration for all Native Traits. (Dave Rolsky)
177 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
178 sure to rethrow its error message. However, we also localize $@ before
179 this so that if all the DEMOLISH methods success, the value of $@ will
180 be preserved. (nothingmuch and Dave Rolsky)
181 - We now also localize $? during object destruction. (nothingmuch and
183 - The handling of DEMOLISH methods was broken for immutablized classes,
184 which were not receiving the value of
185 Devel::GlobalDestruction::in_global_destruction.
186 - These two fixes address some of RT #48271, reported by Zefram.
187 - This is all now documented in Moose::Manual::Construction.
188 - Calling $object->new() is now deprecated. A warning will be
192 - Added more hooks to customize how roles are applied. The role
193 summation class, used to create composite roles, can now be changed
194 and/or have meta-roles applied to it. (rafl)
195 - The get_method_list method no longer explicitly excludes the "meta"
196 method. This was a hack that has been replaced by better hacks. (Dave
199 * Moose::Meta::Method::Delegation
200 - fixed delegated methods to make sure that any modifiers attached to
201 the accessor being delegated on will be called (Stevan)
202 - added tests for this (Stevan)
205 - Moose no longer warns when a class that is being made immutable has
206 mutable ancestors. While in theory this is a good thing to warn about,
207 we found so many exceptions to this that doing this properly became
210 0.89_02 Thu, Sep 10, 2009
211 * Moose::Meta::Attribute::Native
212 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
214 * Moose::Meta::Attribute::Native::Trait::Array
215 - Added a number of functions from List::Util and List::MoreUtils,
216 including reduce, shuffle, uniq, and natatime. (doy)
219 - This module will now generate an init_meta method for your exporting
220 class if you pass it options for
221 Moose::Util::MetaRole::apply_metaclass_roles or
222 apply_base_class_roles. This eliminates a lot of repetitive
223 boilerplate for typical MooseX modules. (doy).
224 - Documented the with_meta feature, which is a replacement for
225 with_caller. This feature was added by josh a while ago.
226 - The with_caller feature is now deprecated, but will not issue a
227 warning yet. (Dave Rolsky)
228 - If you try to wrap/export a subroutine which doesn't actually exist,
229 Moose::Exporter will warn you about this. (doy)
231 * Moose::Meta::Role::Application::ToRole
232 - When a role aliased a method from another role, it was only getting
233 the new (aliased) name, not the original name. This differed from what
234 happens when a class aliases a role's methods. If you _only_ want the
235 aliased name, make sure to also exclue the original name. (Dave
238 0.89_01 Wed Sep 2, 2009
239 * Moose::Meta::Attribute
240 - Added the currying syntax for delegation from AttributeHelpers to the
241 existing delegation API. (hdp)
243 * Moose::Meta::Attribute::Native
244 - We have merged the functionality of MooseX::AttributeHelpers into the
245 Moose core with some API tweaks. You can continue to use
246 MooseX::AttributeHelpers, but it will not be maintained except
247 (perhaps) for critical bug fixes in the future. See
248 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
251 * Moose::Error::Croak
252 * Moose::Error::Confess
253 - Clarify documentation on how to use different error-throwing
254 modules. (Curtis Jewell)
257 - Correct POD for builder to point to Recipe8, not 9. (gphat)
260 - When a nonexistent sub name is passed to as_is, with_caller, or
261 with_meta, throw a warning and skip the exporting, rather than
262 installing a broken sub. (doy)
265 - Moose now warns if you call C<make_immutable> for a class with mutable
268 0.89 Thu Aug 13, 2009
269 * Moose::Manual::Attributes
270 - Clarify "is", include discussion of "bare". (Sartak)
272 * Moose::Meta::Role::Method::Conflicting
273 * Moose::Meta::Role::Application::ToClass
274 - For the first set of roles involved in a conflict, report all
275 unresolved method conflicts, not just the first method. Fixes #47210
276 reported by Ovid. (Sartak)
278 * Moose::Meta::TypeConstraint
279 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
282 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
284 - Allow specifying role options (alias, excludes, MXRP stuff) in the
285 arrayref passed to "use Moose -traits" (doy)
288 - Add functions meta_class_alias and meta_attribute_alias for creating
289 aliases for class and attribute metaclasses and metatraits. (doy)
291 * Moose::Meta::Attribute
292 * Moose::Meta::Method::Accessor
293 - A trigger now receives the old value as a second argument, if the
294 attribute had one. (Dave Rolsky)
296 * Moose::Meta::Method::Constructor
297 - Fix a bug with $obj->new when $obj has stringify overloading.
298 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
299 - However, we will probably deprecate $obj->new, so please don't start
300 using it for new code!
302 * Moose::Meta::Role::Application
303 * Moose::Meta::Role::Application::RoleSummation
304 - Rename alias and excludes to -alias and -excludes (but keep the old
305 names for now, for backcompat) (doy)
307 0.88 Fri Jul 24, 2009
308 * Moose::Manual::Contributing
309 - Re-write the Moose::Manual::Contributing document to reflect
310 the new layout and methods of work for the Git repository. All
311 work now should be done in topic branches and reviewed by a
312 core committer before being applied to master. All releases
313 are done by a cabal member and merged from master to
314 stable. This plan was devised by Yuval, blame him. (perigrin)
317 - Create metaclass attributes for the different role application
320 * Moose::Util::MetaRole
321 - Allow applying roles to a meta role's role application
324 * Moose::Meta::Attribute
325 - Add weak_ref to allowed options for "has '+foo'" (mst)
327 * Moose::Meta::Method::Accessor
328 - No longer uses inline_slot_access in accessors, to support
329 non-lvalue-based meta instances. (sorear)
332 * Moose::Meta::Method::Delegation
333 - Once again allow class names as well as objects for
334 delegation. This was changed in 0.86.
337 * Moose::Meta::Class::Immutable::Trait
338 - Fixes to work with the latest Class::MOP.
340 * Moose::Meta::Method::Delegation
341 - Delegation now dies with a more useful error message if the
342 attribute's accessor returns something defined but
345 0.85 Fri, Jun 26, 2009
346 * Moose::Meta::Attribute
347 - The warning for 'no associated methods' is now split out into
348 the _check_associated_methods method, so that extensions can
349 safely call 'after install_accessors => ...'. This fixes a
350 warning from MooseX::AttributeHelpers. (hdp)
352 0.84 Fri, Jun 26, 2009
354 - has now sets definition_context for attributes defined in
357 * Moose::Meta::Attribute
358 - When adding an attribute to a metaclass, if the attribute has
359 no associated methods, it will give a deprecation
361 - Methods generated by delegation were not being added to
362 associated_methods. (hdp)
363 - Attribute accessors (reader, writer, accessor, predicate,
364 clearer) now warn if they overwrite an existing method. (doy)
365 - Attribute constructors now warn very noisily about unknown (or
366 misspelled) arguments
368 * Moose::Util::TypeConstraints
369 - Deprecated the totally useless Role type name, which just
370 checked if $object->can('does'). Note that this is _not_ the
371 same as a type created by calling role_type('RoleName').
373 * Moose::Util::TypeConstraints
374 * Moose::Meta::TypeConstraint::DuckType
375 - Reify duck type from a regular subtype into an actual class
377 - Document this because Sartak did all my work for me
380 * Moose::Meta::Attribute
381 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
382 it is just a list of methods (Sartak)
385 - The get_*_method_modifiers methods would die if the role had
386 no modifiers of the given type (Robert Buels).
388 0.83 Tue, Jun 23, 2009
390 - Fix _construct_instance not setting the special __MOP__ object
391 key in instances of anon classes. (doy)
393 0.82 Sun, Jun 21, 2009
394 * Moose::Manual::Types
395 - Mention MooseX::Types early to avoid users falling down the
396 string parsing rathole (mst)
398 * Moose::Manual::MooseX
399 - Add warnings about class-level extensions and mention considering
400 using plain objects instead
402 0.81 Sun, Jun 7, 2009
403 * Bumped our Class::MOP prereq to the latest version (0.85), since
406 0.80 Sat, Jun 6, 2009
408 - Add FAQ about the coercion change from 0.76 because it came up
409 three times today (perigrin)
410 - Win doy $10 dollars because Sartak didn't think anybody
411 would document this fast enough (perigrin)
413 * Moose::Meta::Method::Destructor
414 - Inline a DESTROY method even if there are no DEMOLISH methods
415 to prevent unnecessary introspection in
416 Moose::Object::DEMOLISHALL
419 - A role's required methods are now represented by
420 Moose::Meta::Role::Method::Required objects. Conflicts are now
421 represented by Moose::Meta::Role::Method::Conflicting
422 objects. The benefit for end-users in that unresolved
423 conflicts generate different, more instructive, errors,
424 resolving Ovid's #44895. (Sartak)
427 - Improve the error message of "extends" as suggested by Adam
428 Kennedy and confound (Sartak)
429 - Link to Moose::Manual::Roles from Moose::Role as we now have
430 excellent documentation (Adam Kennedy)
433 - Update test suite for subname change in Class::MOP
435 - Add TODO test for infinite recursion in Moose::Meta::Class
438 0.79 Wed, May 13, 2009
440 - More fixes for Win32 problems. Reported by Robert Krimen.
443 - The DEMOLISHALL method could still blow up in some cases
444 during global destruction. This method has been made more
445 resilient in the face of global destruction's random garbage
449 - If you "also" a module that isn't loaded, the error message
450 now acknowledges that (Sartak)
453 - When your ->meta method does not return a Moose::Meta::Class,
454 the error message gave the wrong output (Sartak)
456 0.78 Tue, May 12, 2009
457 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
458 - Merged these documents into what is now Moose::Manual::FAQ
461 - Moved to Moose::Manual::Unsweetened
463 * Moose::Cookbook::Basics::Recipes 9-12
464 - Renamed to be 8-11, since recipe 8 did not exist
467 - Make Moose::Exporter import strict and warnings into packages
471 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
472 methods during global destruction (doy)
475 * Moose::Meta::Role::Application::ToClass
476 - Track the Role::Application objects created during class-role
480 - Fix metaclass incompatibility errors when extending a vanilla perl
481 class which isa Moose class with a metaclass role applied (t0m)
484 - Add a role-combination hook, _role_for_combination, for the
485 benefit of MooseX::Role::Parameterized (Sartak)
488 - Some tests were failing on Win32 because they explicit checked
489 warning output for newlines. Reported by Nickolay Platonov.
491 0.77 Sat, May 2, 2009
493 - Add explicit use of Devel::GlobalDestruction and Sub::Name
497 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
498 or not we are currently in global destruction (doy)
499 - Add explicit use of Devel::GlobalDestruction and Sub::Name
502 * Moose::Cookbook::FAQ
503 - Reworked much of the existing content to be more useful to
504 modern Moose hackers (Sartak)
507 - Depend on Class::MOP 0.83 instead of 0.82_01.
509 0.76 Mon, April 27, 2009
510 * Moose::Meta::TypeConstraint
511 - Do not run coercions in coerce() if the value already passes the type
514 * Moose::Meta::TypeConstraint::Class
515 - In validation error messages, specifically say that the value is not
516 an instance of the class. This should alleviate some frustrating
517 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
519 * Moose::Meta::Role::Application::ToClass
520 - Revert the class-overrides-role warning in favor of a solution outside
521 of the Moose core (Sartak)
524 - Make Test::Output optional again, since it's only used in a few files
527 0.75_01 Thu, April 23, 2009
528 * Moose::Meta::Role::Application::ToClass
529 - Moose now warns about each class overriding methods from roles it
533 - Warnings tests have standardized on Test::Output which is now an
534 unconditionally dependency (Sartak)
537 - Changes to immutabilization to work with Class::MOP 0.82_01+.
539 0.75 Mon, April 20, 2009
542 - Move validation of not inheriting from roles from Moose::extends to
543 Moose::Meta::Class::superclasses (doy)
546 - add ensure_all_roles() function to encapsulate the common "apply this
547 role unless the object already does it" pattern (hdp)
550 - Users can now select a different metaclass with the "-metaclass"
551 option to import, for classes and roles (Sartak)
554 - Make method_metaclass an attr so that it can accept a metarole
557 0.74 Tue, April 7, 2009
559 * Moose::Meta::Method::Destructor
560 - Include stack traces in the deprecation warnings.
564 - Removed the long-deprecated _apply_all_roles method.
566 * Moose::Meta::TypeConstraint
567 - Removed the long-deprecated union method.
570 0.73_02 Mon, April 6, 2009
571 * More deprecations and renamings
572 - Moose::Meta::Method::Constructor
573 - initialize_body => _initialize_body (this is always called
574 when an object is constructed)
577 - The DEMOLISHALL method could throw an exception during global
578 destruction, meaning that your class's DEMOLISH methods would
579 not be properly called. Reported by t0m.
581 * Moose::Meta::Method::Destructor
582 - Destructor inlining was totally broken by the change to the
583 is_needed method in 0.72_01. Now there is a test for this
584 feature, and it works again.
587 - Bold the word 'not' in the POD for find_meta (t0m)
589 0.73_01 Sun, April 5, 2009
591 - Call user_class->meta in fewer places, with the eventual goal
592 of allowing the user to rename or exclude ->meta
593 altogether. Instead uses Class::MOP::class_of. (Sartak)
595 * Moose::Meta::Method::Accessor
596 - If an attribute had a lazy default, and that value did not
597 pass the attribute's type constraint, it did not get the
598 message from the type constraint, instead using a generic
599 message. Test provided by perigrin.
601 * Moose::Util::TypeConstraints
602 - Add duck_type keyword. It's sugar over making sure an object
603 can() a list of methods. This is easier than jrockway's
604 suggestion to fork all of CPAN. (perigrin)
605 - add tests and documentation (perigrin)
608 - Document the fact that init_meta() returns the target class's
609 metaclass object. (hdp)
611 * Moose::Cookbook::Extending::Recipe1
612 * Moose::Cookbook::Extending::Recipe2
613 * Moose::Cookbook::Extending::Recipe3
614 * Moose::Cookbook::Extending::Recipe4
615 - Make init_meta() examples explicitly return the metaclass and
616 point out this fact. (hdp)
618 * Moose::Cookbook::Basics::Recipe12
619 - A new recipe, creating a custom meta-method class.
621 * Moose::Cookbook::Meta::Recipe6
622 - A new recipe, creating a custom meta-method class.
625 * Moose::Meta::Method::Constructor
626 - Attribute triggers no longer receive the meta-attribute object
627 as an argument in any circumstance. Previously, triggers
628 called during instance construction were passed the
629 meta-attribute, but triggers called by normal accessors were
630 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
632 * Moose::Manual::Attributes
633 - Remove references to triggers receving the meta-attribute object as an
636 * Moose::Cookbook::FAQ
637 - Remove recommendation for deprecated Moose::Policy and
638 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
641 * Many methods have been renamed with a leading underscore, and a
642 few have been deprecated entirely. The methods with a leading
643 underscore are consider "internals only". People writing
644 subclasses or extensions to Moose should feel free to override
645 them, but they are not for "public" use.
648 - check_metaclass_compatibility => _check_metaclass_compatibility
650 - Moose::Meta::Method::Accessor
651 - initialize_body => _initialize_body (this is always called
652 when an object is constructed)
653 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
655 - Moose::Meta::Method::Constructor
656 - initialize_body => _initialize_body (this is always called
657 when an object is constructed)
658 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
659 - attributes => _attributes (now inherited from parent)
660 - meta_instance => _meta_instance (now inherited from parent)
663 - alias_method is deprecated. Use add_method
665 0.73 Fri, March 29, 2009
666 * No changes from 0.72_01.
668 0.72_01 Thu, March 26, 2009
670 - Almost every module has complete API documentation. A few
671 methods (and even whole classes) have been intentionally
672 excluded pending some rethinking of their APIs.
674 * Moose::Util::TypeConstraints
675 - Calling subtype with a name as the only argument is now an
676 exception. If you want an anonymous subtype do:
678 my $subtype = subtype as 'Foo';
680 * Moose::Cookbook::Meta::Recipe7
681 - A new recipe, creating a custom meta-instance class.
683 * Moose::Cookbook::Basics::Recipe5
684 - Fix various typos and mistakes. Includes a patch from Radu
687 * Moose::Cookbook::Basics::Recipe9
688 - Link to this recipe from Moose.pm's builder blurb
691 - When wrapping a function with a prototype, Moose::Exporter now
692 makes sure the wrapped function still has the same
693 prototype. (Daisuke Maki)
695 * Moose::Meta::Attribute
696 - Allow a subclass to set lazy_build for an inherited
700 - Explicitly depend on Data::OptList. We already had this dependency
701 via Sub::Exporter, but since we're using it directly we're
702 better off with it listed. (Sartak)
704 * Moose::Meta::Method::Constructor
705 - Make it easier to subclass the inlining behaviour. (Ash
708 * Moose::Manual::Delta
709 - Details significant changes in the history of Moose, along
710 with recommended workarounds.
712 * Moose::Manual::Contributing
713 - Contributor's guide to Moose.
715 * Moose::Meta::Method::Constructor
716 - The long-deprecated intialize_body method has been removed
717 (yes, spelled like that).
719 * Moose::Meta::Method::Destructor
720 - This is_needed method is now always a class method.
723 - Changes to the internals of how make_immutable works to match
724 changes in latest Class::MOP.
726 0.72 Mon, February 23, 2009
728 * Moose::Meta::Method::Constructor
729 - A mutable class accepted Foo->new(undef) without complaint,
730 while an immutable class would blow up with an unhelpful
731 error. Now, in both cases we throw a helpful error
732 instead. Reported by doy.
734 0.71_01 Sun, February 22, 2009
736 - Hopefully fixed some POD errors in a few recipes that caused
737 them to display weird on search.cpan.org.
739 * Moose::Util::TypeConstraints
740 - Calling type or subtype without the sugar helpers (as, where,
741 message) is now deprecated.
742 - The subtype function tried hard to guess what you meant, but
743 often got it wrong. For example:
745 my $subtype = subtype as 'ArrayRef[Object]';
747 This caused an error in the past, but now works as you'd
751 - Make sure Moose.pm is loaded before calling
752 Moose->throw_error. This wasn't normally an issue, but could
753 bite you in weird cases.
755 0.71 Thu, February 19, 2009
756 * Moose::Cookbook::Basics::Recipe11
757 - A new recipe which demonstrates the use of BUILDARGS and
760 * Moose::Cookbook::Roles::Recipe3
761 - A new recipe, applying a role to an object instance. (Dave
765 - Allow overriding specific keywords from "also" packages. (doy)
768 - Replace hardcoded cookbook tests with Test::Inline to ensure
769 the tests match the actual code in the recipes. (Dave Rolsky)
772 - Working on the above turned up a number of little bugs in the
773 recipe code. (Dave Rolsky)
775 * Moose::Util::TypeConstraints::Optimized
776 - Just use Class::MOP for the optimized ClassName check. (Dave
779 0.70 Sat, February 14, 2009
780 * Moose::Util::TypeConstraints
781 - Added the RoleName type (stevan)
782 - added tests for this (stevan)
784 * Moose::Cookbook::Basics::Recipe3
785 - Updated the before qw[left right] sub to be a little more
786 defensive about what it accepts (stevan)
787 - added more tests to t/000_recipies/basics/003_binary_tree.t
791 - We now always call DEMOLISHALL, even if a class does not
792 define DEMOLISH. This makes sure that method modifiers on
793 DEMOLISHALL work as expected. (doy)
794 - added tests for this (EvanCarroll)
796 * Moose::Util::MetaRole
797 - Accept roles for the wrapped_method_metaclass (rafl)
798 - added tests for this (rafl)
800 * Moose::Meta::Attribute
801 - We no longer pass the meta-attribute object as a final
802 argument to triggers. This actually changed for inlined code a
803 while back, but the non-inlined version and the docs were
807 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
808 they require 0.11. (Dave Rolsky)
811 - Lots of small changes to the manual, cookbook, and
812 elsewhere. These were based on feedback from various
813 users, too many to list here. (Dave Rolsky)
815 0.69 Thu, February 12, 2009
817 - Make some keyword errors use throw_error instead of croak
818 since Moose::Exporter wraps keywords now (Sartak)
821 - Revised every recipe for style and clarity. Also moved some
822 documentation out of cookbook recipes and into Moose::Manual
823 pages. This work was funded as part of the Moose docs grant
824 from TPF. (Dave Rolsky)
826 * Moose::Meta::Method::Delegation
827 - If the attribute doing the delegation was not populated, the
828 error message did not specify the attribute name
831 0.68 Wed, February 4, 2009
833 - Many spelling, typo, and formatting fixes by daxim.
835 * Moose::Manual::Attributes
836 - The NAME section in the POD used "Attribute" so search.cpan
837 didn't resolve links from other documents properly.
839 * Moose::Meta::Method::Overriden
840 - Now properly spelled as Overridden. Thanks to daxim for
843 0.67 Tue, February 3, 2009
845 - Lots of little typo fixes and a few clarifications. Several
846 pages didn't have proper titles, and so weren't actually
847 visible on search.cpan.org. Thanks to hanekomu for a variety
848 of fixes and formatting improvements.
850 0.66 Tue, February 3, 2009
852 - This is a brand new, extensive manual for Moose. This aims to
853 provide a complete introduction to all of Moose's
854 features. This work was funded as part of the Moose docs grant
855 from TPF. (Dave Rolsky)
857 * Moose::Meta::Attribute
858 - Added a delegation_metaclass method to replace a hard-coded
859 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
861 * Moose::Util::TypeConstraints
862 - If you created a subtype and passed a parent that Moose didn't
863 know about, it simply ignored the parent. Now it automatically
864 creates the parent as a class type. This may not be what you
865 want, but is less broken than before. (Dave Rolsky)
867 * Moose::Util::TypeConstraints
868 - This module tried throw errors by calling Moose->throw_error,
869 but it did not ensure that Moose was loaded first. This could
870 cause very unhelpful errors when it tried to throw an error
871 before Moose was loaded. (Dave Rolsky)
873 * Moose::Util::TypeConstraints
874 - You could declare a name with subtype such as "Foo!Bar" that
875 would be allowed, but if you used it in a parameterized type
876 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
877 vetting on names created via the sugar functions, so that they
878 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
880 0.65 Thu, January 22, 2008
881 * Moose and Moose::Meta::Method::Overridden
882 - If an overridden method called super(), and then the
883 superclass's method (not overridden) _also_ called super(),
884 Moose went into an endless recursion loop. Test provided by
885 Chris Prather. (Dave Rolsky)
887 * Moose::Meta::TypeConstraint
888 - All methods are now documented. (gphat)
890 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
891 - Fixed some bogus failures that occurred because we tried to
892 validate filesystem paths in a very ad-hoc and
893 not-quite-correct way. (Dave Rolsky)
895 * Moose::Util::TypeConstraints
896 - Added maybe_type to exports. See docs for details. (rjbs)
899 - Added Moose::Util::TypeConstraints to the SEE ALSO
903 - Methods created via an attribute can now fulfill a "requires"
904 declaration for a role. (nothingmuch)
906 * Moose::Meta::Method::*
907 - Stack traces from inlined code will now report its line and
908 file as being in your class, as opposed to in Moose
911 0.64 Wed, December 31, 2008
912 * Moose::Meta::Method::Accessor
913 - Always inline predicate and clearer methods (Sartak)
915 * Moose::Meta::Attribute
916 - Support for parameterized traits (Sartak)
917 - verify_against_type_constraint method to avoid duplication
918 and enhance extensibility (Sartak)
921 - Tests (but no support yet) for parameterized traits (Sartak)
924 - Require Class::MOP 0.75+, which has the side effect of making
925 sure we work on Win32. (Dave Rolsky)
927 0.63 Mon, December 8, 2008
929 - Some small grammar tweaks and bug fixes in non-Moose example
932 0.62_02 Fri, December 5, 2008
933 * Moose::Meta::Role::Application::ToClass
934 - When a class does not provide all of a role's required
935 methods, the error thrown now mentions all of the missing
936 methods, as opposed to just the first one found. Requested by
937 Curtis Poe (RT #41119). (Dave Rolsky)
939 * Moose::Meta::Method::Constructor
940 - Moose will no longer inline a constructor for your class
941 unless it inherits its constructor from Moose::Object, and
942 will warn when it doesn't inline. If you want to force
943 inlining anyway, pass "replace_constructor => 1" to
944 make_immutable. Addresses RT #40968, reported by Jon
945 Swartz. (Dave Rolsky)
946 - The quoting of default values could be broken if the default
947 contained a single quote ('). Now we use quotemeta to escape
948 anything potentially dangerous in the defaults. (Dave Rolsky)
950 0.62_01 Wed, December 3, 2008
952 - use the method->execute API for BUILDALL
953 and DEMOLISHALL (Sartak)
955 * Moose::Util::TypeConstraints
956 - We now make all the type constraint meta classes immutable
957 before creating the default types provided by Moose. This
958 should make loading Moose a little faster. (Dave Rolsky)
960 0.62 Wed November 26, 2008
961 * Moose::Meta::Role::Application::ToClass
962 Moose::Meta::Role::Application::ToRole
963 - fixed issues where excluding and aliasing the
964 same methods for a single role did not work
965 right (worked just fine with multiple
967 - added test for this (stevan)
969 * Moose::Meta::Role::Application::RoleSummation
970 - fixed the error message when trying to compose
971 a role with a role it excludes (Sartak)
974 - Catch another case where recursion caused the value
975 of $CALLER to be stamped on (t0m)
976 - added test for this (t0m)
979 - Remove the make_immutable keyword, which has been
980 deprecated since April. It breaks metaclasses that
981 use Moose without no Moose (Sartak)
983 * Moose::Meta::Attribute
984 - Removing an attribute from a class now also removes delegation
985 (handles) methods installed for that attribute (t0m)
986 - added test for this (t0m)
988 * Moose::Meta::Method::Constructor
989 - An attribute with a default that looked like a number (but was
990 really a string) would accidentally be treated as a number
991 when the constructor was made immutable (perigrin)
992 - added test for this (perigrin)
995 - create method for constructing a role
997 - added test for this (Sartak)
998 - anonymous roles! (Sartak)
999 - added test for this (Sartak)
1002 - more consistent error messages (Sartak)
1004 * Moose::Cookbook::Roles::Recipe1
1005 - attempt to explain why a role that just requires
1006 methods is useful (Sartak)
1008 0.61 Fri November 7, 2008
1009 * Moose::Meta::Attribute
1010 - When passing a role to handles, it will be loaded if necessary
1013 * Moose::Meta::Class
1014 - Method objects returned by get_method (and other methods)
1015 Could end up being returned without an associated_metaclass
1016 attribute. Removing get_method_map, which is provided by
1017 Class::MOP::Class, fixed this. The Moose version did nothing
1018 different from its parent except introduce a bug. (Dave Rolsky)
1019 - added tests for this (jdv79)
1022 - Added a $VERSION to all .pm files which didn't have one. Fixes
1023 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1025 * Moose::Cookbook::Basics::Recipe4
1026 * Moose::Cookbook::Basics::Recipe6
1027 - These files had spaces on the first line of the SYNOPSIS, as
1028 opposed to a totally empty line. According to RT #40432, this
1029 confuses POD parsers. (Dave Rolsky)
1031 0.60 Fri October 24, 2008
1033 - Passing "-traits" when loading Moose caused the Moose.pm
1034 exports to be broken. Reported by t0m. (Dave Rolsky)
1035 - Tests for this bug. (t0m)
1038 - Change resolve_metaclass alias to use the new
1039 load_first_existing_class function. This makes it a lot
1040 simpler, and also around 5 times faster. (t0m)
1041 - Add caching to resolve_metaclass_alias, which gives an order
1042 of magnitude speedup to things which repeatedly call the
1043 Moose::Meta::Attribute->does method, notably MooseX::Storage
1046 * Moose::Util::TypeConstraint
1047 - Put back the changes for parameterized constraints that
1048 shouldn't have been removed in 0.59. We still cannot parse
1049 them, but MooseX modules can create them in some other
1050 way. See the 0.58 changes for more details. (jnapiorkowski)
1051 - Changed the way subtypes are created so that the job is
1052 delegated to a type constraint parent. This clears up some
1053 hardcoded checking and should allow correct subtypes of
1054 Moose::Meta::Type::Constraint. Don't rely on this new API too
1055 much (create_child_type) because it may go away in the
1056 future. (jnapiorkowski)
1058 * Moose::Meta::TypeConstraint::Union
1059 - Type constraint names are sorted as strings, not numbers.
1062 * Moose::Meta::TypeConstraint::Parameterizable
1063 - New parameterize method. This can be used as a factory method
1064 to make a new type constraint with a given parameterized
1065 type. (jnapiorkowski)
1066 - added tests (jnapiorkowski)
1068 0.59 Tue October 14, 2008
1070 - Add abridged documentation for builder/default/initializer/
1071 predicate, and link to more details sections in
1072 Class::MOP::Attribute. (t0m)
1074 * Moose::Util::TypeConstraints
1075 - removed prototypes from all but the &-based stuff (mst)
1077 * Moose::Util::TypeConstraints
1078 - Creating a anonymous subtype with both a constraint and a
1079 message failed with a very unhelpful error, but should just
1080 work. Reported by t0m. (Dave Rolsky)
1083 - Some tests that used Test::Warn if it was available failed
1084 with older versions of Test::Warn. Reported by Fayland. (Dave
1086 - Test firing behavior of triggers in relation to builder/default/
1088 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1089 kinds of supported type. (t0m)
1091 * Moose::Meta::Class
1092 - In create(), do not pass "roles" option to the superclass
1093 - added related test that creates an anon metaclass with
1094 a required attribute
1096 * Moose::Meta::TypeConstraint::Class
1097 * Moose::Meta::TypeConstraint::Role
1098 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1099 other types (as per change in 0.55_02). (t0m)
1101 * Moose::Meta::TypeConstraint::Registry
1102 - Fix warning when dealing with unknown type names (t0m)
1104 * Moose::Util::TypeConstraints
1105 - Reverted changes from 0.58 related to handle parameterized
1106 types. This caused random failures on BSD and Win32 systems,
1107 apparently related to the regex engine. This means that Moose
1108 can no longer parse structured type constraints like
1109 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1110 supported in a slightly different way via MooseX::Types some
1111 time in the future. (Dave Rolsky)
1113 0.58 Sat September 20, 2008
1114 !! This release has an incompatible change regarding !!
1115 !! how roles add methods to a class !!
1117 * Roles and role application
1118 ! Roles now add methods by calling add_method, not
1119 alias_method. They make sure to always provide a method
1120 object, which will be cloned internally. This means that it is
1121 now possible to track the source of a method provided by a
1122 role, and even follow its history through intermediate roles.
1124 This means that methods added by a role now show up when
1125 looking at a class's method list/map. (Dave Rolsky)
1128 - From this release on, we'll try to maintain a list of
1129 conflicting modules, and warn you if you have one
1130 installed. For example, this release conflicts with ...
1131 - MooseX::Singleton <= 0.11
1132 - MooseX::Params::Validate <= 0.05
1135 In general, we try to not break backwards compatibility for
1136 most Moose users, but MooseX modules and other code which
1137 extends Moose's metaclasses is often affected by very small
1138 changes in the Moose internals.
1140 * Moose::Meta::Method::Delegation
1141 * Moose::Meta::Attribute
1142 - Delegation methods now have their own method class. (Dave
1145 * Moose::Meta::TypeConstraint::Parameterizable
1146 - Added a new method 'parameterize' which is basically a factory
1147 for the containing constraint. This makes it easier to create
1148 new types of parameterized constraints. (jnapiorkowski)
1150 * Moose::Meta::TypeConstraint::Union
1151 - Changed the way Union types canonicalize their names to follow
1152 the normalized TC naming rules, which means we strip all
1153 whitespace. (jnapiorkowski)
1155 * Moose::Util::TypeConstraints
1156 - Parameter and Union args are now sorted, this makes Int|Str
1157 the same constraint as Str|Int. (jnapiorkowski)
1158 - Changes to the way Union types are parsed to more correctly
1159 stringify their names. (jnapiorkowski)
1160 - When creating a parameterized type, we now use the new
1161 parameterize method. (jnapiorkowski)
1162 - Incoming type constraint strings are now normalized to remove
1163 all whitespace differences. (jnapiorkowski)
1164 - Changed the way we parse type constraint strings so that we now
1165 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1166 constraints. This lays the foundation for more flexible type
1167 constraint implementations.
1169 * Tests and docs for all the above. (jnapiorkowski)
1173 - Moose::Exporter will no longer remove a subroutine that the
1174 exporting package re-exports. Moose re-exports the
1175 Carp::confess function, among others. The reasoning is that we
1176 cannot know whether you have also explicitly imported those
1177 functions for your own use, so we err on the safe side and
1178 always keep them. (Dave Rolsky)
1179 - added tests for this (rafl)
1181 * Moose::Meta::Class
1182 - Changes to how we fix metaclass compatibility that are much
1183 too complicated to go into. The summary is that Moose is much
1184 less likely to complain about metaclass incompatibility
1185 now. In particular, if two metaclasses differ because
1186 Moose::Util::MetaRole was used on the two corresponding
1187 classes, then the difference in roles is reconciled for the
1188 subclass's metaclass. (Dave Rolsky)
1189 - Squashed an warning in _process_attribute (thepler)
1192 - throw exceptions (sooner) for invalid attribute names (thepler)
1193 - added tests for this (thepler)
1195 * Moose::Util::MetaRole
1196 - If you explicitly set a constructor or destructor class for a
1197 metaclass object, and then applied roles to the metaclass,
1198 that explicitly set class would be lost and replaced with the
1201 * Moose::Meta::Class
1202 * Moose::Meta::Attribute
1203 * Moose::Meta::Method
1206 * Moose::Error::Default
1207 * Moose::Error::Croak
1208 * Moose::Error::Confess
1209 - All instances of confess() changed to use overridable
1210 C<throw_error> method. This method ultimately calls a class
1211 constructor, and you can change the class being called. In
1212 addition, errors now pass more information than just a string.
1213 The default C<error_class> behaves like C<Carp::confess>, so
1214 the behavior is not visibly different for end users.
1216 0.57 Wed September 3, 2008
1218 - A new bit of doc intended to introduce folks familiar with
1219 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1221 * Moose::Unsweetened
1222 - Shows examples of two classes, each done first with and then
1223 without Moose. This makes a nice parallel to
1224 Moose::Intro. (Dave Rolsky)
1226 * Moose::Util::TypeConstraints
1227 - Fixed a bug in find_or_parse_type_constraint so that it
1228 accepts a Moose::Meta::TypeConstraint object as the parent
1229 type, not just a name (jnapiorkowski)
1230 - added tests (jnapiorkowski)
1233 - If Sub::Name was not present, unimporting failed to actually
1234 remove some sugar subs, causing test failures (Dave Rolsky)
1236 0.56 Mon September 1, 2008
1237 For those not following the series of dev releases, there are
1238 several major changes in this release of Moose.
1239 ! Moose::init_meta should now be called as a method. See the
1242 - Major performance improvements by nothingmuch.
1244 - New modules for extension writers, Moose::Exporter and
1245 Moose::Util::MetaRole by Dave Rolsky.
1247 - Lots of doc improvements and additions, especially in the
1250 - Various bug fixes.
1252 * Removed all references to the experimental-but-no-longer-needed
1253 Moose::Meta::Role::Application::ToMetaclassInstance.
1255 * Require Class::MOP 0.65.
1257 0.55_04 Sat August 30, 2008
1258 * Moose::Util::MetaRole
1259 * Moose::Cookbook::Extending::Recipe2
1260 - This simplifies the application of roles to any meta class, as
1261 well as the base object class. Reimplemented metaclass traits
1262 using this module. (Dave Rolsky)
1264 * Moose::Cookbook::Extending::Recipe1
1265 - This a new recipe, an overview of various ways to write Moose
1266 extensions (Dave Rolsky)
1268 * Moose::Cookbook::Extending::Recipe3
1269 * Moose::Cookbook::Extending::Recipe4
1270 - These used to be Extending::Recipe1 and Extending::Recipe2,
1273 0.55_03 Fri August 29, 2008
1274 * No changes from 0.55_02 except increasing the Class::MOP
1275 dependency to 0.64_07.
1277 0.55_02 Fri August 29, 2008
1278 * Makefile.PL and Moose.pm
1279 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1281 * Moose::Util::TypeConstraints
1282 - Fix warnings from find_type_constraint if the type is not
1285 * Moose::Meta::TypeConstraint
1286 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1287 return false if the type you specify cannot be found in the
1288 type registry, rather than throwing an unhelpful and
1289 coincidental exception. (t0m).
1290 - added docs & test for this (t0m)
1292 * Moose::Meta::TypeConstraint::Registry
1293 - add_type_constraint now throws an exception if a parameter is
1295 - added docs & test for this (t0m)
1297 * Moose::Cookbook::FAQ
1298 - Added a faq entry on the difference between "role" and "trait"
1302 - Fixed a bug that caused role composition to not see a required
1303 method when that method was provided by another role being
1304 composed at the same time. (Dave Rolsky)
1305 - test and bug finding (tokuhirom)
1307 0.55_01 Wed August 20, 2008
1309 !! Calling Moose::init_meta as a function is now !!
1310 !! deprecated. Please see the Moose.pm docs for details. !!
1312 * Moose::Meta::Method::Constructor
1313 - Fix inlined constructor so that values produced by default
1314 or builder methods are coerced as required. (t0m)
1315 - added test for this (t0m)
1317 * Moose::Meta::Attribute
1318 - A lazy attribute with a default or builder did not attempt to
1319 coerce the default value. The immutable code _did_
1321 - added test for this (t0m)
1324 - This is a new helper module for writing "Moose-alike"
1325 modules. This should make the lives of MooseX module authors
1326 much easier. (Dave Rolsky)
1329 * Moose::Cookbook::Meta::Recipe5
1330 - Implemented metaclass traits (and wrote a recipe for it):
1332 use Moose -traits => 'Foo'
1334 This should make writing small Moose extensions a little
1335 easier (Dave Rolsky)
1337 * Moose::Cookbook::Basics::Recipe1
1338 - Removed any examples of direct hashref access, and applied an
1339 editorial axe to reduce verbosity. (Dave Rolsky)
1341 * Moose::Cookbook::Basics::Recipe1
1342 - Also applied an editorial axe here. (Dave Rolsky)
1345 * Moose::Cookbook::Extending::Recipe1
1346 * Moose::Cookbook::Extending::Recipe2
1347 - Rewrote extending and embedding moose documentation and
1348 recipes to use Moose::Exporter (Dave Rolsky)
1352 - These two modules now warn when you load them from the main
1353 package "main" package, because we will not export sugar to
1354 main. Previously it just did nothing. (Dave Rolsky)
1357 - Now provide an init_meta method just like Moose.pm, and you
1358 can call this to provide an alternate role metaclass. (Dave
1359 Rolsky and nothingmuch)
1360 - get_method_map now respects the package cache flag (nothingmuch)
1363 - Two new methods - add_method and wrap_method_body
1367 - Optimizations including allowing constructors to accept hash
1368 refs, making many more classes immutable, and making
1369 constructors immutable. (nothingmuch)
1371 0.55 Sun August 3, 2008
1372 * Moose::Meta::Attribute
1373 - breaking down the way 'handles' methods are
1374 created so that the process can be more easily
1375 overridden by subclasses (stevan)
1377 * Moose::Meta::TypeConstraint
1378 - fixing what is passed into a ->message with
1379 the type constraints (RT #37569)
1380 - added tests for this (Charles Alderman)
1382 * Moose::Util::TypeConstraints
1383 - fix coerce to accept anon types like subtype can (mst)
1386 - reorganized the recipes into sections - Basics, Roles, Meta,
1387 Extending - and wrote abstracts for each section (Dave Rolsky)
1389 * Moose::Cookbook::Basics::Recipe10
1390 - A new recipe that demonstrates operator overloading
1391 in combination with Moose. (bluefeet)
1393 * Moose::Cookbook::Meta::Recipe1
1394 - an introduction to what meta is and why you'd want to make
1395 your own metaclass extensions (Dave Rolsky)
1397 * Moose::Cookbook::Meta::Recipe4
1398 - a very simple metaclass example (Dave Rolsky)
1400 * Moose::Cookbook::Extending::Recipe1
1401 - how to write a Moose-alike module to use your own object base
1404 * Moose::Cookbook::Extending::Recipe2
1405 - how to write modules with an API just like C<Moose.pm> (Dave
1409 - Tons of fixes, both syntactical and grammatical (Dave
1410 Rolsky, Paul Fenwick)
1412 0.54 Thurs. July 3, 2008
1413 ... this is not my day today ...
1415 * Moose::Meta::Attribute
1416 - fixed legal_options_for_inheritance such that
1417 clone_and_inherit options still works for
1418 Class::MOP::Attribute objects and therefore
1419 does not break MooseX::AttributeHelpers
1422 0.53 Thurs. July 3, 2008
1423 * Whoops, I guess I should run 'make manifest' before
1424 actually releasing the module. No actual changes
1425 in this release, except the fact that it includes
1426 the changes that I didn't include in the last
1429 0.52 Thurs. July 3, 2008
1431 - added "FEATURE REQUESTS" section to the Moose docs
1432 to properly direct people (stevan) (RT #34333)
1433 - making 'extends' croak if it is passed a Role since
1434 this is not ever something you want to do
1435 (fixed by stevan, found by obra)
1436 - added tests for this (stevan)
1439 - adding support for DOES (as in UNIVERSAL::DOES)
1441 - added test for this
1443 * Moose::Meta::Attribute
1444 - added legal_options_for_inheritance (wreis)
1445 - added tests for this (wreis)
1447 * Moose::Cookbook::Snacks::*
1448 - removed some of the unfinished snacks that should
1449 not have been released yet. Added some more examples
1450 to the 'Keywords' snack. (stevan)
1452 * Moose::Cookbook::Style
1453 - added general Moose "style guide" of sorts to the
1454 cookbook (nothingmuch) (RT #34335)
1457 - added more BUILDARGS tests (stevan)
1459 0.51 Thurs. Jun 26, 2008
1461 - add unimport so "no Moose::Role" actually does
1464 * Moose::Meta::Role::Application::ToRole
1465 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1466 order to provide its own implementation, that method still got
1467 added to the list of required methods for consumers of
1468 RoleB. Now an aliased method is only added to the list of
1469 required methods if the role doing the aliasing does not
1470 provide its own implementation. See Recipe 11 for an example
1471 of all this. (Dave Rolsky)
1472 - added tests for this
1474 * Moose::Meta::Method::Constructor
1475 - when a single argument that wasn't a hashref was provided to
1476 an immutabilized constructor, the error message was very
1477 unhelpful, as opposed to the non-immutable error. Reported by
1479 - added test for this (Dave Rolsky)
1481 * Moose::Meta::Attribute
1482 - added support for meta_attr->does("ShortAlias") (sartak)
1483 - added tests for this (sartak)
1484 - moved the bulk of the `handles` handling to the new
1485 install_delegation method (Stevan)
1488 - Added BUILDARGS, a new step in new()
1490 * Moose::Meta::Role::Application::RoleSummation
1491 - fix typos no one ever sees (sartak)
1493 * Moose::Util::TypeConstraints
1494 * Moose::Meta::TypeConstraint
1495 * Moose::Meta::TypeCoercion
1496 - Attempt to work around the ??{ } vs. threads issue
1498 - Some null_constraint optimizations
1500 0.50 Thurs. Jun 11, 2008
1501 - Fixed a version number issue by bumping all modules
1504 0.49 Thurs. Jun 11, 2008
1505 !! This version now approx. 20-25% !!
1506 !! faster with new Class::MOP 0.59 !!
1508 * Moose::Meta::Attribute
1509 - fixed how the is => (ro|rw) works with
1510 custom defined reader, writer and accessor
1512 - added docs for this (TODO).
1513 - added tests for this (Thanks to Penfold)
1514 - added the custom attribute alias for regular
1515 Moose attributes which is "Moose"
1516 - fix builder and default both being used
1521 Moose::Meta::Attribute
1523 Moose::Meta::Role::Composite
1524 Moose::Util::TypeConstraints
1525 - switched usage of reftype to ref because
1529 - changing add_package_symbol to use the new
1533 - fixed how DEMOLISHALL is called so that it
1534 can be overrided in subclasses (thanks to Sartak)
1535 - added test for this (thanks to Sartak)
1537 * Moose::Util::TypeConstraints
1538 - move the ClassName type check code to
1539 Class::MOP::is_class_loaded (thanks to Sartak)
1541 * Moose::Cookbook::Recipe11
1542 - add tests for this (thanks to tokuhirom)
1544 0.48 Thurs. May 29, 2008
1545 (early morning release engineering)--
1547 - fixing the version in Moose::Meta::Method::Destructor
1548 which was causing the indexer to choke
1550 0.47 Thurs. May 29, 2008
1551 (late night release engineering)--
1553 - fixing the version is META.yml, no functional
1554 changes in this release
1556 0.46 Wed. May 28, 2008
1557 !! This version now approx. 20-25% !!
1558 !! faster with new Class::MOP 0.57 !!
1560 * Moose::Meta::Class
1561 - some optimizations of the &initialize method
1562 since it is called so often by &meta
1564 * Moose::Meta::Class
1566 - now use the get_all_package_symbols from the
1567 updated Class::MOP, test suite is now 10 seconds
1570 * Moose::Meta::Method::Destructor
1571 - is_needed can now also be called as a class
1572 method for immutablization to check if the
1573 destructor object even needs to be created
1576 * Moose::Meta::Method::Destructor
1577 Moose::Meta::Method::Constructor
1578 - added more descriptive error message to help
1579 keep people from wasting time tracking an error
1580 that is easily fixed by upgrading.
1582 0.45 Saturday, May 24, 2008
1584 - Because of work in Class::MOP 0.57, all
1585 XS based functionality is now optional
1586 and a Pure Perl version is supplied
1587 - the CLASS_MOP_NO_XS environment variable
1588 can now be used to force non-XS versions
1590 - several of the packages have been tweaked
1591 to take care of this, mostly we added
1592 support for the package_name and name
1593 variables in all the Method metaclasses
1594 - before/around/after method modifiers now
1595 support regexp matching of names
1596 (thanks to Takatoshi Kitano)
1597 - tests added for this
1598 - NOTE: this only works for classes, it
1599 is currently not supported in roles,
1600 but, ... patches welcome
1601 - All usage of Carp::confess have been replaced
1602 by Carp::croak in the "keyword" functions since
1603 the stack trace is usually not helpful
1606 - All usage of Carp::confess have been replaced
1607 by Carp::croak in the "keyword" functions since
1608 the stack trace is usually not helpful
1609 - The 'has' keyword for roles now accepts the
1610 same array ref form that Moose.pm does
1611 (has [qw/foo bar/] => (is => 'rw', ...))
1612 - added test for this
1614 * Moose::Meta::Attribute
1615 - trigger on a ro-attribute is no longer an
1616 error, as it's useful to trigger off of the
1619 * Moose::Meta::Class
1620 - added same 'add_package_symbol' fix as in
1624 - does_role now handles non-Moose classes
1626 - added tests for this
1627 - added the 'add_method_modifier' function
1628 (thanks to Takatoshi Kitano)
1630 * Moose::Util::TypeConstraints
1631 - subtypes of parameterizable types now are
1632 themselves parameterizable types
1634 * Moose::Meta::Method::Constructor
1635 - fixed bug where trigger was not being
1636 called by the inlined immutable
1638 - added test for this (thanks to Caelum)
1640 * Moose::Meta::Role::Application::ToInstance
1641 - now uses the metaclass of the instance
1642 (if possible) to create the anon-class
1643 (thanks Jonathan Rockway)
1645 * Moose::Cookbook::Recipe22
1646 - added the meta-attribute trait recipe
1650 - fixed hash-ordering test bug that was
1651 causing occasional cpantester failures
1652 - renamed the t/000_recipe/*.t tests to be
1653 more descriptive (thanks to Sartak)
1655 0.44 Sat. May 10, 2008
1657 - made make_immutable warning cluck to
1658 show where the error is (thanks mst)
1661 - BUILDALL and DEMOLISHALL now call
1662 ->body when looping through the
1663 methods, to avoid the overloaded
1665 - fixed issue where DEMOLISHALL was
1666 eating the $@ values, and so not
1667 working correctly, it still kind of
1668 eats them, but so does vanilla perl
1669 - added tests for this
1671 * Moose::Cookbook::Recipe7
1672 - added new recipe for immutable
1673 functionality (thanks Dave Rolsky)
1675 * Moose::Cookbook::Recipe9
1676 - added new recipe for builder and
1677 lazy_build (thanks Dave Rolsky)
1679 * Moose::Cookbook::Recipe11
1680 - added new recipe for method aliasing
1681 and exclusion with Roles (thanks Dave Rolsky)
1684 - fixed Win32 test failure (thanks spicyjack)
1686 ~ removed Build.PL and Module::Build compat
1687 since Module::Install has done that.
1689 0.43 Wed. April, 30, 2008
1691 drink more coffee before
1692 doing release engineering
1694 - whoops, forgot to do the smolder tests,
1695 and we broke some of the custom meta-attr
1696 modules. This fixes that.
1698 0.42 Mon. April 28, 2008
1699 - some bad tests slipped by, nothing else
1700 changed in this release (cpantesters++)
1702 - upped the Class::MOP dependency to 0.55
1703 since we have tests which need the C3
1706 0.41 Mon. April 28, 2008
1707 ~~ numerous documentation updates ~~
1709 - Changed all usage of die to Carp::croak for better
1710 error reporting (initial patch by Tod Hagan)
1712 ** IMPORTANT NOTE **
1713 - the make_immutable keyword is now deprecated, don't
1714 use it in any new code and please fix your old code
1715 as well. There will be 2 releases, and then it will
1721 - refactored the way inner and super work to avoid
1722 any method/@ISA cache penalty (nothingmuch)
1724 * Moose::Meta::Class
1725 - fixing &new_object to make sure trigger gets the
1726 coerced value (spotted by Charles Alderman on the
1728 - added test for this
1730 * Moose::Meta::Method::Constructor
1731 - immutable classes which had non-lazy attributes were calling
1732 the default generating sub twice in the constructor. (bug
1733 found by Jesse Luehrs, fixed by Dave Rolsky)
1734 - added tests for this (Dave Rolsky)
1735 - fix typo in initialize_body method (nothingmuch)
1737 * Moose::Meta::Method::Destructor
1738 - fix typo in initialize_body method (nothingmuch)
1740 * Moose::Meta::Method::Overriden
1741 Moose::Meta::Method::Augmented
1742 - moved the logic for these into their own
1743 classes (nothingmuch)
1745 * Moose::Meta::Attribute
1746 - inherited attributes may now be extended without
1747 restriction on the type ('isa', 'does') (Sartak)
1748 - added tests for this (Sartak)
1749 - when an attribute property is malformed (such as lazy without
1750 a default), give the name of the attribute in the error
1752 - added the &applied_traits and &has_applied_traits methods
1753 to allow introspection of traits
1754 - added tests for this
1755 - moved 'trait' and 'metaclass' argument handling to here from
1757 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1758 '+foo' syntax) (nothingmuch)
1759 - added tests for this (t0m)
1762 - localize $@ inside DEMOLISHALL to avoid it
1763 eating $@ (found by Ernesto)
1764 - added test for this (thanks to Ernesto)
1766 * Moose::Util::TypeConstraints
1767 - &find_type_constraint now DWIMs when given an
1768 type constraint object or name (nothingmuch)
1769 - &find_or_create_type_constraint superseded with a number of more
1771 - find_or_create_{isa,does}_type_constraint
1772 - find_or_parse_type_constraint
1774 * Moose::Meta::TypeConstraint
1775 Moose::Meta::TypeConstraint::Class
1776 Moose::Meta::TypeConstraint::Role
1777 Moose::Meta::TypeConstraint::Enum
1778 Moose::Meta::TypeConstraint::Union
1779 Moose::Meta::TypeConstraint::Parameterized
1780 - added the &equals method for comparing two type
1781 constraints (nothingmuch)
1782 - added tests for this (nothingmuch)
1784 * Moose::Meta::TypeConstraint
1785 - add the &parents method, which is just an alias to &parent.
1786 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1788 * Moose::Meta::TypeConstraint::Class
1789 - added the class attribute for introspection purposes
1791 - added tests for this
1793 * Moose::Meta::TypeConstraint::Enum
1794 Moose::Meta::TypeConstraint::Role
1795 - broke these out into their own classes (nothingmuch)
1797 * Moose::Cookbook::Recipe*
1798 - fixed references to test file locations in the POD
1799 and updated up some text for new Moose features
1803 - Added &resolve_metaclass_alias, a helper function for finding an actual
1804 class for a short name (e.g. in the traits list)
1806 0.40 Fri. March 14, 2008
1807 - I hate Pod::Coverage
1809 0.39 Fri. March 14, 2008
1811 - documenting the use of '+name' with attributes
1812 that come from recently composed roles. It makes
1813 sense, people are using it, and so why not just
1814 officially support it.
1815 - fixing the 'extends' keyword so that it will not
1816 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1819 - added the perl -Moose=+Class::Name feature to allow
1820 monkeypatching of classes in one liners
1823 - fixing the 'apply_all_roles' keyword so that it will not
1824 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1826 * Moose::Meta::Class
1827 - added ->create method which now supports roles (thanks to jrockway)
1828 - added tests for this
1829 - added ->create_anon_class which now supports roles and caching of
1830 the results (thanks to jrockway)
1831 - added tests for this
1832 - made ->does_role a little more forgiving when it is
1833 checking a Class::MOP era metaclasses.
1835 * Moose::Meta::Role::Application::ToInstance
1836 - it is now possible to pass extra params to be used when
1837 a role is applied to an the instance (rebless_params)
1838 - added tests for this
1840 * Moose::Util::TypeConstraints
1841 - class_type now accepts an optional second argument for a
1842 custom message. POD anotated accordingly (groditi)
1843 - added tests for this
1844 - it is now possible to make anon-enums by passing 'enum' an
1845 ARRAY ref instead of the $name => @values. Everything else
1847 - added tests for this
1850 - making test for using '+name' on attributes consumed
1851 from a role, it works and makes sense too.
1853 * Moose::Meta::Attribute
1854 - fix handles so that it doesn't return nothing
1855 when the method cannot be found, not sure why
1856 it ever did this originally, this means we now
1857 have slightly better support for AUTOLOADed
1859 - added more delegation tests
1860 - adding ->does method to this so as to better
1861 support traits and their introspection.
1862 - added tests for this
1865 - localizing the Data::Dumper configurations so
1866 that it does not pollute others (RT #33509)
1867 - made ->does a little more forgiving when it is
1868 passed Class::MOP era metaclasses.
1870 0.38 Fri. Feb. 15, 2008
1871 * Moose::Meta::Attribute
1872 - fixed initializer to correctly do
1873 type checking and coercion in the
1875 - added tests for this
1878 - fixed some finicky tests (thanks to konobi)
1880 0.37 Thurs. Feb. 14, 2008
1882 - fixed some details in Moose::init_meta
1883 and its superclass handling (thanks thepler)
1884 - added tests for this (thanks thepler)
1885 - 'has' now dies if you don't pass in name
1887 - added the 'make_immutable' keyword as a shortcut
1890 * Moose::Meta::Class
1891 Moose::Meta::Method::Constructor
1892 Moose::Meta::Attribute
1893 - making (init_arg => undef) work here too
1894 (thanks to nothingmuch)
1896 * Moose::Meta::Attribute
1897 Moose::Meta::Method::Constructor
1898 Moose::Meta::Method::Accessor
1899 - make lazy attributes respect attr initializers (rjbs)
1900 - added tests for this
1902 * Moose::Util::TypeConstraints
1903 Moose::Util::TypeConstraints::OptimizedConstraints
1904 Moose::Meta::TypeConstraints
1905 Moose::Meta::Attribute
1906 Moose::Meta::Method::Constructor
1907 Moose::Meta::Method::Accessor
1908 - making type errors use the
1909 assigned message (thanks to Sartak)
1910 - added tests for this
1912 * Moose::Meta::Method::Destructor
1913 - making sure DESTROY gets inlined properly
1914 with successive DEMOLISH calls (thanks to manito)
1916 * Moose::Meta::Attribute
1917 Moose::Meta::Method::Accessor
1918 - fixed handling of undef with type constraints
1920 - added tests for this
1923 - added &get_all_init_args and &get_all_attribute_values
1924 (thanks to Sartak and nothingmuch)
1926 0.36 Sat. Jan. 26, 2008
1928 Moose::Meta::Attribute
1929 - role type tests now support when roles are
1930 applied to non-Moose classes (found by ash)
1931 - added tests for this (thanks to ash)
1932 - couple extra tests to boost code coverage
1934 * Moose::Meta::Method::Constructor
1935 - improved fix for handling Class::MOP attributes
1936 - added test for this
1938 * Moose::Meta::Class
1939 - handled the add_attribute($attribute_meta_object)
1941 - added test for this
1943 0.35 Tues. Jan. 22, 2008
1944 * Moose::Meta::Method::Constructor
1945 - fix to make sure even Class::MOP attributes
1946 are handled correctly (Thanks to Dave Rolsky)
1947 - added test for this (also Dave Rolsky)
1949 * Moose::Meta::Class
1950 - improved error message on _apply_all_roles,
1951 you should now use Moose::Util::apply_all_roles
1952 and you shouldnt have been using a _ prefixed
1953 method in the first place ;)
1955 0.34 Mon. Jan. 21, 2008
1956 ~~~ more misc. doc. fixes ~~~
1957 ~~ updated copyright dates ~~
1959 Moose is now a postmodern object system :)
1960 - (see the POD for details)
1962 * <<Role System Refactoring>>
1963 - this release contains a major reworking and
1964 cleanup of the role system
1965 - 100% backwards compat.
1966 - Role application now restructured into seperate
1967 classes based on type of applicants
1968 - Role summation (combining of more than one role)
1969 is much cleaner and anon-classes are no longer
1970 used in this process
1971 - new Composite role metaclass
1972 - runtime application of roles to instances
1973 is now more efficient and re-uses generated
1974 classes when applicable
1976 * <<New Role composition features>>
1977 - methods can now be excluded from a given role
1979 - methods can now be aliased to another name (and
1980 still retain the original as well)
1982 * Moose::Util::TypeConstraints::OptimizedConstraints
1983 - added this module (see above)
1985 * Moose::Meta::Class
1986 - fixed the &_process_attribute method to be called
1987 by &add_attribute, so that the API is now correct
1989 * Moose::Meta::Method::Accessor
1990 - fixed bug when passing a list of values to
1991 an accessor would get (incorrectly) ignored.
1992 Thanks to Sartak for finding this ;)
1993 - added tests for this (Sartak again)
1995 * Moose::Meta::Method::Accessor
1996 Moose::Meta::Method::Constructor
1997 Moose::Meta::Attribute
1998 Moose::Meta::TypeConstraint
1999 Moose::Meta::TypeCoercion
2000 - lots of cleanup of such things as:
2002 - type constraint handling
2003 - error handling/messages
2004 (thanks to nothingmuch)
2006 * Moose::Meta::TypeConstraint::Parameterizable
2007 - added this module to support the refactor
2008 in Moose::Meta::TypeConstraint::Parameterized
2010 * Moose::Meta::TypeConstraint::Parameterized
2011 - refactored how these types are handled so they
2012 are more generic and not confined to ArrayRef
2016 - shortened some file names for better VMS support (RT #32381)
2018 0.33 Fri. Dec. 14, 2007
2019 !! Moose now loads 2 x faster !!
2020 !! with new Class::MOP 0.49 !!
2022 ++ new oose.pm module to make command line
2023 Moose-ness easier (see POD docs for more)
2025 * Moose::Meta::Class
2027 - several tweaks to take advantage of the
2028 new method map caching in Class::MOP
2030 * Moose::Meta::TypeConstraint::Parameterized
2031 - allow subtypes of ArrayRef and HashRef to
2032 be used as a container (sartak)
2033 - added tests for this
2034 - basic support for coercion to ArrayRef and
2035 HashRef for containers (sartak)
2036 - added tests for this
2038 * Moose::Meta::TypeCoercion
2039 - coercions will now create subtypes as needed
2040 so you can now add coercions to parameterized
2041 types without having to explictly define them
2042 - added tests for this
2044 * Moose::Meta::Method::Accessor
2045 - allow subclasses to decide whether we need
2046 to copy the value into a new variable (sartak)
2048 0.32 Tues. Dec. 4, 2007
2049 * Moose::Util::TypeConstraints
2050 - fixing how subtype aliases of unions work
2051 they should inherit the parent's coercion
2052 - added tests for this
2053 - you can now define multiple coercions on
2054 a single type at different times instead of
2055 having to do it all in one place
2056 - added tests for this
2058 * Moose::Meta::TypeConstraint
2059 - there is now a default constraint of sub { 1 }
2060 instead of Moose::Util::TypeConstraints setting
2063 * Moose::Meta::TypeCoercion
2064 * Moose::Meta::TypeCoercion::Union
2065 - added the &has_coercion_for_type and
2066 &add_type_coercions methods to support the
2067 new features above (although you cannot add
2068 more type coercions for Union types)
2070 0.31 Mon. Nov. 26, 2007
2071 * Moose::Meta::Attribute
2072 - made the +attr syntax handle extending types with
2073 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2074 now works if the original foo is an ArrayRef.
2075 - added tests for this.
2076 - delegation now works even if the attribute does not
2077 have a reader method using the get_read_method_ref
2078 method from Class::MOP::Attribute.
2079 - added tests for this
2080 - added docs for this
2082 * Moose::Util::TypeConstraints
2083 - passing no "additional attribute info" to
2084 &find_or_create_type_constraint will no longer
2085 attempt to create an __ANON__ type for you,
2086 instead it will just return undef.
2087 - added docs for this
2089 0.30 Fri. Nov. 23, 2007
2090 * Moose::Meta::Method::Constructor
2091 -builder related bug in inlined constructor. (groditi)
2093 * Moose::Meta::Method::Accessor
2094 - genereate unnecessary calls to predicates and refactor
2095 code generation for runtime speed (groditi)
2097 * Moose::Util::TypeConstraints
2098 - fix ClassName constraint to introspect symbol table (mst)
2099 - added more tests for this (mst)
2100 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2101 with work correctly.
2102 - added tests for this
2105 - adding the link to Recipie 11 (written by Sartak)
2106 - adding test for SYNOPSIS code
2109 - New tests for builder bug. Upon instantiation, if an
2110 attribute had a builder, no value and was not lazy the
2111 builder default was not getting run, oops. (groditi)
2113 0.29 Tues. Nov. 13, 2007
2114 * Moose::Meta::Attribute
2115 - Fix error message on missing builder method (groditi)
2117 * Moose::Meta::Method::Accessor
2118 - Fix error message on missing builder method (groditi)
2121 - Add test to check for the correct error message when
2122 builder method is missing (groditi)
2124 0.28 Tues. Nov. 13, 2007
2125 - 0.27 packaged incorrectly (groditi)
2127 0.27 Tues. Nov. 13, 2007
2128 * Moose::Meta::Attribute
2129 - Added support for the new builder option (groditi)
2130 - Added support for lazy_build option (groditi)
2131 - Changed slot initialization for predicate changes (groditi)
2133 * Moose::Meta::Method::Accessor
2134 - Added support for lazy_build option (groditi)
2135 - Fix inline methods to work with corrected predicate
2138 * Moose::Meta::Method::Constructor
2139 - Added support for lazy_build option (groditi)
2142 - tests for builder and lazy_build (groditi)
2144 * fixing some misc. bits in the docs that
2145 got mentioned on CPAN Forum & perlmonks
2148 - fixed how required methods are handled
2149 when they encounter overriden or modified
2150 methods from a class (thanks to confound).
2151 - added tests for this
2153 * Moose::Util::TypeConstraint
2154 - fixed the type notation parser so that
2155 the | always creates a union and so is
2156 no longer a valid type char (thanks to
2157 konobi, mugwump and #moose for working
2159 - added more tests for this
2161 0.26 Thurs. Sept. 27, 2007
2164 * Parameterized Types
2165 We now support parameterized collection types, such as:
2166 ArrayRef[Int] # array or integers
2167 HashRef[Object] # a hash with object values
2168 They can also be nested:
2169 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2170 And work with the type unions as well:
2171 ArrayRef[Int | Str] # array of integers of strings
2173 * Better Framework Extendability
2174 Moose.pm is now "extendable" such that it is now much
2175 easier to extend the framework and add your own keywords
2176 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2177 section of the Moose.pm docs.
2180 In an effort to begin documenting some of the various
2181 details of Moose as well as some common idioms, we have
2182 created Moose::Cookbook::Snacks as a place to find
2183 small (easily digestable) nuggets of Moose code.
2186 ~ Several doc updates/cleanup thanks to castaway ~
2188 - converted build system to use Module::Install instead of
2189 Module::Build (thanks to jrockway)
2192 - added all the meta classes to the immutable list and
2193 set it to inline the accessors
2194 - fix import to allow Sub::Exporter like { into => }
2195 and { into_level => } (perigrin)
2196 - exposed and documented init_meta() to allow better
2197 embedding and extending of Moose (perigrin)
2200 - complete re-organization of the test suite
2201 - added some new tests as well
2202 - finally re-enabled the Moose::POOP test since
2203 the new version of DBM::Deep now works again
2206 * Moose::Meta::Class
2207 - fixed very odd and very nasty recursion bug with
2209 - added tests for this (eilara)
2211 * Moose::Meta::Attribute
2212 Moose::Meta::Method::Constructor
2213 Moose::Meta::Method::Accessor
2214 - fixed issue with overload::Overloaded getting called
2215 on non-blessed items. (RT #29269)
2216 - added tests for this
2218 * Moose::Meta::Method::Accessor
2219 - fixed issue with generated accessor code making
2220 assumptions about hash based classes (thanks to dexter)
2222 * Moose::Coookbook::Snacks
2223 - these are bits of documentation, not quite as big as
2224 Recipes but which have no clear place in the module docs.
2225 So they are Snacks! (horray for castaway++)
2227 * Moose::Cookbook::Recipe4
2228 - updated it to use the new ArrayRef[MyType] construct
2229 - updated the accompanying test as well
2231 +++ Major Refactor of the Type Constraint system +++
2232 +++ with new features added as well +++
2234 * Moose::Util::TypeConstraint
2235 - no longer uses package variable to keep track of
2236 the type constraints, now uses the an instance of
2237 Moose::Meta::TypeConstraint::Registry to do it
2238 - added more sophisticated type notation parsing
2240 - added tests for this
2242 * Moose::Meta::TypeConstraint
2243 - some minor adjustments to make subclassing easier
2244 - added the package_defined_in attribute so that we
2245 can track where the type constraints are created
2247 * Moose::Meta::TypeConstraint::Union
2248 - this is now been refactored to be a subclass of
2249 Moose::Meta::TypeConstraint
2251 * Moose::Meta::TypeCoercion::Union
2252 - this has been added to service the newly refactored
2253 Moose::Meta::TypeConstraint::Union and is itself
2254 a subclass of Moose::Meta::TypeCoercion
2256 * Moose::Meta::TypeConstraint::Parameterized
2257 - added this module (taken from MooseX::AttributeHelpers)
2258 to help construct nested collection types
2259 - added tests for this
2261 * Moose::Meta::TypeConstraint::Registry
2262 - added this class to keep track of type constraints
2264 0.25 Mon. Aug. 13, 2007
2266 - Documentation update to reference Moose::Util::TypeConstraints
2267 under 'isa' in 'has' for how to define a new type
2268 (thanks to shlomif).
2270 * Moose::Meta::Attribute
2271 - required attributes now will no longer accept undef
2272 from the constructor, even if there is a default and lazy
2273 - added tests for this
2274 - default subroutines must return a value which passes the
2276 - added tests for this
2278 * Moose::Meta::Attribute
2279 * Moose::Meta::Method::Constructor
2280 * Moose::Meta::Method::Accessor
2281 - type-constraint tests now handle overloaded objects correctly
2282 in the error message
2283 - added tests for this (thanks to EvanCarroll)
2285 * Moose::Meta::TypeConstraint::Union
2286 - added (has_)hand_optimized_constraint to this class so that
2287 it behaves as the regular Moose::Meta::TypeConstraint does.
2290 - large refactoring of this code
2291 - added several more tests
2292 - tests for subtle conflict resolition issues
2293 added, but not currently running
2296 * Moose::Cookbook::Recipe7
2297 - added new recipe for augment/inner functionality
2299 - added test for this
2302 - a formal definition of roles (still in progress)
2305 - utilities for easier working with Moose classes
2306 - added tests for these
2309 - This contains Moose specific test functions
2310 - added tests for these
2312 0.24 Tues. July 3, 2007
2313 ~ Some doc updates/cleanup ~
2315 * Moose::Meta::Attribute
2316 - added support for roles to be given as parameters
2317 to the 'handles' option.
2318 - added tests and docs for this
2319 - the has '+foo' attribute form now accepts changes to
2320 the lazy option, and the addition of a handles option
2321 (but not changing the handles option)
2322 - added tests and docs for this
2325 - required methods are now fetched using find_method_by_name
2326 so that required methods can come from superclasses
2327 - adjusted tests for this
2329 0.23 Mon. June 18, 2007
2330 * Moose::Meta::Method::Constructor
2331 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2332 * Moose::Meta::Class
2333 - Modify make_immutable to work with the new Class::MOP immutable
2334 mechanism + POD + very basic test (groditi)
2335 * Moose::Meta::Attribute
2336 - Fix handles to use goto() so that caller() comes out properly on
2337 the other side (perigrin)
2339 0.22 Thurs. May 31, 2007
2340 * Moose::Util::TypeConstraints
2341 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2342 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2343 prototypes for functions
2344 - added the ClassName type constraint, this checks for strings
2345 which will respond true to ->isa(UNIVERSAL).
2346 - added tests and docs for this
2347 - subtyping just in name now works correctly by making the
2348 default for where be { 1 }
2349 - added test for this
2351 * Moose::Meta::Method::Accessor
2352 - coerce and lazy now work together correctly, thanks to
2353 merlyn for finding this bug
2354 - tests added for this
2355 - fix reader presedence bug in Moose::Meta::Attribute + tests
2358 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2359 a HASH-ref and missed. This produces better error messages then
2360 having it die cause undef is not a HASH.
2361 - added tests for this
2363 0.21 Thursday, May 2nd, 2007
2365 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2366 - modified unimport to remove super and inner along with the rest
2367 - altered unimport tests to handle this
2370 - altered super export to populate SUPER_SLOT
2372 * Moose::Meta::Class
2373 - altered augment and override modifier application to use *_SLOT
2374 - modified tests for these to unimport one test class each to test
2377 - fixed issue where custom attribute metaclasses
2378 where not handled correctly in roles
2379 - added tests for this
2381 * Moose::Meta::Class
2382 - fixed issue where extending metaclasses with
2383 roles would blow up. Thanks to Aankhen`` for
2384 finding this insidious error, and it's solution.
2386 ~~ lots of spelling and grammer fixes in the docs,
2387 many many thanks to rlb3 and Aankhen for these :)
2389 0.20 Friday, April 6th, 2007
2390 >> I messed up the SKIP logic in one test
2391 so this release is just to fix that.
2394 - 'has' now also accepts an ARRAY ref
2395 to create multiple attrs (see docs)
2396 (thanks to konobi for this)
2397 - added tests and docs
2399 0.19 Thurs. April 5th, 2007
2400 ~~ More documentation updates ~~
2402 * Moose::Util::TypeConstraints
2403 - 'type' now supports messages as well
2404 thanks to phaylon for finding this
2405 - added tests for this
2406 - added &list_all_type_constraints and
2407 &list_all_builtin_type_constraints
2408 functions to facilitate introspection.
2410 * Moose::Meta::Attribute
2411 - fixed regexp 'handles' declarations
2412 to build the list of delegated methods
2413 correctly (and not override important
2414 things like &new) thanks to ashleyb
2416 - added tests and docs for this
2417 - added the 'documentation' attributes
2418 so that you can actually document your
2419 attributes and inspect them through the
2421 - added tests and docs for this
2423 * Moose::Meta::Class
2424 - when loading custom attribute metaclasses
2425 it will first look in for the class in the
2426 Moose::Meta::Attribute::Custom::$name, and
2427 then default to just loading $name.
2428 - added tests and docs for this
2430 * Moose::Meta::TypeConstraint
2431 - type constraints now stringify to their names.
2432 - added test for this
2435 - added tests to assure we work with Module::Refresh
2436 - added stricter test skip logic in the Moose POOP
2437 test, ask Rob Kinyon why.
2438 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2440 0.18 Sat. March 10, 2007
2441 ~~ Many, many documentation updates ~~
2444 - We now use Class::MOP::load_class to
2446 - added tests to show types and subtypes
2447 working with Declare::Constraints::Simple
2448 and Test::Deep as constraint engines.
2451 !! You must have Class::MOP 0.37_001 !!
2452 !! for this developer release to work !!
2454 This release was primarily adding the immutable
2455 feature to Moose. An immutable class is one which
2456 you promise not to alter. When you set the class
2457 as immutable it will perform various bits of
2458 memoization and inline certain part of the code
2459 (constructors, destructors and accessors). This
2460 minimizes (and in some cases totally eliminates)
2461 one of Moose's biggest performance hits. This
2462 feature is not on by default, and is 100% optional.
2463 It has several configurable bits as well, so you
2464 can pick and choose to your specific needs.
2466 The changes involved in this were fairly wide and
2467 highly specific, but 100% backwards compatible, so
2468 I am not going to enumerate them here. If you are
2469 truely interested in what was changed, please do
2472 0.17 Tues. Nov. 14, 2006
2473 * Moose::Meta::Method::Accessor
2474 - bugfix for read-only accessors which
2475 are have a type constraint and lazy.
2476 Thanks to chansen for finding it.
2478 0.16 Tues. Nov. 14, 2006
2480 There are some speed improvements in this release,
2481 but they are only the begining, so stay tuned.
2484 - BUILDALL and DEMOLISHALL no longer get
2485 called unless they actually need to be.
2486 This gave us a signifigant speed boost
2487 for the cases when there is no BUILD or
2488 DEMOLISH method present.
2490 * Moose::Util::TypeConstraints
2491 * Moose::Meta::TypeConstraint
2492 - added an 'optimize_as' option to the
2493 type constraint, which allows for a
2494 hand optimized version of the type
2495 constraint to be used when possible.
2496 - Any internally created type constraints
2497 now provide an optimized version as well.
2499 0.15 Sun. Nov. 5, 2006
2501 This version of Moose *must* have Class::MOP 0.36 in order
2502 to work correctly. A number of small internal tweaks have
2503 been made in order to be compatible with that release.
2505 * Moose::Util::TypeConstraints
2506 - added &unimport so that you can clean out
2507 your class namespace of these exported
2510 * Moose::Meta::Class
2511 - fixed minor issue which occasionally
2512 comes up during global destruction
2514 - moved Moose::Meta::Method::Overriden into
2518 - moved Moose::Meta::Role::Method into
2521 * Moose::Meta::Attribute
2522 - changed how we do type checks so that
2523 we reduce the overall cost, but still
2526 - moved accessor generation methods to
2527 Moose::Meta::Method::Accessor to
2528 conform to the API changes from
2531 * Moose::Meta::TypeConstraint
2532 - changed how constraints are compiled
2533 so that we do less recursion and more
2534 iteration. This makes the type check
2536 - moved Moose::Meta::TypeConstraint::Union
2539 * Moose::Meta::Method::Accessor
2540 - created this from methods formerly found in
2541 Moose::Meta::Attribute
2543 * Moose::Meta::Role::Method
2544 - moved this from Moose::Meta::Role
2546 * Moose::Meta::Method::Overriden
2547 - moved this from Moose::Meta::Class
2549 * Moose::Meta::TypeConstraint::Union
2550 - moved this from Moose::Meta::TypeConstraint
2552 0.14 Mon. Oct. 9, 2006
2554 * Moose::Meta::Attribute
2555 - fixed lazy attributes which were not getting
2556 checked with the type constraint (thanks ashley)
2557 - added tests for this
2558 - removed the over-enthusiastic DWIMery of the
2559 automatic ArrayRef and HashRef defaults, it
2560 broke predicates in an ugly way.
2561 - removed tests for this
2563 0.13 Sat. Sept. 30, 2006
2565 This version of Moose *must* have Class::MOP 0.35 in order
2566 to work correctly. A number of small internal tweaks have
2567 been made in order to be compatible with that release.
2570 - Removed the use of UNIVERSAL::require to be a better
2571 symbol table citizen and remove a dependency
2572 (thanks Adam Kennedy)
2574 **~~ removed experimental & undocumented feature ~~**
2575 - commented out the 'method' and 'self' keywords, see the
2576 comments for more info.
2579 - added a FAQ and WTF files to document frequently
2580 asked questions and common problems
2582 * Moose::Util::TypeConstraints
2583 - added GlobRef and FileHandle type constraint
2584 - added tests for this
2586 * Moose::Meta::Attribute
2587 - if your attribute 'isa' ArrayRef of HashRef, and you have
2588 not explicitly set a default, then make the default DWIM.
2589 This will also work for subtypes of ArrayRef and HashRef
2591 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2592 - new test added for this (thanks to ashley)
2595 - added basic support for runtime role composition
2596 but this is still *highly experimental*, so feedback
2597 is much appreciated :)
2598 - added tests for this
2600 * Moose::Meta::TypeConstraint
2601 - the type constraint now handles the coercion process
2602 through delegation, this is to support the coercion
2605 * Moose::Meta::TypeConstraint::Union
2606 - it is now possible for coercions to be performed
2608 - added tests for this (thanks to konobi)
2610 * Moose::Meta::TypeCoercion
2611 - properly capturing error when type constraint
2615 - Scalar::Util 1.18 is bad on Win32, so temporarily
2616 only require version 1.17 for Win32 and cygwin.
2617 (thanks Adam Kennedy)
2619 0.12 Sat. Sept. 1, 2006
2621 - Recipe5 (subtypes & coercion) has been written
2624 - fixed "bad meta" error message to be more descriptive
2625 - fixed &unimport to not remove the &inner and &super
2626 keywords because we need to localize them.
2627 - fixed number of spelling/grammer issues, thanks Theory :)
2629 **~~ experimental & undocumented feature ~~**
2630 - added the method and self keywords, they are basically
2631 just sugar, and they may not stay around.
2634 - added &dump method to easily Data::Dumper
2637 * Moose::Meta::TypeConstraint
2638 - added the &is_a_type_of method to check both the current
2639 and the subtype of a method (similar to &isa with classes)
2642 - this is now a subclass of Class::MOP::Module, and no longer
2643 creates the _role_meta ugliness of before.
2644 - fixed tests to reflect this change
2646 0.11 Wed. July 12, 2006
2648 - added an &unimport method to remove all the keywords
2649 that Moose will import, simply add 'no Moose' to the
2650 bottom of your class file.
2653 - fixed some test failures caused by a forgotten test
2656 0.10 Thurs. July 6, 2006
2658 - improved error message when loading modules so
2659 it is less confusing when you load a role.
2660 - added &calculate_all_roles method to
2661 Moose::Meta::Class and Moose::Meta::Role
2664 This module has been tested against Class::MOP 0.30
2665 but it does not yet utilize the optimizations
2666 it makes available. Stay tuned for that ;)
2668 0.09_03 Fri. June 23, 2006
2669 ++ DEVELOPER RELEASE ++
2671 - 'use strict' and 'use warnings' are no longer
2672 needed in Moose classes, Moose itself will
2673 turn them on for you.
2674 - added tests for this
2675 - moved code from exported subs to private methods
2676 in Moose::Meta::Class
2679 - as with Moose, strict and warnings are
2680 automatically turned on for you.
2681 - added tests for this
2684 - now handles an edge case for override errors
2685 - added tests for this
2686 - added some more edge case tests
2688 0.09_02 Tues. May 16, 2006
2689 ++ DEVELOPER RELEASE ++
2691 - added prototypes to the exported subs
2695 - added prototypes to the exported subs
2698 * Moose::Util::TypeConstraints
2699 - cleaned up prototypes for the subs
2702 0.09_01 Fri. May 12, 2006
2703 ++ DEVELOPER RELEASE ++
2704 - This release works in combination with
2705 Class::MOP 0.29_01, it is a developer
2706 release because it uses the a new
2707 instance sub-protocol and a fairly
2708 complete Role implementation. It has
2709 not yet been optimized, so it slower
2710 the the previous CPAN version. This
2711 release also lacks good updated docs,
2712 the official release will have updated docs.
2715 - refactored the keyword exports
2716 - 'with' now checks Role validaity and
2717 accepts more than one Role at a time
2718 - 'extends' makes metaclass adjustments as
2719 needed to ensure metaclass compatibility
2722 - refactored the keyword exports
2723 - 'with' now checks Role validaity and
2724 accepts more than one Role at a time
2726 * Moose::Util::TypeConstraints
2727 - added the 'enum' keyword for simple
2728 string enumerations which can be used as
2730 - see example of usage in t/202_example.t
2733 - more careful checking of params to new()
2736 - much work done on the role composition
2737 - many new tests for conflict detection
2738 and composition edge cases
2739 - not enough documentation, I suggest
2740 looking at the tests
2742 * Moose::Meta::Instance
2743 - added new Instance metaclass to support
2744 the new Class::MOP instance protocol
2746 * Moose::Meta::Class
2747 - some small changes to support the new
2749 - some small additions to support Roles
2751 * Moose::Meta::Attribute
2752 - some improvements to the accessor generation code
2754 - some small changes to support the new
2756 - (still somewhat) experimental delegation support
2757 with the 'handles' option
2758 - added several tests for this
2759 - no docs for this yet
2761 0.05 Thurs. April 27, 2006
2763 - keywords are now exported with Sub::Exporter
2764 thanks to chansen for this commit
2765 - has keyword now takes a 'metaclass' option
2766 to support custom attribute meta-classes
2767 on a per-attribute basis
2768 - added tests for this
2769 - the 'has' keyword not accepts inherited slot
2770 specifications (has '+foo'). This is still an
2771 experimental feature and probably not finished
2772 see t/038_attribute_inherited_slot_specs.t for
2773 more details, or ask about it on #moose
2774 - added tests for this
2777 - keywords are now exported with Sub::Exporter
2779 * Moose::Utils::TypeConstraints
2780 - reorganized the type constraint hierarchy, thanks
2781 to nothingmuch and chansen for his help and advice
2783 - added some tests for this
2784 - keywords are now exported with Sub::Exporter
2785 thanks to chansen for this commit
2787 * Moose::Meta::Class
2788 - due to changes in Class::MOP, we had to change
2789 construct_instance (for the better)
2791 * Moose::Meta::Attribute
2792 - due to changes in Class::MOP, we had to add the
2793 initialize_instance_slot method (it's a good thing)
2795 * Moose::Meta::TypeConstraint
2796 - added type constraint unions
2797 - added tests for this
2798 - added the is_subtype_of predicate method
2799 - added tests for this
2801 0.04 Sun. April 16th, 2006
2803 - Roles can now consume other roles
2804 - added tests for this
2805 - Roles can specify required methods now with
2806 the requires() keyword
2807 - added tests for this
2810 - ripped out much of it's guts ,.. much cleaner now
2811 - added required methods and correct handling of
2812 them in apply() for both classes and roles
2813 - added tests for this
2814 - no longer adds a does() method to consuming classes
2815 it relys on the one in Moose::Object
2816 - added roles attribute and some methods to support
2817 roles consuming roles
2819 * Moose::Meta::Attribute
2820 - added support for triggers on attributes
2821 - added tests for this
2822 - added support for does option on an attribute
2823 - added tests for this
2825 * Moose::Meta::Class
2826 - added support for attribute triggers in the
2828 - added tests for this
2831 - Moose no longer creates a subtype for your class
2832 if a subtype of the same name already exists, this
2833 should DWIM in 99.9999% of all cases
2835 * Moose::Util::TypeConstraints
2836 - fixed bug where incorrect subtype conflicts were
2838 - added test for this
2841 - this class can now be extended with 'use base' if
2842 you need it, it properly loads the metaclass class now
2843 - added test for this
2845 0.03_02 Wed. April 12, 2006
2847 - you must now explictly use Moose::Util::TypeConstraints
2848 it no longer gets exported for you automatically
2851 - new() now accepts hash-refs as well as key/value lists
2852 - added does() method to check for Roles
2853 - added tests for this
2855 * Moose::Meta::Class
2856 - added roles attribute along with the add_role() and
2858 - added tests for this
2861 - now adds a does() method to consuming classes
2862 which tests the class's hierarchy for roles
2863 - added tests for this
2865 0.03_01 Mon. April 10, 2006
2867 - added new Role recipe (no content yet, only code)
2870 - added 'with' keyword for Role support
2871 - added test and docs for this
2872 - fixed subtype quoting bug
2873 - added test for this
2877 - added test and docs
2879 * Moose::Util::TypeConstraints
2880 - added the message keyword to add custom
2881 error messages to type constraints
2884 - the meta role to support Moose::Role
2885 - added tests and docs
2887 * Moose::Meta::Class
2888 - moved a number of things from Moose.pm
2889 to here, they should have been here
2892 * Moose::Meta::Attribute
2893 - moved the attribute option macros here
2894 instead of putting them in Moose.pm
2896 * Moose::Meta::TypeConstraint
2897 - added the message attributes and the
2899 - added tests and docs for this
2901 0.03 Thurs. March 30, 2006
2903 - added the Moose::Cookbook with 5 recipes,
2904 describing all the stuff Moose can do.
2907 - fixed an issue with &extends super class loading
2908 it now captures errors and deals with inline
2909 packages correctly (bug found by mst, solution
2911 - added super/override & inner/augment features
2912 - added tests and docs for these
2915 - BUILDALL now takes a reference of the %params
2916 that are passed to &new, and passes that to
2919 * Moose::Util::TypeConstraints
2920 - Type constraints now survive runtime reloading
2921 - added test for this
2923 * Moose::Meta::Class
2924 - fixed the way attribute defaults are handled
2925 during instance construction (bug found by chansen)
2927 * Moose::Meta::Attribute
2928 - read-only attributes now actually enforce their
2929 read-only-ness (this corrected in Class::MOP as
2932 0.02 Tues. March 21, 2006
2934 - many more tests, fixing some bugs and
2936 - &extends now loads the base module with
2938 - added UNIVERSAL::require to the
2941 - each new Moose class will also create
2942 and register a subtype of Object which
2943 correspond to the new Moose class.
2944 - the 'isa' option in &has now only
2945 accepts strings, and will DWIM in
2948 * Moose::Util::TypeConstraints
2949 - added type coercion features
2950 - added tests for this
2951 - added support for this in attributes
2952 and instance construction
2954 - type construction no longer creates a
2955 function, it registers the type instead.
2956 - added several functions to get the
2960 - BUILDALL and DEMOLISHALL were broken
2961 because of a mis-named hash key, Whoops :)
2963 * Moose::Meta::Attribute
2964 - adding support for coercion in the
2965 autogenerated accessors
2967 * Moose::Meta::Class
2968 - adding support for coercion in the
2969 instance construction
2971 * Moose::Meta::TypeConstraint
2972 * Moose::Meta::TypeCoercion
2973 - type constraints and coercions are now
2974 full fledges meta-objects
2976 0.01 Wed. March 15, 2006
2977 - Moooooooooooooooooose!!!