1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Cookbook::Basics::Recipe4
6 - Grammar error [rt.cpan.org #51791] (Amir E. Aharoni)
10 - Calling $object->new() is no longer deprecated, and no longer
14 - The get_attribute_map method is now deprecated. (Dave Rolsky)
16 * Moose::Meta::Method::Delegation
17 - Preserve variable aliasing in @_ for delegated methods, so that
18 altering @_ affects the passed value. (doy)
20 * Moose::Util::TypeConstraints
21 - Allow array refs for non-anonymous form of enum and duck_type, not
22 just anonymous. The non-arrayref forms may be removed in the
24 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
25 - Properly document Int being a subtype of Str. (doy)
28 - Moose::Exporter using modules can now export their functions to the
29 main package. This applied to Moose and Moose::Role, among
32 * Moose::Meta::Attribute
33 - Don't remove attribute accessors we never installed, during
34 remove_accessors. (doy)
36 * Moose::Meta::Attribute::Native::Trait::Array
37 - Don't bypass prototype checking when calling List::Util::first, to
38 avoid a segfault when it is called with a non-code argument. (doy)
40 * Moose::Meta::Attribute::Native::Trait::Code
41 - Fix passing arguments to code execute helpers. (doy)
43 0.92 Tue, Sep 22, 2009
44 * Moose::Util::TypeConstraints
45 - added the match_on_type operator (Stevan)
46 - added tests and docs for this (Stevan)
49 - Metaclass compat fixing should already happen recursively, there's no
50 need to explicitly walk up the inheritance tree. (doy)
52 * Moose::Meta::Attribute
53 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
55 0.91 Thu, Sep 17, 2009
57 - Don't import any functions, in order to avoid polluting our namespace
58 with things that can look like methods (blessed, try, etc)
61 * Moose::Meta::Method::Constructor
62 - The generated code needs to called Scalar::Util::blessed by its
63 fully-qualified name or else Perl can interpret the call to blessed as
64 an indirect method call. This broke Search::GIN, which in turn broke
65 KiokuDB. (nothingmuch)
67 0.90 Tue, Sep 15, 2009
68 * Moose::Meta::Attribute::Native::Trait::Counter
69 * Moose::Meta::Attribute::Native::Trait::String
70 - For these two traits, an attribute which did not explicitly provide
71 methods to handles magically ended up delegating *all* the helper
72 methods. This has been removed. You must be explicit in your handles
73 declaration for all Native Traits. (Dave Rolsky)
76 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
77 sure to rethrow its error message. However, we also localize $@ before
78 this so that if all the DEMOLISH methods success, the value of $@ will
79 be preserved. (nothingmuch and Dave Rolsky)
80 - We now also localize $? during object destruction. (nothingmuch and
82 - The handling of DEMOLISH methods was broken for immutablized classes,
83 which were not receiving the value of
84 Devel::GlobalDestruction::in_global_destruction.
85 - These two fixes address some of RT #48271, reported by Zefram.
86 - This is all now documented in Moose::Manual::Construction.
87 - Calling $object->new() is now deprecated. A warning will be
91 - Added more hooks to customize how roles are applied. The role
92 summation class, used to create composite roles, can now be changed
93 and/or have meta-roles applied to it. (rafl)
94 - The get_method_list method no longer explicitly excludes the "meta"
95 method. This was a hack that has been replaced by better hacks. (Dave
98 * Moose::Meta::Method::Delegation
99 - fixed delegated methods to make sure that any modifiers attached to
100 the accessor being delegated on will be called (Stevan)
101 - added tests for this (Stevan)
104 - Moose no longer warns when a class that is being made immutable has
105 mutable ancestors. While in theory this is a good thing to warn about,
106 we found so many exceptions to this that doing this properly became
109 0.89_02 Thu, Sep 10, 2009
110 * Moose::Meta::Attribute::Native
111 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
113 * Moose::Meta::Attribute::Native::Trait::Array
114 - Added a number of functions from List::Util and List::MoreUtils,
115 including reduce, shuffle, uniq, and natatime. (doy)
118 - This module will now generate an init_meta method for your exporting
119 class if you pass it options for
120 Moose::Util::MetaRole::apply_metaclass_roles or
121 apply_base_class_roles. This eliminates a lot of repetitive
122 boilerplate for typical MooseX modules. (doy).
123 - Documented the with_meta feature, which is a replacement for
124 with_caller. This feature was added by josh a while ago.
125 - The with_caller feature is now deprecated, but will not issue a
126 warning yet. (Dave Rolsky)
127 - If you try to wrap/export a subroutine which doesn't actually exist,
128 Moose::Exporter will warn you about this. (doy)
130 * Moose::Meta::Role::Application::ToRole
131 - When a role aliased a method from another role, it was only getting
132 the new (aliased) name, not the original name. This differed from what
133 happens when a class aliases a role's methods. If you _only_ want the
134 aliased name, make sure to also exclue the original name. (Dave
137 0.89_01 Wed Sep 2, 2009
138 * Moose::Meta::Attribute
139 - Added the currying syntax for delegation from AttributeHelpers to the
140 existing delegation API. (hdp)
142 * Moose::Meta::Attribute::Native
143 - We have merged the functionality of MooseX::AttributeHelpers into the
144 Moose core with some API tweaks. You can continue to use
145 MooseX::AttributeHelpers, but it will not be maintained except
146 (perhaps) for critical bug fixes in the future. See
147 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
150 * Moose::Error::Croak
151 * Moose::Error::Confess
152 - Clarify documentation on how to use different error-throwing
153 modules. (Curtis Jewell)
156 - Correct POD for builder to point to Recipe8, not 9. (gphat)
159 - When a nonexistent sub name is passed to as_is, with_caller, or
160 with_meta, throw a warning and skip the exporting, rather than
161 installing a broken sub. (doy)
164 - Moose now warns if you call C<make_immutable> for a class with mutable
167 0.89 Thu Aug 13, 2009
168 * Moose::Manual::Attributes
169 - Clarify "is", include discussion of "bare". (Sartak)
171 * Moose::Meta::Role::Method::Conflicting
172 * Moose::Meta::Role::Application::ToClass
173 - For the first set of roles involved in a conflict, report all
174 unresolved method conflicts, not just the first method. Fixes #47210
175 reported by Ovid. (Sartak)
177 * Moose::Meta::TypeConstraint
178 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
181 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
183 - Allow specifying role options (alias, excludes, MXRP stuff) in the
184 arrayref passed to "use Moose -traits" (doy)
187 - Add functions meta_class_alias and meta_attribute_alias for creating
188 aliases for class and attribute metaclasses and metatraits. (doy)
190 * Moose::Meta::Attribute
191 * Moose::Meta::Method::Accessor
192 - A trigger now receives the old value as a second argument, if the
193 attribute had one. (Dave Rolsky)
195 * Moose::Meta::Method::Constructor
196 - Fix a bug with $obj->new when $obj has stringify overloading.
197 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
198 - However, we will probably deprecate $obj->new, so please don't start
199 using it for new code!
201 * Moose::Meta::Role::Application
202 * Moose::Meta::Role::Application::RoleSummation
203 - Rename alias and excludes to -alias and -excludes (but keep the old
204 names for now, for backcompat) (doy)
206 0.88 Fri Jul 24, 2009
207 * Moose::Manual::Contributing
208 - Re-write the Moose::Manual::Contributing document to reflect
209 the new layout and methods of work for the Git repository. All
210 work now should be done in topic branches and reviewed by a
211 core committer before being applied to master. All releases
212 are done by a cabal member and merged from master to
213 stable. This plan was devised by Yuval, blame him. (perigrin)
216 - Create metaclass attributes for the different role application
219 * Moose::Util::MetaRole
220 - Allow applying roles to a meta role's role application
223 * Moose::Meta::Attribute
224 - Add weak_ref to allowed options for "has '+foo'" (mst)
226 * Moose::Meta::Method::Accessor
227 - No longer uses inline_slot_access in accessors, to support
228 non-lvalue-based meta instances. (sorear)
231 * Moose::Meta::Method::Delegation
232 - Once again allow class names as well as objects for
233 delegation. This was changed in 0.86.
236 * Moose::Meta::Class::Immutable::Trait
237 - Fixes to work with the latest Class::MOP.
239 * Moose::Meta::Method::Delegation
240 - Delegation now dies with a more useful error message if the
241 attribute's accessor returns something defined but
244 0.85 Fri, Jun 26, 2009
245 * Moose::Meta::Attribute
246 - The warning for 'no associated methods' is now split out into
247 the _check_associated_methods method, so that extensions can
248 safely call 'after install_accessors => ...'. This fixes a
249 warning from MooseX::AttributeHelpers. (hdp)
251 0.84 Fri, Jun 26, 2009
253 - has now sets definition_context for attributes defined in
256 * Moose::Meta::Attribute
257 - When adding an attribute to a metaclass, if the attribute has
258 no associated methods, it will give a deprecation
260 - Methods generated by delegation were not being added to
261 associated_methods. (hdp)
262 - Attribute accessors (reader, writer, accessor, predicate,
263 clearer) now warn if they overwrite an existing method. (doy)
264 - Attribute constructors now warn very noisily about unknown (or
265 misspelled) arguments
267 * Moose::Util::TypeConstraints
268 - Deprecated the totally useless Role type name, which just
269 checked if $object->can('does'). Note that this is _not_ the
270 same as a type created by calling role_type('RoleName').
272 * Moose::Util::TypeConstraints
273 * Moose::Meta::TypeConstraint::DuckType
274 - Reify duck type from a regular subtype into an actual class
276 - Document this because Sartak did all my work for me
279 * Moose::Meta::Attribute
280 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
281 it is just a list of methods (Sartak)
284 - The get_*_method_modifiers methods would die if the role had
285 no modifiers of the given type (Robert Buels).
287 0.83 Tue, Jun 23, 2009
289 - Fix _construct_instance not setting the special __MOP__ object
290 key in instances of anon classes. (doy)
292 0.82 Sun, Jun 21, 2009
293 * Moose::Manual::Types
294 - Mention MooseX::Types early to avoid users falling down the
295 string parsing rathole (mst)
297 * Moose::Manual::MooseX
298 - Add warnings about class-level extensions and mention considering
299 using plain objects instead
301 0.81 Sun, Jun 7, 2009
302 * Bumped our Class::MOP prereq to the latest version (0.85), since
305 0.80 Sat, Jun 6, 2009
307 - Add FAQ about the coercion change from 0.76 because it came up
308 three times today (perigrin)
309 - Win doy $10 dollars because Sartak didn't think anybody
310 would document this fast enough (perigrin)
312 * Moose::Meta::Method::Destructor
313 - Inline a DESTROY method even if there are no DEMOLISH methods
314 to prevent unnecessary introspection in
315 Moose::Object::DEMOLISHALL
318 - A role's required methods are now represented by
319 Moose::Meta::Role::Method::Required objects. Conflicts are now
320 represented by Moose::Meta::Role::Method::Conflicting
321 objects. The benefit for end-users in that unresolved
322 conflicts generate different, more instructive, errors,
323 resolving Ovid's #44895. (Sartak)
326 - Improve the error message of "extends" as suggested by Adam
327 Kennedy and confound (Sartak)
328 - Link to Moose::Manual::Roles from Moose::Role as we now have
329 excellent documentation (Adam Kennedy)
332 - Update test suite for subname change in Class::MOP
334 - Add TODO test for infinite recursion in Moose::Meta::Class
337 0.79 Wed, May 13, 2009
339 - More fixes for Win32 problems. Reported by Robert Krimen.
342 - The DEMOLISHALL method could still blow up in some cases
343 during global destruction. This method has been made more
344 resilient in the face of global destruction's random garbage
348 - If you "also" a module that isn't loaded, the error message
349 now acknowledges that (Sartak)
352 - When your ->meta method does not return a Moose::Meta::Class,
353 the error message gave the wrong output (Sartak)
355 0.78 Tue, May 12, 2009
356 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
357 - Merged these documents into what is now Moose::Manual::FAQ
360 - Moved to Moose::Manual::Unsweetened
362 * Moose::Cookbook::Basics::Recipes 9-12
363 - Renamed to be 8-11, since recipe 8 did not exist
366 - Make Moose::Exporter import strict and warnings into packages
370 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
371 methods during global destruction (doy)
374 * Moose::Meta::Role::Application::ToClass
375 - Track the Role::Application objects created during class-role
379 - Fix metaclass incompatibility errors when extending a vanilla perl
380 class which isa Moose class with a metaclass role applied (t0m)
383 - Add a role-combination hook, _role_for_combination, for the
384 benefit of MooseX::Role::Parameterized (Sartak)
387 - Some tests were failing on Win32 because they explicit checked
388 warning output for newlines. Reported by Nickolay Platonov.
390 0.77 Sat, May 2, 2009
392 - Add explicit use of Devel::GlobalDestruction and Sub::Name
396 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
397 or not we are currently in global destruction (doy)
398 - Add explicit use of Devel::GlobalDestruction and Sub::Name
401 * Moose::Cookbook::FAQ
402 - Reworked much of the existing content to be more useful to
403 modern Moose hackers (Sartak)
406 - Depend on Class::MOP 0.83 instead of 0.82_01.
408 0.76 Mon, April 27, 2009
409 * Moose::Meta::TypeConstraint
410 - Do not run coercions in coerce() if the value already passes the type
413 * Moose::Meta::TypeConstraint::Class
414 - In validation error messages, specifically say that the value is not
415 an instance of the class. This should alleviate some frustrating
416 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
418 * Moose::Meta::Role::Application::ToClass
419 - Revert the class-overrides-role warning in favor of a solution outside
420 of the Moose core (Sartak)
423 - Make Test::Output optional again, since it's only used in a few files
426 0.75_01 Thu, April 23, 2009
427 * Moose::Meta::Role::Application::ToClass
428 - Moose now warns about each class overriding methods from roles it
432 - Warnings tests have standardized on Test::Output which is now an
433 unconditionally dependency (Sartak)
436 - Changes to immutabilization to work with Class::MOP 0.82_01+.
438 0.75 Mon, April 20, 2009
441 - Move validation of not inheriting from roles from Moose::extends to
442 Moose::Meta::Class::superclasses (doy)
445 - add ensure_all_roles() function to encapsulate the common "apply this
446 role unless the object already does it" pattern (hdp)
449 - Users can now select a different metaclass with the "-metaclass"
450 option to import, for classes and roles (Sartak)
453 - Make method_metaclass an attr so that it can accept a metarole
456 0.74 Tue, April 7, 2009
458 * Moose::Meta::Method::Destructor
459 - Include stack traces in the deprecation warnings.
463 - Removed the long-deprecated _apply_all_roles method.
465 * Moose::Meta::TypeConstraint
466 - Removed the long-deprecated union method.
469 0.73_02 Mon, April 6, 2009
470 * More deprecations and renamings
471 - Moose::Meta::Method::Constructor
472 - initialize_body => _initialize_body (this is always called
473 when an object is constructed)
476 - The DEMOLISHALL method could throw an exception during global
477 destruction, meaning that your class's DEMOLISH methods would
478 not be properly called. Reported by t0m.
480 * Moose::Meta::Method::Destructor
481 - Destructor inlining was totally broken by the change to the
482 is_needed method in 0.72_01. Now there is a test for this
483 feature, and it works again.
486 - Bold the word 'not' in the POD for find_meta (t0m)
488 0.73_01 Sun, April 5, 2009
490 - Call user_class->meta in fewer places, with the eventual goal
491 of allowing the user to rename or exclude ->meta
492 altogether. Instead uses Class::MOP::class_of. (Sartak)
494 * Moose::Meta::Method::Accessor
495 - If an attribute had a lazy default, and that value did not
496 pass the attribute's type constraint, it did not get the
497 message from the type constraint, instead using a generic
498 message. Test provided by perigrin.
500 * Moose::Util::TypeConstraints
501 - Add duck_type keyword. It's sugar over making sure an object
502 can() a list of methods. This is easier than jrockway's
503 suggestion to fork all of CPAN. (perigrin)
504 - add tests and documentation (perigrin)
507 - Document the fact that init_meta() returns the target class's
508 metaclass object. (hdp)
510 * Moose::Cookbook::Extending::Recipe1
511 * Moose::Cookbook::Extending::Recipe2
512 * Moose::Cookbook::Extending::Recipe3
513 * Moose::Cookbook::Extending::Recipe4
514 - Make init_meta() examples explicitly return the metaclass and
515 point out this fact. (hdp)
517 * Moose::Cookbook::Basics::Recipe12
518 - A new recipe, creating a custom meta-method class.
520 * Moose::Cookbook::Meta::Recipe6
521 - A new recipe, creating a custom meta-method class.
524 * Moose::Meta::Method::Constructor
525 - Attribute triggers no longer receive the meta-attribute object
526 as an argument in any circumstance. Previously, triggers
527 called during instance construction were passed the
528 meta-attribute, but triggers called by normal accessors were
529 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
531 * Moose::Manual::Attributes
532 - Remove references to triggers receving the meta-attribute object as an
535 * Moose::Cookbook::FAQ
536 - Remove recommendation for deprecated Moose::Policy and
537 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
540 * Many methods have been renamed with a leading underscore, and a
541 few have been deprecated entirely. The methods with a leading
542 underscore are consider "internals only". People writing
543 subclasses or extensions to Moose should feel free to override
544 them, but they are not for "public" use.
547 - check_metaclass_compatibility => _check_metaclass_compatibility
549 - Moose::Meta::Method::Accessor
550 - initialize_body => _initialize_body (this is always called
551 when an object is constructed)
552 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
554 - Moose::Meta::Method::Constructor
555 - initialize_body => _initialize_body (this is always called
556 when an object is constructed)
557 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
558 - attributes => _attributes (now inherited from parent)
559 - meta_instance => _meta_instance (now inherited from parent)
562 - alias_method is deprecated. Use add_method
564 0.73 Fri, March 29, 2009
565 * No changes from 0.72_01.
567 0.72_01 Thu, March 26, 2009
569 - Almost every module has complete API documentation. A few
570 methods (and even whole classes) have been intentionally
571 excluded pending some rethinking of their APIs.
573 * Moose::Util::TypeConstraints
574 - Calling subtype with a name as the only argument is now an
575 exception. If you want an anonymous subtype do:
577 my $subtype = subtype as 'Foo';
579 * Moose::Cookbook::Meta::Recipe7
580 - A new recipe, creating a custom meta-instance class.
582 * Moose::Cookbook::Basics::Recipe5
583 - Fix various typos and mistakes. Includes a patch from Radu
586 * Moose::Cookbook::Basics::Recipe9
587 - Link to this recipe from Moose.pm's builder blurb
590 - When wrapping a function with a prototype, Moose::Exporter now
591 makes sure the wrapped function still has the same
592 prototype. (Daisuke Maki)
594 * Moose::Meta::Attribute
595 - Allow a subclass to set lazy_build for an inherited
599 - Explicitly depend on Data::OptList. We already had this dependency
600 via Sub::Exporter, but since we're using it directly we're
601 better off with it listed. (Sartak)
603 * Moose::Meta::Method::Constructor
604 - Make it easier to subclass the inlining behaviour. (Ash
607 * Moose::Manual::Delta
608 - Details significant changes in the history of Moose, along
609 with recommended workarounds.
611 * Moose::Manual::Contributing
612 - Contributor's guide to Moose.
614 * Moose::Meta::Method::Constructor
615 - The long-deprecated intialize_body method has been removed
616 (yes, spelled like that).
618 * Moose::Meta::Method::Destructor
619 - This is_needed method is now always a class method.
622 - Changes to the internals of how make_immutable works to match
623 changes in latest Class::MOP.
625 0.72 Mon, February 23, 2009
627 * Moose::Meta::Method::Constructor
628 - A mutable class accepted Foo->new(undef) without complaint,
629 while an immutable class would blow up with an unhelpful
630 error. Now, in both cases we throw a helpful error
631 instead. Reported by doy.
633 0.71_01 Sun, February 22, 2009
635 - Hopefully fixed some POD errors in a few recipes that caused
636 them to display weird on search.cpan.org.
638 * Moose::Util::TypeConstraints
639 - Calling type or subtype without the sugar helpers (as, where,
640 message) is now deprecated.
641 - The subtype function tried hard to guess what you meant, but
642 often got it wrong. For example:
644 my $subtype = subtype as 'ArrayRef[Object]';
646 This caused an error in the past, but now works as you'd
650 - Make sure Moose.pm is loaded before calling
651 Moose->throw_error. This wasn't normally an issue, but could
652 bite you in weird cases.
654 0.71 Thu, February 19, 2009
655 * Moose::Cookbook::Basics::Recipe11
656 - A new recipe which demonstrates the use of BUILDARGS and
659 * Moose::Cookbook::Roles::Recipe3
660 - A new recipe, applying a role to an object instance. (Dave
664 - Allow overriding specific keywords from "also" packages. (doy)
667 - Replace hardcoded cookbook tests with Test::Inline to ensure
668 the tests match the actual code in the recipes. (Dave Rolsky)
671 - Working on the above turned up a number of little bugs in the
672 recipe code. (Dave Rolsky)
674 * Moose::Util::TypeConstraints::Optimized
675 - Just use Class::MOP for the optimized ClassName check. (Dave
678 0.70 Sat, February 14, 2009
679 * Moose::Util::TypeConstraints
680 - Added the RoleName type (stevan)
681 - added tests for this (stevan)
683 * Moose::Cookbook::Basics::Recipe3
684 - Updated the before qw[left right] sub to be a little more
685 defensive about what it accepts (stevan)
686 - added more tests to t/000_recipies/basics/003_binary_tree.t
690 - We now always call DEMOLISHALL, even if a class does not
691 define DEMOLISH. This makes sure that method modifiers on
692 DEMOLISHALL work as expected. (doy)
693 - added tests for this (EvanCarroll)
695 * Moose::Util::MetaRole
696 - Accept roles for the wrapped_method_metaclass (rafl)
697 - added tests for this (rafl)
699 * Moose::Meta::Attribute
700 - We no longer pass the meta-attribute object as a final
701 argument to triggers. This actually changed for inlined code a
702 while back, but the non-inlined version and the docs were
706 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
707 they require 0.11. (Dave Rolsky)
710 - Lots of small changes to the manual, cookbook, and
711 elsewhere. These were based on feedback from various
712 users, too many to list here. (Dave Rolsky)
714 0.69 Thu, February 12, 2009
716 - Make some keyword errors use throw_error instead of croak
717 since Moose::Exporter wraps keywords now (Sartak)
720 - Revised every recipe for style and clarity. Also moved some
721 documentation out of cookbook recipes and into Moose::Manual
722 pages. This work was funded as part of the Moose docs grant
723 from TPF. (Dave Rolsky)
725 * Moose::Meta::Method::Delegation
726 - If the attribute doing the delegation was not populated, the
727 error message did not specify the attribute name
730 0.68 Wed, February 4, 2009
732 - Many spelling, typo, and formatting fixes by daxim.
734 * Moose::Manual::Attributes
735 - The NAME section in the POD used "Attribute" so search.cpan
736 didn't resolve links from other documents properly.
738 * Moose::Meta::Method::Overriden
739 - Now properly spelled as Overridden. Thanks to daxim for
742 0.67 Tue, February 3, 2009
744 - Lots of little typo fixes and a few clarifications. Several
745 pages didn't have proper titles, and so weren't actually
746 visible on search.cpan.org. Thanks to hanekomu for a variety
747 of fixes and formatting improvements.
749 0.66 Tue, February 3, 2009
751 - This is a brand new, extensive manual for Moose. This aims to
752 provide a complete introduction to all of Moose's
753 features. This work was funded as part of the Moose docs grant
754 from TPF. (Dave Rolsky)
756 * Moose::Meta::Attribute
757 - Added a delegation_metaclass method to replace a hard-coded
758 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
760 * Moose::Util::TypeConstraints
761 - If you created a subtype and passed a parent that Moose didn't
762 know about, it simply ignored the parent. Now it automatically
763 creates the parent as a class type. This may not be what you
764 want, but is less broken than before. (Dave Rolsky)
766 * Moose::Util::TypeConstraints
767 - This module tried throw errors by calling Moose->throw_error,
768 but it did not ensure that Moose was loaded first. This could
769 cause very unhelpful errors when it tried to throw an error
770 before Moose was loaded. (Dave Rolsky)
772 * Moose::Util::TypeConstraints
773 - You could declare a name with subtype such as "Foo!Bar" that
774 would be allowed, but if you used it in a parameterized type
775 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
776 vetting on names created via the sugar functions, so that they
777 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
779 0.65 Thu, January 22, 2008
780 * Moose and Moose::Meta::Method::Overridden
781 - If an overridden method called super(), and then the
782 superclass's method (not overridden) _also_ called super(),
783 Moose went into an endless recursion loop. Test provided by
784 Chris Prather. (Dave Rolsky)
786 * Moose::Meta::TypeConstraint
787 - All methods are now documented. (gphat)
789 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
790 - Fixed some bogus failures that occurred because we tried to
791 validate filesystem paths in a very ad-hoc and
792 not-quite-correct way. (Dave Rolsky)
794 * Moose::Util::TypeConstraints
795 - Added maybe_type to exports. See docs for details. (rjbs)
798 - Added Moose::Util::TypeConstraints to the SEE ALSO
802 - Methods created via an attribute can now fulfill a "requires"
803 declaration for a role. (nothingmuch)
805 * Moose::Meta::Method::*
806 - Stack traces from inlined code will now report its line and
807 file as being in your class, as opposed to in Moose
810 0.64 Wed, December 31, 2008
811 * Moose::Meta::Method::Accessor
812 - Always inline predicate and clearer methods (Sartak)
814 * Moose::Meta::Attribute
815 - Support for parameterized traits (Sartak)
816 - verify_against_type_constraint method to avoid duplication
817 and enhance extensibility (Sartak)
820 - Tests (but no support yet) for parameterized traits (Sartak)
823 - Require Class::MOP 0.75+, which has the side effect of making
824 sure we work on Win32. (Dave Rolsky)
826 0.63 Mon, December 8, 2008
828 - Some small grammar tweaks and bug fixes in non-Moose example
831 0.62_02 Fri, December 5, 2008
832 * Moose::Meta::Role::Application::ToClass
833 - When a class does not provide all of a role's required
834 methods, the error thrown now mentions all of the missing
835 methods, as opposed to just the first one found. Requested by
836 Curtis Poe (RT #41119). (Dave Rolsky)
838 * Moose::Meta::Method::Constructor
839 - Moose will no longer inline a constructor for your class
840 unless it inherits its constructor from Moose::Object, and
841 will warn when it doesn't inline. If you want to force
842 inlining anyway, pass "replace_constructor => 1" to
843 make_immutable. Addresses RT #40968, reported by Jon
844 Swartz. (Dave Rolsky)
845 - The quoting of default values could be broken if the default
846 contained a single quote ('). Now we use quotemeta to escape
847 anything potentially dangerous in the defaults. (Dave Rolsky)
849 0.62_01 Wed, December 3, 2008
851 - use the method->execute API for BUILDALL
852 and DEMOLISHALL (Sartak)
854 * Moose::Util::TypeConstraints
855 - We now make all the type constraint meta classes immutable
856 before creating the default types provided by Moose. This
857 should make loading Moose a little faster. (Dave Rolsky)
859 0.62 Wed November 26, 2008
860 * Moose::Meta::Role::Application::ToClass
861 Moose::Meta::Role::Application::ToRole
862 - fixed issues where excluding and aliasing the
863 same methods for a single role did not work
864 right (worked just fine with multiple
866 - added test for this (stevan)
868 * Moose::Meta::Role::Application::RoleSummation
869 - fixed the error message when trying to compose
870 a role with a role it excludes (Sartak)
873 - Catch another case where recursion caused the value
874 of $CALLER to be stamped on (t0m)
875 - added test for this (t0m)
878 - Remove the make_immutable keyword, which has been
879 deprecated since April. It breaks metaclasses that
880 use Moose without no Moose (Sartak)
882 * Moose::Meta::Attribute
883 - Removing an attribute from a class now also removes delegation
884 (handles) methods installed for that attribute (t0m)
885 - added test for this (t0m)
887 * Moose::Meta::Method::Constructor
888 - An attribute with a default that looked like a number (but was
889 really a string) would accidentally be treated as a number
890 when the constructor was made immutable (perigrin)
891 - added test for this (perigrin)
894 - create method for constructing a role
896 - added test for this (Sartak)
897 - anonymous roles! (Sartak)
898 - added test for this (Sartak)
901 - more consistent error messages (Sartak)
903 * Moose::Cookbook::Roles::Recipe1
904 - attempt to explain why a role that just requires
905 methods is useful (Sartak)
907 0.61 Fri November 7, 2008
908 * Moose::Meta::Attribute
909 - When passing a role to handles, it will be loaded if necessary
913 - Method objects returned by get_method (and other methods)
914 Could end up being returned without an associated_metaclass
915 attribute. Removing get_method_map, which is provided by
916 Class::MOP::Class, fixed this. The Moose version did nothing
917 different from its parent except introduce a bug. (Dave Rolsky)
918 - added tests for this (jdv79)
921 - Added a $VERSION to all .pm files which didn't have one. Fixes
922 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
924 * Moose::Cookbook::Basics::Recipe4
925 * Moose::Cookbook::Basics::Recipe6
926 - These files had spaces on the first line of the SYNOPSIS, as
927 opposed to a totally empty line. According to RT #40432, this
928 confuses POD parsers. (Dave Rolsky)
930 0.60 Fri October 24, 2008
932 - Passing "-traits" when loading Moose caused the Moose.pm
933 exports to be broken. Reported by t0m. (Dave Rolsky)
934 - Tests for this bug. (t0m)
937 - Change resolve_metaclass alias to use the new
938 load_first_existing_class function. This makes it a lot
939 simpler, and also around 5 times faster. (t0m)
940 - Add caching to resolve_metaclass_alias, which gives an order
941 of magnitude speedup to things which repeatedly call the
942 Moose::Meta::Attribute->does method, notably MooseX::Storage
945 * Moose::Util::TypeConstraint
946 - Put back the changes for parameterized constraints that
947 shouldn't have been removed in 0.59. We still cannot parse
948 them, but MooseX modules can create them in some other
949 way. See the 0.58 changes for more details. (jnapiorkowski)
950 - Changed the way subtypes are created so that the job is
951 delegated to a type constraint parent. This clears up some
952 hardcoded checking and should allow correct subtypes of
953 Moose::Meta::Type::Constraint. Don't rely on this new API too
954 much (create_child_type) because it may go away in the
955 future. (jnapiorkowski)
957 * Moose::Meta::TypeConstraint::Union
958 - Type constraint names are sorted as strings, not numbers.
961 * Moose::Meta::TypeConstraint::Parameterizable
962 - New parameterize method. This can be used as a factory method
963 to make a new type constraint with a given parameterized
964 type. (jnapiorkowski)
965 - added tests (jnapiorkowski)
967 0.59 Tue October 14, 2008
969 - Add abridged documentation for builder/default/initializer/
970 predicate, and link to more details sections in
971 Class::MOP::Attribute. (t0m)
973 * Moose::Util::TypeConstraints
974 - removed prototypes from all but the &-based stuff (mst)
976 * Moose::Util::TypeConstraints
977 - Creating a anonymous subtype with both a constraint and a
978 message failed with a very unhelpful error, but should just
979 work. Reported by t0m. (Dave Rolsky)
982 - Some tests that used Test::Warn if it was available failed
983 with older versions of Test::Warn. Reported by Fayland. (Dave
985 - Test firing behavior of triggers in relation to builder/default/
987 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
988 kinds of supported type. (t0m)
991 - In create(), do not pass "roles" option to the superclass
992 - added related test that creates an anon metaclass with
995 * Moose::Meta::TypeConstraint::Class
996 * Moose::Meta::TypeConstraint::Role
997 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
998 other types (as per change in 0.55_02). (t0m)
1000 * Moose::Meta::TypeConstraint::Registry
1001 - Fix warning when dealing with unknown type names (t0m)
1003 * Moose::Util::TypeConstraints
1004 - Reverted changes from 0.58 related to handle parameterized
1005 types. This caused random failures on BSD and Win32 systems,
1006 apparently related to the regex engine. This means that Moose
1007 can no longer parse structured type constraints like
1008 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1009 supported in a slightly different way via MooseX::Types some
1010 time in the future. (Dave Rolsky)
1012 0.58 Sat September 20, 2008
1013 !! This release has an incompatible change regarding !!
1014 !! how roles add methods to a class !!
1016 * Roles and role application
1017 ! Roles now add methods by calling add_method, not
1018 alias_method. They make sure to always provide a method
1019 object, which will be cloned internally. This means that it is
1020 now possible to track the source of a method provided by a
1021 role, and even follow its history through intermediate roles.
1023 This means that methods added by a role now show up when
1024 looking at a class's method list/map. (Dave Rolsky)
1027 - From this release on, we'll try to maintain a list of
1028 conflicting modules, and warn you if you have one
1029 installed. For example, this release conflicts with ...
1030 - MooseX::Singleton <= 0.11
1031 - MooseX::Params::Validate <= 0.05
1034 In general, we try to not break backwards compatibility for
1035 most Moose users, but MooseX modules and other code which
1036 extends Moose's metaclasses is often affected by very small
1037 changes in the Moose internals.
1039 * Moose::Meta::Method::Delegation
1040 * Moose::Meta::Attribute
1041 - Delegation methods now have their own method class. (Dave
1044 * Moose::Meta::TypeConstraint::Parameterizable
1045 - Added a new method 'parameterize' which is basically a factory
1046 for the containing constraint. This makes it easier to create
1047 new types of parameterized constraints. (jnapiorkowski)
1049 * Moose::Meta::TypeConstraint::Union
1050 - Changed the way Union types canonicalize their names to follow
1051 the normalized TC naming rules, which means we strip all
1052 whitespace. (jnapiorkowski)
1054 * Moose::Util::TypeConstraints
1055 - Parameter and Union args are now sorted, this makes Int|Str
1056 the same constraint as Str|Int. (jnapiorkowski)
1057 - Changes to the way Union types are parsed to more correctly
1058 stringify their names. (jnapiorkowski)
1059 - When creating a parameterized type, we now use the new
1060 parameterize method. (jnapiorkowski)
1061 - Incoming type constraint strings are now normalized to remove
1062 all whitespace differences. (jnapiorkowski)
1063 - Changed the way we parse type constraint strings so that we now
1064 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1065 constraints. This lays the foundation for more flexible type
1066 constraint implementations.
1068 * Tests and docs for all the above. (jnapiorkowski)
1072 - Moose::Exporter will no longer remove a subroutine that the
1073 exporting package re-exports. Moose re-exports the
1074 Carp::confess function, among others. The reasoning is that we
1075 cannot know whether you have also explicitly imported those
1076 functions for your own use, so we err on the safe side and
1077 always keep them. (Dave Rolsky)
1078 - added tests for this (rafl)
1080 * Moose::Meta::Class
1081 - Changes to how we fix metaclass compatibility that are much
1082 too complicated to go into. The summary is that Moose is much
1083 less likely to complain about metaclass incompatibility
1084 now. In particular, if two metaclasses differ because
1085 Moose::Util::MetaRole was used on the two corresponding
1086 classes, then the difference in roles is reconciled for the
1087 subclass's metaclass. (Dave Rolsky)
1088 - Squashed an warning in _process_attribute (thepler)
1091 - throw exceptions (sooner) for invalid attribute names (thepler)
1092 - added tests for this (thepler)
1094 * Moose::Util::MetaRole
1095 - If you explicitly set a constructor or destructor class for a
1096 metaclass object, and then applied roles to the metaclass,
1097 that explicitly set class would be lost and replaced with the
1100 * Moose::Meta::Class
1101 * Moose::Meta::Attribute
1102 * Moose::Meta::Method
1105 * Moose::Error::Default
1106 * Moose::Error::Croak
1107 * Moose::Error::Confess
1108 - All instances of confess() changed to use overridable
1109 C<throw_error> method. This method ultimately calls a class
1110 constructor, and you can change the class being called. In
1111 addition, errors now pass more information than just a string.
1112 The default C<error_class> behaves like C<Carp::confess>, so
1113 the behavior is not visibly different for end users.
1115 0.57 Wed September 3, 2008
1117 - A new bit of doc intended to introduce folks familiar with
1118 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1120 * Moose::Unsweetened
1121 - Shows examples of two classes, each done first with and then
1122 without Moose. This makes a nice parallel to
1123 Moose::Intro. (Dave Rolsky)
1125 * Moose::Util::TypeConstraints
1126 - Fixed a bug in find_or_parse_type_constraint so that it
1127 accepts a Moose::Meta::TypeConstraint object as the parent
1128 type, not just a name (jnapiorkowski)
1129 - added tests (jnapiorkowski)
1132 - If Sub::Name was not present, unimporting failed to actually
1133 remove some sugar subs, causing test failures (Dave Rolsky)
1135 0.56 Mon September 1, 2008
1136 For those not following the series of dev releases, there are
1137 several major changes in this release of Moose.
1138 ! Moose::init_meta should now be called as a method. See the
1141 - Major performance improvements by nothingmuch.
1143 - New modules for extension writers, Moose::Exporter and
1144 Moose::Util::MetaRole by Dave Rolsky.
1146 - Lots of doc improvements and additions, especially in the
1149 - Various bug fixes.
1151 * Removed all references to the experimental-but-no-longer-needed
1152 Moose::Meta::Role::Application::ToMetaclassInstance.
1154 * Require Class::MOP 0.65.
1156 0.55_04 Sat August 30, 2008
1157 * Moose::Util::MetaRole
1158 * Moose::Cookbook::Extending::Recipe2
1159 - This simplifies the application of roles to any meta class, as
1160 well as the base object class. Reimplemented metaclass traits
1161 using this module. (Dave Rolsky)
1163 * Moose::Cookbook::Extending::Recipe1
1164 - This a new recipe, an overview of various ways to write Moose
1165 extensions (Dave Rolsky)
1167 * Moose::Cookbook::Extending::Recipe3
1168 * Moose::Cookbook::Extending::Recipe4
1169 - These used to be Extending::Recipe1 and Extending::Recipe2,
1172 0.55_03 Fri August 29, 2008
1173 * No changes from 0.55_02 except increasing the Class::MOP
1174 dependency to 0.64_07.
1176 0.55_02 Fri August 29, 2008
1177 * Makefile.PL and Moose.pm
1178 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1180 * Moose::Util::TypeConstraints
1181 - Fix warnings from find_type_constraint if the type is not
1184 * Moose::Meta::TypeConstraint
1185 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1186 return false if the type you specify cannot be found in the
1187 type registry, rather than throwing an unhelpful and
1188 coincidental exception. (t0m).
1189 - added docs & test for this (t0m)
1191 * Moose::Meta::TypeConstraint::Registry
1192 - add_type_constraint now throws an exception if a parameter is
1194 - added docs & test for this (t0m)
1196 * Moose::Cookbook::FAQ
1197 - Added a faq entry on the difference between "role" and "trait"
1201 - Fixed a bug that caused role composition to not see a required
1202 method when that method was provided by another role being
1203 composed at the same time. (Dave Rolsky)
1204 - test and bug finding (tokuhirom)
1206 0.55_01 Wed August 20, 2008
1208 !! Calling Moose::init_meta as a function is now !!
1209 !! deprecated. Please see the Moose.pm docs for details. !!
1211 * Moose::Meta::Method::Constructor
1212 - Fix inlined constructor so that values produced by default
1213 or builder methods are coerced as required. (t0m)
1214 - added test for this (t0m)
1216 * Moose::Meta::Attribute
1217 - A lazy attribute with a default or builder did not attempt to
1218 coerce the default value. The immutable code _did_
1220 - added test for this (t0m)
1223 - This is a new helper module for writing "Moose-alike"
1224 modules. This should make the lives of MooseX module authors
1225 much easier. (Dave Rolsky)
1228 * Moose::Cookbook::Meta::Recipe5
1229 - Implemented metaclass traits (and wrote a recipe for it):
1231 use Moose -traits => 'Foo'
1233 This should make writing small Moose extensions a little
1234 easier (Dave Rolsky)
1236 * Moose::Cookbook::Basics::Recipe1
1237 - Removed any examples of direct hashref access, and applied an
1238 editorial axe to reduce verbosity. (Dave Rolsky)
1240 * Moose::Cookbook::Basics::Recipe1
1241 - Also applied an editorial axe here. (Dave Rolsky)
1244 * Moose::Cookbook::Extending::Recipe1
1245 * Moose::Cookbook::Extending::Recipe2
1246 - Rewrote extending and embedding moose documentation and
1247 recipes to use Moose::Exporter (Dave Rolsky)
1251 - These two modules now warn when you load them from the main
1252 package "main" package, because we will not export sugar to
1253 main. Previously it just did nothing. (Dave Rolsky)
1256 - Now provide an init_meta method just like Moose.pm, and you
1257 can call this to provide an alternate role metaclass. (Dave
1258 Rolsky and nothingmuch)
1259 - get_method_map now respects the package cache flag (nothingmuch)
1262 - Two new methods - add_method and wrap_method_body
1266 - Optimizations including allowing constructors to accept hash
1267 refs, making many more classes immutable, and making
1268 constructors immutable. (nothingmuch)
1270 0.55 Sun August 3, 2008
1271 * Moose::Meta::Attribute
1272 - breaking down the way 'handles' methods are
1273 created so that the process can be more easily
1274 overridden by subclasses (stevan)
1276 * Moose::Meta::TypeConstraint
1277 - fixing what is passed into a ->message with
1278 the type constraints (RT #37569)
1279 - added tests for this (Charles Alderman)
1281 * Moose::Util::TypeConstraints
1282 - fix coerce to accept anon types like subtype can (mst)
1285 - reorganized the recipes into sections - Basics, Roles, Meta,
1286 Extending - and wrote abstracts for each section (Dave Rolsky)
1288 * Moose::Cookbook::Basics::Recipe10
1289 - A new recipe that demonstrates operator overloading
1290 in combination with Moose. (bluefeet)
1292 * Moose::Cookbook::Meta::Recipe1
1293 - an introduction to what meta is and why you'd want to make
1294 your own metaclass extensions (Dave Rolsky)
1296 * Moose::Cookbook::Meta::Recipe4
1297 - a very simple metaclass example (Dave Rolsky)
1299 * Moose::Cookbook::Extending::Recipe1
1300 - how to write a Moose-alike module to use your own object base
1303 * Moose::Cookbook::Extending::Recipe2
1304 - how to write modules with an API just like C<Moose.pm> (Dave
1308 - Tons of fixes, both syntactical and grammatical (Dave
1309 Rolsky, Paul Fenwick)
1311 0.54 Thurs. July 3, 2008
1312 ... this is not my day today ...
1314 * Moose::Meta::Attribute
1315 - fixed legal_options_for_inheritance such that
1316 clone_and_inherit options still works for
1317 Class::MOP::Attribute objects and therefore
1318 does not break MooseX::AttributeHelpers
1321 0.53 Thurs. July 3, 2008
1322 * Whoops, I guess I should run 'make manifest' before
1323 actually releasing the module. No actual changes
1324 in this release, except the fact that it includes
1325 the changes that I didn't include in the last
1328 0.52 Thurs. July 3, 2008
1330 - added "FEATURE REQUESTS" section to the Moose docs
1331 to properly direct people (stevan) (RT #34333)
1332 - making 'extends' croak if it is passed a Role since
1333 this is not ever something you want to do
1334 (fixed by stevan, found by obra)
1335 - added tests for this (stevan)
1338 - adding support for DOES (as in UNIVERSAL::DOES)
1340 - added test for this
1342 * Moose::Meta::Attribute
1343 - added legal_options_for_inheritance (wreis)
1344 - added tests for this (wreis)
1346 * Moose::Cookbook::Snacks::*
1347 - removed some of the unfinished snacks that should
1348 not have been released yet. Added some more examples
1349 to the 'Keywords' snack. (stevan)
1351 * Moose::Cookbook::Style
1352 - added general Moose "style guide" of sorts to the
1353 cookbook (nothingmuch) (RT #34335)
1356 - added more BUILDARGS tests (stevan)
1358 0.51 Thurs. Jun 26, 2008
1360 - add unimport so "no Moose::Role" actually does
1363 * Moose::Meta::Role::Application::ToRole
1364 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1365 order to provide its own implementation, that method still got
1366 added to the list of required methods for consumers of
1367 RoleB. Now an aliased method is only added to the list of
1368 required methods if the role doing the aliasing does not
1369 provide its own implementation. See Recipe 11 for an example
1370 of all this. (Dave Rolsky)
1371 - added tests for this
1373 * Moose::Meta::Method::Constructor
1374 - when a single argument that wasn't a hashref was provided to
1375 an immutabilized constructor, the error message was very
1376 unhelpful, as opposed to the non-immutable error. Reported by
1378 - added test for this (Dave Rolsky)
1380 * Moose::Meta::Attribute
1381 - added support for meta_attr->does("ShortAlias") (sartak)
1382 - added tests for this (sartak)
1383 - moved the bulk of the `handles` handling to the new
1384 install_delegation method (Stevan)
1387 - Added BUILDARGS, a new step in new()
1389 * Moose::Meta::Role::Application::RoleSummation
1390 - fix typos no one ever sees (sartak)
1392 * Moose::Util::TypeConstraints
1393 * Moose::Meta::TypeConstraint
1394 * Moose::Meta::TypeCoercion
1395 - Attempt to work around the ??{ } vs. threads issue
1397 - Some null_constraint optimizations
1399 0.50 Thurs. Jun 11, 2008
1400 - Fixed a version number issue by bumping all modules
1403 0.49 Thurs. Jun 11, 2008
1404 !! This version now approx. 20-25% !!
1405 !! faster with new Class::MOP 0.59 !!
1407 * Moose::Meta::Attribute
1408 - fixed how the is => (ro|rw) works with
1409 custom defined reader, writer and accessor
1411 - added docs for this (TODO).
1412 - added tests for this (Thanks to Penfold)
1413 - added the custom attribute alias for regular
1414 Moose attributes which is "Moose"
1415 - fix builder and default both being used
1420 Moose::Meta::Attribute
1422 Moose::Meta::Role::Composite
1423 Moose::Util::TypeConstraints
1424 - switched usage of reftype to ref because
1428 - changing add_package_symbol to use the new
1432 - fixed how DEMOLISHALL is called so that it
1433 can be overrided in subclasses (thanks to Sartak)
1434 - added test for this (thanks to Sartak)
1436 * Moose::Util::TypeConstraints
1437 - move the ClassName type check code to
1438 Class::MOP::is_class_loaded (thanks to Sartak)
1440 * Moose::Cookbook::Recipe11
1441 - add tests for this (thanks to tokuhirom)
1443 0.48 Thurs. May 29, 2008
1444 (early morning release engineering)--
1446 - fixing the version in Moose::Meta::Method::Destructor
1447 which was causing the indexer to choke
1449 0.47 Thurs. May 29, 2008
1450 (late night release engineering)--
1452 - fixing the version is META.yml, no functional
1453 changes in this release
1455 0.46 Wed. May 28, 2008
1456 !! This version now approx. 20-25% !!
1457 !! faster with new Class::MOP 0.57 !!
1459 * Moose::Meta::Class
1460 - some optimizations of the &initialize method
1461 since it is called so often by &meta
1463 * Moose::Meta::Class
1465 - now use the get_all_package_symbols from the
1466 updated Class::MOP, test suite is now 10 seconds
1469 * Moose::Meta::Method::Destructor
1470 - is_needed can now also be called as a class
1471 method for immutablization to check if the
1472 destructor object even needs to be created
1475 * Moose::Meta::Method::Destructor
1476 Moose::Meta::Method::Constructor
1477 - added more descriptive error message to help
1478 keep people from wasting time tracking an error
1479 that is easily fixed by upgrading.
1481 0.45 Saturday, May 24, 2008
1483 - Because of work in Class::MOP 0.57, all
1484 XS based functionality is now optional
1485 and a Pure Perl version is supplied
1486 - the CLASS_MOP_NO_XS environment variable
1487 can now be used to force non-XS versions
1489 - several of the packages have been tweaked
1490 to take care of this, mostly we added
1491 support for the package_name and name
1492 variables in all the Method metaclasses
1493 - before/around/after method modifiers now
1494 support regexp matching of names
1495 (thanks to Takatoshi Kitano)
1496 - tests added for this
1497 - NOTE: this only works for classes, it
1498 is currently not supported in roles,
1499 but, ... patches welcome
1500 - All usage of Carp::confess have been replaced
1501 by Carp::croak in the "keyword" functions since
1502 the stack trace is usually not helpful
1505 - All usage of Carp::confess have been replaced
1506 by Carp::croak in the "keyword" functions since
1507 the stack trace is usually not helpful
1508 - The 'has' keyword for roles now accepts the
1509 same array ref form that Moose.pm does
1510 (has [qw/foo bar/] => (is => 'rw', ...))
1511 - added test for this
1513 * Moose::Meta::Attribute
1514 - trigger on a ro-attribute is no longer an
1515 error, as it's useful to trigger off of the
1518 * Moose::Meta::Class
1519 - added same 'add_package_symbol' fix as in
1523 - does_role now handles non-Moose classes
1525 - added tests for this
1526 - added the 'add_method_modifier' function
1527 (thanks to Takatoshi Kitano)
1529 * Moose::Util::TypeConstraints
1530 - subtypes of parameterizable types now are
1531 themselves parameterizable types
1533 * Moose::Meta::Method::Constructor
1534 - fixed bug where trigger was not being
1535 called by the inlined immutable
1537 - added test for this (thanks to Caelum)
1539 * Moose::Meta::Role::Application::ToInstance
1540 - now uses the metaclass of the instance
1541 (if possible) to create the anon-class
1542 (thanks Jonathan Rockway)
1544 * Moose::Cookbook::Recipe22
1545 - added the meta-attribute trait recipe
1549 - fixed hash-ordering test bug that was
1550 causing occasional cpantester failures
1551 - renamed the t/000_recipe/*.t tests to be
1552 more descriptive (thanks to Sartak)
1554 0.44 Sat. May 10, 2008
1556 - made make_immutable warning cluck to
1557 show where the error is (thanks mst)
1560 - BUILDALL and DEMOLISHALL now call
1561 ->body when looping through the
1562 methods, to avoid the overloaded
1564 - fixed issue where DEMOLISHALL was
1565 eating the $@ values, and so not
1566 working correctly, it still kind of
1567 eats them, but so does vanilla perl
1568 - added tests for this
1570 * Moose::Cookbook::Recipe7
1571 - added new recipe for immutable
1572 functionality (thanks Dave Rolsky)
1574 * Moose::Cookbook::Recipe9
1575 - added new recipe for builder and
1576 lazy_build (thanks Dave Rolsky)
1578 * Moose::Cookbook::Recipe11
1579 - added new recipe for method aliasing
1580 and exclusion with Roles (thanks Dave Rolsky)
1583 - fixed Win32 test failure (thanks spicyjack)
1585 ~ removed Build.PL and Module::Build compat
1586 since Module::Install has done that.
1588 0.43 Wed. April, 30, 2008
1590 drink more coffee before
1591 doing release engineering
1593 - whoops, forgot to do the smolder tests,
1594 and we broke some of the custom meta-attr
1595 modules. This fixes that.
1597 0.42 Mon. April 28, 2008
1598 - some bad tests slipped by, nothing else
1599 changed in this release (cpantesters++)
1601 - upped the Class::MOP dependency to 0.55
1602 since we have tests which need the C3
1605 0.41 Mon. April 28, 2008
1606 ~~ numerous documentation updates ~~
1608 - Changed all usage of die to Carp::croak for better
1609 error reporting (initial patch by Tod Hagan)
1611 ** IMPORTANT NOTE **
1612 - the make_immutable keyword is now deprecated, don't
1613 use it in any new code and please fix your old code
1614 as well. There will be 2 releases, and then it will
1620 - refactored the way inner and super work to avoid
1621 any method/@ISA cache penalty (nothingmuch)
1623 * Moose::Meta::Class
1624 - fixing &new_object to make sure trigger gets the
1625 coerced value (spotted by Charles Alderman on the
1627 - added test for this
1629 * Moose::Meta::Method::Constructor
1630 - immutable classes which had non-lazy attributes were calling
1631 the default generating sub twice in the constructor. (bug
1632 found by Jesse Luehrs, fixed by Dave Rolsky)
1633 - added tests for this (Dave Rolsky)
1634 - fix typo in initialize_body method (nothingmuch)
1636 * Moose::Meta::Method::Destructor
1637 - fix typo in initialize_body method (nothingmuch)
1639 * Moose::Meta::Method::Overriden
1640 Moose::Meta::Method::Augmented
1641 - moved the logic for these into their own
1642 classes (nothingmuch)
1644 * Moose::Meta::Attribute
1645 - inherited attributes may now be extended without
1646 restriction on the type ('isa', 'does') (Sartak)
1647 - added tests for this (Sartak)
1648 - when an attribute property is malformed (such as lazy without
1649 a default), give the name of the attribute in the error
1651 - added the &applied_traits and &has_applied_traits methods
1652 to allow introspection of traits
1653 - added tests for this
1654 - moved 'trait' and 'metaclass' argument handling to here from
1656 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1657 '+foo' syntax) (nothingmuch)
1658 - added tests for this (t0m)
1661 - localize $@ inside DEMOLISHALL to avoid it
1662 eating $@ (found by Ernesto)
1663 - added test for this (thanks to Ernesto)
1665 * Moose::Util::TypeConstraints
1666 - &find_type_constraint now DWIMs when given an
1667 type constraint object or name (nothingmuch)
1668 - &find_or_create_type_constraint superseded with a number of more
1670 - find_or_create_{isa,does}_type_constraint
1671 - find_or_parse_type_constraint
1673 * Moose::Meta::TypeConstraint
1674 Moose::Meta::TypeConstraint::Class
1675 Moose::Meta::TypeConstraint::Role
1676 Moose::Meta::TypeConstraint::Enum
1677 Moose::Meta::TypeConstraint::Union
1678 Moose::Meta::TypeConstraint::Parameterized
1679 - added the &equals method for comparing two type
1680 constraints (nothingmuch)
1681 - added tests for this (nothingmuch)
1683 * Moose::Meta::TypeConstraint
1684 - add the &parents method, which is just an alias to &parent.
1685 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1687 * Moose::Meta::TypeConstraint::Class
1688 - added the class attribute for introspection purposes
1690 - added tests for this
1692 * Moose::Meta::TypeConstraint::Enum
1693 Moose::Meta::TypeConstraint::Role
1694 - broke these out into their own classes (nothingmuch)
1696 * Moose::Cookbook::Recipe*
1697 - fixed references to test file locations in the POD
1698 and updated up some text for new Moose features
1702 - Added &resolve_metaclass_alias, a helper function for finding an actual
1703 class for a short name (e.g. in the traits list)
1705 0.40 Fri. March 14, 2008
1706 - I hate Pod::Coverage
1708 0.39 Fri. March 14, 2008
1710 - documenting the use of '+name' with attributes
1711 that come from recently composed roles. It makes
1712 sense, people are using it, and so why not just
1713 officially support it.
1714 - fixing the 'extends' keyword so that it will not
1715 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1718 - added the perl -Moose=+Class::Name feature to allow
1719 monkeypatching of classes in one liners
1722 - fixing the 'apply_all_roles' keyword so that it will not
1723 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1725 * Moose::Meta::Class
1726 - added ->create method which now supports roles (thanks to jrockway)
1727 - added tests for this
1728 - added ->create_anon_class which now supports roles and caching of
1729 the results (thanks to jrockway)
1730 - added tests for this
1731 - made ->does_role a little more forgiving when it is
1732 checking a Class::MOP era metaclasses.
1734 * Moose::Meta::Role::Application::ToInstance
1735 - it is now possible to pass extra params to be used when
1736 a role is applied to an the instance (rebless_params)
1737 - added tests for this
1739 * Moose::Util::TypeConstraints
1740 - class_type now accepts an optional second argument for a
1741 custom message. POD anotated accordingly (groditi)
1742 - added tests for this
1743 - it is now possible to make anon-enums by passing 'enum' an
1744 ARRAY ref instead of the $name => @values. Everything else
1746 - added tests for this
1749 - making test for using '+name' on attributes consumed
1750 from a role, it works and makes sense too.
1752 * Moose::Meta::Attribute
1753 - fix handles so that it doesn't return nothing
1754 when the method cannot be found, not sure why
1755 it ever did this originally, this means we now
1756 have slightly better support for AUTOLOADed
1758 - added more delegation tests
1759 - adding ->does method to this so as to better
1760 support traits and their introspection.
1761 - added tests for this
1764 - localizing the Data::Dumper configurations so
1765 that it does not pollute others (RT #33509)
1766 - made ->does a little more forgiving when it is
1767 passed Class::MOP era metaclasses.
1769 0.38 Fri. Feb. 15, 2008
1770 * Moose::Meta::Attribute
1771 - fixed initializer to correctly do
1772 type checking and coercion in the
1774 - added tests for this
1777 - fixed some finicky tests (thanks to konobi)
1779 0.37 Thurs. Feb. 14, 2008
1781 - fixed some details in Moose::init_meta
1782 and its superclass handling (thanks thepler)
1783 - added tests for this (thanks thepler)
1784 - 'has' now dies if you don't pass in name
1786 - added the 'make_immutable' keyword as a shortcut
1789 * Moose::Meta::Class
1790 Moose::Meta::Method::Constructor
1791 Moose::Meta::Attribute
1792 - making (init_arg => undef) work here too
1793 (thanks to nothingmuch)
1795 * Moose::Meta::Attribute
1796 Moose::Meta::Method::Constructor
1797 Moose::Meta::Method::Accessor
1798 - make lazy attributes respect attr initializers (rjbs)
1799 - added tests for this
1801 * Moose::Util::TypeConstraints
1802 Moose::Util::TypeConstraints::OptimizedConstraints
1803 Moose::Meta::TypeConstraints
1804 Moose::Meta::Attribute
1805 Moose::Meta::Method::Constructor
1806 Moose::Meta::Method::Accessor
1807 - making type errors use the
1808 assigned message (thanks to Sartak)
1809 - added tests for this
1811 * Moose::Meta::Method::Destructor
1812 - making sure DESTROY gets inlined properly
1813 with successive DEMOLISH calls (thanks to manito)
1815 * Moose::Meta::Attribute
1816 Moose::Meta::Method::Accessor
1817 - fixed handling of undef with type constraints
1819 - added tests for this
1822 - added &get_all_init_args and &get_all_attribute_values
1823 (thanks to Sartak and nothingmuch)
1825 0.36 Sat. Jan. 26, 2008
1827 Moose::Meta::Attribute
1828 - role type tests now support when roles are
1829 applied to non-Moose classes (found by ash)
1830 - added tests for this (thanks to ash)
1831 - couple extra tests to boost code coverage
1833 * Moose::Meta::Method::Constructor
1834 - improved fix for handling Class::MOP attributes
1835 - added test for this
1837 * Moose::Meta::Class
1838 - handled the add_attribute($attribute_meta_object)
1840 - added test for this
1842 0.35 Tues. Jan. 22, 2008
1843 * Moose::Meta::Method::Constructor
1844 - fix to make sure even Class::MOP attributes
1845 are handled correctly (Thanks to Dave Rolsky)
1846 - added test for this (also Dave Rolsky)
1848 * Moose::Meta::Class
1849 - improved error message on _apply_all_roles,
1850 you should now use Moose::Util::apply_all_roles
1851 and you shouldnt have been using a _ prefixed
1852 method in the first place ;)
1854 0.34 Mon. Jan. 21, 2008
1855 ~~~ more misc. doc. fixes ~~~
1856 ~~ updated copyright dates ~~
1858 Moose is now a postmodern object system :)
1859 - (see the POD for details)
1861 * <<Role System Refactoring>>
1862 - this release contains a major reworking and
1863 cleanup of the role system
1864 - 100% backwards compat.
1865 - Role application now restructured into seperate
1866 classes based on type of applicants
1867 - Role summation (combining of more than one role)
1868 is much cleaner and anon-classes are no longer
1869 used in this process
1870 - new Composite role metaclass
1871 - runtime application of roles to instances
1872 is now more efficient and re-uses generated
1873 classes when applicable
1875 * <<New Role composition features>>
1876 - methods can now be excluded from a given role
1878 - methods can now be aliased to another name (and
1879 still retain the original as well)
1881 * Moose::Util::TypeConstraints::OptimizedConstraints
1882 - added this module (see above)
1884 * Moose::Meta::Class
1885 - fixed the &_process_attribute method to be called
1886 by &add_attribute, so that the API is now correct
1888 * Moose::Meta::Method::Accessor
1889 - fixed bug when passing a list of values to
1890 an accessor would get (incorrectly) ignored.
1891 Thanks to Sartak for finding this ;)
1892 - added tests for this (Sartak again)
1894 * Moose::Meta::Method::Accessor
1895 Moose::Meta::Method::Constructor
1896 Moose::Meta::Attribute
1897 Moose::Meta::TypeConstraint
1898 Moose::Meta::TypeCoercion
1899 - lots of cleanup of such things as:
1901 - type constraint handling
1902 - error handling/messages
1903 (thanks to nothingmuch)
1905 * Moose::Meta::TypeConstraint::Parameterizable
1906 - added this module to support the refactor
1907 in Moose::Meta::TypeConstraint::Parameterized
1909 * Moose::Meta::TypeConstraint::Parameterized
1910 - refactored how these types are handled so they
1911 are more generic and not confined to ArrayRef
1915 - shortened some file names for better VMS support (RT #32381)
1917 0.33 Fri. Dec. 14, 2007
1918 !! Moose now loads 2 x faster !!
1919 !! with new Class::MOP 0.49 !!
1921 ++ new oose.pm module to make command line
1922 Moose-ness easier (see POD docs for more)
1924 * Moose::Meta::Class
1926 - several tweaks to take advantage of the
1927 new method map caching in Class::MOP
1929 * Moose::Meta::TypeConstraint::Parameterized
1930 - allow subtypes of ArrayRef and HashRef to
1931 be used as a container (sartak)
1932 - added tests for this
1933 - basic support for coercion to ArrayRef and
1934 HashRef for containers (sartak)
1935 - added tests for this
1937 * Moose::Meta::TypeCoercion
1938 - coercions will now create subtypes as needed
1939 so you can now add coercions to parameterized
1940 types without having to explictly define them
1941 - added tests for this
1943 * Moose::Meta::Method::Accessor
1944 - allow subclasses to decide whether we need
1945 to copy the value into a new variable (sartak)
1947 0.32 Tues. Dec. 4, 2007
1948 * Moose::Util::TypeConstraints
1949 - fixing how subtype aliases of unions work
1950 they should inherit the parent's coercion
1951 - added tests for this
1952 - you can now define multiple coercions on
1953 a single type at different times instead of
1954 having to do it all in one place
1955 - added tests for this
1957 * Moose::Meta::TypeConstraint
1958 - there is now a default constraint of sub { 1 }
1959 instead of Moose::Util::TypeConstraints setting
1962 * Moose::Meta::TypeCoercion
1963 * Moose::Meta::TypeCoercion::Union
1964 - added the &has_coercion_for_type and
1965 &add_type_coercions methods to support the
1966 new features above (although you cannot add
1967 more type coercions for Union types)
1969 0.31 Mon. Nov. 26, 2007
1970 * Moose::Meta::Attribute
1971 - made the +attr syntax handle extending types with
1972 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1973 now works if the original foo is an ArrayRef.
1974 - added tests for this.
1975 - delegation now works even if the attribute does not
1976 have a reader method using the get_read_method_ref
1977 method from Class::MOP::Attribute.
1978 - added tests for this
1979 - added docs for this
1981 * Moose::Util::TypeConstraints
1982 - passing no "additional attribute info" to
1983 &find_or_create_type_constraint will no longer
1984 attempt to create an __ANON__ type for you,
1985 instead it will just return undef.
1986 - added docs for this
1988 0.30 Fri. Nov. 23, 2007
1989 * Moose::Meta::Method::Constructor
1990 -builder related bug in inlined constructor. (groditi)
1992 * Moose::Meta::Method::Accessor
1993 - genereate unnecessary calls to predicates and refactor
1994 code generation for runtime speed (groditi)
1996 * Moose::Util::TypeConstraints
1997 - fix ClassName constraint to introspect symbol table (mst)
1998 - added more tests for this (mst)
1999 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2000 with work correctly.
2001 - added tests for this
2004 - adding the link to Recipie 11 (written by Sartak)
2005 - adding test for SYNOPSIS code
2008 - New tests for builder bug. Upon instantiation, if an
2009 attribute had a builder, no value and was not lazy the
2010 builder default was not getting run, oops. (groditi)
2012 0.29 Tues. Nov. 13, 2007
2013 * Moose::Meta::Attribute
2014 - Fix error message on missing builder method (groditi)
2016 * Moose::Meta::Method::Accessor
2017 - Fix error message on missing builder method (groditi)
2020 - Add test to check for the correct error message when
2021 builder method is missing (groditi)
2023 0.28 Tues. Nov. 13, 2007
2024 - 0.27 packaged incorrectly (groditi)
2026 0.27 Tues. Nov. 13, 2007
2027 * Moose::Meta::Attribute
2028 - Added support for the new builder option (groditi)
2029 - Added support for lazy_build option (groditi)
2030 - Changed slot initialization for predicate changes (groditi)
2032 * Moose::Meta::Method::Accessor
2033 - Added support for lazy_build option (groditi)
2034 - Fix inline methods to work with corrected predicate
2037 * Moose::Meta::Method::Constructor
2038 - Added support for lazy_build option (groditi)
2041 - tests for builder and lazy_build (groditi)
2043 * fixing some misc. bits in the docs that
2044 got mentioned on CPAN Forum & perlmonks
2047 - fixed how required methods are handled
2048 when they encounter overriden or modified
2049 methods from a class (thanks to confound).
2050 - added tests for this
2052 * Moose::Util::TypeConstraint
2053 - fixed the type notation parser so that
2054 the | always creates a union and so is
2055 no longer a valid type char (thanks to
2056 konobi, mugwump and #moose for working
2058 - added more tests for this
2060 0.26 Thurs. Sept. 27, 2007
2063 * Parameterized Types
2064 We now support parameterized collection types, such as:
2065 ArrayRef[Int] # array or integers
2066 HashRef[Object] # a hash with object values
2067 They can also be nested:
2068 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2069 And work with the type unions as well:
2070 ArrayRef[Int | Str] # array of integers of strings
2072 * Better Framework Extendability
2073 Moose.pm is now "extendable" such that it is now much
2074 easier to extend the framework and add your own keywords
2075 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2076 section of the Moose.pm docs.
2079 In an effort to begin documenting some of the various
2080 details of Moose as well as some common idioms, we have
2081 created Moose::Cookbook::Snacks as a place to find
2082 small (easily digestable) nuggets of Moose code.
2085 ~ Several doc updates/cleanup thanks to castaway ~
2087 - converted build system to use Module::Install instead of
2088 Module::Build (thanks to jrockway)
2091 - added all the meta classes to the immutable list and
2092 set it to inline the accessors
2093 - fix import to allow Sub::Exporter like { into => }
2094 and { into_level => } (perigrin)
2095 - exposed and documented init_meta() to allow better
2096 embedding and extending of Moose (perigrin)
2099 - complete re-organization of the test suite
2100 - added some new tests as well
2101 - finally re-enabled the Moose::POOP test since
2102 the new version of DBM::Deep now works again
2105 * Moose::Meta::Class
2106 - fixed very odd and very nasty recursion bug with
2108 - added tests for this (eilara)
2110 * Moose::Meta::Attribute
2111 Moose::Meta::Method::Constructor
2112 Moose::Meta::Method::Accessor
2113 - fixed issue with overload::Overloaded getting called
2114 on non-blessed items. (RT #29269)
2115 - added tests for this
2117 * Moose::Meta::Method::Accessor
2118 - fixed issue with generated accessor code making
2119 assumptions about hash based classes (thanks to dexter)
2121 * Moose::Coookbook::Snacks
2122 - these are bits of documentation, not quite as big as
2123 Recipes but which have no clear place in the module docs.
2124 So they are Snacks! (horray for castaway++)
2126 * Moose::Cookbook::Recipe4
2127 - updated it to use the new ArrayRef[MyType] construct
2128 - updated the accompanying test as well
2130 +++ Major Refactor of the Type Constraint system +++
2131 +++ with new features added as well +++
2133 * Moose::Util::TypeConstraint
2134 - no longer uses package variable to keep track of
2135 the type constraints, now uses the an instance of
2136 Moose::Meta::TypeConstraint::Registry to do it
2137 - added more sophisticated type notation parsing
2139 - added tests for this
2141 * Moose::Meta::TypeConstraint
2142 - some minor adjustments to make subclassing easier
2143 - added the package_defined_in attribute so that we
2144 can track where the type constraints are created
2146 * Moose::Meta::TypeConstraint::Union
2147 - this is now been refactored to be a subclass of
2148 Moose::Meta::TypeConstraint
2150 * Moose::Meta::TypeCoercion::Union
2151 - this has been added to service the newly refactored
2152 Moose::Meta::TypeConstraint::Union and is itself
2153 a subclass of Moose::Meta::TypeCoercion
2155 * Moose::Meta::TypeConstraint::Parameterized
2156 - added this module (taken from MooseX::AttributeHelpers)
2157 to help construct nested collection types
2158 - added tests for this
2160 * Moose::Meta::TypeConstraint::Registry
2161 - added this class to keep track of type constraints
2163 0.25 Mon. Aug. 13, 2007
2165 - Documentation update to reference Moose::Util::TypeConstraints
2166 under 'isa' in 'has' for how to define a new type
2167 (thanks to shlomif).
2169 * Moose::Meta::Attribute
2170 - required attributes now will no longer accept undef
2171 from the constructor, even if there is a default and lazy
2172 - added tests for this
2173 - default subroutines must return a value which passes the
2175 - added tests for this
2177 * Moose::Meta::Attribute
2178 * Moose::Meta::Method::Constructor
2179 * Moose::Meta::Method::Accessor
2180 - type-constraint tests now handle overloaded objects correctly
2181 in the error message
2182 - added tests for this (thanks to EvanCarroll)
2184 * Moose::Meta::TypeConstraint::Union
2185 - added (has_)hand_optimized_constraint to this class so that
2186 it behaves as the regular Moose::Meta::TypeConstraint does.
2189 - large refactoring of this code
2190 - added several more tests
2191 - tests for subtle conflict resolition issues
2192 added, but not currently running
2195 * Moose::Cookbook::Recipe7
2196 - added new recipe for augment/inner functionality
2198 - added test for this
2201 - a formal definition of roles (still in progress)
2204 - utilities for easier working with Moose classes
2205 - added tests for these
2208 - This contains Moose specific test functions
2209 - added tests for these
2211 0.24 Tues. July 3, 2007
2212 ~ Some doc updates/cleanup ~
2214 * Moose::Meta::Attribute
2215 - added support for roles to be given as parameters
2216 to the 'handles' option.
2217 - added tests and docs for this
2218 - the has '+foo' attribute form now accepts changes to
2219 the lazy option, and the addition of a handles option
2220 (but not changing the handles option)
2221 - added tests and docs for this
2224 - required methods are now fetched using find_method_by_name
2225 so that required methods can come from superclasses
2226 - adjusted tests for this
2228 0.23 Mon. June 18, 2007
2229 * Moose::Meta::Method::Constructor
2230 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2231 * Moose::Meta::Class
2232 - Modify make_immutable to work with the new Class::MOP immutable
2233 mechanism + POD + very basic test (groditi)
2234 * Moose::Meta::Attribute
2235 - Fix handles to use goto() so that caller() comes out properly on
2236 the other side (perigrin)
2238 0.22 Thurs. May 31, 2007
2239 * Moose::Util::TypeConstraints
2240 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2241 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2242 prototypes for functions
2243 - added the ClassName type constraint, this checks for strings
2244 which will respond true to ->isa(UNIVERSAL).
2245 - added tests and docs for this
2246 - subtyping just in name now works correctly by making the
2247 default for where be { 1 }
2248 - added test for this
2250 * Moose::Meta::Method::Accessor
2251 - coerce and lazy now work together correctly, thanks to
2252 merlyn for finding this bug
2253 - tests added for this
2254 - fix reader presedence bug in Moose::Meta::Attribute + tests
2257 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2258 a HASH-ref and missed. This produces better error messages then
2259 having it die cause undef is not a HASH.
2260 - added tests for this
2262 0.21 Thursday, May 2nd, 2007
2264 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2265 - modified unimport to remove super and inner along with the rest
2266 - altered unimport tests to handle this
2269 - altered super export to populate SUPER_SLOT
2271 * Moose::Meta::Class
2272 - altered augment and override modifier application to use *_SLOT
2273 - modified tests for these to unimport one test class each to test
2276 - fixed issue where custom attribute metaclasses
2277 where not handled correctly in roles
2278 - added tests for this
2280 * Moose::Meta::Class
2281 - fixed issue where extending metaclasses with
2282 roles would blow up. Thanks to Aankhen`` for
2283 finding this insidious error, and it's solution.
2285 ~~ lots of spelling and grammer fixes in the docs,
2286 many many thanks to rlb3 and Aankhen for these :)
2288 0.20 Friday, April 6th, 2007
2289 >> I messed up the SKIP logic in one test
2290 so this release is just to fix that.
2293 - 'has' now also accepts an ARRAY ref
2294 to create multiple attrs (see docs)
2295 (thanks to konobi for this)
2296 - added tests and docs
2298 0.19 Thurs. April 5th, 2007
2299 ~~ More documentation updates ~~
2301 * Moose::Util::TypeConstraints
2302 - 'type' now supports messages as well
2303 thanks to phaylon for finding this
2304 - added tests for this
2305 - added &list_all_type_constraints and
2306 &list_all_builtin_type_constraints
2307 functions to facilitate introspection.
2309 * Moose::Meta::Attribute
2310 - fixed regexp 'handles' declarations
2311 to build the list of delegated methods
2312 correctly (and not override important
2313 things like &new) thanks to ashleyb
2315 - added tests and docs for this
2316 - added the 'documentation' attributes
2317 so that you can actually document your
2318 attributes and inspect them through the
2320 - added tests and docs for this
2322 * Moose::Meta::Class
2323 - when loading custom attribute metaclasses
2324 it will first look in for the class in the
2325 Moose::Meta::Attribute::Custom::$name, and
2326 then default to just loading $name.
2327 - added tests and docs for this
2329 * Moose::Meta::TypeConstraint
2330 - type constraints now stringify to their names.
2331 - added test for this
2334 - added tests to assure we work with Module::Refresh
2335 - added stricter test skip logic in the Moose POOP
2336 test, ask Rob Kinyon why.
2337 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2339 0.18 Sat. March 10, 2007
2340 ~~ Many, many documentation updates ~~
2343 - We now use Class::MOP::load_class to
2345 - added tests to show types and subtypes
2346 working with Declare::Constraints::Simple
2347 and Test::Deep as constraint engines.
2350 !! You must have Class::MOP 0.37_001 !!
2351 !! for this developer release to work !!
2353 This release was primarily adding the immutable
2354 feature to Moose. An immutable class is one which
2355 you promise not to alter. When you set the class
2356 as immutable it will perform various bits of
2357 memoization and inline certain part of the code
2358 (constructors, destructors and accessors). This
2359 minimizes (and in some cases totally eliminates)
2360 one of Moose's biggest performance hits. This
2361 feature is not on by default, and is 100% optional.
2362 It has several configurable bits as well, so you
2363 can pick and choose to your specific needs.
2365 The changes involved in this were fairly wide and
2366 highly specific, but 100% backwards compatible, so
2367 I am not going to enumerate them here. If you are
2368 truely interested in what was changed, please do
2371 0.17 Tues. Nov. 14, 2006
2372 * Moose::Meta::Method::Accessor
2373 - bugfix for read-only accessors which
2374 are have a type constraint and lazy.
2375 Thanks to chansen for finding it.
2377 0.16 Tues. Nov. 14, 2006
2379 There are some speed improvements in this release,
2380 but they are only the begining, so stay tuned.
2383 - BUILDALL and DEMOLISHALL no longer get
2384 called unless they actually need to be.
2385 This gave us a signifigant speed boost
2386 for the cases when there is no BUILD or
2387 DEMOLISH method present.
2389 * Moose::Util::TypeConstraints
2390 * Moose::Meta::TypeConstraint
2391 - added an 'optimize_as' option to the
2392 type constraint, which allows for a
2393 hand optimized version of the type
2394 constraint to be used when possible.
2395 - Any internally created type constraints
2396 now provide an optimized version as well.
2398 0.15 Sun. Nov. 5, 2006
2400 This version of Moose *must* have Class::MOP 0.36 in order
2401 to work correctly. A number of small internal tweaks have
2402 been made in order to be compatible with that release.
2404 * Moose::Util::TypeConstraints
2405 - added &unimport so that you can clean out
2406 your class namespace of these exported
2409 * Moose::Meta::Class
2410 - fixed minor issue which occasionally
2411 comes up during global destruction
2413 - moved Moose::Meta::Method::Overriden into
2417 - moved Moose::Meta::Role::Method into
2420 * Moose::Meta::Attribute
2421 - changed how we do type checks so that
2422 we reduce the overall cost, but still
2425 - moved accessor generation methods to
2426 Moose::Meta::Method::Accessor to
2427 conform to the API changes from
2430 * Moose::Meta::TypeConstraint
2431 - changed how constraints are compiled
2432 so that we do less recursion and more
2433 iteration. This makes the type check
2435 - moved Moose::Meta::TypeConstraint::Union
2438 * Moose::Meta::Method::Accessor
2439 - created this from methods formerly found in
2440 Moose::Meta::Attribute
2442 * Moose::Meta::Role::Method
2443 - moved this from Moose::Meta::Role
2445 * Moose::Meta::Method::Overriden
2446 - moved this from Moose::Meta::Class
2448 * Moose::Meta::TypeConstraint::Union
2449 - moved this from Moose::Meta::TypeConstraint
2451 0.14 Mon. Oct. 9, 2006
2453 * Moose::Meta::Attribute
2454 - fixed lazy attributes which were not getting
2455 checked with the type constraint (thanks ashley)
2456 - added tests for this
2457 - removed the over-enthusiastic DWIMery of the
2458 automatic ArrayRef and HashRef defaults, it
2459 broke predicates in an ugly way.
2460 - removed tests for this
2462 0.13 Sat. Sept. 30, 2006
2464 This version of Moose *must* have Class::MOP 0.35 in order
2465 to work correctly. A number of small internal tweaks have
2466 been made in order to be compatible with that release.
2469 - Removed the use of UNIVERSAL::require to be a better
2470 symbol table citizen and remove a dependency
2471 (thanks Adam Kennedy)
2473 **~~ removed experimental & undocumented feature ~~**
2474 - commented out the 'method' and 'self' keywords, see the
2475 comments for more info.
2478 - added a FAQ and WTF files to document frequently
2479 asked questions and common problems
2481 * Moose::Util::TypeConstraints
2482 - added GlobRef and FileHandle type constraint
2483 - added tests for this
2485 * Moose::Meta::Attribute
2486 - if your attribute 'isa' ArrayRef of HashRef, and you have
2487 not explicitly set a default, then make the default DWIM.
2488 This will also work for subtypes of ArrayRef and HashRef
2490 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2491 - new test added for this (thanks to ashley)
2494 - added basic support for runtime role composition
2495 but this is still *highly experimental*, so feedback
2496 is much appreciated :)
2497 - added tests for this
2499 * Moose::Meta::TypeConstraint
2500 - the type constraint now handles the coercion process
2501 through delegation, this is to support the coercion
2504 * Moose::Meta::TypeConstraint::Union
2505 - it is now possible for coercions to be performed
2507 - added tests for this (thanks to konobi)
2509 * Moose::Meta::TypeCoercion
2510 - properly capturing error when type constraint
2514 - Scalar::Util 1.18 is bad on Win32, so temporarily
2515 only require version 1.17 for Win32 and cygwin.
2516 (thanks Adam Kennedy)
2518 0.12 Sat. Sept. 1, 2006
2520 - Recipe5 (subtypes & coercion) has been written
2523 - fixed "bad meta" error message to be more descriptive
2524 - fixed &unimport to not remove the &inner and &super
2525 keywords because we need to localize them.
2526 - fixed number of spelling/grammer issues, thanks Theory :)
2528 **~~ experimental & undocumented feature ~~**
2529 - added the method and self keywords, they are basically
2530 just sugar, and they may not stay around.
2533 - added &dump method to easily Data::Dumper
2536 * Moose::Meta::TypeConstraint
2537 - added the &is_a_type_of method to check both the current
2538 and the subtype of a method (similar to &isa with classes)
2541 - this is now a subclass of Class::MOP::Module, and no longer
2542 creates the _role_meta ugliness of before.
2543 - fixed tests to reflect this change
2545 0.11 Wed. July 12, 2006
2547 - added an &unimport method to remove all the keywords
2548 that Moose will import, simply add 'no Moose' to the
2549 bottom of your class file.
2552 - fixed some test failures caused by a forgotten test
2555 0.10 Thurs. July 6, 2006
2557 - improved error message when loading modules so
2558 it is less confusing when you load a role.
2559 - added &calculate_all_roles method to
2560 Moose::Meta::Class and Moose::Meta::Role
2563 This module has been tested against Class::MOP 0.30
2564 but it does not yet utilize the optimizations
2565 it makes available. Stay tuned for that ;)
2567 0.09_03 Fri. June 23, 2006
2568 ++ DEVELOPER RELEASE ++
2570 - 'use strict' and 'use warnings' are no longer
2571 needed in Moose classes, Moose itself will
2572 turn them on for you.
2573 - added tests for this
2574 - moved code from exported subs to private methods
2575 in Moose::Meta::Class
2578 - as with Moose, strict and warnings are
2579 automatically turned on for you.
2580 - added tests for this
2583 - now handles an edge case for override errors
2584 - added tests for this
2585 - added some more edge case tests
2587 0.09_02 Tues. May 16, 2006
2588 ++ DEVELOPER RELEASE ++
2590 - added prototypes to the exported subs
2594 - added prototypes to the exported subs
2597 * Moose::Util::TypeConstraints
2598 - cleaned up prototypes for the subs
2601 0.09_01 Fri. May 12, 2006
2602 ++ DEVELOPER RELEASE ++
2603 - This release works in combination with
2604 Class::MOP 0.29_01, it is a developer
2605 release because it uses the a new
2606 instance sub-protocol and a fairly
2607 complete Role implementation. It has
2608 not yet been optimized, so it slower
2609 the the previous CPAN version. This
2610 release also lacks good updated docs,
2611 the official release will have updated docs.
2614 - refactored the keyword exports
2615 - 'with' now checks Role validaity and
2616 accepts more than one Role at a time
2617 - 'extends' makes metaclass adjustments as
2618 needed to ensure metaclass compatibility
2621 - refactored the keyword exports
2622 - 'with' now checks Role validaity and
2623 accepts more than one Role at a time
2625 * Moose::Util::TypeConstraints
2626 - added the 'enum' keyword for simple
2627 string enumerations which can be used as
2629 - see example of usage in t/202_example.t
2632 - more careful checking of params to new()
2635 - much work done on the role composition
2636 - many new tests for conflict detection
2637 and composition edge cases
2638 - not enough documentation, I suggest
2639 looking at the tests
2641 * Moose::Meta::Instance
2642 - added new Instance metaclass to support
2643 the new Class::MOP instance protocol
2645 * Moose::Meta::Class
2646 - some small changes to support the new
2648 - some small additions to support Roles
2650 * Moose::Meta::Attribute
2651 - some improvements to the accessor generation code
2653 - some small changes to support the new
2655 - (still somewhat) experimental delegation support
2656 with the 'handles' option
2657 - added several tests for this
2658 - no docs for this yet
2660 0.05 Thurs. April 27, 2006
2662 - keywords are now exported with Sub::Exporter
2663 thanks to chansen for this commit
2664 - has keyword now takes a 'metaclass' option
2665 to support custom attribute meta-classes
2666 on a per-attribute basis
2667 - added tests for this
2668 - the 'has' keyword not accepts inherited slot
2669 specifications (has '+foo'). This is still an
2670 experimental feature and probably not finished
2671 see t/038_attribute_inherited_slot_specs.t for
2672 more details, or ask about it on #moose
2673 - added tests for this
2676 - keywords are now exported with Sub::Exporter
2678 * Moose::Utils::TypeConstraints
2679 - reorganized the type constraint hierarchy, thanks
2680 to nothingmuch and chansen for his help and advice
2682 - added some tests for this
2683 - keywords are now exported with Sub::Exporter
2684 thanks to chansen for this commit
2686 * Moose::Meta::Class
2687 - due to changes in Class::MOP, we had to change
2688 construct_instance (for the better)
2690 * Moose::Meta::Attribute
2691 - due to changes in Class::MOP, we had to add the
2692 initialize_instance_slot method (it's a good thing)
2694 * Moose::Meta::TypeConstraint
2695 - added type constraint unions
2696 - added tests for this
2697 - added the is_subtype_of predicate method
2698 - added tests for this
2700 0.04 Sun. April 16th, 2006
2702 - Roles can now consume other roles
2703 - added tests for this
2704 - Roles can specify required methods now with
2705 the requires() keyword
2706 - added tests for this
2709 - ripped out much of it's guts ,.. much cleaner now
2710 - added required methods and correct handling of
2711 them in apply() for both classes and roles
2712 - added tests for this
2713 - no longer adds a does() method to consuming classes
2714 it relys on the one in Moose::Object
2715 - added roles attribute and some methods to support
2716 roles consuming roles
2718 * Moose::Meta::Attribute
2719 - added support for triggers on attributes
2720 - added tests for this
2721 - added support for does option on an attribute
2722 - added tests for this
2724 * Moose::Meta::Class
2725 - added support for attribute triggers in the
2727 - added tests for this
2730 - Moose no longer creates a subtype for your class
2731 if a subtype of the same name already exists, this
2732 should DWIM in 99.9999% of all cases
2734 * Moose::Util::TypeConstraints
2735 - fixed bug where incorrect subtype conflicts were
2737 - added test for this
2740 - this class can now be extended with 'use base' if
2741 you need it, it properly loads the metaclass class now
2742 - added test for this
2744 0.03_02 Wed. April 12, 2006
2746 - you must now explictly use Moose::Util::TypeConstraints
2747 it no longer gets exported for you automatically
2750 - new() now accepts hash-refs as well as key/value lists
2751 - added does() method to check for Roles
2752 - added tests for this
2754 * Moose::Meta::Class
2755 - added roles attribute along with the add_role() and
2757 - added tests for this
2760 - now adds a does() method to consuming classes
2761 which tests the class's hierarchy for roles
2762 - added tests for this
2764 0.03_01 Mon. April 10, 2006
2766 - added new Role recipe (no content yet, only code)
2769 - added 'with' keyword for Role support
2770 - added test and docs for this
2771 - fixed subtype quoting bug
2772 - added test for this
2776 - added test and docs
2778 * Moose::Util::TypeConstraints
2779 - added the message keyword to add custom
2780 error messages to type constraints
2783 - the meta role to support Moose::Role
2784 - added tests and docs
2786 * Moose::Meta::Class
2787 - moved a number of things from Moose.pm
2788 to here, they should have been here
2791 * Moose::Meta::Attribute
2792 - moved the attribute option macros here
2793 instead of putting them in Moose.pm
2795 * Moose::Meta::TypeConstraint
2796 - added the message attributes and the
2798 - added tests and docs for this
2800 0.03 Thurs. March 30, 2006
2802 - added the Moose::Cookbook with 5 recipes,
2803 describing all the stuff Moose can do.
2806 - fixed an issue with &extends super class loading
2807 it now captures errors and deals with inline
2808 packages correctly (bug found by mst, solution
2810 - added super/override & inner/augment features
2811 - added tests and docs for these
2814 - BUILDALL now takes a reference of the %params
2815 that are passed to &new, and passes that to
2818 * Moose::Util::TypeConstraints
2819 - Type constraints now survive runtime reloading
2820 - added test for this
2822 * Moose::Meta::Class
2823 - fixed the way attribute defaults are handled
2824 during instance construction (bug found by chansen)
2826 * Moose::Meta::Attribute
2827 - read-only attributes now actually enforce their
2828 read-only-ness (this corrected in Class::MOP as
2831 0.02 Tues. March 21, 2006
2833 - many more tests, fixing some bugs and
2835 - &extends now loads the base module with
2837 - added UNIVERSAL::require to the
2840 - each new Moose class will also create
2841 and register a subtype of Object which
2842 correspond to the new Moose class.
2843 - the 'isa' option in &has now only
2844 accepts strings, and will DWIM in
2847 * Moose::Util::TypeConstraints
2848 - added type coercion features
2849 - added tests for this
2850 - added support for this in attributes
2851 and instance construction
2853 - type construction no longer creates a
2854 function, it registers the type instead.
2855 - added several functions to get the
2859 - BUILDALL and DEMOLISHALL were broken
2860 because of a mis-named hash key, Whoops :)
2862 * Moose::Meta::Attribute
2863 - adding support for coercion in the
2864 autogenerated accessors
2866 * Moose::Meta::Class
2867 - adding support for coercion in the
2868 instance construction
2870 * Moose::Meta::TypeConstraint
2871 * Moose::Meta::TypeCoercion
2872 - type constraints and coercions are now
2873 full fledges meta-objects
2875 0.01 Wed. March 15, 2006
2876 - Moooooooooooooooooose!!!