1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 - Calling $object->new() is no longer deprecated, and no longer
9 - The get_attribute_map method is now deprecated. (Dave Rolsky)
11 * Moose::Meta::Method::Delegation
12 - Preserve variable aliasing in @_ for delegated methods, so that
13 altering @_ affects the passed value. (doy)
15 * Moose::Util::TypeConstraints
16 - Allow array refs for non-anonymous form of enum and duck_type, not
17 just anonymous. The non-arrayref forms may be removed in the
19 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
22 - Moose::Exporter using modules can now export their functions to the
23 main package. This applied to Moose and Moose::Role, among
26 0.92 Tue, Sep 22, 2009
27 * Moose::Util::TypeConstraints
28 - added the match_on_type operator (Stevan)
29 - added tests and docs for this (Stevan)
32 - Metaclass compat fixing should already happen recursively, there's no
33 need to explicitly walk up the inheritance tree. (doy)
35 * Moose::Meta::Attribute
36 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
38 0.91 Thu, Sep 17, 2009
40 - Don't import any functions, in order to avoid polluting our namespace
41 with things that can look like methods (blessed, try, etc)
44 * Moose::Meta::Method::Constructor
45 - The generated code needs to called Scalar::Util::blessed by its
46 fully-qualified name or else Perl can interpret the call to blessed as
47 an indirect method call. This broke Search::GIN, which in turn broke
48 KiokuDB. (nothingmuch)
50 0.90 Tue, Sep 15, 2009
51 * Moose::Meta::Attribute::Native::Trait::Counter
52 * Moose::Meta::Attribute::Native::Trait::String
53 - For these two traits, an attribute which did not explicitly provide
54 methods to handles magically ended up delegating *all* the helper
55 methods. This has been removed. You must be explicit in your handles
56 declaration for all Native Traits. (Dave Rolsky)
59 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
60 sure to rethrow its error message. However, we also localize $@ before
61 this so that if all the DEMOLISH methods success, the value of $@ will
62 be preserved. (nothingmuch and Dave Rolsky)
63 - We now also localize $? during object destruction. (nothingmuch and
65 - The handling of DEMOLISH methods was broken for immutablized classes,
66 which were not receiving the value of
67 Devel::GlobalDestruction::in_global_destruction.
68 - These two fixes address some of RT #48271, reported by Zefram.
69 - This is all now documented in Moose::Manual::Construction.
70 - Calling $object->new() is now deprecated. A warning will be
74 - Added more hooks to customize how roles are applied. The role
75 summation class, used to create composite roles, can now be changed
76 and/or have meta-roles applied to it. (rafl)
78 * Moose::Meta::Method::Delegation
79 - fixed delegated methods to make sure that any modifiers attached to
80 the accessor being delegated on will be called (Stevan)
81 - added tests for this (Stevan)
84 - Moose no longer warns when a class that is being made immutable has
85 mutable ancestors. While in theory this is a good thing to warn about,
86 we found so many exceptions to this that doing this properly became
89 0.89_02 Thu, Sep 10, 2009
90 * Moose::Meta::Attribute::Native
91 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
93 * Moose::Meta::Attribute::Native::Trait::Array
94 - Added a number of functions from List::Util and List::MoreUtils,
95 including reduce, shuffle, uniq, and natatime. (doy)
98 - This module will now generate an init_meta method for your exporting
99 class if you pass it options for
100 Moose::Util::MetaRole::apply_metaclass_roles or
101 apply_base_class_roles. This eliminates a lot of repetitive
102 boilerplate for typical MooseX modules. (doy).
103 - Documented the with_meta feature, which is a replacement for
104 with_caller. This feature was added by josh a while ago.
105 - The with_caller feature is now deprecated, but will not issue a
106 warning yet. (Dave Rolsky)
107 - If you try to wrap/export a subroutine which doesn't actually exist,
108 Moose::Exporter will warn you about this. (doy)
110 * Moose::Meta::Role::Application::ToRole
111 - When a role aliased a method from another role, it was only getting
112 the new (aliased) name, not the original name. This differed from what
113 happens when a class aliases a role's methods. If you _only_ want the
114 aliased name, make sure to also exclue the original name. (Dave
117 0.89_01 Wed Sep 2, 2009
118 * Moose::Meta::Attribute
119 - Added the currying syntax for delegation from AttributeHelpers to the
120 existing delegation API. (hdp)
122 * Moose::Meta::Attribute::Native
123 - We have merged the functionality of MooseX::AttributeHelpers into the
124 Moose core with some API tweaks. You can continue to use
125 MooseX::AttributeHelpers, but it will not be maintained except
126 (perhaps) for critical bug fixes in the future. See
127 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
130 * Moose::Error::Croak
131 * Moose::Error::Confess
132 - Clarify documentation on how to use different error-throwing
133 modules. (Curtis Jewell)
136 - Correct POD for builder to point to Recipe8, not 9. (gphat)
139 - When a nonexistent sub name is passed to as_is, with_caller, or
140 with_meta, throw a warning and skip the exporting, rather than
141 installing a broken sub. (doy)
144 - Moose now warns if you call C<make_immutable> for a class with mutable
147 0.89 Thu Aug 13, 2009
148 * Moose::Manual::Attributes
149 - Clarify "is", include discussion of "bare". (Sartak)
151 * Moose::Meta::Role::Method::Conflicting
152 * Moose::Meta::Role::Application::ToClass
153 - For the first set of roles involved in a conflict, report all
154 unresolved method conflicts, not just the first method. Fixes #47210
155 reported by Ovid. (Sartak)
157 * Moose::Meta::TypeConstraint
158 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
161 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
163 - Allow specifying role options (alias, excludes, MXRP stuff) in the
164 arrayref passed to "use Moose -traits" (doy)
167 - Add functions meta_class_alias and meta_attribute_alias for creating
168 aliases for class and attribute metaclasses and metatraits. (doy)
170 * Moose::Meta::Attribute
171 * Moose::Meta::Method::Accessor
172 - A trigger now receives the old value as a second argument, if the
173 attribute had one. (Dave Rolsky)
175 * Moose::Meta::Method::Constructor
176 - Fix a bug with $obj->new when $obj has stringify overloading.
177 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
178 - However, we will probably deprecate $obj->new, so please don't start
179 using it for new code!
181 * Moose::Meta::Role::Application
182 * Moose::Meta::Role::Application::RoleSummation
183 - Rename alias and excludes to -alias and -excludes (but keep the old
184 names for now, for backcompat) (doy)
186 0.88 Fri Jul 24, 2009
187 * Moose::Manual::Contributing
188 - Re-write the Moose::Manual::Contributing document to reflect
189 the new layout and methods of work for the Git repository. All
190 work now should be done in topic branches and reviewed by a
191 core committer before being applied to master. All releases
192 are done by a cabal member and merged from master to
193 stable. This plan was devised by Yuval, blame him. (perigrin)
196 - Create metaclass attributes for the different role application
199 * Moose::Util::MetaRole
200 - Allow applying roles to a meta role's role application
203 * Moose::Meta::Attribute
204 - Add weak_ref to allowed options for "has '+foo'" (mst)
206 * Moose::Meta::Method::Accessor
207 - No longer uses inline_slot_access in accessors, to support
208 non-lvalue-based meta instances. (sorear)
211 * Moose::Meta::Method::Delegation
212 - Once again allow class names as well as objects for
213 delegation. This was changed in 0.86.
216 * Moose::Meta::Class::Immutable::Trait
217 - Fixes to work with the latest Class::MOP.
219 * Moose::Meta::Method::Delegation
220 - Delegation now dies with a more useful error message if the
221 attribute's accessor returns something defined but
224 0.85 Fri, Jun 26, 2009
225 * Moose::Meta::Attribute
226 - The warning for 'no associated methods' is now split out into
227 the _check_associated_methods method, so that extensions can
228 safely call 'after install_accessors => ...'. This fixes a
229 warning from MooseX::AttributeHelpers. (hdp)
231 0.84 Fri, Jun 26, 2009
233 - has now sets definition_context for attributes defined in
236 * Moose::Meta::Attribute
237 - When adding an attribute to a metaclass, if the attribute has
238 no associated methods, it will give a deprecation
240 - Methods generated by delegation were not being added to
241 associated_methods. (hdp)
242 - Attribute accessors (reader, writer, accessor, predicate,
243 clearer) now warn if they overwrite an existing method. (doy)
244 - Attribute constructors now warn very noisily about unknown (or
245 misspelled) arguments
247 * Moose::Util::TypeConstraints
248 - Deprecated the totally useless Role type name, which just
249 checked if $object->can('does'). Note that this is _not_ the
250 same as a type created by calling role_type('RoleName').
252 * Moose::Util::TypeConstraints
253 * Moose::Meta::TypeConstraint::DuckType
254 - Reify duck type from a regular subtype into an actual class
256 - Document this because Sartak did all my work for me
259 * Moose::Meta::Attribute
260 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
261 it is just a list of methods (Sartak)
264 - The get_*_method_modifiers methods would die if the role had
265 no modifiers of the given type (Robert Buels).
267 0.83 Tue, Jun 23, 2009
269 - Fix _construct_instance not setting the special __MOP__ object
270 key in instances of anon classes. (doy)
272 0.82 Sun, Jun 21, 2009
273 * Moose::Manual::Types
274 - Mention MooseX::Types early to avoid users falling down the
275 string parsing rathole (mst)
277 * Moose::Manual::MooseX
278 - Add warnings about class-level extensions and mention considering
279 using plain objects instead
281 0.81 Sun, Jun 7, 2009
282 * Bumped our Class::MOP prereq to the latest version (0.85), since
285 0.80 Sat, Jun 6, 2009
287 - Add FAQ about the coercion change from 0.76 because it came up
288 three times today (perigrin)
289 - Win doy $10 dollars because Sartak didn't think anybody
290 would document this fast enough (perigrin)
292 * Moose::Meta::Method::Destructor
293 - Inline a DESTROY method even if there are no DEMOLISH methods
294 to prevent unnecessary introspection in
295 Moose::Object::DEMOLISHALL
298 - A role's required methods are now represented by
299 Moose::Meta::Role::Method::Required objects. Conflicts are now
300 represented by Moose::Meta::Role::Method::Conflicting
301 objects. The benefit for end-users in that unresolved
302 conflicts generate different, more instructive, errors,
303 resolving Ovid's #44895. (Sartak)
306 - Improve the error message of "extends" as suggested by Adam
307 Kennedy and confound (Sartak)
308 - Link to Moose::Manual::Roles from Moose::Role as we now have
309 excellent documentation (Adam Kennedy)
312 - Update test suite for subname change in Class::MOP
314 - Add TODO test for infinite recursion in Moose::Meta::Class
317 0.79 Wed, May 13, 2009
319 - More fixes for Win32 problems. Reported by Robert Krimen.
322 - The DEMOLISHALL method could still blow up in some cases
323 during global destruction. This method has been made more
324 resilient in the face of global destruction's random garbage
328 - If you "also" a module that isn't loaded, the error message
329 now acknowledges that (Sartak)
332 - When your ->meta method does not return a Moose::Meta::Class,
333 the error message gave the wrong output (Sartak)
335 0.78 Tue, May 12, 2009
336 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
337 - Merged these documents into what is now Moose::Manual::FAQ
340 - Moved to Moose::Manual::Unsweetened
342 * Moose::Cookbook::Basics::Recipes 9-12
343 - Renamed to be 8-11, since recipe 8 did not exist
346 - Make Moose::Exporter import strict and warnings into packages
350 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
351 methods during global destruction (doy)
354 * Moose::Meta::Role::Application::ToClass
355 - Track the Role::Application objects created during class-role
359 - Fix metaclass incompatibility errors when extending a vanilla perl
360 class which isa Moose class with a metaclass role applied (t0m)
363 - Add a role-combination hook, _role_for_combination, for the
364 benefit of MooseX::Role::Parameterized (Sartak)
367 - Some tests were failing on Win32 because they explicit checked
368 warning output for newlines. Reported by Nickolay Platonov.
370 0.77 Sat, May 2, 2009
372 - Add explicit use of Devel::GlobalDestruction and Sub::Name
376 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
377 or not we are currently in global destruction (doy)
378 - Add explicit use of Devel::GlobalDestruction and Sub::Name
381 * Moose::Cookbook::FAQ
382 - Reworked much of the existing content to be more useful to
383 modern Moose hackers (Sartak)
386 - Depend on Class::MOP 0.83 instead of 0.82_01.
388 0.76 Mon, April 27, 2009
389 * Moose::Meta::TypeConstraint
390 - Do not run coercions in coerce() if the value already passes the type
393 * Moose::Meta::TypeConstraint::Class
394 - In validation error messages, specifically say that the value is not
395 an instance of the class. This should alleviate some frustrating
396 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
398 * Moose::Meta::Role::Application::ToClass
399 - Revert the class-overrides-role warning in favor of a solution outside
400 of the Moose core (Sartak)
403 - Make Test::Output optional again, since it's only used in a few files
406 0.75_01 Thu, April 23, 2009
407 * Moose::Meta::Role::Application::ToClass
408 - Moose now warns about each class overriding methods from roles it
412 - Warnings tests have standardized on Test::Output which is now an
413 unconditionally dependency (Sartak)
416 - Changes to immutabilization to work with Class::MOP 0.82_01+.
418 0.75 Mon, April 20, 2009
421 - Move validation of not inheriting from roles from Moose::extends to
422 Moose::Meta::Class::superclasses (doy)
425 - add ensure_all_roles() function to encapsulate the common "apply this
426 role unless the object already does it" pattern (hdp)
429 - Users can now select a different metaclass with the "-metaclass"
430 option to import, for classes and roles (Sartak)
433 - Make method_metaclass an attr so that it can accept a metarole
436 0.74 Tue, April 7, 2009
438 * Moose::Meta::Method::Destructor
439 - Include stack traces in the deprecation warnings.
443 - Removed the long-deprecated _apply_all_roles method.
445 * Moose::Meta::TypeConstraint
446 - Removed the long-deprecated union method.
449 0.73_02 Mon, April 6, 2009
450 * More deprecations and renamings
451 - Moose::Meta::Method::Constructor
452 - initialize_body => _initialize_body (this is always called
453 when an object is constructed)
456 - The DEMOLISHALL method could throw an exception during global
457 destruction, meaning that your class's DEMOLISH methods would
458 not be properly called. Reported by t0m.
460 * Moose::Meta::Method::Destructor
461 - Destructor inlining was totally broken by the change to the
462 is_needed method in 0.72_01. Now there is a test for this
463 feature, and it works again.
466 - Bold the word 'not' in the POD for find_meta (t0m)
468 0.73_01 Sun, April 5, 2009
470 - Call user_class->meta in fewer places, with the eventual goal
471 of allowing the user to rename or exclude ->meta
472 altogether. Instead uses Class::MOP::class_of. (Sartak)
474 * Moose::Meta::Method::Accessor
475 - If an attribute had a lazy default, and that value did not
476 pass the attribute's type constraint, it did not get the
477 message from the type constraint, instead using a generic
478 message. Test provided by perigrin.
480 * Moose::Util::TypeConstraints
481 - Add duck_type keyword. It's sugar over making sure an object
482 can() a list of methods. This is easier than jrockway's
483 suggestion to fork all of CPAN. (perigrin)
484 - add tests and documentation (perigrin)
487 - Document the fact that init_meta() returns the target class's
488 metaclass object. (hdp)
490 * Moose::Cookbook::Extending::Recipe1
491 * Moose::Cookbook::Extending::Recipe2
492 * Moose::Cookbook::Extending::Recipe3
493 * Moose::Cookbook::Extending::Recipe4
494 - Make init_meta() examples explicitly return the metaclass and
495 point out this fact. (hdp)
497 * Moose::Cookbook::Basics::Recipe12
498 - A new recipe, creating a custom meta-method class.
500 * Moose::Cookbook::Meta::Recipe6
501 - A new recipe, creating a custom meta-method class.
504 * Moose::Meta::Method::Constructor
505 - Attribute triggers no longer receive the meta-attribute object
506 as an argument in any circumstance. Previously, triggers
507 called during instance construction were passed the
508 meta-attribute, but triggers called by normal accessors were
509 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
511 * Moose::Manual::Attributes
512 - Remove references to triggers receving the meta-attribute object as an
515 * Moose::Cookbook::FAQ
516 - Remove recommendation for deprecated Moose::Policy and
517 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
520 * Many methods have been renamed with a leading underscore, and a
521 few have been deprecated entirely. The methods with a leading
522 underscore are consider "internals only". People writing
523 subclasses or extensions to Moose should feel free to override
524 them, but they are not for "public" use.
527 - check_metaclass_compatibility => _check_metaclass_compatibility
529 - Moose::Meta::Method::Accessor
530 - initialize_body => _initialize_body (this is always called
531 when an object is constructed)
532 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
534 - Moose::Meta::Method::Constructor
535 - initialize_body => _initialize_body (this is always called
536 when an object is constructed)
537 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
538 - attributes => _attributes (now inherited from parent)
539 - meta_instance => _meta_instance (now inherited from parent)
542 - alias_method is deprecated. Use add_method
544 0.73 Fri, March 29, 2009
545 * No changes from 0.72_01.
547 0.72_01 Thu, March 26, 2009
549 - Almost every module has complete API documentation. A few
550 methods (and even whole classes) have been intentionally
551 excluded pending some rethinking of their APIs.
553 * Moose::Util::TypeConstraints
554 - Calling subtype with a name as the only argument is now an
555 exception. If you want an anonymous subtype do:
557 my $subtype = subtype as 'Foo';
559 * Moose::Cookbook::Meta::Recipe7
560 - A new recipe, creating a custom meta-instance class.
562 * Moose::Cookbook::Basics::Recipe5
563 - Fix various typos and mistakes. Includes a patch from Radu
566 * Moose::Cookbook::Basics::Recipe9
567 - Link to this recipe from Moose.pm's builder blurb
570 - When wrapping a function with a prototype, Moose::Exporter now
571 makes sure the wrapped function still has the same
572 prototype. (Daisuke Maki)
574 * Moose::Meta::Attribute
575 - Allow a subclass to set lazy_build for an inherited
579 - Explicitly depend on Data::OptList. We already had this dependency
580 via Sub::Exporter, but since we're using it directly we're
581 better off with it listed. (Sartak)
583 * Moose::Meta::Method::Constructor
584 - Make it easier to subclass the inlining behaviour. (Ash
587 * Moose::Manual::Delta
588 - Details significant changes in the history of Moose, along
589 with recommended workarounds.
591 * Moose::Manual::Contributing
592 - Contributor's guide to Moose.
594 * Moose::Meta::Method::Constructor
595 - The long-deprecated intialize_body method has been removed
596 (yes, spelled like that).
598 * Moose::Meta::Method::Destructor
599 - This is_needed method is now always a class method.
602 - Changes to the internals of how make_immutable works to match
603 changes in latest Class::MOP.
605 0.72 Mon, February 23, 2009
607 * Moose::Meta::Method::Constructor
608 - A mutable class accepted Foo->new(undef) without complaint,
609 while an immutable class would blow up with an unhelpful
610 error. Now, in both cases we throw a helpful error
611 instead. Reported by doy.
613 0.71_01 Sun, February 22, 2009
615 - Hopefully fixed some POD errors in a few recipes that caused
616 them to display weird on search.cpan.org.
618 * Moose::Util::TypeConstraints
619 - Calling type or subtype without the sugar helpers (as, where,
620 message) is now deprecated.
621 - The subtype function tried hard to guess what you meant, but
622 often got it wrong. For example:
624 my $subtype = subtype as 'ArrayRef[Object]';
626 This caused an error in the past, but now works as you'd
630 - Make sure Moose.pm is loaded before calling
631 Moose->throw_error. This wasn't normally an issue, but could
632 bite you in weird cases.
634 0.71 Thu, February 19, 2009
635 * Moose::Cookbook::Basics::Recipe11
636 - A new recipe which demonstrates the use of BUILDARGS and
639 * Moose::Cookbook::Roles::Recipe3
640 - A new recipe, applying a role to an object instance. (Dave
644 - Allow overriding specific keywords from "also" packages. (doy)
647 - Replace hardcoded cookbook tests with Test::Inline to ensure
648 the tests match the actual code in the recipes. (Dave Rolsky)
651 - Working on the above turned up a number of little bugs in the
652 recipe code. (Dave Rolsky)
654 * Moose::Util::TypeConstraints::Optimized
655 - Just use Class::MOP for the optimized ClassName check. (Dave
658 0.70 Sat, February 14, 2009
659 * Moose::Util::TypeConstraints
660 - Added the RoleName type (stevan)
661 - added tests for this (stevan)
663 * Moose::Cookbook::Basics::Recipe3
664 - Updated the before qw[left right] sub to be a little more
665 defensive about what it accepts (stevan)
666 - added more tests to t/000_recipies/basics/003_binary_tree.t
670 - We now always call DEMOLISHALL, even if a class does not
671 define DEMOLISH. This makes sure that method modifiers on
672 DEMOLISHALL work as expected. (doy)
673 - added tests for this (EvanCarroll)
675 * Moose::Util::MetaRole
676 - Accept roles for the wrapped_method_metaclass (rafl)
677 - added tests for this (rafl)
679 * Moose::Meta::Attribute
680 - We no longer pass the meta-attribute object as a final
681 argument to triggers. This actually changed for inlined code a
682 while back, but the non-inlined version and the docs were
686 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
687 they require 0.11. (Dave Rolsky)
690 - Lots of small changes to the manual, cookbook, and
691 elsewhere. These were based on feedback from various
692 users, too many to list here. (Dave Rolsky)
694 0.69 Thu, February 12, 2009
696 - Make some keyword errors use throw_error instead of croak
697 since Moose::Exporter wraps keywords now (Sartak)
700 - Revised every recipe for style and clarity. Also moved some
701 documentation out of cookbook recipes and into Moose::Manual
702 pages. This work was funded as part of the Moose docs grant
703 from TPF. (Dave Rolsky)
705 * Moose::Meta::Method::Delegation
706 - If the attribute doing the delegation was not populated, the
707 error message did not specify the attribute name
710 0.68 Wed, February 4, 2009
712 - Many spelling, typo, and formatting fixes by daxim.
714 * Moose::Manual::Attributes
715 - The NAME section in the POD used "Attribute" so search.cpan
716 didn't resolve links from other documents properly.
718 * Moose::Meta::Method::Overriden
719 - Now properly spelled as Overridden. Thanks to daxim for
722 0.67 Tue, February 3, 2009
724 - Lots of little typo fixes and a few clarifications. Several
725 pages didn't have proper titles, and so weren't actually
726 visible on search.cpan.org. Thanks to hanekomu for a variety
727 of fixes and formatting improvements.
729 0.66 Tue, February 3, 2009
731 - This is a brand new, extensive manual for Moose. This aims to
732 provide a complete introduction to all of Moose's
733 features. This work was funded as part of the Moose docs grant
734 from TPF. (Dave Rolsky)
736 * Moose::Meta::Attribute
737 - Added a delegation_metaclass method to replace a hard-coded
738 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
740 * Moose::Util::TypeConstraints
741 - If you created a subtype and passed a parent that Moose didn't
742 know about, it simply ignored the parent. Now it automatically
743 creates the parent as a class type. This may not be what you
744 want, but is less broken than before. (Dave Rolsky)
746 * Moose::Util::TypeConstraints
747 - This module tried throw errors by calling Moose->throw_error,
748 but it did not ensure that Moose was loaded first. This could
749 cause very unhelpful errors when it tried to throw an error
750 before Moose was loaded. (Dave Rolsky)
752 * Moose::Util::TypeConstraints
753 - You could declare a name with subtype such as "Foo!Bar" that
754 would be allowed, but if you used it in a parameterized type
755 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
756 vetting on names created via the sugar functions, so that they
757 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
759 0.65 Thu, January 22, 2008
760 * Moose and Moose::Meta::Method::Overridden
761 - If an overridden method called super(), and then the
762 superclass's method (not overridden) _also_ called super(),
763 Moose went into an endless recursion loop. Test provided by
764 Chris Prather. (Dave Rolsky)
766 * Moose::Meta::TypeConstraint
767 - All methods are now documented. (gphat)
769 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
770 - Fixed some bogus failures that occurred because we tried to
771 validate filesystem paths in a very ad-hoc and
772 not-quite-correct way. (Dave Rolsky)
774 * Moose::Util::TypeConstraints
775 - Added maybe_type to exports. See docs for details. (rjbs)
778 - Added Moose::Util::TypeConstraints to the SEE ALSO
782 - Methods created via an attribute can now fulfill a "requires"
783 declaration for a role. (nothingmuch)
785 * Moose::Meta::Method::*
786 - Stack traces from inlined code will now report its line and
787 file as being in your class, as opposed to in Moose
790 0.64 Wed, December 31, 2008
791 * Moose::Meta::Method::Accessor
792 - Always inline predicate and clearer methods (Sartak)
794 * Moose::Meta::Attribute
795 - Support for parameterized traits (Sartak)
796 - verify_against_type_constraint method to avoid duplication
797 and enhance extensibility (Sartak)
800 - Tests (but no support yet) for parameterized traits (Sartak)
803 - Require Class::MOP 0.75+, which has the side effect of making
804 sure we work on Win32. (Dave Rolsky)
806 0.63 Mon, December 8, 2008
808 - Some small grammar tweaks and bug fixes in non-Moose example
811 0.62_02 Fri, December 5, 2008
812 * Moose::Meta::Role::Application::ToClass
813 - When a class does not provide all of a role's required
814 methods, the error thrown now mentions all of the missing
815 methods, as opposed to just the first one found. Requested by
816 Curtis Poe (RT #41119). (Dave Rolsky)
818 * Moose::Meta::Method::Constructor
819 - Moose will no longer inline a constructor for your class
820 unless it inherits its constructor from Moose::Object, and
821 will warn when it doesn't inline. If you want to force
822 inlining anyway, pass "replace_constructor => 1" to
823 make_immutable. Addresses RT #40968, reported by Jon
824 Swartz. (Dave Rolsky)
825 - The quoting of default values could be broken if the default
826 contained a single quote ('). Now we use quotemeta to escape
827 anything potentially dangerous in the defaults. (Dave Rolsky)
829 0.62_01 Wed, December 3, 2008
831 - use the method->execute API for BUILDALL
832 and DEMOLISHALL (Sartak)
834 * Moose::Util::TypeConstraints
835 - We now make all the type constraint meta classes immutable
836 before creating the default types provided by Moose. This
837 should make loading Moose a little faster. (Dave Rolsky)
839 0.62 Wed November 26, 2008
840 * Moose::Meta::Role::Application::ToClass
841 Moose::Meta::Role::Application::ToRole
842 - fixed issues where excluding and aliasing the
843 same methods for a single role did not work
844 right (worked just fine with multiple
846 - added test for this (stevan)
848 * Moose::Meta::Role::Application::RoleSummation
849 - fixed the error message when trying to compose
850 a role with a role it excludes (Sartak)
853 - Catch another case where recursion caused the value
854 of $CALLER to be stamped on (t0m)
855 - added test for this (t0m)
858 - Remove the make_immutable keyword, which has been
859 deprecated since April. It breaks metaclasses that
860 use Moose without no Moose (Sartak)
862 * Moose::Meta::Attribute
863 - Removing an attribute from a class now also removes delegation
864 (handles) methods installed for that attribute (t0m)
865 - added test for this (t0m)
867 * Moose::Meta::Method::Constructor
868 - An attribute with a default that looked like a number (but was
869 really a string) would accidentally be treated as a number
870 when the constructor was made immutable (perigrin)
871 - added test for this (perigrin)
874 - create method for constructing a role
876 - added test for this (Sartak)
877 - anonymous roles! (Sartak)
878 - added test for this (Sartak)
881 - more consistent error messages (Sartak)
883 * Moose::Cookbook::Roles::Recipe1
884 - attempt to explain why a role that just requires
885 methods is useful (Sartak)
887 0.61 Fri November 7, 2008
888 * Moose::Meta::Attribute
889 - When passing a role to handles, it will be loaded if necessary
893 - Method objects returned by get_method (and other methods)
894 Could end up being returned without an associated_metaclass
895 attribute. Removing get_method_map, which is provided by
896 Class::MOP::Class, fixed this. The Moose version did nothing
897 different from its parent except introduce a bug. (Dave Rolsky)
898 - added tests for this (jdv79)
901 - Added a $VERSION to all .pm files which didn't have one. Fixes
902 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
904 * Moose::Cookbook::Basics::Recipe4
905 * Moose::Cookbook::Basics::Recipe6
906 - These files had spaces on the first line of the SYNOPSIS, as
907 opposed to a totally empty line. According to RT #40432, this
908 confuses POD parsers. (Dave Rolsky)
910 0.60 Fri October 24, 2008
912 - Passing "-traits" when loading Moose caused the Moose.pm
913 exports to be broken. Reported by t0m. (Dave Rolsky)
914 - Tests for this bug. (t0m)
917 - Change resolve_metaclass alias to use the new
918 load_first_existing_class function. This makes it a lot
919 simpler, and also around 5 times faster. (t0m)
920 - Add caching to resolve_metaclass_alias, which gives an order
921 of magnitude speedup to things which repeatedly call the
922 Moose::Meta::Attribute->does method, notably MooseX::Storage
925 * Moose::Util::TypeConstraint
926 - Put back the changes for parameterized constraints that
927 shouldn't have been removed in 0.59. We still cannot parse
928 them, but MooseX modules can create them in some other
929 way. See the 0.58 changes for more details. (jnapiorkowski)
930 - Changed the way subtypes are created so that the job is
931 delegated to a type constraint parent. This clears up some
932 hardcoded checking and should allow correct subtypes of
933 Moose::Meta::Type::Constraint. Don't rely on this new API too
934 much (create_child_type) because it may go away in the
935 future. (jnapiorkowski)
937 * Moose::Meta::TypeConstraint::Union
938 - Type constraint names are sorted as strings, not numbers.
941 * Moose::Meta::TypeConstraint::Parameterizable
942 - New parameterize method. This can be used as a factory method
943 to make a new type constraint with a given parameterized
944 type. (jnapiorkowski)
945 - added tests (jnapiorkowski)
947 0.59 Tue October 14, 2008
949 - Add abridged documentation for builder/default/initializer/
950 predicate, and link to more details sections in
951 Class::MOP::Attribute. (t0m)
953 * Moose::Util::TypeConstraints
954 - removed prototypes from all but the &-based stuff (mst)
956 * Moose::Util::TypeConstraints
957 - Creating a anonymous subtype with both a constraint and a
958 message failed with a very unhelpful error, but should just
959 work. Reported by t0m. (Dave Rolsky)
962 - Some tests that used Test::Warn if it was available failed
963 with older versions of Test::Warn. Reported by Fayland. (Dave
965 - Test firing behavior of triggers in relation to builder/default/
967 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
968 kinds of supported type. (t0m)
971 - In create(), do not pass "roles" option to the superclass
972 - added related test that creates an anon metaclass with
975 * Moose::Meta::TypeConstraint::Class
976 * Moose::Meta::TypeConstraint::Role
977 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
978 other types (as per change in 0.55_02). (t0m)
980 * Moose::Meta::TypeConstraint::Registry
981 - Fix warning when dealing with unknown type names (t0m)
983 * Moose::Util::TypeConstraints
984 - Reverted changes from 0.58 related to handle parameterized
985 types. This caused random failures on BSD and Win32 systems,
986 apparently related to the regex engine. This means that Moose
987 can no longer parse structured type constraints like
988 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
989 supported in a slightly different way via MooseX::Types some
990 time in the future. (Dave Rolsky)
992 0.58 Sat September 20, 2008
993 !! This release has an incompatible change regarding !!
994 !! how roles add methods to a class !!
996 * Roles and role application
997 ! Roles now add methods by calling add_method, not
998 alias_method. They make sure to always provide a method
999 object, which will be cloned internally. This means that it is
1000 now possible to track the source of a method provided by a
1001 role, and even follow its history through intermediate roles.
1003 This means that methods added by a role now show up when
1004 looking at a class's method list/map. (Dave Rolsky)
1007 - From this release on, we'll try to maintain a list of
1008 conflicting modules, and warn you if you have one
1009 installed. For example, this release conflicts with ...
1010 - MooseX::Singleton <= 0.11
1011 - MooseX::Params::Validate <= 0.05
1014 In general, we try to not break backwards compatibility for
1015 most Moose users, but MooseX modules and other code which
1016 extends Moose's metaclasses is often affected by very small
1017 changes in the Moose internals.
1019 * Moose::Meta::Method::Delegation
1020 * Moose::Meta::Attribute
1021 - Delegation methods now have their own method class. (Dave
1024 * Moose::Meta::TypeConstraint::Parameterizable
1025 - Added a new method 'parameterize' which is basically a factory
1026 for the containing constraint. This makes it easier to create
1027 new types of parameterized constraints. (jnapiorkowski)
1029 * Moose::Meta::TypeConstraint::Union
1030 - Changed the way Union types canonicalize their names to follow
1031 the normalized TC naming rules, which means we strip all
1032 whitespace. (jnapiorkowski)
1034 * Moose::Util::TypeConstraints
1035 - Parameter and Union args are now sorted, this makes Int|Str
1036 the same constraint as Str|Int. (jnapiorkowski)
1037 - Changes to the way Union types are parsed to more correctly
1038 stringify their names. (jnapiorkowski)
1039 - When creating a parameterized type, we now use the new
1040 parameterize method. (jnapiorkowski)
1041 - Incoming type constraint strings are now normalized to remove
1042 all whitespace differences. (jnapiorkowski)
1043 - Changed the way we parse type constraint strings so that we now
1044 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1045 constraints. This lays the foundation for more flexible type
1046 constraint implementations.
1048 * Tests and docs for all the above. (jnapiorkowski)
1052 - Moose::Exporter will no longer remove a subroutine that the
1053 exporting package re-exports. Moose re-exports the
1054 Carp::confess function, among others. The reasoning is that we
1055 cannot know whether you have also explicitly imported those
1056 functions for your own use, so we err on the safe side and
1057 always keep them. (Dave Rolsky)
1058 - added tests for this (rafl)
1060 * Moose::Meta::Class
1061 - Changes to how we fix metaclass compatibility that are much
1062 too complicated to go into. The summary is that Moose is much
1063 less likely to complain about metaclass incompatibility
1064 now. In particular, if two metaclasses differ because
1065 Moose::Util::MetaRole was used on the two corresponding
1066 classes, then the difference in roles is reconciled for the
1067 subclass's metaclass. (Dave Rolsky)
1068 - Squashed an warning in _process_attribute (thepler)
1071 - throw exceptions (sooner) for invalid attribute names (thepler)
1072 - added tests for this (thepler)
1074 * Moose::Util::MetaRole
1075 - If you explicitly set a constructor or destructor class for a
1076 metaclass object, and then applied roles to the metaclass,
1077 that explicitly set class would be lost and replaced with the
1080 * Moose::Meta::Class
1081 * Moose::Meta::Attribute
1082 * Moose::Meta::Method
1085 * Moose::Error::Default
1086 * Moose::Error::Croak
1087 * Moose::Error::Confess
1088 - All instances of confess() changed to use overridable
1089 C<throw_error> method. This method ultimately calls a class
1090 constructor, and you can change the class being called. In
1091 addition, errors now pass more information than just a string.
1092 The default C<error_class> behaves like C<Carp::confess>, so
1093 the behavior is not visibly different for end users.
1095 0.57 Wed September 3, 2008
1097 - A new bit of doc intended to introduce folks familiar with
1098 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1100 * Moose::Unsweetened
1101 - Shows examples of two classes, each done first with and then
1102 without Moose. This makes a nice parallel to
1103 Moose::Intro. (Dave Rolsky)
1105 * Moose::Util::TypeConstraints
1106 - Fixed a bug in find_or_parse_type_constraint so that it
1107 accepts a Moose::Meta::TypeConstraint object as the parent
1108 type, not just a name (jnapiorkowski)
1109 - added tests (jnapiorkowski)
1112 - If Sub::Name was not present, unimporting failed to actually
1113 remove some sugar subs, causing test failures (Dave Rolsky)
1115 0.56 Mon September 1, 2008
1116 For those not following the series of dev releases, there are
1117 several major changes in this release of Moose.
1118 ! Moose::init_meta should now be called as a method. See the
1121 - Major performance improvements by nothingmuch.
1123 - New modules for extension writers, Moose::Exporter and
1124 Moose::Util::MetaRole by Dave Rolsky.
1126 - Lots of doc improvements and additions, especially in the
1129 - Various bug fixes.
1131 * Removed all references to the experimental-but-no-longer-needed
1132 Moose::Meta::Role::Application::ToMetaclassInstance.
1134 * Require Class::MOP 0.65.
1136 0.55_04 Sat August 30, 2008
1137 * Moose::Util::MetaRole
1138 * Moose::Cookbook::Extending::Recipe2
1139 - This simplifies the application of roles to any meta class, as
1140 well as the base object class. Reimplemented metaclass traits
1141 using this module. (Dave Rolsky)
1143 * Moose::Cookbook::Extending::Recipe1
1144 - This a new recipe, an overview of various ways to write Moose
1145 extensions (Dave Rolsky)
1147 * Moose::Cookbook::Extending::Recipe3
1148 * Moose::Cookbook::Extending::Recipe4
1149 - These used to be Extending::Recipe1 and Extending::Recipe2,
1152 0.55_03 Fri August 29, 2008
1153 * No changes from 0.55_02 except increasing the Class::MOP
1154 dependency to 0.64_07.
1156 0.55_02 Fri August 29, 2008
1157 * Makefile.PL and Moose.pm
1158 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1160 * Moose::Util::TypeConstraints
1161 - Fix warnings from find_type_constraint if the type is not
1164 * Moose::Meta::TypeConstraint
1165 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1166 return false if the type you specify cannot be found in the
1167 type registry, rather than throwing an unhelpful and
1168 coincidental exception. (t0m).
1169 - added docs & test for this (t0m)
1171 * Moose::Meta::TypeConstraint::Registry
1172 - add_type_constraint now throws an exception if a parameter is
1174 - added docs & test for this (t0m)
1176 * Moose::Cookbook::FAQ
1177 - Added a faq entry on the difference between "role" and "trait"
1181 - Fixed a bug that caused role composition to not see a required
1182 method when that method was provided by another role being
1183 composed at the same time. (Dave Rolsky)
1184 - test and bug finding (tokuhirom)
1186 0.55_01 Wed August 20, 2008
1188 !! Calling Moose::init_meta as a function is now !!
1189 !! deprecated. Please see the Moose.pm docs for details. !!
1191 * Moose::Meta::Method::Constructor
1192 - Fix inlined constructor so that values produced by default
1193 or builder methods are coerced as required. (t0m)
1194 - added test for this (t0m)
1196 * Moose::Meta::Attribute
1197 - A lazy attribute with a default or builder did not attempt to
1198 coerce the default value. The immutable code _did_
1200 - added test for this (t0m)
1203 - This is a new helper module for writing "Moose-alike"
1204 modules. This should make the lives of MooseX module authors
1205 much easier. (Dave Rolsky)
1208 * Moose::Cookbook::Meta::Recipe5
1209 - Implemented metaclass traits (and wrote a recipe for it):
1211 use Moose -traits => 'Foo'
1213 This should make writing small Moose extensions a little
1214 easier (Dave Rolsky)
1216 * Moose::Cookbook::Basics::Recipe1
1217 - Removed any examples of direct hashref access, and applied an
1218 editorial axe to reduce verbosity. (Dave Rolsky)
1220 * Moose::Cookbook::Basics::Recipe1
1221 - Also applied an editorial axe here. (Dave Rolsky)
1224 * Moose::Cookbook::Extending::Recipe1
1225 * Moose::Cookbook::Extending::Recipe2
1226 - Rewrote extending and embedding moose documentation and
1227 recipes to use Moose::Exporter (Dave Rolsky)
1231 - These two modules now warn when you load them from the main
1232 package "main" package, because we will not export sugar to
1233 main. Previously it just did nothing. (Dave Rolsky)
1236 - Now provide an init_meta method just like Moose.pm, and you
1237 can call this to provide an alternate role metaclass. (Dave
1238 Rolsky and nothingmuch)
1239 - get_method_map now respects the package cache flag (nothingmuch)
1242 - Two new methods - add_method and wrap_method_body
1246 - Optimizations including allowing constructors to accept hash
1247 refs, making many more classes immutable, and making
1248 constructors immutable. (nothingmuch)
1250 0.55 Sun August 3, 2008
1251 * Moose::Meta::Attribute
1252 - breaking down the way 'handles' methods are
1253 created so that the process can be more easily
1254 overridden by subclasses (stevan)
1256 * Moose::Meta::TypeConstraint
1257 - fixing what is passed into a ->message with
1258 the type constraints (RT #37569)
1259 - added tests for this (Charles Alderman)
1261 * Moose::Util::TypeConstraints
1262 - fix coerce to accept anon types like subtype can (mst)
1265 - reorganized the recipes into sections - Basics, Roles, Meta,
1266 Extending - and wrote abstracts for each section (Dave Rolsky)
1268 * Moose::Cookbook::Basics::Recipe10
1269 - A new recipe that demonstrates operator overloading
1270 in combination with Moose. (bluefeet)
1272 * Moose::Cookbook::Meta::Recipe1
1273 - an introduction to what meta is and why you'd want to make
1274 your own metaclass extensions (Dave Rolsky)
1276 * Moose::Cookbook::Meta::Recipe4
1277 - a very simple metaclass example (Dave Rolsky)
1279 * Moose::Cookbook::Extending::Recipe1
1280 - how to write a Moose-alike module to use your own object base
1283 * Moose::Cookbook::Extending::Recipe2
1284 - how to write modules with an API just like C<Moose.pm> (Dave
1288 - Tons of fixes, both syntactical and grammatical (Dave
1289 Rolsky, Paul Fenwick)
1291 0.54 Thurs. July 3, 2008
1292 ... this is not my day today ...
1294 * Moose::Meta::Attribute
1295 - fixed legal_options_for_inheritance such that
1296 clone_and_inherit options still works for
1297 Class::MOP::Attribute objects and therefore
1298 does not break MooseX::AttributeHelpers
1301 0.53 Thurs. July 3, 2008
1302 * Whoops, I guess I should run 'make manifest' before
1303 actually releasing the module. No actual changes
1304 in this release, except the fact that it includes
1305 the changes that I didn't include in the last
1308 0.52 Thurs. July 3, 2008
1310 - added "FEATURE REQUESTS" section to the Moose docs
1311 to properly direct people (stevan) (RT #34333)
1312 - making 'extends' croak if it is passed a Role since
1313 this is not ever something you want to do
1314 (fixed by stevan, found by obra)
1315 - added tests for this (stevan)
1318 - adding support for DOES (as in UNIVERSAL::DOES)
1320 - added test for this
1322 * Moose::Meta::Attribute
1323 - added legal_options_for_inheritance (wreis)
1324 - added tests for this (wreis)
1326 * Moose::Cookbook::Snacks::*
1327 - removed some of the unfinished snacks that should
1328 not have been released yet. Added some more examples
1329 to the 'Keywords' snack. (stevan)
1331 * Moose::Cookbook::Style
1332 - added general Moose "style guide" of sorts to the
1333 cookbook (nothingmuch) (RT #34335)
1336 - added more BUILDARGS tests (stevan)
1338 0.51 Thurs. Jun 26, 2008
1340 - add unimport so "no Moose::Role" actually does
1343 * Moose::Meta::Role::Application::ToRole
1344 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1345 order to provide its own implementation, that method still got
1346 added to the list of required methods for consumers of
1347 RoleB. Now an aliased method is only added to the list of
1348 required methods if the role doing the aliasing does not
1349 provide its own implementation. See Recipe 11 for an example
1350 of all this. (Dave Rolsky)
1351 - added tests for this
1353 * Moose::Meta::Method::Constructor
1354 - when a single argument that wasn't a hashref was provided to
1355 an immutabilized constructor, the error message was very
1356 unhelpful, as opposed to the non-immutable error. Reported by
1358 - added test for this (Dave Rolsky)
1360 * Moose::Meta::Attribute
1361 - added support for meta_attr->does("ShortAlias") (sartak)
1362 - added tests for this (sartak)
1363 - moved the bulk of the `handles` handling to the new
1364 install_delegation method (Stevan)
1367 - Added BUILDARGS, a new step in new()
1369 * Moose::Meta::Role::Application::RoleSummation
1370 - fix typos no one ever sees (sartak)
1372 * Moose::Util::TypeConstraints
1373 * Moose::Meta::TypeConstraint
1374 * Moose::Meta::TypeCoercion
1375 - Attempt to work around the ??{ } vs. threads issue
1377 - Some null_constraint optimizations
1379 0.50 Thurs. Jun 11, 2008
1380 - Fixed a version number issue by bumping all modules
1383 0.49 Thurs. Jun 11, 2008
1384 !! This version now approx. 20-25% !!
1385 !! faster with new Class::MOP 0.59 !!
1387 * Moose::Meta::Attribute
1388 - fixed how the is => (ro|rw) works with
1389 custom defined reader, writer and accessor
1391 - added docs for this (TODO).
1392 - added tests for this (Thanks to Penfold)
1393 - added the custom attribute alias for regular
1394 Moose attributes which is "Moose"
1395 - fix builder and default both being used
1400 Moose::Meta::Attribute
1402 Moose::Meta::Role::Composite
1403 Moose::Util::TypeConstraints
1404 - switched usage of reftype to ref because
1408 - changing add_package_symbol to use the new
1412 - fixed how DEMOLISHALL is called so that it
1413 can be overrided in subclasses (thanks to Sartak)
1414 - added test for this (thanks to Sartak)
1416 * Moose::Util::TypeConstraints
1417 - move the ClassName type check code to
1418 Class::MOP::is_class_loaded (thanks to Sartak)
1420 * Moose::Cookbook::Recipe11
1421 - add tests for this (thanks to tokuhirom)
1423 0.48 Thurs. May 29, 2008
1424 (early morning release engineering)--
1426 - fixing the version in Moose::Meta::Method::Destructor
1427 which was causing the indexer to choke
1429 0.47 Thurs. May 29, 2008
1430 (late night release engineering)--
1432 - fixing the version is META.yml, no functional
1433 changes in this release
1435 0.46 Wed. May 28, 2008
1436 !! This version now approx. 20-25% !!
1437 !! faster with new Class::MOP 0.57 !!
1439 * Moose::Meta::Class
1440 - some optimizations of the &initialize method
1441 since it is called so often by &meta
1443 * Moose::Meta::Class
1445 - now use the get_all_package_symbols from the
1446 updated Class::MOP, test suite is now 10 seconds
1449 * Moose::Meta::Method::Destructor
1450 - is_needed can now also be called as a class
1451 method for immutablization to check if the
1452 destructor object even needs to be created
1455 * Moose::Meta::Method::Destructor
1456 Moose::Meta::Method::Constructor
1457 - added more descriptive error message to help
1458 keep people from wasting time tracking an error
1459 that is easily fixed by upgrading.
1461 0.45 Saturday, May 24, 2008
1463 - Because of work in Class::MOP 0.57, all
1464 XS based functionality is now optional
1465 and a Pure Perl version is supplied
1466 - the CLASS_MOP_NO_XS environment variable
1467 can now be used to force non-XS versions
1469 - several of the packages have been tweaked
1470 to take care of this, mostly we added
1471 support for the package_name and name
1472 variables in all the Method metaclasses
1473 - before/around/after method modifiers now
1474 support regexp matching of names
1475 (thanks to Takatoshi Kitano)
1476 - tests added for this
1477 - NOTE: this only works for classes, it
1478 is currently not supported in roles,
1479 but, ... patches welcome
1480 - All usage of Carp::confess have been replaced
1481 by Carp::croak in the "keyword" functions since
1482 the stack trace is usually not helpful
1485 - All usage of Carp::confess have been replaced
1486 by Carp::croak in the "keyword" functions since
1487 the stack trace is usually not helpful
1488 - The 'has' keyword for roles now accepts the
1489 same array ref form that Moose.pm does
1490 (has [qw/foo bar/] => (is => 'rw', ...))
1491 - added test for this
1493 * Moose::Meta::Attribute
1494 - trigger on a ro-attribute is no longer an
1495 error, as it's useful to trigger off of the
1498 * Moose::Meta::Class
1499 - added same 'add_package_symbol' fix as in
1503 - does_role now handles non-Moose classes
1505 - added tests for this
1506 - added the 'add_method_modifier' function
1507 (thanks to Takatoshi Kitano)
1509 * Moose::Util::TypeConstraints
1510 - subtypes of parameterizable types now are
1511 themselves parameterizable types
1513 * Moose::Meta::Method::Constructor
1514 - fixed bug where trigger was not being
1515 called by the inlined immutable
1517 - added test for this (thanks to Caelum)
1519 * Moose::Meta::Role::Application::ToInstance
1520 - now uses the metaclass of the instance
1521 (if possible) to create the anon-class
1522 (thanks Jonathan Rockway)
1524 * Moose::Cookbook::Recipe22
1525 - added the meta-attribute trait recipe
1529 - fixed hash-ordering test bug that was
1530 causing occasional cpantester failures
1531 - renamed the t/000_recipe/*.t tests to be
1532 more descriptive (thanks to Sartak)
1534 0.44 Sat. May 10, 2008
1536 - made make_immutable warning cluck to
1537 show where the error is (thanks mst)
1540 - BUILDALL and DEMOLISHALL now call
1541 ->body when looping through the
1542 methods, to avoid the overloaded
1544 - fixed issue where DEMOLISHALL was
1545 eating the $@ values, and so not
1546 working correctly, it still kind of
1547 eats them, but so does vanilla perl
1548 - added tests for this
1550 * Moose::Cookbook::Recipe7
1551 - added new recipe for immutable
1552 functionality (thanks Dave Rolsky)
1554 * Moose::Cookbook::Recipe9
1555 - added new recipe for builder and
1556 lazy_build (thanks Dave Rolsky)
1558 * Moose::Cookbook::Recipe11
1559 - added new recipe for method aliasing
1560 and exclusion with Roles (thanks Dave Rolsky)
1563 - fixed Win32 test failure (thanks spicyjack)
1565 ~ removed Build.PL and Module::Build compat
1566 since Module::Install has done that.
1568 0.43 Wed. April, 30, 2008
1570 drink more coffee before
1571 doing release engineering
1573 - whoops, forgot to do the smolder tests,
1574 and we broke some of the custom meta-attr
1575 modules. This fixes that.
1577 0.42 Mon. April 28, 2008
1578 - some bad tests slipped by, nothing else
1579 changed in this release (cpantesters++)
1581 - upped the Class::MOP dependency to 0.55
1582 since we have tests which need the C3
1585 0.41 Mon. April 28, 2008
1586 ~~ numerous documentation updates ~~
1588 - Changed all usage of die to Carp::croak for better
1589 error reporting (initial patch by Tod Hagan)
1591 ** IMPORTANT NOTE **
1592 - the make_immutable keyword is now deprecated, don't
1593 use it in any new code and please fix your old code
1594 as well. There will be 2 releases, and then it will
1600 - refactored the way inner and super work to avoid
1601 any method/@ISA cache penalty (nothingmuch)
1603 * Moose::Meta::Class
1604 - fixing &new_object to make sure trigger gets the
1605 coerced value (spotted by Charles Alderman on the
1607 - added test for this
1609 * Moose::Meta::Method::Constructor
1610 - immutable classes which had non-lazy attributes were calling
1611 the default generating sub twice in the constructor. (bug
1612 found by Jesse Luehrs, fixed by Dave Rolsky)
1613 - added tests for this (Dave Rolsky)
1614 - fix typo in initialize_body method (nothingmuch)
1616 * Moose::Meta::Method::Destructor
1617 - fix typo in initialize_body method (nothingmuch)
1619 * Moose::Meta::Method::Overriden
1620 Moose::Meta::Method::Augmented
1621 - moved the logic for these into their own
1622 classes (nothingmuch)
1624 * Moose::Meta::Attribute
1625 - inherited attributes may now be extended without
1626 restriction on the type ('isa', 'does') (Sartak)
1627 - added tests for this (Sartak)
1628 - when an attribute property is malformed (such as lazy without
1629 a default), give the name of the attribute in the error
1631 - added the &applied_traits and &has_applied_traits methods
1632 to allow introspection of traits
1633 - added tests for this
1634 - moved 'trait' and 'metaclass' argument handling to here from
1636 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1637 '+foo' syntax) (nothingmuch)
1638 - added tests for this (t0m)
1641 - localize $@ inside DEMOLISHALL to avoid it
1642 eating $@ (found by Ernesto)
1643 - added test for this (thanks to Ernesto)
1645 * Moose::Util::TypeConstraints
1646 - &find_type_constraint now DWIMs when given an
1647 type constraint object or name (nothingmuch)
1648 - &find_or_create_type_constraint superseded with a number of more
1650 - find_or_create_{isa,does}_type_constraint
1651 - find_or_parse_type_constraint
1653 * Moose::Meta::TypeConstraint
1654 Moose::Meta::TypeConstraint::Class
1655 Moose::Meta::TypeConstraint::Role
1656 Moose::Meta::TypeConstraint::Enum
1657 Moose::Meta::TypeConstraint::Union
1658 Moose::Meta::TypeConstraint::Parameterized
1659 - added the &equals method for comparing two type
1660 constraints (nothingmuch)
1661 - added tests for this (nothingmuch)
1663 * Moose::Meta::TypeConstraint
1664 - add the &parents method, which is just an alias to &parent.
1665 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1667 * Moose::Meta::TypeConstraint::Class
1668 - added the class attribute for introspection purposes
1670 - added tests for this
1672 * Moose::Meta::TypeConstraint::Enum
1673 Moose::Meta::TypeConstraint::Role
1674 - broke these out into their own classes (nothingmuch)
1676 * Moose::Cookbook::Recipe*
1677 - fixed references to test file locations in the POD
1678 and updated up some text for new Moose features
1682 - Added &resolve_metaclass_alias, a helper function for finding an actual
1683 class for a short name (e.g. in the traits list)
1685 0.40 Fri. March 14, 2008
1686 - I hate Pod::Coverage
1688 0.39 Fri. March 14, 2008
1690 - documenting the use of '+name' with attributes
1691 that come from recently composed roles. It makes
1692 sense, people are using it, and so why not just
1693 officially support it.
1694 - fixing the 'extends' keyword so that it will not
1695 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1698 - added the perl -Moose=+Class::Name feature to allow
1699 monkeypatching of classes in one liners
1702 - fixing the 'apply_all_roles' keyword so that it will not
1703 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1705 * Moose::Meta::Class
1706 - added ->create method which now supports roles (thanks to jrockway)
1707 - added tests for this
1708 - added ->create_anon_class which now supports roles and caching of
1709 the results (thanks to jrockway)
1710 - added tests for this
1711 - made ->does_role a little more forgiving when it is
1712 checking a Class::MOP era metaclasses.
1714 * Moose::Meta::Role::Application::ToInstance
1715 - it is now possible to pass extra params to be used when
1716 a role is applied to an the instance (rebless_params)
1717 - added tests for this
1719 * Moose::Util::TypeConstraints
1720 - class_type now accepts an optional second argument for a
1721 custom message. POD anotated accordingly (groditi)
1722 - added tests for this
1723 - it is now possible to make anon-enums by passing 'enum' an
1724 ARRAY ref instead of the $name => @values. Everything else
1726 - added tests for this
1729 - making test for using '+name' on attributes consumed
1730 from a role, it works and makes sense too.
1732 * Moose::Meta::Attribute
1733 - fix handles so that it doesn't return nothing
1734 when the method cannot be found, not sure why
1735 it ever did this originally, this means we now
1736 have slightly better support for AUTOLOADed
1738 - added more delegation tests
1739 - adding ->does method to this so as to better
1740 support traits and their introspection.
1741 - added tests for this
1744 - localizing the Data::Dumper configurations so
1745 that it does not pollute others (RT #33509)
1746 - made ->does a little more forgiving when it is
1747 passed Class::MOP era metaclasses.
1749 0.38 Fri. Feb. 15, 2008
1750 * Moose::Meta::Attribute
1751 - fixed initializer to correctly do
1752 type checking and coercion in the
1754 - added tests for this
1757 - fixed some finicky tests (thanks to konobi)
1759 0.37 Thurs. Feb. 14, 2008
1761 - fixed some details in Moose::init_meta
1762 and its superclass handling (thanks thepler)
1763 - added tests for this (thanks thepler)
1764 - 'has' now dies if you don't pass in name
1766 - added the 'make_immutable' keyword as a shortcut
1769 * Moose::Meta::Class
1770 Moose::Meta::Method::Constructor
1771 Moose::Meta::Attribute
1772 - making (init_arg => undef) work here too
1773 (thanks to nothingmuch)
1775 * Moose::Meta::Attribute
1776 Moose::Meta::Method::Constructor
1777 Moose::Meta::Method::Accessor
1778 - make lazy attributes respect attr initializers (rjbs)
1779 - added tests for this
1781 * Moose::Util::TypeConstraints
1782 Moose::Util::TypeConstraints::OptimizedConstraints
1783 Moose::Meta::TypeConstraints
1784 Moose::Meta::Attribute
1785 Moose::Meta::Method::Constructor
1786 Moose::Meta::Method::Accessor
1787 - making type errors use the
1788 assigned message (thanks to Sartak)
1789 - added tests for this
1791 * Moose::Meta::Method::Destructor
1792 - making sure DESTROY gets inlined properly
1793 with successive DEMOLISH calls (thanks to manito)
1795 * Moose::Meta::Attribute
1796 Moose::Meta::Method::Accessor
1797 - fixed handling of undef with type constraints
1799 - added tests for this
1802 - added &get_all_init_args and &get_all_attribute_values
1803 (thanks to Sartak and nothingmuch)
1805 0.36 Sat. Jan. 26, 2008
1807 Moose::Meta::Attribute
1808 - role type tests now support when roles are
1809 applied to non-Moose classes (found by ash)
1810 - added tests for this (thanks to ash)
1811 - couple extra tests to boost code coverage
1813 * Moose::Meta::Method::Constructor
1814 - improved fix for handling Class::MOP attributes
1815 - added test for this
1817 * Moose::Meta::Class
1818 - handled the add_attribute($attribute_meta_object)
1820 - added test for this
1822 0.35 Tues. Jan. 22, 2008
1823 * Moose::Meta::Method::Constructor
1824 - fix to make sure even Class::MOP attributes
1825 are handled correctly (Thanks to Dave Rolsky)
1826 - added test for this (also Dave Rolsky)
1828 * Moose::Meta::Class
1829 - improved error message on _apply_all_roles,
1830 you should now use Moose::Util::apply_all_roles
1831 and you shouldnt have been using a _ prefixed
1832 method in the first place ;)
1834 0.34 Mon. Jan. 21, 2008
1835 ~~~ more misc. doc. fixes ~~~
1836 ~~ updated copyright dates ~~
1838 Moose is now a postmodern object system :)
1839 - (see the POD for details)
1841 * <<Role System Refactoring>>
1842 - this release contains a major reworking and
1843 cleanup of the role system
1844 - 100% backwards compat.
1845 - Role application now restructured into seperate
1846 classes based on type of applicants
1847 - Role summation (combining of more than one role)
1848 is much cleaner and anon-classes are no longer
1849 used in this process
1850 - new Composite role metaclass
1851 - runtime application of roles to instances
1852 is now more efficient and re-uses generated
1853 classes when applicable
1855 * <<New Role composition features>>
1856 - methods can now be excluded from a given role
1858 - methods can now be aliased to another name (and
1859 still retain the original as well)
1861 * Moose::Util::TypeConstraints::OptimizedConstraints
1862 - added this module (see above)
1864 * Moose::Meta::Class
1865 - fixed the &_process_attribute method to be called
1866 by &add_attribute, so that the API is now correct
1868 * Moose::Meta::Method::Accessor
1869 - fixed bug when passing a list of values to
1870 an accessor would get (incorrectly) ignored.
1871 Thanks to Sartak for finding this ;)
1872 - added tests for this (Sartak again)
1874 * Moose::Meta::Method::Accessor
1875 Moose::Meta::Method::Constructor
1876 Moose::Meta::Attribute
1877 Moose::Meta::TypeConstraint
1878 Moose::Meta::TypeCoercion
1879 - lots of cleanup of such things as:
1881 - type constraint handling
1882 - error handling/messages
1883 (thanks to nothingmuch)
1885 * Moose::Meta::TypeConstraint::Parameterizable
1886 - added this module to support the refactor
1887 in Moose::Meta::TypeConstraint::Parameterized
1889 * Moose::Meta::TypeConstraint::Parameterized
1890 - refactored how these types are handled so they
1891 are more generic and not confined to ArrayRef
1895 - shortened some file names for better VMS support (RT #32381)
1897 0.33 Fri. Dec. 14, 2007
1898 !! Moose now loads 2 x faster !!
1899 !! with new Class::MOP 0.49 !!
1901 ++ new oose.pm module to make command line
1902 Moose-ness easier (see POD docs for more)
1904 * Moose::Meta::Class
1906 - several tweaks to take advantage of the
1907 new method map caching in Class::MOP
1909 * Moose::Meta::TypeConstraint::Parameterized
1910 - allow subtypes of ArrayRef and HashRef to
1911 be used as a container (sartak)
1912 - added tests for this
1913 - basic support for coercion to ArrayRef and
1914 HashRef for containers (sartak)
1915 - added tests for this
1917 * Moose::Meta::TypeCoercion
1918 - coercions will now create subtypes as needed
1919 so you can now add coercions to parameterized
1920 types without having to explictly define them
1921 - added tests for this
1923 * Moose::Meta::Method::Accessor
1924 - allow subclasses to decide whether we need
1925 to copy the value into a new variable (sartak)
1927 0.32 Tues. Dec. 4, 2007
1928 * Moose::Util::TypeConstraints
1929 - fixing how subtype aliases of unions work
1930 they should inherit the parent's coercion
1931 - added tests for this
1932 - you can now define multiple coercions on
1933 a single type at different times instead of
1934 having to do it all in one place
1935 - added tests for this
1937 * Moose::Meta::TypeConstraint
1938 - there is now a default constraint of sub { 1 }
1939 instead of Moose::Util::TypeConstraints setting
1942 * Moose::Meta::TypeCoercion
1943 * Moose::Meta::TypeCoercion::Union
1944 - added the &has_coercion_for_type and
1945 &add_type_coercions methods to support the
1946 new features above (although you cannot add
1947 more type coercions for Union types)
1949 0.31 Mon. Nov. 26, 2007
1950 * Moose::Meta::Attribute
1951 - made the +attr syntax handle extending types with
1952 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1953 now works if the original foo is an ArrayRef.
1954 - added tests for this.
1955 - delegation now works even if the attribute does not
1956 have a reader method using the get_read_method_ref
1957 method from Class::MOP::Attribute.
1958 - added tests for this
1959 - added docs for this
1961 * Moose::Util::TypeConstraints
1962 - passing no "additional attribute info" to
1963 &find_or_create_type_constraint will no longer
1964 attempt to create an __ANON__ type for you,
1965 instead it will just return undef.
1966 - added docs for this
1968 0.30 Fri. Nov. 23, 2007
1969 * Moose::Meta::Method::Constructor
1970 -builder related bug in inlined constructor. (groditi)
1972 * Moose::Meta::Method::Accessor
1973 - genereate unnecessary calls to predicates and refactor
1974 code generation for runtime speed (groditi)
1976 * Moose::Util::TypeConstraints
1977 - fix ClassName constraint to introspect symbol table (mst)
1978 - added more tests for this (mst)
1979 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1980 with work correctly.
1981 - added tests for this
1984 - adding the link to Recipie 11 (written by Sartak)
1985 - adding test for SYNOPSIS code
1988 - New tests for builder bug. Upon instantiation, if an
1989 attribute had a builder, no value and was not lazy the
1990 builder default was not getting run, oops. (groditi)
1992 0.29 Tues. Nov. 13, 2007
1993 * Moose::Meta::Attribute
1994 - Fix error message on missing builder method (groditi)
1996 * Moose::Meta::Method::Accessor
1997 - Fix error message on missing builder method (groditi)
2000 - Add test to check for the correct error message when
2001 builder method is missing (groditi)
2003 0.28 Tues. Nov. 13, 2007
2004 - 0.27 packaged incorrectly (groditi)
2006 0.27 Tues. Nov. 13, 2007
2007 * Moose::Meta::Attribute
2008 - Added support for the new builder option (groditi)
2009 - Added support for lazy_build option (groditi)
2010 - Changed slot initialization for predicate changes (groditi)
2012 * Moose::Meta::Method::Accessor
2013 - Added support for lazy_build option (groditi)
2014 - Fix inline methods to work with corrected predicate
2017 * Moose::Meta::Method::Constructor
2018 - Added support for lazy_build option (groditi)
2021 - tests for builder and lazy_build (groditi)
2023 * fixing some misc. bits in the docs that
2024 got mentioned on CPAN Forum & perlmonks
2027 - fixed how required methods are handled
2028 when they encounter overriden or modified
2029 methods from a class (thanks to confound).
2030 - added tests for this
2032 * Moose::Util::TypeConstraint
2033 - fixed the type notation parser so that
2034 the | always creates a union and so is
2035 no longer a valid type char (thanks to
2036 konobi, mugwump and #moose for working
2038 - added more tests for this
2040 0.26 Thurs. Sept. 27, 2007
2043 * Parameterized Types
2044 We now support parameterized collection types, such as:
2045 ArrayRef[Int] # array or integers
2046 HashRef[Object] # a hash with object values
2047 They can also be nested:
2048 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2049 And work with the type unions as well:
2050 ArrayRef[Int | Str] # array of integers of strings
2052 * Better Framework Extendability
2053 Moose.pm is now "extendable" such that it is now much
2054 easier to extend the framework and add your own keywords
2055 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2056 section of the Moose.pm docs.
2059 In an effort to begin documenting some of the various
2060 details of Moose as well as some common idioms, we have
2061 created Moose::Cookbook::Snacks as a place to find
2062 small (easily digestable) nuggets of Moose code.
2065 ~ Several doc updates/cleanup thanks to castaway ~
2067 - converted build system to use Module::Install instead of
2068 Module::Build (thanks to jrockway)
2071 - added all the meta classes to the immutable list and
2072 set it to inline the accessors
2073 - fix import to allow Sub::Exporter like { into => }
2074 and { into_level => } (perigrin)
2075 - exposed and documented init_meta() to allow better
2076 embedding and extending of Moose (perigrin)
2079 - complete re-organization of the test suite
2080 - added some new tests as well
2081 - finally re-enabled the Moose::POOP test since
2082 the new version of DBM::Deep now works again
2085 * Moose::Meta::Class
2086 - fixed very odd and very nasty recursion bug with
2088 - added tests for this (eilara)
2090 * Moose::Meta::Attribute
2091 Moose::Meta::Method::Constructor
2092 Moose::Meta::Method::Accessor
2093 - fixed issue with overload::Overloaded getting called
2094 on non-blessed items. (RT #29269)
2095 - added tests for this
2097 * Moose::Meta::Method::Accessor
2098 - fixed issue with generated accessor code making
2099 assumptions about hash based classes (thanks to dexter)
2101 * Moose::Coookbook::Snacks
2102 - these are bits of documentation, not quite as big as
2103 Recipes but which have no clear place in the module docs.
2104 So they are Snacks! (horray for castaway++)
2106 * Moose::Cookbook::Recipe4
2107 - updated it to use the new ArrayRef[MyType] construct
2108 - updated the accompanying test as well
2110 +++ Major Refactor of the Type Constraint system +++
2111 +++ with new features added as well +++
2113 * Moose::Util::TypeConstraint
2114 - no longer uses package variable to keep track of
2115 the type constraints, now uses the an instance of
2116 Moose::Meta::TypeConstraint::Registry to do it
2117 - added more sophisticated type notation parsing
2119 - added tests for this
2121 * Moose::Meta::TypeConstraint
2122 - some minor adjustments to make subclassing easier
2123 - added the package_defined_in attribute so that we
2124 can track where the type constraints are created
2126 * Moose::Meta::TypeConstraint::Union
2127 - this is now been refactored to be a subclass of
2128 Moose::Meta::TypeConstraint
2130 * Moose::Meta::TypeCoercion::Union
2131 - this has been added to service the newly refactored
2132 Moose::Meta::TypeConstraint::Union and is itself
2133 a subclass of Moose::Meta::TypeCoercion
2135 * Moose::Meta::TypeConstraint::Parameterized
2136 - added this module (taken from MooseX::AttributeHelpers)
2137 to help construct nested collection types
2138 - added tests for this
2140 * Moose::Meta::TypeConstraint::Registry
2141 - added this class to keep track of type constraints
2143 0.25 Mon. Aug. 13, 2007
2145 - Documentation update to reference Moose::Util::TypeConstraints
2146 under 'isa' in 'has' for how to define a new type
2147 (thanks to shlomif).
2149 * Moose::Meta::Attribute
2150 - required attributes now will no longer accept undef
2151 from the constructor, even if there is a default and lazy
2152 - added tests for this
2153 - default subroutines must return a value which passes the
2155 - added tests for this
2157 * Moose::Meta::Attribute
2158 * Moose::Meta::Method::Constructor
2159 * Moose::Meta::Method::Accessor
2160 - type-constraint tests now handle overloaded objects correctly
2161 in the error message
2162 - added tests for this (thanks to EvanCarroll)
2164 * Moose::Meta::TypeConstraint::Union
2165 - added (has_)hand_optimized_constraint to this class so that
2166 it behaves as the regular Moose::Meta::TypeConstraint does.
2169 - large refactoring of this code
2170 - added several more tests
2171 - tests for subtle conflict resolition issues
2172 added, but not currently running
2175 * Moose::Cookbook::Recipe7
2176 - added new recipe for augment/inner functionality
2178 - added test for this
2181 - a formal definition of roles (still in progress)
2184 - utilities for easier working with Moose classes
2185 - added tests for these
2188 - This contains Moose specific test functions
2189 - added tests for these
2191 0.24 Tues. July 3, 2007
2192 ~ Some doc updates/cleanup ~
2194 * Moose::Meta::Attribute
2195 - added support for roles to be given as parameters
2196 to the 'handles' option.
2197 - added tests and docs for this
2198 - the has '+foo' attribute form now accepts changes to
2199 the lazy option, and the addition of a handles option
2200 (but not changing the handles option)
2201 - added tests and docs for this
2204 - required methods are now fetched using find_method_by_name
2205 so that required methods can come from superclasses
2206 - adjusted tests for this
2208 0.23 Mon. June 18, 2007
2209 * Moose::Meta::Method::Constructor
2210 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2211 * Moose::Meta::Class
2212 - Modify make_immutable to work with the new Class::MOP immutable
2213 mechanism + POD + very basic test (groditi)
2214 * Moose::Meta::Attribute
2215 - Fix handles to use goto() so that caller() comes out properly on
2216 the other side (perigrin)
2218 0.22 Thurs. May 31, 2007
2219 * Moose::Util::TypeConstraints
2220 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2221 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2222 prototypes for functions
2223 - added the ClassName type constraint, this checks for strings
2224 which will respond true to ->isa(UNIVERSAL).
2225 - added tests and docs for this
2226 - subtyping just in name now works correctly by making the
2227 default for where be { 1 }
2228 - added test for this
2230 * Moose::Meta::Method::Accessor
2231 - coerce and lazy now work together correctly, thanks to
2232 merlyn for finding this bug
2233 - tests added for this
2234 - fix reader presedence bug in Moose::Meta::Attribute + tests
2237 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2238 a HASH-ref and missed. This produces better error messages then
2239 having it die cause undef is not a HASH.
2240 - added tests for this
2242 0.21 Thursday, May 2nd, 2007
2244 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2245 - modified unimport to remove super and inner along with the rest
2246 - altered unimport tests to handle this
2249 - altered super export to populate SUPER_SLOT
2251 * Moose::Meta::Class
2252 - altered augment and override modifier application to use *_SLOT
2253 - modified tests for these to unimport one test class each to test
2256 - fixed issue where custom attribute metaclasses
2257 where not handled correctly in roles
2258 - added tests for this
2260 * Moose::Meta::Class
2261 - fixed issue where extending metaclasses with
2262 roles would blow up. Thanks to Aankhen`` for
2263 finding this insidious error, and it's solution.
2265 ~~ lots of spelling and grammer fixes in the docs,
2266 many many thanks to rlb3 and Aankhen for these :)
2268 0.20 Friday, April 6th, 2007
2269 >> I messed up the SKIP logic in one test
2270 so this release is just to fix that.
2273 - 'has' now also accepts an ARRAY ref
2274 to create multiple attrs (see docs)
2275 (thanks to konobi for this)
2276 - added tests and docs
2278 0.19 Thurs. April 5th, 2007
2279 ~~ More documentation updates ~~
2281 * Moose::Util::TypeConstraints
2282 - 'type' now supports messages as well
2283 thanks to phaylon for finding this
2284 - added tests for this
2285 - added &list_all_type_constraints and
2286 &list_all_builtin_type_constraints
2287 functions to facilitate introspection.
2289 * Moose::Meta::Attribute
2290 - fixed regexp 'handles' declarations
2291 to build the list of delegated methods
2292 correctly (and not override important
2293 things like &new) thanks to ashleyb
2295 - added tests and docs for this
2296 - added the 'documentation' attributes
2297 so that you can actually document your
2298 attributes and inspect them through the
2300 - added tests and docs for this
2302 * Moose::Meta::Class
2303 - when loading custom attribute metaclasses
2304 it will first look in for the class in the
2305 Moose::Meta::Attribute::Custom::$name, and
2306 then default to just loading $name.
2307 - added tests and docs for this
2309 * Moose::Meta::TypeConstraint
2310 - type constraints now stringify to their names.
2311 - added test for this
2314 - added tests to assure we work with Module::Refresh
2315 - added stricter test skip logic in the Moose POOP
2316 test, ask Rob Kinyon why.
2317 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2319 0.18 Sat. March 10, 2007
2320 ~~ Many, many documentation updates ~~
2323 - We now use Class::MOP::load_class to
2325 - added tests to show types and subtypes
2326 working with Declare::Constraints::Simple
2327 and Test::Deep as constraint engines.
2330 !! You must have Class::MOP 0.37_001 !!
2331 !! for this developer release to work !!
2333 This release was primarily adding the immutable
2334 feature to Moose. An immutable class is one which
2335 you promise not to alter. When you set the class
2336 as immutable it will perform various bits of
2337 memoization and inline certain part of the code
2338 (constructors, destructors and accessors). This
2339 minimizes (and in some cases totally eliminates)
2340 one of Moose's biggest performance hits. This
2341 feature is not on by default, and is 100% optional.
2342 It has several configurable bits as well, so you
2343 can pick and choose to your specific needs.
2345 The changes involved in this were fairly wide and
2346 highly specific, but 100% backwards compatible, so
2347 I am not going to enumerate them here. If you are
2348 truely interested in what was changed, please do
2351 0.17 Tues. Nov. 14, 2006
2352 * Moose::Meta::Method::Accessor
2353 - bugfix for read-only accessors which
2354 are have a type constraint and lazy.
2355 Thanks to chansen for finding it.
2357 0.16 Tues. Nov. 14, 2006
2359 There are some speed improvements in this release,
2360 but they are only the begining, so stay tuned.
2363 - BUILDALL and DEMOLISHALL no longer get
2364 called unless they actually need to be.
2365 This gave us a signifigant speed boost
2366 for the cases when there is no BUILD or
2367 DEMOLISH method present.
2369 * Moose::Util::TypeConstraints
2370 * Moose::Meta::TypeConstraint
2371 - added an 'optimize_as' option to the
2372 type constraint, which allows for a
2373 hand optimized version of the type
2374 constraint to be used when possible.
2375 - Any internally created type constraints
2376 now provide an optimized version as well.
2378 0.15 Sun. Nov. 5, 2006
2380 This version of Moose *must* have Class::MOP 0.36 in order
2381 to work correctly. A number of small internal tweaks have
2382 been made in order to be compatible with that release.
2384 * Moose::Util::TypeConstraints
2385 - added &unimport so that you can clean out
2386 your class namespace of these exported
2389 * Moose::Meta::Class
2390 - fixed minor issue which occasionally
2391 comes up during global destruction
2393 - moved Moose::Meta::Method::Overriden into
2397 - moved Moose::Meta::Role::Method into
2400 * Moose::Meta::Attribute
2401 - changed how we do type checks so that
2402 we reduce the overall cost, but still
2405 - moved accessor generation methods to
2406 Moose::Meta::Method::Accessor to
2407 conform to the API changes from
2410 * Moose::Meta::TypeConstraint
2411 - changed how constraints are compiled
2412 so that we do less recursion and more
2413 iteration. This makes the type check
2415 - moved Moose::Meta::TypeConstraint::Union
2418 * Moose::Meta::Method::Accessor
2419 - created this from methods formerly found in
2420 Moose::Meta::Attribute
2422 * Moose::Meta::Role::Method
2423 - moved this from Moose::Meta::Role
2425 * Moose::Meta::Method::Overriden
2426 - moved this from Moose::Meta::Class
2428 * Moose::Meta::TypeConstraint::Union
2429 - moved this from Moose::Meta::TypeConstraint
2431 0.14 Mon. Oct. 9, 2006
2433 * Moose::Meta::Attribute
2434 - fixed lazy attributes which were not getting
2435 checked with the type constraint (thanks ashley)
2436 - added tests for this
2437 - removed the over-enthusiastic DWIMery of the
2438 automatic ArrayRef and HashRef defaults, it
2439 broke predicates in an ugly way.
2440 - removed tests for this
2442 0.13 Sat. Sept. 30, 2006
2444 This version of Moose *must* have Class::MOP 0.35 in order
2445 to work correctly. A number of small internal tweaks have
2446 been made in order to be compatible with that release.
2449 - Removed the use of UNIVERSAL::require to be a better
2450 symbol table citizen and remove a dependency
2451 (thanks Adam Kennedy)
2453 **~~ removed experimental & undocumented feature ~~**
2454 - commented out the 'method' and 'self' keywords, see the
2455 comments for more info.
2458 - added a FAQ and WTF files to document frequently
2459 asked questions and common problems
2461 * Moose::Util::TypeConstraints
2462 - added GlobRef and FileHandle type constraint
2463 - added tests for this
2465 * Moose::Meta::Attribute
2466 - if your attribute 'isa' ArrayRef of HashRef, and you have
2467 not explicitly set a default, then make the default DWIM.
2468 This will also work for subtypes of ArrayRef and HashRef
2470 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2471 - new test added for this (thanks to ashley)
2474 - added basic support for runtime role composition
2475 but this is still *highly experimental*, so feedback
2476 is much appreciated :)
2477 - added tests for this
2479 * Moose::Meta::TypeConstraint
2480 - the type constraint now handles the coercion process
2481 through delegation, this is to support the coercion
2484 * Moose::Meta::TypeConstraint::Union
2485 - it is now possible for coercions to be performed
2487 - added tests for this (thanks to konobi)
2489 * Moose::Meta::TypeCoercion
2490 - properly capturing error when type constraint
2494 - Scalar::Util 1.18 is bad on Win32, so temporarily
2495 only require version 1.17 for Win32 and cygwin.
2496 (thanks Adam Kennedy)
2498 0.12 Sat. Sept. 1, 2006
2500 - Recipe5 (subtypes & coercion) has been written
2503 - fixed "bad meta" error message to be more descriptive
2504 - fixed &unimport to not remove the &inner and &super
2505 keywords because we need to localize them.
2506 - fixed number of spelling/grammer issues, thanks Theory :)
2508 **~~ experimental & undocumented feature ~~**
2509 - added the method and self keywords, they are basically
2510 just sugar, and they may not stay around.
2513 - added &dump method to easily Data::Dumper
2516 * Moose::Meta::TypeConstraint
2517 - added the &is_a_type_of method to check both the current
2518 and the subtype of a method (similar to &isa with classes)
2521 - this is now a subclass of Class::MOP::Module, and no longer
2522 creates the _role_meta ugliness of before.
2523 - fixed tests to reflect this change
2525 0.11 Wed. July 12, 2006
2527 - added an &unimport method to remove all the keywords
2528 that Moose will import, simply add 'no Moose' to the
2529 bottom of your class file.
2532 - fixed some test failures caused by a forgotten test
2535 0.10 Thurs. July 6, 2006
2537 - improved error message when loading modules so
2538 it is less confusing when you load a role.
2539 - added &calculate_all_roles method to
2540 Moose::Meta::Class and Moose::Meta::Role
2543 This module has been tested against Class::MOP 0.30
2544 but it does not yet utilize the optimizations
2545 it makes available. Stay tuned for that ;)
2547 0.09_03 Fri. June 23, 2006
2548 ++ DEVELOPER RELEASE ++
2550 - 'use strict' and 'use warnings' are no longer
2551 needed in Moose classes, Moose itself will
2552 turn them on for you.
2553 - added tests for this
2554 - moved code from exported subs to private methods
2555 in Moose::Meta::Class
2558 - as with Moose, strict and warnings are
2559 automatically turned on for you.
2560 - added tests for this
2563 - now handles an edge case for override errors
2564 - added tests for this
2565 - added some more edge case tests
2567 0.09_02 Tues. May 16, 2006
2568 ++ DEVELOPER RELEASE ++
2570 - added prototypes to the exported subs
2574 - added prototypes to the exported subs
2577 * Moose::Util::TypeConstraints
2578 - cleaned up prototypes for the subs
2581 0.09_01 Fri. May 12, 2006
2582 ++ DEVELOPER RELEASE ++
2583 - This release works in combination with
2584 Class::MOP 0.29_01, it is a developer
2585 release because it uses the a new
2586 instance sub-protocol and a fairly
2587 complete Role implementation. It has
2588 not yet been optimized, so it slower
2589 the the previous CPAN version. This
2590 release also lacks good updated docs,
2591 the official release will have updated docs.
2594 - refactored the keyword exports
2595 - 'with' now checks Role validaity and
2596 accepts more than one Role at a time
2597 - 'extends' makes metaclass adjustments as
2598 needed to ensure metaclass compatibility
2601 - refactored the keyword exports
2602 - 'with' now checks Role validaity and
2603 accepts more than one Role at a time
2605 * Moose::Util::TypeConstraints
2606 - added the 'enum' keyword for simple
2607 string enumerations which can be used as
2609 - see example of usage in t/202_example.t
2612 - more careful checking of params to new()
2615 - much work done on the role composition
2616 - many new tests for conflict detection
2617 and composition edge cases
2618 - not enough documentation, I suggest
2619 looking at the tests
2621 * Moose::Meta::Instance
2622 - added new Instance metaclass to support
2623 the new Class::MOP instance protocol
2625 * Moose::Meta::Class
2626 - some small changes to support the new
2628 - some small additions to support Roles
2630 * Moose::Meta::Attribute
2631 - some improvements to the accessor generation code
2633 - some small changes to support the new
2635 - (still somewhat) experimental delegation support
2636 with the 'handles' option
2637 - added several tests for this
2638 - no docs for this yet
2640 0.05 Thurs. April 27, 2006
2642 - keywords are now exported with Sub::Exporter
2643 thanks to chansen for this commit
2644 - has keyword now takes a 'metaclass' option
2645 to support custom attribute meta-classes
2646 on a per-attribute basis
2647 - added tests for this
2648 - the 'has' keyword not accepts inherited slot
2649 specifications (has '+foo'). This is still an
2650 experimental feature and probably not finished
2651 see t/038_attribute_inherited_slot_specs.t for
2652 more details, or ask about it on #moose
2653 - added tests for this
2656 - keywords are now exported with Sub::Exporter
2658 * Moose::Utils::TypeConstraints
2659 - reorganized the type constraint hierarchy, thanks
2660 to nothingmuch and chansen for his help and advice
2662 - added some tests for this
2663 - keywords are now exported with Sub::Exporter
2664 thanks to chansen for this commit
2666 * Moose::Meta::Class
2667 - due to changes in Class::MOP, we had to change
2668 construct_instance (for the better)
2670 * Moose::Meta::Attribute
2671 - due to changes in Class::MOP, we had to add the
2672 initialize_instance_slot method (it's a good thing)
2674 * Moose::Meta::TypeConstraint
2675 - added type constraint unions
2676 - added tests for this
2677 - added the is_subtype_of predicate method
2678 - added tests for this
2680 0.04 Sun. April 16th, 2006
2682 - Roles can now consume other roles
2683 - added tests for this
2684 - Roles can specify required methods now with
2685 the requires() keyword
2686 - added tests for this
2689 - ripped out much of it's guts ,.. much cleaner now
2690 - added required methods and correct handling of
2691 them in apply() for both classes and roles
2692 - added tests for this
2693 - no longer adds a does() method to consuming classes
2694 it relys on the one in Moose::Object
2695 - added roles attribute and some methods to support
2696 roles consuming roles
2698 * Moose::Meta::Attribute
2699 - added support for triggers on attributes
2700 - added tests for this
2701 - added support for does option on an attribute
2702 - added tests for this
2704 * Moose::Meta::Class
2705 - added support for attribute triggers in the
2707 - added tests for this
2710 - Moose no longer creates a subtype for your class
2711 if a subtype of the same name already exists, this
2712 should DWIM in 99.9999% of all cases
2714 * Moose::Util::TypeConstraints
2715 - fixed bug where incorrect subtype conflicts were
2717 - added test for this
2720 - this class can now be extended with 'use base' if
2721 you need it, it properly loads the metaclass class now
2722 - added test for this
2724 0.03_02 Wed. April 12, 2006
2726 - you must now explictly use Moose::Util::TypeConstraints
2727 it no longer gets exported for you automatically
2730 - new() now accepts hash-refs as well as key/value lists
2731 - added does() method to check for Roles
2732 - added tests for this
2734 * Moose::Meta::Class
2735 - added roles attribute along with the add_role() and
2737 - added tests for this
2740 - now adds a does() method to consuming classes
2741 which tests the class's hierarchy for roles
2742 - added tests for this
2744 0.03_01 Mon. April 10, 2006
2746 - added new Role recipe (no content yet, only code)
2749 - added 'with' keyword for Role support
2750 - added test and docs for this
2751 - fixed subtype quoting bug
2752 - added test for this
2756 - added test and docs
2758 * Moose::Util::TypeConstraints
2759 - added the message keyword to add custom
2760 error messages to type constraints
2763 - the meta role to support Moose::Role
2764 - added tests and docs
2766 * Moose::Meta::Class
2767 - moved a number of things from Moose.pm
2768 to here, they should have been here
2771 * Moose::Meta::Attribute
2772 - moved the attribute option macros here
2773 instead of putting them in Moose.pm
2775 * Moose::Meta::TypeConstraint
2776 - added the message attributes and the
2778 - added tests and docs for this
2780 0.03 Thurs. March 30, 2006
2782 - added the Moose::Cookbook with 5 recipes,
2783 describing all the stuff Moose can do.
2786 - fixed an issue with &extends super class loading
2787 it now captures errors and deals with inline
2788 packages correctly (bug found by mst, solution
2790 - added super/override & inner/augment features
2791 - added tests and docs for these
2794 - BUILDALL now takes a reference of the %params
2795 that are passed to &new, and passes that to
2798 * Moose::Util::TypeConstraints
2799 - Type constraints now survive runtime reloading
2800 - added test for this
2802 * Moose::Meta::Class
2803 - fixed the way attribute defaults are handled
2804 during instance construction (bug found by chansen)
2806 * Moose::Meta::Attribute
2807 - read-only attributes now actually enforce their
2808 read-only-ness (this corrected in Class::MOP as
2811 0.02 Tues. March 21, 2006
2813 - many more tests, fixing some bugs and
2815 - &extends now loads the base module with
2817 - added UNIVERSAL::require to the
2820 - each new Moose class will also create
2821 and register a subtype of Object which
2822 correspond to the new Moose class.
2823 - the 'isa' option in &has now only
2824 accepts strings, and will DWIM in
2827 * Moose::Util::TypeConstraints
2828 - added type coercion features
2829 - added tests for this
2830 - added support for this in attributes
2831 and instance construction
2833 - type construction no longer creates a
2834 function, it registers the type instead.
2835 - added several functions to get the
2839 - BUILDALL and DEMOLISHALL were broken
2840 because of a mis-named hash key, Whoops :)
2842 * Moose::Meta::Attribute
2843 - adding support for coercion in the
2844 autogenerated accessors
2846 * Moose::Meta::Class
2847 - adding support for coercion in the
2848 instance construction
2850 * Moose::Meta::TypeConstraint
2851 * Moose::Meta::TypeCoercion
2852 - type constraints and coercions are now
2853 full fledges meta-objects
2855 0.01 Wed. March 15, 2006
2856 - Moooooooooooooooooose!!!