1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Method::Constructor
6 - The generated code needs to called Scalar::Util::blessed by its
7 fully-qualified name or else Perl can interpret the call to blessed as
8 an indirect method call. This broke Search::GIN, which in turn broke
11 0.90 Tue, Sep 15, 2009
12 * Moose::Meta::Attribute::Native::Trait::Counter
13 * Moose::Meta::Attribute::Native::Trait::String
14 - For these two traits, an attribute which did not explicitly provide
15 methods to handles magically ended up delegating *all* the helper
16 methods. This has been removed. You must be explicit in your handles
17 declaration for all Native Traits. (Dave Rolsky)
20 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
21 sure to rethrow its error message. However, we also localize $@ before
22 this so that if all the DEMOLISH methods success, the value of $@ will
23 be preserved. (nothingmuch and Dave Rolsky)
24 - We now also localize $? during object destruction. (nothingmuch and
26 - The handling of DEMOLISH methods was broken for immutablized classes,
27 which were not receiving the value of
28 Devel::GlobalDestruction::in_global_destruction.
29 - These two fixes address some of RT #48271, reported by Zefram.
30 - This is all now documented in Moose::Manual::Construction.
31 - Calling $object->new() is now deprecated. A warning will be
35 - Added more hooks to customize how roles are applied. The role
36 summation class, used to create composite roles, can now be changed
37 and/or have meta-roles applied to it. (rafl)
39 * Moose::Meta::Method::Delegation
40 - fixed delegated methods to make sure that any modifiers attached to
41 the accessor being delegated on will be called (Stevan)
42 - added tests for this (Stevan)
45 - Moose no longer warns when a class that is being made immutable has
46 mutable ancestors. While in theory this is a good thing to warn about,
47 we found so many exceptions to this that doing this properly became
50 0.89_02 Thu, Sep 10, 2009
51 * Moose::Meta::Attribute::Native
52 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
54 * Moose::Meta::Attribute::Native::Trait::Array
55 - Added a number of functions from List::Util and List::MoreUtils,
56 including reduce, shuffle, uniq, and natatime. (doy)
59 - This module will now generate an init_meta method for your exporting
60 class if you pass it options for
61 Moose::Util::MetaRole::apply_metaclass_roles or
62 apply_base_class_roles. This eliminates a lot of repetitive
63 boilerplate for typical MooseX modules. (doy).
64 - Documented the with_meta feature, which is a replacement for
65 with_caller. This feature was added by josh a while ago.
66 - The with_caller feature is now deprecated, but will not issue a
67 warning yet. (Dave Rolsky)
68 - If you try to wrap/export a subroutine which doesn't actually exist,
69 Moose::Exporter will warn you about this. (doy)
71 * Moose::Meta::Role::Application::ToRole
72 - When a role aliased a method from another role, it was only getting
73 the new (aliased) name, not the original name. This differed from what
74 happens when a class aliases a role's methods. If you _only_ want the
75 aliased name, make sure to also exclue the original name. (Dave
78 0.89_01 Wed Sep 2, 2009
79 * Moose::Meta::Attribute
80 - Added the currying syntax for delegation from AttributeHelpers to the
81 existing delegation API. (hdp)
83 * Moose::Meta::Attribute::Native
84 - We have merged the functionality of MooseX::AttributeHelpers into the
85 Moose core with some API tweaks. You can continue to use
86 MooseX::AttributeHelpers, but it will not be maintained except
87 (perhaps) for critical bug fixes in the future. See
88 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
92 * Moose::Error::Confess
93 - Clarify documentation on how to use different error-throwing
94 modules. (Curtis Jewell)
97 - Correct POD for builder to point to Recipe8, not 9. (gphat)
100 - When a nonexistent sub name is passed to as_is, with_caller, or
101 with_meta, throw a warning and skip the exporting, rather than
102 installing a broken sub. (doy)
105 - Moose now warns if you call C<make_immutable> for a class with mutable
108 0.89 Thu Aug 13, 2009
109 * Moose::Manual::Attributes
110 - Clarify "is", include discussion of "bare". (Sartak)
112 * Moose::Meta::Role::Method::Conflicting
113 * Moose::Meta::Role::Application::ToClass
114 - For the first set of roles involved in a conflict, report all
115 unresolved method conflicts, not just the first method. Fixes #47210
116 reported by Ovid. (Sartak)
118 * Moose::Meta::TypeConstraint
119 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
122 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
124 - Allow specifying role options (alias, excludes, MXRP stuff) in the
125 arrayref passed to "use Moose -traits" (doy)
128 - Add functions meta_class_alias and meta_attribute_alias for creating
129 aliases for class and attribute metaclasses and metatraits. (doy)
131 * Moose::Meta::Attribute
132 * Moose::Meta::Method::Accessor
133 - A trigger now receives the old value as a second argument, if the
134 attribute had one. (Dave Rolsky)
136 * Moose::Meta::Method::Constructor
137 - Fix a bug with $obj->new when $obj has stringify overloading.
138 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
139 - However, we will probably deprecate $obj->new, so please don't start
140 using it for new code!
142 * Moose::Meta::Role::Application
143 * Moose::Meta::Role::Application::RoleSummation
144 - Rename alias and excludes to -alias and -excludes (but keep the old
145 names for now, for backcompat) (doy)
147 0.88 Fri Jul 24, 2009
148 * Moose::Manual::Contributing
149 - Re-write the Moose::Manual::Contributing document to reflect
150 the new layout and methods of work for the Git repository. All
151 work now should be done in topic branches and reviewed by a
152 core committer before being applied to master. All releases
153 are done by a cabal member and merged from master to
154 stable. This plan was devised by Yuval, blame him. (perigrin)
157 - Create metaclass attributes for the different role application
160 * Moose::Util::MetaRole
161 - Allow applying roles to a meta role's role application
164 * Moose::Meta::Attribute
165 - Add weak_ref to allowed options for "has '+foo'" (mst)
167 * Moose::Meta::Method::Accessor
168 - No longer uses inline_slot_access in accessors, to support
169 non-lvalue-based meta instances. (sorear)
172 * Moose::Meta::Method::Delegation
173 - Once again allow class names as well as objects for
174 delegation. This was changed in 0.86.
177 * Moose::Meta::Class::Immutable::Trait
178 - Fixes to work with the latest Class::MOP.
180 * Moose::Meta::Method::Delegation
181 - Delegation now dies with a more useful error message if the
182 attribute's accessor returns something defined but
185 0.85 Fri, Jun 26, 2009
186 * Moose::Meta::Attribute
187 - The warning for 'no associated methods' is now split out into
188 the _check_associated_methods method, so that extensions can
189 safely call 'after install_accessors => ...'. This fixes a
190 warning from MooseX::AttributeHelpers. (hdp)
192 0.84 Fri, Jun 26, 2009
194 - has now sets definition_context for attributes defined in
197 * Moose::Meta::Attribute
198 - When adding an attribute to a metaclass, if the attribute has
199 no associated methods, it will give a deprecation
201 - Methods generated by delegation were not being added to
202 associated_methods. (hdp)
203 - Attribute accessors (reader, writer, accessor, predicate,
204 clearer) now warn if they overwrite an existing method. (doy)
205 - Attribute constructors now warn very noisily about unknown (or
206 misspelled) arguments
208 * Moose::Util::TypeConstraints
209 - Deprecated the totally useless Role type name, which just
210 checked if $object->can('does'). Note that this is _not_ the
211 same as a type created by calling role_type('RoleName').
213 * Moose::Util::TypeConstraints
214 * Moose::Meta::TypeConstraint::DuckType
215 - Reify duck type from a regular subtype into an actual class
217 - Document this because Sartak did all my work for me
220 * Moose::Meta::Attribute
221 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
222 it is just a list of methods (Sartak)
225 - The get_*_method_modifiers methods would die if the role had
226 no modifiers of the given type (Robert Buels).
228 0.83 Tue, Jun 23, 2009
230 - Fix _construct_instance not setting the special __MOP__ object
231 key in instances of anon classes. (doy)
233 0.82 Sun, Jun 21, 2009
234 * Moose::Manual::Types
235 - Mention MooseX::Types early to avoid users falling down the
236 string parsing rathole (mst)
238 * Moose::Manual::MooseX
239 - Add warnings about class-level extensions and mention considering
240 using plain objects instead
242 0.81 Sun, Jun 7, 2009
243 * Bumped our Class::MOP prereq to the latest version (0.85), since
246 0.80 Sat, Jun 6, 2009
248 - Add FAQ about the coercion change from 0.76 because it came up
249 three times today (perigrin)
250 - Win doy $10 dollars because Sartak didn't think anybody
251 would document this fast enough (perigrin)
253 * Moose::Meta::Method::Destructor
254 - Inline a DESTROY method even if there are no DEMOLISH methods
255 to prevent unnecessary introspection in
256 Moose::Object::DEMOLISHALL
259 - A role's required methods are now represented by
260 Moose::Meta::Role::Method::Required objects. Conflicts are now
261 represented by Moose::Meta::Role::Method::Conflicting
262 objects. The benefit for end-users in that unresolved
263 conflicts generate different, more instructive, errors,
264 resolving Ovid's #44895. (Sartak)
267 - Improve the error message of "extends" as suggested by Adam
268 Kennedy and confound (Sartak)
269 - Link to Moose::Manual::Roles from Moose::Role as we now have
270 excellent documentation (Adam Kennedy)
273 - Update test suite for subname change in Class::MOP
275 - Add TODO test for infinite recursion in Moose::Meta::Class
278 0.79 Wed, May 13, 2009
280 - More fixes for Win32 problems. Reported by Robert Krimen.
283 - The DEMOLISHALL method could still blow up in some cases
284 during global destruction. This method has been made more
285 resilient in the face of global destruction's random garbage
289 - If you "also" a module that isn't loaded, the error message
290 now acknowledges that (Sartak)
293 - When your ->meta method does not return a Moose::Meta::Class,
294 the error message gave the wrong output (Sartak)
296 0.78 Tue, May 12, 2009
297 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
298 - Merged these documents into what is now Moose::Manual::FAQ
301 - Moved to Moose::Manual::Unsweetened
303 * Moose::Cookbook::Basics::Recipes 9-12
304 - Renamed to be 8-11, since recipe 8 did not exist
307 - Make Moose::Exporter import strict and warnings into packages
311 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
312 methods during global destruction (doy)
315 * Moose::Meta::Role::Application::ToClass
316 - Track the Role::Application objects created during class-role
320 - Fix metaclass incompatibility errors when extending a vanilla perl
321 class which isa Moose class with a metaclass role applied (t0m)
324 - Add a role-combination hook, _role_for_combination, for the
325 benefit of MooseX::Role::Parameterized (Sartak)
328 - Some tests were failing on Win32 because they explicit checked
329 warning output for newlines. Reported by Nickolay Platonov.
331 0.77 Sat, May 2, 2009
333 - Add explicit use of Devel::GlobalDestruction and Sub::Name
337 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
338 or not we are currently in global destruction (doy)
339 - Add explicit use of Devel::GlobalDestruction and Sub::Name
342 * Moose::Cookbook::FAQ
343 - Reworked much of the existing content to be more useful to
344 modern Moose hackers (Sartak)
347 - Depend on Class::MOP 0.83 instead of 0.82_01.
349 0.76 Mon, April 27, 2009
350 * Moose::Meta::TypeConstraint
351 - Do not run coercions in coerce() if the value already passes the type
354 * Moose::Meta::TypeConstraint::Class
355 - In validation error messages, specifically say that the value is not
356 an instance of the class. This should alleviate some frustrating
357 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
359 * Moose::Meta::Role::Application::ToClass
360 - Revert the class-overrides-role warning in favor of a solution outside
361 of the Moose core (Sartak)
364 - Make Test::Output optional again, since it's only used in a few files
367 0.75_01 Thu, April 23, 2009
368 * Moose::Meta::Role::Application::ToClass
369 - Moose now warns about each class overriding methods from roles it
373 - Warnings tests have standardized on Test::Output which is now an
374 unconditionally dependency (Sartak)
377 - Changes to immutabilization to work with Class::MOP 0.82_01+.
379 0.75 Mon, April 20, 2009
382 - Move validation of not inheriting from roles from Moose::extends to
383 Moose::Meta::Class::superclasses (doy)
386 - add ensure_all_roles() function to encapsulate the common "apply this
387 role unless the object already does it" pattern (hdp)
390 - Users can now select a different metaclass with the "-metaclass"
391 option to import, for classes and roles (Sartak)
394 - Make method_metaclass an attr so that it can accept a metarole
397 0.74 Tue, April 7, 2009
399 * Moose::Meta::Method::Destructor
400 - Include stack traces in the deprecation warnings.
404 - Removed the long-deprecated _apply_all_roles method.
406 * Moose::Meta::TypeConstraint
407 - Removed the long-deprecated union method.
410 0.73_02 Mon, April 6, 2009
411 * More deprecations and renamings
412 - Moose::Meta::Method::Constructor
413 - initialize_body => _initialize_body (this is always called
414 when an object is constructed)
417 - The DEMOLISHALL method could throw an exception during global
418 destruction, meaning that your class's DEMOLISH methods would
419 not be properly called. Reported by t0m.
421 * Moose::Meta::Method::Destructor
422 - Destructor inlining was totally broken by the change to the
423 is_needed method in 0.72_01. Now there is a test for this
424 feature, and it works again.
427 - Bold the word 'not' in the POD for find_meta (t0m)
429 0.73_01 Sun, April 5, 2009
431 - Call user_class->meta in fewer places, with the eventual goal
432 of allowing the user to rename or exclude ->meta
433 altogether. Instead uses Class::MOP::class_of. (Sartak)
435 * Moose::Meta::Method::Accessor
436 - If an attribute had a lazy default, and that value did not
437 pass the attribute's type constraint, it did not get the
438 message from the type constraint, instead using a generic
439 message. Test provided by perigrin.
441 * Moose::Util::TypeConstraints
442 - Add duck_type keyword. It's sugar over making sure an object
443 can() a list of methods. This is easier than jrockway's
444 suggestion to fork all of CPAN. (perigrin)
445 - add tests and documentation (perigrin)
448 - Document the fact that init_meta() returns the target class's
449 metaclass object. (hdp)
451 * Moose::Cookbook::Extending::Recipe1
452 * Moose::Cookbook::Extending::Recipe2
453 * Moose::Cookbook::Extending::Recipe3
454 * Moose::Cookbook::Extending::Recipe4
455 - Make init_meta() examples explicitly return the metaclass and
456 point out this fact. (hdp)
458 * Moose::Cookbook::Basics::Recipe12
459 - A new recipe, creating a custom meta-method class.
461 * Moose::Cookbook::Meta::Recipe6
462 - A new recipe, creating a custom meta-method class.
465 * Moose::Meta::Method::Constructor
466 - Attribute triggers no longer receive the meta-attribute object
467 as an argument in any circumstance. Previously, triggers
468 called during instance construction were passed the
469 meta-attribute, but triggers called by normal accessors were
470 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
472 * Moose::Manual::Attributes
473 - Remove references to triggers receving the meta-attribute object as an
476 * Moose::Cookbook::FAQ
477 - Remove recommendation for deprecated Moose::Policy and
478 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
481 * Many methods have been renamed with a leading underscore, and a
482 few have been deprecated entirely. The methods with a leading
483 underscore are consider "internals only". People writing
484 subclasses or extensions to Moose should feel free to override
485 them, but they are not for "public" use.
488 - check_metaclass_compatibility => _check_metaclass_compatibility
490 - Moose::Meta::Method::Accessor
491 - initialize_body => _initialize_body (this is always called
492 when an object is constructed)
493 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
495 - Moose::Meta::Method::Constructor
496 - initialize_body => _initialize_body (this is always called
497 when an object is constructed)
498 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
499 - attributes => _attributes (now inherited from parent)
500 - meta_instance => _meta_instance (now inherited from parent)
503 - alias_method is deprecated. Use add_method
505 0.73 Fri, March 29, 2009
506 * No changes from 0.72_01.
508 0.72_01 Thu, March 26, 2009
510 - Almost every module has complete API documentation. A few
511 methods (and even whole classes) have been intentionally
512 excluded pending some rethinking of their APIs.
514 * Moose::Util::TypeConstraints
515 - Calling subtype with a name as the only argument is now an
516 exception. If you want an anonymous subtype do:
518 my $subtype = subtype as 'Foo';
520 * Moose::Cookbook::Meta::Recipe7
521 - A new recipe, creating a custom meta-instance class.
523 * Moose::Cookbook::Basics::Recipe5
524 - Fix various typos and mistakes. Includes a patch from Radu
527 * Moose::Cookbook::Basics::Recipe9
528 - Link to this recipe from Moose.pm's builder blurb
531 - When wrapping a function with a prototype, Moose::Exporter now
532 makes sure the wrapped function still has the same
533 prototype. (Daisuke Maki)
535 * Moose::Meta::Attribute
536 - Allow a subclass to set lazy_build for an inherited
540 - Explicitly depend on Data::OptList. We already had this dependency
541 via Sub::Exporter, but since we're using it directly we're
542 better off with it listed. (Sartak)
544 * Moose::Meta::Method::Constructor
545 - Make it easier to subclass the inlining behaviour. (Ash
548 * Moose::Manual::Delta
549 - Details significant changes in the history of Moose, along
550 with recommended workarounds.
552 * Moose::Manual::Contributing
553 - Contributor's guide to Moose.
555 * Moose::Meta::Method::Constructor
556 - The long-deprecated intialize_body method has been removed
557 (yes, spelled like that).
559 * Moose::Meta::Method::Destructor
560 - This is_needed method is now always a class method.
563 - Changes to the internals of how make_immutable works to match
564 changes in latest Class::MOP.
566 0.72 Mon, February 23, 2009
568 * Moose::Meta::Method::Constructor
569 - A mutable class accepted Foo->new(undef) without complaint,
570 while an immutable class would blow up with an unhelpful
571 error. Now, in both cases we throw a helpful error
572 instead. Reported by doy.
574 0.71_01 Sun, February 22, 2009
576 - Hopefully fixed some POD errors in a few recipes that caused
577 them to display weird on search.cpan.org.
579 * Moose::Util::TypeConstraints
580 - Calling type or subtype without the sugar helpers (as, where,
581 message) is now deprecated.
582 - The subtype function tried hard to guess what you meant, but
583 often got it wrong. For example:
585 my $subtype = subtype as 'ArrayRef[Object]';
587 This caused an error in the past, but now works as you'd
591 - Make sure Moose.pm is loaded before calling
592 Moose->throw_error. This wasn't normally an issue, but could
593 bite you in weird cases.
595 0.71 Thu, February 19, 2009
596 * Moose::Cookbook::Basics::Recipe11
597 - A new recipe which demonstrates the use of BUILDARGS and
600 * Moose::Cookbook::Roles::Recipe3
601 - A new recipe, applying a role to an object instance. (Dave
605 - Allow overriding specific keywords from "also" packages. (doy)
608 - Replace hardcoded cookbook tests with Test::Inline to ensure
609 the tests match the actual code in the recipes. (Dave Rolsky)
612 - Working on the above turned up a number of little bugs in the
613 recipe code. (Dave Rolsky)
615 * Moose::Util::TypeConstraints::Optimized
616 - Just use Class::MOP for the optimized ClassName check. (Dave
619 0.70 Sat, February 14, 2009
620 * Moose::Util::TypeConstraints
621 - Added the RoleName type (stevan)
622 - added tests for this (stevan)
624 * Moose::Cookbook::Basics::Recipe3
625 - Updated the before qw[left right] sub to be a little more
626 defensive about what it accepts (stevan)
627 - added more tests to t/000_recipies/basics/003_binary_tree.t
631 - We now always call DEMOLISHALL, even if a class does not
632 define DEMOLISH. This makes sure that method modifiers on
633 DEMOLISHALL work as expected. (doy)
634 - added tests for this (EvanCarroll)
636 * Moose::Util::MetaRole
637 - Accept roles for the wrapped_method_metaclass (rafl)
638 - added tests for this (rafl)
640 * Moose::Meta::Attribute
641 - We no longer pass the meta-attribute object as a final
642 argument to triggers. This actually changed for inlined code a
643 while back, but the non-inlined version and the docs were
647 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
648 they require 0.11. (Dave Rolsky)
651 - Lots of small changes to the manual, cookbook, and
652 elsewhere. These were based on feedback from various
653 users, too many to list here. (Dave Rolsky)
655 0.69 Thu, February 12, 2009
657 - Make some keyword errors use throw_error instead of croak
658 since Moose::Exporter wraps keywords now (Sartak)
661 - Revised every recipe for style and clarity. Also moved some
662 documentation out of cookbook recipes and into Moose::Manual
663 pages. This work was funded as part of the Moose docs grant
664 from TPF. (Dave Rolsky)
666 * Moose::Meta::Method::Delegation
667 - If the attribute doing the delegation was not populated, the
668 error message did not specify the attribute name
671 0.68 Wed, February 4, 2009
673 - Many spelling, typo, and formatting fixes by daxim.
675 * Moose::Manual::Attributes
676 - The NAME section in the POD used "Attribute" so search.cpan
677 didn't resolve links from other documents properly.
679 * Moose::Meta::Method::Overriden
680 - Now properly spelled as Overridden. Thanks to daxim for
683 0.67 Tue, February 3, 2009
685 - Lots of little typo fixes and a few clarifications. Several
686 pages didn't have proper titles, and so weren't actually
687 visible on search.cpan.org. Thanks to hanekomu for a variety
688 of fixes and formatting improvements.
690 0.66 Tue, February 3, 2009
692 - This is a brand new, extensive manual for Moose. This aims to
693 provide a complete introduction to all of Moose's
694 features. This work was funded as part of the Moose docs grant
695 from TPF. (Dave Rolsky)
697 * Moose::Meta::Attribute
698 - Added a delegation_metaclass method to replace a hard-coded
699 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
701 * Moose::Util::TypeConstraints
702 - If you created a subtype and passed a parent that Moose didn't
703 know about, it simply ignored the parent. Now it automatically
704 creates the parent as a class type. This may not be what you
705 want, but is less broken than before. (Dave Rolsky)
707 * Moose::Util::TypeConstraints
708 - This module tried throw errors by calling Moose->throw_error,
709 but it did not ensure that Moose was loaded first. This could
710 cause very unhelpful errors when it tried to throw an error
711 before Moose was loaded. (Dave Rolsky)
713 * Moose::Util::TypeConstraints
714 - You could declare a name with subtype such as "Foo!Bar" that
715 would be allowed, but if you used it in a parameterized type
716 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
717 vetting on names created via the sugar functions, so that they
718 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
720 0.65 Thu, January 22, 2008
721 * Moose and Moose::Meta::Method::Overridden
722 - If an overridden method called super(), and then the
723 superclass's method (not overridden) _also_ called super(),
724 Moose went into an endless recursion loop. Test provided by
725 Chris Prather. (Dave Rolsky)
727 * Moose::Meta::TypeConstraint
728 - All methods are now documented. (gphat)
730 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
731 - Fixed some bogus failures that occurred because we tried to
732 validate filesystem paths in a very ad-hoc and
733 not-quite-correct way. (Dave Rolsky)
735 * Moose::Util::TypeConstraints
736 - Added maybe_type to exports. See docs for details. (rjbs)
739 - Added Moose::Util::TypeConstraints to the SEE ALSO
743 - Methods created via an attribute can now fulfill a "requires"
744 declaration for a role. (nothingmuch)
746 * Moose::Meta::Method::*
747 - Stack traces from inlined code will now report its line and
748 file as being in your class, as opposed to in Moose
751 0.64 Wed, December 31, 2008
752 * Moose::Meta::Method::Accessor
753 - Always inline predicate and clearer methods (Sartak)
755 * Moose::Meta::Attribute
756 - Support for parameterized traits (Sartak)
757 - verify_against_type_constraint method to avoid duplication
758 and enhance extensibility (Sartak)
761 - Tests (but no support yet) for parameterized traits (Sartak)
764 - Require Class::MOP 0.75+, which has the side effect of making
765 sure we work on Win32. (Dave Rolsky)
767 0.63 Mon, December 8, 2008
769 - Some small grammar tweaks and bug fixes in non-Moose example
772 0.62_02 Fri, December 5, 2008
773 * Moose::Meta::Role::Application::ToClass
774 - When a class does not provide all of a role's required
775 methods, the error thrown now mentions all of the missing
776 methods, as opposed to just the first one found. Requested by
777 Curtis Poe (RT #41119). (Dave Rolsky)
779 * Moose::Meta::Method::Constructor
780 - Moose will no longer inline a constructor for your class
781 unless it inherits its constructor from Moose::Object, and
782 will warn when it doesn't inline. If you want to force
783 inlining anyway, pass "replace_constructor => 1" to
784 make_immutable. Addresses RT #40968, reported by Jon
785 Swartz. (Dave Rolsky)
786 - The quoting of default values could be broken if the default
787 contained a single quote ('). Now we use quotemeta to escape
788 anything potentially dangerous in the defaults. (Dave Rolsky)
790 0.62_01 Wed, December 3, 2008
792 - use the method->execute API for BUILDALL
793 and DEMOLISHALL (Sartak)
795 * Moose::Util::TypeConstraints
796 - We now make all the type constraint meta classes immutable
797 before creating the default types provided by Moose. This
798 should make loading Moose a little faster. (Dave Rolsky)
800 0.62 Wed November 26, 2008
801 * Moose::Meta::Role::Application::ToClass
802 Moose::Meta::Role::Application::ToRole
803 - fixed issues where excluding and aliasing the
804 same methods for a single role did not work
805 right (worked just fine with multiple
807 - added test for this (stevan)
809 * Moose::Meta::Role::Application::RoleSummation
810 - fixed the error message when trying to compose
811 a role with a role it excludes (Sartak)
814 - Catch another case where recursion caused the value
815 of $CALLER to be stamped on (t0m)
816 - added test for this (t0m)
819 - Remove the make_immutable keyword, which has been
820 deprecated since April. It breaks metaclasses that
821 use Moose without no Moose (Sartak)
823 * Moose::Meta::Attribute
824 - Removing an attribute from a class now also removes delegation
825 (handles) methods installed for that attribute (t0m)
826 - added test for this (t0m)
828 * Moose::Meta::Method::Constructor
829 - An attribute with a default that looked like a number (but was
830 really a string) would accidentally be treated as a number
831 when the constructor was made immutable (perigrin)
832 - added test for this (perigrin)
835 - create method for constructing a role
837 - added test for this (Sartak)
838 - anonymous roles! (Sartak)
839 - added test for this (Sartak)
842 - more consistent error messages (Sartak)
844 * Moose::Cookbook::Roles::Recipe1
845 - attempt to explain why a role that just requires
846 methods is useful (Sartak)
848 0.61 Fri November 7, 2008
849 * Moose::Meta::Attribute
850 - When passing a role to handles, it will be loaded if necessary
854 - Method objects returned by get_method (and other methods)
855 Could end up being returned without an associated_metaclass
856 attribute. Removing get_method_map, which is provided by
857 Class::MOP::Class, fixed this. The Moose version did nothing
858 different from its parent except introduce a bug. (Dave Rolsky)
859 - added tests for this (jdv79)
862 - Added a $VERSION to all .pm files which didn't have one. Fixes
863 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
865 * Moose::Cookbook::Basics::Recipe4
866 * Moose::Cookbook::Basics::Recipe6
867 - These files had spaces on the first line of the SYNOPSIS, as
868 opposed to a totally empty line. According to RT #40432, this
869 confuses POD parsers. (Dave Rolsky)
871 0.60 Fri October 24, 2008
873 - Passing "-traits" when loading Moose caused the Moose.pm
874 exports to be broken. Reported by t0m. (Dave Rolsky)
875 - Tests for this bug. (t0m)
878 - Change resolve_metaclass alias to use the new
879 load_first_existing_class function. This makes it a lot
880 simpler, and also around 5 times faster. (t0m)
881 - Add caching to resolve_metaclass_alias, which gives an order
882 of magnitude speedup to things which repeatedly call the
883 Moose::Meta::Attribute->does method, notably MooseX::Storage
886 * Moose::Util::TypeConstraint
887 - Put back the changes for parameterized constraints that
888 shouldn't have been removed in 0.59. We still cannot parse
889 them, but MooseX modules can create them in some other
890 way. See the 0.58 changes for more details. (jnapiorkowski)
891 - Changed the way subtypes are created so that the job is
892 delegated to a type constraint parent. This clears up some
893 hardcoded checking and should allow correct subtypes of
894 Moose::Meta::Type::Constraint. Don't rely on this new API too
895 much (create_child_type) because it may go away in the
896 future. (jnapiorkowski)
898 * Moose::Meta::TypeConstraint::Union
899 - Type constraint names are sorted as strings, not numbers.
902 * Moose::Meta::TypeConstraint::Parameterizable
903 - New parameterize method. This can be used as a factory method
904 to make a new type constraint with a given parameterized
905 type. (jnapiorkowski)
906 - added tests (jnapiorkowski)
908 0.59 Tue October 14, 2008
910 - Add abridged documentation for builder/default/initializer/
911 predicate, and link to more details sections in
912 Class::MOP::Attribute. (t0m)
914 * Moose::Util::TypeConstraints
915 - removed prototypes from all but the &-based stuff (mst)
917 * Moose::Util::TypeConstraints
918 - Creating a anonymous subtype with both a constraint and a
919 message failed with a very unhelpful error, but should just
920 work. Reported by t0m. (Dave Rolsky)
923 - Some tests that used Test::Warn if it was available failed
924 with older versions of Test::Warn. Reported by Fayland. (Dave
926 - Test firing behavior of triggers in relation to builder/default/
928 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
929 kinds of supported type. (t0m)
932 - In create(), do not pass "roles" option to the superclass
933 - added related test that creates an anon metaclass with
936 * Moose::Meta::TypeConstraint::Class
937 * Moose::Meta::TypeConstraint::Role
938 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
939 other types (as per change in 0.55_02). (t0m)
941 * Moose::Meta::TypeConstraint::Registry
942 - Fix warning when dealing with unknown type names (t0m)
944 * Moose::Util::TypeConstraints
945 - Reverted changes from 0.58 related to handle parameterized
946 types. This caused random failures on BSD and Win32 systems,
947 apparently related to the regex engine. This means that Moose
948 can no longer parse structured type constraints like
949 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
950 supported in a slightly different way via MooseX::Types some
951 time in the future. (Dave Rolsky)
953 0.58 Sat September 20, 2008
954 !! This release has an incompatible change regarding !!
955 !! how roles add methods to a class !!
957 * Roles and role application
958 ! Roles now add methods by calling add_method, not
959 alias_method. They make sure to always provide a method
960 object, which will be cloned internally. This means that it is
961 now possible to track the source of a method provided by a
962 role, and even follow its history through intermediate roles.
964 This means that methods added by a role now show up when
965 looking at a class's method list/map. (Dave Rolsky)
968 - From this release on, we'll try to maintain a list of
969 conflicting modules, and warn you if you have one
970 installed. For example, this release conflicts with ...
971 - MooseX::Singleton <= 0.11
972 - MooseX::Params::Validate <= 0.05
975 In general, we try to not break backwards compatibility for
976 most Moose users, but MooseX modules and other code which
977 extends Moose's metaclasses is often affected by very small
978 changes in the Moose internals.
980 * Moose::Meta::Method::Delegation
981 * Moose::Meta::Attribute
982 - Delegation methods now have their own method class. (Dave
985 * Moose::Meta::TypeConstraint::Parameterizable
986 - Added a new method 'parameterize' which is basically a factory
987 for the containing constraint. This makes it easier to create
988 new types of parameterized constraints. (jnapiorkowski)
990 * Moose::Meta::TypeConstraint::Union
991 - Changed the way Union types canonicalize their names to follow
992 the normalized TC naming rules, which means we strip all
993 whitespace. (jnapiorkowski)
995 * Moose::Util::TypeConstraints
996 - Parameter and Union args are now sorted, this makes Int|Str
997 the same constraint as Str|Int. (jnapiorkowski)
998 - Changes to the way Union types are parsed to more correctly
999 stringify their names. (jnapiorkowski)
1000 - When creating a parameterized type, we now use the new
1001 parameterize method. (jnapiorkowski)
1002 - Incoming type constraint strings are now normalized to remove
1003 all whitespace differences. (jnapiorkowski)
1004 - Changed the way we parse type constraint strings so that we now
1005 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1006 constraints. This lays the foundation for more flexible type
1007 constraint implementations.
1009 * Tests and docs for all the above. (jnapiorkowski)
1013 - Moose::Exporter will no longer remove a subroutine that the
1014 exporting package re-exports. Moose re-exports the
1015 Carp::confess function, among others. The reasoning is that we
1016 cannot know whether you have also explicitly imported those
1017 functions for your own use, so we err on the safe side and
1018 always keep them. (Dave Rolsky)
1019 - added tests for this (rafl)
1021 * Moose::Meta::Class
1022 - Changes to how we fix metaclass compatibility that are much
1023 too complicated to go into. The summary is that Moose is much
1024 less likely to complain about metaclass incompatibility
1025 now. In particular, if two metaclasses differ because
1026 Moose::Util::MetaRole was used on the two corresponding
1027 classes, then the difference in roles is reconciled for the
1028 subclass's metaclass. (Dave Rolsky)
1029 - Squashed an warning in _process_attribute (thepler)
1032 - throw exceptions (sooner) for invalid attribute names (thepler)
1033 - added tests for this (thepler)
1035 * Moose::Util::MetaRole
1036 - If you explicitly set a constructor or destructor class for a
1037 metaclass object, and then applied roles to the metaclass,
1038 that explicitly set class would be lost and replaced with the
1041 * Moose::Meta::Class
1042 * Moose::Meta::Attribute
1043 * Moose::Meta::Method
1046 * Moose::Error::Default
1047 * Moose::Error::Croak
1048 * Moose::Error::Confess
1049 - All instances of confess() changed to use overridable
1050 C<throw_error> method. This method ultimately calls a class
1051 constructor, and you can change the class being called. In
1052 addition, errors now pass more information than just a string.
1053 The default C<error_class> behaves like C<Carp::confess>, so
1054 the behavior is not visibly different for end users.
1056 0.57 Wed September 3, 2008
1058 - A new bit of doc intended to introduce folks familiar with
1059 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1061 * Moose::Unsweetened
1062 - Shows examples of two classes, each done first with and then
1063 without Moose. This makes a nice parallel to
1064 Moose::Intro. (Dave Rolsky)
1066 * Moose::Util::TypeConstraints
1067 - Fixed a bug in find_or_parse_type_constraint so that it
1068 accepts a Moose::Meta::TypeConstraint object as the parent
1069 type, not just a name (jnapiorkowski)
1070 - added tests (jnapiorkowski)
1073 - If Sub::Name was not present, unimporting failed to actually
1074 remove some sugar subs, causing test failures (Dave Rolsky)
1076 0.56 Mon September 1, 2008
1077 For those not following the series of dev releases, there are
1078 several major changes in this release of Moose.
1079 ! Moose::init_meta should now be called as a method. See the
1082 - Major performance improvements by nothingmuch.
1084 - New modules for extension writers, Moose::Exporter and
1085 Moose::Util::MetaRole by Dave Rolsky.
1087 - Lots of doc improvements and additions, especially in the
1090 - Various bug fixes.
1092 * Removed all references to the experimental-but-no-longer-needed
1093 Moose::Meta::Role::Application::ToMetaclassInstance.
1095 * Require Class::MOP 0.65.
1097 0.55_04 Sat August 30, 2008
1098 * Moose::Util::MetaRole
1099 * Moose::Cookbook::Extending::Recipe2
1100 - This simplifies the application of roles to any meta class, as
1101 well as the base object class. Reimplemented metaclass traits
1102 using this module. (Dave Rolsky)
1104 * Moose::Cookbook::Extending::Recipe1
1105 - This a new recipe, an overview of various ways to write Moose
1106 extensions (Dave Rolsky)
1108 * Moose::Cookbook::Extending::Recipe3
1109 * Moose::Cookbook::Extending::Recipe4
1110 - These used to be Extending::Recipe1 and Extending::Recipe2,
1113 0.55_03 Fri August 29, 2008
1114 * No changes from 0.55_02 except increasing the Class::MOP
1115 dependency to 0.64_07.
1117 0.55_02 Fri August 29, 2008
1118 * Makefile.PL and Moose.pm
1119 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1121 * Moose::Util::TypeConstraints
1122 - Fix warnings from find_type_constraint if the type is not
1125 * Moose::Meta::TypeConstraint
1126 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1127 return false if the type you specify cannot be found in the
1128 type registry, rather than throwing an unhelpful and
1129 coincidental exception. (t0m).
1130 - added docs & test for this (t0m)
1132 * Moose::Meta::TypeConstraint::Registry
1133 - add_type_constraint now throws an exception if a parameter is
1135 - added docs & test for this (t0m)
1137 * Moose::Cookbook::FAQ
1138 - Added a faq entry on the difference between "role" and "trait"
1142 - Fixed a bug that caused role composition to not see a required
1143 method when that method was provided by another role being
1144 composed at the same time. (Dave Rolsky)
1145 - test and bug finding (tokuhirom)
1147 0.55_01 Wed August 20, 2008
1149 !! Calling Moose::init_meta as a function is now !!
1150 !! deprecated. Please see the Moose.pm docs for details. !!
1152 * Moose::Meta::Method::Constructor
1153 - Fix inlined constructor so that values produced by default
1154 or builder methods are coerced as required. (t0m)
1155 - added test for this (t0m)
1157 * Moose::Meta::Attribute
1158 - A lazy attribute with a default or builder did not attempt to
1159 coerce the default value. The immutable code _did_
1161 - added test for this (t0m)
1164 - This is a new helper module for writing "Moose-alike"
1165 modules. This should make the lives of MooseX module authors
1166 much easier. (Dave Rolsky)
1169 * Moose::Cookbook::Meta::Recipe5
1170 - Implemented metaclass traits (and wrote a recipe for it):
1172 use Moose -traits => 'Foo'
1174 This should make writing small Moose extensions a little
1175 easier (Dave Rolsky)
1177 * Moose::Cookbook::Basics::Recipe1
1178 - Removed any examples of direct hashref access, and applied an
1179 editorial axe to reduce verbosity. (Dave Rolsky)
1181 * Moose::Cookbook::Basics::Recipe1
1182 - Also applied an editorial axe here. (Dave Rolsky)
1185 * Moose::Cookbook::Extending::Recipe1
1186 * Moose::Cookbook::Extending::Recipe2
1187 - Rewrote extending and embedding moose documentation and
1188 recipes to use Moose::Exporter (Dave Rolsky)
1192 - These two modules now warn when you load them from the main
1193 package "main" package, because we will not export sugar to
1194 main. Previously it just did nothing. (Dave Rolsky)
1197 - Now provide an init_meta method just like Moose.pm, and you
1198 can call this to provide an alternate role metaclass. (Dave
1199 Rolsky and nothingmuch)
1200 - get_method_map now respects the package cache flag (nothingmuch)
1203 - Two new methods - add_method and wrap_method_body
1207 - Optimizations including allowing constructors to accept hash
1208 refs, making many more classes immutable, and making
1209 constructors immutable. (nothingmuch)
1211 0.55 Sun August 3, 2008
1212 * Moose::Meta::Attribute
1213 - breaking down the way 'handles' methods are
1214 created so that the process can be more easily
1215 overridden by subclasses (stevan)
1217 * Moose::Meta::TypeConstraint
1218 - fixing what is passed into a ->message with
1219 the type constraints (RT #37569)
1220 - added tests for this (Charles Alderman)
1222 * Moose::Util::TypeConstraints
1223 - fix coerce to accept anon types like subtype can (mst)
1226 - reorganized the recipes into sections - Basics, Roles, Meta,
1227 Extending - and wrote abstracts for each section (Dave Rolsky)
1229 * Moose::Cookbook::Basics::Recipe10
1230 - A new recipe that demonstrates operator overloading
1231 in combination with Moose. (bluefeet)
1233 * Moose::Cookbook::Meta::Recipe1
1234 - an introduction to what meta is and why you'd want to make
1235 your own metaclass extensions (Dave Rolsky)
1237 * Moose::Cookbook::Meta::Recipe4
1238 - a very simple metaclass example (Dave Rolsky)
1240 * Moose::Cookbook::Extending::Recipe1
1241 - how to write a Moose-alike module to use your own object base
1244 * Moose::Cookbook::Extending::Recipe2
1245 - how to write modules with an API just like C<Moose.pm> (Dave
1249 - Tons of fixes, both syntactical and grammatical (Dave
1250 Rolsky, Paul Fenwick)
1252 0.54 Thurs. July 3, 2008
1253 ... this is not my day today ...
1255 * Moose::Meta::Attribute
1256 - fixed legal_options_for_inheritance such that
1257 clone_and_inherit options still works for
1258 Class::MOP::Attribute objects and therefore
1259 does not break MooseX::AttributeHelpers
1262 0.53 Thurs. July 3, 2008
1263 * Whoops, I guess I should run 'make manifest' before
1264 actually releasing the module. No actual changes
1265 in this release, except the fact that it includes
1266 the changes that I didn't include in the last
1269 0.52 Thurs. July 3, 2008
1271 - added "FEATURE REQUESTS" section to the Moose docs
1272 to properly direct people (stevan) (RT #34333)
1273 - making 'extends' croak if it is passed a Role since
1274 this is not ever something you want to do
1275 (fixed by stevan, found by obra)
1276 - added tests for this (stevan)
1279 - adding support for DOES (as in UNIVERSAL::DOES)
1281 - added test for this
1283 * Moose::Meta::Attribute
1284 - added legal_options_for_inheritance (wreis)
1285 - added tests for this (wreis)
1287 * Moose::Cookbook::Snacks::*
1288 - removed some of the unfinished snacks that should
1289 not have been released yet. Added some more examples
1290 to the 'Keywords' snack. (stevan)
1292 * Moose::Cookbook::Style
1293 - added general Moose "style guide" of sorts to the
1294 cookbook (nothingmuch) (RT #34335)
1297 - added more BUILDARGS tests (stevan)
1299 0.51 Thurs. Jun 26, 2008
1301 - add unimport so "no Moose::Role" actually does
1304 * Moose::Meta::Role::Application::ToRole
1305 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1306 order to provide its own implementation, that method still got
1307 added to the list of required methods for consumers of
1308 RoleB. Now an aliased method is only added to the list of
1309 required methods if the role doing the aliasing does not
1310 provide its own implementation. See Recipe 11 for an example
1311 of all this. (Dave Rolsky)
1312 - added tests for this
1314 * Moose::Meta::Method::Constructor
1315 - when a single argument that wasn't a hashref was provided to
1316 an immutabilized constructor, the error message was very
1317 unhelpful, as opposed to the non-immutable error. Reported by
1319 - added test for this (Dave Rolsky)
1321 * Moose::Meta::Attribute
1322 - added support for meta_attr->does("ShortAlias") (sartak)
1323 - added tests for this (sartak)
1324 - moved the bulk of the `handles` handling to the new
1325 install_delegation method (Stevan)
1328 - Added BUILDARGS, a new step in new()
1330 * Moose::Meta::Role::Application::RoleSummation
1331 - fix typos no one ever sees (sartak)
1333 * Moose::Util::TypeConstraints
1334 * Moose::Meta::TypeConstraint
1335 * Moose::Meta::TypeCoercion
1336 - Attempt to work around the ??{ } vs. threads issue
1338 - Some null_constraint optimizations
1340 0.50 Thurs. Jun 11, 2008
1341 - Fixed a version number issue by bumping all modules
1344 0.49 Thurs. Jun 11, 2008
1345 !! This version now approx. 20-25% !!
1346 !! faster with new Class::MOP 0.59 !!
1348 * Moose::Meta::Attribute
1349 - fixed how the is => (ro|rw) works with
1350 custom defined reader, writer and accessor
1352 - added docs for this (TODO).
1353 - added tests for this (Thanks to Penfold)
1354 - added the custom attribute alias for regular
1355 Moose attributes which is "Moose"
1356 - fix builder and default both being used
1361 Moose::Meta::Attribute
1363 Moose::Meta::Role::Composite
1364 Moose::Util::TypeConstraints
1365 - switched usage of reftype to ref because
1369 - changing add_package_symbol to use the new
1373 - fixed how DEMOLISHALL is called so that it
1374 can be overrided in subclasses (thanks to Sartak)
1375 - added test for this (thanks to Sartak)
1377 * Moose::Util::TypeConstraints
1378 - move the ClassName type check code to
1379 Class::MOP::is_class_loaded (thanks to Sartak)
1381 * Moose::Cookbook::Recipe11
1382 - add tests for this (thanks to tokuhirom)
1384 0.48 Thurs. May 29, 2008
1385 (early morning release engineering)--
1387 - fixing the version in Moose::Meta::Method::Destructor
1388 which was causing the indexer to choke
1390 0.47 Thurs. May 29, 2008
1391 (late night release engineering)--
1393 - fixing the version is META.yml, no functional
1394 changes in this release
1396 0.46 Wed. May 28, 2008
1397 !! This version now approx. 20-25% !!
1398 !! faster with new Class::MOP 0.57 !!
1400 * Moose::Meta::Class
1401 - some optimizations of the &initialize method
1402 since it is called so often by &meta
1404 * Moose::Meta::Class
1406 - now use the get_all_package_symbols from the
1407 updated Class::MOP, test suite is now 10 seconds
1410 * Moose::Meta::Method::Destructor
1411 - is_needed can now also be called as a class
1412 method for immutablization to check if the
1413 destructor object even needs to be created
1416 * Moose::Meta::Method::Destructor
1417 Moose::Meta::Method::Constructor
1418 - added more descriptive error message to help
1419 keep people from wasting time tracking an error
1420 that is easily fixed by upgrading.
1422 0.45 Saturday, May 24, 2008
1424 - Because of work in Class::MOP 0.57, all
1425 XS based functionality is now optional
1426 and a Pure Perl version is supplied
1427 - the CLASS_MOP_NO_XS environment variable
1428 can now be used to force non-XS versions
1430 - several of the packages have been tweaked
1431 to take care of this, mostly we added
1432 support for the package_name and name
1433 variables in all the Method metaclasses
1434 - before/around/after method modifiers now
1435 support regexp matching of names
1436 (thanks to Takatoshi Kitano)
1437 - tests added for this
1438 - NOTE: this only works for classes, it
1439 is currently not supported in roles,
1440 but, ... patches welcome
1441 - All usage of Carp::confess have been replaced
1442 by Carp::croak in the "keyword" functions since
1443 the stack trace is usually not helpful
1446 - All usage of Carp::confess have been replaced
1447 by Carp::croak in the "keyword" functions since
1448 the stack trace is usually not helpful
1449 - The 'has' keyword for roles now accepts the
1450 same array ref form that Moose.pm does
1451 (has [qw/foo bar/] => (is => 'rw', ...))
1452 - added test for this
1454 * Moose::Meta::Attribute
1455 - trigger on a ro-attribute is no longer an
1456 error, as it's useful to trigger off of the
1459 * Moose::Meta::Class
1460 - added same 'add_package_symbol' fix as in
1464 - does_role now handles non-Moose classes
1466 - added tests for this
1467 - added the 'add_method_modifier' function
1468 (thanks to Takatoshi Kitano)
1470 * Moose::Util::TypeConstraints
1471 - subtypes of parameterizable types now are
1472 themselves parameterizable types
1474 * Moose::Meta::Method::Constructor
1475 - fixed bug where trigger was not being
1476 called by the inlined immutable
1478 - added test for this (thanks to Caelum)
1480 * Moose::Meta::Role::Application::ToInstance
1481 - now uses the metaclass of the instance
1482 (if possible) to create the anon-class
1483 (thanks Jonathan Rockway)
1485 * Moose::Cookbook::Recipe22
1486 - added the meta-attribute trait recipe
1490 - fixed hash-ordering test bug that was
1491 causing occasional cpantester failures
1492 - renamed the t/000_recipe/*.t tests to be
1493 more descriptive (thanks to Sartak)
1495 0.44 Sat. May 10, 2008
1497 - made make_immutable warning cluck to
1498 show where the error is (thanks mst)
1501 - BUILDALL and DEMOLISHALL now call
1502 ->body when looping through the
1503 methods, to avoid the overloaded
1505 - fixed issue where DEMOLISHALL was
1506 eating the $@ values, and so not
1507 working correctly, it still kind of
1508 eats them, but so does vanilla perl
1509 - added tests for this
1511 * Moose::Cookbook::Recipe7
1512 - added new recipe for immutable
1513 functionality (thanks Dave Rolsky)
1515 * Moose::Cookbook::Recipe9
1516 - added new recipe for builder and
1517 lazy_build (thanks Dave Rolsky)
1519 * Moose::Cookbook::Recipe11
1520 - added new recipe for method aliasing
1521 and exclusion with Roles (thanks Dave Rolsky)
1524 - fixed Win32 test failure (thanks spicyjack)
1526 ~ removed Build.PL and Module::Build compat
1527 since Module::Install has done that.
1529 0.43 Wed. April, 30, 2008
1531 drink more coffee before
1532 doing release engineering
1534 - whoops, forgot to do the smolder tests,
1535 and we broke some of the custom meta-attr
1536 modules. This fixes that.
1538 0.42 Mon. April 28, 2008
1539 - some bad tests slipped by, nothing else
1540 changed in this release (cpantesters++)
1542 - upped the Class::MOP dependency to 0.55
1543 since we have tests which need the C3
1546 0.41 Mon. April 28, 2008
1547 ~~ numerous documentation updates ~~
1549 - Changed all usage of die to Carp::croak for better
1550 error reporting (initial patch by Tod Hagan)
1552 ** IMPORTANT NOTE **
1553 - the make_immutable keyword is now deprecated, don't
1554 use it in any new code and please fix your old code
1555 as well. There will be 2 releases, and then it will
1561 - refactored the way inner and super work to avoid
1562 any method/@ISA cache penalty (nothingmuch)
1564 * Moose::Meta::Class
1565 - fixing &new_object to make sure trigger gets the
1566 coerced value (spotted by Charles Alderman on the
1568 - added test for this
1570 * Moose::Meta::Method::Constructor
1571 - immutable classes which had non-lazy attributes were calling
1572 the default generating sub twice in the constructor. (bug
1573 found by Jesse Luehrs, fixed by Dave Rolsky)
1574 - added tests for this (Dave Rolsky)
1575 - fix typo in initialize_body method (nothingmuch)
1577 * Moose::Meta::Method::Destructor
1578 - fix typo in initialize_body method (nothingmuch)
1580 * Moose::Meta::Method::Overriden
1581 Moose::Meta::Method::Augmented
1582 - moved the logic for these into their own
1583 classes (nothingmuch)
1585 * Moose::Meta::Attribute
1586 - inherited attributes may now be extended without
1587 restriction on the type ('isa', 'does') (Sartak)
1588 - added tests for this (Sartak)
1589 - when an attribute property is malformed (such as lazy without
1590 a default), give the name of the attribute in the error
1592 - added the &applied_traits and &has_applied_traits methods
1593 to allow introspection of traits
1594 - added tests for this
1595 - moved 'trait' and 'metaclass' argument handling to here from
1597 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1598 '+foo' syntax) (nothingmuch)
1599 - added tests for this (t0m)
1602 - localize $@ inside DEMOLISHALL to avoid it
1603 eating $@ (found by Ernesto)
1604 - added test for this (thanks to Ernesto)
1606 * Moose::Util::TypeConstraints
1607 - &find_type_constraint now DWIMs when given an
1608 type constraint object or name (nothingmuch)
1609 - &find_or_create_type_constraint superseded with a number of more
1611 - find_or_create_{isa,does}_type_constraint
1612 - find_or_parse_type_constraint
1614 * Moose::Meta::TypeConstraint
1615 Moose::Meta::TypeConstraint::Class
1616 Moose::Meta::TypeConstraint::Role
1617 Moose::Meta::TypeConstraint::Enum
1618 Moose::Meta::TypeConstraint::Union
1619 Moose::Meta::TypeConstraint::Parameterized
1620 - added the &equals method for comparing two type
1621 constraints (nothingmuch)
1622 - added tests for this (nothingmuch)
1624 * Moose::Meta::TypeConstraint
1625 - add the &parents method, which is just an alias to &parent.
1626 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1628 * Moose::Meta::TypeConstraint::Class
1629 - added the class attribute for introspection purposes
1631 - added tests for this
1633 * Moose::Meta::TypeConstraint::Enum
1634 Moose::Meta::TypeConstraint::Role
1635 - broke these out into their own classes (nothingmuch)
1637 * Moose::Cookbook::Recipe*
1638 - fixed references to test file locations in the POD
1639 and updated up some text for new Moose features
1643 - Added &resolve_metaclass_alias, a helper function for finding an actual
1644 class for a short name (e.g. in the traits list)
1646 0.40 Fri. March 14, 2008
1647 - I hate Pod::Coverage
1649 0.39 Fri. March 14, 2008
1651 - documenting the use of '+name' with attributes
1652 that come from recently composed roles. It makes
1653 sense, people are using it, and so why not just
1654 officially support it.
1655 - fixing the 'extends' keyword so that it will not
1656 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1659 - added the perl -Moose=+Class::Name feature to allow
1660 monkeypatching of classes in one liners
1663 - fixing the 'apply_all_roles' keyword so that it will not
1664 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1666 * Moose::Meta::Class
1667 - added ->create method which now supports roles (thanks to jrockway)
1668 - added tests for this
1669 - added ->create_anon_class which now supports roles and caching of
1670 the results (thanks to jrockway)
1671 - added tests for this
1672 - made ->does_role a little more forgiving when it is
1673 checking a Class::MOP era metaclasses.
1675 * Moose::Meta::Role::Application::ToInstance
1676 - it is now possible to pass extra params to be used when
1677 a role is applied to an the instance (rebless_params)
1678 - added tests for this
1680 * Moose::Util::TypeConstraints
1681 - class_type now accepts an optional second argument for a
1682 custom message. POD anotated accordingly (groditi)
1683 - added tests for this
1684 - it is now possible to make anon-enums by passing 'enum' an
1685 ARRAY ref instead of the $name => @values. Everything else
1687 - added tests for this
1690 - making test for using '+name' on attributes consumed
1691 from a role, it works and makes sense too.
1693 * Moose::Meta::Attribute
1694 - fix handles so that it doesn't return nothing
1695 when the method cannot be found, not sure why
1696 it ever did this originally, this means we now
1697 have slightly better support for AUTOLOADed
1699 - added more delegation tests
1700 - adding ->does method to this so as to better
1701 support traits and their introspection.
1702 - added tests for this
1705 - localizing the Data::Dumper configurations so
1706 that it does not pollute others (RT #33509)
1707 - made ->does a little more forgiving when it is
1708 passed Class::MOP era metaclasses.
1710 0.38 Fri. Feb. 15, 2008
1711 * Moose::Meta::Attribute
1712 - fixed initializer to correctly do
1713 type checking and coercion in the
1715 - added tests for this
1718 - fixed some finicky tests (thanks to konobi)
1720 0.37 Thurs. Feb. 14, 2008
1722 - fixed some details in Moose::init_meta
1723 and its superclass handling (thanks thepler)
1724 - added tests for this (thanks thepler)
1725 - 'has' now dies if you don't pass in name
1727 - added the 'make_immutable' keyword as a shortcut
1730 * Moose::Meta::Class
1731 Moose::Meta::Method::Constructor
1732 Moose::Meta::Attribute
1733 - making (init_arg => undef) work here too
1734 (thanks to nothingmuch)
1736 * Moose::Meta::Attribute
1737 Moose::Meta::Method::Constructor
1738 Moose::Meta::Method::Accessor
1739 - make lazy attributes respect attr initializers (rjbs)
1740 - added tests for this
1742 * Moose::Util::TypeConstraints
1743 Moose::Util::TypeConstraints::OptimizedConstraints
1744 Moose::Meta::TypeConstraints
1745 Moose::Meta::Attribute
1746 Moose::Meta::Method::Constructor
1747 Moose::Meta::Method::Accessor
1748 - making type errors use the
1749 assigned message (thanks to Sartak)
1750 - added tests for this
1752 * Moose::Meta::Method::Destructor
1753 - making sure DESTROY gets inlined properly
1754 with successive DEMOLISH calls (thanks to manito)
1756 * Moose::Meta::Attribute
1757 Moose::Meta::Method::Accessor
1758 - fixed handling of undef with type constraints
1760 - added tests for this
1763 - added &get_all_init_args and &get_all_attribute_values
1764 (thanks to Sartak and nothingmuch)
1766 0.36 Sat. Jan. 26, 2008
1768 Moose::Meta::Attribute
1769 - role type tests now support when roles are
1770 applied to non-Moose classes (found by ash)
1771 - added tests for this (thanks to ash)
1772 - couple extra tests to boost code coverage
1774 * Moose::Meta::Method::Constructor
1775 - improved fix for handling Class::MOP attributes
1776 - added test for this
1778 * Moose::Meta::Class
1779 - handled the add_attribute($attribute_meta_object)
1781 - added test for this
1783 0.35 Tues. Jan. 22, 2008
1784 * Moose::Meta::Method::Constructor
1785 - fix to make sure even Class::MOP attributes
1786 are handled correctly (Thanks to Dave Rolsky)
1787 - added test for this (also Dave Rolsky)
1789 * Moose::Meta::Class
1790 - improved error message on _apply_all_roles,
1791 you should now use Moose::Util::apply_all_roles
1792 and you shouldnt have been using a _ prefixed
1793 method in the first place ;)
1795 0.34 Mon. Jan. 21, 2008
1796 ~~~ more misc. doc. fixes ~~~
1797 ~~ updated copyright dates ~~
1799 Moose is now a postmodern object system :)
1800 - (see the POD for details)
1802 * <<Role System Refactoring>>
1803 - this release contains a major reworking and
1804 cleanup of the role system
1805 - 100% backwards compat.
1806 - Role application now restructured into seperate
1807 classes based on type of applicants
1808 - Role summation (combining of more than one role)
1809 is much cleaner and anon-classes are no longer
1810 used in this process
1811 - new Composite role metaclass
1812 - runtime application of roles to instances
1813 is now more efficient and re-uses generated
1814 classes when applicable
1816 * <<New Role composition features>>
1817 - methods can now be excluded from a given role
1819 - methods can now be aliased to another name (and
1820 still retain the original as well)
1822 * Moose::Util::TypeConstraints::OptimizedConstraints
1823 - added this module (see above)
1825 * Moose::Meta::Class
1826 - fixed the &_process_attribute method to be called
1827 by &add_attribute, so that the API is now correct
1829 * Moose::Meta::Method::Accessor
1830 - fixed bug when passing a list of values to
1831 an accessor would get (incorrectly) ignored.
1832 Thanks to Sartak for finding this ;)
1833 - added tests for this (Sartak again)
1835 * Moose::Meta::Method::Accessor
1836 Moose::Meta::Method::Constructor
1837 Moose::Meta::Attribute
1838 Moose::Meta::TypeConstraint
1839 Moose::Meta::TypeCoercion
1840 - lots of cleanup of such things as:
1842 - type constraint handling
1843 - error handling/messages
1844 (thanks to nothingmuch)
1846 * Moose::Meta::TypeConstraint::Parameterizable
1847 - added this module to support the refactor
1848 in Moose::Meta::TypeConstraint::Parameterized
1850 * Moose::Meta::TypeConstraint::Parameterized
1851 - refactored how these types are handled so they
1852 are more generic and not confined to ArrayRef
1856 - shortened some file names for better VMS support (RT #32381)
1858 0.33 Fri. Dec. 14, 2007
1859 !! Moose now loads 2 x faster !!
1860 !! with new Class::MOP 0.49 !!
1862 ++ new oose.pm module to make command line
1863 Moose-ness easier (see POD docs for more)
1865 * Moose::Meta::Class
1867 - several tweaks to take advantage of the
1868 new method map caching in Class::MOP
1870 * Moose::Meta::TypeConstraint::Parameterized
1871 - allow subtypes of ArrayRef and HashRef to
1872 be used as a container (sartak)
1873 - added tests for this
1874 - basic support for coercion to ArrayRef and
1875 HashRef for containers (sartak)
1876 - added tests for this
1878 * Moose::Meta::TypeCoercion
1879 - coercions will now create subtypes as needed
1880 so you can now add coercions to parameterized
1881 types without having to explictly define them
1882 - added tests for this
1884 * Moose::Meta::Method::Accessor
1885 - allow subclasses to decide whether we need
1886 to copy the value into a new variable (sartak)
1888 0.32 Tues. Dec. 4, 2007
1889 * Moose::Util::TypeConstraints
1890 - fixing how subtype aliases of unions work
1891 they should inherit the parent's coercion
1892 - added tests for this
1893 - you can now define multiple coercions on
1894 a single type at different times instead of
1895 having to do it all in one place
1896 - added tests for this
1898 * Moose::Meta::TypeConstraint
1899 - there is now a default constraint of sub { 1 }
1900 instead of Moose::Util::TypeConstraints setting
1903 * Moose::Meta::TypeCoercion
1904 * Moose::Meta::TypeCoercion::Union
1905 - added the &has_coercion_for_type and
1906 &add_type_coercions methods to support the
1907 new features above (although you cannot add
1908 more type coercions for Union types)
1910 0.31 Mon. Nov. 26, 2007
1911 * Moose::Meta::Attribute
1912 - made the +attr syntax handle extending types with
1913 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1914 now works if the original foo is an ArrayRef.
1915 - added tests for this.
1916 - delegation now works even if the attribute does not
1917 have a reader method using the get_read_method_ref
1918 method from Class::MOP::Attribute.
1919 - added tests for this
1920 - added docs for this
1922 * Moose::Util::TypeConstraints
1923 - passing no "additional attribute info" to
1924 &find_or_create_type_constraint will no longer
1925 attempt to create an __ANON__ type for you,
1926 instead it will just return undef.
1927 - added docs for this
1929 0.30 Fri. Nov. 23, 2007
1930 * Moose::Meta::Method::Constructor
1931 -builder related bug in inlined constructor. (groditi)
1933 * Moose::Meta::Method::Accessor
1934 - genereate unnecessary calls to predicates and refactor
1935 code generation for runtime speed (groditi)
1937 * Moose::Util::TypeConstraints
1938 - fix ClassName constraint to introspect symbol table (mst)
1939 - added more tests for this (mst)
1940 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1941 with work correctly.
1942 - added tests for this
1945 - adding the link to Recipie 11 (written by Sartak)
1946 - adding test for SYNOPSIS code
1949 - New tests for builder bug. Upon instantiation, if an
1950 attribute had a builder, no value and was not lazy the
1951 builder default was not getting run, oops. (groditi)
1953 0.29 Tues. Nov. 13, 2007
1954 * Moose::Meta::Attribute
1955 - Fix error message on missing builder method (groditi)
1957 * Moose::Meta::Method::Accessor
1958 - Fix error message on missing builder method (groditi)
1961 - Add test to check for the correct error message when
1962 builder method is missing (groditi)
1964 0.28 Tues. Nov. 13, 2007
1965 - 0.27 packaged incorrectly (groditi)
1967 0.27 Tues. Nov. 13, 2007
1968 * Moose::Meta::Attribute
1969 - Added support for the new builder option (groditi)
1970 - Added support for lazy_build option (groditi)
1971 - Changed slot initialization for predicate changes (groditi)
1973 * Moose::Meta::Method::Accessor
1974 - Added support for lazy_build option (groditi)
1975 - Fix inline methods to work with corrected predicate
1978 * Moose::Meta::Method::Constructor
1979 - Added support for lazy_build option (groditi)
1982 - tests for builder and lazy_build (groditi)
1984 * fixing some misc. bits in the docs that
1985 got mentioned on CPAN Forum & perlmonks
1988 - fixed how required methods are handled
1989 when they encounter overriden or modified
1990 methods from a class (thanks to confound).
1991 - added tests for this
1993 * Moose::Util::TypeConstraint
1994 - fixed the type notation parser so that
1995 the | always creates a union and so is
1996 no longer a valid type char (thanks to
1997 konobi, mugwump and #moose for working
1999 - added more tests for this
2001 0.26 Thurs. Sept. 27, 2007
2004 * Parameterized Types
2005 We now support parameterized collection types, such as:
2006 ArrayRef[Int] # array or integers
2007 HashRef[Object] # a hash with object values
2008 They can also be nested:
2009 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2010 And work with the type unions as well:
2011 ArrayRef[Int | Str] # array of integers of strings
2013 * Better Framework Extendability
2014 Moose.pm is now "extendable" such that it is now much
2015 easier to extend the framework and add your own keywords
2016 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2017 section of the Moose.pm docs.
2020 In an effort to begin documenting some of the various
2021 details of Moose as well as some common idioms, we have
2022 created Moose::Cookbook::Snacks as a place to find
2023 small (easily digestable) nuggets of Moose code.
2026 ~ Several doc updates/cleanup thanks to castaway ~
2028 - converted build system to use Module::Install instead of
2029 Module::Build (thanks to jrockway)
2032 - added all the meta classes to the immutable list and
2033 set it to inline the accessors
2034 - fix import to allow Sub::Exporter like { into => }
2035 and { into_level => } (perigrin)
2036 - exposed and documented init_meta() to allow better
2037 embedding and extending of Moose (perigrin)
2040 - complete re-organization of the test suite
2041 - added some new tests as well
2042 - finally re-enabled the Moose::POOP test since
2043 the new version of DBM::Deep now works again
2046 * Moose::Meta::Class
2047 - fixed very odd and very nasty recursion bug with
2049 - added tests for this (eilara)
2051 * Moose::Meta::Attribute
2052 Moose::Meta::Method::Constructor
2053 Moose::Meta::Method::Accessor
2054 - fixed issue with overload::Overloaded getting called
2055 on non-blessed items. (RT #29269)
2056 - added tests for this
2058 * Moose::Meta::Method::Accessor
2059 - fixed issue with generated accessor code making
2060 assumptions about hash based classes (thanks to dexter)
2062 * Moose::Coookbook::Snacks
2063 - these are bits of documentation, not quite as big as
2064 Recipes but which have no clear place in the module docs.
2065 So they are Snacks! (horray for castaway++)
2067 * Moose::Cookbook::Recipe4
2068 - updated it to use the new ArrayRef[MyType] construct
2069 - updated the accompanying test as well
2071 +++ Major Refactor of the Type Constraint system +++
2072 +++ with new features added as well +++
2074 * Moose::Util::TypeConstraint
2075 - no longer uses package variable to keep track of
2076 the type constraints, now uses the an instance of
2077 Moose::Meta::TypeConstraint::Registry to do it
2078 - added more sophisticated type notation parsing
2080 - added tests for this
2082 * Moose::Meta::TypeConstraint
2083 - some minor adjustments to make subclassing easier
2084 - added the package_defined_in attribute so that we
2085 can track where the type constraints are created
2087 * Moose::Meta::TypeConstraint::Union
2088 - this is now been refactored to be a subclass of
2089 Moose::Meta::TypeConstraint
2091 * Moose::Meta::TypeCoercion::Union
2092 - this has been added to service the newly refactored
2093 Moose::Meta::TypeConstraint::Union and is itself
2094 a subclass of Moose::Meta::TypeCoercion
2096 * Moose::Meta::TypeConstraint::Parameterized
2097 - added this module (taken from MooseX::AttributeHelpers)
2098 to help construct nested collection types
2099 - added tests for this
2101 * Moose::Meta::TypeConstraint::Registry
2102 - added this class to keep track of type constraints
2104 0.25 Mon. Aug. 13, 2007
2106 - Documentation update to reference Moose::Util::TypeConstraints
2107 under 'isa' in 'has' for how to define a new type
2108 (thanks to shlomif).
2110 * Moose::Meta::Attribute
2111 - required attributes now will no longer accept undef
2112 from the constructor, even if there is a default and lazy
2113 - added tests for this
2114 - default subroutines must return a value which passes the
2116 - added tests for this
2118 * Moose::Meta::Attribute
2119 * Moose::Meta::Method::Constructor
2120 * Moose::Meta::Method::Accessor
2121 - type-constraint tests now handle overloaded objects correctly
2122 in the error message
2123 - added tests for this (thanks to EvanCarroll)
2125 * Moose::Meta::TypeConstraint::Union
2126 - added (has_)hand_optimized_constraint to this class so that
2127 it behaves as the regular Moose::Meta::TypeConstraint does.
2130 - large refactoring of this code
2131 - added several more tests
2132 - tests for subtle conflict resolition issues
2133 added, but not currently running
2136 * Moose::Cookbook::Recipe7
2137 - added new recipe for augment/inner functionality
2139 - added test for this
2142 - a formal definition of roles (still in progress)
2145 - utilities for easier working with Moose classes
2146 - added tests for these
2149 - This contains Moose specific test functions
2150 - added tests for these
2152 0.24 Tues. July 3, 2007
2153 ~ Some doc updates/cleanup ~
2155 * Moose::Meta::Attribute
2156 - added support for roles to be given as parameters
2157 to the 'handles' option.
2158 - added tests and docs for this
2159 - the has '+foo' attribute form now accepts changes to
2160 the lazy option, and the addition of a handles option
2161 (but not changing the handles option)
2162 - added tests and docs for this
2165 - required methods are now fetched using find_method_by_name
2166 so that required methods can come from superclasses
2167 - adjusted tests for this
2169 0.23 Mon. June 18, 2007
2170 * Moose::Meta::Method::Constructor
2171 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2172 * Moose::Meta::Class
2173 - Modify make_immutable to work with the new Class::MOP immutable
2174 mechanism + POD + very basic test (groditi)
2175 * Moose::Meta::Attribute
2176 - Fix handles to use goto() so that caller() comes out properly on
2177 the other side (perigrin)
2179 0.22 Thurs. May 31, 2007
2180 * Moose::Util::TypeConstraints
2181 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2182 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2183 prototypes for functions
2184 - added the ClassName type constraint, this checks for strings
2185 which will respond true to ->isa(UNIVERSAL).
2186 - added tests and docs for this
2187 - subtyping just in name now works correctly by making the
2188 default for where be { 1 }
2189 - added test for this
2191 * Moose::Meta::Method::Accessor
2192 - coerce and lazy now work together correctly, thanks to
2193 merlyn for finding this bug
2194 - tests added for this
2195 - fix reader presedence bug in Moose::Meta::Attribute + tests
2198 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2199 a HASH-ref and missed. This produces better error messages then
2200 having it die cause undef is not a HASH.
2201 - added tests for this
2203 0.21 Thursday, May 2nd, 2007
2205 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2206 - modified unimport to remove super and inner along with the rest
2207 - altered unimport tests to handle this
2210 - altered super export to populate SUPER_SLOT
2212 * Moose::Meta::Class
2213 - altered augment and override modifier application to use *_SLOT
2214 - modified tests for these to unimport one test class each to test
2217 - fixed issue where custom attribute metaclasses
2218 where not handled correctly in roles
2219 - added tests for this
2221 * Moose::Meta::Class
2222 - fixed issue where extending metaclasses with
2223 roles would blow up. Thanks to Aankhen`` for
2224 finding this insidious error, and it's solution.
2226 ~~ lots of spelling and grammer fixes in the docs,
2227 many many thanks to rlb3 and Aankhen for these :)
2229 0.20 Friday, April 6th, 2007
2230 >> I messed up the SKIP logic in one test
2231 so this release is just to fix that.
2234 - 'has' now also accepts an ARRAY ref
2235 to create multiple attrs (see docs)
2236 (thanks to konobi for this)
2237 - added tests and docs
2239 0.19 Thurs. April 5th, 2007
2240 ~~ More documentation updates ~~
2242 * Moose::Util::TypeConstraints
2243 - 'type' now supports messages as well
2244 thanks to phaylon for finding this
2245 - added tests for this
2246 - added &list_all_type_constraints and
2247 &list_all_builtin_type_constraints
2248 functions to facilitate introspection.
2250 * Moose::Meta::Attribute
2251 - fixed regexp 'handles' declarations
2252 to build the list of delegated methods
2253 correctly (and not override important
2254 things like &new) thanks to ashleyb
2256 - added tests and docs for this
2257 - added the 'documentation' attributes
2258 so that you can actually document your
2259 attributes and inspect them through the
2261 - added tests and docs for this
2263 * Moose::Meta::Class
2264 - when loading custom attribute metaclasses
2265 it will first look in for the class in the
2266 Moose::Meta::Attribute::Custom::$name, and
2267 then default to just loading $name.
2268 - added tests and docs for this
2270 * Moose::Meta::TypeConstraint
2271 - type constraints now stringify to their names.
2272 - added test for this
2275 - added tests to assure we work with Module::Refresh
2276 - added stricter test skip logic in the Moose POOP
2277 test, ask Rob Kinyon why.
2278 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2280 0.18 Sat. March 10, 2007
2281 ~~ Many, many documentation updates ~~
2284 - We now use Class::MOP::load_class to
2286 - added tests to show types and subtypes
2287 working with Declare::Constraints::Simple
2288 and Test::Deep as constraint engines.
2291 !! You must have Class::MOP 0.37_001 !!
2292 !! for this developer release to work !!
2294 This release was primarily adding the immutable
2295 feature to Moose. An immutable class is one which
2296 you promise not to alter. When you set the class
2297 as immutable it will perform various bits of
2298 memoization and inline certain part of the code
2299 (constructors, destructors and accessors). This
2300 minimizes (and in some cases totally eliminates)
2301 one of Moose's biggest performance hits. This
2302 feature is not on by default, and is 100% optional.
2303 It has several configurable bits as well, so you
2304 can pick and choose to your specific needs.
2306 The changes involved in this were fairly wide and
2307 highly specific, but 100% backwards compatible, so
2308 I am not going to enumerate them here. If you are
2309 truely interested in what was changed, please do
2312 0.17 Tues. Nov. 14, 2006
2313 * Moose::Meta::Method::Accessor
2314 - bugfix for read-only accessors which
2315 are have a type constraint and lazy.
2316 Thanks to chansen for finding it.
2318 0.16 Tues. Nov. 14, 2006
2320 There are some speed improvements in this release,
2321 but they are only the begining, so stay tuned.
2324 - BUILDALL and DEMOLISHALL no longer get
2325 called unless they actually need to be.
2326 This gave us a signifigant speed boost
2327 for the cases when there is no BUILD or
2328 DEMOLISH method present.
2330 * Moose::Util::TypeConstraints
2331 * Moose::Meta::TypeConstraint
2332 - added an 'optimize_as' option to the
2333 type constraint, which allows for a
2334 hand optimized version of the type
2335 constraint to be used when possible.
2336 - Any internally created type constraints
2337 now provide an optimized version as well.
2339 0.15 Sun. Nov. 5, 2006
2341 This version of Moose *must* have Class::MOP 0.36 in order
2342 to work correctly. A number of small internal tweaks have
2343 been made in order to be compatible with that release.
2345 * Moose::Util::TypeConstraints
2346 - added &unimport so that you can clean out
2347 your class namespace of these exported
2350 * Moose::Meta::Class
2351 - fixed minor issue which occasionally
2352 comes up during global destruction
2354 - moved Moose::Meta::Method::Overriden into
2358 - moved Moose::Meta::Role::Method into
2361 * Moose::Meta::Attribute
2362 - changed how we do type checks so that
2363 we reduce the overall cost, but still
2366 - moved accessor generation methods to
2367 Moose::Meta::Method::Accessor to
2368 conform to the API changes from
2371 * Moose::Meta::TypeConstraint
2372 - changed how constraints are compiled
2373 so that we do less recursion and more
2374 iteration. This makes the type check
2376 - moved Moose::Meta::TypeConstraint::Union
2379 * Moose::Meta::Method::Accessor
2380 - created this from methods formerly found in
2381 Moose::Meta::Attribute
2383 * Moose::Meta::Role::Method
2384 - moved this from Moose::Meta::Role
2386 * Moose::Meta::Method::Overriden
2387 - moved this from Moose::Meta::Class
2389 * Moose::Meta::TypeConstraint::Union
2390 - moved this from Moose::Meta::TypeConstraint
2392 0.14 Mon. Oct. 9, 2006
2394 * Moose::Meta::Attribute
2395 - fixed lazy attributes which were not getting
2396 checked with the type constraint (thanks ashley)
2397 - added tests for this
2398 - removed the over-enthusiastic DWIMery of the
2399 automatic ArrayRef and HashRef defaults, it
2400 broke predicates in an ugly way.
2401 - removed tests for this
2403 0.13 Sat. Sept. 30, 2006
2405 This version of Moose *must* have Class::MOP 0.35 in order
2406 to work correctly. A number of small internal tweaks have
2407 been made in order to be compatible with that release.
2410 - Removed the use of UNIVERSAL::require to be a better
2411 symbol table citizen and remove a dependency
2412 (thanks Adam Kennedy)
2414 **~~ removed experimental & undocumented feature ~~**
2415 - commented out the 'method' and 'self' keywords, see the
2416 comments for more info.
2419 - added a FAQ and WTF files to document frequently
2420 asked questions and common problems
2422 * Moose::Util::TypeConstraints
2423 - added GlobRef and FileHandle type constraint
2424 - added tests for this
2426 * Moose::Meta::Attribute
2427 - if your attribute 'isa' ArrayRef of HashRef, and you have
2428 not explicitly set a default, then make the default DWIM.
2429 This will also work for subtypes of ArrayRef and HashRef
2431 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2432 - new test added for this (thanks to ashley)
2435 - added basic support for runtime role composition
2436 but this is still *highly experimental*, so feedback
2437 is much appreciated :)
2438 - added tests for this
2440 * Moose::Meta::TypeConstraint
2441 - the type constraint now handles the coercion process
2442 through delegation, this is to support the coercion
2445 * Moose::Meta::TypeConstraint::Union
2446 - it is now possible for coercions to be performed
2448 - added tests for this (thanks to konobi)
2450 * Moose::Meta::TypeCoercion
2451 - properly capturing error when type constraint
2455 - Scalar::Util 1.18 is bad on Win32, so temporarily
2456 only require version 1.17 for Win32 and cygwin.
2457 (thanks Adam Kennedy)
2459 0.12 Sat. Sept. 1, 2006
2461 - Recipe5 (subtypes & coercion) has been written
2464 - fixed "bad meta" error message to be more descriptive
2465 - fixed &unimport to not remove the &inner and &super
2466 keywords because we need to localize them.
2467 - fixed number of spelling/grammer issues, thanks Theory :)
2469 **~~ experimental & undocumented feature ~~**
2470 - added the method and self keywords, they are basically
2471 just sugar, and they may not stay around.
2474 - added &dump method to easily Data::Dumper
2477 * Moose::Meta::TypeConstraint
2478 - added the &is_a_type_of method to check both the current
2479 and the subtype of a method (similar to &isa with classes)
2482 - this is now a subclass of Class::MOP::Module, and no longer
2483 creates the _role_meta ugliness of before.
2484 - fixed tests to reflect this change
2486 0.11 Wed. July 12, 2006
2488 - added an &unimport method to remove all the keywords
2489 that Moose will import, simply add 'no Moose' to the
2490 bottom of your class file.
2493 - fixed some test failures caused by a forgotten test
2496 0.10 Thurs. July 6, 2006
2498 - improved error message when loading modules so
2499 it is less confusing when you load a role.
2500 - added &calculate_all_roles method to
2501 Moose::Meta::Class and Moose::Meta::Role
2504 This module has been tested against Class::MOP 0.30
2505 but it does not yet utilize the optimizations
2506 it makes available. Stay tuned for that ;)
2508 0.09_03 Fri. June 23, 2006
2509 ++ DEVELOPER RELEASE ++
2511 - 'use strict' and 'use warnings' are no longer
2512 needed in Moose classes, Moose itself will
2513 turn them on for you.
2514 - added tests for this
2515 - moved code from exported subs to private methods
2516 in Moose::Meta::Class
2519 - as with Moose, strict and warnings are
2520 automatically turned on for you.
2521 - added tests for this
2524 - now handles an edge case for override errors
2525 - added tests for this
2526 - added some more edge case tests
2528 0.09_02 Tues. May 16, 2006
2529 ++ DEVELOPER RELEASE ++
2531 - added prototypes to the exported subs
2535 - added prototypes to the exported subs
2538 * Moose::Util::TypeConstraints
2539 - cleaned up prototypes for the subs
2542 0.09_01 Fri. May 12, 2006
2543 ++ DEVELOPER RELEASE ++
2544 - This release works in combination with
2545 Class::MOP 0.29_01, it is a developer
2546 release because it uses the a new
2547 instance sub-protocol and a fairly
2548 complete Role implementation. It has
2549 not yet been optimized, so it slower
2550 the the previous CPAN version. This
2551 release also lacks good updated docs,
2552 the official release will have updated docs.
2555 - refactored the keyword exports
2556 - 'with' now checks Role validaity and
2557 accepts more than one Role at a time
2558 - 'extends' makes metaclass adjustments as
2559 needed to ensure metaclass compatibility
2562 - refactored the keyword exports
2563 - 'with' now checks Role validaity and
2564 accepts more than one Role at a time
2566 * Moose::Util::TypeConstraints
2567 - added the 'enum' keyword for simple
2568 string enumerations which can be used as
2570 - see example of usage in t/202_example.t
2573 - more careful checking of params to new()
2576 - much work done on the role composition
2577 - many new tests for conflict detection
2578 and composition edge cases
2579 - not enough documentation, I suggest
2580 looking at the tests
2582 * Moose::Meta::Instance
2583 - added new Instance metaclass to support
2584 the new Class::MOP instance protocol
2586 * Moose::Meta::Class
2587 - some small changes to support the new
2589 - some small additions to support Roles
2591 * Moose::Meta::Attribute
2592 - some improvements to the accessor generation code
2594 - some small changes to support the new
2596 - (still somewhat) experimental delegation support
2597 with the 'handles' option
2598 - added several tests for this
2599 - no docs for this yet
2601 0.05 Thurs. April 27, 2006
2603 - keywords are now exported with Sub::Exporter
2604 thanks to chansen for this commit
2605 - has keyword now takes a 'metaclass' option
2606 to support custom attribute meta-classes
2607 on a per-attribute basis
2608 - added tests for this
2609 - the 'has' keyword not accepts inherited slot
2610 specifications (has '+foo'). This is still an
2611 experimental feature and probably not finished
2612 see t/038_attribute_inherited_slot_specs.t for
2613 more details, or ask about it on #moose
2614 - added tests for this
2617 - keywords are now exported with Sub::Exporter
2619 * Moose::Utils::TypeConstraints
2620 - reorganized the type constraint hierarchy, thanks
2621 to nothingmuch and chansen for his help and advice
2623 - added some tests for this
2624 - keywords are now exported with Sub::Exporter
2625 thanks to chansen for this commit
2627 * Moose::Meta::Class
2628 - due to changes in Class::MOP, we had to change
2629 construct_instance (for the better)
2631 * Moose::Meta::Attribute
2632 - due to changes in Class::MOP, we had to add the
2633 initialize_instance_slot method (it's a good thing)
2635 * Moose::Meta::TypeConstraint
2636 - added type constraint unions
2637 - added tests for this
2638 - added the is_subtype_of predicate method
2639 - added tests for this
2641 0.04 Sun. April 16th, 2006
2643 - Roles can now consume other roles
2644 - added tests for this
2645 - Roles can specify required methods now with
2646 the requires() keyword
2647 - added tests for this
2650 - ripped out much of it's guts ,.. much cleaner now
2651 - added required methods and correct handling of
2652 them in apply() for both classes and roles
2653 - added tests for this
2654 - no longer adds a does() method to consuming classes
2655 it relys on the one in Moose::Object
2656 - added roles attribute and some methods to support
2657 roles consuming roles
2659 * Moose::Meta::Attribute
2660 - added support for triggers on attributes
2661 - added tests for this
2662 - added support for does option on an attribute
2663 - added tests for this
2665 * Moose::Meta::Class
2666 - added support for attribute triggers in the
2668 - added tests for this
2671 - Moose no longer creates a subtype for your class
2672 if a subtype of the same name already exists, this
2673 should DWIM in 99.9999% of all cases
2675 * Moose::Util::TypeConstraints
2676 - fixed bug where incorrect subtype conflicts were
2678 - added test for this
2681 - this class can now be extended with 'use base' if
2682 you need it, it properly loads the metaclass class now
2683 - added test for this
2685 0.03_02 Wed. April 12, 2006
2687 - you must now explictly use Moose::Util::TypeConstraints
2688 it no longer gets exported for you automatically
2691 - new() now accepts hash-refs as well as key/value lists
2692 - added does() method to check for Roles
2693 - added tests for this
2695 * Moose::Meta::Class
2696 - added roles attribute along with the add_role() and
2698 - added tests for this
2701 - now adds a does() method to consuming classes
2702 which tests the class's hierarchy for roles
2703 - added tests for this
2705 0.03_01 Mon. April 10, 2006
2707 - added new Role recipe (no content yet, only code)
2710 - added 'with' keyword for Role support
2711 - added test and docs for this
2712 - fixed subtype quoting bug
2713 - added test for this
2717 - added test and docs
2719 * Moose::Util::TypeConstraints
2720 - added the message keyword to add custom
2721 error messages to type constraints
2724 - the meta role to support Moose::Role
2725 - added tests and docs
2727 * Moose::Meta::Class
2728 - moved a number of things from Moose.pm
2729 to here, they should have been here
2732 * Moose::Meta::Attribute
2733 - moved the attribute option macros here
2734 instead of putting them in Moose.pm
2736 * Moose::Meta::TypeConstraint
2737 - added the message attributes and the
2739 - added tests and docs for this
2741 0.03 Thurs. March 30, 2006
2743 - added the Moose::Cookbook with 5 recipes,
2744 describing all the stuff Moose can do.
2747 - fixed an issue with &extends super class loading
2748 it now captures errors and deals with inline
2749 packages correctly (bug found by mst, solution
2751 - added super/override & inner/augment features
2752 - added tests and docs for these
2755 - BUILDALL now takes a reference of the %params
2756 that are passed to &new, and passes that to
2759 * Moose::Util::TypeConstraints
2760 - Type constraints now survive runtime reloading
2761 - added test for this
2763 * Moose::Meta::Class
2764 - fixed the way attribute defaults are handled
2765 during instance construction (bug found by chansen)
2767 * Moose::Meta::Attribute
2768 - read-only attributes now actually enforce their
2769 read-only-ness (this corrected in Class::MOP as
2772 0.02 Tues. March 21, 2006
2774 - many more tests, fixing some bugs and
2776 - &extends now loads the base module with
2778 - added UNIVERSAL::require to the
2781 - each new Moose class will also create
2782 and register a subtype of Object which
2783 correspond to the new Moose class.
2784 - the 'isa' option in &has now only
2785 accepts strings, and will DWIM in
2788 * Moose::Util::TypeConstraints
2789 - added type coercion features
2790 - added tests for this
2791 - added support for this in attributes
2792 and instance construction
2794 - type construction no longer creates a
2795 function, it registers the type instead.
2796 - added several functions to get the
2800 - BUILDALL and DEMOLISHALL were broken
2801 because of a mis-named hash key, Whoops :)
2803 * Moose::Meta::Attribute
2804 - adding support for coercion in the
2805 autogenerated accessors
2807 * Moose::Meta::Class
2808 - adding support for coercion in the
2809 instance construction
2811 * Moose::Meta::TypeConstraint
2812 * Moose::Meta::TypeCoercion
2813 - type constraints and coercions are now
2814 full fledges meta-objects
2816 0.01 Wed. March 15, 2006
2817 - Moooooooooooooooooose!!!