1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * ScalarRef is now a parameterized type. You can now specify a type
6 constraint for whatever the reference points to. (Closes RT#50857)
7 (Michael G. Schwern, Florian Ragwitz)
10 * ScalarRef now accepts references to other references. (Closes RT#50934)
17 * Moose::Meta::Attribute::Native::Trait::Code now provides execute_method, in
18 addition to execute, to be able to call a code attribute as a method.
23 * Moose::Object::does no longer checks the entire inheritance tree, since
24 Moose::Meta::Class::does_role already does this. (doy)
25 * Moose::Util::add_method_modifier (and subsequently the sugar functions Moose::before,
26 Moose::after, and Moose::around) can now accept arrayrefs, with the same
27 behavior as lists. Types other than arrayref and regexp result in an error.
30 0.94 Mon, Jan 18, 2010
34 * Please see the changes listed for 0.93_01 and Moose::Manual::Delta.
38 * Improved support for anonymous roles by changing various APIs to take
39 Moose::Meta::Role objects as well as role names. This included
41 - Moose::Meta::Class->does_role
42 - Moose::Meta::Role->does_role
43 - Moose::Util::does_role
44 - Moose::Util::apply_all_roles
45 - Moose::Util::ensure_all_roles
46 - Moose::Util::search_class_by_role
48 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
52 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
53 work as long as the accessor method names are explicitly set to valid Perl
54 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
57 0.93_03 Tue, Jan 5, 2010
61 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
62 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
65 0.93_02 Tue, Jan 5, 2010
69 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
70 testers. (Dave Rolsky)
73 0.93_01 Mon, Jan 4, 2010
77 See Moose::Manual::Delta for more details on backwards compatiblity issues.
79 * Role attributes are now objects of the Moose::Meta::Role::Attribute
82 * There were major changes to how metaroles are applied. We now distinguish
83 between metaroles for classes vs those for roles. See the
84 Moose::Util::MetaRole docs for details. (Dave Rolsky)
86 * The old MetaRole API has been deprecated, but will continue to
87 work. However, if you are applying an attribute metaclass role, this may
88 break because of the fact that roles now have an attribute metaclass
91 * Moose::Util::MetaRole::apply_metaclass_roles is now called
92 apply_metaroles. The old name is deprecated. Dave Rolsky>
94 * The unimport subs created by Moose::Exporter now clean up re-exported
95 functions like blessed and confess, unless the caller imported them from
96 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
98 [ENHANCEMENTS AND BUG FIXES]
100 * Changed the Str constraint to accept magic lvalue strings like one gets from
101 substr et al, again. (sorear)
103 * Sped up the type constraint parsing regex. (Sam Vilain)
105 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
108 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
109 easier testing of TypeConstraints from the command line. (perigrin)
111 * Added a with_immutable test function to Test::Moose, to run a block of tests
112 with and without certain classes being immutable. (doy)
114 * We now use Module::Install extensions explicitly to avoid confusing errors
115 if they're not installed. We use Module::Install::AuthorRequires to stop
116 test extraction and general failures if you don't have the author side
117 dependencies installed.
119 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
120 #51791. (Amir E. Aharoni)
123 0.93 Thu, Nov 19, 2009
125 - Calling $object->new() is no longer deprecated, and no longer
129 - The get_attribute_map method is now deprecated. (Dave Rolsky)
131 * Moose::Meta::Method::Delegation
132 - Preserve variable aliasing in @_ for delegated methods, so that
133 altering @_ affects the passed value. (doy)
135 * Moose::Util::TypeConstraints
136 - Allow array refs for non-anonymous form of enum and duck_type, not
137 just anonymous. The non-arrayref forms may be removed in the
139 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
140 - Properly document Int being a subtype of Str. (doy)
143 - Moose::Exporter using modules can now export their functions to the
144 main package. This applied to Moose and Moose::Role, among
145 others. (nothingmuch)
147 * Moose::Meta::Attribute
148 - Don't remove attribute accessors we never installed, during
149 remove_accessors. (doy)
151 * Moose::Meta::Attribute::Native::Trait::Array
152 - Don't bypass prototype checking when calling List::Util::first, to
153 avoid a segfault when it is called with a non-code argument. (doy)
155 * Moose::Meta::Attribute::Native::Trait::Code
156 - Fix passing arguments to code execute helpers. (doy)
158 0.92 Tue, Sep 22, 2009
159 * Moose::Util::TypeConstraints
160 - added the match_on_type operator (Stevan)
161 - added tests and docs for this (Stevan)
164 - Metaclass compat fixing should already happen recursively, there's no
165 need to explicitly walk up the inheritance tree. (doy)
167 * Moose::Meta::Attribute
168 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
170 0.91 Thu, Sep 17, 2009
172 - Don't import any functions, in order to avoid polluting our namespace
173 with things that can look like methods (blessed, try, etc)
176 * Moose::Meta::Method::Constructor
177 - The generated code needs to called Scalar::Util::blessed by its
178 fully-qualified name or else Perl can interpret the call to blessed as
179 an indirect method call. This broke Search::GIN, which in turn broke
180 KiokuDB. (nothingmuch)
182 0.90 Tue, Sep 15, 2009
183 * Moose::Meta::Attribute::Native::Trait::Counter
184 * Moose::Meta::Attribute::Native::Trait::String
185 - For these two traits, an attribute which did not explicitly provide
186 methods to handles magically ended up delegating *all* the helper
187 methods. This has been removed. You must be explicit in your handles
188 declaration for all Native Traits. (Dave Rolsky)
191 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
192 sure to rethrow its error message. However, we also localize $@ before
193 this so that if all the DEMOLISH methods success, the value of $@ will
194 be preserved. (nothingmuch and Dave Rolsky)
195 - We now also localize $? during object destruction. (nothingmuch and
197 - The handling of DEMOLISH methods was broken for immutablized classes,
198 which were not receiving the value of
199 Devel::GlobalDestruction::in_global_destruction.
200 - These two fixes address some of RT #48271, reported by Zefram.
201 - This is all now documented in Moose::Manual::Construction.
202 - Calling $object->new() is now deprecated. A warning will be
206 - Added more hooks to customize how roles are applied. The role
207 summation class, used to create composite roles, can now be changed
208 and/or have meta-roles applied to it. (rafl)
209 - The get_method_list method no longer explicitly excludes the "meta"
210 method. This was a hack that has been replaced by better hacks. (Dave
213 * Moose::Meta::Method::Delegation
214 - fixed delegated methods to make sure that any modifiers attached to
215 the accessor being delegated on will be called (Stevan)
216 - added tests for this (Stevan)
219 - Moose no longer warns when a class that is being made immutable has
220 mutable ancestors. While in theory this is a good thing to warn about,
221 we found so many exceptions to this that doing this properly became
224 0.89_02 Thu, Sep 10, 2009
225 * Moose::Meta::Attribute::Native
226 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
228 * Moose::Meta::Attribute::Native::Trait::Array
229 - Added a number of functions from List::Util and List::MoreUtils,
230 including reduce, shuffle, uniq, and natatime. (doy)
233 - This module will now generate an init_meta method for your exporting
234 class if you pass it options for
235 Moose::Util::MetaRole::apply_metaclass_roles or
236 apply_base_class_roles. This eliminates a lot of repetitive
237 boilerplate for typical MooseX modules. (doy).
238 - Documented the with_meta feature, which is a replacement for
239 with_caller. This feature was added by josh a while ago.
240 - The with_caller feature is now deprecated, but will not issue a
241 warning yet. (Dave Rolsky)
242 - If you try to wrap/export a subroutine which doesn't actually exist,
243 Moose::Exporter will warn you about this. (doy)
245 * Moose::Meta::Role::Application::ToRole
246 - When a role aliased a method from another role, it was only getting
247 the new (aliased) name, not the original name. This differed from what
248 happens when a class aliases a role's methods. If you _only_ want the
249 aliased name, make sure to also exclue the original name. (Dave
252 0.89_01 Wed Sep 2, 2009
253 * Moose::Meta::Attribute
254 - Added the currying syntax for delegation from AttributeHelpers to the
255 existing delegation API. (hdp)
257 * Moose::Meta::Attribute::Native
258 - We have merged the functionality of MooseX::AttributeHelpers into the
259 Moose core with some API tweaks. You can continue to use
260 MooseX::AttributeHelpers, but it will not be maintained except
261 (perhaps) for critical bug fixes in the future. See
262 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
265 * Moose::Error::Croak
266 * Moose::Error::Confess
267 - Clarify documentation on how to use different error-throwing
268 modules. (Curtis Jewell)
271 - Correct POD for builder to point to Recipe8, not 9. (gphat)
274 - When a nonexistent sub name is passed to as_is, with_caller, or
275 with_meta, throw a warning and skip the exporting, rather than
276 installing a broken sub. (doy)
279 - Moose now warns if you call C<make_immutable> for a class with mutable
282 0.89 Thu Aug 13, 2009
283 * Moose::Manual::Attributes
284 - Clarify "is", include discussion of "bare". (Sartak)
286 * Moose::Meta::Role::Method::Conflicting
287 * Moose::Meta::Role::Application::ToClass
288 - For the first set of roles involved in a conflict, report all
289 unresolved method conflicts, not just the first method. Fixes #47210
290 reported by Ovid. (Sartak)
292 * Moose::Meta::TypeConstraint
293 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
296 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
298 - Allow specifying role options (alias, excludes, MXRP stuff) in the
299 arrayref passed to "use Moose -traits" (doy)
302 - Add functions meta_class_alias and meta_attribute_alias for creating
303 aliases for class and attribute metaclasses and metatraits. (doy)
305 * Moose::Meta::Attribute
306 * Moose::Meta::Method::Accessor
307 - A trigger now receives the old value as a second argument, if the
308 attribute had one. (Dave Rolsky)
310 * Moose::Meta::Method::Constructor
311 - Fix a bug with $obj->new when $obj has stringify overloading.
312 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
313 - However, we will probably deprecate $obj->new, so please don't start
314 using it for new code!
316 * Moose::Meta::Role::Application
317 * Moose::Meta::Role::Application::RoleSummation
318 - Rename alias and excludes to -alias and -excludes (but keep the old
319 names for now, for backcompat) (doy)
321 0.88 Fri Jul 24, 2009
322 * Moose::Manual::Contributing
323 - Re-write the Moose::Manual::Contributing document to reflect
324 the new layout and methods of work for the Git repository. All
325 work now should be done in topic branches and reviewed by a
326 core committer before being applied to master. All releases
327 are done by a cabal member and merged from master to
328 stable. This plan was devised by Yuval, blame him. (perigrin)
331 - Create metaclass attributes for the different role application
334 * Moose::Util::MetaRole
335 - Allow applying roles to a meta role's role application
338 * Moose::Meta::Attribute
339 - Add weak_ref to allowed options for "has '+foo'" (mst)
341 * Moose::Meta::Method::Accessor
342 - No longer uses inline_slot_access in accessors, to support
343 non-lvalue-based meta instances. (sorear)
346 * Moose::Meta::Method::Delegation
347 - Once again allow class names as well as objects for
348 delegation. This was changed in 0.86.
351 * Moose::Meta::Class::Immutable::Trait
352 - Fixes to work with the latest Class::MOP.
354 * Moose::Meta::Method::Delegation
355 - Delegation now dies with a more useful error message if the
356 attribute's accessor returns something defined but
359 0.85 Fri, Jun 26, 2009
360 * Moose::Meta::Attribute
361 - The warning for 'no associated methods' is now split out into
362 the _check_associated_methods method, so that extensions can
363 safely call 'after install_accessors => ...'. This fixes a
364 warning from MooseX::AttributeHelpers. (hdp)
366 0.84 Fri, Jun 26, 2009
368 - has now sets definition_context for attributes defined in
371 * Moose::Meta::Attribute
372 - When adding an attribute to a metaclass, if the attribute has
373 no associated methods, it will give a deprecation
375 - Methods generated by delegation were not being added to
376 associated_methods. (hdp)
377 - Attribute accessors (reader, writer, accessor, predicate,
378 clearer) now warn if they overwrite an existing method. (doy)
379 - Attribute constructors now warn very noisily about unknown (or
380 misspelled) arguments
382 * Moose::Util::TypeConstraints
383 - Deprecated the totally useless Role type name, which just
384 checked if $object->can('does'). Note that this is _not_ the
385 same as a type created by calling role_type('RoleName').
387 * Moose::Util::TypeConstraints
388 * Moose::Meta::TypeConstraint::DuckType
389 - Reify duck type from a regular subtype into an actual class
391 - Document this because Sartak did all my work for me
394 * Moose::Meta::Attribute
395 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
396 it is just a list of methods (Sartak)
399 - The get_*_method_modifiers methods would die if the role had
400 no modifiers of the given type (Robert Buels).
402 0.83 Tue, Jun 23, 2009
404 - Fix _construct_instance not setting the special __MOP__ object
405 key in instances of anon classes. (doy)
407 0.82 Sun, Jun 21, 2009
408 * Moose::Manual::Types
409 - Mention MooseX::Types early to avoid users falling down the
410 string parsing rathole (mst)
412 * Moose::Manual::MooseX
413 - Add warnings about class-level extensions and mention considering
414 using plain objects instead
416 0.81 Sun, Jun 7, 2009
417 * Bumped our Class::MOP prereq to the latest version (0.85), since
420 0.80 Sat, Jun 6, 2009
422 - Add FAQ about the coercion change from 0.76 because it came up
423 three times today (perigrin)
424 - Win doy $10 dollars because Sartak didn't think anybody
425 would document this fast enough (perigrin)
427 * Moose::Meta::Method::Destructor
428 - Inline a DESTROY method even if there are no DEMOLISH methods
429 to prevent unnecessary introspection in
430 Moose::Object::DEMOLISHALL
433 - A role's required methods are now represented by
434 Moose::Meta::Role::Method::Required objects. Conflicts are now
435 represented by Moose::Meta::Role::Method::Conflicting
436 objects. The benefit for end-users in that unresolved
437 conflicts generate different, more instructive, errors,
438 resolving Ovid's #44895. (Sartak)
441 - Improve the error message of "extends" as suggested by Adam
442 Kennedy and confound (Sartak)
443 - Link to Moose::Manual::Roles from Moose::Role as we now have
444 excellent documentation (Adam Kennedy)
447 - Update test suite for subname change in Class::MOP
449 - Add TODO test for infinite recursion in Moose::Meta::Class
452 0.79 Wed, May 13, 2009
454 - More fixes for Win32 problems. Reported by Robert Krimen.
457 - The DEMOLISHALL method could still blow up in some cases
458 during global destruction. This method has been made more
459 resilient in the face of global destruction's random garbage
463 - If you "also" a module that isn't loaded, the error message
464 now acknowledges that (Sartak)
467 - When your ->meta method does not return a Moose::Meta::Class,
468 the error message gave the wrong output (Sartak)
470 0.78 Tue, May 12, 2009
471 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
472 - Merged these documents into what is now Moose::Manual::FAQ
475 - Moved to Moose::Manual::Unsweetened
477 * Moose::Cookbook::Basics::Recipes 9-12
478 - Renamed to be 8-11, since recipe 8 did not exist
481 - Make Moose::Exporter import strict and warnings into packages
485 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
486 methods during global destruction (doy)
489 * Moose::Meta::Role::Application::ToClass
490 - Track the Role::Application objects created during class-role
494 - Fix metaclass incompatibility errors when extending a vanilla perl
495 class which isa Moose class with a metaclass role applied (t0m)
498 - Add a role-combination hook, _role_for_combination, for the
499 benefit of MooseX::Role::Parameterized (Sartak)
502 - Some tests were failing on Win32 because they explicit checked
503 warning output for newlines. Reported by Nickolay Platonov.
505 0.77 Sat, May 2, 2009
507 - Add explicit use of Devel::GlobalDestruction and Sub::Name
511 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
512 or not we are currently in global destruction (doy)
513 - Add explicit use of Devel::GlobalDestruction and Sub::Name
516 * Moose::Cookbook::FAQ
517 - Reworked much of the existing content to be more useful to
518 modern Moose hackers (Sartak)
521 - Depend on Class::MOP 0.83 instead of 0.82_01.
523 0.76 Mon, April 27, 2009
524 * Moose::Meta::TypeConstraint
525 - Do not run coercions in coerce() if the value already passes the type
528 * Moose::Meta::TypeConstraint::Class
529 - In validation error messages, specifically say that the value is not
530 an instance of the class. This should alleviate some frustrating
531 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
533 * Moose::Meta::Role::Application::ToClass
534 - Revert the class-overrides-role warning in favor of a solution outside
535 of the Moose core (Sartak)
538 - Make Test::Output optional again, since it's only used in a few files
541 0.75_01 Thu, April 23, 2009
542 * Moose::Meta::Role::Application::ToClass
543 - Moose now warns about each class overriding methods from roles it
547 - Warnings tests have standardized on Test::Output which is now an
548 unconditionally dependency (Sartak)
551 - Changes to immutabilization to work with Class::MOP 0.82_01+.
553 0.75 Mon, April 20, 2009
556 - Move validation of not inheriting from roles from Moose::extends to
557 Moose::Meta::Class::superclasses (doy)
560 - add ensure_all_roles() function to encapsulate the common "apply this
561 role unless the object already does it" pattern (hdp)
564 - Users can now select a different metaclass with the "-metaclass"
565 option to import, for classes and roles (Sartak)
568 - Make method_metaclass an attr so that it can accept a metarole
571 0.74 Tue, April 7, 2009
573 * Moose::Meta::Method::Destructor
574 - Include stack traces in the deprecation warnings.
578 - Removed the long-deprecated _apply_all_roles method.
580 * Moose::Meta::TypeConstraint
581 - Removed the long-deprecated union method.
584 0.73_02 Mon, April 6, 2009
585 * More deprecations and renamings
586 - Moose::Meta::Method::Constructor
587 - initialize_body => _initialize_body (this is always called
588 when an object is constructed)
591 - The DEMOLISHALL method could throw an exception during global
592 destruction, meaning that your class's DEMOLISH methods would
593 not be properly called. Reported by t0m.
595 * Moose::Meta::Method::Destructor
596 - Destructor inlining was totally broken by the change to the
597 is_needed method in 0.72_01. Now there is a test for this
598 feature, and it works again.
601 - Bold the word 'not' in the POD for find_meta (t0m)
603 0.73_01 Sun, April 5, 2009
605 - Call user_class->meta in fewer places, with the eventual goal
606 of allowing the user to rename or exclude ->meta
607 altogether. Instead uses Class::MOP::class_of. (Sartak)
609 * Moose::Meta::Method::Accessor
610 - If an attribute had a lazy default, and that value did not
611 pass the attribute's type constraint, it did not get the
612 message from the type constraint, instead using a generic
613 message. Test provided by perigrin.
615 * Moose::Util::TypeConstraints
616 - Add duck_type keyword. It's sugar over making sure an object
617 can() a list of methods. This is easier than jrockway's
618 suggestion to fork all of CPAN. (perigrin)
619 - add tests and documentation (perigrin)
622 - Document the fact that init_meta() returns the target class's
623 metaclass object. (hdp)
625 * Moose::Cookbook::Extending::Recipe1
626 * Moose::Cookbook::Extending::Recipe2
627 * Moose::Cookbook::Extending::Recipe3
628 * Moose::Cookbook::Extending::Recipe4
629 - Make init_meta() examples explicitly return the metaclass and
630 point out this fact. (hdp)
632 * Moose::Cookbook::Basics::Recipe12
633 - A new recipe, creating a custom meta-method class.
635 * Moose::Cookbook::Meta::Recipe6
636 - A new recipe, creating a custom meta-method class.
639 * Moose::Meta::Method::Constructor
640 - Attribute triggers no longer receive the meta-attribute object
641 as an argument in any circumstance. Previously, triggers
642 called during instance construction were passed the
643 meta-attribute, but triggers called by normal accessors were
644 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
646 * Moose::Manual::Attributes
647 - Remove references to triggers receving the meta-attribute object as an
650 * Moose::Cookbook::FAQ
651 - Remove recommendation for deprecated Moose::Policy and
652 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
655 * Many methods have been renamed with a leading underscore, and a
656 few have been deprecated entirely. The methods with a leading
657 underscore are consider "internals only". People writing
658 subclasses or extensions to Moose should feel free to override
659 them, but they are not for "public" use.
662 - check_metaclass_compatibility => _check_metaclass_compatibility
664 - Moose::Meta::Method::Accessor
665 - initialize_body => _initialize_body (this is always called
666 when an object is constructed)
667 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
669 - Moose::Meta::Method::Constructor
670 - initialize_body => _initialize_body (this is always called
671 when an object is constructed)
672 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
673 - attributes => _attributes (now inherited from parent)
674 - meta_instance => _meta_instance (now inherited from parent)
677 - alias_method is deprecated. Use add_method
679 0.73 Fri, March 29, 2009
680 * No changes from 0.72_01.
682 0.72_01 Thu, March 26, 2009
684 - Almost every module has complete API documentation. A few
685 methods (and even whole classes) have been intentionally
686 excluded pending some rethinking of their APIs.
688 * Moose::Util::TypeConstraints
689 - Calling subtype with a name as the only argument is now an
690 exception. If you want an anonymous subtype do:
692 my $subtype = subtype as 'Foo';
694 * Moose::Cookbook::Meta::Recipe7
695 - A new recipe, creating a custom meta-instance class.
697 * Moose::Cookbook::Basics::Recipe5
698 - Fix various typos and mistakes. Includes a patch from Radu
701 * Moose::Cookbook::Basics::Recipe9
702 - Link to this recipe from Moose.pm's builder blurb
705 - When wrapping a function with a prototype, Moose::Exporter now
706 makes sure the wrapped function still has the same
707 prototype. (Daisuke Maki)
709 * Moose::Meta::Attribute
710 - Allow a subclass to set lazy_build for an inherited
714 - Explicitly depend on Data::OptList. We already had this dependency
715 via Sub::Exporter, but since we're using it directly we're
716 better off with it listed. (Sartak)
718 * Moose::Meta::Method::Constructor
719 - Make it easier to subclass the inlining behaviour. (Ash
722 * Moose::Manual::Delta
723 - Details significant changes in the history of Moose, along
724 with recommended workarounds.
726 * Moose::Manual::Contributing
727 - Contributor's guide to Moose.
729 * Moose::Meta::Method::Constructor
730 - The long-deprecated intialize_body method has been removed
731 (yes, spelled like that).
733 * Moose::Meta::Method::Destructor
734 - This is_needed method is now always a class method.
737 - Changes to the internals of how make_immutable works to match
738 changes in latest Class::MOP.
740 0.72 Mon, February 23, 2009
742 * Moose::Meta::Method::Constructor
743 - A mutable class accepted Foo->new(undef) without complaint,
744 while an immutable class would blow up with an unhelpful
745 error. Now, in both cases we throw a helpful error
746 instead. Reported by doy.
748 0.71_01 Sun, February 22, 2009
750 - Hopefully fixed some POD errors in a few recipes that caused
751 them to display weird on search.cpan.org.
753 * Moose::Util::TypeConstraints
754 - Calling type or subtype without the sugar helpers (as, where,
755 message) is now deprecated.
756 - The subtype function tried hard to guess what you meant, but
757 often got it wrong. For example:
759 my $subtype = subtype as 'ArrayRef[Object]';
761 This caused an error in the past, but now works as you'd
765 - Make sure Moose.pm is loaded before calling
766 Moose->throw_error. This wasn't normally an issue, but could
767 bite you in weird cases.
769 0.71 Thu, February 19, 2009
770 * Moose::Cookbook::Basics::Recipe11
771 - A new recipe which demonstrates the use of BUILDARGS and
774 * Moose::Cookbook::Roles::Recipe3
775 - A new recipe, applying a role to an object instance. (Dave
779 - Allow overriding specific keywords from "also" packages. (doy)
782 - Replace hardcoded cookbook tests with Test::Inline to ensure
783 the tests match the actual code in the recipes. (Dave Rolsky)
786 - Working on the above turned up a number of little bugs in the
787 recipe code. (Dave Rolsky)
789 * Moose::Util::TypeConstraints::Optimized
790 - Just use Class::MOP for the optimized ClassName check. (Dave
793 0.70 Sat, February 14, 2009
794 * Moose::Util::TypeConstraints
795 - Added the RoleName type (stevan)
796 - added tests for this (stevan)
798 * Moose::Cookbook::Basics::Recipe3
799 - Updated the before qw[left right] sub to be a little more
800 defensive about what it accepts (stevan)
801 - added more tests to t/000_recipies/basics/003_binary_tree.t
805 - We now always call DEMOLISHALL, even if a class does not
806 define DEMOLISH. This makes sure that method modifiers on
807 DEMOLISHALL work as expected. (doy)
808 - added tests for this (EvanCarroll)
810 * Moose::Util::MetaRole
811 - Accept roles for the wrapped_method_metaclass (rafl)
812 - added tests for this (rafl)
814 * Moose::Meta::Attribute
815 - We no longer pass the meta-attribute object as a final
816 argument to triggers. This actually changed for inlined code a
817 while back, but the non-inlined version and the docs were
821 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
822 they require 0.11. (Dave Rolsky)
825 - Lots of small changes to the manual, cookbook, and
826 elsewhere. These were based on feedback from various
827 users, too many to list here. (Dave Rolsky)
829 0.69 Thu, February 12, 2009
831 - Make some keyword errors use throw_error instead of croak
832 since Moose::Exporter wraps keywords now (Sartak)
835 - Revised every recipe for style and clarity. Also moved some
836 documentation out of cookbook recipes and into Moose::Manual
837 pages. This work was funded as part of the Moose docs grant
838 from TPF. (Dave Rolsky)
840 * Moose::Meta::Method::Delegation
841 - If the attribute doing the delegation was not populated, the
842 error message did not specify the attribute name
845 0.68 Wed, February 4, 2009
847 - Many spelling, typo, and formatting fixes by daxim.
849 * Moose::Manual::Attributes
850 - The NAME section in the POD used "Attribute" so search.cpan
851 didn't resolve links from other documents properly.
853 * Moose::Meta::Method::Overriden
854 - Now properly spelled as Overridden. Thanks to daxim for
857 0.67 Tue, February 3, 2009
859 - Lots of little typo fixes and a few clarifications. Several
860 pages didn't have proper titles, and so weren't actually
861 visible on search.cpan.org. Thanks to hanekomu for a variety
862 of fixes and formatting improvements.
864 0.66 Tue, February 3, 2009
866 - This is a brand new, extensive manual for Moose. This aims to
867 provide a complete introduction to all of Moose's
868 features. This work was funded as part of the Moose docs grant
869 from TPF. (Dave Rolsky)
871 * Moose::Meta::Attribute
872 - Added a delegation_metaclass method to replace a hard-coded
873 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
875 * Moose::Util::TypeConstraints
876 - If you created a subtype and passed a parent that Moose didn't
877 know about, it simply ignored the parent. Now it automatically
878 creates the parent as a class type. This may not be what you
879 want, but is less broken than before. (Dave Rolsky)
881 * Moose::Util::TypeConstraints
882 - This module tried throw errors by calling Moose->throw_error,
883 but it did not ensure that Moose was loaded first. This could
884 cause very unhelpful errors when it tried to throw an error
885 before Moose was loaded. (Dave Rolsky)
887 * Moose::Util::TypeConstraints
888 - You could declare a name with subtype such as "Foo!Bar" that
889 would be allowed, but if you used it in a parameterized type
890 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
891 vetting on names created via the sugar functions, so that they
892 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
894 0.65 Thu, January 22, 2008
895 * Moose and Moose::Meta::Method::Overridden
896 - If an overridden method called super(), and then the
897 superclass's method (not overridden) _also_ called super(),
898 Moose went into an endless recursion loop. Test provided by
899 Chris Prather. (Dave Rolsky)
901 * Moose::Meta::TypeConstraint
902 - All methods are now documented. (gphat)
904 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
905 - Fixed some bogus failures that occurred because we tried to
906 validate filesystem paths in a very ad-hoc and
907 not-quite-correct way. (Dave Rolsky)
909 * Moose::Util::TypeConstraints
910 - Added maybe_type to exports. See docs for details. (rjbs)
913 - Added Moose::Util::TypeConstraints to the SEE ALSO
917 - Methods created via an attribute can now fulfill a "requires"
918 declaration for a role. (nothingmuch)
920 * Moose::Meta::Method::*
921 - Stack traces from inlined code will now report its line and
922 file as being in your class, as opposed to in Moose
925 0.64 Wed, December 31, 2008
926 * Moose::Meta::Method::Accessor
927 - Always inline predicate and clearer methods (Sartak)
929 * Moose::Meta::Attribute
930 - Support for parameterized traits (Sartak)
931 - verify_against_type_constraint method to avoid duplication
932 and enhance extensibility (Sartak)
935 - Tests (but no support yet) for parameterized traits (Sartak)
938 - Require Class::MOP 0.75+, which has the side effect of making
939 sure we work on Win32. (Dave Rolsky)
941 0.63 Mon, December 8, 2008
943 - Some small grammar tweaks and bug fixes in non-Moose example
946 0.62_02 Fri, December 5, 2008
947 * Moose::Meta::Role::Application::ToClass
948 - When a class does not provide all of a role's required
949 methods, the error thrown now mentions all of the missing
950 methods, as opposed to just the first one found. Requested by
951 Curtis Poe (RT #41119). (Dave Rolsky)
953 * Moose::Meta::Method::Constructor
954 - Moose will no longer inline a constructor for your class
955 unless it inherits its constructor from Moose::Object, and
956 will warn when it doesn't inline. If you want to force
957 inlining anyway, pass "replace_constructor => 1" to
958 make_immutable. Addresses RT #40968, reported by Jon
959 Swartz. (Dave Rolsky)
960 - The quoting of default values could be broken if the default
961 contained a single quote ('). Now we use quotemeta to escape
962 anything potentially dangerous in the defaults. (Dave Rolsky)
964 0.62_01 Wed, December 3, 2008
966 - use the method->execute API for BUILDALL
967 and DEMOLISHALL (Sartak)
969 * Moose::Util::TypeConstraints
970 - We now make all the type constraint meta classes immutable
971 before creating the default types provided by Moose. This
972 should make loading Moose a little faster. (Dave Rolsky)
974 0.62 Wed November 26, 2008
975 * Moose::Meta::Role::Application::ToClass
976 Moose::Meta::Role::Application::ToRole
977 - fixed issues where excluding and aliasing the
978 same methods for a single role did not work
979 right (worked just fine with multiple
981 - added test for this (stevan)
983 * Moose::Meta::Role::Application::RoleSummation
984 - fixed the error message when trying to compose
985 a role with a role it excludes (Sartak)
988 - Catch another case where recursion caused the value
989 of $CALLER to be stamped on (t0m)
990 - added test for this (t0m)
993 - Remove the make_immutable keyword, which has been
994 deprecated since April. It breaks metaclasses that
995 use Moose without no Moose (Sartak)
997 * Moose::Meta::Attribute
998 - Removing an attribute from a class now also removes delegation
999 (handles) methods installed for that attribute (t0m)
1000 - added test for this (t0m)
1002 * Moose::Meta::Method::Constructor
1003 - An attribute with a default that looked like a number (but was
1004 really a string) would accidentally be treated as a number
1005 when the constructor was made immutable (perigrin)
1006 - added test for this (perigrin)
1009 - create method for constructing a role
1010 dynamically (Sartak)
1011 - added test for this (Sartak)
1012 - anonymous roles! (Sartak)
1013 - added test for this (Sartak)
1016 - more consistent error messages (Sartak)
1018 * Moose::Cookbook::Roles::Recipe1
1019 - attempt to explain why a role that just requires
1020 methods is useful (Sartak)
1022 0.61 Fri November 7, 2008
1023 * Moose::Meta::Attribute
1024 - When passing a role to handles, it will be loaded if necessary
1027 * Moose::Meta::Class
1028 - Method objects returned by get_method (and other methods)
1029 Could end up being returned without an associated_metaclass
1030 attribute. Removing get_method_map, which is provided by
1031 Class::MOP::Class, fixed this. The Moose version did nothing
1032 different from its parent except introduce a bug. (Dave Rolsky)
1033 - added tests for this (jdv79)
1036 - Added a $VERSION to all .pm files which didn't have one. Fixes
1037 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1039 * Moose::Cookbook::Basics::Recipe4
1040 * Moose::Cookbook::Basics::Recipe6
1041 - These files had spaces on the first line of the SYNOPSIS, as
1042 opposed to a totally empty line. According to RT #40432, this
1043 confuses POD parsers. (Dave Rolsky)
1045 0.60 Fri October 24, 2008
1047 - Passing "-traits" when loading Moose caused the Moose.pm
1048 exports to be broken. Reported by t0m. (Dave Rolsky)
1049 - Tests for this bug. (t0m)
1052 - Change resolve_metaclass alias to use the new
1053 load_first_existing_class function. This makes it a lot
1054 simpler, and also around 5 times faster. (t0m)
1055 - Add caching to resolve_metaclass_alias, which gives an order
1056 of magnitude speedup to things which repeatedly call the
1057 Moose::Meta::Attribute->does method, notably MooseX::Storage
1060 * Moose::Util::TypeConstraint
1061 - Put back the changes for parameterized constraints that
1062 shouldn't have been removed in 0.59. We still cannot parse
1063 them, but MooseX modules can create them in some other
1064 way. See the 0.58 changes for more details. (jnapiorkowski)
1065 - Changed the way subtypes are created so that the job is
1066 delegated to a type constraint parent. This clears up some
1067 hardcoded checking and should allow correct subtypes of
1068 Moose::Meta::Type::Constraint. Don't rely on this new API too
1069 much (create_child_type) because it may go away in the
1070 future. (jnapiorkowski)
1072 * Moose::Meta::TypeConstraint::Union
1073 - Type constraint names are sorted as strings, not numbers.
1076 * Moose::Meta::TypeConstraint::Parameterizable
1077 - New parameterize method. This can be used as a factory method
1078 to make a new type constraint with a given parameterized
1079 type. (jnapiorkowski)
1080 - added tests (jnapiorkowski)
1082 0.59 Tue October 14, 2008
1084 - Add abridged documentation for builder/default/initializer/
1085 predicate, and link to more details sections in
1086 Class::MOP::Attribute. (t0m)
1088 * Moose::Util::TypeConstraints
1089 - removed prototypes from all but the &-based stuff (mst)
1091 * Moose::Util::TypeConstraints
1092 - Creating a anonymous subtype with both a constraint and a
1093 message failed with a very unhelpful error, but should just
1094 work. Reported by t0m. (Dave Rolsky)
1097 - Some tests that used Test::Warn if it was available failed
1098 with older versions of Test::Warn. Reported by Fayland. (Dave
1100 - Test firing behavior of triggers in relation to builder/default/
1102 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1103 kinds of supported type. (t0m)
1105 * Moose::Meta::Class
1106 - In create(), do not pass "roles" option to the superclass
1107 - added related test that creates an anon metaclass with
1108 a required attribute
1110 * Moose::Meta::TypeConstraint::Class
1111 * Moose::Meta::TypeConstraint::Role
1112 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1113 other types (as per change in 0.55_02). (t0m)
1115 * Moose::Meta::TypeConstraint::Registry
1116 - Fix warning when dealing with unknown type names (t0m)
1118 * Moose::Util::TypeConstraints
1119 - Reverted changes from 0.58 related to handle parameterized
1120 types. This caused random failures on BSD and Win32 systems,
1121 apparently related to the regex engine. This means that Moose
1122 can no longer parse structured type constraints like
1123 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1124 supported in a slightly different way via MooseX::Types some
1125 time in the future. (Dave Rolsky)
1127 0.58 Sat September 20, 2008
1128 !! This release has an incompatible change regarding !!
1129 !! how roles add methods to a class !!
1131 * Roles and role application
1132 ! Roles now add methods by calling add_method, not
1133 alias_method. They make sure to always provide a method
1134 object, which will be cloned internally. This means that it is
1135 now possible to track the source of a method provided by a
1136 role, and even follow its history through intermediate roles.
1138 This means that methods added by a role now show up when
1139 looking at a class's method list/map. (Dave Rolsky)
1142 - From this release on, we'll try to maintain a list of
1143 conflicting modules, and warn you if you have one
1144 installed. For example, this release conflicts with ...
1145 - MooseX::Singleton <= 0.11
1146 - MooseX::Params::Validate <= 0.05
1149 In general, we try to not break backwards compatibility for
1150 most Moose users, but MooseX modules and other code which
1151 extends Moose's metaclasses is often affected by very small
1152 changes in the Moose internals.
1154 * Moose::Meta::Method::Delegation
1155 * Moose::Meta::Attribute
1156 - Delegation methods now have their own method class. (Dave
1159 * Moose::Meta::TypeConstraint::Parameterizable
1160 - Added a new method 'parameterize' which is basically a factory
1161 for the containing constraint. This makes it easier to create
1162 new types of parameterized constraints. (jnapiorkowski)
1164 * Moose::Meta::TypeConstraint::Union
1165 - Changed the way Union types canonicalize their names to follow
1166 the normalized TC naming rules, which means we strip all
1167 whitespace. (jnapiorkowski)
1169 * Moose::Util::TypeConstraints
1170 - Parameter and Union args are now sorted, this makes Int|Str
1171 the same constraint as Str|Int. (jnapiorkowski)
1172 - Changes to the way Union types are parsed to more correctly
1173 stringify their names. (jnapiorkowski)
1174 - When creating a parameterized type, we now use the new
1175 parameterize method. (jnapiorkowski)
1176 - Incoming type constraint strings are now normalized to remove
1177 all whitespace differences. (jnapiorkowski)
1178 - Changed the way we parse type constraint strings so that we now
1179 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1180 constraints. This lays the foundation for more flexible type
1181 constraint implementations.
1183 * Tests and docs for all the above. (jnapiorkowski)
1187 - Moose::Exporter will no longer remove a subroutine that the
1188 exporting package re-exports. Moose re-exports the
1189 Carp::confess function, among others. The reasoning is that we
1190 cannot know whether you have also explicitly imported those
1191 functions for your own use, so we err on the safe side and
1192 always keep them. (Dave Rolsky)
1193 - added tests for this (rafl)
1195 * Moose::Meta::Class
1196 - Changes to how we fix metaclass compatibility that are much
1197 too complicated to go into. The summary is that Moose is much
1198 less likely to complain about metaclass incompatibility
1199 now. In particular, if two metaclasses differ because
1200 Moose::Util::MetaRole was used on the two corresponding
1201 classes, then the difference in roles is reconciled for the
1202 subclass's metaclass. (Dave Rolsky)
1203 - Squashed an warning in _process_attribute (thepler)
1206 - throw exceptions (sooner) for invalid attribute names (thepler)
1207 - added tests for this (thepler)
1209 * Moose::Util::MetaRole
1210 - If you explicitly set a constructor or destructor class for a
1211 metaclass object, and then applied roles to the metaclass,
1212 that explicitly set class would be lost and replaced with the
1215 * Moose::Meta::Class
1216 * Moose::Meta::Attribute
1217 * Moose::Meta::Method
1220 * Moose::Error::Default
1221 * Moose::Error::Croak
1222 * Moose::Error::Confess
1223 - All instances of confess() changed to use overridable
1224 C<throw_error> method. This method ultimately calls a class
1225 constructor, and you can change the class being called. In
1226 addition, errors now pass more information than just a string.
1227 The default C<error_class> behaves like C<Carp::confess>, so
1228 the behavior is not visibly different for end users.
1230 0.57 Wed September 3, 2008
1232 - A new bit of doc intended to introduce folks familiar with
1233 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1235 * Moose::Unsweetened
1236 - Shows examples of two classes, each done first with and then
1237 without Moose. This makes a nice parallel to
1238 Moose::Intro. (Dave Rolsky)
1240 * Moose::Util::TypeConstraints
1241 - Fixed a bug in find_or_parse_type_constraint so that it
1242 accepts a Moose::Meta::TypeConstraint object as the parent
1243 type, not just a name (jnapiorkowski)
1244 - added tests (jnapiorkowski)
1247 - If Sub::Name was not present, unimporting failed to actually
1248 remove some sugar subs, causing test failures (Dave Rolsky)
1250 0.56 Mon September 1, 2008
1251 For those not following the series of dev releases, there are
1252 several major changes in this release of Moose.
1253 ! Moose::init_meta should now be called as a method. See the
1256 - Major performance improvements by nothingmuch.
1258 - New modules for extension writers, Moose::Exporter and
1259 Moose::Util::MetaRole by Dave Rolsky.
1261 - Lots of doc improvements and additions, especially in the
1264 - Various bug fixes.
1266 * Removed all references to the experimental-but-no-longer-needed
1267 Moose::Meta::Role::Application::ToMetaclassInstance.
1269 * Require Class::MOP 0.65.
1271 0.55_04 Sat August 30, 2008
1272 * Moose::Util::MetaRole
1273 * Moose::Cookbook::Extending::Recipe2
1274 - This simplifies the application of roles to any meta class, as
1275 well as the base object class. Reimplemented metaclass traits
1276 using this module. (Dave Rolsky)
1278 * Moose::Cookbook::Extending::Recipe1
1279 - This a new recipe, an overview of various ways to write Moose
1280 extensions (Dave Rolsky)
1282 * Moose::Cookbook::Extending::Recipe3
1283 * Moose::Cookbook::Extending::Recipe4
1284 - These used to be Extending::Recipe1 and Extending::Recipe2,
1287 0.55_03 Fri August 29, 2008
1288 * No changes from 0.55_02 except increasing the Class::MOP
1289 dependency to 0.64_07.
1291 0.55_02 Fri August 29, 2008
1292 * Makefile.PL and Moose.pm
1293 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1295 * Moose::Util::TypeConstraints
1296 - Fix warnings from find_type_constraint if the type is not
1299 * Moose::Meta::TypeConstraint
1300 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1301 return false if the type you specify cannot be found in the
1302 type registry, rather than throwing an unhelpful and
1303 coincidental exception. (t0m).
1304 - added docs & test for this (t0m)
1306 * Moose::Meta::TypeConstraint::Registry
1307 - add_type_constraint now throws an exception if a parameter is
1309 - added docs & test for this (t0m)
1311 * Moose::Cookbook::FAQ
1312 - Added a faq entry on the difference between "role" and "trait"
1316 - Fixed a bug that caused role composition to not see a required
1317 method when that method was provided by another role being
1318 composed at the same time. (Dave Rolsky)
1319 - test and bug finding (tokuhirom)
1321 0.55_01 Wed August 20, 2008
1323 !! Calling Moose::init_meta as a function is now !!
1324 !! deprecated. Please see the Moose.pm docs for details. !!
1326 * Moose::Meta::Method::Constructor
1327 - Fix inlined constructor so that values produced by default
1328 or builder methods are coerced as required. (t0m)
1329 - added test for this (t0m)
1331 * Moose::Meta::Attribute
1332 - A lazy attribute with a default or builder did not attempt to
1333 coerce the default value. The immutable code _did_
1335 - added test for this (t0m)
1338 - This is a new helper module for writing "Moose-alike"
1339 modules. This should make the lives of MooseX module authors
1340 much easier. (Dave Rolsky)
1343 * Moose::Cookbook::Meta::Recipe5
1344 - Implemented metaclass traits (and wrote a recipe for it):
1346 use Moose -traits => 'Foo'
1348 This should make writing small Moose extensions a little
1349 easier (Dave Rolsky)
1351 * Moose::Cookbook::Basics::Recipe1
1352 - Removed any examples of direct hashref access, and applied an
1353 editorial axe to reduce verbosity. (Dave Rolsky)
1355 * Moose::Cookbook::Basics::Recipe1
1356 - Also applied an editorial axe here. (Dave Rolsky)
1359 * Moose::Cookbook::Extending::Recipe1
1360 * Moose::Cookbook::Extending::Recipe2
1361 - Rewrote extending and embedding moose documentation and
1362 recipes to use Moose::Exporter (Dave Rolsky)
1366 - These two modules now warn when you load them from the main
1367 package "main" package, because we will not export sugar to
1368 main. Previously it just did nothing. (Dave Rolsky)
1371 - Now provide an init_meta method just like Moose.pm, and you
1372 can call this to provide an alternate role metaclass. (Dave
1373 Rolsky and nothingmuch)
1374 - get_method_map now respects the package cache flag (nothingmuch)
1377 - Two new methods - add_method and wrap_method_body
1381 - Optimizations including allowing constructors to accept hash
1382 refs, making many more classes immutable, and making
1383 constructors immutable. (nothingmuch)
1385 0.55 Sun August 3, 2008
1386 * Moose::Meta::Attribute
1387 - breaking down the way 'handles' methods are
1388 created so that the process can be more easily
1389 overridden by subclasses (stevan)
1391 * Moose::Meta::TypeConstraint
1392 - fixing what is passed into a ->message with
1393 the type constraints (RT #37569)
1394 - added tests for this (Charles Alderman)
1396 * Moose::Util::TypeConstraints
1397 - fix coerce to accept anon types like subtype can (mst)
1400 - reorganized the recipes into sections - Basics, Roles, Meta,
1401 Extending - and wrote abstracts for each section (Dave Rolsky)
1403 * Moose::Cookbook::Basics::Recipe10
1404 - A new recipe that demonstrates operator overloading
1405 in combination with Moose. (bluefeet)
1407 * Moose::Cookbook::Meta::Recipe1
1408 - an introduction to what meta is and why you'd want to make
1409 your own metaclass extensions (Dave Rolsky)
1411 * Moose::Cookbook::Meta::Recipe4
1412 - a very simple metaclass example (Dave Rolsky)
1414 * Moose::Cookbook::Extending::Recipe1
1415 - how to write a Moose-alike module to use your own object base
1418 * Moose::Cookbook::Extending::Recipe2
1419 - how to write modules with an API just like C<Moose.pm> (Dave
1423 - Tons of fixes, both syntactical and grammatical (Dave
1424 Rolsky, Paul Fenwick)
1426 0.54 Thurs. July 3, 2008
1427 ... this is not my day today ...
1429 * Moose::Meta::Attribute
1430 - fixed legal_options_for_inheritance such that
1431 clone_and_inherit options still works for
1432 Class::MOP::Attribute objects and therefore
1433 does not break MooseX::AttributeHelpers
1436 0.53 Thurs. July 3, 2008
1437 * Whoops, I guess I should run 'make manifest' before
1438 actually releasing the module. No actual changes
1439 in this release, except the fact that it includes
1440 the changes that I didn't include in the last
1443 0.52 Thurs. July 3, 2008
1445 - added "FEATURE REQUESTS" section to the Moose docs
1446 to properly direct people (stevan) (RT #34333)
1447 - making 'extends' croak if it is passed a Role since
1448 this is not ever something you want to do
1449 (fixed by stevan, found by obra)
1450 - added tests for this (stevan)
1453 - adding support for DOES (as in UNIVERSAL::DOES)
1455 - added test for this
1457 * Moose::Meta::Attribute
1458 - added legal_options_for_inheritance (wreis)
1459 - added tests for this (wreis)
1461 * Moose::Cookbook::Snacks::*
1462 - removed some of the unfinished snacks that should
1463 not have been released yet. Added some more examples
1464 to the 'Keywords' snack. (stevan)
1466 * Moose::Cookbook::Style
1467 - added general Moose "style guide" of sorts to the
1468 cookbook (nothingmuch) (RT #34335)
1471 - added more BUILDARGS tests (stevan)
1473 0.51 Thurs. Jun 26, 2008
1475 - add unimport so "no Moose::Role" actually does
1478 * Moose::Meta::Role::Application::ToRole
1479 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1480 order to provide its own implementation, that method still got
1481 added to the list of required methods for consumers of
1482 RoleB. Now an aliased method is only added to the list of
1483 required methods if the role doing the aliasing does not
1484 provide its own implementation. See Recipe 11 for an example
1485 of all this. (Dave Rolsky)
1486 - added tests for this
1488 * Moose::Meta::Method::Constructor
1489 - when a single argument that wasn't a hashref was provided to
1490 an immutabilized constructor, the error message was very
1491 unhelpful, as opposed to the non-immutable error. Reported by
1493 - added test for this (Dave Rolsky)
1495 * Moose::Meta::Attribute
1496 - added support for meta_attr->does("ShortAlias") (sartak)
1497 - added tests for this (sartak)
1498 - moved the bulk of the `handles` handling to the new
1499 install_delegation method (Stevan)
1502 - Added BUILDARGS, a new step in new()
1504 * Moose::Meta::Role::Application::RoleSummation
1505 - fix typos no one ever sees (sartak)
1507 * Moose::Util::TypeConstraints
1508 * Moose::Meta::TypeConstraint
1509 * Moose::Meta::TypeCoercion
1510 - Attempt to work around the ??{ } vs. threads issue
1512 - Some null_constraint optimizations
1514 0.50 Thurs. Jun 11, 2008
1515 - Fixed a version number issue by bumping all modules
1518 0.49 Thurs. Jun 11, 2008
1519 !! This version now approx. 20-25% !!
1520 !! faster with new Class::MOP 0.59 !!
1522 * Moose::Meta::Attribute
1523 - fixed how the is => (ro|rw) works with
1524 custom defined reader, writer and accessor
1526 - added docs for this (TODO).
1527 - added tests for this (Thanks to Penfold)
1528 - added the custom attribute alias for regular
1529 Moose attributes which is "Moose"
1530 - fix builder and default both being used
1535 Moose::Meta::Attribute
1537 Moose::Meta::Role::Composite
1538 Moose::Util::TypeConstraints
1539 - switched usage of reftype to ref because
1543 - changing add_package_symbol to use the new
1547 - fixed how DEMOLISHALL is called so that it
1548 can be overrided in subclasses (thanks to Sartak)
1549 - added test for this (thanks to Sartak)
1551 * Moose::Util::TypeConstraints
1552 - move the ClassName type check code to
1553 Class::MOP::is_class_loaded (thanks to Sartak)
1555 * Moose::Cookbook::Recipe11
1556 - add tests for this (thanks to tokuhirom)
1558 0.48 Thurs. May 29, 2008
1559 (early morning release engineering)--
1561 - fixing the version in Moose::Meta::Method::Destructor
1562 which was causing the indexer to choke
1564 0.47 Thurs. May 29, 2008
1565 (late night release engineering)--
1567 - fixing the version is META.yml, no functional
1568 changes in this release
1570 0.46 Wed. May 28, 2008
1571 !! This version now approx. 20-25% !!
1572 !! faster with new Class::MOP 0.57 !!
1574 * Moose::Meta::Class
1575 - some optimizations of the &initialize method
1576 since it is called so often by &meta
1578 * Moose::Meta::Class
1580 - now use the get_all_package_symbols from the
1581 updated Class::MOP, test suite is now 10 seconds
1584 * Moose::Meta::Method::Destructor
1585 - is_needed can now also be called as a class
1586 method for immutablization to check if the
1587 destructor object even needs to be created
1590 * Moose::Meta::Method::Destructor
1591 Moose::Meta::Method::Constructor
1592 - added more descriptive error message to help
1593 keep people from wasting time tracking an error
1594 that is easily fixed by upgrading.
1596 0.45 Saturday, May 24, 2008
1598 - Because of work in Class::MOP 0.57, all
1599 XS based functionality is now optional
1600 and a Pure Perl version is supplied
1601 - the CLASS_MOP_NO_XS environment variable
1602 can now be used to force non-XS versions
1604 - several of the packages have been tweaked
1605 to take care of this, mostly we added
1606 support for the package_name and name
1607 variables in all the Method metaclasses
1608 - before/around/after method modifiers now
1609 support regexp matching of names
1610 (thanks to Takatoshi Kitano)
1611 - tests added for this
1612 - NOTE: this only works for classes, it
1613 is currently not supported in roles,
1614 but, ... patches welcome
1615 - All usage of Carp::confess have been replaced
1616 by Carp::croak in the "keyword" functions since
1617 the stack trace is usually not helpful
1620 - All usage of Carp::confess have been replaced
1621 by Carp::croak in the "keyword" functions since
1622 the stack trace is usually not helpful
1623 - The 'has' keyword for roles now accepts the
1624 same array ref form that Moose.pm does
1625 (has [qw/foo bar/] => (is => 'rw', ...))
1626 - added test for this
1628 * Moose::Meta::Attribute
1629 - trigger on a ro-attribute is no longer an
1630 error, as it's useful to trigger off of the
1633 * Moose::Meta::Class
1634 - added same 'add_package_symbol' fix as in
1638 - does_role now handles non-Moose classes
1640 - added tests for this
1641 - added the 'add_method_modifier' function
1642 (thanks to Takatoshi Kitano)
1644 * Moose::Util::TypeConstraints
1645 - subtypes of parameterizable types now are
1646 themselves parameterizable types
1648 * Moose::Meta::Method::Constructor
1649 - fixed bug where trigger was not being
1650 called by the inlined immutable
1652 - added test for this (thanks to Caelum)
1654 * Moose::Meta::Role::Application::ToInstance
1655 - now uses the metaclass of the instance
1656 (if possible) to create the anon-class
1657 (thanks Jonathan Rockway)
1659 * Moose::Cookbook::Recipe22
1660 - added the meta-attribute trait recipe
1664 - fixed hash-ordering test bug that was
1665 causing occasional cpantester failures
1666 - renamed the t/000_recipe/*.t tests to be
1667 more descriptive (thanks to Sartak)
1669 0.44 Sat. May 10, 2008
1671 - made make_immutable warning cluck to
1672 show where the error is (thanks mst)
1675 - BUILDALL and DEMOLISHALL now call
1676 ->body when looping through the
1677 methods, to avoid the overloaded
1679 - fixed issue where DEMOLISHALL was
1680 eating the $@ values, and so not
1681 working correctly, it still kind of
1682 eats them, but so does vanilla perl
1683 - added tests for this
1685 * Moose::Cookbook::Recipe7
1686 - added new recipe for immutable
1687 functionality (thanks Dave Rolsky)
1689 * Moose::Cookbook::Recipe9
1690 - added new recipe for builder and
1691 lazy_build (thanks Dave Rolsky)
1693 * Moose::Cookbook::Recipe11
1694 - added new recipe for method aliasing
1695 and exclusion with Roles (thanks Dave Rolsky)
1698 - fixed Win32 test failure (thanks spicyjack)
1700 ~ removed Build.PL and Module::Build compat
1701 since Module::Install has done that.
1703 0.43 Wed. April, 30, 2008
1705 drink more coffee before
1706 doing release engineering
1708 - whoops, forgot to do the smolder tests,
1709 and we broke some of the custom meta-attr
1710 modules. This fixes that.
1712 0.42 Mon. April 28, 2008
1713 - some bad tests slipped by, nothing else
1714 changed in this release (cpantesters++)
1716 - upped the Class::MOP dependency to 0.55
1717 since we have tests which need the C3
1720 0.41 Mon. April 28, 2008
1721 ~~ numerous documentation updates ~~
1723 - Changed all usage of die to Carp::croak for better
1724 error reporting (initial patch by Tod Hagan)
1726 ** IMPORTANT NOTE **
1727 - the make_immutable keyword is now deprecated, don't
1728 use it in any new code and please fix your old code
1729 as well. There will be 2 releases, and then it will
1735 - refactored the way inner and super work to avoid
1736 any method/@ISA cache penalty (nothingmuch)
1738 * Moose::Meta::Class
1739 - fixing &new_object to make sure trigger gets the
1740 coerced value (spotted by Charles Alderman on the
1742 - added test for this
1744 * Moose::Meta::Method::Constructor
1745 - immutable classes which had non-lazy attributes were calling
1746 the default generating sub twice in the constructor. (bug
1747 found by Jesse Luehrs, fixed by Dave Rolsky)
1748 - added tests for this (Dave Rolsky)
1749 - fix typo in initialize_body method (nothingmuch)
1751 * Moose::Meta::Method::Destructor
1752 - fix typo in initialize_body method (nothingmuch)
1754 * Moose::Meta::Method::Overriden
1755 Moose::Meta::Method::Augmented
1756 - moved the logic for these into their own
1757 classes (nothingmuch)
1759 * Moose::Meta::Attribute
1760 - inherited attributes may now be extended without
1761 restriction on the type ('isa', 'does') (Sartak)
1762 - added tests for this (Sartak)
1763 - when an attribute property is malformed (such as lazy without
1764 a default), give the name of the attribute in the error
1766 - added the &applied_traits and &has_applied_traits methods
1767 to allow introspection of traits
1768 - added tests for this
1769 - moved 'trait' and 'metaclass' argument handling to here from
1771 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1772 '+foo' syntax) (nothingmuch)
1773 - added tests for this (t0m)
1776 - localize $@ inside DEMOLISHALL to avoid it
1777 eating $@ (found by Ernesto)
1778 - added test for this (thanks to Ernesto)
1780 * Moose::Util::TypeConstraints
1781 - &find_type_constraint now DWIMs when given an
1782 type constraint object or name (nothingmuch)
1783 - &find_or_create_type_constraint superseded with a number of more
1785 - find_or_create_{isa,does}_type_constraint
1786 - find_or_parse_type_constraint
1788 * Moose::Meta::TypeConstraint
1789 Moose::Meta::TypeConstraint::Class
1790 Moose::Meta::TypeConstraint::Role
1791 Moose::Meta::TypeConstraint::Enum
1792 Moose::Meta::TypeConstraint::Union
1793 Moose::Meta::TypeConstraint::Parameterized
1794 - added the &equals method for comparing two type
1795 constraints (nothingmuch)
1796 - added tests for this (nothingmuch)
1798 * Moose::Meta::TypeConstraint
1799 - add the &parents method, which is just an alias to &parent.
1800 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1802 * Moose::Meta::TypeConstraint::Class
1803 - added the class attribute for introspection purposes
1805 - added tests for this
1807 * Moose::Meta::TypeConstraint::Enum
1808 Moose::Meta::TypeConstraint::Role
1809 - broke these out into their own classes (nothingmuch)
1811 * Moose::Cookbook::Recipe*
1812 - fixed references to test file locations in the POD
1813 and updated up some text for new Moose features
1817 - Added &resolve_metaclass_alias, a helper function for finding an actual
1818 class for a short name (e.g. in the traits list)
1820 0.40 Fri. March 14, 2008
1821 - I hate Pod::Coverage
1823 0.39 Fri. March 14, 2008
1825 - documenting the use of '+name' with attributes
1826 that come from recently composed roles. It makes
1827 sense, people are using it, and so why not just
1828 officially support it.
1829 - fixing the 'extends' keyword so that it will not
1830 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1833 - added the perl -Moose=+Class::Name feature to allow
1834 monkeypatching of classes in one liners
1837 - fixing the 'apply_all_roles' keyword so that it will not
1838 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1840 * Moose::Meta::Class
1841 - added ->create method which now supports roles (thanks to jrockway)
1842 - added tests for this
1843 - added ->create_anon_class which now supports roles and caching of
1844 the results (thanks to jrockway)
1845 - added tests for this
1846 - made ->does_role a little more forgiving when it is
1847 checking a Class::MOP era metaclasses.
1849 * Moose::Meta::Role::Application::ToInstance
1850 - it is now possible to pass extra params to be used when
1851 a role is applied to an the instance (rebless_params)
1852 - added tests for this
1854 * Moose::Util::TypeConstraints
1855 - class_type now accepts an optional second argument for a
1856 custom message. POD anotated accordingly (groditi)
1857 - added tests for this
1858 - it is now possible to make anon-enums by passing 'enum' an
1859 ARRAY ref instead of the $name => @values. Everything else
1861 - added tests for this
1864 - making test for using '+name' on attributes consumed
1865 from a role, it works and makes sense too.
1867 * Moose::Meta::Attribute
1868 - fix handles so that it doesn't return nothing
1869 when the method cannot be found, not sure why
1870 it ever did this originally, this means we now
1871 have slightly better support for AUTOLOADed
1873 - added more delegation tests
1874 - adding ->does method to this so as to better
1875 support traits and their introspection.
1876 - added tests for this
1879 - localizing the Data::Dumper configurations so
1880 that it does not pollute others (RT #33509)
1881 - made ->does a little more forgiving when it is
1882 passed Class::MOP era metaclasses.
1884 0.38 Fri. Feb. 15, 2008
1885 * Moose::Meta::Attribute
1886 - fixed initializer to correctly do
1887 type checking and coercion in the
1889 - added tests for this
1892 - fixed some finicky tests (thanks to konobi)
1894 0.37 Thurs. Feb. 14, 2008
1896 - fixed some details in Moose::init_meta
1897 and its superclass handling (thanks thepler)
1898 - added tests for this (thanks thepler)
1899 - 'has' now dies if you don't pass in name
1901 - added the 'make_immutable' keyword as a shortcut
1904 * Moose::Meta::Class
1905 Moose::Meta::Method::Constructor
1906 Moose::Meta::Attribute
1907 - making (init_arg => undef) work here too
1908 (thanks to nothingmuch)
1910 * Moose::Meta::Attribute
1911 Moose::Meta::Method::Constructor
1912 Moose::Meta::Method::Accessor
1913 - make lazy attributes respect attr initializers (rjbs)
1914 - added tests for this
1916 * Moose::Util::TypeConstraints
1917 Moose::Util::TypeConstraints::OptimizedConstraints
1918 Moose::Meta::TypeConstraints
1919 Moose::Meta::Attribute
1920 Moose::Meta::Method::Constructor
1921 Moose::Meta::Method::Accessor
1922 - making type errors use the
1923 assigned message (thanks to Sartak)
1924 - added tests for this
1926 * Moose::Meta::Method::Destructor
1927 - making sure DESTROY gets inlined properly
1928 with successive DEMOLISH calls (thanks to manito)
1930 * Moose::Meta::Attribute
1931 Moose::Meta::Method::Accessor
1932 - fixed handling of undef with type constraints
1934 - added tests for this
1937 - added &get_all_init_args and &get_all_attribute_values
1938 (thanks to Sartak and nothingmuch)
1940 0.36 Sat. Jan. 26, 2008
1942 Moose::Meta::Attribute
1943 - role type tests now support when roles are
1944 applied to non-Moose classes (found by ash)
1945 - added tests for this (thanks to ash)
1946 - couple extra tests to boost code coverage
1948 * Moose::Meta::Method::Constructor
1949 - improved fix for handling Class::MOP attributes
1950 - added test for this
1952 * Moose::Meta::Class
1953 - handled the add_attribute($attribute_meta_object)
1955 - added test for this
1957 0.35 Tues. Jan. 22, 2008
1958 * Moose::Meta::Method::Constructor
1959 - fix to make sure even Class::MOP attributes
1960 are handled correctly (Thanks to Dave Rolsky)
1961 - added test for this (also Dave Rolsky)
1963 * Moose::Meta::Class
1964 - improved error message on _apply_all_roles,
1965 you should now use Moose::Util::apply_all_roles
1966 and you shouldnt have been using a _ prefixed
1967 method in the first place ;)
1969 0.34 Mon. Jan. 21, 2008
1970 ~~~ more misc. doc. fixes ~~~
1971 ~~ updated copyright dates ~~
1973 Moose is now a postmodern object system :)
1974 - (see the POD for details)
1976 * <<Role System Refactoring>>
1977 - this release contains a major reworking and
1978 cleanup of the role system
1979 - 100% backwards compat.
1980 - Role application now restructured into seperate
1981 classes based on type of applicants
1982 - Role summation (combining of more than one role)
1983 is much cleaner and anon-classes are no longer
1984 used in this process
1985 - new Composite role metaclass
1986 - runtime application of roles to instances
1987 is now more efficient and re-uses generated
1988 classes when applicable
1990 * <<New Role composition features>>
1991 - methods can now be excluded from a given role
1993 - methods can now be aliased to another name (and
1994 still retain the original as well)
1996 * Moose::Util::TypeConstraints::OptimizedConstraints
1997 - added this module (see above)
1999 * Moose::Meta::Class
2000 - fixed the &_process_attribute method to be called
2001 by &add_attribute, so that the API is now correct
2003 * Moose::Meta::Method::Accessor
2004 - fixed bug when passing a list of values to
2005 an accessor would get (incorrectly) ignored.
2006 Thanks to Sartak for finding this ;)
2007 - added tests for this (Sartak again)
2009 * Moose::Meta::Method::Accessor
2010 Moose::Meta::Method::Constructor
2011 Moose::Meta::Attribute
2012 Moose::Meta::TypeConstraint
2013 Moose::Meta::TypeCoercion
2014 - lots of cleanup of such things as:
2016 - type constraint handling
2017 - error handling/messages
2018 (thanks to nothingmuch)
2020 * Moose::Meta::TypeConstraint::Parameterizable
2021 - added this module to support the refactor
2022 in Moose::Meta::TypeConstraint::Parameterized
2024 * Moose::Meta::TypeConstraint::Parameterized
2025 - refactored how these types are handled so they
2026 are more generic and not confined to ArrayRef
2030 - shortened some file names for better VMS support (RT #32381)
2032 0.33 Fri. Dec. 14, 2007
2033 !! Moose now loads 2 x faster !!
2034 !! with new Class::MOP 0.49 !!
2036 ++ new oose.pm module to make command line
2037 Moose-ness easier (see POD docs for more)
2039 * Moose::Meta::Class
2041 - several tweaks to take advantage of the
2042 new method map caching in Class::MOP
2044 * Moose::Meta::TypeConstraint::Parameterized
2045 - allow subtypes of ArrayRef and HashRef to
2046 be used as a container (sartak)
2047 - added tests for this
2048 - basic support for coercion to ArrayRef and
2049 HashRef for containers (sartak)
2050 - added tests for this
2052 * Moose::Meta::TypeCoercion
2053 - coercions will now create subtypes as needed
2054 so you can now add coercions to parameterized
2055 types without having to explictly define them
2056 - added tests for this
2058 * Moose::Meta::Method::Accessor
2059 - allow subclasses to decide whether we need
2060 to copy the value into a new variable (sartak)
2062 0.32 Tues. Dec. 4, 2007
2063 * Moose::Util::TypeConstraints
2064 - fixing how subtype aliases of unions work
2065 they should inherit the parent's coercion
2066 - added tests for this
2067 - you can now define multiple coercions on
2068 a single type at different times instead of
2069 having to do it all in one place
2070 - added tests for this
2072 * Moose::Meta::TypeConstraint
2073 - there is now a default constraint of sub { 1 }
2074 instead of Moose::Util::TypeConstraints setting
2077 * Moose::Meta::TypeCoercion
2078 * Moose::Meta::TypeCoercion::Union
2079 - added the &has_coercion_for_type and
2080 &add_type_coercions methods to support the
2081 new features above (although you cannot add
2082 more type coercions for Union types)
2084 0.31 Mon. Nov. 26, 2007
2085 * Moose::Meta::Attribute
2086 - made the +attr syntax handle extending types with
2087 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2088 now works if the original foo is an ArrayRef.
2089 - added tests for this.
2090 - delegation now works even if the attribute does not
2091 have a reader method using the get_read_method_ref
2092 method from Class::MOP::Attribute.
2093 - added tests for this
2094 - added docs for this
2096 * Moose::Util::TypeConstraints
2097 - passing no "additional attribute info" to
2098 &find_or_create_type_constraint will no longer
2099 attempt to create an __ANON__ type for you,
2100 instead it will just return undef.
2101 - added docs for this
2103 0.30 Fri. Nov. 23, 2007
2104 * Moose::Meta::Method::Constructor
2105 -builder related bug in inlined constructor. (groditi)
2107 * Moose::Meta::Method::Accessor
2108 - genereate unnecessary calls to predicates and refactor
2109 code generation for runtime speed (groditi)
2111 * Moose::Util::TypeConstraints
2112 - fix ClassName constraint to introspect symbol table (mst)
2113 - added more tests for this (mst)
2114 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2115 with work correctly.
2116 - added tests for this
2119 - adding the link to Recipie 11 (written by Sartak)
2120 - adding test for SYNOPSIS code
2123 - New tests for builder bug. Upon instantiation, if an
2124 attribute had a builder, no value and was not lazy the
2125 builder default was not getting run, oops. (groditi)
2127 0.29 Tues. Nov. 13, 2007
2128 * Moose::Meta::Attribute
2129 - Fix error message on missing builder method (groditi)
2131 * Moose::Meta::Method::Accessor
2132 - Fix error message on missing builder method (groditi)
2135 - Add test to check for the correct error message when
2136 builder method is missing (groditi)
2138 0.28 Tues. Nov. 13, 2007
2139 - 0.27 packaged incorrectly (groditi)
2141 0.27 Tues. Nov. 13, 2007
2142 * Moose::Meta::Attribute
2143 - Added support for the new builder option (groditi)
2144 - Added support for lazy_build option (groditi)
2145 - Changed slot initialization for predicate changes (groditi)
2147 * Moose::Meta::Method::Accessor
2148 - Added support for lazy_build option (groditi)
2149 - Fix inline methods to work with corrected predicate
2152 * Moose::Meta::Method::Constructor
2153 - Added support for lazy_build option (groditi)
2156 - tests for builder and lazy_build (groditi)
2158 * fixing some misc. bits in the docs that
2159 got mentioned on CPAN Forum & perlmonks
2162 - fixed how required methods are handled
2163 when they encounter overriden or modified
2164 methods from a class (thanks to confound).
2165 - added tests for this
2167 * Moose::Util::TypeConstraint
2168 - fixed the type notation parser so that
2169 the | always creates a union and so is
2170 no longer a valid type char (thanks to
2171 konobi, mugwump and #moose for working
2173 - added more tests for this
2175 0.26 Thurs. Sept. 27, 2007
2178 * Parameterized Types
2179 We now support parameterized collection types, such as:
2180 ArrayRef[Int] # array or integers
2181 HashRef[Object] # a hash with object values
2182 They can also be nested:
2183 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2184 And work with the type unions as well:
2185 ArrayRef[Int | Str] # array of integers of strings
2187 * Better Framework Extendability
2188 Moose.pm is now "extendable" such that it is now much
2189 easier to extend the framework and add your own keywords
2190 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2191 section of the Moose.pm docs.
2194 In an effort to begin documenting some of the various
2195 details of Moose as well as some common idioms, we have
2196 created Moose::Cookbook::Snacks as a place to find
2197 small (easily digestable) nuggets of Moose code.
2200 ~ Several doc updates/cleanup thanks to castaway ~
2202 - converted build system to use Module::Install instead of
2203 Module::Build (thanks to jrockway)
2206 - added all the meta classes to the immutable list and
2207 set it to inline the accessors
2208 - fix import to allow Sub::Exporter like { into => }
2209 and { into_level => } (perigrin)
2210 - exposed and documented init_meta() to allow better
2211 embedding and extending of Moose (perigrin)
2214 - complete re-organization of the test suite
2215 - added some new tests as well
2216 - finally re-enabled the Moose::POOP test since
2217 the new version of DBM::Deep now works again
2220 * Moose::Meta::Class
2221 - fixed very odd and very nasty recursion bug with
2223 - added tests for this (eilara)
2225 * Moose::Meta::Attribute
2226 Moose::Meta::Method::Constructor
2227 Moose::Meta::Method::Accessor
2228 - fixed issue with overload::Overloaded getting called
2229 on non-blessed items. (RT #29269)
2230 - added tests for this
2232 * Moose::Meta::Method::Accessor
2233 - fixed issue with generated accessor code making
2234 assumptions about hash based classes (thanks to dexter)
2236 * Moose::Coookbook::Snacks
2237 - these are bits of documentation, not quite as big as
2238 Recipes but which have no clear place in the module docs.
2239 So they are Snacks! (horray for castaway++)
2241 * Moose::Cookbook::Recipe4
2242 - updated it to use the new ArrayRef[MyType] construct
2243 - updated the accompanying test as well
2245 +++ Major Refactor of the Type Constraint system +++
2246 +++ with new features added as well +++
2248 * Moose::Util::TypeConstraint
2249 - no longer uses package variable to keep track of
2250 the type constraints, now uses the an instance of
2251 Moose::Meta::TypeConstraint::Registry to do it
2252 - added more sophisticated type notation parsing
2254 - added tests for this
2256 * Moose::Meta::TypeConstraint
2257 - some minor adjustments to make subclassing easier
2258 - added the package_defined_in attribute so that we
2259 can track where the type constraints are created
2261 * Moose::Meta::TypeConstraint::Union
2262 - this is now been refactored to be a subclass of
2263 Moose::Meta::TypeConstraint
2265 * Moose::Meta::TypeCoercion::Union
2266 - this has been added to service the newly refactored
2267 Moose::Meta::TypeConstraint::Union and is itself
2268 a subclass of Moose::Meta::TypeCoercion
2270 * Moose::Meta::TypeConstraint::Parameterized
2271 - added this module (taken from MooseX::AttributeHelpers)
2272 to help construct nested collection types
2273 - added tests for this
2275 * Moose::Meta::TypeConstraint::Registry
2276 - added this class to keep track of type constraints
2278 0.25 Mon. Aug. 13, 2007
2280 - Documentation update to reference Moose::Util::TypeConstraints
2281 under 'isa' in 'has' for how to define a new type
2282 (thanks to shlomif).
2284 * Moose::Meta::Attribute
2285 - required attributes now will no longer accept undef
2286 from the constructor, even if there is a default and lazy
2287 - added tests for this
2288 - default subroutines must return a value which passes the
2290 - added tests for this
2292 * Moose::Meta::Attribute
2293 * Moose::Meta::Method::Constructor
2294 * Moose::Meta::Method::Accessor
2295 - type-constraint tests now handle overloaded objects correctly
2296 in the error message
2297 - added tests for this (thanks to EvanCarroll)
2299 * Moose::Meta::TypeConstraint::Union
2300 - added (has_)hand_optimized_constraint to this class so that
2301 it behaves as the regular Moose::Meta::TypeConstraint does.
2304 - large refactoring of this code
2305 - added several more tests
2306 - tests for subtle conflict resolition issues
2307 added, but not currently running
2310 * Moose::Cookbook::Recipe7
2311 - added new recipe for augment/inner functionality
2313 - added test for this
2316 - a formal definition of roles (still in progress)
2319 - utilities for easier working with Moose classes
2320 - added tests for these
2323 - This contains Moose specific test functions
2324 - added tests for these
2326 0.24 Tues. July 3, 2007
2327 ~ Some doc updates/cleanup ~
2329 * Moose::Meta::Attribute
2330 - added support for roles to be given as parameters
2331 to the 'handles' option.
2332 - added tests and docs for this
2333 - the has '+foo' attribute form now accepts changes to
2334 the lazy option, and the addition of a handles option
2335 (but not changing the handles option)
2336 - added tests and docs for this
2339 - required methods are now fetched using find_method_by_name
2340 so that required methods can come from superclasses
2341 - adjusted tests for this
2343 0.23 Mon. June 18, 2007
2344 * Moose::Meta::Method::Constructor
2345 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2346 * Moose::Meta::Class
2347 - Modify make_immutable to work with the new Class::MOP immutable
2348 mechanism + POD + very basic test (groditi)
2349 * Moose::Meta::Attribute
2350 - Fix handles to use goto() so that caller() comes out properly on
2351 the other side (perigrin)
2353 0.22 Thurs. May 31, 2007
2354 * Moose::Util::TypeConstraints
2355 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2356 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2357 prototypes for functions
2358 - added the ClassName type constraint, this checks for strings
2359 which will respond true to ->isa(UNIVERSAL).
2360 - added tests and docs for this
2361 - subtyping just in name now works correctly by making the
2362 default for where be { 1 }
2363 - added test for this
2365 * Moose::Meta::Method::Accessor
2366 - coerce and lazy now work together correctly, thanks to
2367 merlyn for finding this bug
2368 - tests added for this
2369 - fix reader presedence bug in Moose::Meta::Attribute + tests
2372 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2373 a HASH-ref and missed. This produces better error messages then
2374 having it die cause undef is not a HASH.
2375 - added tests for this
2377 0.21 Thursday, May 2nd, 2007
2379 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2380 - modified unimport to remove super and inner along with the rest
2381 - altered unimport tests to handle this
2384 - altered super export to populate SUPER_SLOT
2386 * Moose::Meta::Class
2387 - altered augment and override modifier application to use *_SLOT
2388 - modified tests for these to unimport one test class each to test
2391 - fixed issue where custom attribute metaclasses
2392 where not handled correctly in roles
2393 - added tests for this
2395 * Moose::Meta::Class
2396 - fixed issue where extending metaclasses with
2397 roles would blow up. Thanks to Aankhen`` for
2398 finding this insidious error, and it's solution.
2400 ~~ lots of spelling and grammer fixes in the docs,
2401 many many thanks to rlb3 and Aankhen for these :)
2403 0.20 Friday, April 6th, 2007
2404 >> I messed up the SKIP logic in one test
2405 so this release is just to fix that.
2408 - 'has' now also accepts an ARRAY ref
2409 to create multiple attrs (see docs)
2410 (thanks to konobi for this)
2411 - added tests and docs
2413 0.19 Thurs. April 5th, 2007
2414 ~~ More documentation updates ~~
2416 * Moose::Util::TypeConstraints
2417 - 'type' now supports messages as well
2418 thanks to phaylon for finding this
2419 - added tests for this
2420 - added &list_all_type_constraints and
2421 &list_all_builtin_type_constraints
2422 functions to facilitate introspection.
2424 * Moose::Meta::Attribute
2425 - fixed regexp 'handles' declarations
2426 to build the list of delegated methods
2427 correctly (and not override important
2428 things like &new) thanks to ashleyb
2430 - added tests and docs for this
2431 - added the 'documentation' attributes
2432 so that you can actually document your
2433 attributes and inspect them through the
2435 - added tests and docs for this
2437 * Moose::Meta::Class
2438 - when loading custom attribute metaclasses
2439 it will first look in for the class in the
2440 Moose::Meta::Attribute::Custom::$name, and
2441 then default to just loading $name.
2442 - added tests and docs for this
2444 * Moose::Meta::TypeConstraint
2445 - type constraints now stringify to their names.
2446 - added test for this
2449 - added tests to assure we work with Module::Refresh
2450 - added stricter test skip logic in the Moose POOP
2451 test, ask Rob Kinyon why.
2452 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2454 0.18 Sat. March 10, 2007
2455 ~~ Many, many documentation updates ~~
2458 - We now use Class::MOP::load_class to
2460 - added tests to show types and subtypes
2461 working with Declare::Constraints::Simple
2462 and Test::Deep as constraint engines.
2465 !! You must have Class::MOP 0.37_001 !!
2466 !! for this developer release to work !!
2468 This release was primarily adding the immutable
2469 feature to Moose. An immutable class is one which
2470 you promise not to alter. When you set the class
2471 as immutable it will perform various bits of
2472 memoization and inline certain part of the code
2473 (constructors, destructors and accessors). This
2474 minimizes (and in some cases totally eliminates)
2475 one of Moose's biggest performance hits. This
2476 feature is not on by default, and is 100% optional.
2477 It has several configurable bits as well, so you
2478 can pick and choose to your specific needs.
2480 The changes involved in this were fairly wide and
2481 highly specific, but 100% backwards compatible, so
2482 I am not going to enumerate them here. If you are
2483 truely interested in what was changed, please do
2486 0.17 Tues. Nov. 14, 2006
2487 * Moose::Meta::Method::Accessor
2488 - bugfix for read-only accessors which
2489 are have a type constraint and lazy.
2490 Thanks to chansen for finding it.
2492 0.16 Tues. Nov. 14, 2006
2494 There are some speed improvements in this release,
2495 but they are only the begining, so stay tuned.
2498 - BUILDALL and DEMOLISHALL no longer get
2499 called unless they actually need to be.
2500 This gave us a signifigant speed boost
2501 for the cases when there is no BUILD or
2502 DEMOLISH method present.
2504 * Moose::Util::TypeConstraints
2505 * Moose::Meta::TypeConstraint
2506 - added an 'optimize_as' option to the
2507 type constraint, which allows for a
2508 hand optimized version of the type
2509 constraint to be used when possible.
2510 - Any internally created type constraints
2511 now provide an optimized version as well.
2513 0.15 Sun. Nov. 5, 2006
2515 This version of Moose *must* have Class::MOP 0.36 in order
2516 to work correctly. A number of small internal tweaks have
2517 been made in order to be compatible with that release.
2519 * Moose::Util::TypeConstraints
2520 - added &unimport so that you can clean out
2521 your class namespace of these exported
2524 * Moose::Meta::Class
2525 - fixed minor issue which occasionally
2526 comes up during global destruction
2528 - moved Moose::Meta::Method::Overriden into
2532 - moved Moose::Meta::Role::Method into
2535 * Moose::Meta::Attribute
2536 - changed how we do type checks so that
2537 we reduce the overall cost, but still
2540 - moved accessor generation methods to
2541 Moose::Meta::Method::Accessor to
2542 conform to the API changes from
2545 * Moose::Meta::TypeConstraint
2546 - changed how constraints are compiled
2547 so that we do less recursion and more
2548 iteration. This makes the type check
2550 - moved Moose::Meta::TypeConstraint::Union
2553 * Moose::Meta::Method::Accessor
2554 - created this from methods formerly found in
2555 Moose::Meta::Attribute
2557 * Moose::Meta::Role::Method
2558 - moved this from Moose::Meta::Role
2560 * Moose::Meta::Method::Overriden
2561 - moved this from Moose::Meta::Class
2563 * Moose::Meta::TypeConstraint::Union
2564 - moved this from Moose::Meta::TypeConstraint
2566 0.14 Mon. Oct. 9, 2006
2568 * Moose::Meta::Attribute
2569 - fixed lazy attributes which were not getting
2570 checked with the type constraint (thanks ashley)
2571 - added tests for this
2572 - removed the over-enthusiastic DWIMery of the
2573 automatic ArrayRef and HashRef defaults, it
2574 broke predicates in an ugly way.
2575 - removed tests for this
2577 0.13 Sat. Sept. 30, 2006
2579 This version of Moose *must* have Class::MOP 0.35 in order
2580 to work correctly. A number of small internal tweaks have
2581 been made in order to be compatible with that release.
2584 - Removed the use of UNIVERSAL::require to be a better
2585 symbol table citizen and remove a dependency
2586 (thanks Adam Kennedy)
2588 **~~ removed experimental & undocumented feature ~~**
2589 - commented out the 'method' and 'self' keywords, see the
2590 comments for more info.
2593 - added a FAQ and WTF files to document frequently
2594 asked questions and common problems
2596 * Moose::Util::TypeConstraints
2597 - added GlobRef and FileHandle type constraint
2598 - added tests for this
2600 * Moose::Meta::Attribute
2601 - if your attribute 'isa' ArrayRef of HashRef, and you have
2602 not explicitly set a default, then make the default DWIM.
2603 This will also work for subtypes of ArrayRef and HashRef
2605 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2606 - new test added for this (thanks to ashley)
2609 - added basic support for runtime role composition
2610 but this is still *highly experimental*, so feedback
2611 is much appreciated :)
2612 - added tests for this
2614 * Moose::Meta::TypeConstraint
2615 - the type constraint now handles the coercion process
2616 through delegation, this is to support the coercion
2619 * Moose::Meta::TypeConstraint::Union
2620 - it is now possible for coercions to be performed
2622 - added tests for this (thanks to konobi)
2624 * Moose::Meta::TypeCoercion
2625 - properly capturing error when type constraint
2629 - Scalar::Util 1.18 is bad on Win32, so temporarily
2630 only require version 1.17 for Win32 and cygwin.
2631 (thanks Adam Kennedy)
2633 0.12 Sat. Sept. 1, 2006
2635 - Recipe5 (subtypes & coercion) has been written
2638 - fixed "bad meta" error message to be more descriptive
2639 - fixed &unimport to not remove the &inner and &super
2640 keywords because we need to localize them.
2641 - fixed number of spelling/grammer issues, thanks Theory :)
2643 **~~ experimental & undocumented feature ~~**
2644 - added the method and self keywords, they are basically
2645 just sugar, and they may not stay around.
2648 - added &dump method to easily Data::Dumper
2651 * Moose::Meta::TypeConstraint
2652 - added the &is_a_type_of method to check both the current
2653 and the subtype of a method (similar to &isa with classes)
2656 - this is now a subclass of Class::MOP::Module, and no longer
2657 creates the _role_meta ugliness of before.
2658 - fixed tests to reflect this change
2660 0.11 Wed. July 12, 2006
2662 - added an &unimport method to remove all the keywords
2663 that Moose will import, simply add 'no Moose' to the
2664 bottom of your class file.
2667 - fixed some test failures caused by a forgotten test
2670 0.10 Thurs. July 6, 2006
2672 - improved error message when loading modules so
2673 it is less confusing when you load a role.
2674 - added &calculate_all_roles method to
2675 Moose::Meta::Class and Moose::Meta::Role
2678 This module has been tested against Class::MOP 0.30
2679 but it does not yet utilize the optimizations
2680 it makes available. Stay tuned for that ;)
2682 0.09_03 Fri. June 23, 2006
2683 ++ DEVELOPER RELEASE ++
2685 - 'use strict' and 'use warnings' are no longer
2686 needed in Moose classes, Moose itself will
2687 turn them on for you.
2688 - added tests for this
2689 - moved code from exported subs to private methods
2690 in Moose::Meta::Class
2693 - as with Moose, strict and warnings are
2694 automatically turned on for you.
2695 - added tests for this
2698 - now handles an edge case for override errors
2699 - added tests for this
2700 - added some more edge case tests
2702 0.09_02 Tues. May 16, 2006
2703 ++ DEVELOPER RELEASE ++
2705 - added prototypes to the exported subs
2709 - added prototypes to the exported subs
2712 * Moose::Util::TypeConstraints
2713 - cleaned up prototypes for the subs
2716 0.09_01 Fri. May 12, 2006
2717 ++ DEVELOPER RELEASE ++
2718 - This release works in combination with
2719 Class::MOP 0.29_01, it is a developer
2720 release because it uses the a new
2721 instance sub-protocol and a fairly
2722 complete Role implementation. It has
2723 not yet been optimized, so it slower
2724 the the previous CPAN version. This
2725 release also lacks good updated docs,
2726 the official release will have updated docs.
2729 - refactored the keyword exports
2730 - 'with' now checks Role validaity and
2731 accepts more than one Role at a time
2732 - 'extends' makes metaclass adjustments as
2733 needed to ensure metaclass compatibility
2736 - refactored the keyword exports
2737 - 'with' now checks Role validaity and
2738 accepts more than one Role at a time
2740 * Moose::Util::TypeConstraints
2741 - added the 'enum' keyword for simple
2742 string enumerations which can be used as
2744 - see example of usage in t/202_example.t
2747 - more careful checking of params to new()
2750 - much work done on the role composition
2751 - many new tests for conflict detection
2752 and composition edge cases
2753 - not enough documentation, I suggest
2754 looking at the tests
2756 * Moose::Meta::Instance
2757 - added new Instance metaclass to support
2758 the new Class::MOP instance protocol
2760 * Moose::Meta::Class
2761 - some small changes to support the new
2763 - some small additions to support Roles
2765 * Moose::Meta::Attribute
2766 - some improvements to the accessor generation code
2768 - some small changes to support the new
2770 - (still somewhat) experimental delegation support
2771 with the 'handles' option
2772 - added several tests for this
2773 - no docs for this yet
2775 0.05 Thurs. April 27, 2006
2777 - keywords are now exported with Sub::Exporter
2778 thanks to chansen for this commit
2779 - has keyword now takes a 'metaclass' option
2780 to support custom attribute meta-classes
2781 on a per-attribute basis
2782 - added tests for this
2783 - the 'has' keyword not accepts inherited slot
2784 specifications (has '+foo'). This is still an
2785 experimental feature and probably not finished
2786 see t/038_attribute_inherited_slot_specs.t for
2787 more details, or ask about it on #moose
2788 - added tests for this
2791 - keywords are now exported with Sub::Exporter
2793 * Moose::Utils::TypeConstraints
2794 - reorganized the type constraint hierarchy, thanks
2795 to nothingmuch and chansen for his help and advice
2797 - added some tests for this
2798 - keywords are now exported with Sub::Exporter
2799 thanks to chansen for this commit
2801 * Moose::Meta::Class
2802 - due to changes in Class::MOP, we had to change
2803 construct_instance (for the better)
2805 * Moose::Meta::Attribute
2806 - due to changes in Class::MOP, we had to add the
2807 initialize_instance_slot method (it's a good thing)
2809 * Moose::Meta::TypeConstraint
2810 - added type constraint unions
2811 - added tests for this
2812 - added the is_subtype_of predicate method
2813 - added tests for this
2815 0.04 Sun. April 16th, 2006
2817 - Roles can now consume other roles
2818 - added tests for this
2819 - Roles can specify required methods now with
2820 the requires() keyword
2821 - added tests for this
2824 - ripped out much of it's guts ,.. much cleaner now
2825 - added required methods and correct handling of
2826 them in apply() for both classes and roles
2827 - added tests for this
2828 - no longer adds a does() method to consuming classes
2829 it relys on the one in Moose::Object
2830 - added roles attribute and some methods to support
2831 roles consuming roles
2833 * Moose::Meta::Attribute
2834 - added support for triggers on attributes
2835 - added tests for this
2836 - added support for does option on an attribute
2837 - added tests for this
2839 * Moose::Meta::Class
2840 - added support for attribute triggers in the
2842 - added tests for this
2845 - Moose no longer creates a subtype for your class
2846 if a subtype of the same name already exists, this
2847 should DWIM in 99.9999% of all cases
2849 * Moose::Util::TypeConstraints
2850 - fixed bug where incorrect subtype conflicts were
2852 - added test for this
2855 - this class can now be extended with 'use base' if
2856 you need it, it properly loads the metaclass class now
2857 - added test for this
2859 0.03_02 Wed. April 12, 2006
2861 - you must now explictly use Moose::Util::TypeConstraints
2862 it no longer gets exported for you automatically
2865 - new() now accepts hash-refs as well as key/value lists
2866 - added does() method to check for Roles
2867 - added tests for this
2869 * Moose::Meta::Class
2870 - added roles attribute along with the add_role() and
2872 - added tests for this
2875 - now adds a does() method to consuming classes
2876 which tests the class's hierarchy for roles
2877 - added tests for this
2879 0.03_01 Mon. April 10, 2006
2881 - added new Role recipe (no content yet, only code)
2884 - added 'with' keyword for Role support
2885 - added test and docs for this
2886 - fixed subtype quoting bug
2887 - added test for this
2891 - added test and docs
2893 * Moose::Util::TypeConstraints
2894 - added the message keyword to add custom
2895 error messages to type constraints
2898 - the meta role to support Moose::Role
2899 - added tests and docs
2901 * Moose::Meta::Class
2902 - moved a number of things from Moose.pm
2903 to here, they should have been here
2906 * Moose::Meta::Attribute
2907 - moved the attribute option macros here
2908 instead of putting them in Moose.pm
2910 * Moose::Meta::TypeConstraint
2911 - added the message attributes and the
2913 - added tests and docs for this
2915 0.03 Thurs. March 30, 2006
2917 - added the Moose::Cookbook with 5 recipes,
2918 describing all the stuff Moose can do.
2921 - fixed an issue with &extends super class loading
2922 it now captures errors and deals with inline
2923 packages correctly (bug found by mst, solution
2925 - added super/override & inner/augment features
2926 - added tests and docs for these
2929 - BUILDALL now takes a reference of the %params
2930 that are passed to &new, and passes that to
2933 * Moose::Util::TypeConstraints
2934 - Type constraints now survive runtime reloading
2935 - added test for this
2937 * Moose::Meta::Class
2938 - fixed the way attribute defaults are handled
2939 during instance construction (bug found by chansen)
2941 * Moose::Meta::Attribute
2942 - read-only attributes now actually enforce their
2943 read-only-ness (this corrected in Class::MOP as
2946 0.02 Tues. March 21, 2006
2948 - many more tests, fixing some bugs and
2950 - &extends now loads the base module with
2952 - added UNIVERSAL::require to the
2955 - each new Moose class will also create
2956 and register a subtype of Object which
2957 correspond to the new Moose class.
2958 - the 'isa' option in &has now only
2959 accepts strings, and will DWIM in
2962 * Moose::Util::TypeConstraints
2963 - added type coercion features
2964 - added tests for this
2965 - added support for this in attributes
2966 and instance construction
2968 - type construction no longer creates a
2969 function, it registers the type instead.
2970 - added several functions to get the
2974 - BUILDALL and DEMOLISHALL were broken
2975 because of a mis-named hash key, Whoops :)
2977 * Moose::Meta::Attribute
2978 - adding support for coercion in the
2979 autogenerated accessors
2981 * Moose::Meta::Class
2982 - adding support for coercion in the
2983 instance construction
2985 * Moose::Meta::TypeConstraint
2986 * Moose::Meta::TypeCoercion
2987 - type constraints and coercions are now
2988 full fledges meta-objects
2990 0.01 Wed. March 15, 2006
2991 - Moooooooooooooooooose!!!