1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Cookbook::Basics::Recipe4
6 - Grammar error [rt.cpan.org #51791] (Amir E. Aharoni)
7 * Moose::Util::TypeConstraints
8 - Changed Str constraint to accept magic lvalue strings like one gets
9 from substr et al, again. (sorear)
11 0.93 Thu, Nov 19, 2009
13 - Calling $object->new() is no longer deprecated, and no longer
17 - The get_attribute_map method is now deprecated. (Dave Rolsky)
19 * Moose::Meta::Method::Delegation
20 - Preserve variable aliasing in @_ for delegated methods, so that
21 altering @_ affects the passed value. (doy)
23 * Moose::Util::TypeConstraints
24 - Allow array refs for non-anonymous form of enum and duck_type, not
25 just anonymous. The non-arrayref forms may be removed in the
27 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
28 - Properly document Int being a subtype of Str. (doy)
31 - Moose::Exporter using modules can now export their functions to the
32 main package. This applied to Moose and Moose::Role, among
35 * Moose::Meta::Attribute
36 - Don't remove attribute accessors we never installed, during
37 remove_accessors. (doy)
39 * Moose::Meta::Attribute::Native::Trait::Array
40 - Don't bypass prototype checking when calling List::Util::first, to
41 avoid a segfault when it is called with a non-code argument. (doy)
43 * Moose::Meta::Attribute::Native::Trait::Code
44 - Fix passing arguments to code execute helpers. (doy)
46 0.92 Tue, Sep 22, 2009
47 * Moose::Util::TypeConstraints
48 - added the match_on_type operator (Stevan)
49 - added tests and docs for this (Stevan)
52 - Metaclass compat fixing should already happen recursively, there's no
53 need to explicitly walk up the inheritance tree. (doy)
55 * Moose::Meta::Attribute
56 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
58 0.91 Thu, Sep 17, 2009
60 - Don't import any functions, in order to avoid polluting our namespace
61 with things that can look like methods (blessed, try, etc)
64 * Moose::Meta::Method::Constructor
65 - The generated code needs to called Scalar::Util::blessed by its
66 fully-qualified name or else Perl can interpret the call to blessed as
67 an indirect method call. This broke Search::GIN, which in turn broke
68 KiokuDB. (nothingmuch)
70 0.90 Tue, Sep 15, 2009
71 * Moose::Meta::Attribute::Native::Trait::Counter
72 * Moose::Meta::Attribute::Native::Trait::String
73 - For these two traits, an attribute which did not explicitly provide
74 methods to handles magically ended up delegating *all* the helper
75 methods. This has been removed. You must be explicit in your handles
76 declaration for all Native Traits. (Dave Rolsky)
79 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
80 sure to rethrow its error message. However, we also localize $@ before
81 this so that if all the DEMOLISH methods success, the value of $@ will
82 be preserved. (nothingmuch and Dave Rolsky)
83 - We now also localize $? during object destruction. (nothingmuch and
85 - The handling of DEMOLISH methods was broken for immutablized classes,
86 which were not receiving the value of
87 Devel::GlobalDestruction::in_global_destruction.
88 - These two fixes address some of RT #48271, reported by Zefram.
89 - This is all now documented in Moose::Manual::Construction.
90 - Calling $object->new() is now deprecated. A warning will be
94 - Added more hooks to customize how roles are applied. The role
95 summation class, used to create composite roles, can now be changed
96 and/or have meta-roles applied to it. (rafl)
97 - The get_method_list method no longer explicitly excludes the "meta"
98 method. This was a hack that has been replaced by better hacks. (Dave
101 * Moose::Meta::Method::Delegation
102 - fixed delegated methods to make sure that any modifiers attached to
103 the accessor being delegated on will be called (Stevan)
104 - added tests for this (Stevan)
107 - Moose no longer warns when a class that is being made immutable has
108 mutable ancestors. While in theory this is a good thing to warn about,
109 we found so many exceptions to this that doing this properly became
112 0.89_02 Thu, Sep 10, 2009
113 * Moose::Meta::Attribute::Native
114 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
116 * Moose::Meta::Attribute::Native::Trait::Array
117 - Added a number of functions from List::Util and List::MoreUtils,
118 including reduce, shuffle, uniq, and natatime. (doy)
121 - This module will now generate an init_meta method for your exporting
122 class if you pass it options for
123 Moose::Util::MetaRole::apply_metaclass_roles or
124 apply_base_class_roles. This eliminates a lot of repetitive
125 boilerplate for typical MooseX modules. (doy).
126 - Documented the with_meta feature, which is a replacement for
127 with_caller. This feature was added by josh a while ago.
128 - The with_caller feature is now deprecated, but will not issue a
129 warning yet. (Dave Rolsky)
130 - If you try to wrap/export a subroutine which doesn't actually exist,
131 Moose::Exporter will warn you about this. (doy)
133 * Moose::Meta::Role::Application::ToRole
134 - When a role aliased a method from another role, it was only getting
135 the new (aliased) name, not the original name. This differed from what
136 happens when a class aliases a role's methods. If you _only_ want the
137 aliased name, make sure to also exclue the original name. (Dave
140 0.89_01 Wed Sep 2, 2009
141 * Moose::Meta::Attribute
142 - Added the currying syntax for delegation from AttributeHelpers to the
143 existing delegation API. (hdp)
145 * Moose::Meta::Attribute::Native
146 - We have merged the functionality of MooseX::AttributeHelpers into the
147 Moose core with some API tweaks. You can continue to use
148 MooseX::AttributeHelpers, but it will not be maintained except
149 (perhaps) for critical bug fixes in the future. See
150 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
153 * Moose::Error::Croak
154 * Moose::Error::Confess
155 - Clarify documentation on how to use different error-throwing
156 modules. (Curtis Jewell)
159 - Correct POD for builder to point to Recipe8, not 9. (gphat)
162 - When a nonexistent sub name is passed to as_is, with_caller, or
163 with_meta, throw a warning and skip the exporting, rather than
164 installing a broken sub. (doy)
167 - Moose now warns if you call C<make_immutable> for a class with mutable
170 0.89 Thu Aug 13, 2009
171 * Moose::Manual::Attributes
172 - Clarify "is", include discussion of "bare". (Sartak)
174 * Moose::Meta::Role::Method::Conflicting
175 * Moose::Meta::Role::Application::ToClass
176 - For the first set of roles involved in a conflict, report all
177 unresolved method conflicts, not just the first method. Fixes #47210
178 reported by Ovid. (Sartak)
180 * Moose::Meta::TypeConstraint
181 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
184 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
186 - Allow specifying role options (alias, excludes, MXRP stuff) in the
187 arrayref passed to "use Moose -traits" (doy)
190 - Add functions meta_class_alias and meta_attribute_alias for creating
191 aliases for class and attribute metaclasses and metatraits. (doy)
193 * Moose::Meta::Attribute
194 * Moose::Meta::Method::Accessor
195 - A trigger now receives the old value as a second argument, if the
196 attribute had one. (Dave Rolsky)
198 * Moose::Meta::Method::Constructor
199 - Fix a bug with $obj->new when $obj has stringify overloading.
200 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
201 - However, we will probably deprecate $obj->new, so please don't start
202 using it for new code!
204 * Moose::Meta::Role::Application
205 * Moose::Meta::Role::Application::RoleSummation
206 - Rename alias and excludes to -alias and -excludes (but keep the old
207 names for now, for backcompat) (doy)
209 0.88 Fri Jul 24, 2009
210 * Moose::Manual::Contributing
211 - Re-write the Moose::Manual::Contributing document to reflect
212 the new layout and methods of work for the Git repository. All
213 work now should be done in topic branches and reviewed by a
214 core committer before being applied to master. All releases
215 are done by a cabal member and merged from master to
216 stable. This plan was devised by Yuval, blame him. (perigrin)
219 - Create metaclass attributes for the different role application
222 * Moose::Util::MetaRole
223 - Allow applying roles to a meta role's role application
226 * Moose::Meta::Attribute
227 - Add weak_ref to allowed options for "has '+foo'" (mst)
229 * Moose::Meta::Method::Accessor
230 - No longer uses inline_slot_access in accessors, to support
231 non-lvalue-based meta instances. (sorear)
234 * Moose::Meta::Method::Delegation
235 - Once again allow class names as well as objects for
236 delegation. This was changed in 0.86.
239 * Moose::Meta::Class::Immutable::Trait
240 - Fixes to work with the latest Class::MOP.
242 * Moose::Meta::Method::Delegation
243 - Delegation now dies with a more useful error message if the
244 attribute's accessor returns something defined but
247 0.85 Fri, Jun 26, 2009
248 * Moose::Meta::Attribute
249 - The warning for 'no associated methods' is now split out into
250 the _check_associated_methods method, so that extensions can
251 safely call 'after install_accessors => ...'. This fixes a
252 warning from MooseX::AttributeHelpers. (hdp)
254 0.84 Fri, Jun 26, 2009
256 - has now sets definition_context for attributes defined in
259 * Moose::Meta::Attribute
260 - When adding an attribute to a metaclass, if the attribute has
261 no associated methods, it will give a deprecation
263 - Methods generated by delegation were not being added to
264 associated_methods. (hdp)
265 - Attribute accessors (reader, writer, accessor, predicate,
266 clearer) now warn if they overwrite an existing method. (doy)
267 - Attribute constructors now warn very noisily about unknown (or
268 misspelled) arguments
270 * Moose::Util::TypeConstraints
271 - Deprecated the totally useless Role type name, which just
272 checked if $object->can('does'). Note that this is _not_ the
273 same as a type created by calling role_type('RoleName').
275 * Moose::Util::TypeConstraints
276 * Moose::Meta::TypeConstraint::DuckType
277 - Reify duck type from a regular subtype into an actual class
279 - Document this because Sartak did all my work for me
282 * Moose::Meta::Attribute
283 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
284 it is just a list of methods (Sartak)
287 - The get_*_method_modifiers methods would die if the role had
288 no modifiers of the given type (Robert Buels).
290 0.83 Tue, Jun 23, 2009
292 - Fix _construct_instance not setting the special __MOP__ object
293 key in instances of anon classes. (doy)
295 0.82 Sun, Jun 21, 2009
296 * Moose::Manual::Types
297 - Mention MooseX::Types early to avoid users falling down the
298 string parsing rathole (mst)
300 * Moose::Manual::MooseX
301 - Add warnings about class-level extensions and mention considering
302 using plain objects instead
304 0.81 Sun, Jun 7, 2009
305 * Bumped our Class::MOP prereq to the latest version (0.85), since
308 0.80 Sat, Jun 6, 2009
310 - Add FAQ about the coercion change from 0.76 because it came up
311 three times today (perigrin)
312 - Win doy $10 dollars because Sartak didn't think anybody
313 would document this fast enough (perigrin)
315 * Moose::Meta::Method::Destructor
316 - Inline a DESTROY method even if there are no DEMOLISH methods
317 to prevent unnecessary introspection in
318 Moose::Object::DEMOLISHALL
321 - A role's required methods are now represented by
322 Moose::Meta::Role::Method::Required objects. Conflicts are now
323 represented by Moose::Meta::Role::Method::Conflicting
324 objects. The benefit for end-users in that unresolved
325 conflicts generate different, more instructive, errors,
326 resolving Ovid's #44895. (Sartak)
329 - Improve the error message of "extends" as suggested by Adam
330 Kennedy and confound (Sartak)
331 - Link to Moose::Manual::Roles from Moose::Role as we now have
332 excellent documentation (Adam Kennedy)
335 - Update test suite for subname change in Class::MOP
337 - Add TODO test for infinite recursion in Moose::Meta::Class
340 0.79 Wed, May 13, 2009
342 - More fixes for Win32 problems. Reported by Robert Krimen.
345 - The DEMOLISHALL method could still blow up in some cases
346 during global destruction. This method has been made more
347 resilient in the face of global destruction's random garbage
351 - If you "also" a module that isn't loaded, the error message
352 now acknowledges that (Sartak)
355 - When your ->meta method does not return a Moose::Meta::Class,
356 the error message gave the wrong output (Sartak)
358 0.78 Tue, May 12, 2009
359 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
360 - Merged these documents into what is now Moose::Manual::FAQ
363 - Moved to Moose::Manual::Unsweetened
365 * Moose::Cookbook::Basics::Recipes 9-12
366 - Renamed to be 8-11, since recipe 8 did not exist
369 - Make Moose::Exporter import strict and warnings into packages
373 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
374 methods during global destruction (doy)
377 * Moose::Meta::Role::Application::ToClass
378 - Track the Role::Application objects created during class-role
382 - Fix metaclass incompatibility errors when extending a vanilla perl
383 class which isa Moose class with a metaclass role applied (t0m)
386 - Add a role-combination hook, _role_for_combination, for the
387 benefit of MooseX::Role::Parameterized (Sartak)
390 - Some tests were failing on Win32 because they explicit checked
391 warning output for newlines. Reported by Nickolay Platonov.
393 0.77 Sat, May 2, 2009
395 - Add explicit use of Devel::GlobalDestruction and Sub::Name
399 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
400 or not we are currently in global destruction (doy)
401 - Add explicit use of Devel::GlobalDestruction and Sub::Name
404 * Moose::Cookbook::FAQ
405 - Reworked much of the existing content to be more useful to
406 modern Moose hackers (Sartak)
409 - Depend on Class::MOP 0.83 instead of 0.82_01.
411 0.76 Mon, April 27, 2009
412 * Moose::Meta::TypeConstraint
413 - Do not run coercions in coerce() if the value already passes the type
416 * Moose::Meta::TypeConstraint::Class
417 - In validation error messages, specifically say that the value is not
418 an instance of the class. This should alleviate some frustrating
419 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
421 * Moose::Meta::Role::Application::ToClass
422 - Revert the class-overrides-role warning in favor of a solution outside
423 of the Moose core (Sartak)
426 - Make Test::Output optional again, since it's only used in a few files
429 0.75_01 Thu, April 23, 2009
430 * Moose::Meta::Role::Application::ToClass
431 - Moose now warns about each class overriding methods from roles it
435 - Warnings tests have standardized on Test::Output which is now an
436 unconditionally dependency (Sartak)
439 - Changes to immutabilization to work with Class::MOP 0.82_01+.
441 0.75 Mon, April 20, 2009
444 - Move validation of not inheriting from roles from Moose::extends to
445 Moose::Meta::Class::superclasses (doy)
448 - add ensure_all_roles() function to encapsulate the common "apply this
449 role unless the object already does it" pattern (hdp)
452 - Users can now select a different metaclass with the "-metaclass"
453 option to import, for classes and roles (Sartak)
456 - Make method_metaclass an attr so that it can accept a metarole
459 0.74 Tue, April 7, 2009
461 * Moose::Meta::Method::Destructor
462 - Include stack traces in the deprecation warnings.
466 - Removed the long-deprecated _apply_all_roles method.
468 * Moose::Meta::TypeConstraint
469 - Removed the long-deprecated union method.
472 0.73_02 Mon, April 6, 2009
473 * More deprecations and renamings
474 - Moose::Meta::Method::Constructor
475 - initialize_body => _initialize_body (this is always called
476 when an object is constructed)
479 - The DEMOLISHALL method could throw an exception during global
480 destruction, meaning that your class's DEMOLISH methods would
481 not be properly called. Reported by t0m.
483 * Moose::Meta::Method::Destructor
484 - Destructor inlining was totally broken by the change to the
485 is_needed method in 0.72_01. Now there is a test for this
486 feature, and it works again.
489 - Bold the word 'not' in the POD for find_meta (t0m)
491 0.73_01 Sun, April 5, 2009
493 - Call user_class->meta in fewer places, with the eventual goal
494 of allowing the user to rename or exclude ->meta
495 altogether. Instead uses Class::MOP::class_of. (Sartak)
497 * Moose::Meta::Method::Accessor
498 - If an attribute had a lazy default, and that value did not
499 pass the attribute's type constraint, it did not get the
500 message from the type constraint, instead using a generic
501 message. Test provided by perigrin.
503 * Moose::Util::TypeConstraints
504 - Add duck_type keyword. It's sugar over making sure an object
505 can() a list of methods. This is easier than jrockway's
506 suggestion to fork all of CPAN. (perigrin)
507 - add tests and documentation (perigrin)
510 - Document the fact that init_meta() returns the target class's
511 metaclass object. (hdp)
513 * Moose::Cookbook::Extending::Recipe1
514 * Moose::Cookbook::Extending::Recipe2
515 * Moose::Cookbook::Extending::Recipe3
516 * Moose::Cookbook::Extending::Recipe4
517 - Make init_meta() examples explicitly return the metaclass and
518 point out this fact. (hdp)
520 * Moose::Cookbook::Basics::Recipe12
521 - A new recipe, creating a custom meta-method class.
523 * Moose::Cookbook::Meta::Recipe6
524 - A new recipe, creating a custom meta-method class.
527 * Moose::Meta::Method::Constructor
528 - Attribute triggers no longer receive the meta-attribute object
529 as an argument in any circumstance. Previously, triggers
530 called during instance construction were passed the
531 meta-attribute, but triggers called by normal accessors were
532 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
534 * Moose::Manual::Attributes
535 - Remove references to triggers receving the meta-attribute object as an
538 * Moose::Cookbook::FAQ
539 - Remove recommendation for deprecated Moose::Policy and
540 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
543 * Many methods have been renamed with a leading underscore, and a
544 few have been deprecated entirely. The methods with a leading
545 underscore are consider "internals only". People writing
546 subclasses or extensions to Moose should feel free to override
547 them, but they are not for "public" use.
550 - check_metaclass_compatibility => _check_metaclass_compatibility
552 - Moose::Meta::Method::Accessor
553 - initialize_body => _initialize_body (this is always called
554 when an object is constructed)
555 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
557 - Moose::Meta::Method::Constructor
558 - initialize_body => _initialize_body (this is always called
559 when an object is constructed)
560 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
561 - attributes => _attributes (now inherited from parent)
562 - meta_instance => _meta_instance (now inherited from parent)
565 - alias_method is deprecated. Use add_method
567 0.73 Fri, March 29, 2009
568 * No changes from 0.72_01.
570 0.72_01 Thu, March 26, 2009
572 - Almost every module has complete API documentation. A few
573 methods (and even whole classes) have been intentionally
574 excluded pending some rethinking of their APIs.
576 * Moose::Util::TypeConstraints
577 - Calling subtype with a name as the only argument is now an
578 exception. If you want an anonymous subtype do:
580 my $subtype = subtype as 'Foo';
582 * Moose::Cookbook::Meta::Recipe7
583 - A new recipe, creating a custom meta-instance class.
585 * Moose::Cookbook::Basics::Recipe5
586 - Fix various typos and mistakes. Includes a patch from Radu
589 * Moose::Cookbook::Basics::Recipe9
590 - Link to this recipe from Moose.pm's builder blurb
593 - When wrapping a function with a prototype, Moose::Exporter now
594 makes sure the wrapped function still has the same
595 prototype. (Daisuke Maki)
597 * Moose::Meta::Attribute
598 - Allow a subclass to set lazy_build for an inherited
602 - Explicitly depend on Data::OptList. We already had this dependency
603 via Sub::Exporter, but since we're using it directly we're
604 better off with it listed. (Sartak)
606 * Moose::Meta::Method::Constructor
607 - Make it easier to subclass the inlining behaviour. (Ash
610 * Moose::Manual::Delta
611 - Details significant changes in the history of Moose, along
612 with recommended workarounds.
614 * Moose::Manual::Contributing
615 - Contributor's guide to Moose.
617 * Moose::Meta::Method::Constructor
618 - The long-deprecated intialize_body method has been removed
619 (yes, spelled like that).
621 * Moose::Meta::Method::Destructor
622 - This is_needed method is now always a class method.
625 - Changes to the internals of how make_immutable works to match
626 changes in latest Class::MOP.
628 0.72 Mon, February 23, 2009
630 * Moose::Meta::Method::Constructor
631 - A mutable class accepted Foo->new(undef) without complaint,
632 while an immutable class would blow up with an unhelpful
633 error. Now, in both cases we throw a helpful error
634 instead. Reported by doy.
636 0.71_01 Sun, February 22, 2009
638 - Hopefully fixed some POD errors in a few recipes that caused
639 them to display weird on search.cpan.org.
641 * Moose::Util::TypeConstraints
642 - Calling type or subtype without the sugar helpers (as, where,
643 message) is now deprecated.
644 - The subtype function tried hard to guess what you meant, but
645 often got it wrong. For example:
647 my $subtype = subtype as 'ArrayRef[Object]';
649 This caused an error in the past, but now works as you'd
653 - Make sure Moose.pm is loaded before calling
654 Moose->throw_error. This wasn't normally an issue, but could
655 bite you in weird cases.
657 0.71 Thu, February 19, 2009
658 * Moose::Cookbook::Basics::Recipe11
659 - A new recipe which demonstrates the use of BUILDARGS and
662 * Moose::Cookbook::Roles::Recipe3
663 - A new recipe, applying a role to an object instance. (Dave
667 - Allow overriding specific keywords from "also" packages. (doy)
670 - Replace hardcoded cookbook tests with Test::Inline to ensure
671 the tests match the actual code in the recipes. (Dave Rolsky)
674 - Working on the above turned up a number of little bugs in the
675 recipe code. (Dave Rolsky)
677 * Moose::Util::TypeConstraints::Optimized
678 - Just use Class::MOP for the optimized ClassName check. (Dave
681 0.70 Sat, February 14, 2009
682 * Moose::Util::TypeConstraints
683 - Added the RoleName type (stevan)
684 - added tests for this (stevan)
686 * Moose::Cookbook::Basics::Recipe3
687 - Updated the before qw[left right] sub to be a little more
688 defensive about what it accepts (stevan)
689 - added more tests to t/000_recipies/basics/003_binary_tree.t
693 - We now always call DEMOLISHALL, even if a class does not
694 define DEMOLISH. This makes sure that method modifiers on
695 DEMOLISHALL work as expected. (doy)
696 - added tests for this (EvanCarroll)
698 * Moose::Util::MetaRole
699 - Accept roles for the wrapped_method_metaclass (rafl)
700 - added tests for this (rafl)
702 * Moose::Meta::Attribute
703 - We no longer pass the meta-attribute object as a final
704 argument to triggers. This actually changed for inlined code a
705 while back, but the non-inlined version and the docs were
709 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
710 they require 0.11. (Dave Rolsky)
713 - Lots of small changes to the manual, cookbook, and
714 elsewhere. These were based on feedback from various
715 users, too many to list here. (Dave Rolsky)
717 0.69 Thu, February 12, 2009
719 - Make some keyword errors use throw_error instead of croak
720 since Moose::Exporter wraps keywords now (Sartak)
723 - Revised every recipe for style and clarity. Also moved some
724 documentation out of cookbook recipes and into Moose::Manual
725 pages. This work was funded as part of the Moose docs grant
726 from TPF. (Dave Rolsky)
728 * Moose::Meta::Method::Delegation
729 - If the attribute doing the delegation was not populated, the
730 error message did not specify the attribute name
733 0.68 Wed, February 4, 2009
735 - Many spelling, typo, and formatting fixes by daxim.
737 * Moose::Manual::Attributes
738 - The NAME section in the POD used "Attribute" so search.cpan
739 didn't resolve links from other documents properly.
741 * Moose::Meta::Method::Overriden
742 - Now properly spelled as Overridden. Thanks to daxim for
745 0.67 Tue, February 3, 2009
747 - Lots of little typo fixes and a few clarifications. Several
748 pages didn't have proper titles, and so weren't actually
749 visible on search.cpan.org. Thanks to hanekomu for a variety
750 of fixes and formatting improvements.
752 0.66 Tue, February 3, 2009
754 - This is a brand new, extensive manual for Moose. This aims to
755 provide a complete introduction to all of Moose's
756 features. This work was funded as part of the Moose docs grant
757 from TPF. (Dave Rolsky)
759 * Moose::Meta::Attribute
760 - Added a delegation_metaclass method to replace a hard-coded
761 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
763 * Moose::Util::TypeConstraints
764 - If you created a subtype and passed a parent that Moose didn't
765 know about, it simply ignored the parent. Now it automatically
766 creates the parent as a class type. This may not be what you
767 want, but is less broken than before. (Dave Rolsky)
769 * Moose::Util::TypeConstraints
770 - This module tried throw errors by calling Moose->throw_error,
771 but it did not ensure that Moose was loaded first. This could
772 cause very unhelpful errors when it tried to throw an error
773 before Moose was loaded. (Dave Rolsky)
775 * Moose::Util::TypeConstraints
776 - You could declare a name with subtype such as "Foo!Bar" that
777 would be allowed, but if you used it in a parameterized type
778 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
779 vetting on names created via the sugar functions, so that they
780 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
782 0.65 Thu, January 22, 2008
783 * Moose and Moose::Meta::Method::Overridden
784 - If an overridden method called super(), and then the
785 superclass's method (not overridden) _also_ called super(),
786 Moose went into an endless recursion loop. Test provided by
787 Chris Prather. (Dave Rolsky)
789 * Moose::Meta::TypeConstraint
790 - All methods are now documented. (gphat)
792 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
793 - Fixed some bogus failures that occurred because we tried to
794 validate filesystem paths in a very ad-hoc and
795 not-quite-correct way. (Dave Rolsky)
797 * Moose::Util::TypeConstraints
798 - Added maybe_type to exports. See docs for details. (rjbs)
801 - Added Moose::Util::TypeConstraints to the SEE ALSO
805 - Methods created via an attribute can now fulfill a "requires"
806 declaration for a role. (nothingmuch)
808 * Moose::Meta::Method::*
809 - Stack traces from inlined code will now report its line and
810 file as being in your class, as opposed to in Moose
813 0.64 Wed, December 31, 2008
814 * Moose::Meta::Method::Accessor
815 - Always inline predicate and clearer methods (Sartak)
817 * Moose::Meta::Attribute
818 - Support for parameterized traits (Sartak)
819 - verify_against_type_constraint method to avoid duplication
820 and enhance extensibility (Sartak)
823 - Tests (but no support yet) for parameterized traits (Sartak)
826 - Require Class::MOP 0.75+, which has the side effect of making
827 sure we work on Win32. (Dave Rolsky)
829 0.63 Mon, December 8, 2008
831 - Some small grammar tweaks and bug fixes in non-Moose example
834 0.62_02 Fri, December 5, 2008
835 * Moose::Meta::Role::Application::ToClass
836 - When a class does not provide all of a role's required
837 methods, the error thrown now mentions all of the missing
838 methods, as opposed to just the first one found. Requested by
839 Curtis Poe (RT #41119). (Dave Rolsky)
841 * Moose::Meta::Method::Constructor
842 - Moose will no longer inline a constructor for your class
843 unless it inherits its constructor from Moose::Object, and
844 will warn when it doesn't inline. If you want to force
845 inlining anyway, pass "replace_constructor => 1" to
846 make_immutable. Addresses RT #40968, reported by Jon
847 Swartz. (Dave Rolsky)
848 - The quoting of default values could be broken if the default
849 contained a single quote ('). Now we use quotemeta to escape
850 anything potentially dangerous in the defaults. (Dave Rolsky)
852 0.62_01 Wed, December 3, 2008
854 - use the method->execute API for BUILDALL
855 and DEMOLISHALL (Sartak)
857 * Moose::Util::TypeConstraints
858 - We now make all the type constraint meta classes immutable
859 before creating the default types provided by Moose. This
860 should make loading Moose a little faster. (Dave Rolsky)
862 0.62 Wed November 26, 2008
863 * Moose::Meta::Role::Application::ToClass
864 Moose::Meta::Role::Application::ToRole
865 - fixed issues where excluding and aliasing the
866 same methods for a single role did not work
867 right (worked just fine with multiple
869 - added test for this (stevan)
871 * Moose::Meta::Role::Application::RoleSummation
872 - fixed the error message when trying to compose
873 a role with a role it excludes (Sartak)
876 - Catch another case where recursion caused the value
877 of $CALLER to be stamped on (t0m)
878 - added test for this (t0m)
881 - Remove the make_immutable keyword, which has been
882 deprecated since April. It breaks metaclasses that
883 use Moose without no Moose (Sartak)
885 * Moose::Meta::Attribute
886 - Removing an attribute from a class now also removes delegation
887 (handles) methods installed for that attribute (t0m)
888 - added test for this (t0m)
890 * Moose::Meta::Method::Constructor
891 - An attribute with a default that looked like a number (but was
892 really a string) would accidentally be treated as a number
893 when the constructor was made immutable (perigrin)
894 - added test for this (perigrin)
897 - create method for constructing a role
899 - added test for this (Sartak)
900 - anonymous roles! (Sartak)
901 - added test for this (Sartak)
904 - more consistent error messages (Sartak)
906 * Moose::Cookbook::Roles::Recipe1
907 - attempt to explain why a role that just requires
908 methods is useful (Sartak)
910 0.61 Fri November 7, 2008
911 * Moose::Meta::Attribute
912 - When passing a role to handles, it will be loaded if necessary
916 - Method objects returned by get_method (and other methods)
917 Could end up being returned without an associated_metaclass
918 attribute. Removing get_method_map, which is provided by
919 Class::MOP::Class, fixed this. The Moose version did nothing
920 different from its parent except introduce a bug. (Dave Rolsky)
921 - added tests for this (jdv79)
924 - Added a $VERSION to all .pm files which didn't have one. Fixes
925 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
927 * Moose::Cookbook::Basics::Recipe4
928 * Moose::Cookbook::Basics::Recipe6
929 - These files had spaces on the first line of the SYNOPSIS, as
930 opposed to a totally empty line. According to RT #40432, this
931 confuses POD parsers. (Dave Rolsky)
933 0.60 Fri October 24, 2008
935 - Passing "-traits" when loading Moose caused the Moose.pm
936 exports to be broken. Reported by t0m. (Dave Rolsky)
937 - Tests for this bug. (t0m)
940 - Change resolve_metaclass alias to use the new
941 load_first_existing_class function. This makes it a lot
942 simpler, and also around 5 times faster. (t0m)
943 - Add caching to resolve_metaclass_alias, which gives an order
944 of magnitude speedup to things which repeatedly call the
945 Moose::Meta::Attribute->does method, notably MooseX::Storage
948 * Moose::Util::TypeConstraint
949 - Put back the changes for parameterized constraints that
950 shouldn't have been removed in 0.59. We still cannot parse
951 them, but MooseX modules can create them in some other
952 way. See the 0.58 changes for more details. (jnapiorkowski)
953 - Changed the way subtypes are created so that the job is
954 delegated to a type constraint parent. This clears up some
955 hardcoded checking and should allow correct subtypes of
956 Moose::Meta::Type::Constraint. Don't rely on this new API too
957 much (create_child_type) because it may go away in the
958 future. (jnapiorkowski)
960 * Moose::Meta::TypeConstraint::Union
961 - Type constraint names are sorted as strings, not numbers.
964 * Moose::Meta::TypeConstraint::Parameterizable
965 - New parameterize method. This can be used as a factory method
966 to make a new type constraint with a given parameterized
967 type. (jnapiorkowski)
968 - added tests (jnapiorkowski)
970 0.59 Tue October 14, 2008
972 - Add abridged documentation for builder/default/initializer/
973 predicate, and link to more details sections in
974 Class::MOP::Attribute. (t0m)
976 * Moose::Util::TypeConstraints
977 - removed prototypes from all but the &-based stuff (mst)
979 * Moose::Util::TypeConstraints
980 - Creating a anonymous subtype with both a constraint and a
981 message failed with a very unhelpful error, but should just
982 work. Reported by t0m. (Dave Rolsky)
985 - Some tests that used Test::Warn if it was available failed
986 with older versions of Test::Warn. Reported by Fayland. (Dave
988 - Test firing behavior of triggers in relation to builder/default/
990 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
991 kinds of supported type. (t0m)
994 - In create(), do not pass "roles" option to the superclass
995 - added related test that creates an anon metaclass with
998 * Moose::Meta::TypeConstraint::Class
999 * Moose::Meta::TypeConstraint::Role
1000 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1001 other types (as per change in 0.55_02). (t0m)
1003 * Moose::Meta::TypeConstraint::Registry
1004 - Fix warning when dealing with unknown type names (t0m)
1006 * Moose::Util::TypeConstraints
1007 - Reverted changes from 0.58 related to handle parameterized
1008 types. This caused random failures on BSD and Win32 systems,
1009 apparently related to the regex engine. This means that Moose
1010 can no longer parse structured type constraints like
1011 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1012 supported in a slightly different way via MooseX::Types some
1013 time in the future. (Dave Rolsky)
1015 0.58 Sat September 20, 2008
1016 !! This release has an incompatible change regarding !!
1017 !! how roles add methods to a class !!
1019 * Roles and role application
1020 ! Roles now add methods by calling add_method, not
1021 alias_method. They make sure to always provide a method
1022 object, which will be cloned internally. This means that it is
1023 now possible to track the source of a method provided by a
1024 role, and even follow its history through intermediate roles.
1026 This means that methods added by a role now show up when
1027 looking at a class's method list/map. (Dave Rolsky)
1030 - From this release on, we'll try to maintain a list of
1031 conflicting modules, and warn you if you have one
1032 installed. For example, this release conflicts with ...
1033 - MooseX::Singleton <= 0.11
1034 - MooseX::Params::Validate <= 0.05
1037 In general, we try to not break backwards compatibility for
1038 most Moose users, but MooseX modules and other code which
1039 extends Moose's metaclasses is often affected by very small
1040 changes in the Moose internals.
1042 * Moose::Meta::Method::Delegation
1043 * Moose::Meta::Attribute
1044 - Delegation methods now have their own method class. (Dave
1047 * Moose::Meta::TypeConstraint::Parameterizable
1048 - Added a new method 'parameterize' which is basically a factory
1049 for the containing constraint. This makes it easier to create
1050 new types of parameterized constraints. (jnapiorkowski)
1052 * Moose::Meta::TypeConstraint::Union
1053 - Changed the way Union types canonicalize their names to follow
1054 the normalized TC naming rules, which means we strip all
1055 whitespace. (jnapiorkowski)
1057 * Moose::Util::TypeConstraints
1058 - Parameter and Union args are now sorted, this makes Int|Str
1059 the same constraint as Str|Int. (jnapiorkowski)
1060 - Changes to the way Union types are parsed to more correctly
1061 stringify their names. (jnapiorkowski)
1062 - When creating a parameterized type, we now use the new
1063 parameterize method. (jnapiorkowski)
1064 - Incoming type constraint strings are now normalized to remove
1065 all whitespace differences. (jnapiorkowski)
1066 - Changed the way we parse type constraint strings so that we now
1067 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1068 constraints. This lays the foundation for more flexible type
1069 constraint implementations.
1071 * Tests and docs for all the above. (jnapiorkowski)
1075 - Moose::Exporter will no longer remove a subroutine that the
1076 exporting package re-exports. Moose re-exports the
1077 Carp::confess function, among others. The reasoning is that we
1078 cannot know whether you have also explicitly imported those
1079 functions for your own use, so we err on the safe side and
1080 always keep them. (Dave Rolsky)
1081 - added tests for this (rafl)
1083 * Moose::Meta::Class
1084 - Changes to how we fix metaclass compatibility that are much
1085 too complicated to go into. The summary is that Moose is much
1086 less likely to complain about metaclass incompatibility
1087 now. In particular, if two metaclasses differ because
1088 Moose::Util::MetaRole was used on the two corresponding
1089 classes, then the difference in roles is reconciled for the
1090 subclass's metaclass. (Dave Rolsky)
1091 - Squashed an warning in _process_attribute (thepler)
1094 - throw exceptions (sooner) for invalid attribute names (thepler)
1095 - added tests for this (thepler)
1097 * Moose::Util::MetaRole
1098 - If you explicitly set a constructor or destructor class for a
1099 metaclass object, and then applied roles to the metaclass,
1100 that explicitly set class would be lost and replaced with the
1103 * Moose::Meta::Class
1104 * Moose::Meta::Attribute
1105 * Moose::Meta::Method
1108 * Moose::Error::Default
1109 * Moose::Error::Croak
1110 * Moose::Error::Confess
1111 - All instances of confess() changed to use overridable
1112 C<throw_error> method. This method ultimately calls a class
1113 constructor, and you can change the class being called. In
1114 addition, errors now pass more information than just a string.
1115 The default C<error_class> behaves like C<Carp::confess>, so
1116 the behavior is not visibly different for end users.
1118 0.57 Wed September 3, 2008
1120 - A new bit of doc intended to introduce folks familiar with
1121 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1123 * Moose::Unsweetened
1124 - Shows examples of two classes, each done first with and then
1125 without Moose. This makes a nice parallel to
1126 Moose::Intro. (Dave Rolsky)
1128 * Moose::Util::TypeConstraints
1129 - Fixed a bug in find_or_parse_type_constraint so that it
1130 accepts a Moose::Meta::TypeConstraint object as the parent
1131 type, not just a name (jnapiorkowski)
1132 - added tests (jnapiorkowski)
1135 - If Sub::Name was not present, unimporting failed to actually
1136 remove some sugar subs, causing test failures (Dave Rolsky)
1138 0.56 Mon September 1, 2008
1139 For those not following the series of dev releases, there are
1140 several major changes in this release of Moose.
1141 ! Moose::init_meta should now be called as a method. See the
1144 - Major performance improvements by nothingmuch.
1146 - New modules for extension writers, Moose::Exporter and
1147 Moose::Util::MetaRole by Dave Rolsky.
1149 - Lots of doc improvements and additions, especially in the
1152 - Various bug fixes.
1154 * Removed all references to the experimental-but-no-longer-needed
1155 Moose::Meta::Role::Application::ToMetaclassInstance.
1157 * Require Class::MOP 0.65.
1159 0.55_04 Sat August 30, 2008
1160 * Moose::Util::MetaRole
1161 * Moose::Cookbook::Extending::Recipe2
1162 - This simplifies the application of roles to any meta class, as
1163 well as the base object class. Reimplemented metaclass traits
1164 using this module. (Dave Rolsky)
1166 * Moose::Cookbook::Extending::Recipe1
1167 - This a new recipe, an overview of various ways to write Moose
1168 extensions (Dave Rolsky)
1170 * Moose::Cookbook::Extending::Recipe3
1171 * Moose::Cookbook::Extending::Recipe4
1172 - These used to be Extending::Recipe1 and Extending::Recipe2,
1175 0.55_03 Fri August 29, 2008
1176 * No changes from 0.55_02 except increasing the Class::MOP
1177 dependency to 0.64_07.
1179 0.55_02 Fri August 29, 2008
1180 * Makefile.PL and Moose.pm
1181 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1183 * Moose::Util::TypeConstraints
1184 - Fix warnings from find_type_constraint if the type is not
1187 * Moose::Meta::TypeConstraint
1188 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1189 return false if the type you specify cannot be found in the
1190 type registry, rather than throwing an unhelpful and
1191 coincidental exception. (t0m).
1192 - added docs & test for this (t0m)
1194 * Moose::Meta::TypeConstraint::Registry
1195 - add_type_constraint now throws an exception if a parameter is
1197 - added docs & test for this (t0m)
1199 * Moose::Cookbook::FAQ
1200 - Added a faq entry on the difference between "role" and "trait"
1204 - Fixed a bug that caused role composition to not see a required
1205 method when that method was provided by another role being
1206 composed at the same time. (Dave Rolsky)
1207 - test and bug finding (tokuhirom)
1209 0.55_01 Wed August 20, 2008
1211 !! Calling Moose::init_meta as a function is now !!
1212 !! deprecated. Please see the Moose.pm docs for details. !!
1214 * Moose::Meta::Method::Constructor
1215 - Fix inlined constructor so that values produced by default
1216 or builder methods are coerced as required. (t0m)
1217 - added test for this (t0m)
1219 * Moose::Meta::Attribute
1220 - A lazy attribute with a default or builder did not attempt to
1221 coerce the default value. The immutable code _did_
1223 - added test for this (t0m)
1226 - This is a new helper module for writing "Moose-alike"
1227 modules. This should make the lives of MooseX module authors
1228 much easier. (Dave Rolsky)
1231 * Moose::Cookbook::Meta::Recipe5
1232 - Implemented metaclass traits (and wrote a recipe for it):
1234 use Moose -traits => 'Foo'
1236 This should make writing small Moose extensions a little
1237 easier (Dave Rolsky)
1239 * Moose::Cookbook::Basics::Recipe1
1240 - Removed any examples of direct hashref access, and applied an
1241 editorial axe to reduce verbosity. (Dave Rolsky)
1243 * Moose::Cookbook::Basics::Recipe1
1244 - Also applied an editorial axe here. (Dave Rolsky)
1247 * Moose::Cookbook::Extending::Recipe1
1248 * Moose::Cookbook::Extending::Recipe2
1249 - Rewrote extending and embedding moose documentation and
1250 recipes to use Moose::Exporter (Dave Rolsky)
1254 - These two modules now warn when you load them from the main
1255 package "main" package, because we will not export sugar to
1256 main. Previously it just did nothing. (Dave Rolsky)
1259 - Now provide an init_meta method just like Moose.pm, and you
1260 can call this to provide an alternate role metaclass. (Dave
1261 Rolsky and nothingmuch)
1262 - get_method_map now respects the package cache flag (nothingmuch)
1265 - Two new methods - add_method and wrap_method_body
1269 - Optimizations including allowing constructors to accept hash
1270 refs, making many more classes immutable, and making
1271 constructors immutable. (nothingmuch)
1273 0.55 Sun August 3, 2008
1274 * Moose::Meta::Attribute
1275 - breaking down the way 'handles' methods are
1276 created so that the process can be more easily
1277 overridden by subclasses (stevan)
1279 * Moose::Meta::TypeConstraint
1280 - fixing what is passed into a ->message with
1281 the type constraints (RT #37569)
1282 - added tests for this (Charles Alderman)
1284 * Moose::Util::TypeConstraints
1285 - fix coerce to accept anon types like subtype can (mst)
1288 - reorganized the recipes into sections - Basics, Roles, Meta,
1289 Extending - and wrote abstracts for each section (Dave Rolsky)
1291 * Moose::Cookbook::Basics::Recipe10
1292 - A new recipe that demonstrates operator overloading
1293 in combination with Moose. (bluefeet)
1295 * Moose::Cookbook::Meta::Recipe1
1296 - an introduction to what meta is and why you'd want to make
1297 your own metaclass extensions (Dave Rolsky)
1299 * Moose::Cookbook::Meta::Recipe4
1300 - a very simple metaclass example (Dave Rolsky)
1302 * Moose::Cookbook::Extending::Recipe1
1303 - how to write a Moose-alike module to use your own object base
1306 * Moose::Cookbook::Extending::Recipe2
1307 - how to write modules with an API just like C<Moose.pm> (Dave
1311 - Tons of fixes, both syntactical and grammatical (Dave
1312 Rolsky, Paul Fenwick)
1314 0.54 Thurs. July 3, 2008
1315 ... this is not my day today ...
1317 * Moose::Meta::Attribute
1318 - fixed legal_options_for_inheritance such that
1319 clone_and_inherit options still works for
1320 Class::MOP::Attribute objects and therefore
1321 does not break MooseX::AttributeHelpers
1324 0.53 Thurs. July 3, 2008
1325 * Whoops, I guess I should run 'make manifest' before
1326 actually releasing the module. No actual changes
1327 in this release, except the fact that it includes
1328 the changes that I didn't include in the last
1331 0.52 Thurs. July 3, 2008
1333 - added "FEATURE REQUESTS" section to the Moose docs
1334 to properly direct people (stevan) (RT #34333)
1335 - making 'extends' croak if it is passed a Role since
1336 this is not ever something you want to do
1337 (fixed by stevan, found by obra)
1338 - added tests for this (stevan)
1341 - adding support for DOES (as in UNIVERSAL::DOES)
1343 - added test for this
1345 * Moose::Meta::Attribute
1346 - added legal_options_for_inheritance (wreis)
1347 - added tests for this (wreis)
1349 * Moose::Cookbook::Snacks::*
1350 - removed some of the unfinished snacks that should
1351 not have been released yet. Added some more examples
1352 to the 'Keywords' snack. (stevan)
1354 * Moose::Cookbook::Style
1355 - added general Moose "style guide" of sorts to the
1356 cookbook (nothingmuch) (RT #34335)
1359 - added more BUILDARGS tests (stevan)
1361 0.51 Thurs. Jun 26, 2008
1363 - add unimport so "no Moose::Role" actually does
1366 * Moose::Meta::Role::Application::ToRole
1367 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1368 order to provide its own implementation, that method still got
1369 added to the list of required methods for consumers of
1370 RoleB. Now an aliased method is only added to the list of
1371 required methods if the role doing the aliasing does not
1372 provide its own implementation. See Recipe 11 for an example
1373 of all this. (Dave Rolsky)
1374 - added tests for this
1376 * Moose::Meta::Method::Constructor
1377 - when a single argument that wasn't a hashref was provided to
1378 an immutabilized constructor, the error message was very
1379 unhelpful, as opposed to the non-immutable error. Reported by
1381 - added test for this (Dave Rolsky)
1383 * Moose::Meta::Attribute
1384 - added support for meta_attr->does("ShortAlias") (sartak)
1385 - added tests for this (sartak)
1386 - moved the bulk of the `handles` handling to the new
1387 install_delegation method (Stevan)
1390 - Added BUILDARGS, a new step in new()
1392 * Moose::Meta::Role::Application::RoleSummation
1393 - fix typos no one ever sees (sartak)
1395 * Moose::Util::TypeConstraints
1396 * Moose::Meta::TypeConstraint
1397 * Moose::Meta::TypeCoercion
1398 - Attempt to work around the ??{ } vs. threads issue
1400 - Some null_constraint optimizations
1402 0.50 Thurs. Jun 11, 2008
1403 - Fixed a version number issue by bumping all modules
1406 0.49 Thurs. Jun 11, 2008
1407 !! This version now approx. 20-25% !!
1408 !! faster with new Class::MOP 0.59 !!
1410 * Moose::Meta::Attribute
1411 - fixed how the is => (ro|rw) works with
1412 custom defined reader, writer and accessor
1414 - added docs for this (TODO).
1415 - added tests for this (Thanks to Penfold)
1416 - added the custom attribute alias for regular
1417 Moose attributes which is "Moose"
1418 - fix builder and default both being used
1423 Moose::Meta::Attribute
1425 Moose::Meta::Role::Composite
1426 Moose::Util::TypeConstraints
1427 - switched usage of reftype to ref because
1431 - changing add_package_symbol to use the new
1435 - fixed how DEMOLISHALL is called so that it
1436 can be overrided in subclasses (thanks to Sartak)
1437 - added test for this (thanks to Sartak)
1439 * Moose::Util::TypeConstraints
1440 - move the ClassName type check code to
1441 Class::MOP::is_class_loaded (thanks to Sartak)
1443 * Moose::Cookbook::Recipe11
1444 - add tests for this (thanks to tokuhirom)
1446 0.48 Thurs. May 29, 2008
1447 (early morning release engineering)--
1449 - fixing the version in Moose::Meta::Method::Destructor
1450 which was causing the indexer to choke
1452 0.47 Thurs. May 29, 2008
1453 (late night release engineering)--
1455 - fixing the version is META.yml, no functional
1456 changes in this release
1458 0.46 Wed. May 28, 2008
1459 !! This version now approx. 20-25% !!
1460 !! faster with new Class::MOP 0.57 !!
1462 * Moose::Meta::Class
1463 - some optimizations of the &initialize method
1464 since it is called so often by &meta
1466 * Moose::Meta::Class
1468 - now use the get_all_package_symbols from the
1469 updated Class::MOP, test suite is now 10 seconds
1472 * Moose::Meta::Method::Destructor
1473 - is_needed can now also be called as a class
1474 method for immutablization to check if the
1475 destructor object even needs to be created
1478 * Moose::Meta::Method::Destructor
1479 Moose::Meta::Method::Constructor
1480 - added more descriptive error message to help
1481 keep people from wasting time tracking an error
1482 that is easily fixed by upgrading.
1484 0.45 Saturday, May 24, 2008
1486 - Because of work in Class::MOP 0.57, all
1487 XS based functionality is now optional
1488 and a Pure Perl version is supplied
1489 - the CLASS_MOP_NO_XS environment variable
1490 can now be used to force non-XS versions
1492 - several of the packages have been tweaked
1493 to take care of this, mostly we added
1494 support for the package_name and name
1495 variables in all the Method metaclasses
1496 - before/around/after method modifiers now
1497 support regexp matching of names
1498 (thanks to Takatoshi Kitano)
1499 - tests added for this
1500 - NOTE: this only works for classes, it
1501 is currently not supported in roles,
1502 but, ... patches welcome
1503 - All usage of Carp::confess have been replaced
1504 by Carp::croak in the "keyword" functions since
1505 the stack trace is usually not helpful
1508 - All usage of Carp::confess have been replaced
1509 by Carp::croak in the "keyword" functions since
1510 the stack trace is usually not helpful
1511 - The 'has' keyword for roles now accepts the
1512 same array ref form that Moose.pm does
1513 (has [qw/foo bar/] => (is => 'rw', ...))
1514 - added test for this
1516 * Moose::Meta::Attribute
1517 - trigger on a ro-attribute is no longer an
1518 error, as it's useful to trigger off of the
1521 * Moose::Meta::Class
1522 - added same 'add_package_symbol' fix as in
1526 - does_role now handles non-Moose classes
1528 - added tests for this
1529 - added the 'add_method_modifier' function
1530 (thanks to Takatoshi Kitano)
1532 * Moose::Util::TypeConstraints
1533 - subtypes of parameterizable types now are
1534 themselves parameterizable types
1536 * Moose::Meta::Method::Constructor
1537 - fixed bug where trigger was not being
1538 called by the inlined immutable
1540 - added test for this (thanks to Caelum)
1542 * Moose::Meta::Role::Application::ToInstance
1543 - now uses the metaclass of the instance
1544 (if possible) to create the anon-class
1545 (thanks Jonathan Rockway)
1547 * Moose::Cookbook::Recipe22
1548 - added the meta-attribute trait recipe
1552 - fixed hash-ordering test bug that was
1553 causing occasional cpantester failures
1554 - renamed the t/000_recipe/*.t tests to be
1555 more descriptive (thanks to Sartak)
1557 0.44 Sat. May 10, 2008
1559 - made make_immutable warning cluck to
1560 show where the error is (thanks mst)
1563 - BUILDALL and DEMOLISHALL now call
1564 ->body when looping through the
1565 methods, to avoid the overloaded
1567 - fixed issue where DEMOLISHALL was
1568 eating the $@ values, and so not
1569 working correctly, it still kind of
1570 eats them, but so does vanilla perl
1571 - added tests for this
1573 * Moose::Cookbook::Recipe7
1574 - added new recipe for immutable
1575 functionality (thanks Dave Rolsky)
1577 * Moose::Cookbook::Recipe9
1578 - added new recipe for builder and
1579 lazy_build (thanks Dave Rolsky)
1581 * Moose::Cookbook::Recipe11
1582 - added new recipe for method aliasing
1583 and exclusion with Roles (thanks Dave Rolsky)
1586 - fixed Win32 test failure (thanks spicyjack)
1588 ~ removed Build.PL and Module::Build compat
1589 since Module::Install has done that.
1591 0.43 Wed. April, 30, 2008
1593 drink more coffee before
1594 doing release engineering
1596 - whoops, forgot to do the smolder tests,
1597 and we broke some of the custom meta-attr
1598 modules. This fixes that.
1600 0.42 Mon. April 28, 2008
1601 - some bad tests slipped by, nothing else
1602 changed in this release (cpantesters++)
1604 - upped the Class::MOP dependency to 0.55
1605 since we have tests which need the C3
1608 0.41 Mon. April 28, 2008
1609 ~~ numerous documentation updates ~~
1611 - Changed all usage of die to Carp::croak for better
1612 error reporting (initial patch by Tod Hagan)
1614 ** IMPORTANT NOTE **
1615 - the make_immutable keyword is now deprecated, don't
1616 use it in any new code and please fix your old code
1617 as well. There will be 2 releases, and then it will
1623 - refactored the way inner and super work to avoid
1624 any method/@ISA cache penalty (nothingmuch)
1626 * Moose::Meta::Class
1627 - fixing &new_object to make sure trigger gets the
1628 coerced value (spotted by Charles Alderman on the
1630 - added test for this
1632 * Moose::Meta::Method::Constructor
1633 - immutable classes which had non-lazy attributes were calling
1634 the default generating sub twice in the constructor. (bug
1635 found by Jesse Luehrs, fixed by Dave Rolsky)
1636 - added tests for this (Dave Rolsky)
1637 - fix typo in initialize_body method (nothingmuch)
1639 * Moose::Meta::Method::Destructor
1640 - fix typo in initialize_body method (nothingmuch)
1642 * Moose::Meta::Method::Overriden
1643 Moose::Meta::Method::Augmented
1644 - moved the logic for these into their own
1645 classes (nothingmuch)
1647 * Moose::Meta::Attribute
1648 - inherited attributes may now be extended without
1649 restriction on the type ('isa', 'does') (Sartak)
1650 - added tests for this (Sartak)
1651 - when an attribute property is malformed (such as lazy without
1652 a default), give the name of the attribute in the error
1654 - added the &applied_traits and &has_applied_traits methods
1655 to allow introspection of traits
1656 - added tests for this
1657 - moved 'trait' and 'metaclass' argument handling to here from
1659 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1660 '+foo' syntax) (nothingmuch)
1661 - added tests for this (t0m)
1664 - localize $@ inside DEMOLISHALL to avoid it
1665 eating $@ (found by Ernesto)
1666 - added test for this (thanks to Ernesto)
1668 * Moose::Util::TypeConstraints
1669 - &find_type_constraint now DWIMs when given an
1670 type constraint object or name (nothingmuch)
1671 - &find_or_create_type_constraint superseded with a number of more
1673 - find_or_create_{isa,does}_type_constraint
1674 - find_or_parse_type_constraint
1676 * Moose::Meta::TypeConstraint
1677 Moose::Meta::TypeConstraint::Class
1678 Moose::Meta::TypeConstraint::Role
1679 Moose::Meta::TypeConstraint::Enum
1680 Moose::Meta::TypeConstraint::Union
1681 Moose::Meta::TypeConstraint::Parameterized
1682 - added the &equals method for comparing two type
1683 constraints (nothingmuch)
1684 - added tests for this (nothingmuch)
1686 * Moose::Meta::TypeConstraint
1687 - add the &parents method, which is just an alias to &parent.
1688 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1690 * Moose::Meta::TypeConstraint::Class
1691 - added the class attribute for introspection purposes
1693 - added tests for this
1695 * Moose::Meta::TypeConstraint::Enum
1696 Moose::Meta::TypeConstraint::Role
1697 - broke these out into their own classes (nothingmuch)
1699 * Moose::Cookbook::Recipe*
1700 - fixed references to test file locations in the POD
1701 and updated up some text for new Moose features
1705 - Added &resolve_metaclass_alias, a helper function for finding an actual
1706 class for a short name (e.g. in the traits list)
1708 0.40 Fri. March 14, 2008
1709 - I hate Pod::Coverage
1711 0.39 Fri. March 14, 2008
1713 - documenting the use of '+name' with attributes
1714 that come from recently composed roles. It makes
1715 sense, people are using it, and so why not just
1716 officially support it.
1717 - fixing the 'extends' keyword so that it will not
1718 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1721 - added the perl -Moose=+Class::Name feature to allow
1722 monkeypatching of classes in one liners
1725 - fixing the 'apply_all_roles' keyword so that it will not
1726 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1728 * Moose::Meta::Class
1729 - added ->create method which now supports roles (thanks to jrockway)
1730 - added tests for this
1731 - added ->create_anon_class which now supports roles and caching of
1732 the results (thanks to jrockway)
1733 - added tests for this
1734 - made ->does_role a little more forgiving when it is
1735 checking a Class::MOP era metaclasses.
1737 * Moose::Meta::Role::Application::ToInstance
1738 - it is now possible to pass extra params to be used when
1739 a role is applied to an the instance (rebless_params)
1740 - added tests for this
1742 * Moose::Util::TypeConstraints
1743 - class_type now accepts an optional second argument for a
1744 custom message. POD anotated accordingly (groditi)
1745 - added tests for this
1746 - it is now possible to make anon-enums by passing 'enum' an
1747 ARRAY ref instead of the $name => @values. Everything else
1749 - added tests for this
1752 - making test for using '+name' on attributes consumed
1753 from a role, it works and makes sense too.
1755 * Moose::Meta::Attribute
1756 - fix handles so that it doesn't return nothing
1757 when the method cannot be found, not sure why
1758 it ever did this originally, this means we now
1759 have slightly better support for AUTOLOADed
1761 - added more delegation tests
1762 - adding ->does method to this so as to better
1763 support traits and their introspection.
1764 - added tests for this
1767 - localizing the Data::Dumper configurations so
1768 that it does not pollute others (RT #33509)
1769 - made ->does a little more forgiving when it is
1770 passed Class::MOP era metaclasses.
1772 0.38 Fri. Feb. 15, 2008
1773 * Moose::Meta::Attribute
1774 - fixed initializer to correctly do
1775 type checking and coercion in the
1777 - added tests for this
1780 - fixed some finicky tests (thanks to konobi)
1782 0.37 Thurs. Feb. 14, 2008
1784 - fixed some details in Moose::init_meta
1785 and its superclass handling (thanks thepler)
1786 - added tests for this (thanks thepler)
1787 - 'has' now dies if you don't pass in name
1789 - added the 'make_immutable' keyword as a shortcut
1792 * Moose::Meta::Class
1793 Moose::Meta::Method::Constructor
1794 Moose::Meta::Attribute
1795 - making (init_arg => undef) work here too
1796 (thanks to nothingmuch)
1798 * Moose::Meta::Attribute
1799 Moose::Meta::Method::Constructor
1800 Moose::Meta::Method::Accessor
1801 - make lazy attributes respect attr initializers (rjbs)
1802 - added tests for this
1804 * Moose::Util::TypeConstraints
1805 Moose::Util::TypeConstraints::OptimizedConstraints
1806 Moose::Meta::TypeConstraints
1807 Moose::Meta::Attribute
1808 Moose::Meta::Method::Constructor
1809 Moose::Meta::Method::Accessor
1810 - making type errors use the
1811 assigned message (thanks to Sartak)
1812 - added tests for this
1814 * Moose::Meta::Method::Destructor
1815 - making sure DESTROY gets inlined properly
1816 with successive DEMOLISH calls (thanks to manito)
1818 * Moose::Meta::Attribute
1819 Moose::Meta::Method::Accessor
1820 - fixed handling of undef with type constraints
1822 - added tests for this
1825 - added &get_all_init_args and &get_all_attribute_values
1826 (thanks to Sartak and nothingmuch)
1828 0.36 Sat. Jan. 26, 2008
1830 Moose::Meta::Attribute
1831 - role type tests now support when roles are
1832 applied to non-Moose classes (found by ash)
1833 - added tests for this (thanks to ash)
1834 - couple extra tests to boost code coverage
1836 * Moose::Meta::Method::Constructor
1837 - improved fix for handling Class::MOP attributes
1838 - added test for this
1840 * Moose::Meta::Class
1841 - handled the add_attribute($attribute_meta_object)
1843 - added test for this
1845 0.35 Tues. Jan. 22, 2008
1846 * Moose::Meta::Method::Constructor
1847 - fix to make sure even Class::MOP attributes
1848 are handled correctly (Thanks to Dave Rolsky)
1849 - added test for this (also Dave Rolsky)
1851 * Moose::Meta::Class
1852 - improved error message on _apply_all_roles,
1853 you should now use Moose::Util::apply_all_roles
1854 and you shouldnt have been using a _ prefixed
1855 method in the first place ;)
1857 0.34 Mon. Jan. 21, 2008
1858 ~~~ more misc. doc. fixes ~~~
1859 ~~ updated copyright dates ~~
1861 Moose is now a postmodern object system :)
1862 - (see the POD for details)
1864 * <<Role System Refactoring>>
1865 - this release contains a major reworking and
1866 cleanup of the role system
1867 - 100% backwards compat.
1868 - Role application now restructured into seperate
1869 classes based on type of applicants
1870 - Role summation (combining of more than one role)
1871 is much cleaner and anon-classes are no longer
1872 used in this process
1873 - new Composite role metaclass
1874 - runtime application of roles to instances
1875 is now more efficient and re-uses generated
1876 classes when applicable
1878 * <<New Role composition features>>
1879 - methods can now be excluded from a given role
1881 - methods can now be aliased to another name (and
1882 still retain the original as well)
1884 * Moose::Util::TypeConstraints::OptimizedConstraints
1885 - added this module (see above)
1887 * Moose::Meta::Class
1888 - fixed the &_process_attribute method to be called
1889 by &add_attribute, so that the API is now correct
1891 * Moose::Meta::Method::Accessor
1892 - fixed bug when passing a list of values to
1893 an accessor would get (incorrectly) ignored.
1894 Thanks to Sartak for finding this ;)
1895 - added tests for this (Sartak again)
1897 * Moose::Meta::Method::Accessor
1898 Moose::Meta::Method::Constructor
1899 Moose::Meta::Attribute
1900 Moose::Meta::TypeConstraint
1901 Moose::Meta::TypeCoercion
1902 - lots of cleanup of such things as:
1904 - type constraint handling
1905 - error handling/messages
1906 (thanks to nothingmuch)
1908 * Moose::Meta::TypeConstraint::Parameterizable
1909 - added this module to support the refactor
1910 in Moose::Meta::TypeConstraint::Parameterized
1912 * Moose::Meta::TypeConstraint::Parameterized
1913 - refactored how these types are handled so they
1914 are more generic and not confined to ArrayRef
1918 - shortened some file names for better VMS support (RT #32381)
1920 0.33 Fri. Dec. 14, 2007
1921 !! Moose now loads 2 x faster !!
1922 !! with new Class::MOP 0.49 !!
1924 ++ new oose.pm module to make command line
1925 Moose-ness easier (see POD docs for more)
1927 * Moose::Meta::Class
1929 - several tweaks to take advantage of the
1930 new method map caching in Class::MOP
1932 * Moose::Meta::TypeConstraint::Parameterized
1933 - allow subtypes of ArrayRef and HashRef to
1934 be used as a container (sartak)
1935 - added tests for this
1936 - basic support for coercion to ArrayRef and
1937 HashRef for containers (sartak)
1938 - added tests for this
1940 * Moose::Meta::TypeCoercion
1941 - coercions will now create subtypes as needed
1942 so you can now add coercions to parameterized
1943 types without having to explictly define them
1944 - added tests for this
1946 * Moose::Meta::Method::Accessor
1947 - allow subclasses to decide whether we need
1948 to copy the value into a new variable (sartak)
1950 0.32 Tues. Dec. 4, 2007
1951 * Moose::Util::TypeConstraints
1952 - fixing how subtype aliases of unions work
1953 they should inherit the parent's coercion
1954 - added tests for this
1955 - you can now define multiple coercions on
1956 a single type at different times instead of
1957 having to do it all in one place
1958 - added tests for this
1960 * Moose::Meta::TypeConstraint
1961 - there is now a default constraint of sub { 1 }
1962 instead of Moose::Util::TypeConstraints setting
1965 * Moose::Meta::TypeCoercion
1966 * Moose::Meta::TypeCoercion::Union
1967 - added the &has_coercion_for_type and
1968 &add_type_coercions methods to support the
1969 new features above (although you cannot add
1970 more type coercions for Union types)
1972 0.31 Mon. Nov. 26, 2007
1973 * Moose::Meta::Attribute
1974 - made the +attr syntax handle extending types with
1975 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1976 now works if the original foo is an ArrayRef.
1977 - added tests for this.
1978 - delegation now works even if the attribute does not
1979 have a reader method using the get_read_method_ref
1980 method from Class::MOP::Attribute.
1981 - added tests for this
1982 - added docs for this
1984 * Moose::Util::TypeConstraints
1985 - passing no "additional attribute info" to
1986 &find_or_create_type_constraint will no longer
1987 attempt to create an __ANON__ type for you,
1988 instead it will just return undef.
1989 - added docs for this
1991 0.30 Fri. Nov. 23, 2007
1992 * Moose::Meta::Method::Constructor
1993 -builder related bug in inlined constructor. (groditi)
1995 * Moose::Meta::Method::Accessor
1996 - genereate unnecessary calls to predicates and refactor
1997 code generation for runtime speed (groditi)
1999 * Moose::Util::TypeConstraints
2000 - fix ClassName constraint to introspect symbol table (mst)
2001 - added more tests for this (mst)
2002 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2003 with work correctly.
2004 - added tests for this
2007 - adding the link to Recipie 11 (written by Sartak)
2008 - adding test for SYNOPSIS code
2011 - New tests for builder bug. Upon instantiation, if an
2012 attribute had a builder, no value and was not lazy the
2013 builder default was not getting run, oops. (groditi)
2015 0.29 Tues. Nov. 13, 2007
2016 * Moose::Meta::Attribute
2017 - Fix error message on missing builder method (groditi)
2019 * Moose::Meta::Method::Accessor
2020 - Fix error message on missing builder method (groditi)
2023 - Add test to check for the correct error message when
2024 builder method is missing (groditi)
2026 0.28 Tues. Nov. 13, 2007
2027 - 0.27 packaged incorrectly (groditi)
2029 0.27 Tues. Nov. 13, 2007
2030 * Moose::Meta::Attribute
2031 - Added support for the new builder option (groditi)
2032 - Added support for lazy_build option (groditi)
2033 - Changed slot initialization for predicate changes (groditi)
2035 * Moose::Meta::Method::Accessor
2036 - Added support for lazy_build option (groditi)
2037 - Fix inline methods to work with corrected predicate
2040 * Moose::Meta::Method::Constructor
2041 - Added support for lazy_build option (groditi)
2044 - tests for builder and lazy_build (groditi)
2046 * fixing some misc. bits in the docs that
2047 got mentioned on CPAN Forum & perlmonks
2050 - fixed how required methods are handled
2051 when they encounter overriden or modified
2052 methods from a class (thanks to confound).
2053 - added tests for this
2055 * Moose::Util::TypeConstraint
2056 - fixed the type notation parser so that
2057 the | always creates a union and so is
2058 no longer a valid type char (thanks to
2059 konobi, mugwump and #moose for working
2061 - added more tests for this
2063 0.26 Thurs. Sept. 27, 2007
2066 * Parameterized Types
2067 We now support parameterized collection types, such as:
2068 ArrayRef[Int] # array or integers
2069 HashRef[Object] # a hash with object values
2070 They can also be nested:
2071 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2072 And work with the type unions as well:
2073 ArrayRef[Int | Str] # array of integers of strings
2075 * Better Framework Extendability
2076 Moose.pm is now "extendable" such that it is now much
2077 easier to extend the framework and add your own keywords
2078 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2079 section of the Moose.pm docs.
2082 In an effort to begin documenting some of the various
2083 details of Moose as well as some common idioms, we have
2084 created Moose::Cookbook::Snacks as a place to find
2085 small (easily digestable) nuggets of Moose code.
2088 ~ Several doc updates/cleanup thanks to castaway ~
2090 - converted build system to use Module::Install instead of
2091 Module::Build (thanks to jrockway)
2094 - added all the meta classes to the immutable list and
2095 set it to inline the accessors
2096 - fix import to allow Sub::Exporter like { into => }
2097 and { into_level => } (perigrin)
2098 - exposed and documented init_meta() to allow better
2099 embedding and extending of Moose (perigrin)
2102 - complete re-organization of the test suite
2103 - added some new tests as well
2104 - finally re-enabled the Moose::POOP test since
2105 the new version of DBM::Deep now works again
2108 * Moose::Meta::Class
2109 - fixed very odd and very nasty recursion bug with
2111 - added tests for this (eilara)
2113 * Moose::Meta::Attribute
2114 Moose::Meta::Method::Constructor
2115 Moose::Meta::Method::Accessor
2116 - fixed issue with overload::Overloaded getting called
2117 on non-blessed items. (RT #29269)
2118 - added tests for this
2120 * Moose::Meta::Method::Accessor
2121 - fixed issue with generated accessor code making
2122 assumptions about hash based classes (thanks to dexter)
2124 * Moose::Coookbook::Snacks
2125 - these are bits of documentation, not quite as big as
2126 Recipes but which have no clear place in the module docs.
2127 So they are Snacks! (horray for castaway++)
2129 * Moose::Cookbook::Recipe4
2130 - updated it to use the new ArrayRef[MyType] construct
2131 - updated the accompanying test as well
2133 +++ Major Refactor of the Type Constraint system +++
2134 +++ with new features added as well +++
2136 * Moose::Util::TypeConstraint
2137 - no longer uses package variable to keep track of
2138 the type constraints, now uses the an instance of
2139 Moose::Meta::TypeConstraint::Registry to do it
2140 - added more sophisticated type notation parsing
2142 - added tests for this
2144 * Moose::Meta::TypeConstraint
2145 - some minor adjustments to make subclassing easier
2146 - added the package_defined_in attribute so that we
2147 can track where the type constraints are created
2149 * Moose::Meta::TypeConstraint::Union
2150 - this is now been refactored to be a subclass of
2151 Moose::Meta::TypeConstraint
2153 * Moose::Meta::TypeCoercion::Union
2154 - this has been added to service the newly refactored
2155 Moose::Meta::TypeConstraint::Union and is itself
2156 a subclass of Moose::Meta::TypeCoercion
2158 * Moose::Meta::TypeConstraint::Parameterized
2159 - added this module (taken from MooseX::AttributeHelpers)
2160 to help construct nested collection types
2161 - added tests for this
2163 * Moose::Meta::TypeConstraint::Registry
2164 - added this class to keep track of type constraints
2166 0.25 Mon. Aug. 13, 2007
2168 - Documentation update to reference Moose::Util::TypeConstraints
2169 under 'isa' in 'has' for how to define a new type
2170 (thanks to shlomif).
2172 * Moose::Meta::Attribute
2173 - required attributes now will no longer accept undef
2174 from the constructor, even if there is a default and lazy
2175 - added tests for this
2176 - default subroutines must return a value which passes the
2178 - added tests for this
2180 * Moose::Meta::Attribute
2181 * Moose::Meta::Method::Constructor
2182 * Moose::Meta::Method::Accessor
2183 - type-constraint tests now handle overloaded objects correctly
2184 in the error message
2185 - added tests for this (thanks to EvanCarroll)
2187 * Moose::Meta::TypeConstraint::Union
2188 - added (has_)hand_optimized_constraint to this class so that
2189 it behaves as the regular Moose::Meta::TypeConstraint does.
2192 - large refactoring of this code
2193 - added several more tests
2194 - tests for subtle conflict resolition issues
2195 added, but not currently running
2198 * Moose::Cookbook::Recipe7
2199 - added new recipe for augment/inner functionality
2201 - added test for this
2204 - a formal definition of roles (still in progress)
2207 - utilities for easier working with Moose classes
2208 - added tests for these
2211 - This contains Moose specific test functions
2212 - added tests for these
2214 0.24 Tues. July 3, 2007
2215 ~ Some doc updates/cleanup ~
2217 * Moose::Meta::Attribute
2218 - added support for roles to be given as parameters
2219 to the 'handles' option.
2220 - added tests and docs for this
2221 - the has '+foo' attribute form now accepts changes to
2222 the lazy option, and the addition of a handles option
2223 (but not changing the handles option)
2224 - added tests and docs for this
2227 - required methods are now fetched using find_method_by_name
2228 so that required methods can come from superclasses
2229 - adjusted tests for this
2231 0.23 Mon. June 18, 2007
2232 * Moose::Meta::Method::Constructor
2233 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2234 * Moose::Meta::Class
2235 - Modify make_immutable to work with the new Class::MOP immutable
2236 mechanism + POD + very basic test (groditi)
2237 * Moose::Meta::Attribute
2238 - Fix handles to use goto() so that caller() comes out properly on
2239 the other side (perigrin)
2241 0.22 Thurs. May 31, 2007
2242 * Moose::Util::TypeConstraints
2243 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2244 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2245 prototypes for functions
2246 - added the ClassName type constraint, this checks for strings
2247 which will respond true to ->isa(UNIVERSAL).
2248 - added tests and docs for this
2249 - subtyping just in name now works correctly by making the
2250 default for where be { 1 }
2251 - added test for this
2253 * Moose::Meta::Method::Accessor
2254 - coerce and lazy now work together correctly, thanks to
2255 merlyn for finding this bug
2256 - tests added for this
2257 - fix reader presedence bug in Moose::Meta::Attribute + tests
2260 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2261 a HASH-ref and missed. This produces better error messages then
2262 having it die cause undef is not a HASH.
2263 - added tests for this
2265 0.21 Thursday, May 2nd, 2007
2267 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2268 - modified unimport to remove super and inner along with the rest
2269 - altered unimport tests to handle this
2272 - altered super export to populate SUPER_SLOT
2274 * Moose::Meta::Class
2275 - altered augment and override modifier application to use *_SLOT
2276 - modified tests for these to unimport one test class each to test
2279 - fixed issue where custom attribute metaclasses
2280 where not handled correctly in roles
2281 - added tests for this
2283 * Moose::Meta::Class
2284 - fixed issue where extending metaclasses with
2285 roles would blow up. Thanks to Aankhen`` for
2286 finding this insidious error, and it's solution.
2288 ~~ lots of spelling and grammer fixes in the docs,
2289 many many thanks to rlb3 and Aankhen for these :)
2291 0.20 Friday, April 6th, 2007
2292 >> I messed up the SKIP logic in one test
2293 so this release is just to fix that.
2296 - 'has' now also accepts an ARRAY ref
2297 to create multiple attrs (see docs)
2298 (thanks to konobi for this)
2299 - added tests and docs
2301 0.19 Thurs. April 5th, 2007
2302 ~~ More documentation updates ~~
2304 * Moose::Util::TypeConstraints
2305 - 'type' now supports messages as well
2306 thanks to phaylon for finding this
2307 - added tests for this
2308 - added &list_all_type_constraints and
2309 &list_all_builtin_type_constraints
2310 functions to facilitate introspection.
2312 * Moose::Meta::Attribute
2313 - fixed regexp 'handles' declarations
2314 to build the list of delegated methods
2315 correctly (and not override important
2316 things like &new) thanks to ashleyb
2318 - added tests and docs for this
2319 - added the 'documentation' attributes
2320 so that you can actually document your
2321 attributes and inspect them through the
2323 - added tests and docs for this
2325 * Moose::Meta::Class
2326 - when loading custom attribute metaclasses
2327 it will first look in for the class in the
2328 Moose::Meta::Attribute::Custom::$name, and
2329 then default to just loading $name.
2330 - added tests and docs for this
2332 * Moose::Meta::TypeConstraint
2333 - type constraints now stringify to their names.
2334 - added test for this
2337 - added tests to assure we work with Module::Refresh
2338 - added stricter test skip logic in the Moose POOP
2339 test, ask Rob Kinyon why.
2340 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2342 0.18 Sat. March 10, 2007
2343 ~~ Many, many documentation updates ~~
2346 - We now use Class::MOP::load_class to
2348 - added tests to show types and subtypes
2349 working with Declare::Constraints::Simple
2350 and Test::Deep as constraint engines.
2353 !! You must have Class::MOP 0.37_001 !!
2354 !! for this developer release to work !!
2356 This release was primarily adding the immutable
2357 feature to Moose. An immutable class is one which
2358 you promise not to alter. When you set the class
2359 as immutable it will perform various bits of
2360 memoization and inline certain part of the code
2361 (constructors, destructors and accessors). This
2362 minimizes (and in some cases totally eliminates)
2363 one of Moose's biggest performance hits. This
2364 feature is not on by default, and is 100% optional.
2365 It has several configurable bits as well, so you
2366 can pick and choose to your specific needs.
2368 The changes involved in this were fairly wide and
2369 highly specific, but 100% backwards compatible, so
2370 I am not going to enumerate them here. If you are
2371 truely interested in what was changed, please do
2374 0.17 Tues. Nov. 14, 2006
2375 * Moose::Meta::Method::Accessor
2376 - bugfix for read-only accessors which
2377 are have a type constraint and lazy.
2378 Thanks to chansen for finding it.
2380 0.16 Tues. Nov. 14, 2006
2382 There are some speed improvements in this release,
2383 but they are only the begining, so stay tuned.
2386 - BUILDALL and DEMOLISHALL no longer get
2387 called unless they actually need to be.
2388 This gave us a signifigant speed boost
2389 for the cases when there is no BUILD or
2390 DEMOLISH method present.
2392 * Moose::Util::TypeConstraints
2393 * Moose::Meta::TypeConstraint
2394 - added an 'optimize_as' option to the
2395 type constraint, which allows for a
2396 hand optimized version of the type
2397 constraint to be used when possible.
2398 - Any internally created type constraints
2399 now provide an optimized version as well.
2401 0.15 Sun. Nov. 5, 2006
2403 This version of Moose *must* have Class::MOP 0.36 in order
2404 to work correctly. A number of small internal tweaks have
2405 been made in order to be compatible with that release.
2407 * Moose::Util::TypeConstraints
2408 - added &unimport so that you can clean out
2409 your class namespace of these exported
2412 * Moose::Meta::Class
2413 - fixed minor issue which occasionally
2414 comes up during global destruction
2416 - moved Moose::Meta::Method::Overriden into
2420 - moved Moose::Meta::Role::Method into
2423 * Moose::Meta::Attribute
2424 - changed how we do type checks so that
2425 we reduce the overall cost, but still
2428 - moved accessor generation methods to
2429 Moose::Meta::Method::Accessor to
2430 conform to the API changes from
2433 * Moose::Meta::TypeConstraint
2434 - changed how constraints are compiled
2435 so that we do less recursion and more
2436 iteration. This makes the type check
2438 - moved Moose::Meta::TypeConstraint::Union
2441 * Moose::Meta::Method::Accessor
2442 - created this from methods formerly found in
2443 Moose::Meta::Attribute
2445 * Moose::Meta::Role::Method
2446 - moved this from Moose::Meta::Role
2448 * Moose::Meta::Method::Overriden
2449 - moved this from Moose::Meta::Class
2451 * Moose::Meta::TypeConstraint::Union
2452 - moved this from Moose::Meta::TypeConstraint
2454 0.14 Mon. Oct. 9, 2006
2456 * Moose::Meta::Attribute
2457 - fixed lazy attributes which were not getting
2458 checked with the type constraint (thanks ashley)
2459 - added tests for this
2460 - removed the over-enthusiastic DWIMery of the
2461 automatic ArrayRef and HashRef defaults, it
2462 broke predicates in an ugly way.
2463 - removed tests for this
2465 0.13 Sat. Sept. 30, 2006
2467 This version of Moose *must* have Class::MOP 0.35 in order
2468 to work correctly. A number of small internal tweaks have
2469 been made in order to be compatible with that release.
2472 - Removed the use of UNIVERSAL::require to be a better
2473 symbol table citizen and remove a dependency
2474 (thanks Adam Kennedy)
2476 **~~ removed experimental & undocumented feature ~~**
2477 - commented out the 'method' and 'self' keywords, see the
2478 comments for more info.
2481 - added a FAQ and WTF files to document frequently
2482 asked questions and common problems
2484 * Moose::Util::TypeConstraints
2485 - added GlobRef and FileHandle type constraint
2486 - added tests for this
2488 * Moose::Meta::Attribute
2489 - if your attribute 'isa' ArrayRef of HashRef, and you have
2490 not explicitly set a default, then make the default DWIM.
2491 This will also work for subtypes of ArrayRef and HashRef
2493 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2494 - new test added for this (thanks to ashley)
2497 - added basic support for runtime role composition
2498 but this is still *highly experimental*, so feedback
2499 is much appreciated :)
2500 - added tests for this
2502 * Moose::Meta::TypeConstraint
2503 - the type constraint now handles the coercion process
2504 through delegation, this is to support the coercion
2507 * Moose::Meta::TypeConstraint::Union
2508 - it is now possible for coercions to be performed
2510 - added tests for this (thanks to konobi)
2512 * Moose::Meta::TypeCoercion
2513 - properly capturing error when type constraint
2517 - Scalar::Util 1.18 is bad on Win32, so temporarily
2518 only require version 1.17 for Win32 and cygwin.
2519 (thanks Adam Kennedy)
2521 0.12 Sat. Sept. 1, 2006
2523 - Recipe5 (subtypes & coercion) has been written
2526 - fixed "bad meta" error message to be more descriptive
2527 - fixed &unimport to not remove the &inner and &super
2528 keywords because we need to localize them.
2529 - fixed number of spelling/grammer issues, thanks Theory :)
2531 **~~ experimental & undocumented feature ~~**
2532 - added the method and self keywords, they are basically
2533 just sugar, and they may not stay around.
2536 - added &dump method to easily Data::Dumper
2539 * Moose::Meta::TypeConstraint
2540 - added the &is_a_type_of method to check both the current
2541 and the subtype of a method (similar to &isa with classes)
2544 - this is now a subclass of Class::MOP::Module, and no longer
2545 creates the _role_meta ugliness of before.
2546 - fixed tests to reflect this change
2548 0.11 Wed. July 12, 2006
2550 - added an &unimport method to remove all the keywords
2551 that Moose will import, simply add 'no Moose' to the
2552 bottom of your class file.
2555 - fixed some test failures caused by a forgotten test
2558 0.10 Thurs. July 6, 2006
2560 - improved error message when loading modules so
2561 it is less confusing when you load a role.
2562 - added &calculate_all_roles method to
2563 Moose::Meta::Class and Moose::Meta::Role
2566 This module has been tested against Class::MOP 0.30
2567 but it does not yet utilize the optimizations
2568 it makes available. Stay tuned for that ;)
2570 0.09_03 Fri. June 23, 2006
2571 ++ DEVELOPER RELEASE ++
2573 - 'use strict' and 'use warnings' are no longer
2574 needed in Moose classes, Moose itself will
2575 turn them on for you.
2576 - added tests for this
2577 - moved code from exported subs to private methods
2578 in Moose::Meta::Class
2581 - as with Moose, strict and warnings are
2582 automatically turned on for you.
2583 - added tests for this
2586 - now handles an edge case for override errors
2587 - added tests for this
2588 - added some more edge case tests
2590 0.09_02 Tues. May 16, 2006
2591 ++ DEVELOPER RELEASE ++
2593 - added prototypes to the exported subs
2597 - added prototypes to the exported subs
2600 * Moose::Util::TypeConstraints
2601 - cleaned up prototypes for the subs
2604 0.09_01 Fri. May 12, 2006
2605 ++ DEVELOPER RELEASE ++
2606 - This release works in combination with
2607 Class::MOP 0.29_01, it is a developer
2608 release because it uses the a new
2609 instance sub-protocol and a fairly
2610 complete Role implementation. It has
2611 not yet been optimized, so it slower
2612 the the previous CPAN version. This
2613 release also lacks good updated docs,
2614 the official release will have updated docs.
2617 - refactored the keyword exports
2618 - 'with' now checks Role validaity and
2619 accepts more than one Role at a time
2620 - 'extends' makes metaclass adjustments as
2621 needed to ensure metaclass compatibility
2624 - refactored the keyword exports
2625 - 'with' now checks Role validaity and
2626 accepts more than one Role at a time
2628 * Moose::Util::TypeConstraints
2629 - added the 'enum' keyword for simple
2630 string enumerations which can be used as
2632 - see example of usage in t/202_example.t
2635 - more careful checking of params to new()
2638 - much work done on the role composition
2639 - many new tests for conflict detection
2640 and composition edge cases
2641 - not enough documentation, I suggest
2642 looking at the tests
2644 * Moose::Meta::Instance
2645 - added new Instance metaclass to support
2646 the new Class::MOP instance protocol
2648 * Moose::Meta::Class
2649 - some small changes to support the new
2651 - some small additions to support Roles
2653 * Moose::Meta::Attribute
2654 - some improvements to the accessor generation code
2656 - some small changes to support the new
2658 - (still somewhat) experimental delegation support
2659 with the 'handles' option
2660 - added several tests for this
2661 - no docs for this yet
2663 0.05 Thurs. April 27, 2006
2665 - keywords are now exported with Sub::Exporter
2666 thanks to chansen for this commit
2667 - has keyword now takes a 'metaclass' option
2668 to support custom attribute meta-classes
2669 on a per-attribute basis
2670 - added tests for this
2671 - the 'has' keyword not accepts inherited slot
2672 specifications (has '+foo'). This is still an
2673 experimental feature and probably not finished
2674 see t/038_attribute_inherited_slot_specs.t for
2675 more details, or ask about it on #moose
2676 - added tests for this
2679 - keywords are now exported with Sub::Exporter
2681 * Moose::Utils::TypeConstraints
2682 - reorganized the type constraint hierarchy, thanks
2683 to nothingmuch and chansen for his help and advice
2685 - added some tests for this
2686 - keywords are now exported with Sub::Exporter
2687 thanks to chansen for this commit
2689 * Moose::Meta::Class
2690 - due to changes in Class::MOP, we had to change
2691 construct_instance (for the better)
2693 * Moose::Meta::Attribute
2694 - due to changes in Class::MOP, we had to add the
2695 initialize_instance_slot method (it's a good thing)
2697 * Moose::Meta::TypeConstraint
2698 - added type constraint unions
2699 - added tests for this
2700 - added the is_subtype_of predicate method
2701 - added tests for this
2703 0.04 Sun. April 16th, 2006
2705 - Roles can now consume other roles
2706 - added tests for this
2707 - Roles can specify required methods now with
2708 the requires() keyword
2709 - added tests for this
2712 - ripped out much of it's guts ,.. much cleaner now
2713 - added required methods and correct handling of
2714 them in apply() for both classes and roles
2715 - added tests for this
2716 - no longer adds a does() method to consuming classes
2717 it relys on the one in Moose::Object
2718 - added roles attribute and some methods to support
2719 roles consuming roles
2721 * Moose::Meta::Attribute
2722 - added support for triggers on attributes
2723 - added tests for this
2724 - added support for does option on an attribute
2725 - added tests for this
2727 * Moose::Meta::Class
2728 - added support for attribute triggers in the
2730 - added tests for this
2733 - Moose no longer creates a subtype for your class
2734 if a subtype of the same name already exists, this
2735 should DWIM in 99.9999% of all cases
2737 * Moose::Util::TypeConstraints
2738 - fixed bug where incorrect subtype conflicts were
2740 - added test for this
2743 - this class can now be extended with 'use base' if
2744 you need it, it properly loads the metaclass class now
2745 - added test for this
2747 0.03_02 Wed. April 12, 2006
2749 - you must now explictly use Moose::Util::TypeConstraints
2750 it no longer gets exported for you automatically
2753 - new() now accepts hash-refs as well as key/value lists
2754 - added does() method to check for Roles
2755 - added tests for this
2757 * Moose::Meta::Class
2758 - added roles attribute along with the add_role() and
2760 - added tests for this
2763 - now adds a does() method to consuming classes
2764 which tests the class's hierarchy for roles
2765 - added tests for this
2767 0.03_01 Mon. April 10, 2006
2769 - added new Role recipe (no content yet, only code)
2772 - added 'with' keyword for Role support
2773 - added test and docs for this
2774 - fixed subtype quoting bug
2775 - added test for this
2779 - added test and docs
2781 * Moose::Util::TypeConstraints
2782 - added the message keyword to add custom
2783 error messages to type constraints
2786 - the meta role to support Moose::Role
2787 - added tests and docs
2789 * Moose::Meta::Class
2790 - moved a number of things from Moose.pm
2791 to here, they should have been here
2794 * Moose::Meta::Attribute
2795 - moved the attribute option macros here
2796 instead of putting them in Moose.pm
2798 * Moose::Meta::TypeConstraint
2799 - added the message attributes and the
2801 - added tests and docs for this
2803 0.03 Thurs. March 30, 2006
2805 - added the Moose::Cookbook with 5 recipes,
2806 describing all the stuff Moose can do.
2809 - fixed an issue with &extends super class loading
2810 it now captures errors and deals with inline
2811 packages correctly (bug found by mst, solution
2813 - added super/override & inner/augment features
2814 - added tests and docs for these
2817 - BUILDALL now takes a reference of the %params
2818 that are passed to &new, and passes that to
2821 * Moose::Util::TypeConstraints
2822 - Type constraints now survive runtime reloading
2823 - added test for this
2825 * Moose::Meta::Class
2826 - fixed the way attribute defaults are handled
2827 during instance construction (bug found by chansen)
2829 * Moose::Meta::Attribute
2830 - read-only attributes now actually enforce their
2831 read-only-ness (this corrected in Class::MOP as
2834 0.02 Tues. March 21, 2006
2836 - many more tests, fixing some bugs and
2838 - &extends now loads the base module with
2840 - added UNIVERSAL::require to the
2843 - each new Moose class will also create
2844 and register a subtype of Object which
2845 correspond to the new Moose class.
2846 - the 'isa' option in &has now only
2847 accepts strings, and will DWIM in
2850 * Moose::Util::TypeConstraints
2851 - added type coercion features
2852 - added tests for this
2853 - added support for this in attributes
2854 and instance construction
2856 - type construction no longer creates a
2857 function, it registers the type instead.
2858 - added several functions to get the
2862 - BUILDALL and DEMOLISHALL were broken
2863 because of a mis-named hash key, Whoops :)
2865 * Moose::Meta::Attribute
2866 - adding support for coercion in the
2867 autogenerated accessors
2869 * Moose::Meta::Class
2870 - adding support for coercion in the
2871 instance construction
2873 * Moose::Meta::TypeConstraint
2874 * Moose::Meta::TypeCoercion
2875 - type constraints and coercions are now
2876 full fledges meta-objects
2878 0.01 Wed. March 15, 2006
2879 - Moooooooooooooooooose!!!