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.
26 - Add more hooks to customize how roles are applied.
28 0.89_02 Thu, Sep 10, 2009
29 * Moose::Meta::Attribute::Native
30 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
32 * Moose::Meta::Attribute::Native::Trait::Array
33 - Added a number of functions from List::Util and List::MoreUtils,
34 including reduce, shuffle, uniq, and natatime. (doy)
37 - This module will now generate an init_meta method for your exporting
38 class if you pass it options for
39 Moose::Util::MetaRole::apply_metaclass_roles or
40 apply_base_class_roles. This eliminates a lot of repetitive
41 boilerplate for typical MooseX modules. (doy).
42 - Documented the with_meta feature, which is a replacement for
43 with_caller. This feature was added by josh a while ago.
44 - The with_caller feature is now deprecated, but will not issue a
45 warning yet. (Dave Rolsky)
46 - If you try to wrap/export a subroutine which doesn't actually exist,
47 Moose::Exporter will warn you about this. (doy)
50 - Warn when calling make_immutable on a class with mutable ancestors.
53 * Moose::Meta::Role::Application::ToRole
54 - When a role aliased a method from another role, it was only getting
55 the new (aliased) name, not the original name. This differed from what
56 happens when a class aliases a role's methods. If you _only_ want the
57 aliased name, make sure to also exclue the original name. (Dave
60 0.89_01 Wed Sep 2, 2009
61 * Moose::Meta::Attribute
62 - Added the currying syntax for delegation from AttributeHelpers to the
63 existing delegation API. (hdp)
65 * Moose::Meta::Attribute::Native
66 - We have merged the functionality of MooseX::AttributeHelpers into the
67 Moose core with some API tweaks. You can continue to use
68 MooseX::AttributeHelpers, but it will not be maintained except
69 (perhaps) for critical bug fixes in the future. See
70 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
74 * Moose::Error::Confess
75 - Clarify documentation on how to use different error-throwing
76 modules. (Curtis Jewell)
79 - Correct POD for builder to point to Recipe8, not 9. (gphat)
82 - When a nonexistent sub name is passed to as_is, with_caller, or
83 with_meta, throw a warning and skip the exporting, rather than
84 installing a broken sub. (doy)
87 * Moose::Manual::Attributes
88 - Clarify "is", include discussion of "bare". (Sartak)
90 * Moose::Meta::Role::Method::Conflicting
91 * Moose::Meta::Role::Application::ToClass
92 - For the first set of roles involved in a conflict, report all
93 unresolved method conflicts, not just the first method. Fixes #47210
94 reported by Ovid. (Sartak)
96 * Moose::Meta::TypeConstraint
97 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
100 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
102 - Allow specifying role options (alias, excludes, MXRP stuff) in the
103 arrayref passed to "use Moose -traits" (doy)
106 - Add functions meta_class_alias and meta_attribute_alias for creating
107 aliases for class and attribute metaclasses and metatraits. (doy)
109 * Moose::Meta::Attribute
110 * Moose::Meta::Method::Accessor
111 - A trigger now receives the old value as a second argument, if the
112 attribute had one. (Dave Rolsky)
114 * Moose::Meta::Method::Constructor
115 - Fix a bug with $obj->new when $obj has stringify overloading.
116 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
117 - However, we will probably deprecate $obj->new, so please don't start
118 using it for new code!
120 * Moose::Meta::Role::Application
121 * Moose::Meta::Role::Application::RoleSummation
122 - Rename alias and excludes to -alias and -excludes (but keep the old
123 names for now, for backcompat) (doy)
125 0.88 Fri Jul 24, 2009
126 * Moose::Manual::Contributing
127 - Re-write the Moose::Manual::Contributing document to reflect
128 the new layout and methods of work for the Git repository. All
129 work now should be done in topic branches and reviewed by a
130 core committer before being applied to master. All releases
131 are done by a cabal member and merged from master to
132 stable. This plan was devised by Yuval, blame him. (perigrin)
135 - Create metaclass attributes for the different role application
138 * Moose::Util::MetaRole
139 - Allow applying roles to a meta role's role application
142 * Moose::Meta::Attribute
143 - Add weak_ref to allowed options for "has '+foo'" (mst)
145 * Moose::Meta::Method::Accessor
146 - No longer uses inline_slot_access in accessors, to support
147 non-lvalue-based meta instances. (sorear)
150 * Moose::Meta::Method::Delegation
151 - Once again allow class names as well as objects for
152 delegation. This was changed in 0.86.
155 * Moose::Meta::Class::Immutable::Trait
156 - Fixes to work with the latest Class::MOP.
158 * Moose::Meta::Method::Delegation
159 - Delegation now dies with a more useful error message if the
160 attribute's accessor returns something defined but
163 0.85 Fri, Jun 26, 2009
164 * Moose::Meta::Attribute
165 - The warning for 'no associated methods' is now split out into
166 the _check_associated_methods method, so that extensions can
167 safely call 'after install_accessors => ...'. This fixes a
168 warning from MooseX::AttributeHelpers. (hdp)
170 0.84 Fri, Jun 26, 2009
172 - has now sets definition_context for attributes defined in
175 * Moose::Meta::Attribute
176 - When adding an attribute to a metaclass, if the attribute has
177 no associated methods, it will give a deprecation
179 - Methods generated by delegation were not being added to
180 associated_methods. (hdp)
181 - Attribute accessors (reader, writer, accessor, predicate,
182 clearer) now warn if they overwrite an existing method. (doy)
183 - Attribute constructors now warn very noisily about unknown (or
184 misspelled) arguments
186 * Moose::Util::TypeConstraints
187 - Deprecated the totally useless Role type name, which just
188 checked if $object->can('does'). Note that this is _not_ the
189 same as a type created by calling role_type('RoleName').
191 * Moose::Util::TypeConstraints
192 * Moose::Meta::TypeConstraint::DuckType
193 - Reify duck type from a regular subtype into an actual class
195 - Document this because Sartak did all my work for me
198 * Moose::Meta::Attribute
199 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
200 it is just a list of methods (Sartak)
203 - The get_*_method_modifiers methods would die if the role had
204 no modifiers of the given type (Robert Buels).
206 0.83 Tue, Jun 23, 2009
208 - Fix _construct_instance not setting the special __MOP__ object
209 key in instances of anon classes. (doy)
211 0.82 Sun, Jun 21, 2009
212 * Moose::Manual::Types
213 - Mention MooseX::Types early to avoid users falling down the
214 string parsing rathole (mst)
216 * Moose::Manual::MooseX
217 - Add warnings about class-level extensions and mention considering
218 using plain objects instead
220 0.81 Sun, Jun 7, 2009
221 * Bumped our Class::MOP prereq to the latest version (0.85), since
224 0.80 Sat, Jun 6, 2009
226 - Add FAQ about the coercion change from 0.76 because it came up
227 three times today (perigrin)
228 - Win doy $10 dollars because Sartak didn't think anybody
229 would document this fast enough (perigrin)
231 * Moose::Meta::Method::Destructor
232 - Inline a DESTROY method even if there are no DEMOLISH methods
233 to prevent unnecessary introspection in
234 Moose::Object::DEMOLISHALL
237 - A role's required methods are now represented by
238 Moose::Meta::Role::Method::Required objects. Conflicts are now
239 represented by Moose::Meta::Role::Method::Conflicting
240 objects. The benefit for end-users in that unresolved
241 conflicts generate different, more instructive, errors,
242 resolving Ovid's #44895. (Sartak)
245 - Improve the error message of "extends" as suggested by Adam
246 Kennedy and confound (Sartak)
247 - Link to Moose::Manual::Roles from Moose::Role as we now have
248 excellent documentation (Adam Kennedy)
251 - Update test suite for subname change in Class::MOP
253 - Add TODO test for infinite recursion in Moose::Meta::Class
256 0.79 Wed, May 13, 2009
258 - More fixes for Win32 problems. Reported by Robert Krimen.
261 - The DEMOLISHALL method could still blow up in some cases
262 during global destruction. This method has been made more
263 resilient in the face of global destruction's random garbage
267 - If you "also" a module that isn't loaded, the error message
268 now acknowledges that (Sartak)
271 - When your ->meta method does not return a Moose::Meta::Class,
272 the error message gave the wrong output (Sartak)
274 0.78 Tue, May 12, 2009
275 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
276 - Merged these documents into what is now Moose::Manual::FAQ
279 - Moved to Moose::Manual::Unsweetened
281 * Moose::Cookbook::Basics::Recipes 9-12
282 - Renamed to be 8-11, since recipe 8 did not exist
285 - Make Moose::Exporter import strict and warnings into packages
289 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
290 methods during global destruction (doy)
293 * Moose::Meta::Role::Application::ToClass
294 - Track the Role::Application objects created during class-role
298 - Fix metaclass incompatibility errors when extending a vanilla perl
299 class which isa Moose class with a metaclass role applied (t0m)
302 - Add a role-combination hook, _role_for_combination, for the
303 benefit of MooseX::Role::Parameterized (Sartak)
306 - Some tests were failing on Win32 because they explicit checked
307 warning output for newlines. Reported by Nickolay Platonov.
309 0.77 Sat, May 2, 2009
311 - Add explicit use of Devel::GlobalDestruction and Sub::Name
315 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
316 or not we are currently in global destruction (doy)
317 - Add explicit use of Devel::GlobalDestruction and Sub::Name
320 * Moose::Cookbook::FAQ
321 - Reworked much of the existing content to be more useful to
322 modern Moose hackers (Sartak)
325 - Depend on Class::MOP 0.83 instead of 0.82_01.
327 0.76 Mon, April 27, 2009
328 * Moose::Meta::TypeConstraint
329 - Do not run coercions in coerce() if the value already passes the type
332 * Moose::Meta::TypeConstraint::Class
333 - In validation error messages, specifically say that the value is not
334 an instance of the class. This should alleviate some frustrating
335 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
337 * Moose::Meta::Role::Application::ToClass
338 - Revert the class-overrides-role warning in favor of a solution outside
339 of the Moose core (Sartak)
342 - Make Test::Output optional again, since it's only used in a few files
345 0.75_01 Thu, April 23, 2009
346 * Moose::Meta::Role::Application::ToClass
347 - Moose now warns about each class overriding methods from roles it
351 - Warnings tests have standardized on Test::Output which is now an
352 unconditionally dependency (Sartak)
355 - Changes to immutabilization to work with Class::MOP 0.82_01+.
357 0.75 Mon, April 20, 2009
360 - Move validation of not inheriting from roles from Moose::extends to
361 Moose::Meta::Class::superclasses (doy)
364 - add ensure_all_roles() function to encapsulate the common "apply this
365 role unless the object already does it" pattern (hdp)
368 - Users can now select a different metaclass with the "-metaclass"
369 option to import, for classes and roles (Sartak)
372 - Make method_metaclass an attr so that it can accept a metarole
375 0.74 Tue, April 7, 2009
377 * Moose::Meta::Method::Destructor
378 - Include stack traces in the deprecation warnings.
382 - Removed the long-deprecated _apply_all_roles method.
384 * Moose::Meta::TypeConstraint
385 - Removed the long-deprecated union method.
388 0.73_02 Mon, April 6, 2009
389 * More deprecations and renamings
390 - Moose::Meta::Method::Constructor
391 - initialize_body => _initialize_body (this is always called
392 when an object is constructed)
395 - The DEMOLISHALL method could throw an exception during global
396 destruction, meaning that your class's DEMOLISH methods would
397 not be properly called. Reported by t0m.
399 * Moose::Meta::Method::Destructor
400 - Destructor inlining was totally broken by the change to the
401 is_needed method in 0.72_01. Now there is a test for this
402 feature, and it works again.
405 - Bold the word 'not' in the POD for find_meta (t0m)
407 0.73_01 Sun, April 5, 2009
409 - Call user_class->meta in fewer places, with the eventual goal
410 of allowing the user to rename or exclude ->meta
411 altogether. Instead uses Class::MOP::class_of. (Sartak)
413 * Moose::Meta::Method::Accessor
414 - If an attribute had a lazy default, and that value did not
415 pass the attribute's type constraint, it did not get the
416 message from the type constraint, instead using a generic
417 message. Test provided by perigrin.
419 * Moose::Util::TypeConstraints
420 - Add duck_type keyword. It's sugar over making sure an object
421 can() a list of methods. This is easier than jrockway's
422 suggestion to fork all of CPAN. (perigrin)
423 - add tests and documentation (perigrin)
426 - Document the fact that init_meta() returns the target class's
427 metaclass object. (hdp)
429 * Moose::Cookbook::Extending::Recipe1
430 * Moose::Cookbook::Extending::Recipe2
431 * Moose::Cookbook::Extending::Recipe3
432 * Moose::Cookbook::Extending::Recipe4
433 - Make init_meta() examples explicitly return the metaclass and
434 point out this fact. (hdp)
436 * Moose::Cookbook::Basics::Recipe12
437 - A new recipe, creating a custom meta-method class.
439 * Moose::Cookbook::Meta::Recipe6
440 - A new recipe, creating a custom meta-method class.
443 * Moose::Meta::Method::Constructor
444 - Attribute triggers no longer receive the meta-attribute object
445 as an argument in any circumstance. Previously, triggers
446 called during instance construction were passed the
447 meta-attribute, but triggers called by normal accessors were
448 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
450 * Moose::Manual::Attributes
451 - Remove references to triggers receving the meta-attribute object as an
454 * Moose::Cookbook::FAQ
455 - Remove recommendation for deprecated Moose::Policy and
456 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
459 * Many methods have been renamed with a leading underscore, and a
460 few have been deprecated entirely. The methods with a leading
461 underscore are consider "internals only". People writing
462 subclasses or extensions to Moose should feel free to override
463 them, but they are not for "public" use.
466 - check_metaclass_compatibility => _check_metaclass_compatibility
468 - Moose::Meta::Method::Accessor
469 - initialize_body => _initialize_body (this is always called
470 when an object is constructed)
471 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
473 - Moose::Meta::Method::Constructor
474 - initialize_body => _initialize_body (this is always called
475 when an object is constructed)
476 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
477 - attributes => _attributes (now inherited from parent)
478 - meta_instance => _meta_instance (now inherited from parent)
481 - alias_method is deprecated. Use add_method
483 0.73 Fri, March 29, 2009
484 * No changes from 0.72_01.
486 0.72_01 Thu, March 26, 2009
488 - Almost every module has complete API documentation. A few
489 methods (and even whole classes) have been intentionally
490 excluded pending some rethinking of their APIs.
492 * Moose::Util::TypeConstraints
493 - Calling subtype with a name as the only argument is now an
494 exception. If you want an anonymous subtype do:
496 my $subtype = subtype as 'Foo';
498 * Moose::Cookbook::Meta::Recipe7
499 - A new recipe, creating a custom meta-instance class.
501 * Moose::Cookbook::Basics::Recipe5
502 - Fix various typos and mistakes. Includes a patch from Radu
505 * Moose::Cookbook::Basics::Recipe9
506 - Link to this recipe from Moose.pm's builder blurb
509 - When wrapping a function with a prototype, Moose::Exporter now
510 makes sure the wrapped function still has the same
511 prototype. (Daisuke Maki)
513 * Moose::Meta::Attribute
514 - Allow a subclass to set lazy_build for an inherited
518 - Explicitly depend on Data::OptList. We already had this dependency
519 via Sub::Exporter, but since we're using it directly we're
520 better off with it listed. (Sartak)
522 * Moose::Meta::Method::Constructor
523 - Make it easier to subclass the inlining behaviour. (Ash
526 * Moose::Manual::Delta
527 - Details significant changes in the history of Moose, along
528 with recommended workarounds.
530 * Moose::Manual::Contributing
531 - Contributor's guide to Moose.
533 * Moose::Meta::Method::Constructor
534 - The long-deprecated intialize_body method has been removed
535 (yes, spelled like that).
537 * Moose::Meta::Method::Destructor
538 - This is_needed method is now always a class method.
541 - Changes to the internals of how make_immutable works to match
542 changes in latest Class::MOP.
544 0.72 Mon, February 23, 2009
546 * Moose::Meta::Method::Constructor
547 - A mutable class accepted Foo->new(undef) without complaint,
548 while an immutable class would blow up with an unhelpful
549 error. Now, in both cases we throw a helpful error
550 instead. Reported by doy.
552 0.71_01 Sun, February 22, 2009
554 - Hopefully fixed some POD errors in a few recipes that caused
555 them to display weird on search.cpan.org.
557 * Moose::Util::TypeConstraints
558 - Calling type or subtype without the sugar helpers (as, where,
559 message) is now deprecated.
560 - The subtype function tried hard to guess what you meant, but
561 often got it wrong. For example:
563 my $subtype = subtype as 'ArrayRef[Object]';
565 This caused an error in the past, but now works as you'd
569 - Make sure Moose.pm is loaded before calling
570 Moose->throw_error. This wasn't normally an issue, but could
571 bite you in weird cases.
573 0.71 Thu, February 19, 2009
574 * Moose::Cookbook::Basics::Recipe11
575 - A new recipe which demonstrates the use of BUILDARGS and
578 * Moose::Cookbook::Roles::Recipe3
579 - A new recipe, applying a role to an object instance. (Dave
583 - Allow overriding specific keywords from "also" packages. (doy)
586 - Replace hardcoded cookbook tests with Test::Inline to ensure
587 the tests match the actual code in the recipes. (Dave Rolsky)
590 - Working on the above turned up a number of little bugs in the
591 recipe code. (Dave Rolsky)
593 * Moose::Util::TypeConstraints::Optimized
594 - Just use Class::MOP for the optimized ClassName check. (Dave
597 0.70 Sat, February 14, 2009
598 * Moose::Util::TypeConstraints
599 - Added the RoleName type (stevan)
600 - added tests for this (stevan)
602 * Moose::Cookbook::Basics::Recipe3
603 - Updated the before qw[left right] sub to be a little more
604 defensive about what it accepts (stevan)
605 - added more tests to t/000_recipies/basics/003_binary_tree.t
609 - We now always call DEMOLISHALL, even if a class does not
610 define DEMOLISH. This makes sure that method modifiers on
611 DEMOLISHALL work as expected. (doy)
612 - added tests for this (EvanCarroll)
614 * Moose::Util::MetaRole
615 - Accept roles for the wrapped_method_metaclass (rafl)
616 - added tests for this (rafl)
618 * Moose::Meta::Attribute
619 - We no longer pass the meta-attribute object as a final
620 argument to triggers. This actually changed for inlined code a
621 while back, but the non-inlined version and the docs were
625 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
626 they require 0.11. (Dave Rolsky)
629 - Lots of small changes to the manual, cookbook, and
630 elsewhere. These were based on feedback from various
631 users, too many to list here. (Dave Rolsky)
633 0.69 Thu, February 12, 2009
635 - Make some keyword errors use throw_error instead of croak
636 since Moose::Exporter wraps keywords now (Sartak)
639 - Revised every recipe for style and clarity. Also moved some
640 documentation out of cookbook recipes and into Moose::Manual
641 pages. This work was funded as part of the Moose docs grant
642 from TPF. (Dave Rolsky)
644 * Moose::Meta::Method::Delegation
645 - If the attribute doing the delegation was not populated, the
646 error message did not specify the attribute name
649 0.68 Wed, February 4, 2009
651 - Many spelling, typo, and formatting fixes by daxim.
653 * Moose::Manual::Attributes
654 - The NAME section in the POD used "Attribute" so search.cpan
655 didn't resolve links from other documents properly.
657 * Moose::Meta::Method::Overriden
658 - Now properly spelled as Overridden. Thanks to daxim for
661 0.67 Tue, February 3, 2009
663 - Lots of little typo fixes and a few clarifications. Several
664 pages didn't have proper titles, and so weren't actually
665 visible on search.cpan.org. Thanks to hanekomu for a variety
666 of fixes and formatting improvements.
668 0.66 Tue, February 3, 2009
670 - This is a brand new, extensive manual for Moose. This aims to
671 provide a complete introduction to all of Moose's
672 features. This work was funded as part of the Moose docs grant
673 from TPF. (Dave Rolsky)
675 * Moose::Meta::Attribute
676 - Added a delegation_metaclass method to replace a hard-coded
677 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
679 * Moose::Util::TypeConstraints
680 - If you created a subtype and passed a parent that Moose didn't
681 know about, it simply ignored the parent. Now it automatically
682 creates the parent as a class type. This may not be what you
683 want, but is less broken than before. (Dave Rolsky)
685 * Moose::Util::TypeConstraints
686 - This module tried throw errors by calling Moose->throw_error,
687 but it did not ensure that Moose was loaded first. This could
688 cause very unhelpful errors when it tried to throw an error
689 before Moose was loaded. (Dave Rolsky)
691 * Moose::Util::TypeConstraints
692 - You could declare a name with subtype such as "Foo!Bar" that
693 would be allowed, but if you used it in a parameterized type
694 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
695 vetting on names created via the sugar functions, so that they
696 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
698 0.65 Thu, January 22, 2008
699 * Moose and Moose::Meta::Method::Overridden
700 - If an overridden method called super(), and then the
701 superclass's method (not overridden) _also_ called super(),
702 Moose went into an endless recursion loop. Test provided by
703 Chris Prather. (Dave Rolsky)
705 * Moose::Meta::TypeConstraint
706 - All methods are now documented. (gphat)
708 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
709 - Fixed some bogus failures that occurred because we tried to
710 validate filesystem paths in a very ad-hoc and
711 not-quite-correct way. (Dave Rolsky)
713 * Moose::Util::TypeConstraints
714 - Added maybe_type to exports. See docs for details. (rjbs)
717 - Added Moose::Util::TypeConstraints to the SEE ALSO
721 - Methods created via an attribute can now fulfill a "requires"
722 declaration for a role. (nothingmuch)
724 * Moose::Meta::Method::*
725 - Stack traces from inlined code will now report its line and
726 file as being in your class, as opposed to in Moose
729 0.64 Wed, December 31, 2008
730 * Moose::Meta::Method::Accessor
731 - Always inline predicate and clearer methods (Sartak)
733 * Moose::Meta::Attribute
734 - Support for parameterized traits (Sartak)
735 - verify_against_type_constraint method to avoid duplication
736 and enhance extensibility (Sartak)
739 - Tests (but no support yet) for parameterized traits (Sartak)
742 - Require Class::MOP 0.75+, which has the side effect of making
743 sure we work on Win32. (Dave Rolsky)
745 0.63 Mon, December 8, 2008
747 - Some small grammar tweaks and bug fixes in non-Moose example
750 0.62_02 Fri, December 5, 2008
751 * Moose::Meta::Role::Application::ToClass
752 - When a class does not provide all of a role's required
753 methods, the error thrown now mentions all of the missing
754 methods, as opposed to just the first one found. Requested by
755 Curtis Poe (RT #41119). (Dave Rolsky)
757 * Moose::Meta::Method::Constructor
758 - Moose will no longer inline a constructor for your class
759 unless it inherits its constructor from Moose::Object, and
760 will warn when it doesn't inline. If you want to force
761 inlining anyway, pass "replace_constructor => 1" to
762 make_immutable. Addresses RT #40968, reported by Jon
763 Swartz. (Dave Rolsky)
764 - The quoting of default values could be broken if the default
765 contained a single quote ('). Now we use quotemeta to escape
766 anything potentially dangerous in the defaults. (Dave Rolsky)
768 0.62_01 Wed, December 3, 2008
770 - use the method->execute API for BUILDALL
771 and DEMOLISHALL (Sartak)
773 * Moose::Util::TypeConstraints
774 - We now make all the type constraint meta classes immutable
775 before creating the default types provided by Moose. This
776 should make loading Moose a little faster. (Dave Rolsky)
778 0.62 Wed November 26, 2008
779 * Moose::Meta::Role::Application::ToClass
780 Moose::Meta::Role::Application::ToRole
781 - fixed issues where excluding and aliasing the
782 same methods for a single role did not work
783 right (worked just fine with multiple
785 - added test for this (stevan)
787 * Moose::Meta::Role::Application::RoleSummation
788 - fixed the error message when trying to compose
789 a role with a role it excludes (Sartak)
792 - Catch another case where recursion caused the value
793 of $CALLER to be stamped on (t0m)
794 - added test for this (t0m)
797 - Remove the make_immutable keyword, which has been
798 deprecated since April. It breaks metaclasses that
799 use Moose without no Moose (Sartak)
801 * Moose::Meta::Attribute
802 - Removing an attribute from a class now also removes delegation
803 (handles) methods installed for that attribute (t0m)
804 - added test for this (t0m)
806 * Moose::Meta::Method::Constructor
807 - An attribute with a default that looked like a number (but was
808 really a string) would accidentally be treated as a number
809 when the constructor was made immutable (perigrin)
810 - added test for this (perigrin)
813 - create method for constructing a role
815 - added test for this (Sartak)
816 - anonymous roles! (Sartak)
817 - added test for this (Sartak)
820 - more consistent error messages (Sartak)
822 * Moose::Cookbook::Roles::Recipe1
823 - attempt to explain why a role that just requires
824 methods is useful (Sartak)
826 0.61 Fri November 7, 2008
827 * Moose::Meta::Attribute
828 - When passing a role to handles, it will be loaded if necessary
832 - Method objects returned by get_method (and other methods)
833 Could end up being returned without an associated_metaclass
834 attribute. Removing get_method_map, which is provided by
835 Class::MOP::Class, fixed this. The Moose version did nothing
836 different from its parent except introduce a bug. (Dave Rolsky)
837 - added tests for this (jdv79)
840 - Added a $VERSION to all .pm files which didn't have one. Fixes
841 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
843 * Moose::Cookbook::Basics::Recipe4
844 * Moose::Cookbook::Basics::Recipe6
845 - These files had spaces on the first line of the SYNOPSIS, as
846 opposed to a totally empty line. According to RT #40432, this
847 confuses POD parsers. (Dave Rolsky)
849 0.60 Fri October 24, 2008
851 - Passing "-traits" when loading Moose caused the Moose.pm
852 exports to be broken. Reported by t0m. (Dave Rolsky)
853 - Tests for this bug. (t0m)
856 - Change resolve_metaclass alias to use the new
857 load_first_existing_class function. This makes it a lot
858 simpler, and also around 5 times faster. (t0m)
859 - Add caching to resolve_metaclass_alias, which gives an order
860 of magnitude speedup to things which repeatedly call the
861 Moose::Meta::Attribute->does method, notably MooseX::Storage
864 * Moose::Util::TypeConstraint
865 - Put back the changes for parameterized constraints that
866 shouldn't have been removed in 0.59. We still cannot parse
867 them, but MooseX modules can create them in some other
868 way. See the 0.58 changes for more details. (jnapiorkowski)
869 - Changed the way subtypes are created so that the job is
870 delegated to a type constraint parent. This clears up some
871 hardcoded checking and should allow correct subtypes of
872 Moose::Meta::Type::Constraint. Don't rely on this new API too
873 much (create_child_type) because it may go away in the
874 future. (jnapiorkowski)
876 * Moose::Meta::TypeConstraint::Union
877 - Type constraint names are sorted as strings, not numbers.
880 * Moose::Meta::TypeConstraint::Parameterizable
881 - New parameterize method. This can be used as a factory method
882 to make a new type constraint with a given parameterized
883 type. (jnapiorkowski)
884 - added tests (jnapiorkowski)
886 0.59 Tue October 14, 2008
888 - Add abridged documentation for builder/default/initializer/
889 predicate, and link to more details sections in
890 Class::MOP::Attribute. (t0m)
892 * Moose::Util::TypeConstraints
893 - removed prototypes from all but the &-based stuff (mst)
895 * Moose::Util::TypeConstraints
896 - Creating a anonymous subtype with both a constraint and a
897 message failed with a very unhelpful error, but should just
898 work. Reported by t0m. (Dave Rolsky)
901 - Some tests that used Test::Warn if it was available failed
902 with older versions of Test::Warn. Reported by Fayland. (Dave
904 - Test firing behavior of triggers in relation to builder/default/
906 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
907 kinds of supported type. (t0m)
910 - In create(), do not pass "roles" option to the superclass
911 - added related test that creates an anon metaclass with
914 * Moose::Meta::TypeConstraint::Class
915 * Moose::Meta::TypeConstraint::Role
916 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
917 other types (as per change in 0.55_02). (t0m)
919 * Moose::Meta::TypeConstraint::Registry
920 - Fix warning when dealing with unknown type names (t0m)
922 * Moose::Util::TypeConstraints
923 - Reverted changes from 0.58 related to handle parameterized
924 types. This caused random failures on BSD and Win32 systems,
925 apparently related to the regex engine. This means that Moose
926 can no longer parse structured type constraints like
927 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
928 supported in a slightly different way via MooseX::Types some
929 time in the future. (Dave Rolsky)
931 0.58 Sat September 20, 2008
932 !! This release has an incompatible change regarding !!
933 !! how roles add methods to a class !!
935 * Roles and role application
936 ! Roles now add methods by calling add_method, not
937 alias_method. They make sure to always provide a method
938 object, which will be cloned internally. This means that it is
939 now possible to track the source of a method provided by a
940 role, and even follow its history through intermediate roles.
942 This means that methods added by a role now show up when
943 looking at a class's method list/map. (Dave Rolsky)
946 - From this release on, we'll try to maintain a list of
947 conflicting modules, and warn you if you have one
948 installed. For example, this release conflicts with ...
949 - MooseX::Singleton <= 0.11
950 - MooseX::Params::Validate <= 0.05
953 In general, we try to not break backwards compatibility for
954 most Moose users, but MooseX modules and other code which
955 extends Moose's metaclasses is often affected by very small
956 changes in the Moose internals.
958 * Moose::Meta::Method::Delegation
959 * Moose::Meta::Attribute
960 - Delegation methods now have their own method class. (Dave
963 * Moose::Meta::TypeConstraint::Parameterizable
964 - Added a new method 'parameterize' which is basically a factory
965 for the containing constraint. This makes it easier to create
966 new types of parameterized constraints. (jnapiorkowski)
968 * Moose::Meta::TypeConstraint::Union
969 - Changed the way Union types canonicalize their names to follow
970 the normalized TC naming rules, which means we strip all
971 whitespace. (jnapiorkowski)
973 * Moose::Util::TypeConstraints
974 - Parameter and Union args are now sorted, this makes Int|Str
975 the same constraint as Str|Int. (jnapiorkowski)
976 - Changes to the way Union types are parsed to more correctly
977 stringify their names. (jnapiorkowski)
978 - When creating a parameterized type, we now use the new
979 parameterize method. (jnapiorkowski)
980 - Incoming type constraint strings are now normalized to remove
981 all whitespace differences. (jnapiorkowski)
982 - Changed the way we parse type constraint strings so that we now
983 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
984 constraints. This lays the foundation for more flexible type
985 constraint implementations.
987 * Tests and docs for all the above. (jnapiorkowski)
991 - Moose::Exporter will no longer remove a subroutine that the
992 exporting package re-exports. Moose re-exports the
993 Carp::confess function, among others. The reasoning is that we
994 cannot know whether you have also explicitly imported those
995 functions for your own use, so we err on the safe side and
996 always keep them. (Dave Rolsky)
997 - added tests for this (rafl)
1000 - Changes to how we fix metaclass compatibility that are much
1001 too complicated to go into. The summary is that Moose is much
1002 less likely to complain about metaclass incompatibility
1003 now. In particular, if two metaclasses differ because
1004 Moose::Util::MetaRole was used on the two corresponding
1005 classes, then the difference in roles is reconciled for the
1006 subclass's metaclass. (Dave Rolsky)
1007 - Squashed an warning in _process_attribute (thepler)
1010 - throw exceptions (sooner) for invalid attribute names (thepler)
1011 - added tests for this (thepler)
1013 * Moose::Util::MetaRole
1014 - If you explicitly set a constructor or destructor class for a
1015 metaclass object, and then applied roles to the metaclass,
1016 that explicitly set class would be lost and replaced with the
1019 * Moose::Meta::Class
1020 * Moose::Meta::Attribute
1021 * Moose::Meta::Method
1024 * Moose::Error::Default
1025 * Moose::Error::Croak
1026 * Moose::Error::Confess
1027 - All instances of confess() changed to use overridable
1028 C<throw_error> method. This method ultimately calls a class
1029 constructor, and you can change the class being called. In
1030 addition, errors now pass more information than just a string.
1031 The default C<error_class> behaves like C<Carp::confess>, so
1032 the behavior is not visibly different for end users.
1034 0.57 Wed September 3, 2008
1036 - A new bit of doc intended to introduce folks familiar with
1037 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1039 * Moose::Unsweetened
1040 - Shows examples of two classes, each done first with and then
1041 without Moose. This makes a nice parallel to
1042 Moose::Intro. (Dave Rolsky)
1044 * Moose::Util::TypeConstraints
1045 - Fixed a bug in find_or_parse_type_constraint so that it
1046 accepts a Moose::Meta::TypeConstraint object as the parent
1047 type, not just a name (jnapiorkowski)
1048 - added tests (jnapiorkowski)
1051 - If Sub::Name was not present, unimporting failed to actually
1052 remove some sugar subs, causing test failures (Dave Rolsky)
1054 0.56 Mon September 1, 2008
1055 For those not following the series of dev releases, there are
1056 several major changes in this release of Moose.
1057 ! Moose::init_meta should now be called as a method. See the
1060 - Major performance improvements by nothingmuch.
1062 - New modules for extension writers, Moose::Exporter and
1063 Moose::Util::MetaRole by Dave Rolsky.
1065 - Lots of doc improvements and additions, especially in the
1068 - Various bug fixes.
1070 * Removed all references to the experimental-but-no-longer-needed
1071 Moose::Meta::Role::Application::ToMetaclassInstance.
1073 * Require Class::MOP 0.65.
1075 0.55_04 Sat August 30, 2008
1076 * Moose::Util::MetaRole
1077 * Moose::Cookbook::Extending::Recipe2
1078 - This simplifies the application of roles to any meta class, as
1079 well as the base object class. Reimplemented metaclass traits
1080 using this module. (Dave Rolsky)
1082 * Moose::Cookbook::Extending::Recipe1
1083 - This a new recipe, an overview of various ways to write Moose
1084 extensions (Dave Rolsky)
1086 * Moose::Cookbook::Extending::Recipe3
1087 * Moose::Cookbook::Extending::Recipe4
1088 - These used to be Extending::Recipe1 and Extending::Recipe2,
1091 0.55_03 Fri August 29, 2008
1092 * No changes from 0.55_02 except increasing the Class::MOP
1093 dependency to 0.64_07.
1095 0.55_02 Fri August 29, 2008
1096 * Makefile.PL and Moose.pm
1097 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1099 * Moose::Util::TypeConstraints
1100 - Fix warnings from find_type_constraint if the type is not
1103 * Moose::Meta::TypeConstraint
1104 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1105 return false if the type you specify cannot be found in the
1106 type registry, rather than throwing an unhelpful and
1107 coincidental exception. (t0m).
1108 - added docs & test for this (t0m)
1110 * Moose::Meta::TypeConstraint::Registry
1111 - add_type_constraint now throws an exception if a parameter is
1113 - added docs & test for this (t0m)
1115 * Moose::Cookbook::FAQ
1116 - Added a faq entry on the difference between "role" and "trait"
1120 - Fixed a bug that caused role composition to not see a required
1121 method when that method was provided by another role being
1122 composed at the same time. (Dave Rolsky)
1123 - test and bug finding (tokuhirom)
1125 0.55_01 Wed August 20, 2008
1127 !! Calling Moose::init_meta as a function is now !!
1128 !! deprecated. Please see the Moose.pm docs for details. !!
1130 * Moose::Meta::Method::Constructor
1131 - Fix inlined constructor so that values produced by default
1132 or builder methods are coerced as required. (t0m)
1133 - added test for this (t0m)
1135 * Moose::Meta::Attribute
1136 - A lazy attribute with a default or builder did not attempt to
1137 coerce the default value. The immutable code _did_
1139 - added test for this (t0m)
1142 - This is a new helper module for writing "Moose-alike"
1143 modules. This should make the lives of MooseX module authors
1144 much easier. (Dave Rolsky)
1147 * Moose::Cookbook::Meta::Recipe5
1148 - Implemented metaclass traits (and wrote a recipe for it):
1150 use Moose -traits => 'Foo'
1152 This should make writing small Moose extensions a little
1153 easier (Dave Rolsky)
1155 * Moose::Cookbook::Basics::Recipe1
1156 - Removed any examples of direct hashref access, and applied an
1157 editorial axe to reduce verbosity. (Dave Rolsky)
1159 * Moose::Cookbook::Basics::Recipe1
1160 - Also applied an editorial axe here. (Dave Rolsky)
1163 * Moose::Cookbook::Extending::Recipe1
1164 * Moose::Cookbook::Extending::Recipe2
1165 - Rewrote extending and embedding moose documentation and
1166 recipes to use Moose::Exporter (Dave Rolsky)
1170 - These two modules now warn when you load them from the main
1171 package "main" package, because we will not export sugar to
1172 main. Previously it just did nothing. (Dave Rolsky)
1175 - Now provide an init_meta method just like Moose.pm, and you
1176 can call this to provide an alternate role metaclass. (Dave
1177 Rolsky and nothingmuch)
1178 - get_method_map now respects the package cache flag (nothingmuch)
1181 - Two new methods - add_method and wrap_method_body
1185 - Optimizations including allowing constructors to accept hash
1186 refs, making many more classes immutable, and making
1187 constructors immutable. (nothingmuch)
1189 0.55 Sun August 3, 2008
1190 * Moose::Meta::Attribute
1191 - breaking down the way 'handles' methods are
1192 created so that the process can be more easily
1193 overridden by subclasses (stevan)
1195 * Moose::Meta::TypeConstraint
1196 - fixing what is passed into a ->message with
1197 the type constraints (RT #37569)
1198 - added tests for this (Charles Alderman)
1200 * Moose::Util::TypeConstraints
1201 - fix coerce to accept anon types like subtype can (mst)
1204 - reorganized the recipes into sections - Basics, Roles, Meta,
1205 Extending - and wrote abstracts for each section (Dave Rolsky)
1207 * Moose::Cookbook::Basics::Recipe10
1208 - A new recipe that demonstrates operator overloading
1209 in combination with Moose. (bluefeet)
1211 * Moose::Cookbook::Meta::Recipe1
1212 - an introduction to what meta is and why you'd want to make
1213 your own metaclass extensions (Dave Rolsky)
1215 * Moose::Cookbook::Meta::Recipe4
1216 - a very simple metaclass example (Dave Rolsky)
1218 * Moose::Cookbook::Extending::Recipe1
1219 - how to write a Moose-alike module to use your own object base
1222 * Moose::Cookbook::Extending::Recipe2
1223 - how to write modules with an API just like C<Moose.pm> (Dave
1227 - Tons of fixes, both syntactical and grammatical (Dave
1228 Rolsky, Paul Fenwick)
1230 0.54 Thurs. July 3, 2008
1231 ... this is not my day today ...
1233 * Moose::Meta::Attribute
1234 - fixed legal_options_for_inheritance such that
1235 clone_and_inherit options still works for
1236 Class::MOP::Attribute objects and therefore
1237 does not break MooseX::AttributeHelpers
1240 0.53 Thurs. July 3, 2008
1241 * Whoops, I guess I should run 'make manifest' before
1242 actually releasing the module. No actual changes
1243 in this release, except the fact that it includes
1244 the changes that I didn't include in the last
1247 0.52 Thurs. July 3, 2008
1249 - added "FEATURE REQUESTS" section to the Moose docs
1250 to properly direct people (stevan) (RT #34333)
1251 - making 'extends' croak if it is passed a Role since
1252 this is not ever something you want to do
1253 (fixed by stevan, found by obra)
1254 - added tests for this (stevan)
1257 - adding support for DOES (as in UNIVERSAL::DOES)
1259 - added test for this
1261 * Moose::Meta::Attribute
1262 - added legal_options_for_inheritance (wreis)
1263 - added tests for this (wreis)
1265 * Moose::Cookbook::Snacks::*
1266 - removed some of the unfinished snacks that should
1267 not have been released yet. Added some more examples
1268 to the 'Keywords' snack. (stevan)
1270 * Moose::Cookbook::Style
1271 - added general Moose "style guide" of sorts to the
1272 cookbook (nothingmuch) (RT #34335)
1275 - added more BUILDARGS tests (stevan)
1277 0.51 Thurs. Jun 26, 2008
1279 - add unimport so "no Moose::Role" actually does
1282 * Moose::Meta::Role::Application::ToRole
1283 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1284 order to provide its own implementation, that method still got
1285 added to the list of required methods for consumers of
1286 RoleB. Now an aliased method is only added to the list of
1287 required methods if the role doing the aliasing does not
1288 provide its own implementation. See Recipe 11 for an example
1289 of all this. (Dave Rolsky)
1290 - added tests for this
1292 * Moose::Meta::Method::Constructor
1293 - when a single argument that wasn't a hashref was provided to
1294 an immutabilized constructor, the error message was very
1295 unhelpful, as opposed to the non-immutable error. Reported by
1297 - added test for this (Dave Rolsky)
1299 * Moose::Meta::Attribute
1300 - added support for meta_attr->does("ShortAlias") (sartak)
1301 - added tests for this (sartak)
1302 - moved the bulk of the `handles` handling to the new
1303 install_delegation method (Stevan)
1306 - Added BUILDARGS, a new step in new()
1308 * Moose::Meta::Role::Application::RoleSummation
1309 - fix typos no one ever sees (sartak)
1311 * Moose::Util::TypeConstraints
1312 * Moose::Meta::TypeConstraint
1313 * Moose::Meta::TypeCoercion
1314 - Attempt to work around the ??{ } vs. threads issue
1316 - Some null_constraint optimizations
1318 0.50 Thurs. Jun 11, 2008
1319 - Fixed a version number issue by bumping all modules
1322 0.49 Thurs. Jun 11, 2008
1323 !! This version now approx. 20-25% !!
1324 !! faster with new Class::MOP 0.59 !!
1326 * Moose::Meta::Attribute
1327 - fixed how the is => (ro|rw) works with
1328 custom defined reader, writer and accessor
1330 - added docs for this (TODO).
1331 - added tests for this (Thanks to Penfold)
1332 - added the custom attribute alias for regular
1333 Moose attributes which is "Moose"
1334 - fix builder and default both being used
1339 Moose::Meta::Attribute
1341 Moose::Meta::Role::Composite
1342 Moose::Util::TypeConstraints
1343 - switched usage of reftype to ref because
1347 - changing add_package_symbol to use the new
1351 - fixed how DEMOLISHALL is called so that it
1352 can be overrided in subclasses (thanks to Sartak)
1353 - added test for this (thanks to Sartak)
1355 * Moose::Util::TypeConstraints
1356 - move the ClassName type check code to
1357 Class::MOP::is_class_loaded (thanks to Sartak)
1359 * Moose::Cookbook::Recipe11
1360 - add tests for this (thanks to tokuhirom)
1362 0.48 Thurs. May 29, 2008
1363 (early morning release engineering)--
1365 - fixing the version in Moose::Meta::Method::Destructor
1366 which was causing the indexer to choke
1368 0.47 Thurs. May 29, 2008
1369 (late night release engineering)--
1371 - fixing the version is META.yml, no functional
1372 changes in this release
1374 0.46 Wed. May 28, 2008
1375 !! This version now approx. 20-25% !!
1376 !! faster with new Class::MOP 0.57 !!
1378 * Moose::Meta::Class
1379 - some optimizations of the &initialize method
1380 since it is called so often by &meta
1382 * Moose::Meta::Class
1384 - now use the get_all_package_symbols from the
1385 updated Class::MOP, test suite is now 10 seconds
1388 * Moose::Meta::Method::Destructor
1389 - is_needed can now also be called as a class
1390 method for immutablization to check if the
1391 destructor object even needs to be created
1394 * Moose::Meta::Method::Destructor
1395 Moose::Meta::Method::Constructor
1396 - added more descriptive error message to help
1397 keep people from wasting time tracking an error
1398 that is easily fixed by upgrading.
1400 0.45 Saturday, May 24, 2008
1402 - Because of work in Class::MOP 0.57, all
1403 XS based functionality is now optional
1404 and a Pure Perl version is supplied
1405 - the CLASS_MOP_NO_XS environment variable
1406 can now be used to force non-XS versions
1408 - several of the packages have been tweaked
1409 to take care of this, mostly we added
1410 support for the package_name and name
1411 variables in all the Method metaclasses
1412 - before/around/after method modifiers now
1413 support regexp matching of names
1414 (thanks to Takatoshi Kitano)
1415 - tests added for this
1416 - NOTE: this only works for classes, it
1417 is currently not supported in roles,
1418 but, ... patches welcome
1419 - All usage of Carp::confess have been replaced
1420 by Carp::croak in the "keyword" functions since
1421 the stack trace is usually not helpful
1424 - All usage of Carp::confess have been replaced
1425 by Carp::croak in the "keyword" functions since
1426 the stack trace is usually not helpful
1427 - The 'has' keyword for roles now accepts the
1428 same array ref form that Moose.pm does
1429 (has [qw/foo bar/] => (is => 'rw', ...))
1430 - added test for this
1432 * Moose::Meta::Attribute
1433 - trigger on a ro-attribute is no longer an
1434 error, as it's useful to trigger off of the
1437 * Moose::Meta::Class
1438 - added same 'add_package_symbol' fix as in
1442 - does_role now handles non-Moose classes
1444 - added tests for this
1445 - added the 'add_method_modifier' function
1446 (thanks to Takatoshi Kitano)
1448 * Moose::Util::TypeConstraints
1449 - subtypes of parameterizable types now are
1450 themselves parameterizable types
1452 * Moose::Meta::Method::Constructor
1453 - fixed bug where trigger was not being
1454 called by the inlined immutable
1456 - added test for this (thanks to Caelum)
1458 * Moose::Meta::Role::Application::ToInstance
1459 - now uses the metaclass of the instance
1460 (if possible) to create the anon-class
1461 (thanks Jonathan Rockway)
1463 * Moose::Cookbook::Recipe22
1464 - added the meta-attribute trait recipe
1468 - fixed hash-ordering test bug that was
1469 causing occasional cpantester failures
1470 - renamed the t/000_recipe/*.t tests to be
1471 more descriptive (thanks to Sartak)
1473 0.44 Sat. May 10, 2008
1475 - made make_immutable warning cluck to
1476 show where the error is (thanks mst)
1479 - BUILDALL and DEMOLISHALL now call
1480 ->body when looping through the
1481 methods, to avoid the overloaded
1483 - fixed issue where DEMOLISHALL was
1484 eating the $@ values, and so not
1485 working correctly, it still kind of
1486 eats them, but so does vanilla perl
1487 - added tests for this
1489 * Moose::Cookbook::Recipe7
1490 - added new recipe for immutable
1491 functionality (thanks Dave Rolsky)
1493 * Moose::Cookbook::Recipe9
1494 - added new recipe for builder and
1495 lazy_build (thanks Dave Rolsky)
1497 * Moose::Cookbook::Recipe11
1498 - added new recipe for method aliasing
1499 and exclusion with Roles (thanks Dave Rolsky)
1502 - fixed Win32 test failure (thanks spicyjack)
1504 ~ removed Build.PL and Module::Build compat
1505 since Module::Install has done that.
1507 0.43 Wed. April, 30, 2008
1509 drink more coffee before
1510 doing release engineering
1512 - whoops, forgot to do the smolder tests,
1513 and we broke some of the custom meta-attr
1514 modules. This fixes that.
1516 0.42 Mon. April 28, 2008
1517 - some bad tests slipped by, nothing else
1518 changed in this release (cpantesters++)
1520 - upped the Class::MOP dependency to 0.55
1521 since we have tests which need the C3
1524 0.41 Mon. April 28, 2008
1525 ~~ numerous documentation updates ~~
1527 - Changed all usage of die to Carp::croak for better
1528 error reporting (initial patch by Tod Hagan)
1530 ** IMPORTANT NOTE **
1531 - the make_immutable keyword is now deprecated, don't
1532 use it in any new code and please fix your old code
1533 as well. There will be 2 releases, and then it will
1539 - refactored the way inner and super work to avoid
1540 any method/@ISA cache penalty (nothingmuch)
1542 * Moose::Meta::Class
1543 - fixing &new_object to make sure trigger gets the
1544 coerced value (spotted by Charles Alderman on the
1546 - added test for this
1548 * Moose::Meta::Method::Constructor
1549 - immutable classes which had non-lazy attributes were calling
1550 the default generating sub twice in the constructor. (bug
1551 found by Jesse Luehrs, fixed by Dave Rolsky)
1552 - added tests for this (Dave Rolsky)
1553 - fix typo in initialize_body method (nothingmuch)
1555 * Moose::Meta::Method::Destructor
1556 - fix typo in initialize_body method (nothingmuch)
1558 * Moose::Meta::Method::Overriden
1559 Moose::Meta::Method::Augmented
1560 - moved the logic for these into their own
1561 classes (nothingmuch)
1563 * Moose::Meta::Attribute
1564 - inherited attributes may now be extended without
1565 restriction on the type ('isa', 'does') (Sartak)
1566 - added tests for this (Sartak)
1567 - when an attribute property is malformed (such as lazy without
1568 a default), give the name of the attribute in the error
1570 - added the &applied_traits and &has_applied_traits methods
1571 to allow introspection of traits
1572 - added tests for this
1573 - moved 'trait' and 'metaclass' argument handling to here from
1575 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1576 '+foo' syntax) (nothingmuch)
1577 - added tests for this (t0m)
1580 - localize $@ inside DEMOLISHALL to avoid it
1581 eating $@ (found by Ernesto)
1582 - added test for this (thanks to Ernesto)
1584 * Moose::Util::TypeConstraints
1585 - &find_type_constraint now DWIMs when given an
1586 type constraint object or name (nothingmuch)
1587 - &find_or_create_type_constraint superseded with a number of more
1589 - find_or_create_{isa,does}_type_constraint
1590 - find_or_parse_type_constraint
1592 * Moose::Meta::TypeConstraint
1593 Moose::Meta::TypeConstraint::Class
1594 Moose::Meta::TypeConstraint::Role
1595 Moose::Meta::TypeConstraint::Enum
1596 Moose::Meta::TypeConstraint::Union
1597 Moose::Meta::TypeConstraint::Parameterized
1598 - added the &equals method for comparing two type
1599 constraints (nothingmuch)
1600 - added tests for this (nothingmuch)
1602 * Moose::Meta::TypeConstraint
1603 - add the &parents method, which is just an alias to &parent.
1604 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1606 * Moose::Meta::TypeConstraint::Class
1607 - added the class attribute for introspection purposes
1609 - added tests for this
1611 * Moose::Meta::TypeConstraint::Enum
1612 Moose::Meta::TypeConstraint::Role
1613 - broke these out into their own classes (nothingmuch)
1615 * Moose::Cookbook::Recipe*
1616 - fixed references to test file locations in the POD
1617 and updated up some text for new Moose features
1621 - Added &resolve_metaclass_alias, a helper function for finding an actual
1622 class for a short name (e.g. in the traits list)
1624 0.40 Fri. March 14, 2008
1625 - I hate Pod::Coverage
1627 0.39 Fri. March 14, 2008
1629 - documenting the use of '+name' with attributes
1630 that come from recently composed roles. It makes
1631 sense, people are using it, and so why not just
1632 officially support it.
1633 - fixing the 'extends' keyword so that it will not
1634 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1637 - added the perl -Moose=+Class::Name feature to allow
1638 monkeypatching of classes in one liners
1641 - fixing the 'apply_all_roles' keyword so that it will not
1642 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1644 * Moose::Meta::Class
1645 - added ->create method which now supports roles (thanks to jrockway)
1646 - added tests for this
1647 - added ->create_anon_class which now supports roles and caching of
1648 the results (thanks to jrockway)
1649 - added tests for this
1650 - made ->does_role a little more forgiving when it is
1651 checking a Class::MOP era metaclasses.
1653 * Moose::Meta::Role::Application::ToInstance
1654 - it is now possible to pass extra params to be used when
1655 a role is applied to an the instance (rebless_params)
1656 - added tests for this
1658 * Moose::Util::TypeConstraints
1659 - class_type now accepts an optional second argument for a
1660 custom message. POD anotated accordingly (groditi)
1661 - added tests for this
1662 - it is now possible to make anon-enums by passing 'enum' an
1663 ARRAY ref instead of the $name => @values. Everything else
1665 - added tests for this
1668 - making test for using '+name' on attributes consumed
1669 from a role, it works and makes sense too.
1671 * Moose::Meta::Attribute
1672 - fix handles so that it doesn't return nothing
1673 when the method cannot be found, not sure why
1674 it ever did this originally, this means we now
1675 have slightly better support for AUTOLOADed
1677 - added more delegation tests
1678 - adding ->does method to this so as to better
1679 support traits and their introspection.
1680 - added tests for this
1683 - localizing the Data::Dumper configurations so
1684 that it does not pollute others (RT #33509)
1685 - made ->does a little more forgiving when it is
1686 passed Class::MOP era metaclasses.
1688 0.38 Fri. Feb. 15, 2008
1689 * Moose::Meta::Attribute
1690 - fixed initializer to correctly do
1691 type checking and coercion in the
1693 - added tests for this
1696 - fixed some finicky tests (thanks to konobi)
1698 0.37 Thurs. Feb. 14, 2008
1700 - fixed some details in Moose::init_meta
1701 and its superclass handling (thanks thepler)
1702 - added tests for this (thanks thepler)
1703 - 'has' now dies if you don't pass in name
1705 - added the 'make_immutable' keyword as a shortcut
1708 * Moose::Meta::Class
1709 Moose::Meta::Method::Constructor
1710 Moose::Meta::Attribute
1711 - making (init_arg => undef) work here too
1712 (thanks to nothingmuch)
1714 * Moose::Meta::Attribute
1715 Moose::Meta::Method::Constructor
1716 Moose::Meta::Method::Accessor
1717 - make lazy attributes respect attr initializers (rjbs)
1718 - added tests for this
1720 * Moose::Util::TypeConstraints
1721 Moose::Util::TypeConstraints::OptimizedConstraints
1722 Moose::Meta::TypeConstraints
1723 Moose::Meta::Attribute
1724 Moose::Meta::Method::Constructor
1725 Moose::Meta::Method::Accessor
1726 - making type errors use the
1727 assigned message (thanks to Sartak)
1728 - added tests for this
1730 * Moose::Meta::Method::Destructor
1731 - making sure DESTROY gets inlined properly
1732 with successive DEMOLISH calls (thanks to manito)
1734 * Moose::Meta::Attribute
1735 Moose::Meta::Method::Accessor
1736 - fixed handling of undef with type constraints
1738 - added tests for this
1741 - added &get_all_init_args and &get_all_attribute_values
1742 (thanks to Sartak and nothingmuch)
1744 0.36 Sat. Jan. 26, 2008
1746 Moose::Meta::Attribute
1747 - role type tests now support when roles are
1748 applied to non-Moose classes (found by ash)
1749 - added tests for this (thanks to ash)
1750 - couple extra tests to boost code coverage
1752 * Moose::Meta::Method::Constructor
1753 - improved fix for handling Class::MOP attributes
1754 - added test for this
1756 * Moose::Meta::Class
1757 - handled the add_attribute($attribute_meta_object)
1759 - added test for this
1761 0.35 Tues. Jan. 22, 2008
1762 * Moose::Meta::Method::Constructor
1763 - fix to make sure even Class::MOP attributes
1764 are handled correctly (Thanks to Dave Rolsky)
1765 - added test for this (also Dave Rolsky)
1767 * Moose::Meta::Class
1768 - improved error message on _apply_all_roles,
1769 you should now use Moose::Util::apply_all_roles
1770 and you shouldnt have been using a _ prefixed
1771 method in the first place ;)
1773 0.34 Mon. Jan. 21, 2008
1774 ~~~ more misc. doc. fixes ~~~
1775 ~~ updated copyright dates ~~
1777 Moose is now a postmodern object system :)
1778 - (see the POD for details)
1780 * <<Role System Refactoring>>
1781 - this release contains a major reworking and
1782 cleanup of the role system
1783 - 100% backwards compat.
1784 - Role application now restructured into seperate
1785 classes based on type of applicants
1786 - Role summation (combining of more than one role)
1787 is much cleaner and anon-classes are no longer
1788 used in this process
1789 - new Composite role metaclass
1790 - runtime application of roles to instances
1791 is now more efficient and re-uses generated
1792 classes when applicable
1794 * <<New Role composition features>>
1795 - methods can now be excluded from a given role
1797 - methods can now be aliased to another name (and
1798 still retain the original as well)
1800 * Moose::Util::TypeConstraints::OptimizedConstraints
1801 - added this module (see above)
1803 * Moose::Meta::Class
1804 - fixed the &_process_attribute method to be called
1805 by &add_attribute, so that the API is now correct
1807 * Moose::Meta::Method::Accessor
1808 - fixed bug when passing a list of values to
1809 an accessor would get (incorrectly) ignored.
1810 Thanks to Sartak for finding this ;)
1811 - added tests for this (Sartak again)
1813 * Moose::Meta::Method::Accessor
1814 Moose::Meta::Method::Constructor
1815 Moose::Meta::Attribute
1816 Moose::Meta::TypeConstraint
1817 Moose::Meta::TypeCoercion
1818 - lots of cleanup of such things as:
1820 - type constraint handling
1821 - error handling/messages
1822 (thanks to nothingmuch)
1824 * Moose::Meta::TypeConstraint::Parameterizable
1825 - added this module to support the refactor
1826 in Moose::Meta::TypeConstraint::Parameterized
1828 * Moose::Meta::TypeConstraint::Parameterized
1829 - refactored how these types are handled so they
1830 are more generic and not confined to ArrayRef
1834 - shortened some file names for better VMS support (RT #32381)
1836 0.33 Fri. Dec. 14, 2007
1837 !! Moose now loads 2 x faster !!
1838 !! with new Class::MOP 0.49 !!
1840 ++ new oose.pm module to make command line
1841 Moose-ness easier (see POD docs for more)
1843 * Moose::Meta::Class
1845 - several tweaks to take advantage of the
1846 new method map caching in Class::MOP
1848 * Moose::Meta::TypeConstraint::Parameterized
1849 - allow subtypes of ArrayRef and HashRef to
1850 be used as a container (sartak)
1851 - added tests for this
1852 - basic support for coercion to ArrayRef and
1853 HashRef for containers (sartak)
1854 - added tests for this
1856 * Moose::Meta::TypeCoercion
1857 - coercions will now create subtypes as needed
1858 so you can now add coercions to parameterized
1859 types without having to explictly define them
1860 - added tests for this
1862 * Moose::Meta::Method::Accessor
1863 - allow subclasses to decide whether we need
1864 to copy the value into a new variable (sartak)
1866 0.32 Tues. Dec. 4, 2007
1867 * Moose::Util::TypeConstraints
1868 - fixing how subtype aliases of unions work
1869 they should inherit the parent's coercion
1870 - added tests for this
1871 - you can now define multiple coercions on
1872 a single type at different times instead of
1873 having to do it all in one place
1874 - added tests for this
1876 * Moose::Meta::TypeConstraint
1877 - there is now a default constraint of sub { 1 }
1878 instead of Moose::Util::TypeConstraints setting
1881 * Moose::Meta::TypeCoercion
1882 * Moose::Meta::TypeCoercion::Union
1883 - added the &has_coercion_for_type and
1884 &add_type_coercions methods to support the
1885 new features above (although you cannot add
1886 more type coercions for Union types)
1888 0.31 Mon. Nov. 26, 2007
1889 * Moose::Meta::Attribute
1890 - made the +attr syntax handle extending types with
1891 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1892 now works if the original foo is an ArrayRef.
1893 - added tests for this.
1894 - delegation now works even if the attribute does not
1895 have a reader method using the get_read_method_ref
1896 method from Class::MOP::Attribute.
1897 - added tests for this
1898 - added docs for this
1900 * Moose::Util::TypeConstraints
1901 - passing no "additional attribute info" to
1902 &find_or_create_type_constraint will no longer
1903 attempt to create an __ANON__ type for you,
1904 instead it will just return undef.
1905 - added docs for this
1907 0.30 Fri. Nov. 23, 2007
1908 * Moose::Meta::Method::Constructor
1909 -builder related bug in inlined constructor. (groditi)
1911 * Moose::Meta::Method::Accessor
1912 - genereate unnecessary calls to predicates and refactor
1913 code generation for runtime speed (groditi)
1915 * Moose::Util::TypeConstraints
1916 - fix ClassName constraint to introspect symbol table (mst)
1917 - added more tests for this (mst)
1918 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1919 with work correctly.
1920 - added tests for this
1923 - adding the link to Recipie 11 (written by Sartak)
1924 - adding test for SYNOPSIS code
1927 - New tests for builder bug. Upon instantiation, if an
1928 attribute had a builder, no value and was not lazy the
1929 builder default was not getting run, oops. (groditi)
1931 0.29 Tues. Nov. 13, 2007
1932 * Moose::Meta::Attribute
1933 - Fix error message on missing builder method (groditi)
1935 * Moose::Meta::Method::Accessor
1936 - Fix error message on missing builder method (groditi)
1939 - Add test to check for the correct error message when
1940 builder method is missing (groditi)
1942 0.28 Tues. Nov. 13, 2007
1943 - 0.27 packaged incorrectly (groditi)
1945 0.27 Tues. Nov. 13, 2007
1946 * Moose::Meta::Attribute
1947 - Added support for the new builder option (groditi)
1948 - Added support for lazy_build option (groditi)
1949 - Changed slot initialization for predicate changes (groditi)
1951 * Moose::Meta::Method::Accessor
1952 - Added support for lazy_build option (groditi)
1953 - Fix inline methods to work with corrected predicate
1956 * Moose::Meta::Method::Constructor
1957 - Added support for lazy_build option (groditi)
1960 - tests for builder and lazy_build (groditi)
1962 * fixing some misc. bits in the docs that
1963 got mentioned on CPAN Forum & perlmonks
1966 - fixed how required methods are handled
1967 when they encounter overriden or modified
1968 methods from a class (thanks to confound).
1969 - added tests for this
1971 * Moose::Util::TypeConstraint
1972 - fixed the type notation parser so that
1973 the | always creates a union and so is
1974 no longer a valid type char (thanks to
1975 konobi, mugwump and #moose for working
1977 - added more tests for this
1979 0.26 Thurs. Sept. 27, 2007
1982 * Parameterized Types
1983 We now support parameterized collection types, such as:
1984 ArrayRef[Int] # array or integers
1985 HashRef[Object] # a hash with object values
1986 They can also be nested:
1987 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1988 And work with the type unions as well:
1989 ArrayRef[Int | Str] # array of integers of strings
1991 * Better Framework Extendability
1992 Moose.pm is now "extendable" such that it is now much
1993 easier to extend the framework and add your own keywords
1994 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1995 section of the Moose.pm docs.
1998 In an effort to begin documenting some of the various
1999 details of Moose as well as some common idioms, we have
2000 created Moose::Cookbook::Snacks as a place to find
2001 small (easily digestable) nuggets of Moose code.
2004 ~ Several doc updates/cleanup thanks to castaway ~
2006 - converted build system to use Module::Install instead of
2007 Module::Build (thanks to jrockway)
2010 - added all the meta classes to the immutable list and
2011 set it to inline the accessors
2012 - fix import to allow Sub::Exporter like { into => }
2013 and { into_level => } (perigrin)
2014 - exposed and documented init_meta() to allow better
2015 embedding and extending of Moose (perigrin)
2018 - complete re-organization of the test suite
2019 - added some new tests as well
2020 - finally re-enabled the Moose::POOP test since
2021 the new version of DBM::Deep now works again
2024 * Moose::Meta::Class
2025 - fixed very odd and very nasty recursion bug with
2027 - added tests for this (eilara)
2029 * Moose::Meta::Attribute
2030 Moose::Meta::Method::Constructor
2031 Moose::Meta::Method::Accessor
2032 - fixed issue with overload::Overloaded getting called
2033 on non-blessed items. (RT #29269)
2034 - added tests for this
2036 * Moose::Meta::Method::Accessor
2037 - fixed issue with generated accessor code making
2038 assumptions about hash based classes (thanks to dexter)
2040 * Moose::Coookbook::Snacks
2041 - these are bits of documentation, not quite as big as
2042 Recipes but which have no clear place in the module docs.
2043 So they are Snacks! (horray for castaway++)
2045 * Moose::Cookbook::Recipe4
2046 - updated it to use the new ArrayRef[MyType] construct
2047 - updated the accompanying test as well
2049 +++ Major Refactor of the Type Constraint system +++
2050 +++ with new features added as well +++
2052 * Moose::Util::TypeConstraint
2053 - no longer uses package variable to keep track of
2054 the type constraints, now uses the an instance of
2055 Moose::Meta::TypeConstraint::Registry to do it
2056 - added more sophisticated type notation parsing
2058 - added tests for this
2060 * Moose::Meta::TypeConstraint
2061 - some minor adjustments to make subclassing easier
2062 - added the package_defined_in attribute so that we
2063 can track where the type constraints are created
2065 * Moose::Meta::TypeConstraint::Union
2066 - this is now been refactored to be a subclass of
2067 Moose::Meta::TypeConstraint
2069 * Moose::Meta::TypeCoercion::Union
2070 - this has been added to service the newly refactored
2071 Moose::Meta::TypeConstraint::Union and is itself
2072 a subclass of Moose::Meta::TypeCoercion
2074 * Moose::Meta::TypeConstraint::Parameterized
2075 - added this module (taken from MooseX::AttributeHelpers)
2076 to help construct nested collection types
2077 - added tests for this
2079 * Moose::Meta::TypeConstraint::Registry
2080 - added this class to keep track of type constraints
2082 0.25 Mon. Aug. 13, 2007
2084 - Documentation update to reference Moose::Util::TypeConstraints
2085 under 'isa' in 'has' for how to define a new type
2086 (thanks to shlomif).
2088 * Moose::Meta::Attribute
2089 - required attributes now will no longer accept undef
2090 from the constructor, even if there is a default and lazy
2091 - added tests for this
2092 - default subroutines must return a value which passes the
2094 - added tests for this
2096 * Moose::Meta::Attribute
2097 * Moose::Meta::Method::Constructor
2098 * Moose::Meta::Method::Accessor
2099 - type-constraint tests now handle overloaded objects correctly
2100 in the error message
2101 - added tests for this (thanks to EvanCarroll)
2103 * Moose::Meta::TypeConstraint::Union
2104 - added (has_)hand_optimized_constraint to this class so that
2105 it behaves as the regular Moose::Meta::TypeConstraint does.
2108 - large refactoring of this code
2109 - added several more tests
2110 - tests for subtle conflict resolition issues
2111 added, but not currently running
2114 * Moose::Cookbook::Recipe7
2115 - added new recipe for augment/inner functionality
2117 - added test for this
2120 - a formal definition of roles (still in progress)
2123 - utilities for easier working with Moose classes
2124 - added tests for these
2127 - This contains Moose specific test functions
2128 - added tests for these
2130 0.24 Tues. July 3, 2007
2131 ~ Some doc updates/cleanup ~
2133 * Moose::Meta::Attribute
2134 - added support for roles to be given as parameters
2135 to the 'handles' option.
2136 - added tests and docs for this
2137 - the has '+foo' attribute form now accepts changes to
2138 the lazy option, and the addition of a handles option
2139 (but not changing the handles option)
2140 - added tests and docs for this
2143 - required methods are now fetched using find_method_by_name
2144 so that required methods can come from superclasses
2145 - adjusted tests for this
2147 0.23 Mon. June 18, 2007
2148 * Moose::Meta::Method::Constructor
2149 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2150 * Moose::Meta::Class
2151 - Modify make_immutable to work with the new Class::MOP immutable
2152 mechanism + POD + very basic test (groditi)
2153 * Moose::Meta::Attribute
2154 - Fix handles to use goto() so that caller() comes out properly on
2155 the other side (perigrin)
2157 0.22 Thurs. May 31, 2007
2158 * Moose::Util::TypeConstraints
2159 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2160 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2161 prototypes for functions
2162 - added the ClassName type constraint, this checks for strings
2163 which will respond true to ->isa(UNIVERSAL).
2164 - added tests and docs for this
2165 - subtyping just in name now works correctly by making the
2166 default for where be { 1 }
2167 - added test for this
2169 * Moose::Meta::Method::Accessor
2170 - coerce and lazy now work together correctly, thanks to
2171 merlyn for finding this bug
2172 - tests added for this
2173 - fix reader presedence bug in Moose::Meta::Attribute + tests
2176 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2177 a HASH-ref and missed. This produces better error messages then
2178 having it die cause undef is not a HASH.
2179 - added tests for this
2181 0.21 Thursday, May 2nd, 2007
2183 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2184 - modified unimport to remove super and inner along with the rest
2185 - altered unimport tests to handle this
2188 - altered super export to populate SUPER_SLOT
2190 * Moose::Meta::Class
2191 - altered augment and override modifier application to use *_SLOT
2192 - modified tests for these to unimport one test class each to test
2195 - fixed issue where custom attribute metaclasses
2196 where not handled correctly in roles
2197 - added tests for this
2199 * Moose::Meta::Class
2200 - fixed issue where extending metaclasses with
2201 roles would blow up. Thanks to Aankhen`` for
2202 finding this insidious error, and it's solution.
2204 ~~ lots of spelling and grammer fixes in the docs,
2205 many many thanks to rlb3 and Aankhen for these :)
2207 0.20 Friday, April 6th, 2007
2208 >> I messed up the SKIP logic in one test
2209 so this release is just to fix that.
2212 - 'has' now also accepts an ARRAY ref
2213 to create multiple attrs (see docs)
2214 (thanks to konobi for this)
2215 - added tests and docs
2217 0.19 Thurs. April 5th, 2007
2218 ~~ More documentation updates ~~
2220 * Moose::Util::TypeConstraints
2221 - 'type' now supports messages as well
2222 thanks to phaylon for finding this
2223 - added tests for this
2224 - added &list_all_type_constraints and
2225 &list_all_builtin_type_constraints
2226 functions to facilitate introspection.
2228 * Moose::Meta::Attribute
2229 - fixed regexp 'handles' declarations
2230 to build the list of delegated methods
2231 correctly (and not override important
2232 things like &new) thanks to ashleyb
2234 - added tests and docs for this
2235 - added the 'documentation' attributes
2236 so that you can actually document your
2237 attributes and inspect them through the
2239 - added tests and docs for this
2241 * Moose::Meta::Class
2242 - when loading custom attribute metaclasses
2243 it will first look in for the class in the
2244 Moose::Meta::Attribute::Custom::$name, and
2245 then default to just loading $name.
2246 - added tests and docs for this
2248 * Moose::Meta::TypeConstraint
2249 - type constraints now stringify to their names.
2250 - added test for this
2253 - added tests to assure we work with Module::Refresh
2254 - added stricter test skip logic in the Moose POOP
2255 test, ask Rob Kinyon why.
2256 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2258 0.18 Sat. March 10, 2007
2259 ~~ Many, many documentation updates ~~
2262 - We now use Class::MOP::load_class to
2264 - added tests to show types and subtypes
2265 working with Declare::Constraints::Simple
2266 and Test::Deep as constraint engines.
2269 !! You must have Class::MOP 0.37_001 !!
2270 !! for this developer release to work !!
2272 This release was primarily adding the immutable
2273 feature to Moose. An immutable class is one which
2274 you promise not to alter. When you set the class
2275 as immutable it will perform various bits of
2276 memoization and inline certain part of the code
2277 (constructors, destructors and accessors). This
2278 minimizes (and in some cases totally eliminates)
2279 one of Moose's biggest performance hits. This
2280 feature is not on by default, and is 100% optional.
2281 It has several configurable bits as well, so you
2282 can pick and choose to your specific needs.
2284 The changes involved in this were fairly wide and
2285 highly specific, but 100% backwards compatible, so
2286 I am not going to enumerate them here. If you are
2287 truely interested in what was changed, please do
2290 0.17 Tues. Nov. 14, 2006
2291 * Moose::Meta::Method::Accessor
2292 - bugfix for read-only accessors which
2293 are have a type constraint and lazy.
2294 Thanks to chansen for finding it.
2296 0.16 Tues. Nov. 14, 2006
2298 There are some speed improvements in this release,
2299 but they are only the begining, so stay tuned.
2302 - BUILDALL and DEMOLISHALL no longer get
2303 called unless they actually need to be.
2304 This gave us a signifigant speed boost
2305 for the cases when there is no BUILD or
2306 DEMOLISH method present.
2308 * Moose::Util::TypeConstraints
2309 * Moose::Meta::TypeConstraint
2310 - added an 'optimize_as' option to the
2311 type constraint, which allows for a
2312 hand optimized version of the type
2313 constraint to be used when possible.
2314 - Any internally created type constraints
2315 now provide an optimized version as well.
2317 0.15 Sun. Nov. 5, 2006
2319 This version of Moose *must* have Class::MOP 0.36 in order
2320 to work correctly. A number of small internal tweaks have
2321 been made in order to be compatible with that release.
2323 * Moose::Util::TypeConstraints
2324 - added &unimport so that you can clean out
2325 your class namespace of these exported
2328 * Moose::Meta::Class
2329 - fixed minor issue which occasionally
2330 comes up during global destruction
2332 - moved Moose::Meta::Method::Overriden into
2336 - moved Moose::Meta::Role::Method into
2339 * Moose::Meta::Attribute
2340 - changed how we do type checks so that
2341 we reduce the overall cost, but still
2344 - moved accessor generation methods to
2345 Moose::Meta::Method::Accessor to
2346 conform to the API changes from
2349 * Moose::Meta::TypeConstraint
2350 - changed how constraints are compiled
2351 so that we do less recursion and more
2352 iteration. This makes the type check
2354 - moved Moose::Meta::TypeConstraint::Union
2357 * Moose::Meta::Method::Accessor
2358 - created this from methods formerly found in
2359 Moose::Meta::Attribute
2361 * Moose::Meta::Role::Method
2362 - moved this from Moose::Meta::Role
2364 * Moose::Meta::Method::Overriden
2365 - moved this from Moose::Meta::Class
2367 * Moose::Meta::TypeConstraint::Union
2368 - moved this from Moose::Meta::TypeConstraint
2370 0.14 Mon. Oct. 9, 2006
2372 * Moose::Meta::Attribute
2373 - fixed lazy attributes which were not getting
2374 checked with the type constraint (thanks ashley)
2375 - added tests for this
2376 - removed the over-enthusiastic DWIMery of the
2377 automatic ArrayRef and HashRef defaults, it
2378 broke predicates in an ugly way.
2379 - removed tests for this
2381 0.13 Sat. Sept. 30, 2006
2383 This version of Moose *must* have Class::MOP 0.35 in order
2384 to work correctly. A number of small internal tweaks have
2385 been made in order to be compatible with that release.
2388 - Removed the use of UNIVERSAL::require to be a better
2389 symbol table citizen and remove a dependency
2390 (thanks Adam Kennedy)
2392 **~~ removed experimental & undocumented feature ~~**
2393 - commented out the 'method' and 'self' keywords, see the
2394 comments for more info.
2397 - added a FAQ and WTF files to document frequently
2398 asked questions and common problems
2400 * Moose::Util::TypeConstraints
2401 - added GlobRef and FileHandle type constraint
2402 - added tests for this
2404 * Moose::Meta::Attribute
2405 - if your attribute 'isa' ArrayRef of HashRef, and you have
2406 not explicitly set a default, then make the default DWIM.
2407 This will also work for subtypes of ArrayRef and HashRef
2409 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2410 - new test added for this (thanks to ashley)
2413 - added basic support for runtime role composition
2414 but this is still *highly experimental*, so feedback
2415 is much appreciated :)
2416 - added tests for this
2418 * Moose::Meta::TypeConstraint
2419 - the type constraint now handles the coercion process
2420 through delegation, this is to support the coercion
2423 * Moose::Meta::TypeConstraint::Union
2424 - it is now possible for coercions to be performed
2426 - added tests for this (thanks to konobi)
2428 * Moose::Meta::TypeCoercion
2429 - properly capturing error when type constraint
2433 - Scalar::Util 1.18 is bad on Win32, so temporarily
2434 only require version 1.17 for Win32 and cygwin.
2435 (thanks Adam Kennedy)
2437 0.12 Sat. Sept. 1, 2006
2439 - Recipe5 (subtypes & coercion) has been written
2442 - fixed "bad meta" error message to be more descriptive
2443 - fixed &unimport to not remove the &inner and &super
2444 keywords because we need to localize them.
2445 - fixed number of spelling/grammer issues, thanks Theory :)
2447 **~~ experimental & undocumented feature ~~**
2448 - added the method and self keywords, they are basically
2449 just sugar, and they may not stay around.
2452 - added &dump method to easily Data::Dumper
2455 * Moose::Meta::TypeConstraint
2456 - added the &is_a_type_of method to check both the current
2457 and the subtype of a method (similar to &isa with classes)
2460 - this is now a subclass of Class::MOP::Module, and no longer
2461 creates the _role_meta ugliness of before.
2462 - fixed tests to reflect this change
2464 0.11 Wed. July 12, 2006
2466 - added an &unimport method to remove all the keywords
2467 that Moose will import, simply add 'no Moose' to the
2468 bottom of your class file.
2471 - fixed some test failures caused by a forgotten test
2474 0.10 Thurs. July 6, 2006
2476 - improved error message when loading modules so
2477 it is less confusing when you load a role.
2478 - added &calculate_all_roles method to
2479 Moose::Meta::Class and Moose::Meta::Role
2482 This module has been tested against Class::MOP 0.30
2483 but it does not yet utilize the optimizations
2484 it makes available. Stay tuned for that ;)
2486 0.09_03 Fri. June 23, 2006
2487 ++ DEVELOPER RELEASE ++
2489 - 'use strict' and 'use warnings' are no longer
2490 needed in Moose classes, Moose itself will
2491 turn them on for you.
2492 - added tests for this
2493 - moved code from exported subs to private methods
2494 in Moose::Meta::Class
2497 - as with Moose, strict and warnings are
2498 automatically turned on for you.
2499 - added tests for this
2502 - now handles an edge case for override errors
2503 - added tests for this
2504 - added some more edge case tests
2506 0.09_02 Tues. May 16, 2006
2507 ++ DEVELOPER RELEASE ++
2509 - added prototypes to the exported subs
2513 - added prototypes to the exported subs
2516 * Moose::Util::TypeConstraints
2517 - cleaned up prototypes for the subs
2520 0.09_01 Fri. May 12, 2006
2521 ++ DEVELOPER RELEASE ++
2522 - This release works in combination with
2523 Class::MOP 0.29_01, it is a developer
2524 release because it uses the a new
2525 instance sub-protocol and a fairly
2526 complete Role implementation. It has
2527 not yet been optimized, so it slower
2528 the the previous CPAN version. This
2529 release also lacks good updated docs,
2530 the official release will have updated docs.
2533 - refactored the keyword exports
2534 - 'with' now checks Role validaity and
2535 accepts more than one Role at a time
2536 - 'extends' makes metaclass adjustments as
2537 needed to ensure metaclass compatibility
2540 - refactored the keyword exports
2541 - 'with' now checks Role validaity and
2542 accepts more than one Role at a time
2544 * Moose::Util::TypeConstraints
2545 - added the 'enum' keyword for simple
2546 string enumerations which can be used as
2548 - see example of usage in t/202_example.t
2551 - more careful checking of params to new()
2554 - much work done on the role composition
2555 - many new tests for conflict detection
2556 and composition edge cases
2557 - not enough documentation, I suggest
2558 looking at the tests
2560 * Moose::Meta::Instance
2561 - added new Instance metaclass to support
2562 the new Class::MOP instance protocol
2564 * Moose::Meta::Class
2565 - some small changes to support the new
2567 - some small additions to support Roles
2569 * Moose::Meta::Attribute
2570 - some improvements to the accessor generation code
2572 - some small changes to support the new
2574 - (still somewhat) experimental delegation support
2575 with the 'handles' option
2576 - added several tests for this
2577 - no docs for this yet
2579 0.05 Thurs. April 27, 2006
2581 - keywords are now exported with Sub::Exporter
2582 thanks to chansen for this commit
2583 - has keyword now takes a 'metaclass' option
2584 to support custom attribute meta-classes
2585 on a per-attribute basis
2586 - added tests for this
2587 - the 'has' keyword not accepts inherited slot
2588 specifications (has '+foo'). This is still an
2589 experimental feature and probably not finished
2590 see t/038_attribute_inherited_slot_specs.t for
2591 more details, or ask about it on #moose
2592 - added tests for this
2595 - keywords are now exported with Sub::Exporter
2597 * Moose::Utils::TypeConstraints
2598 - reorganized the type constraint hierarchy, thanks
2599 to nothingmuch and chansen for his help and advice
2601 - added some tests for this
2602 - keywords are now exported with Sub::Exporter
2603 thanks to chansen for this commit
2605 * Moose::Meta::Class
2606 - due to changes in Class::MOP, we had to change
2607 construct_instance (for the better)
2609 * Moose::Meta::Attribute
2610 - due to changes in Class::MOP, we had to add the
2611 initialize_instance_slot method (it's a good thing)
2613 * Moose::Meta::TypeConstraint
2614 - added type constraint unions
2615 - added tests for this
2616 - added the is_subtype_of predicate method
2617 - added tests for this
2619 0.04 Sun. April 16th, 2006
2621 - Roles can now consume other roles
2622 - added tests for this
2623 - Roles can specify required methods now with
2624 the requires() keyword
2625 - added tests for this
2628 - ripped out much of it's guts ,.. much cleaner now
2629 - added required methods and correct handling of
2630 them in apply() for both classes and roles
2631 - added tests for this
2632 - no longer adds a does() method to consuming classes
2633 it relys on the one in Moose::Object
2634 - added roles attribute and some methods to support
2635 roles consuming roles
2637 * Moose::Meta::Attribute
2638 - added support for triggers on attributes
2639 - added tests for this
2640 - added support for does option on an attribute
2641 - added tests for this
2643 * Moose::Meta::Class
2644 - added support for attribute triggers in the
2646 - added tests for this
2649 - Moose no longer creates a subtype for your class
2650 if a subtype of the same name already exists, this
2651 should DWIM in 99.9999% of all cases
2653 * Moose::Util::TypeConstraints
2654 - fixed bug where incorrect subtype conflicts were
2656 - added test for this
2659 - this class can now be extended with 'use base' if
2660 you need it, it properly loads the metaclass class now
2661 - added test for this
2663 0.03_02 Wed. April 12, 2006
2665 - you must now explictly use Moose::Util::TypeConstraints
2666 it no longer gets exported for you automatically
2669 - new() now accepts hash-refs as well as key/value lists
2670 - added does() method to check for Roles
2671 - added tests for this
2673 * Moose::Meta::Class
2674 - added roles attribute along with the add_role() and
2676 - added tests for this
2679 - now adds a does() method to consuming classes
2680 which tests the class's hierarchy for roles
2681 - added tests for this
2683 0.03_01 Mon. April 10, 2006
2685 - added new Role recipe (no content yet, only code)
2688 - added 'with' keyword for Role support
2689 - added test and docs for this
2690 - fixed subtype quoting bug
2691 - added test for this
2695 - added test and docs
2697 * Moose::Util::TypeConstraints
2698 - added the message keyword to add custom
2699 error messages to type constraints
2702 - the meta role to support Moose::Role
2703 - added tests and docs
2705 * Moose::Meta::Class
2706 - moved a number of things from Moose.pm
2707 to here, they should have been here
2710 * Moose::Meta::Attribute
2711 - moved the attribute option macros here
2712 instead of putting them in Moose.pm
2714 * Moose::Meta::TypeConstraint
2715 - added the message attributes and the
2717 - added tests and docs for this
2719 0.03 Thurs. March 30, 2006
2721 - added the Moose::Cookbook with 5 recipes,
2722 describing all the stuff Moose can do.
2725 - fixed an issue with &extends super class loading
2726 it now captures errors and deals with inline
2727 packages correctly (bug found by mst, solution
2729 - added super/override & inner/augment features
2730 - added tests and docs for these
2733 - BUILDALL now takes a reference of the %params
2734 that are passed to &new, and passes that to
2737 * Moose::Util::TypeConstraints
2738 - Type constraints now survive runtime reloading
2739 - added test for this
2741 * Moose::Meta::Class
2742 - fixed the way attribute defaults are handled
2743 during instance construction (bug found by chansen)
2745 * Moose::Meta::Attribute
2746 - read-only attributes now actually enforce their
2747 read-only-ness (this corrected in Class::MOP as
2750 0.02 Tues. March 21, 2006
2752 - many more tests, fixing some bugs and
2754 - &extends now loads the base module with
2756 - added UNIVERSAL::require to the
2759 - each new Moose class will also create
2760 and register a subtype of Object which
2761 correspond to the new Moose class.
2762 - the 'isa' option in &has now only
2763 accepts strings, and will DWIM in
2766 * Moose::Util::TypeConstraints
2767 - added type coercion features
2768 - added tests for this
2769 - added support for this in attributes
2770 and instance construction
2772 - type construction no longer creates a
2773 function, it registers the type instead.
2774 - added several functions to get the
2778 - BUILDALL and DEMOLISHALL were broken
2779 because of a mis-named hash key, Whoops :)
2781 * Moose::Meta::Attribute
2782 - adding support for coercion in the
2783 autogenerated accessors
2785 * Moose::Meta::Class
2786 - adding support for coercion in the
2787 instance construction
2789 * Moose::Meta::TypeConstraint
2790 * Moose::Meta::TypeCoercion
2791 - type constraints and coercions are now
2792 full fledges meta-objects
2794 0.01 Wed. March 15, 2006
2795 - Moooooooooooooooooose!!!