1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 - The get_attribute_map method is now deprecated. (Dave Rolsky)
8 * Moose::Meta::Method::Delegation
9 - Preserve variable aliasing in @_ for delegated methods, so that
10 altering @_ affects the passed value. (doy)
12 * Moose::Util::TypeConstraints
13 - Allow array refs for non-anonymous form of enum and duck_type, not
14 just anonymous. The non-arrayref forms may be removed in the
17 0.92 Tue, Sep 22, 2009
18 * Moose::Util::TypeConstraints
19 - added the match_on_type operator (Stevan)
20 - added tests and docs for this (Stevan)
23 - Metaclass compat fixing should already happen recursively, there's no
24 need to explicitly walk up the inheritance tree. (doy)
26 * Moose::Meta::Attribute
27 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
29 0.91 Thu, Sep 17, 2009
31 - Don't import any functions, in order to avoid polluting our namespace
32 with things that can look like methods (blessed, try, etc)
35 * Moose::Meta::Method::Constructor
36 - The generated code needs to called Scalar::Util::blessed by its
37 fully-qualified name or else Perl can interpret the call to blessed as
38 an indirect method call. This broke Search::GIN, which in turn broke
39 KiokuDB. (nothingmuch)
41 0.90 Tue, Sep 15, 2009
42 * Moose::Meta::Attribute::Native::Trait::Counter
43 * Moose::Meta::Attribute::Native::Trait::String
44 - For these two traits, an attribute which did not explicitly provide
45 methods to handles magically ended up delegating *all* the helper
46 methods. This has been removed. You must be explicit in your handles
47 declaration for all Native Traits. (Dave Rolsky)
50 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
51 sure to rethrow its error message. However, we also localize $@ before
52 this so that if all the DEMOLISH methods success, the value of $@ will
53 be preserved. (nothingmuch and Dave Rolsky)
54 - We now also localize $? during object destruction. (nothingmuch and
56 - The handling of DEMOLISH methods was broken for immutablized classes,
57 which were not receiving the value of
58 Devel::GlobalDestruction::in_global_destruction.
59 - These two fixes address some of RT #48271, reported by Zefram.
60 - This is all now documented in Moose::Manual::Construction.
61 - Calling $object->new() is now deprecated. A warning will be
65 - Added more hooks to customize how roles are applied. The role
66 summation class, used to create composite roles, can now be changed
67 and/or have meta-roles applied to it. (rafl)
69 * Moose::Meta::Method::Delegation
70 - fixed delegated methods to make sure that any modifiers attached to
71 the accessor being delegated on will be called (Stevan)
72 - added tests for this (Stevan)
75 - Moose no longer warns when a class that is being made immutable has
76 mutable ancestors. While in theory this is a good thing to warn about,
77 we found so many exceptions to this that doing this properly became
80 0.89_02 Thu, Sep 10, 2009
81 * Moose::Meta::Attribute::Native
82 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
84 * Moose::Meta::Attribute::Native::Trait::Array
85 - Added a number of functions from List::Util and List::MoreUtils,
86 including reduce, shuffle, uniq, and natatime. (doy)
89 - This module will now generate an init_meta method for your exporting
90 class if you pass it options for
91 Moose::Util::MetaRole::apply_metaclass_roles or
92 apply_base_class_roles. This eliminates a lot of repetitive
93 boilerplate for typical MooseX modules. (doy).
94 - Documented the with_meta feature, which is a replacement for
95 with_caller. This feature was added by josh a while ago.
96 - The with_caller feature is now deprecated, but will not issue a
97 warning yet. (Dave Rolsky)
98 - If you try to wrap/export a subroutine which doesn't actually exist,
99 Moose::Exporter will warn you about this. (doy)
101 * Moose::Meta::Role::Application::ToRole
102 - When a role aliased a method from another role, it was only getting
103 the new (aliased) name, not the original name. This differed from what
104 happens when a class aliases a role's methods. If you _only_ want the
105 aliased name, make sure to also exclue the original name. (Dave
108 0.89_01 Wed Sep 2, 2009
109 * Moose::Meta::Attribute
110 - Added the currying syntax for delegation from AttributeHelpers to the
111 existing delegation API. (hdp)
113 * Moose::Meta::Attribute::Native
114 - We have merged the functionality of MooseX::AttributeHelpers into the
115 Moose core with some API tweaks. You can continue to use
116 MooseX::AttributeHelpers, but it will not be maintained except
117 (perhaps) for critical bug fixes in the future. See
118 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
121 * Moose::Error::Croak
122 * Moose::Error::Confess
123 - Clarify documentation on how to use different error-throwing
124 modules. (Curtis Jewell)
127 - Correct POD for builder to point to Recipe8, not 9. (gphat)
130 - When a nonexistent sub name is passed to as_is, with_caller, or
131 with_meta, throw a warning and skip the exporting, rather than
132 installing a broken sub. (doy)
135 - Moose now warns if you call C<make_immutable> for a class with mutable
138 0.89 Thu Aug 13, 2009
139 * Moose::Manual::Attributes
140 - Clarify "is", include discussion of "bare". (Sartak)
142 * Moose::Meta::Role::Method::Conflicting
143 * Moose::Meta::Role::Application::ToClass
144 - For the first set of roles involved in a conflict, report all
145 unresolved method conflicts, not just the first method. Fixes #47210
146 reported by Ovid. (Sartak)
148 * Moose::Meta::TypeConstraint
149 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
152 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
154 - Allow specifying role options (alias, excludes, MXRP stuff) in the
155 arrayref passed to "use Moose -traits" (doy)
158 - Add functions meta_class_alias and meta_attribute_alias for creating
159 aliases for class and attribute metaclasses and metatraits. (doy)
161 * Moose::Meta::Attribute
162 * Moose::Meta::Method::Accessor
163 - A trigger now receives the old value as a second argument, if the
164 attribute had one. (Dave Rolsky)
166 * Moose::Meta::Method::Constructor
167 - Fix a bug with $obj->new when $obj has stringify overloading.
168 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
169 - However, we will probably deprecate $obj->new, so please don't start
170 using it for new code!
172 * Moose::Meta::Role::Application
173 * Moose::Meta::Role::Application::RoleSummation
174 - Rename alias and excludes to -alias and -excludes (but keep the old
175 names for now, for backcompat) (doy)
177 0.88 Fri Jul 24, 2009
178 * Moose::Manual::Contributing
179 - Re-write the Moose::Manual::Contributing document to reflect
180 the new layout and methods of work for the Git repository. All
181 work now should be done in topic branches and reviewed by a
182 core committer before being applied to master. All releases
183 are done by a cabal member and merged from master to
184 stable. This plan was devised by Yuval, blame him. (perigrin)
187 - Create metaclass attributes for the different role application
190 * Moose::Util::MetaRole
191 - Allow applying roles to a meta role's role application
194 * Moose::Meta::Attribute
195 - Add weak_ref to allowed options for "has '+foo'" (mst)
197 * Moose::Meta::Method::Accessor
198 - No longer uses inline_slot_access in accessors, to support
199 non-lvalue-based meta instances. (sorear)
202 * Moose::Meta::Method::Delegation
203 - Once again allow class names as well as objects for
204 delegation. This was changed in 0.86.
207 * Moose::Meta::Class::Immutable::Trait
208 - Fixes to work with the latest Class::MOP.
210 * Moose::Meta::Method::Delegation
211 - Delegation now dies with a more useful error message if the
212 attribute's accessor returns something defined but
215 0.85 Fri, Jun 26, 2009
216 * Moose::Meta::Attribute
217 - The warning for 'no associated methods' is now split out into
218 the _check_associated_methods method, so that extensions can
219 safely call 'after install_accessors => ...'. This fixes a
220 warning from MooseX::AttributeHelpers. (hdp)
222 0.84 Fri, Jun 26, 2009
224 - has now sets definition_context for attributes defined in
227 * Moose::Meta::Attribute
228 - When adding an attribute to a metaclass, if the attribute has
229 no associated methods, it will give a deprecation
231 - Methods generated by delegation were not being added to
232 associated_methods. (hdp)
233 - Attribute accessors (reader, writer, accessor, predicate,
234 clearer) now warn if they overwrite an existing method. (doy)
235 - Attribute constructors now warn very noisily about unknown (or
236 misspelled) arguments
238 * Moose::Util::TypeConstraints
239 - Deprecated the totally useless Role type name, which just
240 checked if $object->can('does'). Note that this is _not_ the
241 same as a type created by calling role_type('RoleName').
243 * Moose::Util::TypeConstraints
244 * Moose::Meta::TypeConstraint::DuckType
245 - Reify duck type from a regular subtype into an actual class
247 - Document this because Sartak did all my work for me
250 * Moose::Meta::Attribute
251 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
252 it is just a list of methods (Sartak)
255 - The get_*_method_modifiers methods would die if the role had
256 no modifiers of the given type (Robert Buels).
258 0.83 Tue, Jun 23, 2009
260 - Fix _construct_instance not setting the special __MOP__ object
261 key in instances of anon classes. (doy)
263 0.82 Sun, Jun 21, 2009
264 * Moose::Manual::Types
265 - Mention MooseX::Types early to avoid users falling down the
266 string parsing rathole (mst)
268 * Moose::Manual::MooseX
269 - Add warnings about class-level extensions and mention considering
270 using plain objects instead
272 0.81 Sun, Jun 7, 2009
273 * Bumped our Class::MOP prereq to the latest version (0.85), since
276 0.80 Sat, Jun 6, 2009
278 - Add FAQ about the coercion change from 0.76 because it came up
279 three times today (perigrin)
280 - Win doy $10 dollars because Sartak didn't think anybody
281 would document this fast enough (perigrin)
283 * Moose::Meta::Method::Destructor
284 - Inline a DESTROY method even if there are no DEMOLISH methods
285 to prevent unnecessary introspection in
286 Moose::Object::DEMOLISHALL
289 - A role's required methods are now represented by
290 Moose::Meta::Role::Method::Required objects. Conflicts are now
291 represented by Moose::Meta::Role::Method::Conflicting
292 objects. The benefit for end-users in that unresolved
293 conflicts generate different, more instructive, errors,
294 resolving Ovid's #44895. (Sartak)
297 - Improve the error message of "extends" as suggested by Adam
298 Kennedy and confound (Sartak)
299 - Link to Moose::Manual::Roles from Moose::Role as we now have
300 excellent documentation (Adam Kennedy)
303 - Update test suite for subname change in Class::MOP
305 - Add TODO test for infinite recursion in Moose::Meta::Class
308 0.79 Wed, May 13, 2009
310 - More fixes for Win32 problems. Reported by Robert Krimen.
313 - The DEMOLISHALL method could still blow up in some cases
314 during global destruction. This method has been made more
315 resilient in the face of global destruction's random garbage
319 - If you "also" a module that isn't loaded, the error message
320 now acknowledges that (Sartak)
323 - When your ->meta method does not return a Moose::Meta::Class,
324 the error message gave the wrong output (Sartak)
326 0.78 Tue, May 12, 2009
327 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
328 - Merged these documents into what is now Moose::Manual::FAQ
331 - Moved to Moose::Manual::Unsweetened
333 * Moose::Cookbook::Basics::Recipes 9-12
334 - Renamed to be 8-11, since recipe 8 did not exist
337 - Make Moose::Exporter import strict and warnings into packages
341 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
342 methods during global destruction (doy)
345 * Moose::Meta::Role::Application::ToClass
346 - Track the Role::Application objects created during class-role
350 - Fix metaclass incompatibility errors when extending a vanilla perl
351 class which isa Moose class with a metaclass role applied (t0m)
354 - Add a role-combination hook, _role_for_combination, for the
355 benefit of MooseX::Role::Parameterized (Sartak)
358 - Some tests were failing on Win32 because they explicit checked
359 warning output for newlines. Reported by Nickolay Platonov.
361 0.77 Sat, May 2, 2009
363 - Add explicit use of Devel::GlobalDestruction and Sub::Name
367 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
368 or not we are currently in global destruction (doy)
369 - Add explicit use of Devel::GlobalDestruction and Sub::Name
372 * Moose::Cookbook::FAQ
373 - Reworked much of the existing content to be more useful to
374 modern Moose hackers (Sartak)
377 - Depend on Class::MOP 0.83 instead of 0.82_01.
379 0.76 Mon, April 27, 2009
380 * Moose::Meta::TypeConstraint
381 - Do not run coercions in coerce() if the value already passes the type
384 * Moose::Meta::TypeConstraint::Class
385 - In validation error messages, specifically say that the value is not
386 an instance of the class. This should alleviate some frustrating
387 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
389 * Moose::Meta::Role::Application::ToClass
390 - Revert the class-overrides-role warning in favor of a solution outside
391 of the Moose core (Sartak)
394 - Make Test::Output optional again, since it's only used in a few files
397 0.75_01 Thu, April 23, 2009
398 * Moose::Meta::Role::Application::ToClass
399 - Moose now warns about each class overriding methods from roles it
403 - Warnings tests have standardized on Test::Output which is now an
404 unconditionally dependency (Sartak)
407 - Changes to immutabilization to work with Class::MOP 0.82_01+.
409 0.75 Mon, April 20, 2009
412 - Move validation of not inheriting from roles from Moose::extends to
413 Moose::Meta::Class::superclasses (doy)
416 - add ensure_all_roles() function to encapsulate the common "apply this
417 role unless the object already does it" pattern (hdp)
420 - Users can now select a different metaclass with the "-metaclass"
421 option to import, for classes and roles (Sartak)
424 - Make method_metaclass an attr so that it can accept a metarole
427 0.74 Tue, April 7, 2009
429 * Moose::Meta::Method::Destructor
430 - Include stack traces in the deprecation warnings.
434 - Removed the long-deprecated _apply_all_roles method.
436 * Moose::Meta::TypeConstraint
437 - Removed the long-deprecated union method.
440 0.73_02 Mon, April 6, 2009
441 * More deprecations and renamings
442 - Moose::Meta::Method::Constructor
443 - initialize_body => _initialize_body (this is always called
444 when an object is constructed)
447 - The DEMOLISHALL method could throw an exception during global
448 destruction, meaning that your class's DEMOLISH methods would
449 not be properly called. Reported by t0m.
451 * Moose::Meta::Method::Destructor
452 - Destructor inlining was totally broken by the change to the
453 is_needed method in 0.72_01. Now there is a test for this
454 feature, and it works again.
457 - Bold the word 'not' in the POD for find_meta (t0m)
459 0.73_01 Sun, April 5, 2009
461 - Call user_class->meta in fewer places, with the eventual goal
462 of allowing the user to rename or exclude ->meta
463 altogether. Instead uses Class::MOP::class_of. (Sartak)
465 * Moose::Meta::Method::Accessor
466 - If an attribute had a lazy default, and that value did not
467 pass the attribute's type constraint, it did not get the
468 message from the type constraint, instead using a generic
469 message. Test provided by perigrin.
471 * Moose::Util::TypeConstraints
472 - Add duck_type keyword. It's sugar over making sure an object
473 can() a list of methods. This is easier than jrockway's
474 suggestion to fork all of CPAN. (perigrin)
475 - add tests and documentation (perigrin)
478 - Document the fact that init_meta() returns the target class's
479 metaclass object. (hdp)
481 * Moose::Cookbook::Extending::Recipe1
482 * Moose::Cookbook::Extending::Recipe2
483 * Moose::Cookbook::Extending::Recipe3
484 * Moose::Cookbook::Extending::Recipe4
485 - Make init_meta() examples explicitly return the metaclass and
486 point out this fact. (hdp)
488 * Moose::Cookbook::Basics::Recipe12
489 - A new recipe, creating a custom meta-method class.
491 * Moose::Cookbook::Meta::Recipe6
492 - A new recipe, creating a custom meta-method class.
495 * Moose::Meta::Method::Constructor
496 - Attribute triggers no longer receive the meta-attribute object
497 as an argument in any circumstance. Previously, triggers
498 called during instance construction were passed the
499 meta-attribute, but triggers called by normal accessors were
500 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
502 * Moose::Manual::Attributes
503 - Remove references to triggers receving the meta-attribute object as an
506 * Moose::Cookbook::FAQ
507 - Remove recommendation for deprecated Moose::Policy and
508 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
511 * Many methods have been renamed with a leading underscore, and a
512 few have been deprecated entirely. The methods with a leading
513 underscore are consider "internals only". People writing
514 subclasses or extensions to Moose should feel free to override
515 them, but they are not for "public" use.
518 - check_metaclass_compatibility => _check_metaclass_compatibility
520 - Moose::Meta::Method::Accessor
521 - initialize_body => _initialize_body (this is always called
522 when an object is constructed)
523 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
525 - Moose::Meta::Method::Constructor
526 - initialize_body => _initialize_body (this is always called
527 when an object is constructed)
528 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
529 - attributes => _attributes (now inherited from parent)
530 - meta_instance => _meta_instance (now inherited from parent)
533 - alias_method is deprecated. Use add_method
535 0.73 Fri, March 29, 2009
536 * No changes from 0.72_01.
538 0.72_01 Thu, March 26, 2009
540 - Almost every module has complete API documentation. A few
541 methods (and even whole classes) have been intentionally
542 excluded pending some rethinking of their APIs.
544 * Moose::Util::TypeConstraints
545 - Calling subtype with a name as the only argument is now an
546 exception. If you want an anonymous subtype do:
548 my $subtype = subtype as 'Foo';
550 * Moose::Cookbook::Meta::Recipe7
551 - A new recipe, creating a custom meta-instance class.
553 * Moose::Cookbook::Basics::Recipe5
554 - Fix various typos and mistakes. Includes a patch from Radu
557 * Moose::Cookbook::Basics::Recipe9
558 - Link to this recipe from Moose.pm's builder blurb
561 - When wrapping a function with a prototype, Moose::Exporter now
562 makes sure the wrapped function still has the same
563 prototype. (Daisuke Maki)
565 * Moose::Meta::Attribute
566 - Allow a subclass to set lazy_build for an inherited
570 - Explicitly depend on Data::OptList. We already had this dependency
571 via Sub::Exporter, but since we're using it directly we're
572 better off with it listed. (Sartak)
574 * Moose::Meta::Method::Constructor
575 - Make it easier to subclass the inlining behaviour. (Ash
578 * Moose::Manual::Delta
579 - Details significant changes in the history of Moose, along
580 with recommended workarounds.
582 * Moose::Manual::Contributing
583 - Contributor's guide to Moose.
585 * Moose::Meta::Method::Constructor
586 - The long-deprecated intialize_body method has been removed
587 (yes, spelled like that).
589 * Moose::Meta::Method::Destructor
590 - This is_needed method is now always a class method.
593 - Changes to the internals of how make_immutable works to match
594 changes in latest Class::MOP.
596 0.72 Mon, February 23, 2009
598 * Moose::Meta::Method::Constructor
599 - A mutable class accepted Foo->new(undef) without complaint,
600 while an immutable class would blow up with an unhelpful
601 error. Now, in both cases we throw a helpful error
602 instead. Reported by doy.
604 0.71_01 Sun, February 22, 2009
606 - Hopefully fixed some POD errors in a few recipes that caused
607 them to display weird on search.cpan.org.
609 * Moose::Util::TypeConstraints
610 - Calling type or subtype without the sugar helpers (as, where,
611 message) is now deprecated.
612 - The subtype function tried hard to guess what you meant, but
613 often got it wrong. For example:
615 my $subtype = subtype as 'ArrayRef[Object]';
617 This caused an error in the past, but now works as you'd
621 - Make sure Moose.pm is loaded before calling
622 Moose->throw_error. This wasn't normally an issue, but could
623 bite you in weird cases.
625 0.71 Thu, February 19, 2009
626 * Moose::Cookbook::Basics::Recipe11
627 - A new recipe which demonstrates the use of BUILDARGS and
630 * Moose::Cookbook::Roles::Recipe3
631 - A new recipe, applying a role to an object instance. (Dave
635 - Allow overriding specific keywords from "also" packages. (doy)
638 - Replace hardcoded cookbook tests with Test::Inline to ensure
639 the tests match the actual code in the recipes. (Dave Rolsky)
642 - Working on the above turned up a number of little bugs in the
643 recipe code. (Dave Rolsky)
645 * Moose::Util::TypeConstraints::Optimized
646 - Just use Class::MOP for the optimized ClassName check. (Dave
649 0.70 Sat, February 14, 2009
650 * Moose::Util::TypeConstraints
651 - Added the RoleName type (stevan)
652 - added tests for this (stevan)
654 * Moose::Cookbook::Basics::Recipe3
655 - Updated the before qw[left right] sub to be a little more
656 defensive about what it accepts (stevan)
657 - added more tests to t/000_recipies/basics/003_binary_tree.t
661 - We now always call DEMOLISHALL, even if a class does not
662 define DEMOLISH. This makes sure that method modifiers on
663 DEMOLISHALL work as expected. (doy)
664 - added tests for this (EvanCarroll)
666 * Moose::Util::MetaRole
667 - Accept roles for the wrapped_method_metaclass (rafl)
668 - added tests for this (rafl)
670 * Moose::Meta::Attribute
671 - We no longer pass the meta-attribute object as a final
672 argument to triggers. This actually changed for inlined code a
673 while back, but the non-inlined version and the docs were
677 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
678 they require 0.11. (Dave Rolsky)
681 - Lots of small changes to the manual, cookbook, and
682 elsewhere. These were based on feedback from various
683 users, too many to list here. (Dave Rolsky)
685 0.69 Thu, February 12, 2009
687 - Make some keyword errors use throw_error instead of croak
688 since Moose::Exporter wraps keywords now (Sartak)
691 - Revised every recipe for style and clarity. Also moved some
692 documentation out of cookbook recipes and into Moose::Manual
693 pages. This work was funded as part of the Moose docs grant
694 from TPF. (Dave Rolsky)
696 * Moose::Meta::Method::Delegation
697 - If the attribute doing the delegation was not populated, the
698 error message did not specify the attribute name
701 0.68 Wed, February 4, 2009
703 - Many spelling, typo, and formatting fixes by daxim.
705 * Moose::Manual::Attributes
706 - The NAME section in the POD used "Attribute" so search.cpan
707 didn't resolve links from other documents properly.
709 * Moose::Meta::Method::Overriden
710 - Now properly spelled as Overridden. Thanks to daxim for
713 0.67 Tue, February 3, 2009
715 - Lots of little typo fixes and a few clarifications. Several
716 pages didn't have proper titles, and so weren't actually
717 visible on search.cpan.org. Thanks to hanekomu for a variety
718 of fixes and formatting improvements.
720 0.66 Tue, February 3, 2009
722 - This is a brand new, extensive manual for Moose. This aims to
723 provide a complete introduction to all of Moose's
724 features. This work was funded as part of the Moose docs grant
725 from TPF. (Dave Rolsky)
727 * Moose::Meta::Attribute
728 - Added a delegation_metaclass method to replace a hard-coded
729 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
731 * Moose::Util::TypeConstraints
732 - If you created a subtype and passed a parent that Moose didn't
733 know about, it simply ignored the parent. Now it automatically
734 creates the parent as a class type. This may not be what you
735 want, but is less broken than before. (Dave Rolsky)
737 * Moose::Util::TypeConstraints
738 - This module tried throw errors by calling Moose->throw_error,
739 but it did not ensure that Moose was loaded first. This could
740 cause very unhelpful errors when it tried to throw an error
741 before Moose was loaded. (Dave Rolsky)
743 * Moose::Util::TypeConstraints
744 - You could declare a name with subtype such as "Foo!Bar" that
745 would be allowed, but if you used it in a parameterized type
746 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
747 vetting on names created via the sugar functions, so that they
748 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
750 0.65 Thu, January 22, 2008
751 * Moose and Moose::Meta::Method::Overridden
752 - If an overridden method called super(), and then the
753 superclass's method (not overridden) _also_ called super(),
754 Moose went into an endless recursion loop. Test provided by
755 Chris Prather. (Dave Rolsky)
757 * Moose::Meta::TypeConstraint
758 - All methods are now documented. (gphat)
760 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
761 - Fixed some bogus failures that occurred because we tried to
762 validate filesystem paths in a very ad-hoc and
763 not-quite-correct way. (Dave Rolsky)
765 * Moose::Util::TypeConstraints
766 - Added maybe_type to exports. See docs for details. (rjbs)
769 - Added Moose::Util::TypeConstraints to the SEE ALSO
773 - Methods created via an attribute can now fulfill a "requires"
774 declaration for a role. (nothingmuch)
776 * Moose::Meta::Method::*
777 - Stack traces from inlined code will now report its line and
778 file as being in your class, as opposed to in Moose
781 0.64 Wed, December 31, 2008
782 * Moose::Meta::Method::Accessor
783 - Always inline predicate and clearer methods (Sartak)
785 * Moose::Meta::Attribute
786 - Support for parameterized traits (Sartak)
787 - verify_against_type_constraint method to avoid duplication
788 and enhance extensibility (Sartak)
791 - Tests (but no support yet) for parameterized traits (Sartak)
794 - Require Class::MOP 0.75+, which has the side effect of making
795 sure we work on Win32. (Dave Rolsky)
797 0.63 Mon, December 8, 2008
799 - Some small grammar tweaks and bug fixes in non-Moose example
802 0.62_02 Fri, December 5, 2008
803 * Moose::Meta::Role::Application::ToClass
804 - When a class does not provide all of a role's required
805 methods, the error thrown now mentions all of the missing
806 methods, as opposed to just the first one found. Requested by
807 Curtis Poe (RT #41119). (Dave Rolsky)
809 * Moose::Meta::Method::Constructor
810 - Moose will no longer inline a constructor for your class
811 unless it inherits its constructor from Moose::Object, and
812 will warn when it doesn't inline. If you want to force
813 inlining anyway, pass "replace_constructor => 1" to
814 make_immutable. Addresses RT #40968, reported by Jon
815 Swartz. (Dave Rolsky)
816 - The quoting of default values could be broken if the default
817 contained a single quote ('). Now we use quotemeta to escape
818 anything potentially dangerous in the defaults. (Dave Rolsky)
820 0.62_01 Wed, December 3, 2008
822 - use the method->execute API for BUILDALL
823 and DEMOLISHALL (Sartak)
825 * Moose::Util::TypeConstraints
826 - We now make all the type constraint meta classes immutable
827 before creating the default types provided by Moose. This
828 should make loading Moose a little faster. (Dave Rolsky)
830 0.62 Wed November 26, 2008
831 * Moose::Meta::Role::Application::ToClass
832 Moose::Meta::Role::Application::ToRole
833 - fixed issues where excluding and aliasing the
834 same methods for a single role did not work
835 right (worked just fine with multiple
837 - added test for this (stevan)
839 * Moose::Meta::Role::Application::RoleSummation
840 - fixed the error message when trying to compose
841 a role with a role it excludes (Sartak)
844 - Catch another case where recursion caused the value
845 of $CALLER to be stamped on (t0m)
846 - added test for this (t0m)
849 - Remove the make_immutable keyword, which has been
850 deprecated since April. It breaks metaclasses that
851 use Moose without no Moose (Sartak)
853 * Moose::Meta::Attribute
854 - Removing an attribute from a class now also removes delegation
855 (handles) methods installed for that attribute (t0m)
856 - added test for this (t0m)
858 * Moose::Meta::Method::Constructor
859 - An attribute with a default that looked like a number (but was
860 really a string) would accidentally be treated as a number
861 when the constructor was made immutable (perigrin)
862 - added test for this (perigrin)
865 - create method for constructing a role
867 - added test for this (Sartak)
868 - anonymous roles! (Sartak)
869 - added test for this (Sartak)
872 - more consistent error messages (Sartak)
874 * Moose::Cookbook::Roles::Recipe1
875 - attempt to explain why a role that just requires
876 methods is useful (Sartak)
878 0.61 Fri November 7, 2008
879 * Moose::Meta::Attribute
880 - When passing a role to handles, it will be loaded if necessary
884 - Method objects returned by get_method (and other methods)
885 Could end up being returned without an associated_metaclass
886 attribute. Removing get_method_map, which is provided by
887 Class::MOP::Class, fixed this. The Moose version did nothing
888 different from its parent except introduce a bug. (Dave Rolsky)
889 - added tests for this (jdv79)
892 - Added a $VERSION to all .pm files which didn't have one. Fixes
893 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
895 * Moose::Cookbook::Basics::Recipe4
896 * Moose::Cookbook::Basics::Recipe6
897 - These files had spaces on the first line of the SYNOPSIS, as
898 opposed to a totally empty line. According to RT #40432, this
899 confuses POD parsers. (Dave Rolsky)
901 0.60 Fri October 24, 2008
903 - Passing "-traits" when loading Moose caused the Moose.pm
904 exports to be broken. Reported by t0m. (Dave Rolsky)
905 - Tests for this bug. (t0m)
908 - Change resolve_metaclass alias to use the new
909 load_first_existing_class function. This makes it a lot
910 simpler, and also around 5 times faster. (t0m)
911 - Add caching to resolve_metaclass_alias, which gives an order
912 of magnitude speedup to things which repeatedly call the
913 Moose::Meta::Attribute->does method, notably MooseX::Storage
916 * Moose::Util::TypeConstraint
917 - Put back the changes for parameterized constraints that
918 shouldn't have been removed in 0.59. We still cannot parse
919 them, but MooseX modules can create them in some other
920 way. See the 0.58 changes for more details. (jnapiorkowski)
921 - Changed the way subtypes are created so that the job is
922 delegated to a type constraint parent. This clears up some
923 hardcoded checking and should allow correct subtypes of
924 Moose::Meta::Type::Constraint. Don't rely on this new API too
925 much (create_child_type) because it may go away in the
926 future. (jnapiorkowski)
928 * Moose::Meta::TypeConstraint::Union
929 - Type constraint names are sorted as strings, not numbers.
932 * Moose::Meta::TypeConstraint::Parameterizable
933 - New parameterize method. This can be used as a factory method
934 to make a new type constraint with a given parameterized
935 type. (jnapiorkowski)
936 - added tests (jnapiorkowski)
938 0.59 Tue October 14, 2008
940 - Add abridged documentation for builder/default/initializer/
941 predicate, and link to more details sections in
942 Class::MOP::Attribute. (t0m)
944 * Moose::Util::TypeConstraints
945 - removed prototypes from all but the &-based stuff (mst)
947 * Moose::Util::TypeConstraints
948 - Creating a anonymous subtype with both a constraint and a
949 message failed with a very unhelpful error, but should just
950 work. Reported by t0m. (Dave Rolsky)
953 - Some tests that used Test::Warn if it was available failed
954 with older versions of Test::Warn. Reported by Fayland. (Dave
956 - Test firing behavior of triggers in relation to builder/default/
958 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
959 kinds of supported type. (t0m)
962 - In create(), do not pass "roles" option to the superclass
963 - added related test that creates an anon metaclass with
966 * Moose::Meta::TypeConstraint::Class
967 * Moose::Meta::TypeConstraint::Role
968 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
969 other types (as per change in 0.55_02). (t0m)
971 * Moose::Meta::TypeConstraint::Registry
972 - Fix warning when dealing with unknown type names (t0m)
974 * Moose::Util::TypeConstraints
975 - Reverted changes from 0.58 related to handle parameterized
976 types. This caused random failures on BSD and Win32 systems,
977 apparently related to the regex engine. This means that Moose
978 can no longer parse structured type constraints like
979 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
980 supported in a slightly different way via MooseX::Types some
981 time in the future. (Dave Rolsky)
983 0.58 Sat September 20, 2008
984 !! This release has an incompatible change regarding !!
985 !! how roles add methods to a class !!
987 * Roles and role application
988 ! Roles now add methods by calling add_method, not
989 alias_method. They make sure to always provide a method
990 object, which will be cloned internally. This means that it is
991 now possible to track the source of a method provided by a
992 role, and even follow its history through intermediate roles.
994 This means that methods added by a role now show up when
995 looking at a class's method list/map. (Dave Rolsky)
998 - From this release on, we'll try to maintain a list of
999 conflicting modules, and warn you if you have one
1000 installed. For example, this release conflicts with ...
1001 - MooseX::Singleton <= 0.11
1002 - MooseX::Params::Validate <= 0.05
1005 In general, we try to not break backwards compatibility for
1006 most Moose users, but MooseX modules and other code which
1007 extends Moose's metaclasses is often affected by very small
1008 changes in the Moose internals.
1010 * Moose::Meta::Method::Delegation
1011 * Moose::Meta::Attribute
1012 - Delegation methods now have their own method class. (Dave
1015 * Moose::Meta::TypeConstraint::Parameterizable
1016 - Added a new method 'parameterize' which is basically a factory
1017 for the containing constraint. This makes it easier to create
1018 new types of parameterized constraints. (jnapiorkowski)
1020 * Moose::Meta::TypeConstraint::Union
1021 - Changed the way Union types canonicalize their names to follow
1022 the normalized TC naming rules, which means we strip all
1023 whitespace. (jnapiorkowski)
1025 * Moose::Util::TypeConstraints
1026 - Parameter and Union args are now sorted, this makes Int|Str
1027 the same constraint as Str|Int. (jnapiorkowski)
1028 - Changes to the way Union types are parsed to more correctly
1029 stringify their names. (jnapiorkowski)
1030 - When creating a parameterized type, we now use the new
1031 parameterize method. (jnapiorkowski)
1032 - Incoming type constraint strings are now normalized to remove
1033 all whitespace differences. (jnapiorkowski)
1034 - Changed the way we parse type constraint strings so that we now
1035 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1036 constraints. This lays the foundation for more flexible type
1037 constraint implementations.
1039 * Tests and docs for all the above. (jnapiorkowski)
1043 - Moose::Exporter will no longer remove a subroutine that the
1044 exporting package re-exports. Moose re-exports the
1045 Carp::confess function, among others. The reasoning is that we
1046 cannot know whether you have also explicitly imported those
1047 functions for your own use, so we err on the safe side and
1048 always keep them. (Dave Rolsky)
1049 - added tests for this (rafl)
1051 * Moose::Meta::Class
1052 - Changes to how we fix metaclass compatibility that are much
1053 too complicated to go into. The summary is that Moose is much
1054 less likely to complain about metaclass incompatibility
1055 now. In particular, if two metaclasses differ because
1056 Moose::Util::MetaRole was used on the two corresponding
1057 classes, then the difference in roles is reconciled for the
1058 subclass's metaclass. (Dave Rolsky)
1059 - Squashed an warning in _process_attribute (thepler)
1062 - throw exceptions (sooner) for invalid attribute names (thepler)
1063 - added tests for this (thepler)
1065 * Moose::Util::MetaRole
1066 - If you explicitly set a constructor or destructor class for a
1067 metaclass object, and then applied roles to the metaclass,
1068 that explicitly set class would be lost and replaced with the
1071 * Moose::Meta::Class
1072 * Moose::Meta::Attribute
1073 * Moose::Meta::Method
1076 * Moose::Error::Default
1077 * Moose::Error::Croak
1078 * Moose::Error::Confess
1079 - All instances of confess() changed to use overridable
1080 C<throw_error> method. This method ultimately calls a class
1081 constructor, and you can change the class being called. In
1082 addition, errors now pass more information than just a string.
1083 The default C<error_class> behaves like C<Carp::confess>, so
1084 the behavior is not visibly different for end users.
1086 0.57 Wed September 3, 2008
1088 - A new bit of doc intended to introduce folks familiar with
1089 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1091 * Moose::Unsweetened
1092 - Shows examples of two classes, each done first with and then
1093 without Moose. This makes a nice parallel to
1094 Moose::Intro. (Dave Rolsky)
1096 * Moose::Util::TypeConstraints
1097 - Fixed a bug in find_or_parse_type_constraint so that it
1098 accepts a Moose::Meta::TypeConstraint object as the parent
1099 type, not just a name (jnapiorkowski)
1100 - added tests (jnapiorkowski)
1103 - If Sub::Name was not present, unimporting failed to actually
1104 remove some sugar subs, causing test failures (Dave Rolsky)
1106 0.56 Mon September 1, 2008
1107 For those not following the series of dev releases, there are
1108 several major changes in this release of Moose.
1109 ! Moose::init_meta should now be called as a method. See the
1112 - Major performance improvements by nothingmuch.
1114 - New modules for extension writers, Moose::Exporter and
1115 Moose::Util::MetaRole by Dave Rolsky.
1117 - Lots of doc improvements and additions, especially in the
1120 - Various bug fixes.
1122 * Removed all references to the experimental-but-no-longer-needed
1123 Moose::Meta::Role::Application::ToMetaclassInstance.
1125 * Require Class::MOP 0.65.
1127 0.55_04 Sat August 30, 2008
1128 * Moose::Util::MetaRole
1129 * Moose::Cookbook::Extending::Recipe2
1130 - This simplifies the application of roles to any meta class, as
1131 well as the base object class. Reimplemented metaclass traits
1132 using this module. (Dave Rolsky)
1134 * Moose::Cookbook::Extending::Recipe1
1135 - This a new recipe, an overview of various ways to write Moose
1136 extensions (Dave Rolsky)
1138 * Moose::Cookbook::Extending::Recipe3
1139 * Moose::Cookbook::Extending::Recipe4
1140 - These used to be Extending::Recipe1 and Extending::Recipe2,
1143 0.55_03 Fri August 29, 2008
1144 * No changes from 0.55_02 except increasing the Class::MOP
1145 dependency to 0.64_07.
1147 0.55_02 Fri August 29, 2008
1148 * Makefile.PL and Moose.pm
1149 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1151 * Moose::Util::TypeConstraints
1152 - Fix warnings from find_type_constraint if the type is not
1155 * Moose::Meta::TypeConstraint
1156 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1157 return false if the type you specify cannot be found in the
1158 type registry, rather than throwing an unhelpful and
1159 coincidental exception. (t0m).
1160 - added docs & test for this (t0m)
1162 * Moose::Meta::TypeConstraint::Registry
1163 - add_type_constraint now throws an exception if a parameter is
1165 - added docs & test for this (t0m)
1167 * Moose::Cookbook::FAQ
1168 - Added a faq entry on the difference between "role" and "trait"
1172 - Fixed a bug that caused role composition to not see a required
1173 method when that method was provided by another role being
1174 composed at the same time. (Dave Rolsky)
1175 - test and bug finding (tokuhirom)
1177 0.55_01 Wed August 20, 2008
1179 !! Calling Moose::init_meta as a function is now !!
1180 !! deprecated. Please see the Moose.pm docs for details. !!
1182 * Moose::Meta::Method::Constructor
1183 - Fix inlined constructor so that values produced by default
1184 or builder methods are coerced as required. (t0m)
1185 - added test for this (t0m)
1187 * Moose::Meta::Attribute
1188 - A lazy attribute with a default or builder did not attempt to
1189 coerce the default value. The immutable code _did_
1191 - added test for this (t0m)
1194 - This is a new helper module for writing "Moose-alike"
1195 modules. This should make the lives of MooseX module authors
1196 much easier. (Dave Rolsky)
1199 * Moose::Cookbook::Meta::Recipe5
1200 - Implemented metaclass traits (and wrote a recipe for it):
1202 use Moose -traits => 'Foo'
1204 This should make writing small Moose extensions a little
1205 easier (Dave Rolsky)
1207 * Moose::Cookbook::Basics::Recipe1
1208 - Removed any examples of direct hashref access, and applied an
1209 editorial axe to reduce verbosity. (Dave Rolsky)
1211 * Moose::Cookbook::Basics::Recipe1
1212 - Also applied an editorial axe here. (Dave Rolsky)
1215 * Moose::Cookbook::Extending::Recipe1
1216 * Moose::Cookbook::Extending::Recipe2
1217 - Rewrote extending and embedding moose documentation and
1218 recipes to use Moose::Exporter (Dave Rolsky)
1222 - These two modules now warn when you load them from the main
1223 package "main" package, because we will not export sugar to
1224 main. Previously it just did nothing. (Dave Rolsky)
1227 - Now provide an init_meta method just like Moose.pm, and you
1228 can call this to provide an alternate role metaclass. (Dave
1229 Rolsky and nothingmuch)
1230 - get_method_map now respects the package cache flag (nothingmuch)
1233 - Two new methods - add_method and wrap_method_body
1237 - Optimizations including allowing constructors to accept hash
1238 refs, making many more classes immutable, and making
1239 constructors immutable. (nothingmuch)
1241 0.55 Sun August 3, 2008
1242 * Moose::Meta::Attribute
1243 - breaking down the way 'handles' methods are
1244 created so that the process can be more easily
1245 overridden by subclasses (stevan)
1247 * Moose::Meta::TypeConstraint
1248 - fixing what is passed into a ->message with
1249 the type constraints (RT #37569)
1250 - added tests for this (Charles Alderman)
1252 * Moose::Util::TypeConstraints
1253 - fix coerce to accept anon types like subtype can (mst)
1256 - reorganized the recipes into sections - Basics, Roles, Meta,
1257 Extending - and wrote abstracts for each section (Dave Rolsky)
1259 * Moose::Cookbook::Basics::Recipe10
1260 - A new recipe that demonstrates operator overloading
1261 in combination with Moose. (bluefeet)
1263 * Moose::Cookbook::Meta::Recipe1
1264 - an introduction to what meta is and why you'd want to make
1265 your own metaclass extensions (Dave Rolsky)
1267 * Moose::Cookbook::Meta::Recipe4
1268 - a very simple metaclass example (Dave Rolsky)
1270 * Moose::Cookbook::Extending::Recipe1
1271 - how to write a Moose-alike module to use your own object base
1274 * Moose::Cookbook::Extending::Recipe2
1275 - how to write modules with an API just like C<Moose.pm> (Dave
1279 - Tons of fixes, both syntactical and grammatical (Dave
1280 Rolsky, Paul Fenwick)
1282 0.54 Thurs. July 3, 2008
1283 ... this is not my day today ...
1285 * Moose::Meta::Attribute
1286 - fixed legal_options_for_inheritance such that
1287 clone_and_inherit options still works for
1288 Class::MOP::Attribute objects and therefore
1289 does not break MooseX::AttributeHelpers
1292 0.53 Thurs. July 3, 2008
1293 * Whoops, I guess I should run 'make manifest' before
1294 actually releasing the module. No actual changes
1295 in this release, except the fact that it includes
1296 the changes that I didn't include in the last
1299 0.52 Thurs. July 3, 2008
1301 - added "FEATURE REQUESTS" section to the Moose docs
1302 to properly direct people (stevan) (RT #34333)
1303 - making 'extends' croak if it is passed a Role since
1304 this is not ever something you want to do
1305 (fixed by stevan, found by obra)
1306 - added tests for this (stevan)
1309 - adding support for DOES (as in UNIVERSAL::DOES)
1311 - added test for this
1313 * Moose::Meta::Attribute
1314 - added legal_options_for_inheritance (wreis)
1315 - added tests for this (wreis)
1317 * Moose::Cookbook::Snacks::*
1318 - removed some of the unfinished snacks that should
1319 not have been released yet. Added some more examples
1320 to the 'Keywords' snack. (stevan)
1322 * Moose::Cookbook::Style
1323 - added general Moose "style guide" of sorts to the
1324 cookbook (nothingmuch) (RT #34335)
1327 - added more BUILDARGS tests (stevan)
1329 0.51 Thurs. Jun 26, 2008
1331 - add unimport so "no Moose::Role" actually does
1334 * Moose::Meta::Role::Application::ToRole
1335 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1336 order to provide its own implementation, that method still got
1337 added to the list of required methods for consumers of
1338 RoleB. Now an aliased method is only added to the list of
1339 required methods if the role doing the aliasing does not
1340 provide its own implementation. See Recipe 11 for an example
1341 of all this. (Dave Rolsky)
1342 - added tests for this
1344 * Moose::Meta::Method::Constructor
1345 - when a single argument that wasn't a hashref was provided to
1346 an immutabilized constructor, the error message was very
1347 unhelpful, as opposed to the non-immutable error. Reported by
1349 - added test for this (Dave Rolsky)
1351 * Moose::Meta::Attribute
1352 - added support for meta_attr->does("ShortAlias") (sartak)
1353 - added tests for this (sartak)
1354 - moved the bulk of the `handles` handling to the new
1355 install_delegation method (Stevan)
1358 - Added BUILDARGS, a new step in new()
1360 * Moose::Meta::Role::Application::RoleSummation
1361 - fix typos no one ever sees (sartak)
1363 * Moose::Util::TypeConstraints
1364 * Moose::Meta::TypeConstraint
1365 * Moose::Meta::TypeCoercion
1366 - Attempt to work around the ??{ } vs. threads issue
1368 - Some null_constraint optimizations
1370 0.50 Thurs. Jun 11, 2008
1371 - Fixed a version number issue by bumping all modules
1374 0.49 Thurs. Jun 11, 2008
1375 !! This version now approx. 20-25% !!
1376 !! faster with new Class::MOP 0.59 !!
1378 * Moose::Meta::Attribute
1379 - fixed how the is => (ro|rw) works with
1380 custom defined reader, writer and accessor
1382 - added docs for this (TODO).
1383 - added tests for this (Thanks to Penfold)
1384 - added the custom attribute alias for regular
1385 Moose attributes which is "Moose"
1386 - fix builder and default both being used
1391 Moose::Meta::Attribute
1393 Moose::Meta::Role::Composite
1394 Moose::Util::TypeConstraints
1395 - switched usage of reftype to ref because
1399 - changing add_package_symbol to use the new
1403 - fixed how DEMOLISHALL is called so that it
1404 can be overrided in subclasses (thanks to Sartak)
1405 - added test for this (thanks to Sartak)
1407 * Moose::Util::TypeConstraints
1408 - move the ClassName type check code to
1409 Class::MOP::is_class_loaded (thanks to Sartak)
1411 * Moose::Cookbook::Recipe11
1412 - add tests for this (thanks to tokuhirom)
1414 0.48 Thurs. May 29, 2008
1415 (early morning release engineering)--
1417 - fixing the version in Moose::Meta::Method::Destructor
1418 which was causing the indexer to choke
1420 0.47 Thurs. May 29, 2008
1421 (late night release engineering)--
1423 - fixing the version is META.yml, no functional
1424 changes in this release
1426 0.46 Wed. May 28, 2008
1427 !! This version now approx. 20-25% !!
1428 !! faster with new Class::MOP 0.57 !!
1430 * Moose::Meta::Class
1431 - some optimizations of the &initialize method
1432 since it is called so often by &meta
1434 * Moose::Meta::Class
1436 - now use the get_all_package_symbols from the
1437 updated Class::MOP, test suite is now 10 seconds
1440 * Moose::Meta::Method::Destructor
1441 - is_needed can now also be called as a class
1442 method for immutablization to check if the
1443 destructor object even needs to be created
1446 * Moose::Meta::Method::Destructor
1447 Moose::Meta::Method::Constructor
1448 - added more descriptive error message to help
1449 keep people from wasting time tracking an error
1450 that is easily fixed by upgrading.
1452 0.45 Saturday, May 24, 2008
1454 - Because of work in Class::MOP 0.57, all
1455 XS based functionality is now optional
1456 and a Pure Perl version is supplied
1457 - the CLASS_MOP_NO_XS environment variable
1458 can now be used to force non-XS versions
1460 - several of the packages have been tweaked
1461 to take care of this, mostly we added
1462 support for the package_name and name
1463 variables in all the Method metaclasses
1464 - before/around/after method modifiers now
1465 support regexp matching of names
1466 (thanks to Takatoshi Kitano)
1467 - tests added for this
1468 - NOTE: this only works for classes, it
1469 is currently not supported in roles,
1470 but, ... patches welcome
1471 - All usage of Carp::confess have been replaced
1472 by Carp::croak in the "keyword" functions since
1473 the stack trace is usually not helpful
1476 - All usage of Carp::confess have been replaced
1477 by Carp::croak in the "keyword" functions since
1478 the stack trace is usually not helpful
1479 - The 'has' keyword for roles now accepts the
1480 same array ref form that Moose.pm does
1481 (has [qw/foo bar/] => (is => 'rw', ...))
1482 - added test for this
1484 * Moose::Meta::Attribute
1485 - trigger on a ro-attribute is no longer an
1486 error, as it's useful to trigger off of the
1489 * Moose::Meta::Class
1490 - added same 'add_package_symbol' fix as in
1494 - does_role now handles non-Moose classes
1496 - added tests for this
1497 - added the 'add_method_modifier' function
1498 (thanks to Takatoshi Kitano)
1500 * Moose::Util::TypeConstraints
1501 - subtypes of parameterizable types now are
1502 themselves parameterizable types
1504 * Moose::Meta::Method::Constructor
1505 - fixed bug where trigger was not being
1506 called by the inlined immutable
1508 - added test for this (thanks to Caelum)
1510 * Moose::Meta::Role::Application::ToInstance
1511 - now uses the metaclass of the instance
1512 (if possible) to create the anon-class
1513 (thanks Jonathan Rockway)
1515 * Moose::Cookbook::Recipe22
1516 - added the meta-attribute trait recipe
1520 - fixed hash-ordering test bug that was
1521 causing occasional cpantester failures
1522 - renamed the t/000_recipe/*.t tests to be
1523 more descriptive (thanks to Sartak)
1525 0.44 Sat. May 10, 2008
1527 - made make_immutable warning cluck to
1528 show where the error is (thanks mst)
1531 - BUILDALL and DEMOLISHALL now call
1532 ->body when looping through the
1533 methods, to avoid the overloaded
1535 - fixed issue where DEMOLISHALL was
1536 eating the $@ values, and so not
1537 working correctly, it still kind of
1538 eats them, but so does vanilla perl
1539 - added tests for this
1541 * Moose::Cookbook::Recipe7
1542 - added new recipe for immutable
1543 functionality (thanks Dave Rolsky)
1545 * Moose::Cookbook::Recipe9
1546 - added new recipe for builder and
1547 lazy_build (thanks Dave Rolsky)
1549 * Moose::Cookbook::Recipe11
1550 - added new recipe for method aliasing
1551 and exclusion with Roles (thanks Dave Rolsky)
1554 - fixed Win32 test failure (thanks spicyjack)
1556 ~ removed Build.PL and Module::Build compat
1557 since Module::Install has done that.
1559 0.43 Wed. April, 30, 2008
1561 drink more coffee before
1562 doing release engineering
1564 - whoops, forgot to do the smolder tests,
1565 and we broke some of the custom meta-attr
1566 modules. This fixes that.
1568 0.42 Mon. April 28, 2008
1569 - some bad tests slipped by, nothing else
1570 changed in this release (cpantesters++)
1572 - upped the Class::MOP dependency to 0.55
1573 since we have tests which need the C3
1576 0.41 Mon. April 28, 2008
1577 ~~ numerous documentation updates ~~
1579 - Changed all usage of die to Carp::croak for better
1580 error reporting (initial patch by Tod Hagan)
1582 ** IMPORTANT NOTE **
1583 - the make_immutable keyword is now deprecated, don't
1584 use it in any new code and please fix your old code
1585 as well. There will be 2 releases, and then it will
1591 - refactored the way inner and super work to avoid
1592 any method/@ISA cache penalty (nothingmuch)
1594 * Moose::Meta::Class
1595 - fixing &new_object to make sure trigger gets the
1596 coerced value (spotted by Charles Alderman on the
1598 - added test for this
1600 * Moose::Meta::Method::Constructor
1601 - immutable classes which had non-lazy attributes were calling
1602 the default generating sub twice in the constructor. (bug
1603 found by Jesse Luehrs, fixed by Dave Rolsky)
1604 - added tests for this (Dave Rolsky)
1605 - fix typo in initialize_body method (nothingmuch)
1607 * Moose::Meta::Method::Destructor
1608 - fix typo in initialize_body method (nothingmuch)
1610 * Moose::Meta::Method::Overriden
1611 Moose::Meta::Method::Augmented
1612 - moved the logic for these into their own
1613 classes (nothingmuch)
1615 * Moose::Meta::Attribute
1616 - inherited attributes may now be extended without
1617 restriction on the type ('isa', 'does') (Sartak)
1618 - added tests for this (Sartak)
1619 - when an attribute property is malformed (such as lazy without
1620 a default), give the name of the attribute in the error
1622 - added the &applied_traits and &has_applied_traits methods
1623 to allow introspection of traits
1624 - added tests for this
1625 - moved 'trait' and 'metaclass' argument handling to here from
1627 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1628 '+foo' syntax) (nothingmuch)
1629 - added tests for this (t0m)
1632 - localize $@ inside DEMOLISHALL to avoid it
1633 eating $@ (found by Ernesto)
1634 - added test for this (thanks to Ernesto)
1636 * Moose::Util::TypeConstraints
1637 - &find_type_constraint now DWIMs when given an
1638 type constraint object or name (nothingmuch)
1639 - &find_or_create_type_constraint superseded with a number of more
1641 - find_or_create_{isa,does}_type_constraint
1642 - find_or_parse_type_constraint
1644 * Moose::Meta::TypeConstraint
1645 Moose::Meta::TypeConstraint::Class
1646 Moose::Meta::TypeConstraint::Role
1647 Moose::Meta::TypeConstraint::Enum
1648 Moose::Meta::TypeConstraint::Union
1649 Moose::Meta::TypeConstraint::Parameterized
1650 - added the &equals method for comparing two type
1651 constraints (nothingmuch)
1652 - added tests for this (nothingmuch)
1654 * Moose::Meta::TypeConstraint
1655 - add the &parents method, which is just an alias to &parent.
1656 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1658 * Moose::Meta::TypeConstraint::Class
1659 - added the class attribute for introspection purposes
1661 - added tests for this
1663 * Moose::Meta::TypeConstraint::Enum
1664 Moose::Meta::TypeConstraint::Role
1665 - broke these out into their own classes (nothingmuch)
1667 * Moose::Cookbook::Recipe*
1668 - fixed references to test file locations in the POD
1669 and updated up some text for new Moose features
1673 - Added &resolve_metaclass_alias, a helper function for finding an actual
1674 class for a short name (e.g. in the traits list)
1676 0.40 Fri. March 14, 2008
1677 - I hate Pod::Coverage
1679 0.39 Fri. March 14, 2008
1681 - documenting the use of '+name' with attributes
1682 that come from recently composed roles. It makes
1683 sense, people are using it, and so why not just
1684 officially support it.
1685 - fixing the 'extends' keyword so that it will not
1686 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1689 - added the perl -Moose=+Class::Name feature to allow
1690 monkeypatching of classes in one liners
1693 - fixing the 'apply_all_roles' keyword so that it will not
1694 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1696 * Moose::Meta::Class
1697 - added ->create method which now supports roles (thanks to jrockway)
1698 - added tests for this
1699 - added ->create_anon_class which now supports roles and caching of
1700 the results (thanks to jrockway)
1701 - added tests for this
1702 - made ->does_role a little more forgiving when it is
1703 checking a Class::MOP era metaclasses.
1705 * Moose::Meta::Role::Application::ToInstance
1706 - it is now possible to pass extra params to be used when
1707 a role is applied to an the instance (rebless_params)
1708 - added tests for this
1710 * Moose::Util::TypeConstraints
1711 - class_type now accepts an optional second argument for a
1712 custom message. POD anotated accordingly (groditi)
1713 - added tests for this
1714 - it is now possible to make anon-enums by passing 'enum' an
1715 ARRAY ref instead of the $name => @values. Everything else
1717 - added tests for this
1720 - making test for using '+name' on attributes consumed
1721 from a role, it works and makes sense too.
1723 * Moose::Meta::Attribute
1724 - fix handles so that it doesn't return nothing
1725 when the method cannot be found, not sure why
1726 it ever did this originally, this means we now
1727 have slightly better support for AUTOLOADed
1729 - added more delegation tests
1730 - adding ->does method to this so as to better
1731 support traits and their introspection.
1732 - added tests for this
1735 - localizing the Data::Dumper configurations so
1736 that it does not pollute others (RT #33509)
1737 - made ->does a little more forgiving when it is
1738 passed Class::MOP era metaclasses.
1740 0.38 Fri. Feb. 15, 2008
1741 * Moose::Meta::Attribute
1742 - fixed initializer to correctly do
1743 type checking and coercion in the
1745 - added tests for this
1748 - fixed some finicky tests (thanks to konobi)
1750 0.37 Thurs. Feb. 14, 2008
1752 - fixed some details in Moose::init_meta
1753 and its superclass handling (thanks thepler)
1754 - added tests for this (thanks thepler)
1755 - 'has' now dies if you don't pass in name
1757 - added the 'make_immutable' keyword as a shortcut
1760 * Moose::Meta::Class
1761 Moose::Meta::Method::Constructor
1762 Moose::Meta::Attribute
1763 - making (init_arg => undef) work here too
1764 (thanks to nothingmuch)
1766 * Moose::Meta::Attribute
1767 Moose::Meta::Method::Constructor
1768 Moose::Meta::Method::Accessor
1769 - make lazy attributes respect attr initializers (rjbs)
1770 - added tests for this
1772 * Moose::Util::TypeConstraints
1773 Moose::Util::TypeConstraints::OptimizedConstraints
1774 Moose::Meta::TypeConstraints
1775 Moose::Meta::Attribute
1776 Moose::Meta::Method::Constructor
1777 Moose::Meta::Method::Accessor
1778 - making type errors use the
1779 assigned message (thanks to Sartak)
1780 - added tests for this
1782 * Moose::Meta::Method::Destructor
1783 - making sure DESTROY gets inlined properly
1784 with successive DEMOLISH calls (thanks to manito)
1786 * Moose::Meta::Attribute
1787 Moose::Meta::Method::Accessor
1788 - fixed handling of undef with type constraints
1790 - added tests for this
1793 - added &get_all_init_args and &get_all_attribute_values
1794 (thanks to Sartak and nothingmuch)
1796 0.36 Sat. Jan. 26, 2008
1798 Moose::Meta::Attribute
1799 - role type tests now support when roles are
1800 applied to non-Moose classes (found by ash)
1801 - added tests for this (thanks to ash)
1802 - couple extra tests to boost code coverage
1804 * Moose::Meta::Method::Constructor
1805 - improved fix for handling Class::MOP attributes
1806 - added test for this
1808 * Moose::Meta::Class
1809 - handled the add_attribute($attribute_meta_object)
1811 - added test for this
1813 0.35 Tues. Jan. 22, 2008
1814 * Moose::Meta::Method::Constructor
1815 - fix to make sure even Class::MOP attributes
1816 are handled correctly (Thanks to Dave Rolsky)
1817 - added test for this (also Dave Rolsky)
1819 * Moose::Meta::Class
1820 - improved error message on _apply_all_roles,
1821 you should now use Moose::Util::apply_all_roles
1822 and you shouldnt have been using a _ prefixed
1823 method in the first place ;)
1825 0.34 Mon. Jan. 21, 2008
1826 ~~~ more misc. doc. fixes ~~~
1827 ~~ updated copyright dates ~~
1829 Moose is now a postmodern object system :)
1830 - (see the POD for details)
1832 * <<Role System Refactoring>>
1833 - this release contains a major reworking and
1834 cleanup of the role system
1835 - 100% backwards compat.
1836 - Role application now restructured into seperate
1837 classes based on type of applicants
1838 - Role summation (combining of more than one role)
1839 is much cleaner and anon-classes are no longer
1840 used in this process
1841 - new Composite role metaclass
1842 - runtime application of roles to instances
1843 is now more efficient and re-uses generated
1844 classes when applicable
1846 * <<New Role composition features>>
1847 - methods can now be excluded from a given role
1849 - methods can now be aliased to another name (and
1850 still retain the original as well)
1852 * Moose::Util::TypeConstraints::OptimizedConstraints
1853 - added this module (see above)
1855 * Moose::Meta::Class
1856 - fixed the &_process_attribute method to be called
1857 by &add_attribute, so that the API is now correct
1859 * Moose::Meta::Method::Accessor
1860 - fixed bug when passing a list of values to
1861 an accessor would get (incorrectly) ignored.
1862 Thanks to Sartak for finding this ;)
1863 - added tests for this (Sartak again)
1865 * Moose::Meta::Method::Accessor
1866 Moose::Meta::Method::Constructor
1867 Moose::Meta::Attribute
1868 Moose::Meta::TypeConstraint
1869 Moose::Meta::TypeCoercion
1870 - lots of cleanup of such things as:
1872 - type constraint handling
1873 - error handling/messages
1874 (thanks to nothingmuch)
1876 * Moose::Meta::TypeConstraint::Parameterizable
1877 - added this module to support the refactor
1878 in Moose::Meta::TypeConstraint::Parameterized
1880 * Moose::Meta::TypeConstraint::Parameterized
1881 - refactored how these types are handled so they
1882 are more generic and not confined to ArrayRef
1886 - shortened some file names for better VMS support (RT #32381)
1888 0.33 Fri. Dec. 14, 2007
1889 !! Moose now loads 2 x faster !!
1890 !! with new Class::MOP 0.49 !!
1892 ++ new oose.pm module to make command line
1893 Moose-ness easier (see POD docs for more)
1895 * Moose::Meta::Class
1897 - several tweaks to take advantage of the
1898 new method map caching in Class::MOP
1900 * Moose::Meta::TypeConstraint::Parameterized
1901 - allow subtypes of ArrayRef and HashRef to
1902 be used as a container (sartak)
1903 - added tests for this
1904 - basic support for coercion to ArrayRef and
1905 HashRef for containers (sartak)
1906 - added tests for this
1908 * Moose::Meta::TypeCoercion
1909 - coercions will now create subtypes as needed
1910 so you can now add coercions to parameterized
1911 types without having to explictly define them
1912 - added tests for this
1914 * Moose::Meta::Method::Accessor
1915 - allow subclasses to decide whether we need
1916 to copy the value into a new variable (sartak)
1918 0.32 Tues. Dec. 4, 2007
1919 * Moose::Util::TypeConstraints
1920 - fixing how subtype aliases of unions work
1921 they should inherit the parent's coercion
1922 - added tests for this
1923 - you can now define multiple coercions on
1924 a single type at different times instead of
1925 having to do it all in one place
1926 - added tests for this
1928 * Moose::Meta::TypeConstraint
1929 - there is now a default constraint of sub { 1 }
1930 instead of Moose::Util::TypeConstraints setting
1933 * Moose::Meta::TypeCoercion
1934 * Moose::Meta::TypeCoercion::Union
1935 - added the &has_coercion_for_type and
1936 &add_type_coercions methods to support the
1937 new features above (although you cannot add
1938 more type coercions for Union types)
1940 0.31 Mon. Nov. 26, 2007
1941 * Moose::Meta::Attribute
1942 - made the +attr syntax handle extending types with
1943 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1944 now works if the original foo is an ArrayRef.
1945 - added tests for this.
1946 - delegation now works even if the attribute does not
1947 have a reader method using the get_read_method_ref
1948 method from Class::MOP::Attribute.
1949 - added tests for this
1950 - added docs for this
1952 * Moose::Util::TypeConstraints
1953 - passing no "additional attribute info" to
1954 &find_or_create_type_constraint will no longer
1955 attempt to create an __ANON__ type for you,
1956 instead it will just return undef.
1957 - added docs for this
1959 0.30 Fri. Nov. 23, 2007
1960 * Moose::Meta::Method::Constructor
1961 -builder related bug in inlined constructor. (groditi)
1963 * Moose::Meta::Method::Accessor
1964 - genereate unnecessary calls to predicates and refactor
1965 code generation for runtime speed (groditi)
1967 * Moose::Util::TypeConstraints
1968 - fix ClassName constraint to introspect symbol table (mst)
1969 - added more tests for this (mst)
1970 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1971 with work correctly.
1972 - added tests for this
1975 - adding the link to Recipie 11 (written by Sartak)
1976 - adding test for SYNOPSIS code
1979 - New tests for builder bug. Upon instantiation, if an
1980 attribute had a builder, no value and was not lazy the
1981 builder default was not getting run, oops. (groditi)
1983 0.29 Tues. Nov. 13, 2007
1984 * Moose::Meta::Attribute
1985 - Fix error message on missing builder method (groditi)
1987 * Moose::Meta::Method::Accessor
1988 - Fix error message on missing builder method (groditi)
1991 - Add test to check for the correct error message when
1992 builder method is missing (groditi)
1994 0.28 Tues. Nov. 13, 2007
1995 - 0.27 packaged incorrectly (groditi)
1997 0.27 Tues. Nov. 13, 2007
1998 * Moose::Meta::Attribute
1999 - Added support for the new builder option (groditi)
2000 - Added support for lazy_build option (groditi)
2001 - Changed slot initialization for predicate changes (groditi)
2003 * Moose::Meta::Method::Accessor
2004 - Added support for lazy_build option (groditi)
2005 - Fix inline methods to work with corrected predicate
2008 * Moose::Meta::Method::Constructor
2009 - Added support for lazy_build option (groditi)
2012 - tests for builder and lazy_build (groditi)
2014 * fixing some misc. bits in the docs that
2015 got mentioned on CPAN Forum & perlmonks
2018 - fixed how required methods are handled
2019 when they encounter overriden or modified
2020 methods from a class (thanks to confound).
2021 - added tests for this
2023 * Moose::Util::TypeConstraint
2024 - fixed the type notation parser so that
2025 the | always creates a union and so is
2026 no longer a valid type char (thanks to
2027 konobi, mugwump and #moose for working
2029 - added more tests for this
2031 0.26 Thurs. Sept. 27, 2007
2034 * Parameterized Types
2035 We now support parameterized collection types, such as:
2036 ArrayRef[Int] # array or integers
2037 HashRef[Object] # a hash with object values
2038 They can also be nested:
2039 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2040 And work with the type unions as well:
2041 ArrayRef[Int | Str] # array of integers of strings
2043 * Better Framework Extendability
2044 Moose.pm is now "extendable" such that it is now much
2045 easier to extend the framework and add your own keywords
2046 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2047 section of the Moose.pm docs.
2050 In an effort to begin documenting some of the various
2051 details of Moose as well as some common idioms, we have
2052 created Moose::Cookbook::Snacks as a place to find
2053 small (easily digestable) nuggets of Moose code.
2056 ~ Several doc updates/cleanup thanks to castaway ~
2058 - converted build system to use Module::Install instead of
2059 Module::Build (thanks to jrockway)
2062 - added all the meta classes to the immutable list and
2063 set it to inline the accessors
2064 - fix import to allow Sub::Exporter like { into => }
2065 and { into_level => } (perigrin)
2066 - exposed and documented init_meta() to allow better
2067 embedding and extending of Moose (perigrin)
2070 - complete re-organization of the test suite
2071 - added some new tests as well
2072 - finally re-enabled the Moose::POOP test since
2073 the new version of DBM::Deep now works again
2076 * Moose::Meta::Class
2077 - fixed very odd and very nasty recursion bug with
2079 - added tests for this (eilara)
2081 * Moose::Meta::Attribute
2082 Moose::Meta::Method::Constructor
2083 Moose::Meta::Method::Accessor
2084 - fixed issue with overload::Overloaded getting called
2085 on non-blessed items. (RT #29269)
2086 - added tests for this
2088 * Moose::Meta::Method::Accessor
2089 - fixed issue with generated accessor code making
2090 assumptions about hash based classes (thanks to dexter)
2092 * Moose::Coookbook::Snacks
2093 - these are bits of documentation, not quite as big as
2094 Recipes but which have no clear place in the module docs.
2095 So they are Snacks! (horray for castaway++)
2097 * Moose::Cookbook::Recipe4
2098 - updated it to use the new ArrayRef[MyType] construct
2099 - updated the accompanying test as well
2101 +++ Major Refactor of the Type Constraint system +++
2102 +++ with new features added as well +++
2104 * Moose::Util::TypeConstraint
2105 - no longer uses package variable to keep track of
2106 the type constraints, now uses the an instance of
2107 Moose::Meta::TypeConstraint::Registry to do it
2108 - added more sophisticated type notation parsing
2110 - added tests for this
2112 * Moose::Meta::TypeConstraint
2113 - some minor adjustments to make subclassing easier
2114 - added the package_defined_in attribute so that we
2115 can track where the type constraints are created
2117 * Moose::Meta::TypeConstraint::Union
2118 - this is now been refactored to be a subclass of
2119 Moose::Meta::TypeConstraint
2121 * Moose::Meta::TypeCoercion::Union
2122 - this has been added to service the newly refactored
2123 Moose::Meta::TypeConstraint::Union and is itself
2124 a subclass of Moose::Meta::TypeCoercion
2126 * Moose::Meta::TypeConstraint::Parameterized
2127 - added this module (taken from MooseX::AttributeHelpers)
2128 to help construct nested collection types
2129 - added tests for this
2131 * Moose::Meta::TypeConstraint::Registry
2132 - added this class to keep track of type constraints
2134 0.25 Mon. Aug. 13, 2007
2136 - Documentation update to reference Moose::Util::TypeConstraints
2137 under 'isa' in 'has' for how to define a new type
2138 (thanks to shlomif).
2140 * Moose::Meta::Attribute
2141 - required attributes now will no longer accept undef
2142 from the constructor, even if there is a default and lazy
2143 - added tests for this
2144 - default subroutines must return a value which passes the
2146 - added tests for this
2148 * Moose::Meta::Attribute
2149 * Moose::Meta::Method::Constructor
2150 * Moose::Meta::Method::Accessor
2151 - type-constraint tests now handle overloaded objects correctly
2152 in the error message
2153 - added tests for this (thanks to EvanCarroll)
2155 * Moose::Meta::TypeConstraint::Union
2156 - added (has_)hand_optimized_constraint to this class so that
2157 it behaves as the regular Moose::Meta::TypeConstraint does.
2160 - large refactoring of this code
2161 - added several more tests
2162 - tests for subtle conflict resolition issues
2163 added, but not currently running
2166 * Moose::Cookbook::Recipe7
2167 - added new recipe for augment/inner functionality
2169 - added test for this
2172 - a formal definition of roles (still in progress)
2175 - utilities for easier working with Moose classes
2176 - added tests for these
2179 - This contains Moose specific test functions
2180 - added tests for these
2182 0.24 Tues. July 3, 2007
2183 ~ Some doc updates/cleanup ~
2185 * Moose::Meta::Attribute
2186 - added support for roles to be given as parameters
2187 to the 'handles' option.
2188 - added tests and docs for this
2189 - the has '+foo' attribute form now accepts changes to
2190 the lazy option, and the addition of a handles option
2191 (but not changing the handles option)
2192 - added tests and docs for this
2195 - required methods are now fetched using find_method_by_name
2196 so that required methods can come from superclasses
2197 - adjusted tests for this
2199 0.23 Mon. June 18, 2007
2200 * Moose::Meta::Method::Constructor
2201 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2202 * Moose::Meta::Class
2203 - Modify make_immutable to work with the new Class::MOP immutable
2204 mechanism + POD + very basic test (groditi)
2205 * Moose::Meta::Attribute
2206 - Fix handles to use goto() so that caller() comes out properly on
2207 the other side (perigrin)
2209 0.22 Thurs. May 31, 2007
2210 * Moose::Util::TypeConstraints
2211 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2212 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2213 prototypes for functions
2214 - added the ClassName type constraint, this checks for strings
2215 which will respond true to ->isa(UNIVERSAL).
2216 - added tests and docs for this
2217 - subtyping just in name now works correctly by making the
2218 default for where be { 1 }
2219 - added test for this
2221 * Moose::Meta::Method::Accessor
2222 - coerce and lazy now work together correctly, thanks to
2223 merlyn for finding this bug
2224 - tests added for this
2225 - fix reader presedence bug in Moose::Meta::Attribute + tests
2228 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2229 a HASH-ref and missed. This produces better error messages then
2230 having it die cause undef is not a HASH.
2231 - added tests for this
2233 0.21 Thursday, May 2nd, 2007
2235 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2236 - modified unimport to remove super and inner along with the rest
2237 - altered unimport tests to handle this
2240 - altered super export to populate SUPER_SLOT
2242 * Moose::Meta::Class
2243 - altered augment and override modifier application to use *_SLOT
2244 - modified tests for these to unimport one test class each to test
2247 - fixed issue where custom attribute metaclasses
2248 where not handled correctly in roles
2249 - added tests for this
2251 * Moose::Meta::Class
2252 - fixed issue where extending metaclasses with
2253 roles would blow up. Thanks to Aankhen`` for
2254 finding this insidious error, and it's solution.
2256 ~~ lots of spelling and grammer fixes in the docs,
2257 many many thanks to rlb3 and Aankhen for these :)
2259 0.20 Friday, April 6th, 2007
2260 >> I messed up the SKIP logic in one test
2261 so this release is just to fix that.
2264 - 'has' now also accepts an ARRAY ref
2265 to create multiple attrs (see docs)
2266 (thanks to konobi for this)
2267 - added tests and docs
2269 0.19 Thurs. April 5th, 2007
2270 ~~ More documentation updates ~~
2272 * Moose::Util::TypeConstraints
2273 - 'type' now supports messages as well
2274 thanks to phaylon for finding this
2275 - added tests for this
2276 - added &list_all_type_constraints and
2277 &list_all_builtin_type_constraints
2278 functions to facilitate introspection.
2280 * Moose::Meta::Attribute
2281 - fixed regexp 'handles' declarations
2282 to build the list of delegated methods
2283 correctly (and not override important
2284 things like &new) thanks to ashleyb
2286 - added tests and docs for this
2287 - added the 'documentation' attributes
2288 so that you can actually document your
2289 attributes and inspect them through the
2291 - added tests and docs for this
2293 * Moose::Meta::Class
2294 - when loading custom attribute metaclasses
2295 it will first look in for the class in the
2296 Moose::Meta::Attribute::Custom::$name, and
2297 then default to just loading $name.
2298 - added tests and docs for this
2300 * Moose::Meta::TypeConstraint
2301 - type constraints now stringify to their names.
2302 - added test for this
2305 - added tests to assure we work with Module::Refresh
2306 - added stricter test skip logic in the Moose POOP
2307 test, ask Rob Kinyon why.
2308 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2310 0.18 Sat. March 10, 2007
2311 ~~ Many, many documentation updates ~~
2314 - We now use Class::MOP::load_class to
2316 - added tests to show types and subtypes
2317 working with Declare::Constraints::Simple
2318 and Test::Deep as constraint engines.
2321 !! You must have Class::MOP 0.37_001 !!
2322 !! for this developer release to work !!
2324 This release was primarily adding the immutable
2325 feature to Moose. An immutable class is one which
2326 you promise not to alter. When you set the class
2327 as immutable it will perform various bits of
2328 memoization and inline certain part of the code
2329 (constructors, destructors and accessors). This
2330 minimizes (and in some cases totally eliminates)
2331 one of Moose's biggest performance hits. This
2332 feature is not on by default, and is 100% optional.
2333 It has several configurable bits as well, so you
2334 can pick and choose to your specific needs.
2336 The changes involved in this were fairly wide and
2337 highly specific, but 100% backwards compatible, so
2338 I am not going to enumerate them here. If you are
2339 truely interested in what was changed, please do
2342 0.17 Tues. Nov. 14, 2006
2343 * Moose::Meta::Method::Accessor
2344 - bugfix for read-only accessors which
2345 are have a type constraint and lazy.
2346 Thanks to chansen for finding it.
2348 0.16 Tues. Nov. 14, 2006
2350 There are some speed improvements in this release,
2351 but they are only the begining, so stay tuned.
2354 - BUILDALL and DEMOLISHALL no longer get
2355 called unless they actually need to be.
2356 This gave us a signifigant speed boost
2357 for the cases when there is no BUILD or
2358 DEMOLISH method present.
2360 * Moose::Util::TypeConstraints
2361 * Moose::Meta::TypeConstraint
2362 - added an 'optimize_as' option to the
2363 type constraint, which allows for a
2364 hand optimized version of the type
2365 constraint to be used when possible.
2366 - Any internally created type constraints
2367 now provide an optimized version as well.
2369 0.15 Sun. Nov. 5, 2006
2371 This version of Moose *must* have Class::MOP 0.36 in order
2372 to work correctly. A number of small internal tweaks have
2373 been made in order to be compatible with that release.
2375 * Moose::Util::TypeConstraints
2376 - added &unimport so that you can clean out
2377 your class namespace of these exported
2380 * Moose::Meta::Class
2381 - fixed minor issue which occasionally
2382 comes up during global destruction
2384 - moved Moose::Meta::Method::Overriden into
2388 - moved Moose::Meta::Role::Method into
2391 * Moose::Meta::Attribute
2392 - changed how we do type checks so that
2393 we reduce the overall cost, but still
2396 - moved accessor generation methods to
2397 Moose::Meta::Method::Accessor to
2398 conform to the API changes from
2401 * Moose::Meta::TypeConstraint
2402 - changed how constraints are compiled
2403 so that we do less recursion and more
2404 iteration. This makes the type check
2406 - moved Moose::Meta::TypeConstraint::Union
2409 * Moose::Meta::Method::Accessor
2410 - created this from methods formerly found in
2411 Moose::Meta::Attribute
2413 * Moose::Meta::Role::Method
2414 - moved this from Moose::Meta::Role
2416 * Moose::Meta::Method::Overriden
2417 - moved this from Moose::Meta::Class
2419 * Moose::Meta::TypeConstraint::Union
2420 - moved this from Moose::Meta::TypeConstraint
2422 0.14 Mon. Oct. 9, 2006
2424 * Moose::Meta::Attribute
2425 - fixed lazy attributes which were not getting
2426 checked with the type constraint (thanks ashley)
2427 - added tests for this
2428 - removed the over-enthusiastic DWIMery of the
2429 automatic ArrayRef and HashRef defaults, it
2430 broke predicates in an ugly way.
2431 - removed tests for this
2433 0.13 Sat. Sept. 30, 2006
2435 This version of Moose *must* have Class::MOP 0.35 in order
2436 to work correctly. A number of small internal tweaks have
2437 been made in order to be compatible with that release.
2440 - Removed the use of UNIVERSAL::require to be a better
2441 symbol table citizen and remove a dependency
2442 (thanks Adam Kennedy)
2444 **~~ removed experimental & undocumented feature ~~**
2445 - commented out the 'method' and 'self' keywords, see the
2446 comments for more info.
2449 - added a FAQ and WTF files to document frequently
2450 asked questions and common problems
2452 * Moose::Util::TypeConstraints
2453 - added GlobRef and FileHandle type constraint
2454 - added tests for this
2456 * Moose::Meta::Attribute
2457 - if your attribute 'isa' ArrayRef of HashRef, and you have
2458 not explicitly set a default, then make the default DWIM.
2459 This will also work for subtypes of ArrayRef and HashRef
2461 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2462 - new test added for this (thanks to ashley)
2465 - added basic support for runtime role composition
2466 but this is still *highly experimental*, so feedback
2467 is much appreciated :)
2468 - added tests for this
2470 * Moose::Meta::TypeConstraint
2471 - the type constraint now handles the coercion process
2472 through delegation, this is to support the coercion
2475 * Moose::Meta::TypeConstraint::Union
2476 - it is now possible for coercions to be performed
2478 - added tests for this (thanks to konobi)
2480 * Moose::Meta::TypeCoercion
2481 - properly capturing error when type constraint
2485 - Scalar::Util 1.18 is bad on Win32, so temporarily
2486 only require version 1.17 for Win32 and cygwin.
2487 (thanks Adam Kennedy)
2489 0.12 Sat. Sept. 1, 2006
2491 - Recipe5 (subtypes & coercion) has been written
2494 - fixed "bad meta" error message to be more descriptive
2495 - fixed &unimport to not remove the &inner and &super
2496 keywords because we need to localize them.
2497 - fixed number of spelling/grammer issues, thanks Theory :)
2499 **~~ experimental & undocumented feature ~~**
2500 - added the method and self keywords, they are basically
2501 just sugar, and they may not stay around.
2504 - added &dump method to easily Data::Dumper
2507 * Moose::Meta::TypeConstraint
2508 - added the &is_a_type_of method to check both the current
2509 and the subtype of a method (similar to &isa with classes)
2512 - this is now a subclass of Class::MOP::Module, and no longer
2513 creates the _role_meta ugliness of before.
2514 - fixed tests to reflect this change
2516 0.11 Wed. July 12, 2006
2518 - added an &unimport method to remove all the keywords
2519 that Moose will import, simply add 'no Moose' to the
2520 bottom of your class file.
2523 - fixed some test failures caused by a forgotten test
2526 0.10 Thurs. July 6, 2006
2528 - improved error message when loading modules so
2529 it is less confusing when you load a role.
2530 - added &calculate_all_roles method to
2531 Moose::Meta::Class and Moose::Meta::Role
2534 This module has been tested against Class::MOP 0.30
2535 but it does not yet utilize the optimizations
2536 it makes available. Stay tuned for that ;)
2538 0.09_03 Fri. June 23, 2006
2539 ++ DEVELOPER RELEASE ++
2541 - 'use strict' and 'use warnings' are no longer
2542 needed in Moose classes, Moose itself will
2543 turn them on for you.
2544 - added tests for this
2545 - moved code from exported subs to private methods
2546 in Moose::Meta::Class
2549 - as with Moose, strict and warnings are
2550 automatically turned on for you.
2551 - added tests for this
2554 - now handles an edge case for override errors
2555 - added tests for this
2556 - added some more edge case tests
2558 0.09_02 Tues. May 16, 2006
2559 ++ DEVELOPER RELEASE ++
2561 - added prototypes to the exported subs
2565 - added prototypes to the exported subs
2568 * Moose::Util::TypeConstraints
2569 - cleaned up prototypes for the subs
2572 0.09_01 Fri. May 12, 2006
2573 ++ DEVELOPER RELEASE ++
2574 - This release works in combination with
2575 Class::MOP 0.29_01, it is a developer
2576 release because it uses the a new
2577 instance sub-protocol and a fairly
2578 complete Role implementation. It has
2579 not yet been optimized, so it slower
2580 the the previous CPAN version. This
2581 release also lacks good updated docs,
2582 the official release will have updated docs.
2585 - refactored the keyword exports
2586 - 'with' now checks Role validaity and
2587 accepts more than one Role at a time
2588 - 'extends' makes metaclass adjustments as
2589 needed to ensure metaclass compatibility
2592 - refactored the keyword exports
2593 - 'with' now checks Role validaity and
2594 accepts more than one Role at a time
2596 * Moose::Util::TypeConstraints
2597 - added the 'enum' keyword for simple
2598 string enumerations which can be used as
2600 - see example of usage in t/202_example.t
2603 - more careful checking of params to new()
2606 - much work done on the role composition
2607 - many new tests for conflict detection
2608 and composition edge cases
2609 - not enough documentation, I suggest
2610 looking at the tests
2612 * Moose::Meta::Instance
2613 - added new Instance metaclass to support
2614 the new Class::MOP instance protocol
2616 * Moose::Meta::Class
2617 - some small changes to support the new
2619 - some small additions to support Roles
2621 * Moose::Meta::Attribute
2622 - some improvements to the accessor generation code
2624 - some small changes to support the new
2626 - (still somewhat) experimental delegation support
2627 with the 'handles' option
2628 - added several tests for this
2629 - no docs for this yet
2631 0.05 Thurs. April 27, 2006
2633 - keywords are now exported with Sub::Exporter
2634 thanks to chansen for this commit
2635 - has keyword now takes a 'metaclass' option
2636 to support custom attribute meta-classes
2637 on a per-attribute basis
2638 - added tests for this
2639 - the 'has' keyword not accepts inherited slot
2640 specifications (has '+foo'). This is still an
2641 experimental feature and probably not finished
2642 see t/038_attribute_inherited_slot_specs.t for
2643 more details, or ask about it on #moose
2644 - added tests for this
2647 - keywords are now exported with Sub::Exporter
2649 * Moose::Utils::TypeConstraints
2650 - reorganized the type constraint hierarchy, thanks
2651 to nothingmuch and chansen for his help and advice
2653 - added some tests for this
2654 - keywords are now exported with Sub::Exporter
2655 thanks to chansen for this commit
2657 * Moose::Meta::Class
2658 - due to changes in Class::MOP, we had to change
2659 construct_instance (for the better)
2661 * Moose::Meta::Attribute
2662 - due to changes in Class::MOP, we had to add the
2663 initialize_instance_slot method (it's a good thing)
2665 * Moose::Meta::TypeConstraint
2666 - added type constraint unions
2667 - added tests for this
2668 - added the is_subtype_of predicate method
2669 - added tests for this
2671 0.04 Sun. April 16th, 2006
2673 - Roles can now consume other roles
2674 - added tests for this
2675 - Roles can specify required methods now with
2676 the requires() keyword
2677 - added tests for this
2680 - ripped out much of it's guts ,.. much cleaner now
2681 - added required methods and correct handling of
2682 them in apply() for both classes and roles
2683 - added tests for this
2684 - no longer adds a does() method to consuming classes
2685 it relys on the one in Moose::Object
2686 - added roles attribute and some methods to support
2687 roles consuming roles
2689 * Moose::Meta::Attribute
2690 - added support for triggers on attributes
2691 - added tests for this
2692 - added support for does option on an attribute
2693 - added tests for this
2695 * Moose::Meta::Class
2696 - added support for attribute triggers in the
2698 - added tests for this
2701 - Moose no longer creates a subtype for your class
2702 if a subtype of the same name already exists, this
2703 should DWIM in 99.9999% of all cases
2705 * Moose::Util::TypeConstraints
2706 - fixed bug where incorrect subtype conflicts were
2708 - added test for this
2711 - this class can now be extended with 'use base' if
2712 you need it, it properly loads the metaclass class now
2713 - added test for this
2715 0.03_02 Wed. April 12, 2006
2717 - you must now explictly use Moose::Util::TypeConstraints
2718 it no longer gets exported for you automatically
2721 - new() now accepts hash-refs as well as key/value lists
2722 - added does() method to check for Roles
2723 - added tests for this
2725 * Moose::Meta::Class
2726 - added roles attribute along with the add_role() and
2728 - added tests for this
2731 - now adds a does() method to consuming classes
2732 which tests the class's hierarchy for roles
2733 - added tests for this
2735 0.03_01 Mon. April 10, 2006
2737 - added new Role recipe (no content yet, only code)
2740 - added 'with' keyword for Role support
2741 - added test and docs for this
2742 - fixed subtype quoting bug
2743 - added test for this
2747 - added test and docs
2749 * Moose::Util::TypeConstraints
2750 - added the message keyword to add custom
2751 error messages to type constraints
2754 - the meta role to support Moose::Role
2755 - added tests and docs
2757 * Moose::Meta::Class
2758 - moved a number of things from Moose.pm
2759 to here, they should have been here
2762 * Moose::Meta::Attribute
2763 - moved the attribute option macros here
2764 instead of putting them in Moose.pm
2766 * Moose::Meta::TypeConstraint
2767 - added the message attributes and the
2769 - added tests and docs for this
2771 0.03 Thurs. March 30, 2006
2773 - added the Moose::Cookbook with 5 recipes,
2774 describing all the stuff Moose can do.
2777 - fixed an issue with &extends super class loading
2778 it now captures errors and deals with inline
2779 packages correctly (bug found by mst, solution
2781 - added super/override & inner/augment features
2782 - added tests and docs for these
2785 - BUILDALL now takes a reference of the %params
2786 that are passed to &new, and passes that to
2789 * Moose::Util::TypeConstraints
2790 - Type constraints now survive runtime reloading
2791 - added test for this
2793 * Moose::Meta::Class
2794 - fixed the way attribute defaults are handled
2795 during instance construction (bug found by chansen)
2797 * Moose::Meta::Attribute
2798 - read-only attributes now actually enforce their
2799 read-only-ness (this corrected in Class::MOP as
2802 0.02 Tues. March 21, 2006
2804 - many more tests, fixing some bugs and
2806 - &extends now loads the base module with
2808 - added UNIVERSAL::require to the
2811 - each new Moose class will also create
2812 and register a subtype of Object which
2813 correspond to the new Moose class.
2814 - the 'isa' option in &has now only
2815 accepts strings, and will DWIM in
2818 * Moose::Util::TypeConstraints
2819 - added type coercion features
2820 - added tests for this
2821 - added support for this in attributes
2822 and instance construction
2824 - type construction no longer creates a
2825 function, it registers the type instead.
2826 - added several functions to get the
2830 - BUILDALL and DEMOLISHALL were broken
2831 because of a mis-named hash key, Whoops :)
2833 * Moose::Meta::Attribute
2834 - adding support for coercion in the
2835 autogenerated accessors
2837 * Moose::Meta::Class
2838 - adding support for coercion in the
2839 instance construction
2841 * Moose::Meta::TypeConstraint
2842 * Moose::Meta::TypeCoercion
2843 - type constraints and coercions are now
2844 full fledges meta-objects
2846 0.01 Wed. March 15, 2006
2847 - Moooooooooooooooooose!!!