1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Attribute::Native::Trait::Counter
6 * Moose::Meta::Attribute::Native::Trait::String
7 - For these two traits, an attribute which did not explicitly provide
8 methods to handles magically ended up delegating *all* the helper
9 methods. This has been removed. You must be explicit in your handles
10 declaration for all Native Traits. (Dave Rolsky)
13 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
14 sure to rethrow its error message. However, we also localize $@ before
15 this so that if all the DEMOLISH methods success, the value of $@ will
16 be preserved. (nothingmuch and Dave Rolsky)
17 - We now also localize $? during object destruction. (nothingmuch and
19 - The handling of DEMOLISH methods was broken for immutablized classes,
20 which were not receiving the value of
21 Devel::GlobalDestruction::in_global_destruction.
22 - These two fixes address some of RT #48271, reported by Zefram.
23 - This is all now documented in Moose::Manual::Construction.
24 - Calling $object->new() is now deprecated. A warning will be
28 - Added more hooks to customize how roles are applied. The role
29 summation class, used to create composite roles, can now be changed
30 and/or have meta-roles applied to it. (rafl)
32 * Moose::Meta::Method::Delegation
33 - fixed delegated methods to make sure that any modifiers attached to
34 the accessor being delegated on will be called (Stevan)
35 - added tests for this (Stevan)
37 0.89_02 Thu, Sep 10, 2009
38 * Moose::Meta::Attribute::Native
39 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
41 * Moose::Meta::Attribute::Native::Trait::Array
42 - Added a number of functions from List::Util and List::MoreUtils,
43 including reduce, shuffle, uniq, and natatime. (doy)
46 - This module will now generate an init_meta method for your exporting
47 class if you pass it options for
48 Moose::Util::MetaRole::apply_metaclass_roles or
49 apply_base_class_roles. This eliminates a lot of repetitive
50 boilerplate for typical MooseX modules. (doy).
51 - Documented the with_meta feature, which is a replacement for
52 with_caller. This feature was added by josh a while ago.
53 - The with_caller feature is now deprecated, but will not issue a
54 warning yet. (Dave Rolsky)
55 - If you try to wrap/export a subroutine which doesn't actually exist,
56 Moose::Exporter will warn you about this. (doy)
59 - Warn when calling make_immutable on a class with mutable ancestors.
62 * Moose::Meta::Role::Application::ToRole
63 - When a role aliased a method from another role, it was only getting
64 the new (aliased) name, not the original name. This differed from what
65 happens when a class aliases a role's methods. If you _only_ want the
66 aliased name, make sure to also exclue the original name. (Dave
69 0.89_01 Wed Sep 2, 2009
70 * Moose::Meta::Attribute
71 - Added the currying syntax for delegation from AttributeHelpers to the
72 existing delegation API. (hdp)
74 * Moose::Meta::Attribute::Native
75 - We have merged the functionality of MooseX::AttributeHelpers into the
76 Moose core with some API tweaks. You can continue to use
77 MooseX::AttributeHelpers, but it will not be maintained except
78 (perhaps) for critical bug fixes in the future. See
79 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
83 * Moose::Error::Confess
84 - Clarify documentation on how to use different error-throwing
85 modules. (Curtis Jewell)
88 - Correct POD for builder to point to Recipe8, not 9. (gphat)
91 - When a nonexistent sub name is passed to as_is, with_caller, or
92 with_meta, throw a warning and skip the exporting, rather than
93 installing a broken sub. (doy)
96 * Moose::Manual::Attributes
97 - Clarify "is", include discussion of "bare". (Sartak)
99 * Moose::Meta::Role::Method::Conflicting
100 * Moose::Meta::Role::Application::ToClass
101 - For the first set of roles involved in a conflict, report all
102 unresolved method conflicts, not just the first method. Fixes #47210
103 reported by Ovid. (Sartak)
105 * Moose::Meta::TypeConstraint
106 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
109 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
111 - Allow specifying role options (alias, excludes, MXRP stuff) in the
112 arrayref passed to "use Moose -traits" (doy)
115 - Add functions meta_class_alias and meta_attribute_alias for creating
116 aliases for class and attribute metaclasses and metatraits. (doy)
118 * Moose::Meta::Attribute
119 * Moose::Meta::Method::Accessor
120 - A trigger now receives the old value as a second argument, if the
121 attribute had one. (Dave Rolsky)
123 * Moose::Meta::Method::Constructor
124 - Fix a bug with $obj->new when $obj has stringify overloading.
125 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
126 - However, we will probably deprecate $obj->new, so please don't start
127 using it for new code!
129 * Moose::Meta::Role::Application
130 * Moose::Meta::Role::Application::RoleSummation
131 - Rename alias and excludes to -alias and -excludes (but keep the old
132 names for now, for backcompat) (doy)
134 0.88 Fri Jul 24, 2009
135 * Moose::Manual::Contributing
136 - Re-write the Moose::Manual::Contributing document to reflect
137 the new layout and methods of work for the Git repository. All
138 work now should be done in topic branches and reviewed by a
139 core committer before being applied to master. All releases
140 are done by a cabal member and merged from master to
141 stable. This plan was devised by Yuval, blame him. (perigrin)
144 - Create metaclass attributes for the different role application
147 * Moose::Util::MetaRole
148 - Allow applying roles to a meta role's role application
151 * Moose::Meta::Attribute
152 - Add weak_ref to allowed options for "has '+foo'" (mst)
154 * Moose::Meta::Method::Accessor
155 - No longer uses inline_slot_access in accessors, to support
156 non-lvalue-based meta instances. (sorear)
159 * Moose::Meta::Method::Delegation
160 - Once again allow class names as well as objects for
161 delegation. This was changed in 0.86.
164 * Moose::Meta::Class::Immutable::Trait
165 - Fixes to work with the latest Class::MOP.
167 * Moose::Meta::Method::Delegation
168 - Delegation now dies with a more useful error message if the
169 attribute's accessor returns something defined but
172 0.85 Fri, Jun 26, 2009
173 * Moose::Meta::Attribute
174 - The warning for 'no associated methods' is now split out into
175 the _check_associated_methods method, so that extensions can
176 safely call 'after install_accessors => ...'. This fixes a
177 warning from MooseX::AttributeHelpers. (hdp)
179 0.84 Fri, Jun 26, 2009
181 - has now sets definition_context for attributes defined in
184 * Moose::Meta::Attribute
185 - When adding an attribute to a metaclass, if the attribute has
186 no associated methods, it will give a deprecation
188 - Methods generated by delegation were not being added to
189 associated_methods. (hdp)
190 - Attribute accessors (reader, writer, accessor, predicate,
191 clearer) now warn if they overwrite an existing method. (doy)
192 - Attribute constructors now warn very noisily about unknown (or
193 misspelled) arguments
195 * Moose::Util::TypeConstraints
196 - Deprecated the totally useless Role type name, which just
197 checked if $object->can('does'). Note that this is _not_ the
198 same as a type created by calling role_type('RoleName').
200 * Moose::Util::TypeConstraints
201 * Moose::Meta::TypeConstraint::DuckType
202 - Reify duck type from a regular subtype into an actual class
204 - Document this because Sartak did all my work for me
207 * Moose::Meta::Attribute
208 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
209 it is just a list of methods (Sartak)
212 - The get_*_method_modifiers methods would die if the role had
213 no modifiers of the given type (Robert Buels).
215 0.83 Tue, Jun 23, 2009
217 - Fix _construct_instance not setting the special __MOP__ object
218 key in instances of anon classes. (doy)
220 0.82 Sun, Jun 21, 2009
221 * Moose::Manual::Types
222 - Mention MooseX::Types early to avoid users falling down the
223 string parsing rathole (mst)
225 * Moose::Manual::MooseX
226 - Add warnings about class-level extensions and mention considering
227 using plain objects instead
229 0.81 Sun, Jun 7, 2009
230 * Bumped our Class::MOP prereq to the latest version (0.85), since
233 0.80 Sat, Jun 6, 2009
235 - Add FAQ about the coercion change from 0.76 because it came up
236 three times today (perigrin)
237 - Win doy $10 dollars because Sartak didn't think anybody
238 would document this fast enough (perigrin)
240 * Moose::Meta::Method::Destructor
241 - Inline a DESTROY method even if there are no DEMOLISH methods
242 to prevent unnecessary introspection in
243 Moose::Object::DEMOLISHALL
246 - A role's required methods are now represented by
247 Moose::Meta::Role::Method::Required objects. Conflicts are now
248 represented by Moose::Meta::Role::Method::Conflicting
249 objects. The benefit for end-users in that unresolved
250 conflicts generate different, more instructive, errors,
251 resolving Ovid's #44895. (Sartak)
254 - Improve the error message of "extends" as suggested by Adam
255 Kennedy and confound (Sartak)
256 - Link to Moose::Manual::Roles from Moose::Role as we now have
257 excellent documentation (Adam Kennedy)
260 - Update test suite for subname change in Class::MOP
262 - Add TODO test for infinite recursion in Moose::Meta::Class
265 0.79 Wed, May 13, 2009
267 - More fixes for Win32 problems. Reported by Robert Krimen.
270 - The DEMOLISHALL method could still blow up in some cases
271 during global destruction. This method has been made more
272 resilient in the face of global destruction's random garbage
276 - If you "also" a module that isn't loaded, the error message
277 now acknowledges that (Sartak)
280 - When your ->meta method does not return a Moose::Meta::Class,
281 the error message gave the wrong output (Sartak)
283 0.78 Tue, May 12, 2009
284 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
285 - Merged these documents into what is now Moose::Manual::FAQ
288 - Moved to Moose::Manual::Unsweetened
290 * Moose::Cookbook::Basics::Recipes 9-12
291 - Renamed to be 8-11, since recipe 8 did not exist
294 - Make Moose::Exporter import strict and warnings into packages
298 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
299 methods during global destruction (doy)
302 * Moose::Meta::Role::Application::ToClass
303 - Track the Role::Application objects created during class-role
307 - Fix metaclass incompatibility errors when extending a vanilla perl
308 class which isa Moose class with a metaclass role applied (t0m)
311 - Add a role-combination hook, _role_for_combination, for the
312 benefit of MooseX::Role::Parameterized (Sartak)
315 - Some tests were failing on Win32 because they explicit checked
316 warning output for newlines. Reported by Nickolay Platonov.
318 0.77 Sat, May 2, 2009
320 - Add explicit use of Devel::GlobalDestruction and Sub::Name
324 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
325 or not we are currently in global destruction (doy)
326 - Add explicit use of Devel::GlobalDestruction and Sub::Name
329 * Moose::Cookbook::FAQ
330 - Reworked much of the existing content to be more useful to
331 modern Moose hackers (Sartak)
334 - Depend on Class::MOP 0.83 instead of 0.82_01.
336 0.76 Mon, April 27, 2009
337 * Moose::Meta::TypeConstraint
338 - Do not run coercions in coerce() if the value already passes the type
341 * Moose::Meta::TypeConstraint::Class
342 - In validation error messages, specifically say that the value is not
343 an instance of the class. This should alleviate some frustrating
344 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
346 * Moose::Meta::Role::Application::ToClass
347 - Revert the class-overrides-role warning in favor of a solution outside
348 of the Moose core (Sartak)
351 - Make Test::Output optional again, since it's only used in a few files
354 0.75_01 Thu, April 23, 2009
355 * Moose::Meta::Role::Application::ToClass
356 - Moose now warns about each class overriding methods from roles it
360 - Warnings tests have standardized on Test::Output which is now an
361 unconditionally dependency (Sartak)
364 - Changes to immutabilization to work with Class::MOP 0.82_01+.
366 0.75 Mon, April 20, 2009
369 - Move validation of not inheriting from roles from Moose::extends to
370 Moose::Meta::Class::superclasses (doy)
373 - add ensure_all_roles() function to encapsulate the common "apply this
374 role unless the object already does it" pattern (hdp)
377 - Users can now select a different metaclass with the "-metaclass"
378 option to import, for classes and roles (Sartak)
381 - Make method_metaclass an attr so that it can accept a metarole
384 0.74 Tue, April 7, 2009
386 * Moose::Meta::Method::Destructor
387 - Include stack traces in the deprecation warnings.
391 - Removed the long-deprecated _apply_all_roles method.
393 * Moose::Meta::TypeConstraint
394 - Removed the long-deprecated union method.
397 0.73_02 Mon, April 6, 2009
398 * More deprecations and renamings
399 - Moose::Meta::Method::Constructor
400 - initialize_body => _initialize_body (this is always called
401 when an object is constructed)
404 - The DEMOLISHALL method could throw an exception during global
405 destruction, meaning that your class's DEMOLISH methods would
406 not be properly called. Reported by t0m.
408 * Moose::Meta::Method::Destructor
409 - Destructor inlining was totally broken by the change to the
410 is_needed method in 0.72_01. Now there is a test for this
411 feature, and it works again.
414 - Bold the word 'not' in the POD for find_meta (t0m)
416 0.73_01 Sun, April 5, 2009
418 - Call user_class->meta in fewer places, with the eventual goal
419 of allowing the user to rename or exclude ->meta
420 altogether. Instead uses Class::MOP::class_of. (Sartak)
422 * Moose::Meta::Method::Accessor
423 - If an attribute had a lazy default, and that value did not
424 pass the attribute's type constraint, it did not get the
425 message from the type constraint, instead using a generic
426 message. Test provided by perigrin.
428 * Moose::Util::TypeConstraints
429 - Add duck_type keyword. It's sugar over making sure an object
430 can() a list of methods. This is easier than jrockway's
431 suggestion to fork all of CPAN. (perigrin)
432 - add tests and documentation (perigrin)
435 - Document the fact that init_meta() returns the target class's
436 metaclass object. (hdp)
438 * Moose::Cookbook::Extending::Recipe1
439 * Moose::Cookbook::Extending::Recipe2
440 * Moose::Cookbook::Extending::Recipe3
441 * Moose::Cookbook::Extending::Recipe4
442 - Make init_meta() examples explicitly return the metaclass and
443 point out this fact. (hdp)
445 * Moose::Cookbook::Basics::Recipe12
446 - A new recipe, creating a custom meta-method class.
448 * Moose::Cookbook::Meta::Recipe6
449 - A new recipe, creating a custom meta-method class.
452 * Moose::Meta::Method::Constructor
453 - Attribute triggers no longer receive the meta-attribute object
454 as an argument in any circumstance. Previously, triggers
455 called during instance construction were passed the
456 meta-attribute, but triggers called by normal accessors were
457 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
459 * Moose::Manual::Attributes
460 - Remove references to triggers receving the meta-attribute object as an
463 * Moose::Cookbook::FAQ
464 - Remove recommendation for deprecated Moose::Policy and
465 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
468 * Many methods have been renamed with a leading underscore, and a
469 few have been deprecated entirely. The methods with a leading
470 underscore are consider "internals only". People writing
471 subclasses or extensions to Moose should feel free to override
472 them, but they are not for "public" use.
475 - check_metaclass_compatibility => _check_metaclass_compatibility
477 - Moose::Meta::Method::Accessor
478 - initialize_body => _initialize_body (this is always called
479 when an object is constructed)
480 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
482 - Moose::Meta::Method::Constructor
483 - initialize_body => _initialize_body (this is always called
484 when an object is constructed)
485 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
486 - attributes => _attributes (now inherited from parent)
487 - meta_instance => _meta_instance (now inherited from parent)
490 - alias_method is deprecated. Use add_method
492 0.73 Fri, March 29, 2009
493 * No changes from 0.72_01.
495 0.72_01 Thu, March 26, 2009
497 - Almost every module has complete API documentation. A few
498 methods (and even whole classes) have been intentionally
499 excluded pending some rethinking of their APIs.
501 * Moose::Util::TypeConstraints
502 - Calling subtype with a name as the only argument is now an
503 exception. If you want an anonymous subtype do:
505 my $subtype = subtype as 'Foo';
507 * Moose::Cookbook::Meta::Recipe7
508 - A new recipe, creating a custom meta-instance class.
510 * Moose::Cookbook::Basics::Recipe5
511 - Fix various typos and mistakes. Includes a patch from Radu
514 * Moose::Cookbook::Basics::Recipe9
515 - Link to this recipe from Moose.pm's builder blurb
518 - When wrapping a function with a prototype, Moose::Exporter now
519 makes sure the wrapped function still has the same
520 prototype. (Daisuke Maki)
522 * Moose::Meta::Attribute
523 - Allow a subclass to set lazy_build for an inherited
527 - Explicitly depend on Data::OptList. We already had this dependency
528 via Sub::Exporter, but since we're using it directly we're
529 better off with it listed. (Sartak)
531 * Moose::Meta::Method::Constructor
532 - Make it easier to subclass the inlining behaviour. (Ash
535 * Moose::Manual::Delta
536 - Details significant changes in the history of Moose, along
537 with recommended workarounds.
539 * Moose::Manual::Contributing
540 - Contributor's guide to Moose.
542 * Moose::Meta::Method::Constructor
543 - The long-deprecated intialize_body method has been removed
544 (yes, spelled like that).
546 * Moose::Meta::Method::Destructor
547 - This is_needed method is now always a class method.
550 - Changes to the internals of how make_immutable works to match
551 changes in latest Class::MOP.
553 0.72 Mon, February 23, 2009
555 * Moose::Meta::Method::Constructor
556 - A mutable class accepted Foo->new(undef) without complaint,
557 while an immutable class would blow up with an unhelpful
558 error. Now, in both cases we throw a helpful error
559 instead. Reported by doy.
561 0.71_01 Sun, February 22, 2009
563 - Hopefully fixed some POD errors in a few recipes that caused
564 them to display weird on search.cpan.org.
566 * Moose::Util::TypeConstraints
567 - Calling type or subtype without the sugar helpers (as, where,
568 message) is now deprecated.
569 - The subtype function tried hard to guess what you meant, but
570 often got it wrong. For example:
572 my $subtype = subtype as 'ArrayRef[Object]';
574 This caused an error in the past, but now works as you'd
578 - Make sure Moose.pm is loaded before calling
579 Moose->throw_error. This wasn't normally an issue, but could
580 bite you in weird cases.
582 0.71 Thu, February 19, 2009
583 * Moose::Cookbook::Basics::Recipe11
584 - A new recipe which demonstrates the use of BUILDARGS and
587 * Moose::Cookbook::Roles::Recipe3
588 - A new recipe, applying a role to an object instance. (Dave
592 - Allow overriding specific keywords from "also" packages. (doy)
595 - Replace hardcoded cookbook tests with Test::Inline to ensure
596 the tests match the actual code in the recipes. (Dave Rolsky)
599 - Working on the above turned up a number of little bugs in the
600 recipe code. (Dave Rolsky)
602 * Moose::Util::TypeConstraints::Optimized
603 - Just use Class::MOP for the optimized ClassName check. (Dave
606 0.70 Sat, February 14, 2009
607 * Moose::Util::TypeConstraints
608 - Added the RoleName type (stevan)
609 - added tests for this (stevan)
611 * Moose::Cookbook::Basics::Recipe3
612 - Updated the before qw[left right] sub to be a little more
613 defensive about what it accepts (stevan)
614 - added more tests to t/000_recipies/basics/003_binary_tree.t
618 - We now always call DEMOLISHALL, even if a class does not
619 define DEMOLISH. This makes sure that method modifiers on
620 DEMOLISHALL work as expected. (doy)
621 - added tests for this (EvanCarroll)
623 * Moose::Util::MetaRole
624 - Accept roles for the wrapped_method_metaclass (rafl)
625 - added tests for this (rafl)
627 * Moose::Meta::Attribute
628 - We no longer pass the meta-attribute object as a final
629 argument to triggers. This actually changed for inlined code a
630 while back, but the non-inlined version and the docs were
634 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
635 they require 0.11. (Dave Rolsky)
638 - Lots of small changes to the manual, cookbook, and
639 elsewhere. These were based on feedback from various
640 users, too many to list here. (Dave Rolsky)
642 0.69 Thu, February 12, 2009
644 - Make some keyword errors use throw_error instead of croak
645 since Moose::Exporter wraps keywords now (Sartak)
648 - Revised every recipe for style and clarity. Also moved some
649 documentation out of cookbook recipes and into Moose::Manual
650 pages. This work was funded as part of the Moose docs grant
651 from TPF. (Dave Rolsky)
653 * Moose::Meta::Method::Delegation
654 - If the attribute doing the delegation was not populated, the
655 error message did not specify the attribute name
658 0.68 Wed, February 4, 2009
660 - Many spelling, typo, and formatting fixes by daxim.
662 * Moose::Manual::Attributes
663 - The NAME section in the POD used "Attribute" so search.cpan
664 didn't resolve links from other documents properly.
666 * Moose::Meta::Method::Overriden
667 - Now properly spelled as Overridden. Thanks to daxim for
670 0.67 Tue, February 3, 2009
672 - Lots of little typo fixes and a few clarifications. Several
673 pages didn't have proper titles, and so weren't actually
674 visible on search.cpan.org. Thanks to hanekomu for a variety
675 of fixes and formatting improvements.
677 0.66 Tue, February 3, 2009
679 - This is a brand new, extensive manual for Moose. This aims to
680 provide a complete introduction to all of Moose's
681 features. This work was funded as part of the Moose docs grant
682 from TPF. (Dave Rolsky)
684 * Moose::Meta::Attribute
685 - Added a delegation_metaclass method to replace a hard-coded
686 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
688 * Moose::Util::TypeConstraints
689 - If you created a subtype and passed a parent that Moose didn't
690 know about, it simply ignored the parent. Now it automatically
691 creates the parent as a class type. This may not be what you
692 want, but is less broken than before. (Dave Rolsky)
694 * Moose::Util::TypeConstraints
695 - This module tried throw errors by calling Moose->throw_error,
696 but it did not ensure that Moose was loaded first. This could
697 cause very unhelpful errors when it tried to throw an error
698 before Moose was loaded. (Dave Rolsky)
700 * Moose::Util::TypeConstraints
701 - You could declare a name with subtype such as "Foo!Bar" that
702 would be allowed, but if you used it in a parameterized type
703 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
704 vetting on names created via the sugar functions, so that they
705 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
707 0.65 Thu, January 22, 2008
708 * Moose and Moose::Meta::Method::Overridden
709 - If an overridden method called super(), and then the
710 superclass's method (not overridden) _also_ called super(),
711 Moose went into an endless recursion loop. Test provided by
712 Chris Prather. (Dave Rolsky)
714 * Moose::Meta::TypeConstraint
715 - All methods are now documented. (gphat)
717 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
718 - Fixed some bogus failures that occurred because we tried to
719 validate filesystem paths in a very ad-hoc and
720 not-quite-correct way. (Dave Rolsky)
722 * Moose::Util::TypeConstraints
723 - Added maybe_type to exports. See docs for details. (rjbs)
726 - Added Moose::Util::TypeConstraints to the SEE ALSO
730 - Methods created via an attribute can now fulfill a "requires"
731 declaration for a role. (nothingmuch)
733 * Moose::Meta::Method::*
734 - Stack traces from inlined code will now report its line and
735 file as being in your class, as opposed to in Moose
738 0.64 Wed, December 31, 2008
739 * Moose::Meta::Method::Accessor
740 - Always inline predicate and clearer methods (Sartak)
742 * Moose::Meta::Attribute
743 - Support for parameterized traits (Sartak)
744 - verify_against_type_constraint method to avoid duplication
745 and enhance extensibility (Sartak)
748 - Tests (but no support yet) for parameterized traits (Sartak)
751 - Require Class::MOP 0.75+, which has the side effect of making
752 sure we work on Win32. (Dave Rolsky)
754 0.63 Mon, December 8, 2008
756 - Some small grammar tweaks and bug fixes in non-Moose example
759 0.62_02 Fri, December 5, 2008
760 * Moose::Meta::Role::Application::ToClass
761 - When a class does not provide all of a role's required
762 methods, the error thrown now mentions all of the missing
763 methods, as opposed to just the first one found. Requested by
764 Curtis Poe (RT #41119). (Dave Rolsky)
766 * Moose::Meta::Method::Constructor
767 - Moose will no longer inline a constructor for your class
768 unless it inherits its constructor from Moose::Object, and
769 will warn when it doesn't inline. If you want to force
770 inlining anyway, pass "replace_constructor => 1" to
771 make_immutable. Addresses RT #40968, reported by Jon
772 Swartz. (Dave Rolsky)
773 - The quoting of default values could be broken if the default
774 contained a single quote ('). Now we use quotemeta to escape
775 anything potentially dangerous in the defaults. (Dave Rolsky)
777 0.62_01 Wed, December 3, 2008
779 - use the method->execute API for BUILDALL
780 and DEMOLISHALL (Sartak)
782 * Moose::Util::TypeConstraints
783 - We now make all the type constraint meta classes immutable
784 before creating the default types provided by Moose. This
785 should make loading Moose a little faster. (Dave Rolsky)
787 0.62 Wed November 26, 2008
788 * Moose::Meta::Role::Application::ToClass
789 Moose::Meta::Role::Application::ToRole
790 - fixed issues where excluding and aliasing the
791 same methods for a single role did not work
792 right (worked just fine with multiple
794 - added test for this (stevan)
796 * Moose::Meta::Role::Application::RoleSummation
797 - fixed the error message when trying to compose
798 a role with a role it excludes (Sartak)
801 - Catch another case where recursion caused the value
802 of $CALLER to be stamped on (t0m)
803 - added test for this (t0m)
806 - Remove the make_immutable keyword, which has been
807 deprecated since April. It breaks metaclasses that
808 use Moose without no Moose (Sartak)
810 * Moose::Meta::Attribute
811 - Removing an attribute from a class now also removes delegation
812 (handles) methods installed for that attribute (t0m)
813 - added test for this (t0m)
815 * Moose::Meta::Method::Constructor
816 - An attribute with a default that looked like a number (but was
817 really a string) would accidentally be treated as a number
818 when the constructor was made immutable (perigrin)
819 - added test for this (perigrin)
822 - create method for constructing a role
824 - added test for this (Sartak)
825 - anonymous roles! (Sartak)
826 - added test for this (Sartak)
829 - more consistent error messages (Sartak)
831 * Moose::Cookbook::Roles::Recipe1
832 - attempt to explain why a role that just requires
833 methods is useful (Sartak)
835 0.61 Fri November 7, 2008
836 * Moose::Meta::Attribute
837 - When passing a role to handles, it will be loaded if necessary
841 - Method objects returned by get_method (and other methods)
842 Could end up being returned without an associated_metaclass
843 attribute. Removing get_method_map, which is provided by
844 Class::MOP::Class, fixed this. The Moose version did nothing
845 different from its parent except introduce a bug. (Dave Rolsky)
846 - added tests for this (jdv79)
849 - Added a $VERSION to all .pm files which didn't have one. Fixes
850 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
852 * Moose::Cookbook::Basics::Recipe4
853 * Moose::Cookbook::Basics::Recipe6
854 - These files had spaces on the first line of the SYNOPSIS, as
855 opposed to a totally empty line. According to RT #40432, this
856 confuses POD parsers. (Dave Rolsky)
858 0.60 Fri October 24, 2008
860 - Passing "-traits" when loading Moose caused the Moose.pm
861 exports to be broken. Reported by t0m. (Dave Rolsky)
862 - Tests for this bug. (t0m)
865 - Change resolve_metaclass alias to use the new
866 load_first_existing_class function. This makes it a lot
867 simpler, and also around 5 times faster. (t0m)
868 - Add caching to resolve_metaclass_alias, which gives an order
869 of magnitude speedup to things which repeatedly call the
870 Moose::Meta::Attribute->does method, notably MooseX::Storage
873 * Moose::Util::TypeConstraint
874 - Put back the changes for parameterized constraints that
875 shouldn't have been removed in 0.59. We still cannot parse
876 them, but MooseX modules can create them in some other
877 way. See the 0.58 changes for more details. (jnapiorkowski)
878 - Changed the way subtypes are created so that the job is
879 delegated to a type constraint parent. This clears up some
880 hardcoded checking and should allow correct subtypes of
881 Moose::Meta::Type::Constraint. Don't rely on this new API too
882 much (create_child_type) because it may go away in the
883 future. (jnapiorkowski)
885 * Moose::Meta::TypeConstraint::Union
886 - Type constraint names are sorted as strings, not numbers.
889 * Moose::Meta::TypeConstraint::Parameterizable
890 - New parameterize method. This can be used as a factory method
891 to make a new type constraint with a given parameterized
892 type. (jnapiorkowski)
893 - added tests (jnapiorkowski)
895 0.59 Tue October 14, 2008
897 - Add abridged documentation for builder/default/initializer/
898 predicate, and link to more details sections in
899 Class::MOP::Attribute. (t0m)
901 * Moose::Util::TypeConstraints
902 - removed prototypes from all but the &-based stuff (mst)
904 * Moose::Util::TypeConstraints
905 - Creating a anonymous subtype with both a constraint and a
906 message failed with a very unhelpful error, but should just
907 work. Reported by t0m. (Dave Rolsky)
910 - Some tests that used Test::Warn if it was available failed
911 with older versions of Test::Warn. Reported by Fayland. (Dave
913 - Test firing behavior of triggers in relation to builder/default/
915 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
916 kinds of supported type. (t0m)
919 - In create(), do not pass "roles" option to the superclass
920 - added related test that creates an anon metaclass with
923 * Moose::Meta::TypeConstraint::Class
924 * Moose::Meta::TypeConstraint::Role
925 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
926 other types (as per change in 0.55_02). (t0m)
928 * Moose::Meta::TypeConstraint::Registry
929 - Fix warning when dealing with unknown type names (t0m)
931 * Moose::Util::TypeConstraints
932 - Reverted changes from 0.58 related to handle parameterized
933 types. This caused random failures on BSD and Win32 systems,
934 apparently related to the regex engine. This means that Moose
935 can no longer parse structured type constraints like
936 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
937 supported in a slightly different way via MooseX::Types some
938 time in the future. (Dave Rolsky)
940 0.58 Sat September 20, 2008
941 !! This release has an incompatible change regarding !!
942 !! how roles add methods to a class !!
944 * Roles and role application
945 ! Roles now add methods by calling add_method, not
946 alias_method. They make sure to always provide a method
947 object, which will be cloned internally. This means that it is
948 now possible to track the source of a method provided by a
949 role, and even follow its history through intermediate roles.
951 This means that methods added by a role now show up when
952 looking at a class's method list/map. (Dave Rolsky)
955 - From this release on, we'll try to maintain a list of
956 conflicting modules, and warn you if you have one
957 installed. For example, this release conflicts with ...
958 - MooseX::Singleton <= 0.11
959 - MooseX::Params::Validate <= 0.05
962 In general, we try to not break backwards compatibility for
963 most Moose users, but MooseX modules and other code which
964 extends Moose's metaclasses is often affected by very small
965 changes in the Moose internals.
967 * Moose::Meta::Method::Delegation
968 * Moose::Meta::Attribute
969 - Delegation methods now have their own method class. (Dave
972 * Moose::Meta::TypeConstraint::Parameterizable
973 - Added a new method 'parameterize' which is basically a factory
974 for the containing constraint. This makes it easier to create
975 new types of parameterized constraints. (jnapiorkowski)
977 * Moose::Meta::TypeConstraint::Union
978 - Changed the way Union types canonicalize their names to follow
979 the normalized TC naming rules, which means we strip all
980 whitespace. (jnapiorkowski)
982 * Moose::Util::TypeConstraints
983 - Parameter and Union args are now sorted, this makes Int|Str
984 the same constraint as Str|Int. (jnapiorkowski)
985 - Changes to the way Union types are parsed to more correctly
986 stringify their names. (jnapiorkowski)
987 - When creating a parameterized type, we now use the new
988 parameterize method. (jnapiorkowski)
989 - Incoming type constraint strings are now normalized to remove
990 all whitespace differences. (jnapiorkowski)
991 - Changed the way we parse type constraint strings so that we now
992 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
993 constraints. This lays the foundation for more flexible type
994 constraint implementations.
996 * Tests and docs for all the above. (jnapiorkowski)
1000 - Moose::Exporter will no longer remove a subroutine that the
1001 exporting package re-exports. Moose re-exports the
1002 Carp::confess function, among others. The reasoning is that we
1003 cannot know whether you have also explicitly imported those
1004 functions for your own use, so we err on the safe side and
1005 always keep them. (Dave Rolsky)
1006 - added tests for this (rafl)
1008 * Moose::Meta::Class
1009 - Changes to how we fix metaclass compatibility that are much
1010 too complicated to go into. The summary is that Moose is much
1011 less likely to complain about metaclass incompatibility
1012 now. In particular, if two metaclasses differ because
1013 Moose::Util::MetaRole was used on the two corresponding
1014 classes, then the difference in roles is reconciled for the
1015 subclass's metaclass. (Dave Rolsky)
1016 - Squashed an warning in _process_attribute (thepler)
1019 - throw exceptions (sooner) for invalid attribute names (thepler)
1020 - added tests for this (thepler)
1022 * Moose::Util::MetaRole
1023 - If you explicitly set a constructor or destructor class for a
1024 metaclass object, and then applied roles to the metaclass,
1025 that explicitly set class would be lost and replaced with the
1028 * Moose::Meta::Class
1029 * Moose::Meta::Attribute
1030 * Moose::Meta::Method
1033 * Moose::Error::Default
1034 * Moose::Error::Croak
1035 * Moose::Error::Confess
1036 - All instances of confess() changed to use overridable
1037 C<throw_error> method. This method ultimately calls a class
1038 constructor, and you can change the class being called. In
1039 addition, errors now pass more information than just a string.
1040 The default C<error_class> behaves like C<Carp::confess>, so
1041 the behavior is not visibly different for end users.
1043 0.57 Wed September 3, 2008
1045 - A new bit of doc intended to introduce folks familiar with
1046 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1048 * Moose::Unsweetened
1049 - Shows examples of two classes, each done first with and then
1050 without Moose. This makes a nice parallel to
1051 Moose::Intro. (Dave Rolsky)
1053 * Moose::Util::TypeConstraints
1054 - Fixed a bug in find_or_parse_type_constraint so that it
1055 accepts a Moose::Meta::TypeConstraint object as the parent
1056 type, not just a name (jnapiorkowski)
1057 - added tests (jnapiorkowski)
1060 - If Sub::Name was not present, unimporting failed to actually
1061 remove some sugar subs, causing test failures (Dave Rolsky)
1063 0.56 Mon September 1, 2008
1064 For those not following the series of dev releases, there are
1065 several major changes in this release of Moose.
1066 ! Moose::init_meta should now be called as a method. See the
1069 - Major performance improvements by nothingmuch.
1071 - New modules for extension writers, Moose::Exporter and
1072 Moose::Util::MetaRole by Dave Rolsky.
1074 - Lots of doc improvements and additions, especially in the
1077 - Various bug fixes.
1079 * Removed all references to the experimental-but-no-longer-needed
1080 Moose::Meta::Role::Application::ToMetaclassInstance.
1082 * Require Class::MOP 0.65.
1084 0.55_04 Sat August 30, 2008
1085 * Moose::Util::MetaRole
1086 * Moose::Cookbook::Extending::Recipe2
1087 - This simplifies the application of roles to any meta class, as
1088 well as the base object class. Reimplemented metaclass traits
1089 using this module. (Dave Rolsky)
1091 * Moose::Cookbook::Extending::Recipe1
1092 - This a new recipe, an overview of various ways to write Moose
1093 extensions (Dave Rolsky)
1095 * Moose::Cookbook::Extending::Recipe3
1096 * Moose::Cookbook::Extending::Recipe4
1097 - These used to be Extending::Recipe1 and Extending::Recipe2,
1100 0.55_03 Fri August 29, 2008
1101 * No changes from 0.55_02 except increasing the Class::MOP
1102 dependency to 0.64_07.
1104 0.55_02 Fri August 29, 2008
1105 * Makefile.PL and Moose.pm
1106 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1108 * Moose::Util::TypeConstraints
1109 - Fix warnings from find_type_constraint if the type is not
1112 * Moose::Meta::TypeConstraint
1113 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1114 return false if the type you specify cannot be found in the
1115 type registry, rather than throwing an unhelpful and
1116 coincidental exception. (t0m).
1117 - added docs & test for this (t0m)
1119 * Moose::Meta::TypeConstraint::Registry
1120 - add_type_constraint now throws an exception if a parameter is
1122 - added docs & test for this (t0m)
1124 * Moose::Cookbook::FAQ
1125 - Added a faq entry on the difference between "role" and "trait"
1129 - Fixed a bug that caused role composition to not see a required
1130 method when that method was provided by another role being
1131 composed at the same time. (Dave Rolsky)
1132 - test and bug finding (tokuhirom)
1134 0.55_01 Wed August 20, 2008
1136 !! Calling Moose::init_meta as a function is now !!
1137 !! deprecated. Please see the Moose.pm docs for details. !!
1139 * Moose::Meta::Method::Constructor
1140 - Fix inlined constructor so that values produced by default
1141 or builder methods are coerced as required. (t0m)
1142 - added test for this (t0m)
1144 * Moose::Meta::Attribute
1145 - A lazy attribute with a default or builder did not attempt to
1146 coerce the default value. The immutable code _did_
1148 - added test for this (t0m)
1151 - This is a new helper module for writing "Moose-alike"
1152 modules. This should make the lives of MooseX module authors
1153 much easier. (Dave Rolsky)
1156 * Moose::Cookbook::Meta::Recipe5
1157 - Implemented metaclass traits (and wrote a recipe for it):
1159 use Moose -traits => 'Foo'
1161 This should make writing small Moose extensions a little
1162 easier (Dave Rolsky)
1164 * Moose::Cookbook::Basics::Recipe1
1165 - Removed any examples of direct hashref access, and applied an
1166 editorial axe to reduce verbosity. (Dave Rolsky)
1168 * Moose::Cookbook::Basics::Recipe1
1169 - Also applied an editorial axe here. (Dave Rolsky)
1172 * Moose::Cookbook::Extending::Recipe1
1173 * Moose::Cookbook::Extending::Recipe2
1174 - Rewrote extending and embedding moose documentation and
1175 recipes to use Moose::Exporter (Dave Rolsky)
1179 - These two modules now warn when you load them from the main
1180 package "main" package, because we will not export sugar to
1181 main. Previously it just did nothing. (Dave Rolsky)
1184 - Now provide an init_meta method just like Moose.pm, and you
1185 can call this to provide an alternate role metaclass. (Dave
1186 Rolsky and nothingmuch)
1187 - get_method_map now respects the package cache flag (nothingmuch)
1190 - Two new methods - add_method and wrap_method_body
1194 - Optimizations including allowing constructors to accept hash
1195 refs, making many more classes immutable, and making
1196 constructors immutable. (nothingmuch)
1198 0.55 Sun August 3, 2008
1199 * Moose::Meta::Attribute
1200 - breaking down the way 'handles' methods are
1201 created so that the process can be more easily
1202 overridden by subclasses (stevan)
1204 * Moose::Meta::TypeConstraint
1205 - fixing what is passed into a ->message with
1206 the type constraints (RT #37569)
1207 - added tests for this (Charles Alderman)
1209 * Moose::Util::TypeConstraints
1210 - fix coerce to accept anon types like subtype can (mst)
1213 - reorganized the recipes into sections - Basics, Roles, Meta,
1214 Extending - and wrote abstracts for each section (Dave Rolsky)
1216 * Moose::Cookbook::Basics::Recipe10
1217 - A new recipe that demonstrates operator overloading
1218 in combination with Moose. (bluefeet)
1220 * Moose::Cookbook::Meta::Recipe1
1221 - an introduction to what meta is and why you'd want to make
1222 your own metaclass extensions (Dave Rolsky)
1224 * Moose::Cookbook::Meta::Recipe4
1225 - a very simple metaclass example (Dave Rolsky)
1227 * Moose::Cookbook::Extending::Recipe1
1228 - how to write a Moose-alike module to use your own object base
1231 * Moose::Cookbook::Extending::Recipe2
1232 - how to write modules with an API just like C<Moose.pm> (Dave
1236 - Tons of fixes, both syntactical and grammatical (Dave
1237 Rolsky, Paul Fenwick)
1239 0.54 Thurs. July 3, 2008
1240 ... this is not my day today ...
1242 * Moose::Meta::Attribute
1243 - fixed legal_options_for_inheritance such that
1244 clone_and_inherit options still works for
1245 Class::MOP::Attribute objects and therefore
1246 does not break MooseX::AttributeHelpers
1249 0.53 Thurs. July 3, 2008
1250 * Whoops, I guess I should run 'make manifest' before
1251 actually releasing the module. No actual changes
1252 in this release, except the fact that it includes
1253 the changes that I didn't include in the last
1256 0.52 Thurs. July 3, 2008
1258 - added "FEATURE REQUESTS" section to the Moose docs
1259 to properly direct people (stevan) (RT #34333)
1260 - making 'extends' croak if it is passed a Role since
1261 this is not ever something you want to do
1262 (fixed by stevan, found by obra)
1263 - added tests for this (stevan)
1266 - adding support for DOES (as in UNIVERSAL::DOES)
1268 - added test for this
1270 * Moose::Meta::Attribute
1271 - added legal_options_for_inheritance (wreis)
1272 - added tests for this (wreis)
1274 * Moose::Cookbook::Snacks::*
1275 - removed some of the unfinished snacks that should
1276 not have been released yet. Added some more examples
1277 to the 'Keywords' snack. (stevan)
1279 * Moose::Cookbook::Style
1280 - added general Moose "style guide" of sorts to the
1281 cookbook (nothingmuch) (RT #34335)
1284 - added more BUILDARGS tests (stevan)
1286 0.51 Thurs. Jun 26, 2008
1288 - add unimport so "no Moose::Role" actually does
1291 * Moose::Meta::Role::Application::ToRole
1292 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1293 order to provide its own implementation, that method still got
1294 added to the list of required methods for consumers of
1295 RoleB. Now an aliased method is only added to the list of
1296 required methods if the role doing the aliasing does not
1297 provide its own implementation. See Recipe 11 for an example
1298 of all this. (Dave Rolsky)
1299 - added tests for this
1301 * Moose::Meta::Method::Constructor
1302 - when a single argument that wasn't a hashref was provided to
1303 an immutabilized constructor, the error message was very
1304 unhelpful, as opposed to the non-immutable error. Reported by
1306 - added test for this (Dave Rolsky)
1308 * Moose::Meta::Attribute
1309 - added support for meta_attr->does("ShortAlias") (sartak)
1310 - added tests for this (sartak)
1311 - moved the bulk of the `handles` handling to the new
1312 install_delegation method (Stevan)
1315 - Added BUILDARGS, a new step in new()
1317 * Moose::Meta::Role::Application::RoleSummation
1318 - fix typos no one ever sees (sartak)
1320 * Moose::Util::TypeConstraints
1321 * Moose::Meta::TypeConstraint
1322 * Moose::Meta::TypeCoercion
1323 - Attempt to work around the ??{ } vs. threads issue
1325 - Some null_constraint optimizations
1327 0.50 Thurs. Jun 11, 2008
1328 - Fixed a version number issue by bumping all modules
1331 0.49 Thurs. Jun 11, 2008
1332 !! This version now approx. 20-25% !!
1333 !! faster with new Class::MOP 0.59 !!
1335 * Moose::Meta::Attribute
1336 - fixed how the is => (ro|rw) works with
1337 custom defined reader, writer and accessor
1339 - added docs for this (TODO).
1340 - added tests for this (Thanks to Penfold)
1341 - added the custom attribute alias for regular
1342 Moose attributes which is "Moose"
1343 - fix builder and default both being used
1348 Moose::Meta::Attribute
1350 Moose::Meta::Role::Composite
1351 Moose::Util::TypeConstraints
1352 - switched usage of reftype to ref because
1356 - changing add_package_symbol to use the new
1360 - fixed how DEMOLISHALL is called so that it
1361 can be overrided in subclasses (thanks to Sartak)
1362 - added test for this (thanks to Sartak)
1364 * Moose::Util::TypeConstraints
1365 - move the ClassName type check code to
1366 Class::MOP::is_class_loaded (thanks to Sartak)
1368 * Moose::Cookbook::Recipe11
1369 - add tests for this (thanks to tokuhirom)
1371 0.48 Thurs. May 29, 2008
1372 (early morning release engineering)--
1374 - fixing the version in Moose::Meta::Method::Destructor
1375 which was causing the indexer to choke
1377 0.47 Thurs. May 29, 2008
1378 (late night release engineering)--
1380 - fixing the version is META.yml, no functional
1381 changes in this release
1383 0.46 Wed. May 28, 2008
1384 !! This version now approx. 20-25% !!
1385 !! faster with new Class::MOP 0.57 !!
1387 * Moose::Meta::Class
1388 - some optimizations of the &initialize method
1389 since it is called so often by &meta
1391 * Moose::Meta::Class
1393 - now use the get_all_package_symbols from the
1394 updated Class::MOP, test suite is now 10 seconds
1397 * Moose::Meta::Method::Destructor
1398 - is_needed can now also be called as a class
1399 method for immutablization to check if the
1400 destructor object even needs to be created
1403 * Moose::Meta::Method::Destructor
1404 Moose::Meta::Method::Constructor
1405 - added more descriptive error message to help
1406 keep people from wasting time tracking an error
1407 that is easily fixed by upgrading.
1409 0.45 Saturday, May 24, 2008
1411 - Because of work in Class::MOP 0.57, all
1412 XS based functionality is now optional
1413 and a Pure Perl version is supplied
1414 - the CLASS_MOP_NO_XS environment variable
1415 can now be used to force non-XS versions
1417 - several of the packages have been tweaked
1418 to take care of this, mostly we added
1419 support for the package_name and name
1420 variables in all the Method metaclasses
1421 - before/around/after method modifiers now
1422 support regexp matching of names
1423 (thanks to Takatoshi Kitano)
1424 - tests added for this
1425 - NOTE: this only works for classes, it
1426 is currently not supported in roles,
1427 but, ... patches welcome
1428 - All usage of Carp::confess have been replaced
1429 by Carp::croak in the "keyword" functions since
1430 the stack trace is usually not helpful
1433 - All usage of Carp::confess have been replaced
1434 by Carp::croak in the "keyword" functions since
1435 the stack trace is usually not helpful
1436 - The 'has' keyword for roles now accepts the
1437 same array ref form that Moose.pm does
1438 (has [qw/foo bar/] => (is => 'rw', ...))
1439 - added test for this
1441 * Moose::Meta::Attribute
1442 - trigger on a ro-attribute is no longer an
1443 error, as it's useful to trigger off of the
1446 * Moose::Meta::Class
1447 - added same 'add_package_symbol' fix as in
1451 - does_role now handles non-Moose classes
1453 - added tests for this
1454 - added the 'add_method_modifier' function
1455 (thanks to Takatoshi Kitano)
1457 * Moose::Util::TypeConstraints
1458 - subtypes of parameterizable types now are
1459 themselves parameterizable types
1461 * Moose::Meta::Method::Constructor
1462 - fixed bug where trigger was not being
1463 called by the inlined immutable
1465 - added test for this (thanks to Caelum)
1467 * Moose::Meta::Role::Application::ToInstance
1468 - now uses the metaclass of the instance
1469 (if possible) to create the anon-class
1470 (thanks Jonathan Rockway)
1472 * Moose::Cookbook::Recipe22
1473 - added the meta-attribute trait recipe
1477 - fixed hash-ordering test bug that was
1478 causing occasional cpantester failures
1479 - renamed the t/000_recipe/*.t tests to be
1480 more descriptive (thanks to Sartak)
1482 0.44 Sat. May 10, 2008
1484 - made make_immutable warning cluck to
1485 show where the error is (thanks mst)
1488 - BUILDALL and DEMOLISHALL now call
1489 ->body when looping through the
1490 methods, to avoid the overloaded
1492 - fixed issue where DEMOLISHALL was
1493 eating the $@ values, and so not
1494 working correctly, it still kind of
1495 eats them, but so does vanilla perl
1496 - added tests for this
1498 * Moose::Cookbook::Recipe7
1499 - added new recipe for immutable
1500 functionality (thanks Dave Rolsky)
1502 * Moose::Cookbook::Recipe9
1503 - added new recipe for builder and
1504 lazy_build (thanks Dave Rolsky)
1506 * Moose::Cookbook::Recipe11
1507 - added new recipe for method aliasing
1508 and exclusion with Roles (thanks Dave Rolsky)
1511 - fixed Win32 test failure (thanks spicyjack)
1513 ~ removed Build.PL and Module::Build compat
1514 since Module::Install has done that.
1516 0.43 Wed. April, 30, 2008
1518 drink more coffee before
1519 doing release engineering
1521 - whoops, forgot to do the smolder tests,
1522 and we broke some of the custom meta-attr
1523 modules. This fixes that.
1525 0.42 Mon. April 28, 2008
1526 - some bad tests slipped by, nothing else
1527 changed in this release (cpantesters++)
1529 - upped the Class::MOP dependency to 0.55
1530 since we have tests which need the C3
1533 0.41 Mon. April 28, 2008
1534 ~~ numerous documentation updates ~~
1536 - Changed all usage of die to Carp::croak for better
1537 error reporting (initial patch by Tod Hagan)
1539 ** IMPORTANT NOTE **
1540 - the make_immutable keyword is now deprecated, don't
1541 use it in any new code and please fix your old code
1542 as well. There will be 2 releases, and then it will
1548 - refactored the way inner and super work to avoid
1549 any method/@ISA cache penalty (nothingmuch)
1551 * Moose::Meta::Class
1552 - fixing &new_object to make sure trigger gets the
1553 coerced value (spotted by Charles Alderman on the
1555 - added test for this
1557 * Moose::Meta::Method::Constructor
1558 - immutable classes which had non-lazy attributes were calling
1559 the default generating sub twice in the constructor. (bug
1560 found by Jesse Luehrs, fixed by Dave Rolsky)
1561 - added tests for this (Dave Rolsky)
1562 - fix typo in initialize_body method (nothingmuch)
1564 * Moose::Meta::Method::Destructor
1565 - fix typo in initialize_body method (nothingmuch)
1567 * Moose::Meta::Method::Overriden
1568 Moose::Meta::Method::Augmented
1569 - moved the logic for these into their own
1570 classes (nothingmuch)
1572 * Moose::Meta::Attribute
1573 - inherited attributes may now be extended without
1574 restriction on the type ('isa', 'does') (Sartak)
1575 - added tests for this (Sartak)
1576 - when an attribute property is malformed (such as lazy without
1577 a default), give the name of the attribute in the error
1579 - added the &applied_traits and &has_applied_traits methods
1580 to allow introspection of traits
1581 - added tests for this
1582 - moved 'trait' and 'metaclass' argument handling to here from
1584 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1585 '+foo' syntax) (nothingmuch)
1586 - added tests for this (t0m)
1589 - localize $@ inside DEMOLISHALL to avoid it
1590 eating $@ (found by Ernesto)
1591 - added test for this (thanks to Ernesto)
1593 * Moose::Util::TypeConstraints
1594 - &find_type_constraint now DWIMs when given an
1595 type constraint object or name (nothingmuch)
1596 - &find_or_create_type_constraint superseded with a number of more
1598 - find_or_create_{isa,does}_type_constraint
1599 - find_or_parse_type_constraint
1601 * Moose::Meta::TypeConstraint
1602 Moose::Meta::TypeConstraint::Class
1603 Moose::Meta::TypeConstraint::Role
1604 Moose::Meta::TypeConstraint::Enum
1605 Moose::Meta::TypeConstraint::Union
1606 Moose::Meta::TypeConstraint::Parameterized
1607 - added the &equals method for comparing two type
1608 constraints (nothingmuch)
1609 - added tests for this (nothingmuch)
1611 * Moose::Meta::TypeConstraint
1612 - add the &parents method, which is just an alias to &parent.
1613 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1615 * Moose::Meta::TypeConstraint::Class
1616 - added the class attribute for introspection purposes
1618 - added tests for this
1620 * Moose::Meta::TypeConstraint::Enum
1621 Moose::Meta::TypeConstraint::Role
1622 - broke these out into their own classes (nothingmuch)
1624 * Moose::Cookbook::Recipe*
1625 - fixed references to test file locations in the POD
1626 and updated up some text for new Moose features
1630 - Added &resolve_metaclass_alias, a helper function for finding an actual
1631 class for a short name (e.g. in the traits list)
1633 0.40 Fri. March 14, 2008
1634 - I hate Pod::Coverage
1636 0.39 Fri. March 14, 2008
1638 - documenting the use of '+name' with attributes
1639 that come from recently composed roles. It makes
1640 sense, people are using it, and so why not just
1641 officially support it.
1642 - fixing the 'extends' keyword so that it will not
1643 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1646 - added the perl -Moose=+Class::Name feature to allow
1647 monkeypatching of classes in one liners
1650 - fixing the 'apply_all_roles' keyword so that it will not
1651 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1653 * Moose::Meta::Class
1654 - added ->create method which now supports roles (thanks to jrockway)
1655 - added tests for this
1656 - added ->create_anon_class which now supports roles and caching of
1657 the results (thanks to jrockway)
1658 - added tests for this
1659 - made ->does_role a little more forgiving when it is
1660 checking a Class::MOP era metaclasses.
1662 * Moose::Meta::Role::Application::ToInstance
1663 - it is now possible to pass extra params to be used when
1664 a role is applied to an the instance (rebless_params)
1665 - added tests for this
1667 * Moose::Util::TypeConstraints
1668 - class_type now accepts an optional second argument for a
1669 custom message. POD anotated accordingly (groditi)
1670 - added tests for this
1671 - it is now possible to make anon-enums by passing 'enum' an
1672 ARRAY ref instead of the $name => @values. Everything else
1674 - added tests for this
1677 - making test for using '+name' on attributes consumed
1678 from a role, it works and makes sense too.
1680 * Moose::Meta::Attribute
1681 - fix handles so that it doesn't return nothing
1682 when the method cannot be found, not sure why
1683 it ever did this originally, this means we now
1684 have slightly better support for AUTOLOADed
1686 - added more delegation tests
1687 - adding ->does method to this so as to better
1688 support traits and their introspection.
1689 - added tests for this
1692 - localizing the Data::Dumper configurations so
1693 that it does not pollute others (RT #33509)
1694 - made ->does a little more forgiving when it is
1695 passed Class::MOP era metaclasses.
1697 0.38 Fri. Feb. 15, 2008
1698 * Moose::Meta::Attribute
1699 - fixed initializer to correctly do
1700 type checking and coercion in the
1702 - added tests for this
1705 - fixed some finicky tests (thanks to konobi)
1707 0.37 Thurs. Feb. 14, 2008
1709 - fixed some details in Moose::init_meta
1710 and its superclass handling (thanks thepler)
1711 - added tests for this (thanks thepler)
1712 - 'has' now dies if you don't pass in name
1714 - added the 'make_immutable' keyword as a shortcut
1717 * Moose::Meta::Class
1718 Moose::Meta::Method::Constructor
1719 Moose::Meta::Attribute
1720 - making (init_arg => undef) work here too
1721 (thanks to nothingmuch)
1723 * Moose::Meta::Attribute
1724 Moose::Meta::Method::Constructor
1725 Moose::Meta::Method::Accessor
1726 - make lazy attributes respect attr initializers (rjbs)
1727 - added tests for this
1729 * Moose::Util::TypeConstraints
1730 Moose::Util::TypeConstraints::OptimizedConstraints
1731 Moose::Meta::TypeConstraints
1732 Moose::Meta::Attribute
1733 Moose::Meta::Method::Constructor
1734 Moose::Meta::Method::Accessor
1735 - making type errors use the
1736 assigned message (thanks to Sartak)
1737 - added tests for this
1739 * Moose::Meta::Method::Destructor
1740 - making sure DESTROY gets inlined properly
1741 with successive DEMOLISH calls (thanks to manito)
1743 * Moose::Meta::Attribute
1744 Moose::Meta::Method::Accessor
1745 - fixed handling of undef with type constraints
1747 - added tests for this
1750 - added &get_all_init_args and &get_all_attribute_values
1751 (thanks to Sartak and nothingmuch)
1753 0.36 Sat. Jan. 26, 2008
1755 Moose::Meta::Attribute
1756 - role type tests now support when roles are
1757 applied to non-Moose classes (found by ash)
1758 - added tests for this (thanks to ash)
1759 - couple extra tests to boost code coverage
1761 * Moose::Meta::Method::Constructor
1762 - improved fix for handling Class::MOP attributes
1763 - added test for this
1765 * Moose::Meta::Class
1766 - handled the add_attribute($attribute_meta_object)
1768 - added test for this
1770 0.35 Tues. Jan. 22, 2008
1771 * Moose::Meta::Method::Constructor
1772 - fix to make sure even Class::MOP attributes
1773 are handled correctly (Thanks to Dave Rolsky)
1774 - added test for this (also Dave Rolsky)
1776 * Moose::Meta::Class
1777 - improved error message on _apply_all_roles,
1778 you should now use Moose::Util::apply_all_roles
1779 and you shouldnt have been using a _ prefixed
1780 method in the first place ;)
1782 0.34 Mon. Jan. 21, 2008
1783 ~~~ more misc. doc. fixes ~~~
1784 ~~ updated copyright dates ~~
1786 Moose is now a postmodern object system :)
1787 - (see the POD for details)
1789 * <<Role System Refactoring>>
1790 - this release contains a major reworking and
1791 cleanup of the role system
1792 - 100% backwards compat.
1793 - Role application now restructured into seperate
1794 classes based on type of applicants
1795 - Role summation (combining of more than one role)
1796 is much cleaner and anon-classes are no longer
1797 used in this process
1798 - new Composite role metaclass
1799 - runtime application of roles to instances
1800 is now more efficient and re-uses generated
1801 classes when applicable
1803 * <<New Role composition features>>
1804 - methods can now be excluded from a given role
1806 - methods can now be aliased to another name (and
1807 still retain the original as well)
1809 * Moose::Util::TypeConstraints::OptimizedConstraints
1810 - added this module (see above)
1812 * Moose::Meta::Class
1813 - fixed the &_process_attribute method to be called
1814 by &add_attribute, so that the API is now correct
1816 * Moose::Meta::Method::Accessor
1817 - fixed bug when passing a list of values to
1818 an accessor would get (incorrectly) ignored.
1819 Thanks to Sartak for finding this ;)
1820 - added tests for this (Sartak again)
1822 * Moose::Meta::Method::Accessor
1823 Moose::Meta::Method::Constructor
1824 Moose::Meta::Attribute
1825 Moose::Meta::TypeConstraint
1826 Moose::Meta::TypeCoercion
1827 - lots of cleanup of such things as:
1829 - type constraint handling
1830 - error handling/messages
1831 (thanks to nothingmuch)
1833 * Moose::Meta::TypeConstraint::Parameterizable
1834 - added this module to support the refactor
1835 in Moose::Meta::TypeConstraint::Parameterized
1837 * Moose::Meta::TypeConstraint::Parameterized
1838 - refactored how these types are handled so they
1839 are more generic and not confined to ArrayRef
1843 - shortened some file names for better VMS support (RT #32381)
1845 0.33 Fri. Dec. 14, 2007
1846 !! Moose now loads 2 x faster !!
1847 !! with new Class::MOP 0.49 !!
1849 ++ new oose.pm module to make command line
1850 Moose-ness easier (see POD docs for more)
1852 * Moose::Meta::Class
1854 - several tweaks to take advantage of the
1855 new method map caching in Class::MOP
1857 * Moose::Meta::TypeConstraint::Parameterized
1858 - allow subtypes of ArrayRef and HashRef to
1859 be used as a container (sartak)
1860 - added tests for this
1861 - basic support for coercion to ArrayRef and
1862 HashRef for containers (sartak)
1863 - added tests for this
1865 * Moose::Meta::TypeCoercion
1866 - coercions will now create subtypes as needed
1867 so you can now add coercions to parameterized
1868 types without having to explictly define them
1869 - added tests for this
1871 * Moose::Meta::Method::Accessor
1872 - allow subclasses to decide whether we need
1873 to copy the value into a new variable (sartak)
1875 0.32 Tues. Dec. 4, 2007
1876 * Moose::Util::TypeConstraints
1877 - fixing how subtype aliases of unions work
1878 they should inherit the parent's coercion
1879 - added tests for this
1880 - you can now define multiple coercions on
1881 a single type at different times instead of
1882 having to do it all in one place
1883 - added tests for this
1885 * Moose::Meta::TypeConstraint
1886 - there is now a default constraint of sub { 1 }
1887 instead of Moose::Util::TypeConstraints setting
1890 * Moose::Meta::TypeCoercion
1891 * Moose::Meta::TypeCoercion::Union
1892 - added the &has_coercion_for_type and
1893 &add_type_coercions methods to support the
1894 new features above (although you cannot add
1895 more type coercions for Union types)
1897 0.31 Mon. Nov. 26, 2007
1898 * Moose::Meta::Attribute
1899 - made the +attr syntax handle extending types with
1900 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1901 now works if the original foo is an ArrayRef.
1902 - added tests for this.
1903 - delegation now works even if the attribute does not
1904 have a reader method using the get_read_method_ref
1905 method from Class::MOP::Attribute.
1906 - added tests for this
1907 - added docs for this
1909 * Moose::Util::TypeConstraints
1910 - passing no "additional attribute info" to
1911 &find_or_create_type_constraint will no longer
1912 attempt to create an __ANON__ type for you,
1913 instead it will just return undef.
1914 - added docs for this
1916 0.30 Fri. Nov. 23, 2007
1917 * Moose::Meta::Method::Constructor
1918 -builder related bug in inlined constructor. (groditi)
1920 * Moose::Meta::Method::Accessor
1921 - genereate unnecessary calls to predicates and refactor
1922 code generation for runtime speed (groditi)
1924 * Moose::Util::TypeConstraints
1925 - fix ClassName constraint to introspect symbol table (mst)
1926 - added more tests for this (mst)
1927 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1928 with work correctly.
1929 - added tests for this
1932 - adding the link to Recipie 11 (written by Sartak)
1933 - adding test for SYNOPSIS code
1936 - New tests for builder bug. Upon instantiation, if an
1937 attribute had a builder, no value and was not lazy the
1938 builder default was not getting run, oops. (groditi)
1940 0.29 Tues. Nov. 13, 2007
1941 * Moose::Meta::Attribute
1942 - Fix error message on missing builder method (groditi)
1944 * Moose::Meta::Method::Accessor
1945 - Fix error message on missing builder method (groditi)
1948 - Add test to check for the correct error message when
1949 builder method is missing (groditi)
1951 0.28 Tues. Nov. 13, 2007
1952 - 0.27 packaged incorrectly (groditi)
1954 0.27 Tues. Nov. 13, 2007
1955 * Moose::Meta::Attribute
1956 - Added support for the new builder option (groditi)
1957 - Added support for lazy_build option (groditi)
1958 - Changed slot initialization for predicate changes (groditi)
1960 * Moose::Meta::Method::Accessor
1961 - Added support for lazy_build option (groditi)
1962 - Fix inline methods to work with corrected predicate
1965 * Moose::Meta::Method::Constructor
1966 - Added support for lazy_build option (groditi)
1969 - tests for builder and lazy_build (groditi)
1971 * fixing some misc. bits in the docs that
1972 got mentioned on CPAN Forum & perlmonks
1975 - fixed how required methods are handled
1976 when they encounter overriden or modified
1977 methods from a class (thanks to confound).
1978 - added tests for this
1980 * Moose::Util::TypeConstraint
1981 - fixed the type notation parser so that
1982 the | always creates a union and so is
1983 no longer a valid type char (thanks to
1984 konobi, mugwump and #moose for working
1986 - added more tests for this
1988 0.26 Thurs. Sept. 27, 2007
1991 * Parameterized Types
1992 We now support parameterized collection types, such as:
1993 ArrayRef[Int] # array or integers
1994 HashRef[Object] # a hash with object values
1995 They can also be nested:
1996 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1997 And work with the type unions as well:
1998 ArrayRef[Int | Str] # array of integers of strings
2000 * Better Framework Extendability
2001 Moose.pm is now "extendable" such that it is now much
2002 easier to extend the framework and add your own keywords
2003 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2004 section of the Moose.pm docs.
2007 In an effort to begin documenting some of the various
2008 details of Moose as well as some common idioms, we have
2009 created Moose::Cookbook::Snacks as a place to find
2010 small (easily digestable) nuggets of Moose code.
2013 ~ Several doc updates/cleanup thanks to castaway ~
2015 - converted build system to use Module::Install instead of
2016 Module::Build (thanks to jrockway)
2019 - added all the meta classes to the immutable list and
2020 set it to inline the accessors
2021 - fix import to allow Sub::Exporter like { into => }
2022 and { into_level => } (perigrin)
2023 - exposed and documented init_meta() to allow better
2024 embedding and extending of Moose (perigrin)
2027 - complete re-organization of the test suite
2028 - added some new tests as well
2029 - finally re-enabled the Moose::POOP test since
2030 the new version of DBM::Deep now works again
2033 * Moose::Meta::Class
2034 - fixed very odd and very nasty recursion bug with
2036 - added tests for this (eilara)
2038 * Moose::Meta::Attribute
2039 Moose::Meta::Method::Constructor
2040 Moose::Meta::Method::Accessor
2041 - fixed issue with overload::Overloaded getting called
2042 on non-blessed items. (RT #29269)
2043 - added tests for this
2045 * Moose::Meta::Method::Accessor
2046 - fixed issue with generated accessor code making
2047 assumptions about hash based classes (thanks to dexter)
2049 * Moose::Coookbook::Snacks
2050 - these are bits of documentation, not quite as big as
2051 Recipes but which have no clear place in the module docs.
2052 So they are Snacks! (horray for castaway++)
2054 * Moose::Cookbook::Recipe4
2055 - updated it to use the new ArrayRef[MyType] construct
2056 - updated the accompanying test as well
2058 +++ Major Refactor of the Type Constraint system +++
2059 +++ with new features added as well +++
2061 * Moose::Util::TypeConstraint
2062 - no longer uses package variable to keep track of
2063 the type constraints, now uses the an instance of
2064 Moose::Meta::TypeConstraint::Registry to do it
2065 - added more sophisticated type notation parsing
2067 - added tests for this
2069 * Moose::Meta::TypeConstraint
2070 - some minor adjustments to make subclassing easier
2071 - added the package_defined_in attribute so that we
2072 can track where the type constraints are created
2074 * Moose::Meta::TypeConstraint::Union
2075 - this is now been refactored to be a subclass of
2076 Moose::Meta::TypeConstraint
2078 * Moose::Meta::TypeCoercion::Union
2079 - this has been added to service the newly refactored
2080 Moose::Meta::TypeConstraint::Union and is itself
2081 a subclass of Moose::Meta::TypeCoercion
2083 * Moose::Meta::TypeConstraint::Parameterized
2084 - added this module (taken from MooseX::AttributeHelpers)
2085 to help construct nested collection types
2086 - added tests for this
2088 * Moose::Meta::TypeConstraint::Registry
2089 - added this class to keep track of type constraints
2091 0.25 Mon. Aug. 13, 2007
2093 - Documentation update to reference Moose::Util::TypeConstraints
2094 under 'isa' in 'has' for how to define a new type
2095 (thanks to shlomif).
2097 * Moose::Meta::Attribute
2098 - required attributes now will no longer accept undef
2099 from the constructor, even if there is a default and lazy
2100 - added tests for this
2101 - default subroutines must return a value which passes the
2103 - added tests for this
2105 * Moose::Meta::Attribute
2106 * Moose::Meta::Method::Constructor
2107 * Moose::Meta::Method::Accessor
2108 - type-constraint tests now handle overloaded objects correctly
2109 in the error message
2110 - added tests for this (thanks to EvanCarroll)
2112 * Moose::Meta::TypeConstraint::Union
2113 - added (has_)hand_optimized_constraint to this class so that
2114 it behaves as the regular Moose::Meta::TypeConstraint does.
2117 - large refactoring of this code
2118 - added several more tests
2119 - tests for subtle conflict resolition issues
2120 added, but not currently running
2123 * Moose::Cookbook::Recipe7
2124 - added new recipe for augment/inner functionality
2126 - added test for this
2129 - a formal definition of roles (still in progress)
2132 - utilities for easier working with Moose classes
2133 - added tests for these
2136 - This contains Moose specific test functions
2137 - added tests for these
2139 0.24 Tues. July 3, 2007
2140 ~ Some doc updates/cleanup ~
2142 * Moose::Meta::Attribute
2143 - added support for roles to be given as parameters
2144 to the 'handles' option.
2145 - added tests and docs for this
2146 - the has '+foo' attribute form now accepts changes to
2147 the lazy option, and the addition of a handles option
2148 (but not changing the handles option)
2149 - added tests and docs for this
2152 - required methods are now fetched using find_method_by_name
2153 so that required methods can come from superclasses
2154 - adjusted tests for this
2156 0.23 Mon. June 18, 2007
2157 * Moose::Meta::Method::Constructor
2158 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2159 * Moose::Meta::Class
2160 - Modify make_immutable to work with the new Class::MOP immutable
2161 mechanism + POD + very basic test (groditi)
2162 * Moose::Meta::Attribute
2163 - Fix handles to use goto() so that caller() comes out properly on
2164 the other side (perigrin)
2166 0.22 Thurs. May 31, 2007
2167 * Moose::Util::TypeConstraints
2168 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2169 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2170 prototypes for functions
2171 - added the ClassName type constraint, this checks for strings
2172 which will respond true to ->isa(UNIVERSAL).
2173 - added tests and docs for this
2174 - subtyping just in name now works correctly by making the
2175 default for where be { 1 }
2176 - added test for this
2178 * Moose::Meta::Method::Accessor
2179 - coerce and lazy now work together correctly, thanks to
2180 merlyn for finding this bug
2181 - tests added for this
2182 - fix reader presedence bug in Moose::Meta::Attribute + tests
2185 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2186 a HASH-ref and missed. This produces better error messages then
2187 having it die cause undef is not a HASH.
2188 - added tests for this
2190 0.21 Thursday, May 2nd, 2007
2192 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2193 - modified unimport to remove super and inner along with the rest
2194 - altered unimport tests to handle this
2197 - altered super export to populate SUPER_SLOT
2199 * Moose::Meta::Class
2200 - altered augment and override modifier application to use *_SLOT
2201 - modified tests for these to unimport one test class each to test
2204 - fixed issue where custom attribute metaclasses
2205 where not handled correctly in roles
2206 - added tests for this
2208 * Moose::Meta::Class
2209 - fixed issue where extending metaclasses with
2210 roles would blow up. Thanks to Aankhen`` for
2211 finding this insidious error, and it's solution.
2213 ~~ lots of spelling and grammer fixes in the docs,
2214 many many thanks to rlb3 and Aankhen for these :)
2216 0.20 Friday, April 6th, 2007
2217 >> I messed up the SKIP logic in one test
2218 so this release is just to fix that.
2221 - 'has' now also accepts an ARRAY ref
2222 to create multiple attrs (see docs)
2223 (thanks to konobi for this)
2224 - added tests and docs
2226 0.19 Thurs. April 5th, 2007
2227 ~~ More documentation updates ~~
2229 * Moose::Util::TypeConstraints
2230 - 'type' now supports messages as well
2231 thanks to phaylon for finding this
2232 - added tests for this
2233 - added &list_all_type_constraints and
2234 &list_all_builtin_type_constraints
2235 functions to facilitate introspection.
2237 * Moose::Meta::Attribute
2238 - fixed regexp 'handles' declarations
2239 to build the list of delegated methods
2240 correctly (and not override important
2241 things like &new) thanks to ashleyb
2243 - added tests and docs for this
2244 - added the 'documentation' attributes
2245 so that you can actually document your
2246 attributes and inspect them through the
2248 - added tests and docs for this
2250 * Moose::Meta::Class
2251 - when loading custom attribute metaclasses
2252 it will first look in for the class in the
2253 Moose::Meta::Attribute::Custom::$name, and
2254 then default to just loading $name.
2255 - added tests and docs for this
2257 * Moose::Meta::TypeConstraint
2258 - type constraints now stringify to their names.
2259 - added test for this
2262 - added tests to assure we work with Module::Refresh
2263 - added stricter test skip logic in the Moose POOP
2264 test, ask Rob Kinyon why.
2265 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2267 0.18 Sat. March 10, 2007
2268 ~~ Many, many documentation updates ~~
2271 - We now use Class::MOP::load_class to
2273 - added tests to show types and subtypes
2274 working with Declare::Constraints::Simple
2275 and Test::Deep as constraint engines.
2278 !! You must have Class::MOP 0.37_001 !!
2279 !! for this developer release to work !!
2281 This release was primarily adding the immutable
2282 feature to Moose. An immutable class is one which
2283 you promise not to alter. When you set the class
2284 as immutable it will perform various bits of
2285 memoization and inline certain part of the code
2286 (constructors, destructors and accessors). This
2287 minimizes (and in some cases totally eliminates)
2288 one of Moose's biggest performance hits. This
2289 feature is not on by default, and is 100% optional.
2290 It has several configurable bits as well, so you
2291 can pick and choose to your specific needs.
2293 The changes involved in this were fairly wide and
2294 highly specific, but 100% backwards compatible, so
2295 I am not going to enumerate them here. If you are
2296 truely interested in what was changed, please do
2299 0.17 Tues. Nov. 14, 2006
2300 * Moose::Meta::Method::Accessor
2301 - bugfix for read-only accessors which
2302 are have a type constraint and lazy.
2303 Thanks to chansen for finding it.
2305 0.16 Tues. Nov. 14, 2006
2307 There are some speed improvements in this release,
2308 but they are only the begining, so stay tuned.
2311 - BUILDALL and DEMOLISHALL no longer get
2312 called unless they actually need to be.
2313 This gave us a signifigant speed boost
2314 for the cases when there is no BUILD or
2315 DEMOLISH method present.
2317 * Moose::Util::TypeConstraints
2318 * Moose::Meta::TypeConstraint
2319 - added an 'optimize_as' option to the
2320 type constraint, which allows for a
2321 hand optimized version of the type
2322 constraint to be used when possible.
2323 - Any internally created type constraints
2324 now provide an optimized version as well.
2326 0.15 Sun. Nov. 5, 2006
2328 This version of Moose *must* have Class::MOP 0.36 in order
2329 to work correctly. A number of small internal tweaks have
2330 been made in order to be compatible with that release.
2332 * Moose::Util::TypeConstraints
2333 - added &unimport so that you can clean out
2334 your class namespace of these exported
2337 * Moose::Meta::Class
2338 - fixed minor issue which occasionally
2339 comes up during global destruction
2341 - moved Moose::Meta::Method::Overriden into
2345 - moved Moose::Meta::Role::Method into
2348 * Moose::Meta::Attribute
2349 - changed how we do type checks so that
2350 we reduce the overall cost, but still
2353 - moved accessor generation methods to
2354 Moose::Meta::Method::Accessor to
2355 conform to the API changes from
2358 * Moose::Meta::TypeConstraint
2359 - changed how constraints are compiled
2360 so that we do less recursion and more
2361 iteration. This makes the type check
2363 - moved Moose::Meta::TypeConstraint::Union
2366 * Moose::Meta::Method::Accessor
2367 - created this from methods formerly found in
2368 Moose::Meta::Attribute
2370 * Moose::Meta::Role::Method
2371 - moved this from Moose::Meta::Role
2373 * Moose::Meta::Method::Overriden
2374 - moved this from Moose::Meta::Class
2376 * Moose::Meta::TypeConstraint::Union
2377 - moved this from Moose::Meta::TypeConstraint
2379 0.14 Mon. Oct. 9, 2006
2381 * Moose::Meta::Attribute
2382 - fixed lazy attributes which were not getting
2383 checked with the type constraint (thanks ashley)
2384 - added tests for this
2385 - removed the over-enthusiastic DWIMery of the
2386 automatic ArrayRef and HashRef defaults, it
2387 broke predicates in an ugly way.
2388 - removed tests for this
2390 0.13 Sat. Sept. 30, 2006
2392 This version of Moose *must* have Class::MOP 0.35 in order
2393 to work correctly. A number of small internal tweaks have
2394 been made in order to be compatible with that release.
2397 - Removed the use of UNIVERSAL::require to be a better
2398 symbol table citizen and remove a dependency
2399 (thanks Adam Kennedy)
2401 **~~ removed experimental & undocumented feature ~~**
2402 - commented out the 'method' and 'self' keywords, see the
2403 comments for more info.
2406 - added a FAQ and WTF files to document frequently
2407 asked questions and common problems
2409 * Moose::Util::TypeConstraints
2410 - added GlobRef and FileHandle type constraint
2411 - added tests for this
2413 * Moose::Meta::Attribute
2414 - if your attribute 'isa' ArrayRef of HashRef, and you have
2415 not explicitly set a default, then make the default DWIM.
2416 This will also work for subtypes of ArrayRef and HashRef
2418 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2419 - new test added for this (thanks to ashley)
2422 - added basic support for runtime role composition
2423 but this is still *highly experimental*, so feedback
2424 is much appreciated :)
2425 - added tests for this
2427 * Moose::Meta::TypeConstraint
2428 - the type constraint now handles the coercion process
2429 through delegation, this is to support the coercion
2432 * Moose::Meta::TypeConstraint::Union
2433 - it is now possible for coercions to be performed
2435 - added tests for this (thanks to konobi)
2437 * Moose::Meta::TypeCoercion
2438 - properly capturing error when type constraint
2442 - Scalar::Util 1.18 is bad on Win32, so temporarily
2443 only require version 1.17 for Win32 and cygwin.
2444 (thanks Adam Kennedy)
2446 0.12 Sat. Sept. 1, 2006
2448 - Recipe5 (subtypes & coercion) has been written
2451 - fixed "bad meta" error message to be more descriptive
2452 - fixed &unimport to not remove the &inner and &super
2453 keywords because we need to localize them.
2454 - fixed number of spelling/grammer issues, thanks Theory :)
2456 **~~ experimental & undocumented feature ~~**
2457 - added the method and self keywords, they are basically
2458 just sugar, and they may not stay around.
2461 - added &dump method to easily Data::Dumper
2464 * Moose::Meta::TypeConstraint
2465 - added the &is_a_type_of method to check both the current
2466 and the subtype of a method (similar to &isa with classes)
2469 - this is now a subclass of Class::MOP::Module, and no longer
2470 creates the _role_meta ugliness of before.
2471 - fixed tests to reflect this change
2473 0.11 Wed. July 12, 2006
2475 - added an &unimport method to remove all the keywords
2476 that Moose will import, simply add 'no Moose' to the
2477 bottom of your class file.
2480 - fixed some test failures caused by a forgotten test
2483 0.10 Thurs. July 6, 2006
2485 - improved error message when loading modules so
2486 it is less confusing when you load a role.
2487 - added &calculate_all_roles method to
2488 Moose::Meta::Class and Moose::Meta::Role
2491 This module has been tested against Class::MOP 0.30
2492 but it does not yet utilize the optimizations
2493 it makes available. Stay tuned for that ;)
2495 0.09_03 Fri. June 23, 2006
2496 ++ DEVELOPER RELEASE ++
2498 - 'use strict' and 'use warnings' are no longer
2499 needed in Moose classes, Moose itself will
2500 turn them on for you.
2501 - added tests for this
2502 - moved code from exported subs to private methods
2503 in Moose::Meta::Class
2506 - as with Moose, strict and warnings are
2507 automatically turned on for you.
2508 - added tests for this
2511 - now handles an edge case for override errors
2512 - added tests for this
2513 - added some more edge case tests
2515 0.09_02 Tues. May 16, 2006
2516 ++ DEVELOPER RELEASE ++
2518 - added prototypes to the exported subs
2522 - added prototypes to the exported subs
2525 * Moose::Util::TypeConstraints
2526 - cleaned up prototypes for the subs
2529 0.09_01 Fri. May 12, 2006
2530 ++ DEVELOPER RELEASE ++
2531 - This release works in combination with
2532 Class::MOP 0.29_01, it is a developer
2533 release because it uses the a new
2534 instance sub-protocol and a fairly
2535 complete Role implementation. It has
2536 not yet been optimized, so it slower
2537 the the previous CPAN version. This
2538 release also lacks good updated docs,
2539 the official release will have updated docs.
2542 - refactored the keyword exports
2543 - 'with' now checks Role validaity and
2544 accepts more than one Role at a time
2545 - 'extends' makes metaclass adjustments as
2546 needed to ensure metaclass compatibility
2549 - refactored the keyword exports
2550 - 'with' now checks Role validaity and
2551 accepts more than one Role at a time
2553 * Moose::Util::TypeConstraints
2554 - added the 'enum' keyword for simple
2555 string enumerations which can be used as
2557 - see example of usage in t/202_example.t
2560 - more careful checking of params to new()
2563 - much work done on the role composition
2564 - many new tests for conflict detection
2565 and composition edge cases
2566 - not enough documentation, I suggest
2567 looking at the tests
2569 * Moose::Meta::Instance
2570 - added new Instance metaclass to support
2571 the new Class::MOP instance protocol
2573 * Moose::Meta::Class
2574 - some small changes to support the new
2576 - some small additions to support Roles
2578 * Moose::Meta::Attribute
2579 - some improvements to the accessor generation code
2581 - some small changes to support the new
2583 - (still somewhat) experimental delegation support
2584 with the 'handles' option
2585 - added several tests for this
2586 - no docs for this yet
2588 0.05 Thurs. April 27, 2006
2590 - keywords are now exported with Sub::Exporter
2591 thanks to chansen for this commit
2592 - has keyword now takes a 'metaclass' option
2593 to support custom attribute meta-classes
2594 on a per-attribute basis
2595 - added tests for this
2596 - the 'has' keyword not accepts inherited slot
2597 specifications (has '+foo'). This is still an
2598 experimental feature and probably not finished
2599 see t/038_attribute_inherited_slot_specs.t for
2600 more details, or ask about it on #moose
2601 - added tests for this
2604 - keywords are now exported with Sub::Exporter
2606 * Moose::Utils::TypeConstraints
2607 - reorganized the type constraint hierarchy, thanks
2608 to nothingmuch and chansen for his help and advice
2610 - added some tests for this
2611 - keywords are now exported with Sub::Exporter
2612 thanks to chansen for this commit
2614 * Moose::Meta::Class
2615 - due to changes in Class::MOP, we had to change
2616 construct_instance (for the better)
2618 * Moose::Meta::Attribute
2619 - due to changes in Class::MOP, we had to add the
2620 initialize_instance_slot method (it's a good thing)
2622 * Moose::Meta::TypeConstraint
2623 - added type constraint unions
2624 - added tests for this
2625 - added the is_subtype_of predicate method
2626 - added tests for this
2628 0.04 Sun. April 16th, 2006
2630 - Roles can now consume other roles
2631 - added tests for this
2632 - Roles can specify required methods now with
2633 the requires() keyword
2634 - added tests for this
2637 - ripped out much of it's guts ,.. much cleaner now
2638 - added required methods and correct handling of
2639 them in apply() for both classes and roles
2640 - added tests for this
2641 - no longer adds a does() method to consuming classes
2642 it relys on the one in Moose::Object
2643 - added roles attribute and some methods to support
2644 roles consuming roles
2646 * Moose::Meta::Attribute
2647 - added support for triggers on attributes
2648 - added tests for this
2649 - added support for does option on an attribute
2650 - added tests for this
2652 * Moose::Meta::Class
2653 - added support for attribute triggers in the
2655 - added tests for this
2658 - Moose no longer creates a subtype for your class
2659 if a subtype of the same name already exists, this
2660 should DWIM in 99.9999% of all cases
2662 * Moose::Util::TypeConstraints
2663 - fixed bug where incorrect subtype conflicts were
2665 - added test for this
2668 - this class can now be extended with 'use base' if
2669 you need it, it properly loads the metaclass class now
2670 - added test for this
2672 0.03_02 Wed. April 12, 2006
2674 - you must now explictly use Moose::Util::TypeConstraints
2675 it no longer gets exported for you automatically
2678 - new() now accepts hash-refs as well as key/value lists
2679 - added does() method to check for Roles
2680 - added tests for this
2682 * Moose::Meta::Class
2683 - added roles attribute along with the add_role() and
2685 - added tests for this
2688 - now adds a does() method to consuming classes
2689 which tests the class's hierarchy for roles
2690 - added tests for this
2692 0.03_01 Mon. April 10, 2006
2694 - added new Role recipe (no content yet, only code)
2697 - added 'with' keyword for Role support
2698 - added test and docs for this
2699 - fixed subtype quoting bug
2700 - added test for this
2704 - added test and docs
2706 * Moose::Util::TypeConstraints
2707 - added the message keyword to add custom
2708 error messages to type constraints
2711 - the meta role to support Moose::Role
2712 - added tests and docs
2714 * Moose::Meta::Class
2715 - moved a number of things from Moose.pm
2716 to here, they should have been here
2719 * Moose::Meta::Attribute
2720 - moved the attribute option macros here
2721 instead of putting them in Moose.pm
2723 * Moose::Meta::TypeConstraint
2724 - added the message attributes and the
2726 - added tests and docs for this
2728 0.03 Thurs. March 30, 2006
2730 - added the Moose::Cookbook with 5 recipes,
2731 describing all the stuff Moose can do.
2734 - fixed an issue with &extends super class loading
2735 it now captures errors and deals with inline
2736 packages correctly (bug found by mst, solution
2738 - added super/override & inner/augment features
2739 - added tests and docs for these
2742 - BUILDALL now takes a reference of the %params
2743 that are passed to &new, and passes that to
2746 * Moose::Util::TypeConstraints
2747 - Type constraints now survive runtime reloading
2748 - added test for this
2750 * Moose::Meta::Class
2751 - fixed the way attribute defaults are handled
2752 during instance construction (bug found by chansen)
2754 * Moose::Meta::Attribute
2755 - read-only attributes now actually enforce their
2756 read-only-ness (this corrected in Class::MOP as
2759 0.02 Tues. March 21, 2006
2761 - many more tests, fixing some bugs and
2763 - &extends now loads the base module with
2765 - added UNIVERSAL::require to the
2768 - each new Moose class will also create
2769 and register a subtype of Object which
2770 correspond to the new Moose class.
2771 - the 'isa' option in &has now only
2772 accepts strings, and will DWIM in
2775 * Moose::Util::TypeConstraints
2776 - added type coercion features
2777 - added tests for this
2778 - added support for this in attributes
2779 and instance construction
2781 - type construction no longer creates a
2782 function, it registers the type instead.
2783 - added several functions to get the
2787 - BUILDALL and DEMOLISHALL were broken
2788 because of a mis-named hash key, Whoops :)
2790 * Moose::Meta::Attribute
2791 - adding support for coercion in the
2792 autogenerated accessors
2794 * Moose::Meta::Class
2795 - adding support for coercion in the
2796 instance construction
2798 * Moose::Meta::TypeConstraint
2799 * Moose::Meta::TypeCoercion
2800 - type constraints and coercions are now
2801 full fledges meta-objects
2803 0.01 Wed. March 15, 2006
2804 - Moooooooooooooooooose!!!