1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Attribute::Native
6 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
8 * Moose::Meta::Attribute::Native::Trait::Array
9 - Added a number of functions from List::Util and List::MoreUtils,
10 including reduce, shuffle, uniq, and natatime. (doy)
13 - This module will now generate an init_meta method for your exporting
14 class if you pass it options for
15 Moose::Util::MetaRole::apply_metaclass_roles or
16 apply_base_class_roles. This eliminates a lot of repetitive
17 boilerplate for typical MooseX modules. (doy).
18 - Documented the with_meta feature, which is a replacement for
19 with_caller. This feature was added by josh a while ago.
20 - The with_caller feature is now deprecated, but will not issue a
21 warning yet. (Dave Rolsky)
24 0.89_01 Wed Sep 2, 2009
25 * Moose::Meta::Attribute
26 - Added the currying syntax for delegation from AttributeHelpers to the
27 existing delegation API. (hdp)
29 * Moose::Meta::Attribute::Native
30 - We have merged the functionality of MooseX::AttributeHelpers into the
31 Moose core with some API tweaks. You can continue to use
32 MooseX::AttributeHelpers, but it will not be maintained except
33 (perhaps) for critical bug fixes in the future. See
34 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
38 * Moose::Error::Confess
39 - Clarify documentation on how to use different error-throwing
40 modules. (Curtis Jewell)
43 - Correct POD for builder to point to Recipe8, not 9. (gphat)
46 * Moose::Manual::Attributes
47 - Clarify "is", include discussion of "bare". (Sartak)
49 * Moose::Meta::Role::Method::Conflicting
50 * Moose::Meta::Role::Application::ToClass
51 - For the first set of roles involved in a conflict, report all
52 unresolved method conflicts, not just the first method. Fixes #47210
53 reported by Ovid. (Sartak)
55 * Moose::Meta::TypeConstraint
56 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
59 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
61 - Allow specifying role options (alias, excludes, MXRP stuff) in the
62 arrayref passed to "use Moose -traits" (doy)
65 - Add functions meta_class_alias and meta_attribute_alias for creating
66 aliases for class and attribute metaclasses and metatraits. (doy)
68 * Moose::Meta::Attribute
69 * Moose::Meta::Method::Accessor
70 - A trigger now receives the old value as a second argument, if the
71 attribute had one. (Dave Rolsky)
73 * Moose::Meta::Method::Constructor
74 - Fix a bug with $obj->new when $obj has stringify overloading.
75 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
76 - However, we will probably deprecate $obj->new, so please don't start
77 using it for new code!
79 * Moose::Meta::Role::Application
80 * Moose::Meta::Role::Application::RoleSummation
81 - Rename alias and excludes to -alias and -excludes (but keep the old
82 names for now, for backcompat) (doy)
85 * Moose::Manual::Contributing
86 - Re-write the Moose::Manual::Contributing document to reflect
87 the new layout and methods of work for the Git repository. All
88 work now should be done in topic branches and reviewed by a
89 core committer before being applied to master. All releases
90 are done by a cabal member and merged from master to
91 stable. This plan was devised by Yuval, blame him. (perigrin)
94 - Create metaclass attributes for the different role application
97 * Moose::Util::MetaRole
98 - Allow applying roles to a meta role's role application
101 * Moose::Meta::Attribute
102 - Add weak_ref to allowed options for "has '+foo'" (mst)
104 * Moose::Meta::Method::Accessor
105 - No longer uses inline_slot_access in accessors, to support
106 non-lvalue-based meta instances. (sorear)
109 * Moose::Meta::Method::Delegation
110 - Once again allow class names as well as objects for
111 delegation. This was changed in 0.86.
114 * Moose::Meta::Class::Immutable::Trait
115 - Fixes to work with the latest Class::MOP.
117 * Moose::Meta::Method::Delegation
118 - Delegation now dies with a more useful error message if the
119 attribute's accessor returns something defined but
122 0.85 Fri, Jun 26, 2009
123 * Moose::Meta::Attribute
124 - The warning for 'no associated methods' is now split out into
125 the _check_associated_methods method, so that extensions can
126 safely call 'after install_accessors => ...'. This fixes a
127 warning from MooseX::AttributeHelpers. (hdp)
129 0.84 Fri, Jun 26, 2009
131 - has now sets definition_context for attributes defined in
134 * Moose::Meta::Attribute
135 - When adding an attribute to a metaclass, if the attribute has
136 no associated methods, it will give a deprecation
138 - Methods generated by delegation were not being added to
139 associated_methods. (hdp)
140 - Attribute accessors (reader, writer, accessor, predicate,
141 clearer) now warn if they overwrite an existing method. (doy)
142 - Attribute constructors now warn very noisily about unknown (or
143 misspelled) arguments
145 * Moose::Util::TypeConstraints
146 - Deprecated the totally useless Role type name, which just
147 checked if $object->can('does'). Note that this is _not_ the
148 same as a type created by calling role_type('RoleName').
150 * Moose::Util::TypeConstraints
151 * Moose::Meta::TypeConstraint::DuckType
152 - Reify duck type from a regular subtype into an actual class
154 - Document this because Sartak did all my work for me
157 * Moose::Meta::Attribute
158 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
159 it is just a list of methods (Sartak)
162 - The get_*_method_modifiers methods would die if the role had
163 no modifiers of the given type (Robert Buels).
165 0.83 Tue, Jun 23, 2009
167 - Fix _construct_instance not setting the special __MOP__ object
168 key in instances of anon classes. (doy)
170 0.82 Sun, Jun 21, 2009
171 * Moose::Manual::Types
172 - Mention MooseX::Types early to avoid users falling down the
173 string parsing rathole (mst)
175 * Moose::Manual::MooseX
176 - Add warnings about class-level extensions and mention considering
177 using plain objects instead
179 0.81 Sun, Jun 7, 2009
180 * Bumped our Class::MOP prereq to the latest version (0.85), since
183 0.80 Sat, Jun 6, 2009
185 - Add FAQ about the coercion change from 0.76 because it came up
186 three times today (perigrin)
187 - Win doy $10 dollars because Sartak didn't think anybody
188 would document this fast enough (perigrin)
190 * Moose::Meta::Method::Destructor
191 - Inline a DESTROY method even if there are no DEMOLISH methods
192 to prevent unnecessary introspection in
193 Moose::Object::DEMOLISHALL
196 - A role's required methods are now represented by
197 Moose::Meta::Role::Method::Required objects. Conflicts are now
198 represented by Moose::Meta::Role::Method::Conflicting
199 objects. The benefit for end-users in that unresolved
200 conflicts generate different, more instructive, errors,
201 resolving Ovid's #44895. (Sartak)
204 - Improve the error message of "extends" as suggested by Adam
205 Kennedy and confound (Sartak)
206 - Link to Moose::Manual::Roles from Moose::Role as we now have
207 excellent documentation (Adam Kennedy)
210 - Update test suite for subname change in Class::MOP
212 - Add TODO test for infinite recursion in Moose::Meta::Class
215 0.79 Wed, May 13, 2009
217 - More fixes for Win32 problems. Reported by Robert Krimen.
220 - The DEMOLISHALL method could still blow up in some cases
221 during global destruction. This method has been made more
222 resilient in the face of global destruction's random garbage
226 - If you "also" a module that isn't loaded, the error message
227 now acknowledges that (Sartak)
230 - When your ->meta method does not return a Moose::Meta::Class,
231 the error message gave the wrong output (Sartak)
233 0.78 Tue, May 12, 2009
234 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
235 - Merged these documents into what is now Moose::Manual::FAQ
238 - Moved to Moose::Manual::Unsweetened
240 * Moose::Cookbook::Basics::Recipes 9-12
241 - Renamed to be 8-11, since recipe 8 did not exist
244 - Make Moose::Exporter import strict and warnings into packages
248 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
249 methods during global destruction (doy)
252 * Moose::Meta::Role::Application::ToClass
253 - Track the Role::Application objects created during class-role
257 - Fix metaclass incompatibility errors when extending a vanilla perl
258 class which isa Moose class with a metaclass role applied (t0m)
261 - Add a role-combination hook, _role_for_combination, for the
262 benefit of MooseX::Role::Parameterized (Sartak)
265 - Some tests were failing on Win32 because they explicit checked
266 warning output for newlines. Reported by Nickolay Platonov.
268 0.77 Sat, May 2, 2009
270 - Add explicit use of Devel::GlobalDestruction and Sub::Name
274 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
275 or not we are currently in global destruction (doy)
276 - Add explicit use of Devel::GlobalDestruction and Sub::Name
279 * Moose::Cookbook::FAQ
280 - Reworked much of the existing content to be more useful to
281 modern Moose hackers (Sartak)
284 - Depend on Class::MOP 0.83 instead of 0.82_01.
286 0.76 Mon, April 27, 2009
287 * Moose::Meta::TypeConstraint
288 - Do not run coercions in coerce() if the value already passes the type
291 * Moose::Meta::TypeConstraint::Class
292 - In validation error messages, specifically say that the value is not
293 an instance of the class. This should alleviate some frustrating
294 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
296 * Moose::Meta::Role::Application::ToClass
297 - Revert the class-overrides-role warning in favor of a solution outside
298 of the Moose core (Sartak)
301 - Make Test::Output optional again, since it's only used in a few files
304 0.75_01 Thu, April 23, 2009
305 * Moose::Meta::Role::Application::ToClass
306 - Moose now warns about each class overriding methods from roles it
310 - Warnings tests have standardized on Test::Output which is now an
311 unconditionally dependency (Sartak)
314 - Changes to immutabilization to work with Class::MOP 0.82_01+.
316 0.75 Mon, April 20, 2009
319 - Move validation of not inheriting from roles from Moose::extends to
320 Moose::Meta::Class::superclasses (doy)
323 - add ensure_all_roles() function to encapsulate the common "apply this
324 role unless the object already does it" pattern (hdp)
327 - Users can now select a different metaclass with the "-metaclass"
328 option to import, for classes and roles (Sartak)
331 - Make method_metaclass an attr so that it can accept a metarole
334 0.74 Tue, April 7, 2009
336 * Moose::Meta::Method::Destructor
337 - Include stack traces in the deprecation warnings.
341 - Removed the long-deprecated _apply_all_roles method.
343 * Moose::Meta::TypeConstraint
344 - Removed the long-deprecated union method.
347 0.73_02 Mon, April 6, 2009
348 * More deprecations and renamings
349 - Moose::Meta::Method::Constructor
350 - initialize_body => _initialize_body (this is always called
351 when an object is constructed)
354 - The DEMOLISHALL method could throw an exception during global
355 destruction, meaning that your class's DEMOLISH methods would
356 not be properly called. Reported by t0m.
358 * Moose::Meta::Method::Destructor
359 - Destructor inlining was totally broken by the change to the
360 is_needed method in 0.72_01. Now there is a test for this
361 feature, and it works again.
364 - Bold the word 'not' in the POD for find_meta (t0m)
366 0.73_01 Sun, April 5, 2009
368 - Call user_class->meta in fewer places, with the eventual goal
369 of allowing the user to rename or exclude ->meta
370 altogether. Instead uses Class::MOP::class_of. (Sartak)
372 * Moose::Meta::Method::Accessor
373 - If an attribute had a lazy default, and that value did not
374 pass the attribute's type constraint, it did not get the
375 message from the type constraint, instead using a generic
376 message. Test provided by perigrin.
378 * Moose::Util::TypeConstraints
379 - Add duck_type keyword. It's sugar over making sure an object
380 can() a list of methods. This is easier than jrockway's
381 suggestion to fork all of CPAN. (perigrin)
382 - add tests and documentation (perigrin)
385 - Document the fact that init_meta() returns the target class's
386 metaclass object. (hdp)
388 * Moose::Cookbook::Extending::Recipe1
389 * Moose::Cookbook::Extending::Recipe2
390 * Moose::Cookbook::Extending::Recipe3
391 * Moose::Cookbook::Extending::Recipe4
392 - Make init_meta() examples explicitly return the metaclass and
393 point out this fact. (hdp)
395 * Moose::Cookbook::Basics::Recipe12
396 - A new recipe, creating a custom meta-method class.
398 * Moose::Cookbook::Meta::Recipe6
399 - A new recipe, creating a custom meta-method class.
402 * Moose::Meta::Method::Constructor
403 - Attribute triggers no longer receive the meta-attribute object
404 as an argument in any circumstance. Previously, triggers
405 called during instance construction were passed the
406 meta-attribute, but triggers called by normal accessors were
407 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
409 * Moose::Manual::Attributes
410 - Remove references to triggers receving the meta-attribute object as an
413 * Moose::Cookbook::FAQ
414 - Remove recommendation for deprecated Moose::Policy and
415 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
418 * Many methods have been renamed with a leading underscore, and a
419 few have been deprecated entirely. The methods with a leading
420 underscore are consider "internals only". People writing
421 subclasses or extensions to Moose should feel free to override
422 them, but they are not for "public" use.
425 - check_metaclass_compatibility => _check_metaclass_compatibility
427 - Moose::Meta::Method::Accessor
428 - initialize_body => _initialize_body (this is always called
429 when an object is constructed)
430 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
432 - Moose::Meta::Method::Constructor
433 - initialize_body => _initialize_body (this is always called
434 when an object is constructed)
435 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
436 - attributes => _attributes (now inherited from parent)
437 - meta_instance => _meta_instance (now inherited from parent)
440 - alias_method is deprecated. Use add_method
442 0.73 Fri, March 29, 2009
443 * No changes from 0.72_01.
445 0.72_01 Thu, March 26, 2009
447 - Almost every module has complete API documentation. A few
448 methods (and even whole classes) have been intentionally
449 excluded pending some rethinking of their APIs.
451 * Moose::Util::TypeConstraints
452 - Calling subtype with a name as the only argument is now an
453 exception. If you want an anonymous subtype do:
455 my $subtype = subtype as 'Foo';
457 * Moose::Cookbook::Meta::Recipe7
458 - A new recipe, creating a custom meta-instance class.
460 * Moose::Cookbook::Basics::Recipe5
461 - Fix various typos and mistakes. Includes a patch from Radu
464 * Moose::Cookbook::Basics::Recipe9
465 - Link to this recipe from Moose.pm's builder blurb
468 - When wrapping a function with a prototype, Moose::Exporter now
469 makes sure the wrapped function still has the same
470 prototype. (Daisuke Maki)
472 * Moose::Meta::Attribute
473 - Allow a subclass to set lazy_build for an inherited
477 - Explicitly depend on Data::OptList. We already had this dependency
478 via Sub::Exporter, but since we're using it directly we're
479 better off with it listed. (Sartak)
481 * Moose::Meta::Method::Constructor
482 - Make it easier to subclass the inlining behaviour. (Ash
485 * Moose::Manual::Delta
486 - Details significant changes in the history of Moose, along
487 with recommended workarounds.
489 * Moose::Manual::Contributing
490 - Contributor's guide to Moose.
492 * Moose::Meta::Method::Constructor
493 - The long-deprecated intialize_body method has been removed
494 (yes, spelled like that).
496 * Moose::Meta::Method::Destructor
497 - This is_needed method is now always a class method.
500 - Changes to the internals of how make_immutable works to match
501 changes in latest Class::MOP.
503 0.72 Mon, February 23, 2009
505 * Moose::Meta::Method::Constructor
506 - A mutable class accepted Foo->new(undef) without complaint,
507 while an immutable class would blow up with an unhelpful
508 error. Now, in both cases we throw a helpful error
509 instead. Reported by doy.
511 0.71_01 Sun, February 22, 2009
513 - Hopefully fixed some POD errors in a few recipes that caused
514 them to display weird on search.cpan.org.
516 * Moose::Util::TypeConstraints
517 - Calling type or subtype without the sugar helpers (as, where,
518 message) is now deprecated.
519 - The subtype function tried hard to guess what you meant, but
520 often got it wrong. For example:
522 my $subtype = subtype as 'ArrayRef[Object]';
524 This caused an error in the past, but now works as you'd
528 - Make sure Moose.pm is loaded before calling
529 Moose->throw_error. This wasn't normally an issue, but could
530 bite you in weird cases.
532 0.71 Thu, February 19, 2009
533 * Moose::Cookbook::Basics::Recipe11
534 - A new recipe which demonstrates the use of BUILDARGS and
537 * Moose::Cookbook::Roles::Recipe3
538 - A new recipe, applying a role to an object instance. (Dave
542 - Allow overriding specific keywords from "also" packages. (doy)
545 - Replace hardcoded cookbook tests with Test::Inline to ensure
546 the tests match the actual code in the recipes. (Dave Rolsky)
549 - Working on the above turned up a number of little bugs in the
550 recipe code. (Dave Rolsky)
552 * Moose::Util::TypeConstraints::Optimized
553 - Just use Class::MOP for the optimized ClassName check. (Dave
556 0.70 Sat, February 14, 2009
557 * Moose::Util::TypeConstraints
558 - Added the RoleName type (stevan)
559 - added tests for this (stevan)
561 * Moose::Cookbook::Basics::Recipe3
562 - Updated the before qw[left right] sub to be a little more
563 defensive about what it accepts (stevan)
564 - added more tests to t/000_recipies/basics/003_binary_tree.t
568 - We now always call DEMOLISHALL, even if a class does not
569 define DEMOLISH. This makes sure that method modifiers on
570 DEMOLISHALL work as expected. (doy)
571 - added tests for this (EvanCarroll)
573 * Moose::Util::MetaRole
574 - Accept roles for the wrapped_method_metaclass (rafl)
575 - added tests for this (rafl)
577 * Moose::Meta::Attribute
578 - We no longer pass the meta-attribute object as a final
579 argument to triggers. This actually changed for inlined code a
580 while back, but the non-inlined version and the docs were
584 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
585 they require 0.11. (Dave Rolsky)
588 - Lots of small changes to the manual, cookbook, and
589 elsewhere. These were based on feedback from various
590 users, too many to list here. (Dave Rolsky)
592 0.69 Thu, February 12, 2009
594 - Make some keyword errors use throw_error instead of croak
595 since Moose::Exporter wraps keywords now (Sartak)
598 - Revised every recipe for style and clarity. Also moved some
599 documentation out of cookbook recipes and into Moose::Manual
600 pages. This work was funded as part of the Moose docs grant
601 from TPF. (Dave Rolsky)
603 * Moose::Meta::Method::Delegation
604 - If the attribute doing the delegation was not populated, the
605 error message did not specify the attribute name
608 0.68 Wed, February 4, 2009
610 - Many spelling, typo, and formatting fixes by daxim.
612 * Moose::Manual::Attributes
613 - The NAME section in the POD used "Attribute" so search.cpan
614 didn't resolve links from other documents properly.
616 * Moose::Meta::Method::Overriden
617 - Now properly spelled as Overridden. Thanks to daxim for
620 0.67 Tue, February 3, 2009
622 - Lots of little typo fixes and a few clarifications. Several
623 pages didn't have proper titles, and so weren't actually
624 visible on search.cpan.org. Thanks to hanekomu for a variety
625 of fixes and formatting improvements.
627 0.66 Tue, February 3, 2009
629 - This is a brand new, extensive manual for Moose. This aims to
630 provide a complete introduction to all of Moose's
631 features. This work was funded as part of the Moose docs grant
632 from TPF. (Dave Rolsky)
634 * Moose::Meta::Attribute
635 - Added a delegation_metaclass method to replace a hard-coded
636 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
638 * Moose::Util::TypeConstraints
639 - If you created a subtype and passed a parent that Moose didn't
640 know about, it simply ignored the parent. Now it automatically
641 creates the parent as a class type. This may not be what you
642 want, but is less broken than before. (Dave Rolsky)
644 * Moose::Util::TypeConstraints
645 - This module tried throw errors by calling Moose->throw_error,
646 but it did not ensure that Moose was loaded first. This could
647 cause very unhelpful errors when it tried to throw an error
648 before Moose was loaded. (Dave Rolsky)
650 * Moose::Util::TypeConstraints
651 - You could declare a name with subtype such as "Foo!Bar" that
652 would be allowed, but if you used it in a parameterized type
653 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
654 vetting on names created via the sugar functions, so that they
655 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
657 0.65 Thu, January 22, 2008
658 * Moose and Moose::Meta::Method::Overridden
659 - If an overridden method called super(), and then the
660 superclass's method (not overridden) _also_ called super(),
661 Moose went into an endless recursion loop. Test provided by
662 Chris Prather. (Dave Rolsky)
664 * Moose::Meta::TypeConstraint
665 - All methods are now documented. (gphat)
667 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
668 - Fixed some bogus failures that occurred because we tried to
669 validate filesystem paths in a very ad-hoc and
670 not-quite-correct way. (Dave Rolsky)
672 * Moose::Util::TypeConstraints
673 - Added maybe_type to exports. See docs for details. (rjbs)
676 - Added Moose::Util::TypeConstraints to the SEE ALSO
680 - Methods created via an attribute can now fulfill a "requires"
681 declaration for a role. (nothingmuch)
683 * Moose::Meta::Method::*
684 - Stack traces from inlined code will now report its line and
685 file as being in your class, as opposed to in Moose
688 0.64 Wed, December 31, 2008
689 * Moose::Meta::Method::Accessor
690 - Always inline predicate and clearer methods (Sartak)
692 * Moose::Meta::Attribute
693 - Support for parameterized traits (Sartak)
694 - verify_against_type_constraint method to avoid duplication
695 and enhance extensibility (Sartak)
698 - Tests (but no support yet) for parameterized traits (Sartak)
701 - Require Class::MOP 0.75+, which has the side effect of making
702 sure we work on Win32. (Dave Rolsky)
704 0.63 Mon, December 8, 2008
706 - Some small grammar tweaks and bug fixes in non-Moose example
709 0.62_02 Fri, December 5, 2008
710 * Moose::Meta::Role::Application::ToClass
711 - When a class does not provide all of a role's required
712 methods, the error thrown now mentions all of the missing
713 methods, as opposed to just the first one found. Requested by
714 Curtis Poe (RT #41119). (Dave Rolsky)
716 * Moose::Meta::Method::Constructor
717 - Moose will no longer inline a constructor for your class
718 unless it inherits its constructor from Moose::Object, and
719 will warn when it doesn't inline. If you want to force
720 inlining anyway, pass "replace_constructor => 1" to
721 make_immutable. Addresses RT #40968, reported by Jon
722 Swartz. (Dave Rolsky)
723 - The quoting of default values could be broken if the default
724 contained a single quote ('). Now we use quotemeta to escape
725 anything potentially dangerous in the defaults. (Dave Rolsky)
727 0.62_01 Wed, December 3, 2008
729 - use the method->execute API for BUILDALL
730 and DEMOLISHALL (Sartak)
732 * Moose::Util::TypeConstraints
733 - We now make all the type constraint meta classes immutable
734 before creating the default types provided by Moose. This
735 should make loading Moose a little faster. (Dave Rolsky)
737 0.62 Wed November 26, 2008
738 * Moose::Meta::Role::Application::ToClass
739 Moose::Meta::Role::Application::ToRole
740 - fixed issues where excluding and aliasing the
741 same methods for a single role did not work
742 right (worked just fine with multiple
744 - added test for this (stevan)
746 * Moose::Meta::Role::Application::RoleSummation
747 - fixed the error message when trying to compose
748 a role with a role it excludes (Sartak)
751 - Catch another case where recursion caused the value
752 of $CALLER to be stamped on (t0m)
753 - added test for this (t0m)
756 - Remove the make_immutable keyword, which has been
757 deprecated since April. It breaks metaclasses that
758 use Moose without no Moose (Sartak)
760 * Moose::Meta::Attribute
761 - Removing an attribute from a class now also removes delegation
762 (handles) methods installed for that attribute (t0m)
763 - added test for this (t0m)
765 * Moose::Meta::Method::Constructor
766 - An attribute with a default that looked like a number (but was
767 really a string) would accidentally be treated as a number
768 when the constructor was made immutable (perigrin)
769 - added test for this (perigrin)
772 - create method for constructing a role
774 - added test for this (Sartak)
775 - anonymous roles! (Sartak)
776 - added test for this (Sartak)
779 - more consistent error messages (Sartak)
781 * Moose::Cookbook::Roles::Recipe1
782 - attempt to explain why a role that just requires
783 methods is useful (Sartak)
785 0.61 Fri November 7, 2008
786 * Moose::Meta::Attribute
787 - When passing a role to handles, it will be loaded if necessary
791 - Method objects returned by get_method (and other methods)
792 Could end up being returned without an associated_metaclass
793 attribute. Removing get_method_map, which is provided by
794 Class::MOP::Class, fixed this. The Moose version did nothing
795 different from its parent except introduce a bug. (Dave Rolsky)
796 - added tests for this (jdv79)
799 - Added a $VERSION to all .pm files which didn't have one. Fixes
800 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
802 * Moose::Cookbook::Basics::Recipe4
803 * Moose::Cookbook::Basics::Recipe6
804 - These files had spaces on the first line of the SYNOPSIS, as
805 opposed to a totally empty line. According to RT #40432, this
806 confuses POD parsers. (Dave Rolsky)
808 0.60 Fri October 24, 2008
810 - Passing "-traits" when loading Moose caused the Moose.pm
811 exports to be broken. Reported by t0m. (Dave Rolsky)
812 - Tests for this bug. (t0m)
815 - Change resolve_metaclass alias to use the new
816 load_first_existing_class function. This makes it a lot
817 simpler, and also around 5 times faster. (t0m)
818 - Add caching to resolve_metaclass_alias, which gives an order
819 of magnitude speedup to things which repeatedly call the
820 Moose::Meta::Attribute->does method, notably MooseX::Storage
823 * Moose::Util::TypeConstraint
824 - Put back the changes for parameterized constraints that
825 shouldn't have been removed in 0.59. We still cannot parse
826 them, but MooseX modules can create them in some other
827 way. See the 0.58 changes for more details. (jnapiorkowski)
828 - Changed the way subtypes are created so that the job is
829 delegated to a type constraint parent. This clears up some
830 hardcoded checking and should allow correct subtypes of
831 Moose::Meta::Type::Constraint. Don't rely on this new API too
832 much (create_child_type) because it may go away in the
833 future. (jnapiorkowski)
835 * Moose::Meta::TypeConstraint::Union
836 - Type constraint names are sorted as strings, not numbers.
839 * Moose::Meta::TypeConstraint::Parameterizable
840 - New parameterize method. This can be used as a factory method
841 to make a new type constraint with a given parameterized
842 type. (jnapiorkowski)
843 - added tests (jnapiorkowski)
845 0.59 Tue October 14, 2008
847 - Add abridged documentation for builder/default/initializer/
848 predicate, and link to more details sections in
849 Class::MOP::Attribute. (t0m)
851 * Moose::Util::TypeConstraints
852 - removed prototypes from all but the &-based stuff (mst)
854 * Moose::Util::TypeConstraints
855 - Creating a anonymous subtype with both a constraint and a
856 message failed with a very unhelpful error, but should just
857 work. Reported by t0m. (Dave Rolsky)
860 - Some tests that used Test::Warn if it was available failed
861 with older versions of Test::Warn. Reported by Fayland. (Dave
863 - Test firing behavior of triggers in relation to builder/default/
865 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
866 kinds of supported type. (t0m)
869 - In create(), do not pass "roles" option to the superclass
870 - added related test that creates an anon metaclass with
873 * Moose::Meta::TypeConstraint::Class
874 * Moose::Meta::TypeConstraint::Role
875 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
876 other types (as per change in 0.55_02). (t0m)
878 * Moose::Meta::TypeConstraint::Registry
879 - Fix warning when dealing with unknown type names (t0m)
881 * Moose::Util::TypeConstraints
882 - Reverted changes from 0.58 related to handle parameterized
883 types. This caused random failures on BSD and Win32 systems,
884 apparently related to the regex engine. This means that Moose
885 can no longer parse structured type constraints like
886 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
887 supported in a slightly different way via MooseX::Types some
888 time in the future. (Dave Rolsky)
890 0.58 Sat September 20, 2008
891 !! This release has an incompatible change regarding !!
892 !! how roles add methods to a class !!
894 * Roles and role application
895 ! Roles now add methods by calling add_method, not
896 alias_method. They make sure to always provide a method
897 object, which will be cloned internally. This means that it is
898 now possible to track the source of a method provided by a
899 role, and even follow its history through intermediate roles.
901 This means that methods added by a role now show up when
902 looking at a class's method list/map. (Dave Rolsky)
905 - From this release on, we'll try to maintain a list of
906 conflicting modules, and warn you if you have one
907 installed. For example, this release conflicts with ...
908 - MooseX::Singleton <= 0.11
909 - MooseX::Params::Validate <= 0.05
912 In general, we try to not break backwards compatibility for
913 most Moose users, but MooseX modules and other code which
914 extends Moose's metaclasses is often affected by very small
915 changes in the Moose internals.
917 * Moose::Meta::Method::Delegation
918 * Moose::Meta::Attribute
919 - Delegation methods now have their own method class. (Dave
922 * Moose::Meta::TypeConstraint::Parameterizable
923 - Added a new method 'parameterize' which is basically a factory
924 for the containing constraint. This makes it easier to create
925 new types of parameterized constraints. (jnapiorkowski)
927 * Moose::Meta::TypeConstraint::Union
928 - Changed the way Union types canonicalize their names to follow
929 the normalized TC naming rules, which means we strip all
930 whitespace. (jnapiorkowski)
932 * Moose::Util::TypeConstraints
933 - Parameter and Union args are now sorted, this makes Int|Str
934 the same constraint as Str|Int. (jnapiorkowski)
935 - Changes to the way Union types are parsed to more correctly
936 stringify their names. (jnapiorkowski)
937 - When creating a parameterized type, we now use the new
938 parameterize method. (jnapiorkowski)
939 - Incoming type constraint strings are now normalized to remove
940 all whitespace differences. (jnapiorkowski)
941 - Changed the way we parse type constraint strings so that we now
942 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
943 constraints. This lays the foundation for more flexible type
944 constraint implementations.
946 * Tests and docs for all the above. (jnapiorkowski)
950 - Moose::Exporter will no longer remove a subroutine that the
951 exporting package re-exports. Moose re-exports the
952 Carp::confess function, among others. The reasoning is that we
953 cannot know whether you have also explicitly imported those
954 functions for your own use, so we err on the safe side and
955 always keep them. (Dave Rolsky)
956 - added tests for this (rafl)
959 - Changes to how we fix metaclass compatibility that are much
960 too complicated to go into. The summary is that Moose is much
961 less likely to complain about metaclass incompatibility
962 now. In particular, if two metaclasses differ because
963 Moose::Util::MetaRole was used on the two corresponding
964 classes, then the difference in roles is reconciled for the
965 subclass's metaclass. (Dave Rolsky)
966 - Squashed an warning in _process_attribute (thepler)
969 - throw exceptions (sooner) for invalid attribute names (thepler)
970 - added tests for this (thepler)
972 * Moose::Util::MetaRole
973 - If you explicitly set a constructor or destructor class for a
974 metaclass object, and then applied roles to the metaclass,
975 that explicitly set class would be lost and replaced with the
979 * Moose::Meta::Attribute
980 * Moose::Meta::Method
983 * Moose::Error::Default
984 * Moose::Error::Croak
985 * Moose::Error::Confess
986 - All instances of confess() changed to use overridable
987 C<throw_error> method. This method ultimately calls a class
988 constructor, and you can change the class being called. In
989 addition, errors now pass more information than just a string.
990 The default C<error_class> behaves like C<Carp::confess>, so
991 the behavior is not visibly different for end users.
993 0.57 Wed September 3, 2008
995 - A new bit of doc intended to introduce folks familiar with
996 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
999 - Shows examples of two classes, each done first with and then
1000 without Moose. This makes a nice parallel to
1001 Moose::Intro. (Dave Rolsky)
1003 * Moose::Util::TypeConstraints
1004 - Fixed a bug in find_or_parse_type_constraint so that it
1005 accepts a Moose::Meta::TypeConstraint object as the parent
1006 type, not just a name (jnapiorkowski)
1007 - added tests (jnapiorkowski)
1010 - If Sub::Name was not present, unimporting failed to actually
1011 remove some sugar subs, causing test failures (Dave Rolsky)
1013 0.56 Mon September 1, 2008
1014 For those not following the series of dev releases, there are
1015 several major changes in this release of Moose.
1016 ! Moose::init_meta should now be called as a method. See the
1019 - Major performance improvements by nothingmuch.
1021 - New modules for extension writers, Moose::Exporter and
1022 Moose::Util::MetaRole by Dave Rolsky.
1024 - Lots of doc improvements and additions, especially in the
1027 - Various bug fixes.
1029 * Removed all references to the experimental-but-no-longer-needed
1030 Moose::Meta::Role::Application::ToMetaclassInstance.
1032 * Require Class::MOP 0.65.
1034 0.55_04 Sat August 30, 2008
1035 * Moose::Util::MetaRole
1036 * Moose::Cookbook::Extending::Recipe2
1037 - This simplifies the application of roles to any meta class, as
1038 well as the base object class. Reimplemented metaclass traits
1039 using this module. (Dave Rolsky)
1041 * Moose::Cookbook::Extending::Recipe1
1042 - This a new recipe, an overview of various ways to write Moose
1043 extensions (Dave Rolsky)
1045 * Moose::Cookbook::Extending::Recipe3
1046 * Moose::Cookbook::Extending::Recipe4
1047 - These used to be Extending::Recipe1 and Extending::Recipe2,
1050 0.55_03 Fri August 29, 2008
1051 * No changes from 0.55_02 except increasing the Class::MOP
1052 dependency to 0.64_07.
1054 0.55_02 Fri August 29, 2008
1055 * Makefile.PL and Moose.pm
1056 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1058 * Moose::Util::TypeConstraints
1059 - Fix warnings from find_type_constraint if the type is not
1062 * Moose::Meta::TypeConstraint
1063 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1064 return false if the type you specify cannot be found in the
1065 type registry, rather than throwing an unhelpful and
1066 coincidental exception. (t0m).
1067 - added docs & test for this (t0m)
1069 * Moose::Meta::TypeConstraint::Registry
1070 - add_type_constraint now throws an exception if a parameter is
1072 - added docs & test for this (t0m)
1074 * Moose::Cookbook::FAQ
1075 - Added a faq entry on the difference between "role" and "trait"
1079 - Fixed a bug that caused role composition to not see a required
1080 method when that method was provided by another role being
1081 composed at the same time. (Dave Rolsky)
1082 - test and bug finding (tokuhirom)
1084 0.55_01 Wed August 20, 2008
1086 !! Calling Moose::init_meta as a function is now !!
1087 !! deprecated. Please see the Moose.pm docs for details. !!
1089 * Moose::Meta::Method::Constructor
1090 - Fix inlined constructor so that values produced by default
1091 or builder methods are coerced as required. (t0m)
1092 - added test for this (t0m)
1094 * Moose::Meta::Attribute
1095 - A lazy attribute with a default or builder did not attempt to
1096 coerce the default value. The immutable code _did_
1098 - added test for this (t0m)
1101 - This is a new helper module for writing "Moose-alike"
1102 modules. This should make the lives of MooseX module authors
1103 much easier. (Dave Rolsky)
1106 * Moose::Cookbook::Meta::Recipe5
1107 - Implemented metaclass traits (and wrote a recipe for it):
1109 use Moose -traits => 'Foo'
1111 This should make writing small Moose extensions a little
1112 easier (Dave Rolsky)
1114 * Moose::Cookbook::Basics::Recipe1
1115 - Removed any examples of direct hashref access, and applied an
1116 editorial axe to reduce verbosity. (Dave Rolsky)
1118 * Moose::Cookbook::Basics::Recipe1
1119 - Also applied an editorial axe here. (Dave Rolsky)
1122 * Moose::Cookbook::Extending::Recipe1
1123 * Moose::Cookbook::Extending::Recipe2
1124 - Rewrote extending and embedding moose documentation and
1125 recipes to use Moose::Exporter (Dave Rolsky)
1129 - These two modules now warn when you load them from the main
1130 package "main" package, because we will not export sugar to
1131 main. Previously it just did nothing. (Dave Rolsky)
1134 - Now provide an init_meta method just like Moose.pm, and you
1135 can call this to provide an alternate role metaclass. (Dave
1136 Rolsky and nothingmuch)
1137 - get_method_map now respects the package cache flag (nothingmuch)
1140 - Two new methods - add_method and wrap_method_body
1144 - Optimizations including allowing constructors to accept hash
1145 refs, making many more classes immutable, and making
1146 constructors immutable. (nothingmuch)
1148 0.55 Sun August 3, 2008
1149 * Moose::Meta::Attribute
1150 - breaking down the way 'handles' methods are
1151 created so that the process can be more easily
1152 overridden by subclasses (stevan)
1154 * Moose::Meta::TypeConstraint
1155 - fixing what is passed into a ->message with
1156 the type constraints (RT #37569)
1157 - added tests for this (Charles Alderman)
1159 * Moose::Util::TypeConstraints
1160 - fix coerce to accept anon types like subtype can (mst)
1163 - reorganized the recipes into sections - Basics, Roles, Meta,
1164 Extending - and wrote abstracts for each section (Dave Rolsky)
1166 * Moose::Cookbook::Basics::Recipe10
1167 - A new recipe that demonstrates operator overloading
1168 in combination with Moose. (bluefeet)
1170 * Moose::Cookbook::Meta::Recipe1
1171 - an introduction to what meta is and why you'd want to make
1172 your own metaclass extensions (Dave Rolsky)
1174 * Moose::Cookbook::Meta::Recipe4
1175 - a very simple metaclass example (Dave Rolsky)
1177 * Moose::Cookbook::Extending::Recipe1
1178 - how to write a Moose-alike module to use your own object base
1181 * Moose::Cookbook::Extending::Recipe2
1182 - how to write modules with an API just like C<Moose.pm> (Dave
1186 - Tons of fixes, both syntactical and grammatical (Dave
1187 Rolsky, Paul Fenwick)
1189 0.54 Thurs. July 3, 2008
1190 ... this is not my day today ...
1192 * Moose::Meta::Attribute
1193 - fixed legal_options_for_inheritance such that
1194 clone_and_inherit options still works for
1195 Class::MOP::Attribute objects and therefore
1196 does not break MooseX::AttributeHelpers
1199 0.53 Thurs. July 3, 2008
1200 * Whoops, I guess I should run 'make manifest' before
1201 actually releasing the module. No actual changes
1202 in this release, except the fact that it includes
1203 the changes that I didn't include in the last
1206 0.52 Thurs. July 3, 2008
1208 - added "FEATURE REQUESTS" section to the Moose docs
1209 to properly direct people (stevan) (RT #34333)
1210 - making 'extends' croak if it is passed a Role since
1211 this is not ever something you want to do
1212 (fixed by stevan, found by obra)
1213 - added tests for this (stevan)
1216 - adding support for DOES (as in UNIVERSAL::DOES)
1218 - added test for this
1220 * Moose::Meta::Attribute
1221 - added legal_options_for_inheritance (wreis)
1222 - added tests for this (wreis)
1224 * Moose::Cookbook::Snacks::*
1225 - removed some of the unfinished snacks that should
1226 not have been released yet. Added some more examples
1227 to the 'Keywords' snack. (stevan)
1229 * Moose::Cookbook::Style
1230 - added general Moose "style guide" of sorts to the
1231 cookbook (nothingmuch) (RT #34335)
1234 - added more BUILDARGS tests (stevan)
1236 0.51 Thurs. Jun 26, 2008
1238 - add unimport so "no Moose::Role" actually does
1241 * Moose::Meta::Role::Application::ToRole
1242 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1243 order to provide its own implementation, that method still got
1244 added to the list of required methods for consumers of
1245 RoleB. Now an aliased method is only added to the list of
1246 required methods if the role doing the aliasing does not
1247 provide its own implementation. See Recipe 11 for an example
1248 of all this. (Dave Rolsky)
1249 - added tests for this
1251 * Moose::Meta::Method::Constructor
1252 - when a single argument that wasn't a hashref was provided to
1253 an immutabilized constructor, the error message was very
1254 unhelpful, as opposed to the non-immutable error. Reported by
1256 - added test for this (Dave Rolsky)
1258 * Moose::Meta::Attribute
1259 - added support for meta_attr->does("ShortAlias") (sartak)
1260 - added tests for this (sartak)
1261 - moved the bulk of the `handles` handling to the new
1262 install_delegation method (Stevan)
1265 - Added BUILDARGS, a new step in new()
1267 * Moose::Meta::Role::Application::RoleSummation
1268 - fix typos no one ever sees (sartak)
1270 * Moose::Util::TypeConstraints
1271 * Moose::Meta::TypeConstraint
1272 * Moose::Meta::TypeCoercion
1273 - Attempt to work around the ??{ } vs. threads issue
1275 - Some null_constraint optimizations
1277 0.50 Thurs. Jun 11, 2008
1278 - Fixed a version number issue by bumping all modules
1281 0.49 Thurs. Jun 11, 2008
1282 !! This version now approx. 20-25% !!
1283 !! faster with new Class::MOP 0.59 !!
1285 * Moose::Meta::Attribute
1286 - fixed how the is => (ro|rw) works with
1287 custom defined reader, writer and accessor
1289 - added docs for this (TODO).
1290 - added tests for this (Thanks to Penfold)
1291 - added the custom attribute alias for regular
1292 Moose attributes which is "Moose"
1293 - fix builder and default both being used
1298 Moose::Meta::Attribute
1300 Moose::Meta::Role::Composite
1301 Moose::Util::TypeConstraints
1302 - switched usage of reftype to ref because
1306 - changing add_package_symbol to use the new
1310 - fixed how DEMOLISHALL is called so that it
1311 can be overrided in subclasses (thanks to Sartak)
1312 - added test for this (thanks to Sartak)
1314 * Moose::Util::TypeConstraints
1315 - move the ClassName type check code to
1316 Class::MOP::is_class_loaded (thanks to Sartak)
1318 * Moose::Cookbook::Recipe11
1319 - add tests for this (thanks to tokuhirom)
1321 0.48 Thurs. May 29, 2008
1322 (early morning release engineering)--
1324 - fixing the version in Moose::Meta::Method::Destructor
1325 which was causing the indexer to choke
1327 0.47 Thurs. May 29, 2008
1328 (late night release engineering)--
1330 - fixing the version is META.yml, no functional
1331 changes in this release
1333 0.46 Wed. May 28, 2008
1334 !! This version now approx. 20-25% !!
1335 !! faster with new Class::MOP 0.57 !!
1337 * Moose::Meta::Class
1338 - some optimizations of the &initialize method
1339 since it is called so often by &meta
1341 * Moose::Meta::Class
1343 - now use the get_all_package_symbols from the
1344 updated Class::MOP, test suite is now 10 seconds
1347 * Moose::Meta::Method::Destructor
1348 - is_needed can now also be called as a class
1349 method for immutablization to check if the
1350 destructor object even needs to be created
1353 * Moose::Meta::Method::Destructor
1354 Moose::Meta::Method::Constructor
1355 - added more descriptive error message to help
1356 keep people from wasting time tracking an error
1357 that is easily fixed by upgrading.
1359 0.45 Saturday, May 24, 2008
1361 - Because of work in Class::MOP 0.57, all
1362 XS based functionality is now optional
1363 and a Pure Perl version is supplied
1364 - the CLASS_MOP_NO_XS environment variable
1365 can now be used to force non-XS versions
1367 - several of the packages have been tweaked
1368 to take care of this, mostly we added
1369 support for the package_name and name
1370 variables in all the Method metaclasses
1371 - before/around/after method modifiers now
1372 support regexp matching of names
1373 (thanks to Takatoshi Kitano)
1374 - tests added for this
1375 - NOTE: this only works for classes, it
1376 is currently not supported in roles,
1377 but, ... patches welcome
1378 - All usage of Carp::confess have been replaced
1379 by Carp::croak in the "keyword" functions since
1380 the stack trace is usually not helpful
1383 - All usage of Carp::confess have been replaced
1384 by Carp::croak in the "keyword" functions since
1385 the stack trace is usually not helpful
1386 - The 'has' keyword for roles now accepts the
1387 same array ref form that Moose.pm does
1388 (has [qw/foo bar/] => (is => 'rw', ...))
1389 - added test for this
1391 * Moose::Meta::Attribute
1392 - trigger on a ro-attribute is no longer an
1393 error, as it's useful to trigger off of the
1396 * Moose::Meta::Class
1397 - added same 'add_package_symbol' fix as in
1401 - does_role now handles non-Moose classes
1403 - added tests for this
1404 - added the 'add_method_modifier' function
1405 (thanks to Takatoshi Kitano)
1407 * Moose::Util::TypeConstraints
1408 - subtypes of parameterizable types now are
1409 themselves parameterizable types
1411 * Moose::Meta::Method::Constructor
1412 - fixed bug where trigger was not being
1413 called by the inlined immutable
1415 - added test for this (thanks to Caelum)
1417 * Moose::Meta::Role::Application::ToInstance
1418 - now uses the metaclass of the instance
1419 (if possible) to create the anon-class
1420 (thanks Jonathan Rockway)
1422 * Moose::Cookbook::Recipe22
1423 - added the meta-attribute trait recipe
1427 - fixed hash-ordering test bug that was
1428 causing occasional cpantester failures
1429 - renamed the t/000_recipe/*.t tests to be
1430 more descriptive (thanks to Sartak)
1432 0.44 Sat. May 10, 2008
1434 - made make_immutable warning cluck to
1435 show where the error is (thanks mst)
1438 - BUILDALL and DEMOLISHALL now call
1439 ->body when looping through the
1440 methods, to avoid the overloaded
1442 - fixed issue where DEMOLISHALL was
1443 eating the $@ values, and so not
1444 working correctly, it still kind of
1445 eats them, but so does vanilla perl
1446 - added tests for this
1448 * Moose::Cookbook::Recipe7
1449 - added new recipe for immutable
1450 functionality (thanks Dave Rolsky)
1452 * Moose::Cookbook::Recipe9
1453 - added new recipe for builder and
1454 lazy_build (thanks Dave Rolsky)
1456 * Moose::Cookbook::Recipe11
1457 - added new recipe for method aliasing
1458 and exclusion with Roles (thanks Dave Rolsky)
1461 - fixed Win32 test failure (thanks spicyjack)
1463 ~ removed Build.PL and Module::Build compat
1464 since Module::Install has done that.
1466 0.43 Wed. April, 30, 2008
1468 drink more coffee before
1469 doing release engineering
1471 - whoops, forgot to do the smolder tests,
1472 and we broke some of the custom meta-attr
1473 modules. This fixes that.
1475 0.42 Mon. April 28, 2008
1476 - some bad tests slipped by, nothing else
1477 changed in this release (cpantesters++)
1479 - upped the Class::MOP dependency to 0.55
1480 since we have tests which need the C3
1483 0.41 Mon. April 28, 2008
1484 ~~ numerous documentation updates ~~
1486 - Changed all usage of die to Carp::croak for better
1487 error reporting (initial patch by Tod Hagan)
1489 ** IMPORTANT NOTE **
1490 - the make_immutable keyword is now deprecated, don't
1491 use it in any new code and please fix your old code
1492 as well. There will be 2 releases, and then it will
1498 - refactored the way inner and super work to avoid
1499 any method/@ISA cache penalty (nothingmuch)
1501 * Moose::Meta::Class
1502 - fixing &new_object to make sure trigger gets the
1503 coerced value (spotted by Charles Alderman on the
1505 - added test for this
1507 * Moose::Meta::Method::Constructor
1508 - immutable classes which had non-lazy attributes were calling
1509 the default generating sub twice in the constructor. (bug
1510 found by Jesse Luehrs, fixed by Dave Rolsky)
1511 - added tests for this (Dave Rolsky)
1512 - fix typo in initialize_body method (nothingmuch)
1514 * Moose::Meta::Method::Destructor
1515 - fix typo in initialize_body method (nothingmuch)
1517 * Moose::Meta::Method::Overriden
1518 Moose::Meta::Method::Augmented
1519 - moved the logic for these into their own
1520 classes (nothingmuch)
1522 * Moose::Meta::Attribute
1523 - inherited attributes may now be extended without
1524 restriction on the type ('isa', 'does') (Sartak)
1525 - added tests for this (Sartak)
1526 - when an attribute property is malformed (such as lazy without
1527 a default), give the name of the attribute in the error
1529 - added the &applied_traits and &has_applied_traits methods
1530 to allow introspection of traits
1531 - added tests for this
1532 - moved 'trait' and 'metaclass' argument handling to here from
1534 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1535 '+foo' syntax) (nothingmuch)
1536 - added tests for this (t0m)
1539 - localize $@ inside DEMOLISHALL to avoid it
1540 eating $@ (found by Ernesto)
1541 - added test for this (thanks to Ernesto)
1543 * Moose::Util::TypeConstraints
1544 - &find_type_constraint now DWIMs when given an
1545 type constraint object or name (nothingmuch)
1546 - &find_or_create_type_constraint superseded with a number of more
1548 - find_or_create_{isa,does}_type_constraint
1549 - find_or_parse_type_constraint
1551 * Moose::Meta::TypeConstraint
1552 Moose::Meta::TypeConstraint::Class
1553 Moose::Meta::TypeConstraint::Role
1554 Moose::Meta::TypeConstraint::Enum
1555 Moose::Meta::TypeConstraint::Union
1556 Moose::Meta::TypeConstraint::Parameterized
1557 - added the &equals method for comparing two type
1558 constraints (nothingmuch)
1559 - added tests for this (nothingmuch)
1561 * Moose::Meta::TypeConstraint
1562 - add the &parents method, which is just an alias to &parent.
1563 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1565 * Moose::Meta::TypeConstraint::Class
1566 - added the class attribute for introspection purposes
1568 - added tests for this
1570 * Moose::Meta::TypeConstraint::Enum
1571 Moose::Meta::TypeConstraint::Role
1572 - broke these out into their own classes (nothingmuch)
1574 * Moose::Cookbook::Recipe*
1575 - fixed references to test file locations in the POD
1576 and updated up some text for new Moose features
1580 - Added &resolve_metaclass_alias, a helper function for finding an actual
1581 class for a short name (e.g. in the traits list)
1583 0.40 Fri. March 14, 2008
1584 - I hate Pod::Coverage
1586 0.39 Fri. March 14, 2008
1588 - documenting the use of '+name' with attributes
1589 that come from recently composed roles. It makes
1590 sense, people are using it, and so why not just
1591 officially support it.
1592 - fixing the 'extends' keyword so that it will not
1593 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1596 - added the perl -Moose=+Class::Name feature to allow
1597 monkeypatching of classes in one liners
1600 - fixing the 'apply_all_roles' keyword so that it will not
1601 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1603 * Moose::Meta::Class
1604 - added ->create method which now supports roles (thanks to jrockway)
1605 - added tests for this
1606 - added ->create_anon_class which now supports roles and caching of
1607 the results (thanks to jrockway)
1608 - added tests for this
1609 - made ->does_role a little more forgiving when it is
1610 checking a Class::MOP era metaclasses.
1612 * Moose::Meta::Role::Application::ToInstance
1613 - it is now possible to pass extra params to be used when
1614 a role is applied to an the instance (rebless_params)
1615 - added tests for this
1617 * Moose::Util::TypeConstraints
1618 - class_type now accepts an optional second argument for a
1619 custom message. POD anotated accordingly (groditi)
1620 - added tests for this
1621 - it is now possible to make anon-enums by passing 'enum' an
1622 ARRAY ref instead of the $name => @values. Everything else
1624 - added tests for this
1627 - making test for using '+name' on attributes consumed
1628 from a role, it works and makes sense too.
1630 * Moose::Meta::Attribute
1631 - fix handles so that it doesn't return nothing
1632 when the method cannot be found, not sure why
1633 it ever did this originally, this means we now
1634 have slightly better support for AUTOLOADed
1636 - added more delegation tests
1637 - adding ->does method to this so as to better
1638 support traits and their introspection.
1639 - added tests for this
1642 - localizing the Data::Dumper configurations so
1643 that it does not pollute others (RT #33509)
1644 - made ->does a little more forgiving when it is
1645 passed Class::MOP era metaclasses.
1647 0.38 Fri. Feb. 15, 2008
1648 * Moose::Meta::Attribute
1649 - fixed initializer to correctly do
1650 type checking and coercion in the
1652 - added tests for this
1655 - fixed some finicky tests (thanks to konobi)
1657 0.37 Thurs. Feb. 14, 2008
1659 - fixed some details in Moose::init_meta
1660 and its superclass handling (thanks thepler)
1661 - added tests for this (thanks thepler)
1662 - 'has' now dies if you don't pass in name
1664 - added the 'make_immutable' keyword as a shortcut
1667 * Moose::Meta::Class
1668 Moose::Meta::Method::Constructor
1669 Moose::Meta::Attribute
1670 - making (init_arg => undef) work here too
1671 (thanks to nothingmuch)
1673 * Moose::Meta::Attribute
1674 Moose::Meta::Method::Constructor
1675 Moose::Meta::Method::Accessor
1676 - make lazy attributes respect attr initializers (rjbs)
1677 - added tests for this
1679 * Moose::Util::TypeConstraints
1680 Moose::Util::TypeConstraints::OptimizedConstraints
1681 Moose::Meta::TypeConstraints
1682 Moose::Meta::Attribute
1683 Moose::Meta::Method::Constructor
1684 Moose::Meta::Method::Accessor
1685 - making type errors use the
1686 assigned message (thanks to Sartak)
1687 - added tests for this
1689 * Moose::Meta::Method::Destructor
1690 - making sure DESTROY gets inlined properly
1691 with successive DEMOLISH calls (thanks to manito)
1693 * Moose::Meta::Attribute
1694 Moose::Meta::Method::Accessor
1695 - fixed handling of undef with type constraints
1697 - added tests for this
1700 - added &get_all_init_args and &get_all_attribute_values
1701 (thanks to Sartak and nothingmuch)
1703 0.36 Sat. Jan. 26, 2008
1705 Moose::Meta::Attribute
1706 - role type tests now support when roles are
1707 applied to non-Moose classes (found by ash)
1708 - added tests for this (thanks to ash)
1709 - couple extra tests to boost code coverage
1711 * Moose::Meta::Method::Constructor
1712 - improved fix for handling Class::MOP attributes
1713 - added test for this
1715 * Moose::Meta::Class
1716 - handled the add_attribute($attribute_meta_object)
1718 - added test for this
1720 0.35 Tues. Jan. 22, 2008
1721 * Moose::Meta::Method::Constructor
1722 - fix to make sure even Class::MOP attributes
1723 are handled correctly (Thanks to Dave Rolsky)
1724 - added test for this (also Dave Rolsky)
1726 * Moose::Meta::Class
1727 - improved error message on _apply_all_roles,
1728 you should now use Moose::Util::apply_all_roles
1729 and you shouldnt have been using a _ prefixed
1730 method in the first place ;)
1732 0.34 Mon. Jan. 21, 2008
1733 ~~~ more misc. doc. fixes ~~~
1734 ~~ updated copyright dates ~~
1736 Moose is now a postmodern object system :)
1737 - (see the POD for details)
1739 * <<Role System Refactoring>>
1740 - this release contains a major reworking and
1741 cleanup of the role system
1742 - 100% backwards compat.
1743 - Role application now restructured into seperate
1744 classes based on type of applicants
1745 - Role summation (combining of more than one role)
1746 is much cleaner and anon-classes are no longer
1747 used in this process
1748 - new Composite role metaclass
1749 - runtime application of roles to instances
1750 is now more efficient and re-uses generated
1751 classes when applicable
1753 * <<New Role composition features>>
1754 - methods can now be excluded from a given role
1756 - methods can now be aliased to another name (and
1757 still retain the original as well)
1759 * Moose::Util::TypeConstraints::OptimizedConstraints
1760 - added this module (see above)
1762 * Moose::Meta::Class
1763 - fixed the &_process_attribute method to be called
1764 by &add_attribute, so that the API is now correct
1766 * Moose::Meta::Method::Accessor
1767 - fixed bug when passing a list of values to
1768 an accessor would get (incorrectly) ignored.
1769 Thanks to Sartak for finding this ;)
1770 - added tests for this (Sartak again)
1772 * Moose::Meta::Method::Accessor
1773 Moose::Meta::Method::Constructor
1774 Moose::Meta::Attribute
1775 Moose::Meta::TypeConstraint
1776 Moose::Meta::TypeCoercion
1777 - lots of cleanup of such things as:
1779 - type constraint handling
1780 - error handling/messages
1781 (thanks to nothingmuch)
1783 * Moose::Meta::TypeConstraint::Parameterizable
1784 - added this module to support the refactor
1785 in Moose::Meta::TypeConstraint::Parameterized
1787 * Moose::Meta::TypeConstraint::Parameterized
1788 - refactored how these types are handled so they
1789 are more generic and not confined to ArrayRef
1793 - shortened some file names for better VMS support (RT #32381)
1795 0.33 Fri. Dec. 14, 2007
1796 !! Moose now loads 2 x faster !!
1797 !! with new Class::MOP 0.49 !!
1799 ++ new oose.pm module to make command line
1800 Moose-ness easier (see POD docs for more)
1802 * Moose::Meta::Class
1804 - several tweaks to take advantage of the
1805 new method map caching in Class::MOP
1807 * Moose::Meta::TypeConstraint::Parameterized
1808 - allow subtypes of ArrayRef and HashRef to
1809 be used as a container (sartak)
1810 - added tests for this
1811 - basic support for coercion to ArrayRef and
1812 HashRef for containers (sartak)
1813 - added tests for this
1815 * Moose::Meta::TypeCoercion
1816 - coercions will now create subtypes as needed
1817 so you can now add coercions to parameterized
1818 types without having to explictly define them
1819 - added tests for this
1821 * Moose::Meta::Method::Accessor
1822 - allow subclasses to decide whether we need
1823 to copy the value into a new variable (sartak)
1825 0.32 Tues. Dec. 4, 2007
1826 * Moose::Util::TypeConstraints
1827 - fixing how subtype aliases of unions work
1828 they should inherit the parent's coercion
1829 - added tests for this
1830 - you can now define multiple coercions on
1831 a single type at different times instead of
1832 having to do it all in one place
1833 - added tests for this
1835 * Moose::Meta::TypeConstraint
1836 - there is now a default constraint of sub { 1 }
1837 instead of Moose::Util::TypeConstraints setting
1840 * Moose::Meta::TypeCoercion
1841 * Moose::Meta::TypeCoercion::Union
1842 - added the &has_coercion_for_type and
1843 &add_type_coercions methods to support the
1844 new features above (although you cannot add
1845 more type coercions for Union types)
1847 0.31 Mon. Nov. 26, 2007
1848 * Moose::Meta::Attribute
1849 - made the +attr syntax handle extending types with
1850 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1851 now works if the original foo is an ArrayRef.
1852 - added tests for this.
1853 - delegation now works even if the attribute does not
1854 have a reader method using the get_read_method_ref
1855 method from Class::MOP::Attribute.
1856 - added tests for this
1857 - added docs for this
1859 * Moose::Util::TypeConstraints
1860 - passing no "additional attribute info" to
1861 &find_or_create_type_constraint will no longer
1862 attempt to create an __ANON__ type for you,
1863 instead it will just return undef.
1864 - added docs for this
1866 0.30 Fri. Nov. 23, 2007
1867 * Moose::Meta::Method::Constructor
1868 -builder related bug in inlined constructor. (groditi)
1870 * Moose::Meta::Method::Accessor
1871 - genereate unnecessary calls to predicates and refactor
1872 code generation for runtime speed (groditi)
1874 * Moose::Util::TypeConstraints
1875 - fix ClassName constraint to introspect symbol table (mst)
1876 - added more tests for this (mst)
1877 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1878 with work correctly.
1879 - added tests for this
1882 - adding the link to Recipie 11 (written by Sartak)
1883 - adding test for SYNOPSIS code
1886 - New tests for builder bug. Upon instantiation, if an
1887 attribute had a builder, no value and was not lazy the
1888 builder default was not getting run, oops. (groditi)
1890 0.29 Tues. Nov. 13, 2007
1891 * Moose::Meta::Attribute
1892 - Fix error message on missing builder method (groditi)
1894 * Moose::Meta::Method::Accessor
1895 - Fix error message on missing builder method (groditi)
1898 - Add test to check for the correct error message when
1899 builder method is missing (groditi)
1901 0.28 Tues. Nov. 13, 2007
1902 - 0.27 packaged incorrectly (groditi)
1904 0.27 Tues. Nov. 13, 2007
1905 * Moose::Meta::Attribute
1906 - Added support for the new builder option (groditi)
1907 - Added support for lazy_build option (groditi)
1908 - Changed slot initialization for predicate changes (groditi)
1910 * Moose::Meta::Method::Accessor
1911 - Added support for lazy_build option (groditi)
1912 - Fix inline methods to work with corrected predicate
1915 * Moose::Meta::Method::Constructor
1916 - Added support for lazy_build option (groditi)
1919 - tests for builder and lazy_build (groditi)
1921 * fixing some misc. bits in the docs that
1922 got mentioned on CPAN Forum & perlmonks
1925 - fixed how required methods are handled
1926 when they encounter overriden or modified
1927 methods from a class (thanks to confound).
1928 - added tests for this
1930 * Moose::Util::TypeConstraint
1931 - fixed the type notation parser so that
1932 the | always creates a union and so is
1933 no longer a valid type char (thanks to
1934 konobi, mugwump and #moose for working
1936 - added more tests for this
1938 0.26 Thurs. Sept. 27, 2007
1941 * Parameterized Types
1942 We now support parameterized collection types, such as:
1943 ArrayRef[Int] # array or integers
1944 HashRef[Object] # a hash with object values
1945 They can also be nested:
1946 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1947 And work with the type unions as well:
1948 ArrayRef[Int | Str] # array of integers of strings
1950 * Better Framework Extendability
1951 Moose.pm is now "extendable" such that it is now much
1952 easier to extend the framework and add your own keywords
1953 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1954 section of the Moose.pm docs.
1957 In an effort to begin documenting some of the various
1958 details of Moose as well as some common idioms, we have
1959 created Moose::Cookbook::Snacks as a place to find
1960 small (easily digestable) nuggets of Moose code.
1963 ~ Several doc updates/cleanup thanks to castaway ~
1965 - converted build system to use Module::Install instead of
1966 Module::Build (thanks to jrockway)
1969 - added all the meta classes to the immutable list and
1970 set it to inline the accessors
1971 - fix import to allow Sub::Exporter like { into => }
1972 and { into_level => } (perigrin)
1973 - exposed and documented init_meta() to allow better
1974 embedding and extending of Moose (perigrin)
1977 - complete re-organization of the test suite
1978 - added some new tests as well
1979 - finally re-enabled the Moose::POOP test since
1980 the new version of DBM::Deep now works again
1983 * Moose::Meta::Class
1984 - fixed very odd and very nasty recursion bug with
1986 - added tests for this (eilara)
1988 * Moose::Meta::Attribute
1989 Moose::Meta::Method::Constructor
1990 Moose::Meta::Method::Accessor
1991 - fixed issue with overload::Overloaded getting called
1992 on non-blessed items. (RT #29269)
1993 - added tests for this
1995 * Moose::Meta::Method::Accessor
1996 - fixed issue with generated accessor code making
1997 assumptions about hash based classes (thanks to dexter)
1999 * Moose::Coookbook::Snacks
2000 - these are bits of documentation, not quite as big as
2001 Recipes but which have no clear place in the module docs.
2002 So they are Snacks! (horray for castaway++)
2004 * Moose::Cookbook::Recipe4
2005 - updated it to use the new ArrayRef[MyType] construct
2006 - updated the accompanying test as well
2008 +++ Major Refactor of the Type Constraint system +++
2009 +++ with new features added as well +++
2011 * Moose::Util::TypeConstraint
2012 - no longer uses package variable to keep track of
2013 the type constraints, now uses the an instance of
2014 Moose::Meta::TypeConstraint::Registry to do it
2015 - added more sophisticated type notation parsing
2017 - added tests for this
2019 * Moose::Meta::TypeConstraint
2020 - some minor adjustments to make subclassing easier
2021 - added the package_defined_in attribute so that we
2022 can track where the type constraints are created
2024 * Moose::Meta::TypeConstraint::Union
2025 - this is now been refactored to be a subclass of
2026 Moose::Meta::TypeConstraint
2028 * Moose::Meta::TypeCoercion::Union
2029 - this has been added to service the newly refactored
2030 Moose::Meta::TypeConstraint::Union and is itself
2031 a subclass of Moose::Meta::TypeCoercion
2033 * Moose::Meta::TypeConstraint::Parameterized
2034 - added this module (taken from MooseX::AttributeHelpers)
2035 to help construct nested collection types
2036 - added tests for this
2038 * Moose::Meta::TypeConstraint::Registry
2039 - added this class to keep track of type constraints
2041 0.25 Mon. Aug. 13, 2007
2043 - Documentation update to reference Moose::Util::TypeConstraints
2044 under 'isa' in 'has' for how to define a new type
2045 (thanks to shlomif).
2047 * Moose::Meta::Attribute
2048 - required attributes now will no longer accept undef
2049 from the constructor, even if there is a default and lazy
2050 - added tests for this
2051 - default subroutines must return a value which passes the
2053 - added tests for this
2055 * Moose::Meta::Attribute
2056 * Moose::Meta::Method::Constructor
2057 * Moose::Meta::Method::Accessor
2058 - type-constraint tests now handle overloaded objects correctly
2059 in the error message
2060 - added tests for this (thanks to EvanCarroll)
2062 * Moose::Meta::TypeConstraint::Union
2063 - added (has_)hand_optimized_constraint to this class so that
2064 it behaves as the regular Moose::Meta::TypeConstraint does.
2067 - large refactoring of this code
2068 - added several more tests
2069 - tests for subtle conflict resolition issues
2070 added, but not currently running
2073 * Moose::Cookbook::Recipe7
2074 - added new recipe for augment/inner functionality
2076 - added test for this
2079 - a formal definition of roles (still in progress)
2082 - utilities for easier working with Moose classes
2083 - added tests for these
2086 - This contains Moose specific test functions
2087 - added tests for these
2089 0.24 Tues. July 3, 2007
2090 ~ Some doc updates/cleanup ~
2092 * Moose::Meta::Attribute
2093 - added support for roles to be given as parameters
2094 to the 'handles' option.
2095 - added tests and docs for this
2096 - the has '+foo' attribute form now accepts changes to
2097 the lazy option, and the addition of a handles option
2098 (but not changing the handles option)
2099 - added tests and docs for this
2102 - required methods are now fetched using find_method_by_name
2103 so that required methods can come from superclasses
2104 - adjusted tests for this
2106 0.23 Mon. June 18, 2007
2107 * Moose::Meta::Method::Constructor
2108 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2109 * Moose::Meta::Class
2110 - Modify make_immutable to work with the new Class::MOP immutable
2111 mechanism + POD + very basic test (groditi)
2112 * Moose::Meta::Attribute
2113 - Fix handles to use goto() so that caller() comes out properly on
2114 the other side (perigrin)
2116 0.22 Thurs. May 31, 2007
2117 * Moose::Util::TypeConstraints
2118 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2119 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2120 prototypes for functions
2121 - added the ClassName type constraint, this checks for strings
2122 which will respond true to ->isa(UNIVERSAL).
2123 - added tests and docs for this
2124 - subtyping just in name now works correctly by making the
2125 default for where be { 1 }
2126 - added test for this
2128 * Moose::Meta::Method::Accessor
2129 - coerce and lazy now work together correctly, thanks to
2130 merlyn for finding this bug
2131 - tests added for this
2132 - fix reader presedence bug in Moose::Meta::Attribute + tests
2135 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2136 a HASH-ref and missed. This produces better error messages then
2137 having it die cause undef is not a HASH.
2138 - added tests for this
2140 0.21 Thursday, May 2nd, 2007
2142 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2143 - modified unimport to remove super and inner along with the rest
2144 - altered unimport tests to handle this
2147 - altered super export to populate SUPER_SLOT
2149 * Moose::Meta::Class
2150 - altered augment and override modifier application to use *_SLOT
2151 - modified tests for these to unimport one test class each to test
2154 - fixed issue where custom attribute metaclasses
2155 where not handled correctly in roles
2156 - added tests for this
2158 * Moose::Meta::Class
2159 - fixed issue where extending metaclasses with
2160 roles would blow up. Thanks to Aankhen`` for
2161 finding this insidious error, and it's solution.
2163 ~~ lots of spelling and grammer fixes in the docs,
2164 many many thanks to rlb3 and Aankhen for these :)
2166 0.20 Friday, April 6th, 2007
2167 >> I messed up the SKIP logic in one test
2168 so this release is just to fix that.
2171 - 'has' now also accepts an ARRAY ref
2172 to create multiple attrs (see docs)
2173 (thanks to konobi for this)
2174 - added tests and docs
2176 0.19 Thurs. April 5th, 2007
2177 ~~ More documentation updates ~~
2179 * Moose::Util::TypeConstraints
2180 - 'type' now supports messages as well
2181 thanks to phaylon for finding this
2182 - added tests for this
2183 - added &list_all_type_constraints and
2184 &list_all_builtin_type_constraints
2185 functions to facilitate introspection.
2187 * Moose::Meta::Attribute
2188 - fixed regexp 'handles' declarations
2189 to build the list of delegated methods
2190 correctly (and not override important
2191 things like &new) thanks to ashleyb
2193 - added tests and docs for this
2194 - added the 'documentation' attributes
2195 so that you can actually document your
2196 attributes and inspect them through the
2198 - added tests and docs for this
2200 * Moose::Meta::Class
2201 - when loading custom attribute metaclasses
2202 it will first look in for the class in the
2203 Moose::Meta::Attribute::Custom::$name, and
2204 then default to just loading $name.
2205 - added tests and docs for this
2207 * Moose::Meta::TypeConstraint
2208 - type constraints now stringify to their names.
2209 - added test for this
2212 - added tests to assure we work with Module::Refresh
2213 - added stricter test skip logic in the Moose POOP
2214 test, ask Rob Kinyon why.
2215 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2217 0.18 Sat. March 10, 2007
2218 ~~ Many, many documentation updates ~~
2221 - We now use Class::MOP::load_class to
2223 - added tests to show types and subtypes
2224 working with Declare::Constraints::Simple
2225 and Test::Deep as constraint engines.
2228 !! You must have Class::MOP 0.37_001 !!
2229 !! for this developer release to work !!
2231 This release was primarily adding the immutable
2232 feature to Moose. An immutable class is one which
2233 you promise not to alter. When you set the class
2234 as immutable it will perform various bits of
2235 memoization and inline certain part of the code
2236 (constructors, destructors and accessors). This
2237 minimizes (and in some cases totally eliminates)
2238 one of Moose's biggest performance hits. This
2239 feature is not on by default, and is 100% optional.
2240 It has several configurable bits as well, so you
2241 can pick and choose to your specific needs.
2243 The changes involved in this were fairly wide and
2244 highly specific, but 100% backwards compatible, so
2245 I am not going to enumerate them here. If you are
2246 truely interested in what was changed, please do
2249 0.17 Tues. Nov. 14, 2006
2250 * Moose::Meta::Method::Accessor
2251 - bugfix for read-only accessors which
2252 are have a type constraint and lazy.
2253 Thanks to chansen for finding it.
2255 0.16 Tues. Nov. 14, 2006
2257 There are some speed improvements in this release,
2258 but they are only the begining, so stay tuned.
2261 - BUILDALL and DEMOLISHALL no longer get
2262 called unless they actually need to be.
2263 This gave us a signifigant speed boost
2264 for the cases when there is no BUILD or
2265 DEMOLISH method present.
2267 * Moose::Util::TypeConstraints
2268 * Moose::Meta::TypeConstraint
2269 - added an 'optimize_as' option to the
2270 type constraint, which allows for a
2271 hand optimized version of the type
2272 constraint to be used when possible.
2273 - Any internally created type constraints
2274 now provide an optimized version as well.
2276 0.15 Sun. Nov. 5, 2006
2278 This version of Moose *must* have Class::MOP 0.36 in order
2279 to work correctly. A number of small internal tweaks have
2280 been made in order to be compatible with that release.
2282 * Moose::Util::TypeConstraints
2283 - added &unimport so that you can clean out
2284 your class namespace of these exported
2287 * Moose::Meta::Class
2288 - fixed minor issue which occasionally
2289 comes up during global destruction
2291 - moved Moose::Meta::Method::Overriden into
2295 - moved Moose::Meta::Role::Method into
2298 * Moose::Meta::Attribute
2299 - changed how we do type checks so that
2300 we reduce the overall cost, but still
2303 - moved accessor generation methods to
2304 Moose::Meta::Method::Accessor to
2305 conform to the API changes from
2308 * Moose::Meta::TypeConstraint
2309 - changed how constraints are compiled
2310 so that we do less recursion and more
2311 iteration. This makes the type check
2313 - moved Moose::Meta::TypeConstraint::Union
2316 * Moose::Meta::Method::Accessor
2317 - created this from methods formerly found in
2318 Moose::Meta::Attribute
2320 * Moose::Meta::Role::Method
2321 - moved this from Moose::Meta::Role
2323 * Moose::Meta::Method::Overriden
2324 - moved this from Moose::Meta::Class
2326 * Moose::Meta::TypeConstraint::Union
2327 - moved this from Moose::Meta::TypeConstraint
2329 0.14 Mon. Oct. 9, 2006
2331 * Moose::Meta::Attribute
2332 - fixed lazy attributes which were not getting
2333 checked with the type constraint (thanks ashley)
2334 - added tests for this
2335 - removed the over-enthusiastic DWIMery of the
2336 automatic ArrayRef and HashRef defaults, it
2337 broke predicates in an ugly way.
2338 - removed tests for this
2340 0.13 Sat. Sept. 30, 2006
2342 This version of Moose *must* have Class::MOP 0.35 in order
2343 to work correctly. A number of small internal tweaks have
2344 been made in order to be compatible with that release.
2347 - Removed the use of UNIVERSAL::require to be a better
2348 symbol table citizen and remove a dependency
2349 (thanks Adam Kennedy)
2351 **~~ removed experimental & undocumented feature ~~**
2352 - commented out the 'method' and 'self' keywords, see the
2353 comments for more info.
2356 - added a FAQ and WTF files to document frequently
2357 asked questions and common problems
2359 * Moose::Util::TypeConstraints
2360 - added GlobRef and FileHandle type constraint
2361 - added tests for this
2363 * Moose::Meta::Attribute
2364 - if your attribute 'isa' ArrayRef of HashRef, and you have
2365 not explicitly set a default, then make the default DWIM.
2366 This will also work for subtypes of ArrayRef and HashRef
2368 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2369 - new test added for this (thanks to ashley)
2372 - added basic support for runtime role composition
2373 but this is still *highly experimental*, so feedback
2374 is much appreciated :)
2375 - added tests for this
2377 * Moose::Meta::TypeConstraint
2378 - the type constraint now handles the coercion process
2379 through delegation, this is to support the coercion
2382 * Moose::Meta::TypeConstraint::Union
2383 - it is now possible for coercions to be performed
2385 - added tests for this (thanks to konobi)
2387 * Moose::Meta::TypeCoercion
2388 - properly capturing error when type constraint
2392 - Scalar::Util 1.18 is bad on Win32, so temporarily
2393 only require version 1.17 for Win32 and cygwin.
2394 (thanks Adam Kennedy)
2396 0.12 Sat. Sept. 1, 2006
2398 - Recipe5 (subtypes & coercion) has been written
2401 - fixed "bad meta" error message to be more descriptive
2402 - fixed &unimport to not remove the &inner and &super
2403 keywords because we need to localize them.
2404 - fixed number of spelling/grammer issues, thanks Theory :)
2406 **~~ experimental & undocumented feature ~~**
2407 - added the method and self keywords, they are basically
2408 just sugar, and they may not stay around.
2411 - added &dump method to easily Data::Dumper
2414 * Moose::Meta::TypeConstraint
2415 - added the &is_a_type_of method to check both the current
2416 and the subtype of a method (similar to &isa with classes)
2419 - this is now a subclass of Class::MOP::Module, and no longer
2420 creates the _role_meta ugliness of before.
2421 - fixed tests to reflect this change
2423 0.11 Wed. July 12, 2006
2425 - added an &unimport method to remove all the keywords
2426 that Moose will import, simply add 'no Moose' to the
2427 bottom of your class file.
2430 - fixed some test failures caused by a forgotten test
2433 0.10 Thurs. July 6, 2006
2435 - improved error message when loading modules so
2436 it is less confusing when you load a role.
2437 - added &calculate_all_roles method to
2438 Moose::Meta::Class and Moose::Meta::Role
2441 This module has been tested against Class::MOP 0.30
2442 but it does not yet utilize the optimizations
2443 it makes available. Stay tuned for that ;)
2445 0.09_03 Fri. June 23, 2006
2446 ++ DEVELOPER RELEASE ++
2448 - 'use strict' and 'use warnings' are no longer
2449 needed in Moose classes, Moose itself will
2450 turn them on for you.
2451 - added tests for this
2452 - moved code from exported subs to private methods
2453 in Moose::Meta::Class
2456 - as with Moose, strict and warnings are
2457 automatically turned on for you.
2458 - added tests for this
2461 - now handles an edge case for override errors
2462 - added tests for this
2463 - added some more edge case tests
2465 0.09_02 Tues. May 16, 2006
2466 ++ DEVELOPER RELEASE ++
2468 - added prototypes to the exported subs
2472 - added prototypes to the exported subs
2475 * Moose::Util::TypeConstraints
2476 - cleaned up prototypes for the subs
2479 0.09_01 Fri. May 12, 2006
2480 ++ DEVELOPER RELEASE ++
2481 - This release works in combination with
2482 Class::MOP 0.29_01, it is a developer
2483 release because it uses the a new
2484 instance sub-protocol and a fairly
2485 complete Role implementation. It has
2486 not yet been optimized, so it slower
2487 the the previous CPAN version. This
2488 release also lacks good updated docs,
2489 the official release will have updated docs.
2492 - refactored the keyword exports
2493 - 'with' now checks Role validaity and
2494 accepts more than one Role at a time
2495 - 'extends' makes metaclass adjustments as
2496 needed to ensure metaclass compatibility
2499 - refactored the keyword exports
2500 - 'with' now checks Role validaity and
2501 accepts more than one Role at a time
2503 * Moose::Util::TypeConstraints
2504 - added the 'enum' keyword for simple
2505 string enumerations which can be used as
2507 - see example of usage in t/202_example.t
2510 - more careful checking of params to new()
2513 - much work done on the role composition
2514 - many new tests for conflict detection
2515 and composition edge cases
2516 - not enough documentation, I suggest
2517 looking at the tests
2519 * Moose::Meta::Instance
2520 - added new Instance metaclass to support
2521 the new Class::MOP instance protocol
2523 * Moose::Meta::Class
2524 - some small changes to support the new
2526 - some small additions to support Roles
2528 * Moose::Meta::Attribute
2529 - some improvements to the accessor generation code
2531 - some small changes to support the new
2533 - (still somewhat) experimental delegation support
2534 with the 'handles' option
2535 - added several tests for this
2536 - no docs for this yet
2538 0.05 Thurs. April 27, 2006
2540 - keywords are now exported with Sub::Exporter
2541 thanks to chansen for this commit
2542 - has keyword now takes a 'metaclass' option
2543 to support custom attribute meta-classes
2544 on a per-attribute basis
2545 - added tests for this
2546 - the 'has' keyword not accepts inherited slot
2547 specifications (has '+foo'). This is still an
2548 experimental feature and probably not finished
2549 see t/038_attribute_inherited_slot_specs.t for
2550 more details, or ask about it on #moose
2551 - added tests for this
2554 - keywords are now exported with Sub::Exporter
2556 * Moose::Utils::TypeConstraints
2557 - reorganized the type constraint hierarchy, thanks
2558 to nothingmuch and chansen for his help and advice
2560 - added some tests for this
2561 - keywords are now exported with Sub::Exporter
2562 thanks to chansen for this commit
2564 * Moose::Meta::Class
2565 - due to changes in Class::MOP, we had to change
2566 construct_instance (for the better)
2568 * Moose::Meta::Attribute
2569 - due to changes in Class::MOP, we had to add the
2570 initialize_instance_slot method (it's a good thing)
2572 * Moose::Meta::TypeConstraint
2573 - added type constraint unions
2574 - added tests for this
2575 - added the is_subtype_of predicate method
2576 - added tests for this
2578 0.04 Sun. April 16th, 2006
2580 - Roles can now consume other roles
2581 - added tests for this
2582 - Roles can specify required methods now with
2583 the requires() keyword
2584 - added tests for this
2587 - ripped out much of it's guts ,.. much cleaner now
2588 - added required methods and correct handling of
2589 them in apply() for both classes and roles
2590 - added tests for this
2591 - no longer adds a does() method to consuming classes
2592 it relys on the one in Moose::Object
2593 - added roles attribute and some methods to support
2594 roles consuming roles
2596 * Moose::Meta::Attribute
2597 - added support for triggers on attributes
2598 - added tests for this
2599 - added support for does option on an attribute
2600 - added tests for this
2602 * Moose::Meta::Class
2603 - added support for attribute triggers in the
2605 - added tests for this
2608 - Moose no longer creates a subtype for your class
2609 if a subtype of the same name already exists, this
2610 should DWIM in 99.9999% of all cases
2612 * Moose::Util::TypeConstraints
2613 - fixed bug where incorrect subtype conflicts were
2615 - added test for this
2618 - this class can now be extended with 'use base' if
2619 you need it, it properly loads the metaclass class now
2620 - added test for this
2622 0.03_02 Wed. April 12, 2006
2624 - you must now explictly use Moose::Util::TypeConstraints
2625 it no longer gets exported for you automatically
2628 - new() now accepts hash-refs as well as key/value lists
2629 - added does() method to check for Roles
2630 - added tests for this
2632 * Moose::Meta::Class
2633 - added roles attribute along with the add_role() and
2635 - added tests for this
2638 - now adds a does() method to consuming classes
2639 which tests the class's hierarchy for roles
2640 - added tests for this
2642 0.03_01 Mon. April 10, 2006
2644 - added new Role recipe (no content yet, only code)
2647 - added 'with' keyword for Role support
2648 - added test and docs for this
2649 - fixed subtype quoting bug
2650 - added test for this
2654 - added test and docs
2656 * Moose::Util::TypeConstraints
2657 - added the message keyword to add custom
2658 error messages to type constraints
2661 - the meta role to support Moose::Role
2662 - added tests and docs
2664 * Moose::Meta::Class
2665 - moved a number of things from Moose.pm
2666 to here, they should have been here
2669 * Moose::Meta::Attribute
2670 - moved the attribute option macros here
2671 instead of putting them in Moose.pm
2673 * Moose::Meta::TypeConstraint
2674 - added the message attributes and the
2676 - added tests and docs for this
2678 0.03 Thurs. March 30, 2006
2680 - added the Moose::Cookbook with 5 recipes,
2681 describing all the stuff Moose can do.
2684 - fixed an issue with &extends super class loading
2685 it now captures errors and deals with inline
2686 packages correctly (bug found by mst, solution
2688 - added super/override & inner/augment features
2689 - added tests and docs for these
2692 - BUILDALL now takes a reference of the %params
2693 that are passed to &new, and passes that to
2696 * Moose::Util::TypeConstraints
2697 - Type constraints now survive runtime reloading
2698 - added test for this
2700 * Moose::Meta::Class
2701 - fixed the way attribute defaults are handled
2702 during instance construction (bug found by chansen)
2704 * Moose::Meta::Attribute
2705 - read-only attributes now actually enforce their
2706 read-only-ness (this corrected in Class::MOP as
2709 0.02 Tues. March 21, 2006
2711 - many more tests, fixing some bugs and
2713 - &extends now loads the base module with
2715 - added UNIVERSAL::require to the
2718 - each new Moose class will also create
2719 and register a subtype of Object which
2720 correspond to the new Moose class.
2721 - the 'isa' option in &has now only
2722 accepts strings, and will DWIM in
2725 * Moose::Util::TypeConstraints
2726 - added type coercion features
2727 - added tests for this
2728 - added support for this in attributes
2729 and instance construction
2731 - type construction no longer creates a
2732 function, it registers the type instead.
2733 - added several functions to get the
2737 - BUILDALL and DEMOLISHALL were broken
2738 because of a mis-named hash key, Whoops :)
2740 * Moose::Meta::Attribute
2741 - adding support for coercion in the
2742 autogenerated accessors
2744 * Moose::Meta::Class
2745 - adding support for coercion in the
2746 instance construction
2748 * Moose::Meta::TypeConstraint
2749 * Moose::Meta::TypeCoercion
2750 - type constraints and coercions are now
2751 full fledges meta-objects
2753 0.01 Wed. March 15, 2006
2754 - Moooooooooooooooooose!!!