1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 - Metaclass compat fixing should already happen recursively, there's no
6 need to explicitly walk up the inheritance tree. (doy)
10 - Don't import any functions, in order to avoid polluting our namespace
11 with things that can look like methods (blessed, try, etc)
14 * Moose::Meta::Method::Constructor
15 - The generated code needs to called Scalar::Util::blessed by its
16 fully-qualified name or else Perl can interpret the call to blessed as
17 an indirect method call. This broke Search::GIN, which in turn broke
18 KiokuDB. (nothingmuch)
20 0.90 Tue, Sep 15, 2009
21 * Moose::Meta::Attribute::Native::Trait::Counter
22 * Moose::Meta::Attribute::Native::Trait::String
23 - For these two traits, an attribute which did not explicitly provide
24 methods to handles magically ended up delegating *all* the helper
25 methods. This has been removed. You must be explicit in your handles
26 declaration for all Native Traits. (Dave Rolsky)
29 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
30 sure to rethrow its error message. However, we also localize $@ before
31 this so that if all the DEMOLISH methods success, the value of $@ will
32 be preserved. (nothingmuch and Dave Rolsky)
33 - We now also localize $? during object destruction. (nothingmuch and
35 - The handling of DEMOLISH methods was broken for immutablized classes,
36 which were not receiving the value of
37 Devel::GlobalDestruction::in_global_destruction.
38 - These two fixes address some of RT #48271, reported by Zefram.
39 - This is all now documented in Moose::Manual::Construction.
40 - Calling $object->new() is now deprecated. A warning will be
44 - Added more hooks to customize how roles are applied. The role
45 summation class, used to create composite roles, can now be changed
46 and/or have meta-roles applied to it. (rafl)
48 * Moose::Meta::Method::Delegation
49 - fixed delegated methods to make sure that any modifiers attached to
50 the accessor being delegated on will be called (Stevan)
51 - added tests for this (Stevan)
54 - Moose no longer warns when a class that is being made immutable has
55 mutable ancestors. While in theory this is a good thing to warn about,
56 we found so many exceptions to this that doing this properly became
59 0.89_02 Thu, Sep 10, 2009
60 * Moose::Meta::Attribute::Native
61 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
63 * Moose::Meta::Attribute::Native::Trait::Array
64 - Added a number of functions from List::Util and List::MoreUtils,
65 including reduce, shuffle, uniq, and natatime. (doy)
68 - This module will now generate an init_meta method for your exporting
69 class if you pass it options for
70 Moose::Util::MetaRole::apply_metaclass_roles or
71 apply_base_class_roles. This eliminates a lot of repetitive
72 boilerplate for typical MooseX modules. (doy).
73 - Documented the with_meta feature, which is a replacement for
74 with_caller. This feature was added by josh a while ago.
75 - The with_caller feature is now deprecated, but will not issue a
76 warning yet. (Dave Rolsky)
77 - If you try to wrap/export a subroutine which doesn't actually exist,
78 Moose::Exporter will warn you about this. (doy)
80 * Moose::Meta::Role::Application::ToRole
81 - When a role aliased a method from another role, it was only getting
82 the new (aliased) name, not the original name. This differed from what
83 happens when a class aliases a role's methods. If you _only_ want the
84 aliased name, make sure to also exclue the original name. (Dave
87 0.89_01 Wed Sep 2, 2009
88 * Moose::Meta::Attribute
89 - Added the currying syntax for delegation from AttributeHelpers to the
90 existing delegation API. (hdp)
92 * Moose::Meta::Attribute::Native
93 - We have merged the functionality of MooseX::AttributeHelpers into the
94 Moose core with some API tweaks. You can continue to use
95 MooseX::AttributeHelpers, but it will not be maintained except
96 (perhaps) for critical bug fixes in the future. See
97 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
100 * Moose::Error::Croak
101 * Moose::Error::Confess
102 - Clarify documentation on how to use different error-throwing
103 modules. (Curtis Jewell)
106 - Correct POD for builder to point to Recipe8, not 9. (gphat)
109 - When a nonexistent sub name is passed to as_is, with_caller, or
110 with_meta, throw a warning and skip the exporting, rather than
111 installing a broken sub. (doy)
114 - Moose now warns if you call C<make_immutable> for a class with mutable
117 0.89 Thu Aug 13, 2009
118 * Moose::Manual::Attributes
119 - Clarify "is", include discussion of "bare". (Sartak)
121 * Moose::Meta::Role::Method::Conflicting
122 * Moose::Meta::Role::Application::ToClass
123 - For the first set of roles involved in a conflict, report all
124 unresolved method conflicts, not just the first method. Fixes #47210
125 reported by Ovid. (Sartak)
127 * Moose::Meta::TypeConstraint
128 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
131 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
133 - Allow specifying role options (alias, excludes, MXRP stuff) in the
134 arrayref passed to "use Moose -traits" (doy)
137 - Add functions meta_class_alias and meta_attribute_alias for creating
138 aliases for class and attribute metaclasses and metatraits. (doy)
140 * Moose::Meta::Attribute
141 * Moose::Meta::Method::Accessor
142 - A trigger now receives the old value as a second argument, if the
143 attribute had one. (Dave Rolsky)
145 * Moose::Meta::Method::Constructor
146 - Fix a bug with $obj->new when $obj has stringify overloading.
147 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
148 - However, we will probably deprecate $obj->new, so please don't start
149 using it for new code!
151 * Moose::Meta::Role::Application
152 * Moose::Meta::Role::Application::RoleSummation
153 - Rename alias and excludes to -alias and -excludes (but keep the old
154 names for now, for backcompat) (doy)
156 0.88 Fri Jul 24, 2009
157 * Moose::Manual::Contributing
158 - Re-write the Moose::Manual::Contributing document to reflect
159 the new layout and methods of work for the Git repository. All
160 work now should be done in topic branches and reviewed by a
161 core committer before being applied to master. All releases
162 are done by a cabal member and merged from master to
163 stable. This plan was devised by Yuval, blame him. (perigrin)
166 - Create metaclass attributes for the different role application
169 * Moose::Util::MetaRole
170 - Allow applying roles to a meta role's role application
173 * Moose::Meta::Attribute
174 - Add weak_ref to allowed options for "has '+foo'" (mst)
176 * Moose::Meta::Method::Accessor
177 - No longer uses inline_slot_access in accessors, to support
178 non-lvalue-based meta instances. (sorear)
181 * Moose::Meta::Method::Delegation
182 - Once again allow class names as well as objects for
183 delegation. This was changed in 0.86.
186 * Moose::Meta::Class::Immutable::Trait
187 - Fixes to work with the latest Class::MOP.
189 * Moose::Meta::Method::Delegation
190 - Delegation now dies with a more useful error message if the
191 attribute's accessor returns something defined but
194 0.85 Fri, Jun 26, 2009
195 * Moose::Meta::Attribute
196 - The warning for 'no associated methods' is now split out into
197 the _check_associated_methods method, so that extensions can
198 safely call 'after install_accessors => ...'. This fixes a
199 warning from MooseX::AttributeHelpers. (hdp)
201 0.84 Fri, Jun 26, 2009
203 - has now sets definition_context for attributes defined in
206 * Moose::Meta::Attribute
207 - When adding an attribute to a metaclass, if the attribute has
208 no associated methods, it will give a deprecation
210 - Methods generated by delegation were not being added to
211 associated_methods. (hdp)
212 - Attribute accessors (reader, writer, accessor, predicate,
213 clearer) now warn if they overwrite an existing method. (doy)
214 - Attribute constructors now warn very noisily about unknown (or
215 misspelled) arguments
217 * Moose::Util::TypeConstraints
218 - Deprecated the totally useless Role type name, which just
219 checked if $object->can('does'). Note that this is _not_ the
220 same as a type created by calling role_type('RoleName').
222 * Moose::Util::TypeConstraints
223 * Moose::Meta::TypeConstraint::DuckType
224 - Reify duck type from a regular subtype into an actual class
226 - Document this because Sartak did all my work for me
229 * Moose::Meta::Attribute
230 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
231 it is just a list of methods (Sartak)
234 - The get_*_method_modifiers methods would die if the role had
235 no modifiers of the given type (Robert Buels).
237 0.83 Tue, Jun 23, 2009
239 - Fix _construct_instance not setting the special __MOP__ object
240 key in instances of anon classes. (doy)
242 0.82 Sun, Jun 21, 2009
243 * Moose::Manual::Types
244 - Mention MooseX::Types early to avoid users falling down the
245 string parsing rathole (mst)
247 * Moose::Manual::MooseX
248 - Add warnings about class-level extensions and mention considering
249 using plain objects instead
251 0.81 Sun, Jun 7, 2009
252 * Bumped our Class::MOP prereq to the latest version (0.85), since
255 0.80 Sat, Jun 6, 2009
257 - Add FAQ about the coercion change from 0.76 because it came up
258 three times today (perigrin)
259 - Win doy $10 dollars because Sartak didn't think anybody
260 would document this fast enough (perigrin)
262 * Moose::Meta::Method::Destructor
263 - Inline a DESTROY method even if there are no DEMOLISH methods
264 to prevent unnecessary introspection in
265 Moose::Object::DEMOLISHALL
268 - A role's required methods are now represented by
269 Moose::Meta::Role::Method::Required objects. Conflicts are now
270 represented by Moose::Meta::Role::Method::Conflicting
271 objects. The benefit for end-users in that unresolved
272 conflicts generate different, more instructive, errors,
273 resolving Ovid's #44895. (Sartak)
276 - Improve the error message of "extends" as suggested by Adam
277 Kennedy and confound (Sartak)
278 - Link to Moose::Manual::Roles from Moose::Role as we now have
279 excellent documentation (Adam Kennedy)
282 - Update test suite for subname change in Class::MOP
284 - Add TODO test for infinite recursion in Moose::Meta::Class
287 0.79 Wed, May 13, 2009
289 - More fixes for Win32 problems. Reported by Robert Krimen.
292 - The DEMOLISHALL method could still blow up in some cases
293 during global destruction. This method has been made more
294 resilient in the face of global destruction's random garbage
298 - If you "also" a module that isn't loaded, the error message
299 now acknowledges that (Sartak)
302 - When your ->meta method does not return a Moose::Meta::Class,
303 the error message gave the wrong output (Sartak)
305 0.78 Tue, May 12, 2009
306 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
307 - Merged these documents into what is now Moose::Manual::FAQ
310 - Moved to Moose::Manual::Unsweetened
312 * Moose::Cookbook::Basics::Recipes 9-12
313 - Renamed to be 8-11, since recipe 8 did not exist
316 - Make Moose::Exporter import strict and warnings into packages
320 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
321 methods during global destruction (doy)
324 * Moose::Meta::Role::Application::ToClass
325 - Track the Role::Application objects created during class-role
329 - Fix metaclass incompatibility errors when extending a vanilla perl
330 class which isa Moose class with a metaclass role applied (t0m)
333 - Add a role-combination hook, _role_for_combination, for the
334 benefit of MooseX::Role::Parameterized (Sartak)
337 - Some tests were failing on Win32 because they explicit checked
338 warning output for newlines. Reported by Nickolay Platonov.
340 0.77 Sat, May 2, 2009
342 - Add explicit use of Devel::GlobalDestruction and Sub::Name
346 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
347 or not we are currently in global destruction (doy)
348 - Add explicit use of Devel::GlobalDestruction and Sub::Name
351 * Moose::Cookbook::FAQ
352 - Reworked much of the existing content to be more useful to
353 modern Moose hackers (Sartak)
356 - Depend on Class::MOP 0.83 instead of 0.82_01.
358 0.76 Mon, April 27, 2009
359 * Moose::Meta::TypeConstraint
360 - Do not run coercions in coerce() if the value already passes the type
363 * Moose::Meta::TypeConstraint::Class
364 - In validation error messages, specifically say that the value is not
365 an instance of the class. This should alleviate some frustrating
366 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
368 * Moose::Meta::Role::Application::ToClass
369 - Revert the class-overrides-role warning in favor of a solution outside
370 of the Moose core (Sartak)
373 - Make Test::Output optional again, since it's only used in a few files
376 0.75_01 Thu, April 23, 2009
377 * Moose::Meta::Role::Application::ToClass
378 - Moose now warns about each class overriding methods from roles it
382 - Warnings tests have standardized on Test::Output which is now an
383 unconditionally dependency (Sartak)
386 - Changes to immutabilization to work with Class::MOP 0.82_01+.
388 0.75 Mon, April 20, 2009
391 - Move validation of not inheriting from roles from Moose::extends to
392 Moose::Meta::Class::superclasses (doy)
395 - add ensure_all_roles() function to encapsulate the common "apply this
396 role unless the object already does it" pattern (hdp)
399 - Users can now select a different metaclass with the "-metaclass"
400 option to import, for classes and roles (Sartak)
403 - Make method_metaclass an attr so that it can accept a metarole
406 0.74 Tue, April 7, 2009
408 * Moose::Meta::Method::Destructor
409 - Include stack traces in the deprecation warnings.
413 - Removed the long-deprecated _apply_all_roles method.
415 * Moose::Meta::TypeConstraint
416 - Removed the long-deprecated union method.
419 0.73_02 Mon, April 6, 2009
420 * More deprecations and renamings
421 - Moose::Meta::Method::Constructor
422 - initialize_body => _initialize_body (this is always called
423 when an object is constructed)
426 - The DEMOLISHALL method could throw an exception during global
427 destruction, meaning that your class's DEMOLISH methods would
428 not be properly called. Reported by t0m.
430 * Moose::Meta::Method::Destructor
431 - Destructor inlining was totally broken by the change to the
432 is_needed method in 0.72_01. Now there is a test for this
433 feature, and it works again.
436 - Bold the word 'not' in the POD for find_meta (t0m)
438 0.73_01 Sun, April 5, 2009
440 - Call user_class->meta in fewer places, with the eventual goal
441 of allowing the user to rename or exclude ->meta
442 altogether. Instead uses Class::MOP::class_of. (Sartak)
444 * Moose::Meta::Method::Accessor
445 - If an attribute had a lazy default, and that value did not
446 pass the attribute's type constraint, it did not get the
447 message from the type constraint, instead using a generic
448 message. Test provided by perigrin.
450 * Moose::Util::TypeConstraints
451 - Add duck_type keyword. It's sugar over making sure an object
452 can() a list of methods. This is easier than jrockway's
453 suggestion to fork all of CPAN. (perigrin)
454 - add tests and documentation (perigrin)
457 - Document the fact that init_meta() returns the target class's
458 metaclass object. (hdp)
460 * Moose::Cookbook::Extending::Recipe1
461 * Moose::Cookbook::Extending::Recipe2
462 * Moose::Cookbook::Extending::Recipe3
463 * Moose::Cookbook::Extending::Recipe4
464 - Make init_meta() examples explicitly return the metaclass and
465 point out this fact. (hdp)
467 * Moose::Cookbook::Basics::Recipe12
468 - A new recipe, creating a custom meta-method class.
470 * Moose::Cookbook::Meta::Recipe6
471 - A new recipe, creating a custom meta-method class.
474 * Moose::Meta::Method::Constructor
475 - Attribute triggers no longer receive the meta-attribute object
476 as an argument in any circumstance. Previously, triggers
477 called during instance construction were passed the
478 meta-attribute, but triggers called by normal accessors were
479 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
481 * Moose::Manual::Attributes
482 - Remove references to triggers receving the meta-attribute object as an
485 * Moose::Cookbook::FAQ
486 - Remove recommendation for deprecated Moose::Policy and
487 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
490 * Many methods have been renamed with a leading underscore, and a
491 few have been deprecated entirely. The methods with a leading
492 underscore are consider "internals only". People writing
493 subclasses or extensions to Moose should feel free to override
494 them, but they are not for "public" use.
497 - check_metaclass_compatibility => _check_metaclass_compatibility
499 - Moose::Meta::Method::Accessor
500 - initialize_body => _initialize_body (this is always called
501 when an object is constructed)
502 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
504 - Moose::Meta::Method::Constructor
505 - initialize_body => _initialize_body (this is always called
506 when an object is constructed)
507 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
508 - attributes => _attributes (now inherited from parent)
509 - meta_instance => _meta_instance (now inherited from parent)
512 - alias_method is deprecated. Use add_method
514 0.73 Fri, March 29, 2009
515 * No changes from 0.72_01.
517 0.72_01 Thu, March 26, 2009
519 - Almost every module has complete API documentation. A few
520 methods (and even whole classes) have been intentionally
521 excluded pending some rethinking of their APIs.
523 * Moose::Util::TypeConstraints
524 - Calling subtype with a name as the only argument is now an
525 exception. If you want an anonymous subtype do:
527 my $subtype = subtype as 'Foo';
529 * Moose::Cookbook::Meta::Recipe7
530 - A new recipe, creating a custom meta-instance class.
532 * Moose::Cookbook::Basics::Recipe5
533 - Fix various typos and mistakes. Includes a patch from Radu
536 * Moose::Cookbook::Basics::Recipe9
537 - Link to this recipe from Moose.pm's builder blurb
540 - When wrapping a function with a prototype, Moose::Exporter now
541 makes sure the wrapped function still has the same
542 prototype. (Daisuke Maki)
544 * Moose::Meta::Attribute
545 - Allow a subclass to set lazy_build for an inherited
549 - Explicitly depend on Data::OptList. We already had this dependency
550 via Sub::Exporter, but since we're using it directly we're
551 better off with it listed. (Sartak)
553 * Moose::Meta::Method::Constructor
554 - Make it easier to subclass the inlining behaviour. (Ash
557 * Moose::Manual::Delta
558 - Details significant changes in the history of Moose, along
559 with recommended workarounds.
561 * Moose::Manual::Contributing
562 - Contributor's guide to Moose.
564 * Moose::Meta::Method::Constructor
565 - The long-deprecated intialize_body method has been removed
566 (yes, spelled like that).
568 * Moose::Meta::Method::Destructor
569 - This is_needed method is now always a class method.
572 - Changes to the internals of how make_immutable works to match
573 changes in latest Class::MOP.
575 0.72 Mon, February 23, 2009
577 * Moose::Meta::Method::Constructor
578 - A mutable class accepted Foo->new(undef) without complaint,
579 while an immutable class would blow up with an unhelpful
580 error. Now, in both cases we throw a helpful error
581 instead. Reported by doy.
583 0.71_01 Sun, February 22, 2009
585 - Hopefully fixed some POD errors in a few recipes that caused
586 them to display weird on search.cpan.org.
588 * Moose::Util::TypeConstraints
589 - Calling type or subtype without the sugar helpers (as, where,
590 message) is now deprecated.
591 - The subtype function tried hard to guess what you meant, but
592 often got it wrong. For example:
594 my $subtype = subtype as 'ArrayRef[Object]';
596 This caused an error in the past, but now works as you'd
600 - Make sure Moose.pm is loaded before calling
601 Moose->throw_error. This wasn't normally an issue, but could
602 bite you in weird cases.
604 0.71 Thu, February 19, 2009
605 * Moose::Cookbook::Basics::Recipe11
606 - A new recipe which demonstrates the use of BUILDARGS and
609 * Moose::Cookbook::Roles::Recipe3
610 - A new recipe, applying a role to an object instance. (Dave
614 - Allow overriding specific keywords from "also" packages. (doy)
617 - Replace hardcoded cookbook tests with Test::Inline to ensure
618 the tests match the actual code in the recipes. (Dave Rolsky)
621 - Working on the above turned up a number of little bugs in the
622 recipe code. (Dave Rolsky)
624 * Moose::Util::TypeConstraints::Optimized
625 - Just use Class::MOP for the optimized ClassName check. (Dave
628 0.70 Sat, February 14, 2009
629 * Moose::Util::TypeConstraints
630 - Added the RoleName type (stevan)
631 - added tests for this (stevan)
633 * Moose::Cookbook::Basics::Recipe3
634 - Updated the before qw[left right] sub to be a little more
635 defensive about what it accepts (stevan)
636 - added more tests to t/000_recipies/basics/003_binary_tree.t
640 - We now always call DEMOLISHALL, even if a class does not
641 define DEMOLISH. This makes sure that method modifiers on
642 DEMOLISHALL work as expected. (doy)
643 - added tests for this (EvanCarroll)
645 * Moose::Util::MetaRole
646 - Accept roles for the wrapped_method_metaclass (rafl)
647 - added tests for this (rafl)
649 * Moose::Meta::Attribute
650 - We no longer pass the meta-attribute object as a final
651 argument to triggers. This actually changed for inlined code a
652 while back, but the non-inlined version and the docs were
656 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
657 they require 0.11. (Dave Rolsky)
660 - Lots of small changes to the manual, cookbook, and
661 elsewhere. These were based on feedback from various
662 users, too many to list here. (Dave Rolsky)
664 0.69 Thu, February 12, 2009
666 - Make some keyword errors use throw_error instead of croak
667 since Moose::Exporter wraps keywords now (Sartak)
670 - Revised every recipe for style and clarity. Also moved some
671 documentation out of cookbook recipes and into Moose::Manual
672 pages. This work was funded as part of the Moose docs grant
673 from TPF. (Dave Rolsky)
675 * Moose::Meta::Method::Delegation
676 - If the attribute doing the delegation was not populated, the
677 error message did not specify the attribute name
680 0.68 Wed, February 4, 2009
682 - Many spelling, typo, and formatting fixes by daxim.
684 * Moose::Manual::Attributes
685 - The NAME section in the POD used "Attribute" so search.cpan
686 didn't resolve links from other documents properly.
688 * Moose::Meta::Method::Overriden
689 - Now properly spelled as Overridden. Thanks to daxim for
692 0.67 Tue, February 3, 2009
694 - Lots of little typo fixes and a few clarifications. Several
695 pages didn't have proper titles, and so weren't actually
696 visible on search.cpan.org. Thanks to hanekomu for a variety
697 of fixes and formatting improvements.
699 0.66 Tue, February 3, 2009
701 - This is a brand new, extensive manual for Moose. This aims to
702 provide a complete introduction to all of Moose's
703 features. This work was funded as part of the Moose docs grant
704 from TPF. (Dave Rolsky)
706 * Moose::Meta::Attribute
707 - Added a delegation_metaclass method to replace a hard-coded
708 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
710 * Moose::Util::TypeConstraints
711 - If you created a subtype and passed a parent that Moose didn't
712 know about, it simply ignored the parent. Now it automatically
713 creates the parent as a class type. This may not be what you
714 want, but is less broken than before. (Dave Rolsky)
716 * Moose::Util::TypeConstraints
717 - This module tried throw errors by calling Moose->throw_error,
718 but it did not ensure that Moose was loaded first. This could
719 cause very unhelpful errors when it tried to throw an error
720 before Moose was loaded. (Dave Rolsky)
722 * Moose::Util::TypeConstraints
723 - You could declare a name with subtype such as "Foo!Bar" that
724 would be allowed, but if you used it in a parameterized type
725 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
726 vetting on names created via the sugar functions, so that they
727 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
729 0.65 Thu, January 22, 2008
730 * Moose and Moose::Meta::Method::Overridden
731 - If an overridden method called super(), and then the
732 superclass's method (not overridden) _also_ called super(),
733 Moose went into an endless recursion loop. Test provided by
734 Chris Prather. (Dave Rolsky)
736 * Moose::Meta::TypeConstraint
737 - All methods are now documented. (gphat)
739 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
740 - Fixed some bogus failures that occurred because we tried to
741 validate filesystem paths in a very ad-hoc and
742 not-quite-correct way. (Dave Rolsky)
744 * Moose::Util::TypeConstraints
745 - Added maybe_type to exports. See docs for details. (rjbs)
748 - Added Moose::Util::TypeConstraints to the SEE ALSO
752 - Methods created via an attribute can now fulfill a "requires"
753 declaration for a role. (nothingmuch)
755 * Moose::Meta::Method::*
756 - Stack traces from inlined code will now report its line and
757 file as being in your class, as opposed to in Moose
760 0.64 Wed, December 31, 2008
761 * Moose::Meta::Method::Accessor
762 - Always inline predicate and clearer methods (Sartak)
764 * Moose::Meta::Attribute
765 - Support for parameterized traits (Sartak)
766 - verify_against_type_constraint method to avoid duplication
767 and enhance extensibility (Sartak)
770 - Tests (but no support yet) for parameterized traits (Sartak)
773 - Require Class::MOP 0.75+, which has the side effect of making
774 sure we work on Win32. (Dave Rolsky)
776 0.63 Mon, December 8, 2008
778 - Some small grammar tweaks and bug fixes in non-Moose example
781 0.62_02 Fri, December 5, 2008
782 * Moose::Meta::Role::Application::ToClass
783 - When a class does not provide all of a role's required
784 methods, the error thrown now mentions all of the missing
785 methods, as opposed to just the first one found. Requested by
786 Curtis Poe (RT #41119). (Dave Rolsky)
788 * Moose::Meta::Method::Constructor
789 - Moose will no longer inline a constructor for your class
790 unless it inherits its constructor from Moose::Object, and
791 will warn when it doesn't inline. If you want to force
792 inlining anyway, pass "replace_constructor => 1" to
793 make_immutable. Addresses RT #40968, reported by Jon
794 Swartz. (Dave Rolsky)
795 - The quoting of default values could be broken if the default
796 contained a single quote ('). Now we use quotemeta to escape
797 anything potentially dangerous in the defaults. (Dave Rolsky)
799 0.62_01 Wed, December 3, 2008
801 - use the method->execute API for BUILDALL
802 and DEMOLISHALL (Sartak)
804 * Moose::Util::TypeConstraints
805 - We now make all the type constraint meta classes immutable
806 before creating the default types provided by Moose. This
807 should make loading Moose a little faster. (Dave Rolsky)
809 0.62 Wed November 26, 2008
810 * Moose::Meta::Role::Application::ToClass
811 Moose::Meta::Role::Application::ToRole
812 - fixed issues where excluding and aliasing the
813 same methods for a single role did not work
814 right (worked just fine with multiple
816 - added test for this (stevan)
818 * Moose::Meta::Role::Application::RoleSummation
819 - fixed the error message when trying to compose
820 a role with a role it excludes (Sartak)
823 - Catch another case where recursion caused the value
824 of $CALLER to be stamped on (t0m)
825 - added test for this (t0m)
828 - Remove the make_immutable keyword, which has been
829 deprecated since April. It breaks metaclasses that
830 use Moose without no Moose (Sartak)
832 * Moose::Meta::Attribute
833 - Removing an attribute from a class now also removes delegation
834 (handles) methods installed for that attribute (t0m)
835 - added test for this (t0m)
837 * Moose::Meta::Method::Constructor
838 - An attribute with a default that looked like a number (but was
839 really a string) would accidentally be treated as a number
840 when the constructor was made immutable (perigrin)
841 - added test for this (perigrin)
844 - create method for constructing a role
846 - added test for this (Sartak)
847 - anonymous roles! (Sartak)
848 - added test for this (Sartak)
851 - more consistent error messages (Sartak)
853 * Moose::Cookbook::Roles::Recipe1
854 - attempt to explain why a role that just requires
855 methods is useful (Sartak)
857 0.61 Fri November 7, 2008
858 * Moose::Meta::Attribute
859 - When passing a role to handles, it will be loaded if necessary
863 - Method objects returned by get_method (and other methods)
864 Could end up being returned without an associated_metaclass
865 attribute. Removing get_method_map, which is provided by
866 Class::MOP::Class, fixed this. The Moose version did nothing
867 different from its parent except introduce a bug. (Dave Rolsky)
868 - added tests for this (jdv79)
871 - Added a $VERSION to all .pm files which didn't have one. Fixes
872 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
874 * Moose::Cookbook::Basics::Recipe4
875 * Moose::Cookbook::Basics::Recipe6
876 - These files had spaces on the first line of the SYNOPSIS, as
877 opposed to a totally empty line. According to RT #40432, this
878 confuses POD parsers. (Dave Rolsky)
880 0.60 Fri October 24, 2008
882 - Passing "-traits" when loading Moose caused the Moose.pm
883 exports to be broken. Reported by t0m. (Dave Rolsky)
884 - Tests for this bug. (t0m)
887 - Change resolve_metaclass alias to use the new
888 load_first_existing_class function. This makes it a lot
889 simpler, and also around 5 times faster. (t0m)
890 - Add caching to resolve_metaclass_alias, which gives an order
891 of magnitude speedup to things which repeatedly call the
892 Moose::Meta::Attribute->does method, notably MooseX::Storage
895 * Moose::Util::TypeConstraint
896 - Put back the changes for parameterized constraints that
897 shouldn't have been removed in 0.59. We still cannot parse
898 them, but MooseX modules can create them in some other
899 way. See the 0.58 changes for more details. (jnapiorkowski)
900 - Changed the way subtypes are created so that the job is
901 delegated to a type constraint parent. This clears up some
902 hardcoded checking and should allow correct subtypes of
903 Moose::Meta::Type::Constraint. Don't rely on this new API too
904 much (create_child_type) because it may go away in the
905 future. (jnapiorkowski)
907 * Moose::Meta::TypeConstraint::Union
908 - Type constraint names are sorted as strings, not numbers.
911 * Moose::Meta::TypeConstraint::Parameterizable
912 - New parameterize method. This can be used as a factory method
913 to make a new type constraint with a given parameterized
914 type. (jnapiorkowski)
915 - added tests (jnapiorkowski)
917 0.59 Tue October 14, 2008
919 - Add abridged documentation for builder/default/initializer/
920 predicate, and link to more details sections in
921 Class::MOP::Attribute. (t0m)
923 * Moose::Util::TypeConstraints
924 - removed prototypes from all but the &-based stuff (mst)
926 * Moose::Util::TypeConstraints
927 - Creating a anonymous subtype with both a constraint and a
928 message failed with a very unhelpful error, but should just
929 work. Reported by t0m. (Dave Rolsky)
932 - Some tests that used Test::Warn if it was available failed
933 with older versions of Test::Warn. Reported by Fayland. (Dave
935 - Test firing behavior of triggers in relation to builder/default/
937 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
938 kinds of supported type. (t0m)
941 - In create(), do not pass "roles" option to the superclass
942 - added related test that creates an anon metaclass with
945 * Moose::Meta::TypeConstraint::Class
946 * Moose::Meta::TypeConstraint::Role
947 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
948 other types (as per change in 0.55_02). (t0m)
950 * Moose::Meta::TypeConstraint::Registry
951 - Fix warning when dealing with unknown type names (t0m)
953 * Moose::Util::TypeConstraints
954 - Reverted changes from 0.58 related to handle parameterized
955 types. This caused random failures on BSD and Win32 systems,
956 apparently related to the regex engine. This means that Moose
957 can no longer parse structured type constraints like
958 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
959 supported in a slightly different way via MooseX::Types some
960 time in the future. (Dave Rolsky)
962 0.58 Sat September 20, 2008
963 !! This release has an incompatible change regarding !!
964 !! how roles add methods to a class !!
966 * Roles and role application
967 ! Roles now add methods by calling add_method, not
968 alias_method. They make sure to always provide a method
969 object, which will be cloned internally. This means that it is
970 now possible to track the source of a method provided by a
971 role, and even follow its history through intermediate roles.
973 This means that methods added by a role now show up when
974 looking at a class's method list/map. (Dave Rolsky)
977 - From this release on, we'll try to maintain a list of
978 conflicting modules, and warn you if you have one
979 installed. For example, this release conflicts with ...
980 - MooseX::Singleton <= 0.11
981 - MooseX::Params::Validate <= 0.05
984 In general, we try to not break backwards compatibility for
985 most Moose users, but MooseX modules and other code which
986 extends Moose's metaclasses is often affected by very small
987 changes in the Moose internals.
989 * Moose::Meta::Method::Delegation
990 * Moose::Meta::Attribute
991 - Delegation methods now have their own method class. (Dave
994 * Moose::Meta::TypeConstraint::Parameterizable
995 - Added a new method 'parameterize' which is basically a factory
996 for the containing constraint. This makes it easier to create
997 new types of parameterized constraints. (jnapiorkowski)
999 * Moose::Meta::TypeConstraint::Union
1000 - Changed the way Union types canonicalize their names to follow
1001 the normalized TC naming rules, which means we strip all
1002 whitespace. (jnapiorkowski)
1004 * Moose::Util::TypeConstraints
1005 - Parameter and Union args are now sorted, this makes Int|Str
1006 the same constraint as Str|Int. (jnapiorkowski)
1007 - Changes to the way Union types are parsed to more correctly
1008 stringify their names. (jnapiorkowski)
1009 - When creating a parameterized type, we now use the new
1010 parameterize method. (jnapiorkowski)
1011 - Incoming type constraint strings are now normalized to remove
1012 all whitespace differences. (jnapiorkowski)
1013 - Changed the way we parse type constraint strings so that we now
1014 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1015 constraints. This lays the foundation for more flexible type
1016 constraint implementations.
1018 * Tests and docs for all the above. (jnapiorkowski)
1022 - Moose::Exporter will no longer remove a subroutine that the
1023 exporting package re-exports. Moose re-exports the
1024 Carp::confess function, among others. The reasoning is that we
1025 cannot know whether you have also explicitly imported those
1026 functions for your own use, so we err on the safe side and
1027 always keep them. (Dave Rolsky)
1028 - added tests for this (rafl)
1030 * Moose::Meta::Class
1031 - Changes to how we fix metaclass compatibility that are much
1032 too complicated to go into. The summary is that Moose is much
1033 less likely to complain about metaclass incompatibility
1034 now. In particular, if two metaclasses differ because
1035 Moose::Util::MetaRole was used on the two corresponding
1036 classes, then the difference in roles is reconciled for the
1037 subclass's metaclass. (Dave Rolsky)
1038 - Squashed an warning in _process_attribute (thepler)
1041 - throw exceptions (sooner) for invalid attribute names (thepler)
1042 - added tests for this (thepler)
1044 * Moose::Util::MetaRole
1045 - If you explicitly set a constructor or destructor class for a
1046 metaclass object, and then applied roles to the metaclass,
1047 that explicitly set class would be lost and replaced with the
1050 * Moose::Meta::Class
1051 * Moose::Meta::Attribute
1052 * Moose::Meta::Method
1055 * Moose::Error::Default
1056 * Moose::Error::Croak
1057 * Moose::Error::Confess
1058 - All instances of confess() changed to use overridable
1059 C<throw_error> method. This method ultimately calls a class
1060 constructor, and you can change the class being called. In
1061 addition, errors now pass more information than just a string.
1062 The default C<error_class> behaves like C<Carp::confess>, so
1063 the behavior is not visibly different for end users.
1065 0.57 Wed September 3, 2008
1067 - A new bit of doc intended to introduce folks familiar with
1068 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1070 * Moose::Unsweetened
1071 - Shows examples of two classes, each done first with and then
1072 without Moose. This makes a nice parallel to
1073 Moose::Intro. (Dave Rolsky)
1075 * Moose::Util::TypeConstraints
1076 - Fixed a bug in find_or_parse_type_constraint so that it
1077 accepts a Moose::Meta::TypeConstraint object as the parent
1078 type, not just a name (jnapiorkowski)
1079 - added tests (jnapiorkowski)
1082 - If Sub::Name was not present, unimporting failed to actually
1083 remove some sugar subs, causing test failures (Dave Rolsky)
1085 0.56 Mon September 1, 2008
1086 For those not following the series of dev releases, there are
1087 several major changes in this release of Moose.
1088 ! Moose::init_meta should now be called as a method. See the
1091 - Major performance improvements by nothingmuch.
1093 - New modules for extension writers, Moose::Exporter and
1094 Moose::Util::MetaRole by Dave Rolsky.
1096 - Lots of doc improvements and additions, especially in the
1099 - Various bug fixes.
1101 * Removed all references to the experimental-but-no-longer-needed
1102 Moose::Meta::Role::Application::ToMetaclassInstance.
1104 * Require Class::MOP 0.65.
1106 0.55_04 Sat August 30, 2008
1107 * Moose::Util::MetaRole
1108 * Moose::Cookbook::Extending::Recipe2
1109 - This simplifies the application of roles to any meta class, as
1110 well as the base object class. Reimplemented metaclass traits
1111 using this module. (Dave Rolsky)
1113 * Moose::Cookbook::Extending::Recipe1
1114 - This a new recipe, an overview of various ways to write Moose
1115 extensions (Dave Rolsky)
1117 * Moose::Cookbook::Extending::Recipe3
1118 * Moose::Cookbook::Extending::Recipe4
1119 - These used to be Extending::Recipe1 and Extending::Recipe2,
1122 0.55_03 Fri August 29, 2008
1123 * No changes from 0.55_02 except increasing the Class::MOP
1124 dependency to 0.64_07.
1126 0.55_02 Fri August 29, 2008
1127 * Makefile.PL and Moose.pm
1128 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1130 * Moose::Util::TypeConstraints
1131 - Fix warnings from find_type_constraint if the type is not
1134 * Moose::Meta::TypeConstraint
1135 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1136 return false if the type you specify cannot be found in the
1137 type registry, rather than throwing an unhelpful and
1138 coincidental exception. (t0m).
1139 - added docs & test for this (t0m)
1141 * Moose::Meta::TypeConstraint::Registry
1142 - add_type_constraint now throws an exception if a parameter is
1144 - added docs & test for this (t0m)
1146 * Moose::Cookbook::FAQ
1147 - Added a faq entry on the difference between "role" and "trait"
1151 - Fixed a bug that caused role composition to not see a required
1152 method when that method was provided by another role being
1153 composed at the same time. (Dave Rolsky)
1154 - test and bug finding (tokuhirom)
1156 0.55_01 Wed August 20, 2008
1158 !! Calling Moose::init_meta as a function is now !!
1159 !! deprecated. Please see the Moose.pm docs for details. !!
1161 * Moose::Meta::Method::Constructor
1162 - Fix inlined constructor so that values produced by default
1163 or builder methods are coerced as required. (t0m)
1164 - added test for this (t0m)
1166 * Moose::Meta::Attribute
1167 - A lazy attribute with a default or builder did not attempt to
1168 coerce the default value. The immutable code _did_
1170 - added test for this (t0m)
1173 - This is a new helper module for writing "Moose-alike"
1174 modules. This should make the lives of MooseX module authors
1175 much easier. (Dave Rolsky)
1178 * Moose::Cookbook::Meta::Recipe5
1179 - Implemented metaclass traits (and wrote a recipe for it):
1181 use Moose -traits => 'Foo'
1183 This should make writing small Moose extensions a little
1184 easier (Dave Rolsky)
1186 * Moose::Cookbook::Basics::Recipe1
1187 - Removed any examples of direct hashref access, and applied an
1188 editorial axe to reduce verbosity. (Dave Rolsky)
1190 * Moose::Cookbook::Basics::Recipe1
1191 - Also applied an editorial axe here. (Dave Rolsky)
1194 * Moose::Cookbook::Extending::Recipe1
1195 * Moose::Cookbook::Extending::Recipe2
1196 - Rewrote extending and embedding moose documentation and
1197 recipes to use Moose::Exporter (Dave Rolsky)
1201 - These two modules now warn when you load them from the main
1202 package "main" package, because we will not export sugar to
1203 main. Previously it just did nothing. (Dave Rolsky)
1206 - Now provide an init_meta method just like Moose.pm, and you
1207 can call this to provide an alternate role metaclass. (Dave
1208 Rolsky and nothingmuch)
1209 - get_method_map now respects the package cache flag (nothingmuch)
1212 - Two new methods - add_method and wrap_method_body
1216 - Optimizations including allowing constructors to accept hash
1217 refs, making many more classes immutable, and making
1218 constructors immutable. (nothingmuch)
1220 0.55 Sun August 3, 2008
1221 * Moose::Meta::Attribute
1222 - breaking down the way 'handles' methods are
1223 created so that the process can be more easily
1224 overridden by subclasses (stevan)
1226 * Moose::Meta::TypeConstraint
1227 - fixing what is passed into a ->message with
1228 the type constraints (RT #37569)
1229 - added tests for this (Charles Alderman)
1231 * Moose::Util::TypeConstraints
1232 - fix coerce to accept anon types like subtype can (mst)
1235 - reorganized the recipes into sections - Basics, Roles, Meta,
1236 Extending - and wrote abstracts for each section (Dave Rolsky)
1238 * Moose::Cookbook::Basics::Recipe10
1239 - A new recipe that demonstrates operator overloading
1240 in combination with Moose. (bluefeet)
1242 * Moose::Cookbook::Meta::Recipe1
1243 - an introduction to what meta is and why you'd want to make
1244 your own metaclass extensions (Dave Rolsky)
1246 * Moose::Cookbook::Meta::Recipe4
1247 - a very simple metaclass example (Dave Rolsky)
1249 * Moose::Cookbook::Extending::Recipe1
1250 - how to write a Moose-alike module to use your own object base
1253 * Moose::Cookbook::Extending::Recipe2
1254 - how to write modules with an API just like C<Moose.pm> (Dave
1258 - Tons of fixes, both syntactical and grammatical (Dave
1259 Rolsky, Paul Fenwick)
1261 0.54 Thurs. July 3, 2008
1262 ... this is not my day today ...
1264 * Moose::Meta::Attribute
1265 - fixed legal_options_for_inheritance such that
1266 clone_and_inherit options still works for
1267 Class::MOP::Attribute objects and therefore
1268 does not break MooseX::AttributeHelpers
1271 0.53 Thurs. July 3, 2008
1272 * Whoops, I guess I should run 'make manifest' before
1273 actually releasing the module. No actual changes
1274 in this release, except the fact that it includes
1275 the changes that I didn't include in the last
1278 0.52 Thurs. July 3, 2008
1280 - added "FEATURE REQUESTS" section to the Moose docs
1281 to properly direct people (stevan) (RT #34333)
1282 - making 'extends' croak if it is passed a Role since
1283 this is not ever something you want to do
1284 (fixed by stevan, found by obra)
1285 - added tests for this (stevan)
1288 - adding support for DOES (as in UNIVERSAL::DOES)
1290 - added test for this
1292 * Moose::Meta::Attribute
1293 - added legal_options_for_inheritance (wreis)
1294 - added tests for this (wreis)
1296 * Moose::Cookbook::Snacks::*
1297 - removed some of the unfinished snacks that should
1298 not have been released yet. Added some more examples
1299 to the 'Keywords' snack. (stevan)
1301 * Moose::Cookbook::Style
1302 - added general Moose "style guide" of sorts to the
1303 cookbook (nothingmuch) (RT #34335)
1306 - added more BUILDARGS tests (stevan)
1308 0.51 Thurs. Jun 26, 2008
1310 - add unimport so "no Moose::Role" actually does
1313 * Moose::Meta::Role::Application::ToRole
1314 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1315 order to provide its own implementation, that method still got
1316 added to the list of required methods for consumers of
1317 RoleB. Now an aliased method is only added to the list of
1318 required methods if the role doing the aliasing does not
1319 provide its own implementation. See Recipe 11 for an example
1320 of all this. (Dave Rolsky)
1321 - added tests for this
1323 * Moose::Meta::Method::Constructor
1324 - when a single argument that wasn't a hashref was provided to
1325 an immutabilized constructor, the error message was very
1326 unhelpful, as opposed to the non-immutable error. Reported by
1328 - added test for this (Dave Rolsky)
1330 * Moose::Meta::Attribute
1331 - added support for meta_attr->does("ShortAlias") (sartak)
1332 - added tests for this (sartak)
1333 - moved the bulk of the `handles` handling to the new
1334 install_delegation method (Stevan)
1337 - Added BUILDARGS, a new step in new()
1339 * Moose::Meta::Role::Application::RoleSummation
1340 - fix typos no one ever sees (sartak)
1342 * Moose::Util::TypeConstraints
1343 * Moose::Meta::TypeConstraint
1344 * Moose::Meta::TypeCoercion
1345 - Attempt to work around the ??{ } vs. threads issue
1347 - Some null_constraint optimizations
1349 0.50 Thurs. Jun 11, 2008
1350 - Fixed a version number issue by bumping all modules
1353 0.49 Thurs. Jun 11, 2008
1354 !! This version now approx. 20-25% !!
1355 !! faster with new Class::MOP 0.59 !!
1357 * Moose::Meta::Attribute
1358 - fixed how the is => (ro|rw) works with
1359 custom defined reader, writer and accessor
1361 - added docs for this (TODO).
1362 - added tests for this (Thanks to Penfold)
1363 - added the custom attribute alias for regular
1364 Moose attributes which is "Moose"
1365 - fix builder and default both being used
1370 Moose::Meta::Attribute
1372 Moose::Meta::Role::Composite
1373 Moose::Util::TypeConstraints
1374 - switched usage of reftype to ref because
1378 - changing add_package_symbol to use the new
1382 - fixed how DEMOLISHALL is called so that it
1383 can be overrided in subclasses (thanks to Sartak)
1384 - added test for this (thanks to Sartak)
1386 * Moose::Util::TypeConstraints
1387 - move the ClassName type check code to
1388 Class::MOP::is_class_loaded (thanks to Sartak)
1390 * Moose::Cookbook::Recipe11
1391 - add tests for this (thanks to tokuhirom)
1393 0.48 Thurs. May 29, 2008
1394 (early morning release engineering)--
1396 - fixing the version in Moose::Meta::Method::Destructor
1397 which was causing the indexer to choke
1399 0.47 Thurs. May 29, 2008
1400 (late night release engineering)--
1402 - fixing the version is META.yml, no functional
1403 changes in this release
1405 0.46 Wed. May 28, 2008
1406 !! This version now approx. 20-25% !!
1407 !! faster with new Class::MOP 0.57 !!
1409 * Moose::Meta::Class
1410 - some optimizations of the &initialize method
1411 since it is called so often by &meta
1413 * Moose::Meta::Class
1415 - now use the get_all_package_symbols from the
1416 updated Class::MOP, test suite is now 10 seconds
1419 * Moose::Meta::Method::Destructor
1420 - is_needed can now also be called as a class
1421 method for immutablization to check if the
1422 destructor object even needs to be created
1425 * Moose::Meta::Method::Destructor
1426 Moose::Meta::Method::Constructor
1427 - added more descriptive error message to help
1428 keep people from wasting time tracking an error
1429 that is easily fixed by upgrading.
1431 0.45 Saturday, May 24, 2008
1433 - Because of work in Class::MOP 0.57, all
1434 XS based functionality is now optional
1435 and a Pure Perl version is supplied
1436 - the CLASS_MOP_NO_XS environment variable
1437 can now be used to force non-XS versions
1439 - several of the packages have been tweaked
1440 to take care of this, mostly we added
1441 support for the package_name and name
1442 variables in all the Method metaclasses
1443 - before/around/after method modifiers now
1444 support regexp matching of names
1445 (thanks to Takatoshi Kitano)
1446 - tests added for this
1447 - NOTE: this only works for classes, it
1448 is currently not supported in roles,
1449 but, ... patches welcome
1450 - All usage of Carp::confess have been replaced
1451 by Carp::croak in the "keyword" functions since
1452 the stack trace is usually not helpful
1455 - All usage of Carp::confess have been replaced
1456 by Carp::croak in the "keyword" functions since
1457 the stack trace is usually not helpful
1458 - The 'has' keyword for roles now accepts the
1459 same array ref form that Moose.pm does
1460 (has [qw/foo bar/] => (is => 'rw', ...))
1461 - added test for this
1463 * Moose::Meta::Attribute
1464 - trigger on a ro-attribute is no longer an
1465 error, as it's useful to trigger off of the
1468 * Moose::Meta::Class
1469 - added same 'add_package_symbol' fix as in
1473 - does_role now handles non-Moose classes
1475 - added tests for this
1476 - added the 'add_method_modifier' function
1477 (thanks to Takatoshi Kitano)
1479 * Moose::Util::TypeConstraints
1480 - subtypes of parameterizable types now are
1481 themselves parameterizable types
1483 * Moose::Meta::Method::Constructor
1484 - fixed bug where trigger was not being
1485 called by the inlined immutable
1487 - added test for this (thanks to Caelum)
1489 * Moose::Meta::Role::Application::ToInstance
1490 - now uses the metaclass of the instance
1491 (if possible) to create the anon-class
1492 (thanks Jonathan Rockway)
1494 * Moose::Cookbook::Recipe22
1495 - added the meta-attribute trait recipe
1499 - fixed hash-ordering test bug that was
1500 causing occasional cpantester failures
1501 - renamed the t/000_recipe/*.t tests to be
1502 more descriptive (thanks to Sartak)
1504 0.44 Sat. May 10, 2008
1506 - made make_immutable warning cluck to
1507 show where the error is (thanks mst)
1510 - BUILDALL and DEMOLISHALL now call
1511 ->body when looping through the
1512 methods, to avoid the overloaded
1514 - fixed issue where DEMOLISHALL was
1515 eating the $@ values, and so not
1516 working correctly, it still kind of
1517 eats them, but so does vanilla perl
1518 - added tests for this
1520 * Moose::Cookbook::Recipe7
1521 - added new recipe for immutable
1522 functionality (thanks Dave Rolsky)
1524 * Moose::Cookbook::Recipe9
1525 - added new recipe for builder and
1526 lazy_build (thanks Dave Rolsky)
1528 * Moose::Cookbook::Recipe11
1529 - added new recipe for method aliasing
1530 and exclusion with Roles (thanks Dave Rolsky)
1533 - fixed Win32 test failure (thanks spicyjack)
1535 ~ removed Build.PL and Module::Build compat
1536 since Module::Install has done that.
1538 0.43 Wed. April, 30, 2008
1540 drink more coffee before
1541 doing release engineering
1543 - whoops, forgot to do the smolder tests,
1544 and we broke some of the custom meta-attr
1545 modules. This fixes that.
1547 0.42 Mon. April 28, 2008
1548 - some bad tests slipped by, nothing else
1549 changed in this release (cpantesters++)
1551 - upped the Class::MOP dependency to 0.55
1552 since we have tests which need the C3
1555 0.41 Mon. April 28, 2008
1556 ~~ numerous documentation updates ~~
1558 - Changed all usage of die to Carp::croak for better
1559 error reporting (initial patch by Tod Hagan)
1561 ** IMPORTANT NOTE **
1562 - the make_immutable keyword is now deprecated, don't
1563 use it in any new code and please fix your old code
1564 as well. There will be 2 releases, and then it will
1570 - refactored the way inner and super work to avoid
1571 any method/@ISA cache penalty (nothingmuch)
1573 * Moose::Meta::Class
1574 - fixing &new_object to make sure trigger gets the
1575 coerced value (spotted by Charles Alderman on the
1577 - added test for this
1579 * Moose::Meta::Method::Constructor
1580 - immutable classes which had non-lazy attributes were calling
1581 the default generating sub twice in the constructor. (bug
1582 found by Jesse Luehrs, fixed by Dave Rolsky)
1583 - added tests for this (Dave Rolsky)
1584 - fix typo in initialize_body method (nothingmuch)
1586 * Moose::Meta::Method::Destructor
1587 - fix typo in initialize_body method (nothingmuch)
1589 * Moose::Meta::Method::Overriden
1590 Moose::Meta::Method::Augmented
1591 - moved the logic for these into their own
1592 classes (nothingmuch)
1594 * Moose::Meta::Attribute
1595 - inherited attributes may now be extended without
1596 restriction on the type ('isa', 'does') (Sartak)
1597 - added tests for this (Sartak)
1598 - when an attribute property is malformed (such as lazy without
1599 a default), give the name of the attribute in the error
1601 - added the &applied_traits and &has_applied_traits methods
1602 to allow introspection of traits
1603 - added tests for this
1604 - moved 'trait' and 'metaclass' argument handling to here from
1606 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1607 '+foo' syntax) (nothingmuch)
1608 - added tests for this (t0m)
1611 - localize $@ inside DEMOLISHALL to avoid it
1612 eating $@ (found by Ernesto)
1613 - added test for this (thanks to Ernesto)
1615 * Moose::Util::TypeConstraints
1616 - &find_type_constraint now DWIMs when given an
1617 type constraint object or name (nothingmuch)
1618 - &find_or_create_type_constraint superseded with a number of more
1620 - find_or_create_{isa,does}_type_constraint
1621 - find_or_parse_type_constraint
1623 * Moose::Meta::TypeConstraint
1624 Moose::Meta::TypeConstraint::Class
1625 Moose::Meta::TypeConstraint::Role
1626 Moose::Meta::TypeConstraint::Enum
1627 Moose::Meta::TypeConstraint::Union
1628 Moose::Meta::TypeConstraint::Parameterized
1629 - added the &equals method for comparing two type
1630 constraints (nothingmuch)
1631 - added tests for this (nothingmuch)
1633 * Moose::Meta::TypeConstraint
1634 - add the &parents method, which is just an alias to &parent.
1635 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1637 * Moose::Meta::TypeConstraint::Class
1638 - added the class attribute for introspection purposes
1640 - added tests for this
1642 * Moose::Meta::TypeConstraint::Enum
1643 Moose::Meta::TypeConstraint::Role
1644 - broke these out into their own classes (nothingmuch)
1646 * Moose::Cookbook::Recipe*
1647 - fixed references to test file locations in the POD
1648 and updated up some text for new Moose features
1652 - Added &resolve_metaclass_alias, a helper function for finding an actual
1653 class for a short name (e.g. in the traits list)
1655 0.40 Fri. March 14, 2008
1656 - I hate Pod::Coverage
1658 0.39 Fri. March 14, 2008
1660 - documenting the use of '+name' with attributes
1661 that come from recently composed roles. It makes
1662 sense, people are using it, and so why not just
1663 officially support it.
1664 - fixing the 'extends' keyword so that it will not
1665 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1668 - added the perl -Moose=+Class::Name feature to allow
1669 monkeypatching of classes in one liners
1672 - fixing the 'apply_all_roles' keyword so that it will not
1673 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1675 * Moose::Meta::Class
1676 - added ->create method which now supports roles (thanks to jrockway)
1677 - added tests for this
1678 - added ->create_anon_class which now supports roles and caching of
1679 the results (thanks to jrockway)
1680 - added tests for this
1681 - made ->does_role a little more forgiving when it is
1682 checking a Class::MOP era metaclasses.
1684 * Moose::Meta::Role::Application::ToInstance
1685 - it is now possible to pass extra params to be used when
1686 a role is applied to an the instance (rebless_params)
1687 - added tests for this
1689 * Moose::Util::TypeConstraints
1690 - class_type now accepts an optional second argument for a
1691 custom message. POD anotated accordingly (groditi)
1692 - added tests for this
1693 - it is now possible to make anon-enums by passing 'enum' an
1694 ARRAY ref instead of the $name => @values. Everything else
1696 - added tests for this
1699 - making test for using '+name' on attributes consumed
1700 from a role, it works and makes sense too.
1702 * Moose::Meta::Attribute
1703 - fix handles so that it doesn't return nothing
1704 when the method cannot be found, not sure why
1705 it ever did this originally, this means we now
1706 have slightly better support for AUTOLOADed
1708 - added more delegation tests
1709 - adding ->does method to this so as to better
1710 support traits and their introspection.
1711 - added tests for this
1714 - localizing the Data::Dumper configurations so
1715 that it does not pollute others (RT #33509)
1716 - made ->does a little more forgiving when it is
1717 passed Class::MOP era metaclasses.
1719 0.38 Fri. Feb. 15, 2008
1720 * Moose::Meta::Attribute
1721 - fixed initializer to correctly do
1722 type checking and coercion in the
1724 - added tests for this
1727 - fixed some finicky tests (thanks to konobi)
1729 0.37 Thurs. Feb. 14, 2008
1731 - fixed some details in Moose::init_meta
1732 and its superclass handling (thanks thepler)
1733 - added tests for this (thanks thepler)
1734 - 'has' now dies if you don't pass in name
1736 - added the 'make_immutable' keyword as a shortcut
1739 * Moose::Meta::Class
1740 Moose::Meta::Method::Constructor
1741 Moose::Meta::Attribute
1742 - making (init_arg => undef) work here too
1743 (thanks to nothingmuch)
1745 * Moose::Meta::Attribute
1746 Moose::Meta::Method::Constructor
1747 Moose::Meta::Method::Accessor
1748 - make lazy attributes respect attr initializers (rjbs)
1749 - added tests for this
1751 * Moose::Util::TypeConstraints
1752 Moose::Util::TypeConstraints::OptimizedConstraints
1753 Moose::Meta::TypeConstraints
1754 Moose::Meta::Attribute
1755 Moose::Meta::Method::Constructor
1756 Moose::Meta::Method::Accessor
1757 - making type errors use the
1758 assigned message (thanks to Sartak)
1759 - added tests for this
1761 * Moose::Meta::Method::Destructor
1762 - making sure DESTROY gets inlined properly
1763 with successive DEMOLISH calls (thanks to manito)
1765 * Moose::Meta::Attribute
1766 Moose::Meta::Method::Accessor
1767 - fixed handling of undef with type constraints
1769 - added tests for this
1772 - added &get_all_init_args and &get_all_attribute_values
1773 (thanks to Sartak and nothingmuch)
1775 0.36 Sat. Jan. 26, 2008
1777 Moose::Meta::Attribute
1778 - role type tests now support when roles are
1779 applied to non-Moose classes (found by ash)
1780 - added tests for this (thanks to ash)
1781 - couple extra tests to boost code coverage
1783 * Moose::Meta::Method::Constructor
1784 - improved fix for handling Class::MOP attributes
1785 - added test for this
1787 * Moose::Meta::Class
1788 - handled the add_attribute($attribute_meta_object)
1790 - added test for this
1792 0.35 Tues. Jan. 22, 2008
1793 * Moose::Meta::Method::Constructor
1794 - fix to make sure even Class::MOP attributes
1795 are handled correctly (Thanks to Dave Rolsky)
1796 - added test for this (also Dave Rolsky)
1798 * Moose::Meta::Class
1799 - improved error message on _apply_all_roles,
1800 you should now use Moose::Util::apply_all_roles
1801 and you shouldnt have been using a _ prefixed
1802 method in the first place ;)
1804 0.34 Mon. Jan. 21, 2008
1805 ~~~ more misc. doc. fixes ~~~
1806 ~~ updated copyright dates ~~
1808 Moose is now a postmodern object system :)
1809 - (see the POD for details)
1811 * <<Role System Refactoring>>
1812 - this release contains a major reworking and
1813 cleanup of the role system
1814 - 100% backwards compat.
1815 - Role application now restructured into seperate
1816 classes based on type of applicants
1817 - Role summation (combining of more than one role)
1818 is much cleaner and anon-classes are no longer
1819 used in this process
1820 - new Composite role metaclass
1821 - runtime application of roles to instances
1822 is now more efficient and re-uses generated
1823 classes when applicable
1825 * <<New Role composition features>>
1826 - methods can now be excluded from a given role
1828 - methods can now be aliased to another name (and
1829 still retain the original as well)
1831 * Moose::Util::TypeConstraints::OptimizedConstraints
1832 - added this module (see above)
1834 * Moose::Meta::Class
1835 - fixed the &_process_attribute method to be called
1836 by &add_attribute, so that the API is now correct
1838 * Moose::Meta::Method::Accessor
1839 - fixed bug when passing a list of values to
1840 an accessor would get (incorrectly) ignored.
1841 Thanks to Sartak for finding this ;)
1842 - added tests for this (Sartak again)
1844 * Moose::Meta::Method::Accessor
1845 Moose::Meta::Method::Constructor
1846 Moose::Meta::Attribute
1847 Moose::Meta::TypeConstraint
1848 Moose::Meta::TypeCoercion
1849 - lots of cleanup of such things as:
1851 - type constraint handling
1852 - error handling/messages
1853 (thanks to nothingmuch)
1855 * Moose::Meta::TypeConstraint::Parameterizable
1856 - added this module to support the refactor
1857 in Moose::Meta::TypeConstraint::Parameterized
1859 * Moose::Meta::TypeConstraint::Parameterized
1860 - refactored how these types are handled so they
1861 are more generic and not confined to ArrayRef
1865 - shortened some file names for better VMS support (RT #32381)
1867 0.33 Fri. Dec. 14, 2007
1868 !! Moose now loads 2 x faster !!
1869 !! with new Class::MOP 0.49 !!
1871 ++ new oose.pm module to make command line
1872 Moose-ness easier (see POD docs for more)
1874 * Moose::Meta::Class
1876 - several tweaks to take advantage of the
1877 new method map caching in Class::MOP
1879 * Moose::Meta::TypeConstraint::Parameterized
1880 - allow subtypes of ArrayRef and HashRef to
1881 be used as a container (sartak)
1882 - added tests for this
1883 - basic support for coercion to ArrayRef and
1884 HashRef for containers (sartak)
1885 - added tests for this
1887 * Moose::Meta::TypeCoercion
1888 - coercions will now create subtypes as needed
1889 so you can now add coercions to parameterized
1890 types without having to explictly define them
1891 - added tests for this
1893 * Moose::Meta::Method::Accessor
1894 - allow subclasses to decide whether we need
1895 to copy the value into a new variable (sartak)
1897 0.32 Tues. Dec. 4, 2007
1898 * Moose::Util::TypeConstraints
1899 - fixing how subtype aliases of unions work
1900 they should inherit the parent's coercion
1901 - added tests for this
1902 - you can now define multiple coercions on
1903 a single type at different times instead of
1904 having to do it all in one place
1905 - added tests for this
1907 * Moose::Meta::TypeConstraint
1908 - there is now a default constraint of sub { 1 }
1909 instead of Moose::Util::TypeConstraints setting
1912 * Moose::Meta::TypeCoercion
1913 * Moose::Meta::TypeCoercion::Union
1914 - added the &has_coercion_for_type and
1915 &add_type_coercions methods to support the
1916 new features above (although you cannot add
1917 more type coercions for Union types)
1919 0.31 Mon. Nov. 26, 2007
1920 * Moose::Meta::Attribute
1921 - made the +attr syntax handle extending types with
1922 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1923 now works if the original foo is an ArrayRef.
1924 - added tests for this.
1925 - delegation now works even if the attribute does not
1926 have a reader method using the get_read_method_ref
1927 method from Class::MOP::Attribute.
1928 - added tests for this
1929 - added docs for this
1931 * Moose::Util::TypeConstraints
1932 - passing no "additional attribute info" to
1933 &find_or_create_type_constraint will no longer
1934 attempt to create an __ANON__ type for you,
1935 instead it will just return undef.
1936 - added docs for this
1938 0.30 Fri. Nov. 23, 2007
1939 * Moose::Meta::Method::Constructor
1940 -builder related bug in inlined constructor. (groditi)
1942 * Moose::Meta::Method::Accessor
1943 - genereate unnecessary calls to predicates and refactor
1944 code generation for runtime speed (groditi)
1946 * Moose::Util::TypeConstraints
1947 - fix ClassName constraint to introspect symbol table (mst)
1948 - added more tests for this (mst)
1949 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1950 with work correctly.
1951 - added tests for this
1954 - adding the link to Recipie 11 (written by Sartak)
1955 - adding test for SYNOPSIS code
1958 - New tests for builder bug. Upon instantiation, if an
1959 attribute had a builder, no value and was not lazy the
1960 builder default was not getting run, oops. (groditi)
1962 0.29 Tues. Nov. 13, 2007
1963 * Moose::Meta::Attribute
1964 - Fix error message on missing builder method (groditi)
1966 * Moose::Meta::Method::Accessor
1967 - Fix error message on missing builder method (groditi)
1970 - Add test to check for the correct error message when
1971 builder method is missing (groditi)
1973 0.28 Tues. Nov. 13, 2007
1974 - 0.27 packaged incorrectly (groditi)
1976 0.27 Tues. Nov. 13, 2007
1977 * Moose::Meta::Attribute
1978 - Added support for the new builder option (groditi)
1979 - Added support for lazy_build option (groditi)
1980 - Changed slot initialization for predicate changes (groditi)
1982 * Moose::Meta::Method::Accessor
1983 - Added support for lazy_build option (groditi)
1984 - Fix inline methods to work with corrected predicate
1987 * Moose::Meta::Method::Constructor
1988 - Added support for lazy_build option (groditi)
1991 - tests for builder and lazy_build (groditi)
1993 * fixing some misc. bits in the docs that
1994 got mentioned on CPAN Forum & perlmonks
1997 - fixed how required methods are handled
1998 when they encounter overriden or modified
1999 methods from a class (thanks to confound).
2000 - added tests for this
2002 * Moose::Util::TypeConstraint
2003 - fixed the type notation parser so that
2004 the | always creates a union and so is
2005 no longer a valid type char (thanks to
2006 konobi, mugwump and #moose for working
2008 - added more tests for this
2010 0.26 Thurs. Sept. 27, 2007
2013 * Parameterized Types
2014 We now support parameterized collection types, such as:
2015 ArrayRef[Int] # array or integers
2016 HashRef[Object] # a hash with object values
2017 They can also be nested:
2018 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2019 And work with the type unions as well:
2020 ArrayRef[Int | Str] # array of integers of strings
2022 * Better Framework Extendability
2023 Moose.pm is now "extendable" such that it is now much
2024 easier to extend the framework and add your own keywords
2025 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2026 section of the Moose.pm docs.
2029 In an effort to begin documenting some of the various
2030 details of Moose as well as some common idioms, we have
2031 created Moose::Cookbook::Snacks as a place to find
2032 small (easily digestable) nuggets of Moose code.
2035 ~ Several doc updates/cleanup thanks to castaway ~
2037 - converted build system to use Module::Install instead of
2038 Module::Build (thanks to jrockway)
2041 - added all the meta classes to the immutable list and
2042 set it to inline the accessors
2043 - fix import to allow Sub::Exporter like { into => }
2044 and { into_level => } (perigrin)
2045 - exposed and documented init_meta() to allow better
2046 embedding and extending of Moose (perigrin)
2049 - complete re-organization of the test suite
2050 - added some new tests as well
2051 - finally re-enabled the Moose::POOP test since
2052 the new version of DBM::Deep now works again
2055 * Moose::Meta::Class
2056 - fixed very odd and very nasty recursion bug with
2058 - added tests for this (eilara)
2060 * Moose::Meta::Attribute
2061 Moose::Meta::Method::Constructor
2062 Moose::Meta::Method::Accessor
2063 - fixed issue with overload::Overloaded getting called
2064 on non-blessed items. (RT #29269)
2065 - added tests for this
2067 * Moose::Meta::Method::Accessor
2068 - fixed issue with generated accessor code making
2069 assumptions about hash based classes (thanks to dexter)
2071 * Moose::Coookbook::Snacks
2072 - these are bits of documentation, not quite as big as
2073 Recipes but which have no clear place in the module docs.
2074 So they are Snacks! (horray for castaway++)
2076 * Moose::Cookbook::Recipe4
2077 - updated it to use the new ArrayRef[MyType] construct
2078 - updated the accompanying test as well
2080 +++ Major Refactor of the Type Constraint system +++
2081 +++ with new features added as well +++
2083 * Moose::Util::TypeConstraint
2084 - no longer uses package variable to keep track of
2085 the type constraints, now uses the an instance of
2086 Moose::Meta::TypeConstraint::Registry to do it
2087 - added more sophisticated type notation parsing
2089 - added tests for this
2091 * Moose::Meta::TypeConstraint
2092 - some minor adjustments to make subclassing easier
2093 - added the package_defined_in attribute so that we
2094 can track where the type constraints are created
2096 * Moose::Meta::TypeConstraint::Union
2097 - this is now been refactored to be a subclass of
2098 Moose::Meta::TypeConstraint
2100 * Moose::Meta::TypeCoercion::Union
2101 - this has been added to service the newly refactored
2102 Moose::Meta::TypeConstraint::Union and is itself
2103 a subclass of Moose::Meta::TypeCoercion
2105 * Moose::Meta::TypeConstraint::Parameterized
2106 - added this module (taken from MooseX::AttributeHelpers)
2107 to help construct nested collection types
2108 - added tests for this
2110 * Moose::Meta::TypeConstraint::Registry
2111 - added this class to keep track of type constraints
2113 0.25 Mon. Aug. 13, 2007
2115 - Documentation update to reference Moose::Util::TypeConstraints
2116 under 'isa' in 'has' for how to define a new type
2117 (thanks to shlomif).
2119 * Moose::Meta::Attribute
2120 - required attributes now will no longer accept undef
2121 from the constructor, even if there is a default and lazy
2122 - added tests for this
2123 - default subroutines must return a value which passes the
2125 - added tests for this
2127 * Moose::Meta::Attribute
2128 * Moose::Meta::Method::Constructor
2129 * Moose::Meta::Method::Accessor
2130 - type-constraint tests now handle overloaded objects correctly
2131 in the error message
2132 - added tests for this (thanks to EvanCarroll)
2134 * Moose::Meta::TypeConstraint::Union
2135 - added (has_)hand_optimized_constraint to this class so that
2136 it behaves as the regular Moose::Meta::TypeConstraint does.
2139 - large refactoring of this code
2140 - added several more tests
2141 - tests for subtle conflict resolition issues
2142 added, but not currently running
2145 * Moose::Cookbook::Recipe7
2146 - added new recipe for augment/inner functionality
2148 - added test for this
2151 - a formal definition of roles (still in progress)
2154 - utilities for easier working with Moose classes
2155 - added tests for these
2158 - This contains Moose specific test functions
2159 - added tests for these
2161 0.24 Tues. July 3, 2007
2162 ~ Some doc updates/cleanup ~
2164 * Moose::Meta::Attribute
2165 - added support for roles to be given as parameters
2166 to the 'handles' option.
2167 - added tests and docs for this
2168 - the has '+foo' attribute form now accepts changes to
2169 the lazy option, and the addition of a handles option
2170 (but not changing the handles option)
2171 - added tests and docs for this
2174 - required methods are now fetched using find_method_by_name
2175 so that required methods can come from superclasses
2176 - adjusted tests for this
2178 0.23 Mon. June 18, 2007
2179 * Moose::Meta::Method::Constructor
2180 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2181 * Moose::Meta::Class
2182 - Modify make_immutable to work with the new Class::MOP immutable
2183 mechanism + POD + very basic test (groditi)
2184 * Moose::Meta::Attribute
2185 - Fix handles to use goto() so that caller() comes out properly on
2186 the other side (perigrin)
2188 0.22 Thurs. May 31, 2007
2189 * Moose::Util::TypeConstraints
2190 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2191 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2192 prototypes for functions
2193 - added the ClassName type constraint, this checks for strings
2194 which will respond true to ->isa(UNIVERSAL).
2195 - added tests and docs for this
2196 - subtyping just in name now works correctly by making the
2197 default for where be { 1 }
2198 - added test for this
2200 * Moose::Meta::Method::Accessor
2201 - coerce and lazy now work together correctly, thanks to
2202 merlyn for finding this bug
2203 - tests added for this
2204 - fix reader presedence bug in Moose::Meta::Attribute + tests
2207 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2208 a HASH-ref and missed. This produces better error messages then
2209 having it die cause undef is not a HASH.
2210 - added tests for this
2212 0.21 Thursday, May 2nd, 2007
2214 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2215 - modified unimport to remove super and inner along with the rest
2216 - altered unimport tests to handle this
2219 - altered super export to populate SUPER_SLOT
2221 * Moose::Meta::Class
2222 - altered augment and override modifier application to use *_SLOT
2223 - modified tests for these to unimport one test class each to test
2226 - fixed issue where custom attribute metaclasses
2227 where not handled correctly in roles
2228 - added tests for this
2230 * Moose::Meta::Class
2231 - fixed issue where extending metaclasses with
2232 roles would blow up. Thanks to Aankhen`` for
2233 finding this insidious error, and it's solution.
2235 ~~ lots of spelling and grammer fixes in the docs,
2236 many many thanks to rlb3 and Aankhen for these :)
2238 0.20 Friday, April 6th, 2007
2239 >> I messed up the SKIP logic in one test
2240 so this release is just to fix that.
2243 - 'has' now also accepts an ARRAY ref
2244 to create multiple attrs (see docs)
2245 (thanks to konobi for this)
2246 - added tests and docs
2248 0.19 Thurs. April 5th, 2007
2249 ~~ More documentation updates ~~
2251 * Moose::Util::TypeConstraints
2252 - 'type' now supports messages as well
2253 thanks to phaylon for finding this
2254 - added tests for this
2255 - added &list_all_type_constraints and
2256 &list_all_builtin_type_constraints
2257 functions to facilitate introspection.
2259 * Moose::Meta::Attribute
2260 - fixed regexp 'handles' declarations
2261 to build the list of delegated methods
2262 correctly (and not override important
2263 things like &new) thanks to ashleyb
2265 - added tests and docs for this
2266 - added the 'documentation' attributes
2267 so that you can actually document your
2268 attributes and inspect them through the
2270 - added tests and docs for this
2272 * Moose::Meta::Class
2273 - when loading custom attribute metaclasses
2274 it will first look in for the class in the
2275 Moose::Meta::Attribute::Custom::$name, and
2276 then default to just loading $name.
2277 - added tests and docs for this
2279 * Moose::Meta::TypeConstraint
2280 - type constraints now stringify to their names.
2281 - added test for this
2284 - added tests to assure we work with Module::Refresh
2285 - added stricter test skip logic in the Moose POOP
2286 test, ask Rob Kinyon why.
2287 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2289 0.18 Sat. March 10, 2007
2290 ~~ Many, many documentation updates ~~
2293 - We now use Class::MOP::load_class to
2295 - added tests to show types and subtypes
2296 working with Declare::Constraints::Simple
2297 and Test::Deep as constraint engines.
2300 !! You must have Class::MOP 0.37_001 !!
2301 !! for this developer release to work !!
2303 This release was primarily adding the immutable
2304 feature to Moose. An immutable class is one which
2305 you promise not to alter. When you set the class
2306 as immutable it will perform various bits of
2307 memoization and inline certain part of the code
2308 (constructors, destructors and accessors). This
2309 minimizes (and in some cases totally eliminates)
2310 one of Moose's biggest performance hits. This
2311 feature is not on by default, and is 100% optional.
2312 It has several configurable bits as well, so you
2313 can pick and choose to your specific needs.
2315 The changes involved in this were fairly wide and
2316 highly specific, but 100% backwards compatible, so
2317 I am not going to enumerate them here. If you are
2318 truely interested in what was changed, please do
2321 0.17 Tues. Nov. 14, 2006
2322 * Moose::Meta::Method::Accessor
2323 - bugfix for read-only accessors which
2324 are have a type constraint and lazy.
2325 Thanks to chansen for finding it.
2327 0.16 Tues. Nov. 14, 2006
2329 There are some speed improvements in this release,
2330 but they are only the begining, so stay tuned.
2333 - BUILDALL and DEMOLISHALL no longer get
2334 called unless they actually need to be.
2335 This gave us a signifigant speed boost
2336 for the cases when there is no BUILD or
2337 DEMOLISH method present.
2339 * Moose::Util::TypeConstraints
2340 * Moose::Meta::TypeConstraint
2341 - added an 'optimize_as' option to the
2342 type constraint, which allows for a
2343 hand optimized version of the type
2344 constraint to be used when possible.
2345 - Any internally created type constraints
2346 now provide an optimized version as well.
2348 0.15 Sun. Nov. 5, 2006
2350 This version of Moose *must* have Class::MOP 0.36 in order
2351 to work correctly. A number of small internal tweaks have
2352 been made in order to be compatible with that release.
2354 * Moose::Util::TypeConstraints
2355 - added &unimport so that you can clean out
2356 your class namespace of these exported
2359 * Moose::Meta::Class
2360 - fixed minor issue which occasionally
2361 comes up during global destruction
2363 - moved Moose::Meta::Method::Overriden into
2367 - moved Moose::Meta::Role::Method into
2370 * Moose::Meta::Attribute
2371 - changed how we do type checks so that
2372 we reduce the overall cost, but still
2375 - moved accessor generation methods to
2376 Moose::Meta::Method::Accessor to
2377 conform to the API changes from
2380 * Moose::Meta::TypeConstraint
2381 - changed how constraints are compiled
2382 so that we do less recursion and more
2383 iteration. This makes the type check
2385 - moved Moose::Meta::TypeConstraint::Union
2388 * Moose::Meta::Method::Accessor
2389 - created this from methods formerly found in
2390 Moose::Meta::Attribute
2392 * Moose::Meta::Role::Method
2393 - moved this from Moose::Meta::Role
2395 * Moose::Meta::Method::Overriden
2396 - moved this from Moose::Meta::Class
2398 * Moose::Meta::TypeConstraint::Union
2399 - moved this from Moose::Meta::TypeConstraint
2401 0.14 Mon. Oct. 9, 2006
2403 * Moose::Meta::Attribute
2404 - fixed lazy attributes which were not getting
2405 checked with the type constraint (thanks ashley)
2406 - added tests for this
2407 - removed the over-enthusiastic DWIMery of the
2408 automatic ArrayRef and HashRef defaults, it
2409 broke predicates in an ugly way.
2410 - removed tests for this
2412 0.13 Sat. Sept. 30, 2006
2414 This version of Moose *must* have Class::MOP 0.35 in order
2415 to work correctly. A number of small internal tweaks have
2416 been made in order to be compatible with that release.
2419 - Removed the use of UNIVERSAL::require to be a better
2420 symbol table citizen and remove a dependency
2421 (thanks Adam Kennedy)
2423 **~~ removed experimental & undocumented feature ~~**
2424 - commented out the 'method' and 'self' keywords, see the
2425 comments for more info.
2428 - added a FAQ and WTF files to document frequently
2429 asked questions and common problems
2431 * Moose::Util::TypeConstraints
2432 - added GlobRef and FileHandle type constraint
2433 - added tests for this
2435 * Moose::Meta::Attribute
2436 - if your attribute 'isa' ArrayRef of HashRef, and you have
2437 not explicitly set a default, then make the default DWIM.
2438 This will also work for subtypes of ArrayRef and HashRef
2440 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2441 - new test added for this (thanks to ashley)
2444 - added basic support for runtime role composition
2445 but this is still *highly experimental*, so feedback
2446 is much appreciated :)
2447 - added tests for this
2449 * Moose::Meta::TypeConstraint
2450 - the type constraint now handles the coercion process
2451 through delegation, this is to support the coercion
2454 * Moose::Meta::TypeConstraint::Union
2455 - it is now possible for coercions to be performed
2457 - added tests for this (thanks to konobi)
2459 * Moose::Meta::TypeCoercion
2460 - properly capturing error when type constraint
2464 - Scalar::Util 1.18 is bad on Win32, so temporarily
2465 only require version 1.17 for Win32 and cygwin.
2466 (thanks Adam Kennedy)
2468 0.12 Sat. Sept. 1, 2006
2470 - Recipe5 (subtypes & coercion) has been written
2473 - fixed "bad meta" error message to be more descriptive
2474 - fixed &unimport to not remove the &inner and &super
2475 keywords because we need to localize them.
2476 - fixed number of spelling/grammer issues, thanks Theory :)
2478 **~~ experimental & undocumented feature ~~**
2479 - added the method and self keywords, they are basically
2480 just sugar, and they may not stay around.
2483 - added &dump method to easily Data::Dumper
2486 * Moose::Meta::TypeConstraint
2487 - added the &is_a_type_of method to check both the current
2488 and the subtype of a method (similar to &isa with classes)
2491 - this is now a subclass of Class::MOP::Module, and no longer
2492 creates the _role_meta ugliness of before.
2493 - fixed tests to reflect this change
2495 0.11 Wed. July 12, 2006
2497 - added an &unimport method to remove all the keywords
2498 that Moose will import, simply add 'no Moose' to the
2499 bottom of your class file.
2502 - fixed some test failures caused by a forgotten test
2505 0.10 Thurs. July 6, 2006
2507 - improved error message when loading modules so
2508 it is less confusing when you load a role.
2509 - added &calculate_all_roles method to
2510 Moose::Meta::Class and Moose::Meta::Role
2513 This module has been tested against Class::MOP 0.30
2514 but it does not yet utilize the optimizations
2515 it makes available. Stay tuned for that ;)
2517 0.09_03 Fri. June 23, 2006
2518 ++ DEVELOPER RELEASE ++
2520 - 'use strict' and 'use warnings' are no longer
2521 needed in Moose classes, Moose itself will
2522 turn them on for you.
2523 - added tests for this
2524 - moved code from exported subs to private methods
2525 in Moose::Meta::Class
2528 - as with Moose, strict and warnings are
2529 automatically turned on for you.
2530 - added tests for this
2533 - now handles an edge case for override errors
2534 - added tests for this
2535 - added some more edge case tests
2537 0.09_02 Tues. May 16, 2006
2538 ++ DEVELOPER RELEASE ++
2540 - added prototypes to the exported subs
2544 - added prototypes to the exported subs
2547 * Moose::Util::TypeConstraints
2548 - cleaned up prototypes for the subs
2551 0.09_01 Fri. May 12, 2006
2552 ++ DEVELOPER RELEASE ++
2553 - This release works in combination with
2554 Class::MOP 0.29_01, it is a developer
2555 release because it uses the a new
2556 instance sub-protocol and a fairly
2557 complete Role implementation. It has
2558 not yet been optimized, so it slower
2559 the the previous CPAN version. This
2560 release also lacks good updated docs,
2561 the official release will have updated docs.
2564 - refactored the keyword exports
2565 - 'with' now checks Role validaity and
2566 accepts more than one Role at a time
2567 - 'extends' makes metaclass adjustments as
2568 needed to ensure metaclass compatibility
2571 - refactored the keyword exports
2572 - 'with' now checks Role validaity and
2573 accepts more than one Role at a time
2575 * Moose::Util::TypeConstraints
2576 - added the 'enum' keyword for simple
2577 string enumerations which can be used as
2579 - see example of usage in t/202_example.t
2582 - more careful checking of params to new()
2585 - much work done on the role composition
2586 - many new tests for conflict detection
2587 and composition edge cases
2588 - not enough documentation, I suggest
2589 looking at the tests
2591 * Moose::Meta::Instance
2592 - added new Instance metaclass to support
2593 the new Class::MOP instance protocol
2595 * Moose::Meta::Class
2596 - some small changes to support the new
2598 - some small additions to support Roles
2600 * Moose::Meta::Attribute
2601 - some improvements to the accessor generation code
2603 - some small changes to support the new
2605 - (still somewhat) experimental delegation support
2606 with the 'handles' option
2607 - added several tests for this
2608 - no docs for this yet
2610 0.05 Thurs. April 27, 2006
2612 - keywords are now exported with Sub::Exporter
2613 thanks to chansen for this commit
2614 - has keyword now takes a 'metaclass' option
2615 to support custom attribute meta-classes
2616 on a per-attribute basis
2617 - added tests for this
2618 - the 'has' keyword not accepts inherited slot
2619 specifications (has '+foo'). This is still an
2620 experimental feature and probably not finished
2621 see t/038_attribute_inherited_slot_specs.t for
2622 more details, or ask about it on #moose
2623 - added tests for this
2626 - keywords are now exported with Sub::Exporter
2628 * Moose::Utils::TypeConstraints
2629 - reorganized the type constraint hierarchy, thanks
2630 to nothingmuch and chansen for his help and advice
2632 - added some tests for this
2633 - keywords are now exported with Sub::Exporter
2634 thanks to chansen for this commit
2636 * Moose::Meta::Class
2637 - due to changes in Class::MOP, we had to change
2638 construct_instance (for the better)
2640 * Moose::Meta::Attribute
2641 - due to changes in Class::MOP, we had to add the
2642 initialize_instance_slot method (it's a good thing)
2644 * Moose::Meta::TypeConstraint
2645 - added type constraint unions
2646 - added tests for this
2647 - added the is_subtype_of predicate method
2648 - added tests for this
2650 0.04 Sun. April 16th, 2006
2652 - Roles can now consume other roles
2653 - added tests for this
2654 - Roles can specify required methods now with
2655 the requires() keyword
2656 - added tests for this
2659 - ripped out much of it's guts ,.. much cleaner now
2660 - added required methods and correct handling of
2661 them in apply() for both classes and roles
2662 - added tests for this
2663 - no longer adds a does() method to consuming classes
2664 it relys on the one in Moose::Object
2665 - added roles attribute and some methods to support
2666 roles consuming roles
2668 * Moose::Meta::Attribute
2669 - added support for triggers on attributes
2670 - added tests for this
2671 - added support for does option on an attribute
2672 - added tests for this
2674 * Moose::Meta::Class
2675 - added support for attribute triggers in the
2677 - added tests for this
2680 - Moose no longer creates a subtype for your class
2681 if a subtype of the same name already exists, this
2682 should DWIM in 99.9999% of all cases
2684 * Moose::Util::TypeConstraints
2685 - fixed bug where incorrect subtype conflicts were
2687 - added test for this
2690 - this class can now be extended with 'use base' if
2691 you need it, it properly loads the metaclass class now
2692 - added test for this
2694 0.03_02 Wed. April 12, 2006
2696 - you must now explictly use Moose::Util::TypeConstraints
2697 it no longer gets exported for you automatically
2700 - new() now accepts hash-refs as well as key/value lists
2701 - added does() method to check for Roles
2702 - added tests for this
2704 * Moose::Meta::Class
2705 - added roles attribute along with the add_role() and
2707 - added tests for this
2710 - now adds a does() method to consuming classes
2711 which tests the class's hierarchy for roles
2712 - added tests for this
2714 0.03_01 Mon. April 10, 2006
2716 - added new Role recipe (no content yet, only code)
2719 - added 'with' keyword for Role support
2720 - added test and docs for this
2721 - fixed subtype quoting bug
2722 - added test for this
2726 - added test and docs
2728 * Moose::Util::TypeConstraints
2729 - added the message keyword to add custom
2730 error messages to type constraints
2733 - the meta role to support Moose::Role
2734 - added tests and docs
2736 * Moose::Meta::Class
2737 - moved a number of things from Moose.pm
2738 to here, they should have been here
2741 * Moose::Meta::Attribute
2742 - moved the attribute option macros here
2743 instead of putting them in Moose.pm
2745 * Moose::Meta::TypeConstraint
2746 - added the message attributes and the
2748 - added tests and docs for this
2750 0.03 Thurs. March 30, 2006
2752 - added the Moose::Cookbook with 5 recipes,
2753 describing all the stuff Moose can do.
2756 - fixed an issue with &extends super class loading
2757 it now captures errors and deals with inline
2758 packages correctly (bug found by mst, solution
2760 - added super/override & inner/augment features
2761 - added tests and docs for these
2764 - BUILDALL now takes a reference of the %params
2765 that are passed to &new, and passes that to
2768 * Moose::Util::TypeConstraints
2769 - Type constraints now survive runtime reloading
2770 - added test for this
2772 * Moose::Meta::Class
2773 - fixed the way attribute defaults are handled
2774 during instance construction (bug found by chansen)
2776 * Moose::Meta::Attribute
2777 - read-only attributes now actually enforce their
2778 read-only-ness (this corrected in Class::MOP as
2781 0.02 Tues. March 21, 2006
2783 - many more tests, fixing some bugs and
2785 - &extends now loads the base module with
2787 - added UNIVERSAL::require to the
2790 - each new Moose class will also create
2791 and register a subtype of Object which
2792 correspond to the new Moose class.
2793 - the 'isa' option in &has now only
2794 accepts strings, and will DWIM in
2797 * Moose::Util::TypeConstraints
2798 - added type coercion features
2799 - added tests for this
2800 - added support for this in attributes
2801 and instance construction
2803 - type construction no longer creates a
2804 function, it registers the type instead.
2805 - added several functions to get the
2809 - BUILDALL and DEMOLISHALL were broken
2810 because of a mis-named hash key, Whoops :)
2812 * Moose::Meta::Attribute
2813 - adding support for coercion in the
2814 autogenerated accessors
2816 * Moose::Meta::Class
2817 - adding support for coercion in the
2818 instance construction
2820 * Moose::Meta::TypeConstraint
2821 * Moose::Meta::TypeCoercion
2822 - type constraints and coercions are now
2823 full fledges meta-objects
2825 0.01 Wed. March 15, 2006
2826 - Moooooooooooooooooose!!!