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 - When a nonexistent sub name is passed to as_is, with_caller, or
47 with_meta, throw a warning and skip the exporting, rather than
48 installing a broken sub. (doy)
51 * Moose::Manual::Attributes
52 - Clarify "is", include discussion of "bare". (Sartak)
54 * Moose::Meta::Role::Method::Conflicting
55 * Moose::Meta::Role::Application::ToClass
56 - For the first set of roles involved in a conflict, report all
57 unresolved method conflicts, not just the first method. Fixes #47210
58 reported by Ovid. (Sartak)
60 * Moose::Meta::TypeConstraint
61 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
64 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
66 - Allow specifying role options (alias, excludes, MXRP stuff) in the
67 arrayref passed to "use Moose -traits" (doy)
70 - Add functions meta_class_alias and meta_attribute_alias for creating
71 aliases for class and attribute metaclasses and metatraits. (doy)
73 * Moose::Meta::Attribute
74 * Moose::Meta::Method::Accessor
75 - A trigger now receives the old value as a second argument, if the
76 attribute had one. (Dave Rolsky)
78 * Moose::Meta::Method::Constructor
79 - Fix a bug with $obj->new when $obj has stringify overloading.
80 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
81 - However, we will probably deprecate $obj->new, so please don't start
82 using it for new code!
84 * Moose::Meta::Role::Application
85 * Moose::Meta::Role::Application::RoleSummation
86 - Rename alias and excludes to -alias and -excludes (but keep the old
87 names for now, for backcompat) (doy)
90 * Moose::Manual::Contributing
91 - Re-write the Moose::Manual::Contributing document to reflect
92 the new layout and methods of work for the Git repository. All
93 work now should be done in topic branches and reviewed by a
94 core committer before being applied to master. All releases
95 are done by a cabal member and merged from master to
96 stable. This plan was devised by Yuval, blame him. (perigrin)
99 - Create metaclass attributes for the different role application
102 * Moose::Util::MetaRole
103 - Allow applying roles to a meta role's role application
106 * Moose::Meta::Attribute
107 - Add weak_ref to allowed options for "has '+foo'" (mst)
109 * Moose::Meta::Method::Accessor
110 - No longer uses inline_slot_access in accessors, to support
111 non-lvalue-based meta instances. (sorear)
114 * Moose::Meta::Method::Delegation
115 - Once again allow class names as well as objects for
116 delegation. This was changed in 0.86.
119 * Moose::Meta::Class::Immutable::Trait
120 - Fixes to work with the latest Class::MOP.
122 * Moose::Meta::Method::Delegation
123 - Delegation now dies with a more useful error message if the
124 attribute's accessor returns something defined but
127 0.85 Fri, Jun 26, 2009
128 * Moose::Meta::Attribute
129 - The warning for 'no associated methods' is now split out into
130 the _check_associated_methods method, so that extensions can
131 safely call 'after install_accessors => ...'. This fixes a
132 warning from MooseX::AttributeHelpers. (hdp)
134 0.84 Fri, Jun 26, 2009
136 - has now sets definition_context for attributes defined in
139 * Moose::Meta::Attribute
140 - When adding an attribute to a metaclass, if the attribute has
141 no associated methods, it will give a deprecation
143 - Methods generated by delegation were not being added to
144 associated_methods. (hdp)
145 - Attribute accessors (reader, writer, accessor, predicate,
146 clearer) now warn if they overwrite an existing method. (doy)
147 - Attribute constructors now warn very noisily about unknown (or
148 misspelled) arguments
150 * Moose::Util::TypeConstraints
151 - Deprecated the totally useless Role type name, which just
152 checked if $object->can('does'). Note that this is _not_ the
153 same as a type created by calling role_type('RoleName').
155 * Moose::Util::TypeConstraints
156 * Moose::Meta::TypeConstraint::DuckType
157 - Reify duck type from a regular subtype into an actual class
159 - Document this because Sartak did all my work for me
162 * Moose::Meta::Attribute
163 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
164 it is just a list of methods (Sartak)
167 - The get_*_method_modifiers methods would die if the role had
168 no modifiers of the given type (Robert Buels).
170 0.83 Tue, Jun 23, 2009
172 - Fix _construct_instance not setting the special __MOP__ object
173 key in instances of anon classes. (doy)
175 0.82 Sun, Jun 21, 2009
176 * Moose::Manual::Types
177 - Mention MooseX::Types early to avoid users falling down the
178 string parsing rathole (mst)
180 * Moose::Manual::MooseX
181 - Add warnings about class-level extensions and mention considering
182 using plain objects instead
184 0.81 Sun, Jun 7, 2009
185 * Bumped our Class::MOP prereq to the latest version (0.85), since
188 0.80 Sat, Jun 6, 2009
190 - Add FAQ about the coercion change from 0.76 because it came up
191 three times today (perigrin)
192 - Win doy $10 dollars because Sartak didn't think anybody
193 would document this fast enough (perigrin)
195 * Moose::Meta::Method::Destructor
196 - Inline a DESTROY method even if there are no DEMOLISH methods
197 to prevent unnecessary introspection in
198 Moose::Object::DEMOLISHALL
201 - A role's required methods are now represented by
202 Moose::Meta::Role::Method::Required objects. Conflicts are now
203 represented by Moose::Meta::Role::Method::Conflicting
204 objects. The benefit for end-users in that unresolved
205 conflicts generate different, more instructive, errors,
206 resolving Ovid's #44895. (Sartak)
209 - Improve the error message of "extends" as suggested by Adam
210 Kennedy and confound (Sartak)
211 - Link to Moose::Manual::Roles from Moose::Role as we now have
212 excellent documentation (Adam Kennedy)
215 - Update test suite for subname change in Class::MOP
217 - Add TODO test for infinite recursion in Moose::Meta::Class
220 0.79 Wed, May 13, 2009
222 - More fixes for Win32 problems. Reported by Robert Krimen.
225 - The DEMOLISHALL method could still blow up in some cases
226 during global destruction. This method has been made more
227 resilient in the face of global destruction's random garbage
231 - If you "also" a module that isn't loaded, the error message
232 now acknowledges that (Sartak)
235 - When your ->meta method does not return a Moose::Meta::Class,
236 the error message gave the wrong output (Sartak)
238 0.78 Tue, May 12, 2009
239 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
240 - Merged these documents into what is now Moose::Manual::FAQ
243 - Moved to Moose::Manual::Unsweetened
245 * Moose::Cookbook::Basics::Recipes 9-12
246 - Renamed to be 8-11, since recipe 8 did not exist
249 - Make Moose::Exporter import strict and warnings into packages
253 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
254 methods during global destruction (doy)
257 * Moose::Meta::Role::Application::ToClass
258 - Track the Role::Application objects created during class-role
262 - Fix metaclass incompatibility errors when extending a vanilla perl
263 class which isa Moose class with a metaclass role applied (t0m)
266 - Add a role-combination hook, _role_for_combination, for the
267 benefit of MooseX::Role::Parameterized (Sartak)
270 - Some tests were failing on Win32 because they explicit checked
271 warning output for newlines. Reported by Nickolay Platonov.
273 0.77 Sat, May 2, 2009
275 - Add explicit use of Devel::GlobalDestruction and Sub::Name
279 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
280 or not we are currently in global destruction (doy)
281 - Add explicit use of Devel::GlobalDestruction and Sub::Name
284 * Moose::Cookbook::FAQ
285 - Reworked much of the existing content to be more useful to
286 modern Moose hackers (Sartak)
289 - Depend on Class::MOP 0.83 instead of 0.82_01.
291 0.76 Mon, April 27, 2009
292 * Moose::Meta::TypeConstraint
293 - Do not run coercions in coerce() if the value already passes the type
296 * Moose::Meta::TypeConstraint::Class
297 - In validation error messages, specifically say that the value is not
298 an instance of the class. This should alleviate some frustrating
299 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
301 * Moose::Meta::Role::Application::ToClass
302 - Revert the class-overrides-role warning in favor of a solution outside
303 of the Moose core (Sartak)
306 - Make Test::Output optional again, since it's only used in a few files
309 0.75_01 Thu, April 23, 2009
310 * Moose::Meta::Role::Application::ToClass
311 - Moose now warns about each class overriding methods from roles it
315 - Warnings tests have standardized on Test::Output which is now an
316 unconditionally dependency (Sartak)
319 - Changes to immutabilization to work with Class::MOP 0.82_01+.
321 0.75 Mon, April 20, 2009
324 - Move validation of not inheriting from roles from Moose::extends to
325 Moose::Meta::Class::superclasses (doy)
328 - add ensure_all_roles() function to encapsulate the common "apply this
329 role unless the object already does it" pattern (hdp)
332 - Users can now select a different metaclass with the "-metaclass"
333 option to import, for classes and roles (Sartak)
336 - Make method_metaclass an attr so that it can accept a metarole
339 0.74 Tue, April 7, 2009
341 * Moose::Meta::Method::Destructor
342 - Include stack traces in the deprecation warnings.
346 - Removed the long-deprecated _apply_all_roles method.
348 * Moose::Meta::TypeConstraint
349 - Removed the long-deprecated union method.
352 0.73_02 Mon, April 6, 2009
353 * More deprecations and renamings
354 - Moose::Meta::Method::Constructor
355 - initialize_body => _initialize_body (this is always called
356 when an object is constructed)
359 - The DEMOLISHALL method could throw an exception during global
360 destruction, meaning that your class's DEMOLISH methods would
361 not be properly called. Reported by t0m.
363 * Moose::Meta::Method::Destructor
364 - Destructor inlining was totally broken by the change to the
365 is_needed method in 0.72_01. Now there is a test for this
366 feature, and it works again.
369 - Bold the word 'not' in the POD for find_meta (t0m)
371 0.73_01 Sun, April 5, 2009
373 - Call user_class->meta in fewer places, with the eventual goal
374 of allowing the user to rename or exclude ->meta
375 altogether. Instead uses Class::MOP::class_of. (Sartak)
377 * Moose::Meta::Method::Accessor
378 - If an attribute had a lazy default, and that value did not
379 pass the attribute's type constraint, it did not get the
380 message from the type constraint, instead using a generic
381 message. Test provided by perigrin.
383 * Moose::Util::TypeConstraints
384 - Add duck_type keyword. It's sugar over making sure an object
385 can() a list of methods. This is easier than jrockway's
386 suggestion to fork all of CPAN. (perigrin)
387 - add tests and documentation (perigrin)
390 - Document the fact that init_meta() returns the target class's
391 metaclass object. (hdp)
393 * Moose::Cookbook::Extending::Recipe1
394 * Moose::Cookbook::Extending::Recipe2
395 * Moose::Cookbook::Extending::Recipe3
396 * Moose::Cookbook::Extending::Recipe4
397 - Make init_meta() examples explicitly return the metaclass and
398 point out this fact. (hdp)
400 * Moose::Cookbook::Basics::Recipe12
401 - A new recipe, creating a custom meta-method class.
403 * Moose::Cookbook::Meta::Recipe6
404 - A new recipe, creating a custom meta-method class.
407 * Moose::Meta::Method::Constructor
408 - Attribute triggers no longer receive the meta-attribute object
409 as an argument in any circumstance. Previously, triggers
410 called during instance construction were passed the
411 meta-attribute, but triggers called by normal accessors were
412 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
414 * Moose::Manual::Attributes
415 - Remove references to triggers receving the meta-attribute object as an
418 * Moose::Cookbook::FAQ
419 - Remove recommendation for deprecated Moose::Policy and
420 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
423 * Many methods have been renamed with a leading underscore, and a
424 few have been deprecated entirely. The methods with a leading
425 underscore are consider "internals only". People writing
426 subclasses or extensions to Moose should feel free to override
427 them, but they are not for "public" use.
430 - check_metaclass_compatibility => _check_metaclass_compatibility
432 - Moose::Meta::Method::Accessor
433 - initialize_body => _initialize_body (this is always called
434 when an object is constructed)
435 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
437 - Moose::Meta::Method::Constructor
438 - initialize_body => _initialize_body (this is always called
439 when an object is constructed)
440 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
441 - attributes => _attributes (now inherited from parent)
442 - meta_instance => _meta_instance (now inherited from parent)
445 - alias_method is deprecated. Use add_method
447 0.73 Fri, March 29, 2009
448 * No changes from 0.72_01.
450 0.72_01 Thu, March 26, 2009
452 - Almost every module has complete API documentation. A few
453 methods (and even whole classes) have been intentionally
454 excluded pending some rethinking of their APIs.
456 * Moose::Util::TypeConstraints
457 - Calling subtype with a name as the only argument is now an
458 exception. If you want an anonymous subtype do:
460 my $subtype = subtype as 'Foo';
462 * Moose::Cookbook::Meta::Recipe7
463 - A new recipe, creating a custom meta-instance class.
465 * Moose::Cookbook::Basics::Recipe5
466 - Fix various typos and mistakes. Includes a patch from Radu
469 * Moose::Cookbook::Basics::Recipe9
470 - Link to this recipe from Moose.pm's builder blurb
473 - When wrapping a function with a prototype, Moose::Exporter now
474 makes sure the wrapped function still has the same
475 prototype. (Daisuke Maki)
477 * Moose::Meta::Attribute
478 - Allow a subclass to set lazy_build for an inherited
482 - Explicitly depend on Data::OptList. We already had this dependency
483 via Sub::Exporter, but since we're using it directly we're
484 better off with it listed. (Sartak)
486 * Moose::Meta::Method::Constructor
487 - Make it easier to subclass the inlining behaviour. (Ash
490 * Moose::Manual::Delta
491 - Details significant changes in the history of Moose, along
492 with recommended workarounds.
494 * Moose::Manual::Contributing
495 - Contributor's guide to Moose.
497 * Moose::Meta::Method::Constructor
498 - The long-deprecated intialize_body method has been removed
499 (yes, spelled like that).
501 * Moose::Meta::Method::Destructor
502 - This is_needed method is now always a class method.
505 - Changes to the internals of how make_immutable works to match
506 changes in latest Class::MOP.
508 0.72 Mon, February 23, 2009
510 * Moose::Meta::Method::Constructor
511 - A mutable class accepted Foo->new(undef) without complaint,
512 while an immutable class would blow up with an unhelpful
513 error. Now, in both cases we throw a helpful error
514 instead. Reported by doy.
516 0.71_01 Sun, February 22, 2009
518 - Hopefully fixed some POD errors in a few recipes that caused
519 them to display weird on search.cpan.org.
521 * Moose::Util::TypeConstraints
522 - Calling type or subtype without the sugar helpers (as, where,
523 message) is now deprecated.
524 - The subtype function tried hard to guess what you meant, but
525 often got it wrong. For example:
527 my $subtype = subtype as 'ArrayRef[Object]';
529 This caused an error in the past, but now works as you'd
533 - Make sure Moose.pm is loaded before calling
534 Moose->throw_error. This wasn't normally an issue, but could
535 bite you in weird cases.
537 0.71 Thu, February 19, 2009
538 * Moose::Cookbook::Basics::Recipe11
539 - A new recipe which demonstrates the use of BUILDARGS and
542 * Moose::Cookbook::Roles::Recipe3
543 - A new recipe, applying a role to an object instance. (Dave
547 - Allow overriding specific keywords from "also" packages. (doy)
550 - Replace hardcoded cookbook tests with Test::Inline to ensure
551 the tests match the actual code in the recipes. (Dave Rolsky)
554 - Working on the above turned up a number of little bugs in the
555 recipe code. (Dave Rolsky)
557 * Moose::Util::TypeConstraints::Optimized
558 - Just use Class::MOP for the optimized ClassName check. (Dave
561 0.70 Sat, February 14, 2009
562 * Moose::Util::TypeConstraints
563 - Added the RoleName type (stevan)
564 - added tests for this (stevan)
566 * Moose::Cookbook::Basics::Recipe3
567 - Updated the before qw[left right] sub to be a little more
568 defensive about what it accepts (stevan)
569 - added more tests to t/000_recipies/basics/003_binary_tree.t
573 - We now always call DEMOLISHALL, even if a class does not
574 define DEMOLISH. This makes sure that method modifiers on
575 DEMOLISHALL work as expected. (doy)
576 - added tests for this (EvanCarroll)
578 * Moose::Util::MetaRole
579 - Accept roles for the wrapped_method_metaclass (rafl)
580 - added tests for this (rafl)
582 * Moose::Meta::Attribute
583 - We no longer pass the meta-attribute object as a final
584 argument to triggers. This actually changed for inlined code a
585 while back, but the non-inlined version and the docs were
589 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
590 they require 0.11. (Dave Rolsky)
593 - Lots of small changes to the manual, cookbook, and
594 elsewhere. These were based on feedback from various
595 users, too many to list here. (Dave Rolsky)
597 0.69 Thu, February 12, 2009
599 - Make some keyword errors use throw_error instead of croak
600 since Moose::Exporter wraps keywords now (Sartak)
603 - Revised every recipe for style and clarity. Also moved some
604 documentation out of cookbook recipes and into Moose::Manual
605 pages. This work was funded as part of the Moose docs grant
606 from TPF. (Dave Rolsky)
608 * Moose::Meta::Method::Delegation
609 - If the attribute doing the delegation was not populated, the
610 error message did not specify the attribute name
613 0.68 Wed, February 4, 2009
615 - Many spelling, typo, and formatting fixes by daxim.
617 * Moose::Manual::Attributes
618 - The NAME section in the POD used "Attribute" so search.cpan
619 didn't resolve links from other documents properly.
621 * Moose::Meta::Method::Overriden
622 - Now properly spelled as Overridden. Thanks to daxim for
625 0.67 Tue, February 3, 2009
627 - Lots of little typo fixes and a few clarifications. Several
628 pages didn't have proper titles, and so weren't actually
629 visible on search.cpan.org. Thanks to hanekomu for a variety
630 of fixes and formatting improvements.
632 0.66 Tue, February 3, 2009
634 - This is a brand new, extensive manual for Moose. This aims to
635 provide a complete introduction to all of Moose's
636 features. This work was funded as part of the Moose docs grant
637 from TPF. (Dave Rolsky)
639 * Moose::Meta::Attribute
640 - Added a delegation_metaclass method to replace a hard-coded
641 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
643 * Moose::Util::TypeConstraints
644 - If you created a subtype and passed a parent that Moose didn't
645 know about, it simply ignored the parent. Now it automatically
646 creates the parent as a class type. This may not be what you
647 want, but is less broken than before. (Dave Rolsky)
649 * Moose::Util::TypeConstraints
650 - This module tried throw errors by calling Moose->throw_error,
651 but it did not ensure that Moose was loaded first. This could
652 cause very unhelpful errors when it tried to throw an error
653 before Moose was loaded. (Dave Rolsky)
655 * Moose::Util::TypeConstraints
656 - You could declare a name with subtype such as "Foo!Bar" that
657 would be allowed, but if you used it in a parameterized type
658 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
659 vetting on names created via the sugar functions, so that they
660 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
662 0.65 Thu, January 22, 2008
663 * Moose and Moose::Meta::Method::Overridden
664 - If an overridden method called super(), and then the
665 superclass's method (not overridden) _also_ called super(),
666 Moose went into an endless recursion loop. Test provided by
667 Chris Prather. (Dave Rolsky)
669 * Moose::Meta::TypeConstraint
670 - All methods are now documented. (gphat)
672 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
673 - Fixed some bogus failures that occurred because we tried to
674 validate filesystem paths in a very ad-hoc and
675 not-quite-correct way. (Dave Rolsky)
677 * Moose::Util::TypeConstraints
678 - Added maybe_type to exports. See docs for details. (rjbs)
681 - Added Moose::Util::TypeConstraints to the SEE ALSO
685 - Methods created via an attribute can now fulfill a "requires"
686 declaration for a role. (nothingmuch)
688 * Moose::Meta::Method::*
689 - Stack traces from inlined code will now report its line and
690 file as being in your class, as opposed to in Moose
693 0.64 Wed, December 31, 2008
694 * Moose::Meta::Method::Accessor
695 - Always inline predicate and clearer methods (Sartak)
697 * Moose::Meta::Attribute
698 - Support for parameterized traits (Sartak)
699 - verify_against_type_constraint method to avoid duplication
700 and enhance extensibility (Sartak)
703 - Tests (but no support yet) for parameterized traits (Sartak)
706 - Require Class::MOP 0.75+, which has the side effect of making
707 sure we work on Win32. (Dave Rolsky)
709 0.63 Mon, December 8, 2008
711 - Some small grammar tweaks and bug fixes in non-Moose example
714 0.62_02 Fri, December 5, 2008
715 * Moose::Meta::Role::Application::ToClass
716 - When a class does not provide all of a role's required
717 methods, the error thrown now mentions all of the missing
718 methods, as opposed to just the first one found. Requested by
719 Curtis Poe (RT #41119). (Dave Rolsky)
721 * Moose::Meta::Method::Constructor
722 - Moose will no longer inline a constructor for your class
723 unless it inherits its constructor from Moose::Object, and
724 will warn when it doesn't inline. If you want to force
725 inlining anyway, pass "replace_constructor => 1" to
726 make_immutable. Addresses RT #40968, reported by Jon
727 Swartz. (Dave Rolsky)
728 - The quoting of default values could be broken if the default
729 contained a single quote ('). Now we use quotemeta to escape
730 anything potentially dangerous in the defaults. (Dave Rolsky)
732 0.62_01 Wed, December 3, 2008
734 - use the method->execute API for BUILDALL
735 and DEMOLISHALL (Sartak)
737 * Moose::Util::TypeConstraints
738 - We now make all the type constraint meta classes immutable
739 before creating the default types provided by Moose. This
740 should make loading Moose a little faster. (Dave Rolsky)
742 0.62 Wed November 26, 2008
743 * Moose::Meta::Role::Application::ToClass
744 Moose::Meta::Role::Application::ToRole
745 - fixed issues where excluding and aliasing the
746 same methods for a single role did not work
747 right (worked just fine with multiple
749 - added test for this (stevan)
751 * Moose::Meta::Role::Application::RoleSummation
752 - fixed the error message when trying to compose
753 a role with a role it excludes (Sartak)
756 - Catch another case where recursion caused the value
757 of $CALLER to be stamped on (t0m)
758 - added test for this (t0m)
761 - Remove the make_immutable keyword, which has been
762 deprecated since April. It breaks metaclasses that
763 use Moose without no Moose (Sartak)
765 * Moose::Meta::Attribute
766 - Removing an attribute from a class now also removes delegation
767 (handles) methods installed for that attribute (t0m)
768 - added test for this (t0m)
770 * Moose::Meta::Method::Constructor
771 - An attribute with a default that looked like a number (but was
772 really a string) would accidentally be treated as a number
773 when the constructor was made immutable (perigrin)
774 - added test for this (perigrin)
777 - create method for constructing a role
779 - added test for this (Sartak)
780 - anonymous roles! (Sartak)
781 - added test for this (Sartak)
784 - more consistent error messages (Sartak)
786 * Moose::Cookbook::Roles::Recipe1
787 - attempt to explain why a role that just requires
788 methods is useful (Sartak)
790 0.61 Fri November 7, 2008
791 * Moose::Meta::Attribute
792 - When passing a role to handles, it will be loaded if necessary
796 - Method objects returned by get_method (and other methods)
797 Could end up being returned without an associated_metaclass
798 attribute. Removing get_method_map, which is provided by
799 Class::MOP::Class, fixed this. The Moose version did nothing
800 different from its parent except introduce a bug. (Dave Rolsky)
801 - added tests for this (jdv79)
804 - Added a $VERSION to all .pm files which didn't have one. Fixes
805 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
807 * Moose::Cookbook::Basics::Recipe4
808 * Moose::Cookbook::Basics::Recipe6
809 - These files had spaces on the first line of the SYNOPSIS, as
810 opposed to a totally empty line. According to RT #40432, this
811 confuses POD parsers. (Dave Rolsky)
813 0.60 Fri October 24, 2008
815 - Passing "-traits" when loading Moose caused the Moose.pm
816 exports to be broken. Reported by t0m. (Dave Rolsky)
817 - Tests for this bug. (t0m)
820 - Change resolve_metaclass alias to use the new
821 load_first_existing_class function. This makes it a lot
822 simpler, and also around 5 times faster. (t0m)
823 - Add caching to resolve_metaclass_alias, which gives an order
824 of magnitude speedup to things which repeatedly call the
825 Moose::Meta::Attribute->does method, notably MooseX::Storage
828 * Moose::Util::TypeConstraint
829 - Put back the changes for parameterized constraints that
830 shouldn't have been removed in 0.59. We still cannot parse
831 them, but MooseX modules can create them in some other
832 way. See the 0.58 changes for more details. (jnapiorkowski)
833 - Changed the way subtypes are created so that the job is
834 delegated to a type constraint parent. This clears up some
835 hardcoded checking and should allow correct subtypes of
836 Moose::Meta::Type::Constraint. Don't rely on this new API too
837 much (create_child_type) because it may go away in the
838 future. (jnapiorkowski)
840 * Moose::Meta::TypeConstraint::Union
841 - Type constraint names are sorted as strings, not numbers.
844 * Moose::Meta::TypeConstraint::Parameterizable
845 - New parameterize method. This can be used as a factory method
846 to make a new type constraint with a given parameterized
847 type. (jnapiorkowski)
848 - added tests (jnapiorkowski)
850 0.59 Tue October 14, 2008
852 - Add abridged documentation for builder/default/initializer/
853 predicate, and link to more details sections in
854 Class::MOP::Attribute. (t0m)
856 * Moose::Util::TypeConstraints
857 - removed prototypes from all but the &-based stuff (mst)
859 * Moose::Util::TypeConstraints
860 - Creating a anonymous subtype with both a constraint and a
861 message failed with a very unhelpful error, but should just
862 work. Reported by t0m. (Dave Rolsky)
865 - Some tests that used Test::Warn if it was available failed
866 with older versions of Test::Warn. Reported by Fayland. (Dave
868 - Test firing behavior of triggers in relation to builder/default/
870 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
871 kinds of supported type. (t0m)
874 - In create(), do not pass "roles" option to the superclass
875 - added related test that creates an anon metaclass with
878 * Moose::Meta::TypeConstraint::Class
879 * Moose::Meta::TypeConstraint::Role
880 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
881 other types (as per change in 0.55_02). (t0m)
883 * Moose::Meta::TypeConstraint::Registry
884 - Fix warning when dealing with unknown type names (t0m)
886 * Moose::Util::TypeConstraints
887 - Reverted changes from 0.58 related to handle parameterized
888 types. This caused random failures on BSD and Win32 systems,
889 apparently related to the regex engine. This means that Moose
890 can no longer parse structured type constraints like
891 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
892 supported in a slightly different way via MooseX::Types some
893 time in the future. (Dave Rolsky)
895 0.58 Sat September 20, 2008
896 !! This release has an incompatible change regarding !!
897 !! how roles add methods to a class !!
899 * Roles and role application
900 ! Roles now add methods by calling add_method, not
901 alias_method. They make sure to always provide a method
902 object, which will be cloned internally. This means that it is
903 now possible to track the source of a method provided by a
904 role, and even follow its history through intermediate roles.
906 This means that methods added by a role now show up when
907 looking at a class's method list/map. (Dave Rolsky)
910 - From this release on, we'll try to maintain a list of
911 conflicting modules, and warn you if you have one
912 installed. For example, this release conflicts with ...
913 - MooseX::Singleton <= 0.11
914 - MooseX::Params::Validate <= 0.05
917 In general, we try to not break backwards compatibility for
918 most Moose users, but MooseX modules and other code which
919 extends Moose's metaclasses is often affected by very small
920 changes in the Moose internals.
922 * Moose::Meta::Method::Delegation
923 * Moose::Meta::Attribute
924 - Delegation methods now have their own method class. (Dave
927 * Moose::Meta::TypeConstraint::Parameterizable
928 - Added a new method 'parameterize' which is basically a factory
929 for the containing constraint. This makes it easier to create
930 new types of parameterized constraints. (jnapiorkowski)
932 * Moose::Meta::TypeConstraint::Union
933 - Changed the way Union types canonicalize their names to follow
934 the normalized TC naming rules, which means we strip all
935 whitespace. (jnapiorkowski)
937 * Moose::Util::TypeConstraints
938 - Parameter and Union args are now sorted, this makes Int|Str
939 the same constraint as Str|Int. (jnapiorkowski)
940 - Changes to the way Union types are parsed to more correctly
941 stringify their names. (jnapiorkowski)
942 - When creating a parameterized type, we now use the new
943 parameterize method. (jnapiorkowski)
944 - Incoming type constraint strings are now normalized to remove
945 all whitespace differences. (jnapiorkowski)
946 - Changed the way we parse type constraint strings so that we now
947 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
948 constraints. This lays the foundation for more flexible type
949 constraint implementations.
951 * Tests and docs for all the above. (jnapiorkowski)
955 - Moose::Exporter will no longer remove a subroutine that the
956 exporting package re-exports. Moose re-exports the
957 Carp::confess function, among others. The reasoning is that we
958 cannot know whether you have also explicitly imported those
959 functions for your own use, so we err on the safe side and
960 always keep them. (Dave Rolsky)
961 - added tests for this (rafl)
964 - Changes to how we fix metaclass compatibility that are much
965 too complicated to go into. The summary is that Moose is much
966 less likely to complain about metaclass incompatibility
967 now. In particular, if two metaclasses differ because
968 Moose::Util::MetaRole was used on the two corresponding
969 classes, then the difference in roles is reconciled for the
970 subclass's metaclass. (Dave Rolsky)
971 - Squashed an warning in _process_attribute (thepler)
974 - throw exceptions (sooner) for invalid attribute names (thepler)
975 - added tests for this (thepler)
977 * Moose::Util::MetaRole
978 - If you explicitly set a constructor or destructor class for a
979 metaclass object, and then applied roles to the metaclass,
980 that explicitly set class would be lost and replaced with the
984 * Moose::Meta::Attribute
985 * Moose::Meta::Method
988 * Moose::Error::Default
989 * Moose::Error::Croak
990 * Moose::Error::Confess
991 - All instances of confess() changed to use overridable
992 C<throw_error> method. This method ultimately calls a class
993 constructor, and you can change the class being called. In
994 addition, errors now pass more information than just a string.
995 The default C<error_class> behaves like C<Carp::confess>, so
996 the behavior is not visibly different for end users.
998 0.57 Wed September 3, 2008
1000 - A new bit of doc intended to introduce folks familiar with
1001 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1003 * Moose::Unsweetened
1004 - Shows examples of two classes, each done first with and then
1005 without Moose. This makes a nice parallel to
1006 Moose::Intro. (Dave Rolsky)
1008 * Moose::Util::TypeConstraints
1009 - Fixed a bug in find_or_parse_type_constraint so that it
1010 accepts a Moose::Meta::TypeConstraint object as the parent
1011 type, not just a name (jnapiorkowski)
1012 - added tests (jnapiorkowski)
1015 - If Sub::Name was not present, unimporting failed to actually
1016 remove some sugar subs, causing test failures (Dave Rolsky)
1018 0.56 Mon September 1, 2008
1019 For those not following the series of dev releases, there are
1020 several major changes in this release of Moose.
1021 ! Moose::init_meta should now be called as a method. See the
1024 - Major performance improvements by nothingmuch.
1026 - New modules for extension writers, Moose::Exporter and
1027 Moose::Util::MetaRole by Dave Rolsky.
1029 - Lots of doc improvements and additions, especially in the
1032 - Various bug fixes.
1034 * Removed all references to the experimental-but-no-longer-needed
1035 Moose::Meta::Role::Application::ToMetaclassInstance.
1037 * Require Class::MOP 0.65.
1039 0.55_04 Sat August 30, 2008
1040 * Moose::Util::MetaRole
1041 * Moose::Cookbook::Extending::Recipe2
1042 - This simplifies the application of roles to any meta class, as
1043 well as the base object class. Reimplemented metaclass traits
1044 using this module. (Dave Rolsky)
1046 * Moose::Cookbook::Extending::Recipe1
1047 - This a new recipe, an overview of various ways to write Moose
1048 extensions (Dave Rolsky)
1050 * Moose::Cookbook::Extending::Recipe3
1051 * Moose::Cookbook::Extending::Recipe4
1052 - These used to be Extending::Recipe1 and Extending::Recipe2,
1055 0.55_03 Fri August 29, 2008
1056 * No changes from 0.55_02 except increasing the Class::MOP
1057 dependency to 0.64_07.
1059 0.55_02 Fri August 29, 2008
1060 * Makefile.PL and Moose.pm
1061 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1063 * Moose::Util::TypeConstraints
1064 - Fix warnings from find_type_constraint if the type is not
1067 * Moose::Meta::TypeConstraint
1068 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1069 return false if the type you specify cannot be found in the
1070 type registry, rather than throwing an unhelpful and
1071 coincidental exception. (t0m).
1072 - added docs & test for this (t0m)
1074 * Moose::Meta::TypeConstraint::Registry
1075 - add_type_constraint now throws an exception if a parameter is
1077 - added docs & test for this (t0m)
1079 * Moose::Cookbook::FAQ
1080 - Added a faq entry on the difference between "role" and "trait"
1084 - Fixed a bug that caused role composition to not see a required
1085 method when that method was provided by another role being
1086 composed at the same time. (Dave Rolsky)
1087 - test and bug finding (tokuhirom)
1089 0.55_01 Wed August 20, 2008
1091 !! Calling Moose::init_meta as a function is now !!
1092 !! deprecated. Please see the Moose.pm docs for details. !!
1094 * Moose::Meta::Method::Constructor
1095 - Fix inlined constructor so that values produced by default
1096 or builder methods are coerced as required. (t0m)
1097 - added test for this (t0m)
1099 * Moose::Meta::Attribute
1100 - A lazy attribute with a default or builder did not attempt to
1101 coerce the default value. The immutable code _did_
1103 - added test for this (t0m)
1106 - This is a new helper module for writing "Moose-alike"
1107 modules. This should make the lives of MooseX module authors
1108 much easier. (Dave Rolsky)
1111 * Moose::Cookbook::Meta::Recipe5
1112 - Implemented metaclass traits (and wrote a recipe for it):
1114 use Moose -traits => 'Foo'
1116 This should make writing small Moose extensions a little
1117 easier (Dave Rolsky)
1119 * Moose::Cookbook::Basics::Recipe1
1120 - Removed any examples of direct hashref access, and applied an
1121 editorial axe to reduce verbosity. (Dave Rolsky)
1123 * Moose::Cookbook::Basics::Recipe1
1124 - Also applied an editorial axe here. (Dave Rolsky)
1127 * Moose::Cookbook::Extending::Recipe1
1128 * Moose::Cookbook::Extending::Recipe2
1129 - Rewrote extending and embedding moose documentation and
1130 recipes to use Moose::Exporter (Dave Rolsky)
1134 - These two modules now warn when you load them from the main
1135 package "main" package, because we will not export sugar to
1136 main. Previously it just did nothing. (Dave Rolsky)
1139 - Now provide an init_meta method just like Moose.pm, and you
1140 can call this to provide an alternate role metaclass. (Dave
1141 Rolsky and nothingmuch)
1142 - get_method_map now respects the package cache flag (nothingmuch)
1145 - Two new methods - add_method and wrap_method_body
1149 - Optimizations including allowing constructors to accept hash
1150 refs, making many more classes immutable, and making
1151 constructors immutable. (nothingmuch)
1153 0.55 Sun August 3, 2008
1154 * Moose::Meta::Attribute
1155 - breaking down the way 'handles' methods are
1156 created so that the process can be more easily
1157 overridden by subclasses (stevan)
1159 * Moose::Meta::TypeConstraint
1160 - fixing what is passed into a ->message with
1161 the type constraints (RT #37569)
1162 - added tests for this (Charles Alderman)
1164 * Moose::Util::TypeConstraints
1165 - fix coerce to accept anon types like subtype can (mst)
1168 - reorganized the recipes into sections - Basics, Roles, Meta,
1169 Extending - and wrote abstracts for each section (Dave Rolsky)
1171 * Moose::Cookbook::Basics::Recipe10
1172 - A new recipe that demonstrates operator overloading
1173 in combination with Moose. (bluefeet)
1175 * Moose::Cookbook::Meta::Recipe1
1176 - an introduction to what meta is and why you'd want to make
1177 your own metaclass extensions (Dave Rolsky)
1179 * Moose::Cookbook::Meta::Recipe4
1180 - a very simple metaclass example (Dave Rolsky)
1182 * Moose::Cookbook::Extending::Recipe1
1183 - how to write a Moose-alike module to use your own object base
1186 * Moose::Cookbook::Extending::Recipe2
1187 - how to write modules with an API just like C<Moose.pm> (Dave
1191 - Tons of fixes, both syntactical and grammatical (Dave
1192 Rolsky, Paul Fenwick)
1194 0.54 Thurs. July 3, 2008
1195 ... this is not my day today ...
1197 * Moose::Meta::Attribute
1198 - fixed legal_options_for_inheritance such that
1199 clone_and_inherit options still works for
1200 Class::MOP::Attribute objects and therefore
1201 does not break MooseX::AttributeHelpers
1204 0.53 Thurs. July 3, 2008
1205 * Whoops, I guess I should run 'make manifest' before
1206 actually releasing the module. No actual changes
1207 in this release, except the fact that it includes
1208 the changes that I didn't include in the last
1211 0.52 Thurs. July 3, 2008
1213 - added "FEATURE REQUESTS" section to the Moose docs
1214 to properly direct people (stevan) (RT #34333)
1215 - making 'extends' croak if it is passed a Role since
1216 this is not ever something you want to do
1217 (fixed by stevan, found by obra)
1218 - added tests for this (stevan)
1221 - adding support for DOES (as in UNIVERSAL::DOES)
1223 - added test for this
1225 * Moose::Meta::Attribute
1226 - added legal_options_for_inheritance (wreis)
1227 - added tests for this (wreis)
1229 * Moose::Cookbook::Snacks::*
1230 - removed some of the unfinished snacks that should
1231 not have been released yet. Added some more examples
1232 to the 'Keywords' snack. (stevan)
1234 * Moose::Cookbook::Style
1235 - added general Moose "style guide" of sorts to the
1236 cookbook (nothingmuch) (RT #34335)
1239 - added more BUILDARGS tests (stevan)
1241 0.51 Thurs. Jun 26, 2008
1243 - add unimport so "no Moose::Role" actually does
1246 * Moose::Meta::Role::Application::ToRole
1247 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1248 order to provide its own implementation, that method still got
1249 added to the list of required methods for consumers of
1250 RoleB. Now an aliased method is only added to the list of
1251 required methods if the role doing the aliasing does not
1252 provide its own implementation. See Recipe 11 for an example
1253 of all this. (Dave Rolsky)
1254 - added tests for this
1256 * Moose::Meta::Method::Constructor
1257 - when a single argument that wasn't a hashref was provided to
1258 an immutabilized constructor, the error message was very
1259 unhelpful, as opposed to the non-immutable error. Reported by
1261 - added test for this (Dave Rolsky)
1263 * Moose::Meta::Attribute
1264 - added support for meta_attr->does("ShortAlias") (sartak)
1265 - added tests for this (sartak)
1266 - moved the bulk of the `handles` handling to the new
1267 install_delegation method (Stevan)
1270 - Added BUILDARGS, a new step in new()
1272 * Moose::Meta::Role::Application::RoleSummation
1273 - fix typos no one ever sees (sartak)
1275 * Moose::Util::TypeConstraints
1276 * Moose::Meta::TypeConstraint
1277 * Moose::Meta::TypeCoercion
1278 - Attempt to work around the ??{ } vs. threads issue
1280 - Some null_constraint optimizations
1282 0.50 Thurs. Jun 11, 2008
1283 - Fixed a version number issue by bumping all modules
1286 0.49 Thurs. Jun 11, 2008
1287 !! This version now approx. 20-25% !!
1288 !! faster with new Class::MOP 0.59 !!
1290 * Moose::Meta::Attribute
1291 - fixed how the is => (ro|rw) works with
1292 custom defined reader, writer and accessor
1294 - added docs for this (TODO).
1295 - added tests for this (Thanks to Penfold)
1296 - added the custom attribute alias for regular
1297 Moose attributes which is "Moose"
1298 - fix builder and default both being used
1303 Moose::Meta::Attribute
1305 Moose::Meta::Role::Composite
1306 Moose::Util::TypeConstraints
1307 - switched usage of reftype to ref because
1311 - changing add_package_symbol to use the new
1315 - fixed how DEMOLISHALL is called so that it
1316 can be overrided in subclasses (thanks to Sartak)
1317 - added test for this (thanks to Sartak)
1319 * Moose::Util::TypeConstraints
1320 - move the ClassName type check code to
1321 Class::MOP::is_class_loaded (thanks to Sartak)
1323 * Moose::Cookbook::Recipe11
1324 - add tests for this (thanks to tokuhirom)
1326 0.48 Thurs. May 29, 2008
1327 (early morning release engineering)--
1329 - fixing the version in Moose::Meta::Method::Destructor
1330 which was causing the indexer to choke
1332 0.47 Thurs. May 29, 2008
1333 (late night release engineering)--
1335 - fixing the version is META.yml, no functional
1336 changes in this release
1338 0.46 Wed. May 28, 2008
1339 !! This version now approx. 20-25% !!
1340 !! faster with new Class::MOP 0.57 !!
1342 * Moose::Meta::Class
1343 - some optimizations of the &initialize method
1344 since it is called so often by &meta
1346 * Moose::Meta::Class
1348 - now use the get_all_package_symbols from the
1349 updated Class::MOP, test suite is now 10 seconds
1352 * Moose::Meta::Method::Destructor
1353 - is_needed can now also be called as a class
1354 method for immutablization to check if the
1355 destructor object even needs to be created
1358 * Moose::Meta::Method::Destructor
1359 Moose::Meta::Method::Constructor
1360 - added more descriptive error message to help
1361 keep people from wasting time tracking an error
1362 that is easily fixed by upgrading.
1364 0.45 Saturday, May 24, 2008
1366 - Because of work in Class::MOP 0.57, all
1367 XS based functionality is now optional
1368 and a Pure Perl version is supplied
1369 - the CLASS_MOP_NO_XS environment variable
1370 can now be used to force non-XS versions
1372 - several of the packages have been tweaked
1373 to take care of this, mostly we added
1374 support for the package_name and name
1375 variables in all the Method metaclasses
1376 - before/around/after method modifiers now
1377 support regexp matching of names
1378 (thanks to Takatoshi Kitano)
1379 - tests added for this
1380 - NOTE: this only works for classes, it
1381 is currently not supported in roles,
1382 but, ... patches welcome
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
1388 - All usage of Carp::confess have been replaced
1389 by Carp::croak in the "keyword" functions since
1390 the stack trace is usually not helpful
1391 - The 'has' keyword for roles now accepts the
1392 same array ref form that Moose.pm does
1393 (has [qw/foo bar/] => (is => 'rw', ...))
1394 - added test for this
1396 * Moose::Meta::Attribute
1397 - trigger on a ro-attribute is no longer an
1398 error, as it's useful to trigger off of the
1401 * Moose::Meta::Class
1402 - added same 'add_package_symbol' fix as in
1406 - does_role now handles non-Moose classes
1408 - added tests for this
1409 - added the 'add_method_modifier' function
1410 (thanks to Takatoshi Kitano)
1412 * Moose::Util::TypeConstraints
1413 - subtypes of parameterizable types now are
1414 themselves parameterizable types
1416 * Moose::Meta::Method::Constructor
1417 - fixed bug where trigger was not being
1418 called by the inlined immutable
1420 - added test for this (thanks to Caelum)
1422 * Moose::Meta::Role::Application::ToInstance
1423 - now uses the metaclass of the instance
1424 (if possible) to create the anon-class
1425 (thanks Jonathan Rockway)
1427 * Moose::Cookbook::Recipe22
1428 - added the meta-attribute trait recipe
1432 - fixed hash-ordering test bug that was
1433 causing occasional cpantester failures
1434 - renamed the t/000_recipe/*.t tests to be
1435 more descriptive (thanks to Sartak)
1437 0.44 Sat. May 10, 2008
1439 - made make_immutable warning cluck to
1440 show where the error is (thanks mst)
1443 - BUILDALL and DEMOLISHALL now call
1444 ->body when looping through the
1445 methods, to avoid the overloaded
1447 - fixed issue where DEMOLISHALL was
1448 eating the $@ values, and so not
1449 working correctly, it still kind of
1450 eats them, but so does vanilla perl
1451 - added tests for this
1453 * Moose::Cookbook::Recipe7
1454 - added new recipe for immutable
1455 functionality (thanks Dave Rolsky)
1457 * Moose::Cookbook::Recipe9
1458 - added new recipe for builder and
1459 lazy_build (thanks Dave Rolsky)
1461 * Moose::Cookbook::Recipe11
1462 - added new recipe for method aliasing
1463 and exclusion with Roles (thanks Dave Rolsky)
1466 - fixed Win32 test failure (thanks spicyjack)
1468 ~ removed Build.PL and Module::Build compat
1469 since Module::Install has done that.
1471 0.43 Wed. April, 30, 2008
1473 drink more coffee before
1474 doing release engineering
1476 - whoops, forgot to do the smolder tests,
1477 and we broke some of the custom meta-attr
1478 modules. This fixes that.
1480 0.42 Mon. April 28, 2008
1481 - some bad tests slipped by, nothing else
1482 changed in this release (cpantesters++)
1484 - upped the Class::MOP dependency to 0.55
1485 since we have tests which need the C3
1488 0.41 Mon. April 28, 2008
1489 ~~ numerous documentation updates ~~
1491 - Changed all usage of die to Carp::croak for better
1492 error reporting (initial patch by Tod Hagan)
1494 ** IMPORTANT NOTE **
1495 - the make_immutable keyword is now deprecated, don't
1496 use it in any new code and please fix your old code
1497 as well. There will be 2 releases, and then it will
1503 - refactored the way inner and super work to avoid
1504 any method/@ISA cache penalty (nothingmuch)
1506 * Moose::Meta::Class
1507 - fixing &new_object to make sure trigger gets the
1508 coerced value (spotted by Charles Alderman on the
1510 - added test for this
1512 * Moose::Meta::Method::Constructor
1513 - immutable classes which had non-lazy attributes were calling
1514 the default generating sub twice in the constructor. (bug
1515 found by Jesse Luehrs, fixed by Dave Rolsky)
1516 - added tests for this (Dave Rolsky)
1517 - fix typo in initialize_body method (nothingmuch)
1519 * Moose::Meta::Method::Destructor
1520 - fix typo in initialize_body method (nothingmuch)
1522 * Moose::Meta::Method::Overriden
1523 Moose::Meta::Method::Augmented
1524 - moved the logic for these into their own
1525 classes (nothingmuch)
1527 * Moose::Meta::Attribute
1528 - inherited attributes may now be extended without
1529 restriction on the type ('isa', 'does') (Sartak)
1530 - added tests for this (Sartak)
1531 - when an attribute property is malformed (such as lazy without
1532 a default), give the name of the attribute in the error
1534 - added the &applied_traits and &has_applied_traits methods
1535 to allow introspection of traits
1536 - added tests for this
1537 - moved 'trait' and 'metaclass' argument handling to here from
1539 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1540 '+foo' syntax) (nothingmuch)
1541 - added tests for this (t0m)
1544 - localize $@ inside DEMOLISHALL to avoid it
1545 eating $@ (found by Ernesto)
1546 - added test for this (thanks to Ernesto)
1548 * Moose::Util::TypeConstraints
1549 - &find_type_constraint now DWIMs when given an
1550 type constraint object or name (nothingmuch)
1551 - &find_or_create_type_constraint superseded with a number of more
1553 - find_or_create_{isa,does}_type_constraint
1554 - find_or_parse_type_constraint
1556 * Moose::Meta::TypeConstraint
1557 Moose::Meta::TypeConstraint::Class
1558 Moose::Meta::TypeConstraint::Role
1559 Moose::Meta::TypeConstraint::Enum
1560 Moose::Meta::TypeConstraint::Union
1561 Moose::Meta::TypeConstraint::Parameterized
1562 - added the &equals method for comparing two type
1563 constraints (nothingmuch)
1564 - added tests for this (nothingmuch)
1566 * Moose::Meta::TypeConstraint
1567 - add the &parents method, which is just an alias to &parent.
1568 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1570 * Moose::Meta::TypeConstraint::Class
1571 - added the class attribute for introspection purposes
1573 - added tests for this
1575 * Moose::Meta::TypeConstraint::Enum
1576 Moose::Meta::TypeConstraint::Role
1577 - broke these out into their own classes (nothingmuch)
1579 * Moose::Cookbook::Recipe*
1580 - fixed references to test file locations in the POD
1581 and updated up some text for new Moose features
1585 - Added &resolve_metaclass_alias, a helper function for finding an actual
1586 class for a short name (e.g. in the traits list)
1588 0.40 Fri. March 14, 2008
1589 - I hate Pod::Coverage
1591 0.39 Fri. March 14, 2008
1593 - documenting the use of '+name' with attributes
1594 that come from recently composed roles. It makes
1595 sense, people are using it, and so why not just
1596 officially support it.
1597 - fixing the 'extends' keyword so that it will not
1598 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1601 - added the perl -Moose=+Class::Name feature to allow
1602 monkeypatching of classes in one liners
1605 - fixing the 'apply_all_roles' keyword so that it will not
1606 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1608 * Moose::Meta::Class
1609 - added ->create method which now supports roles (thanks to jrockway)
1610 - added tests for this
1611 - added ->create_anon_class which now supports roles and caching of
1612 the results (thanks to jrockway)
1613 - added tests for this
1614 - made ->does_role a little more forgiving when it is
1615 checking a Class::MOP era metaclasses.
1617 * Moose::Meta::Role::Application::ToInstance
1618 - it is now possible to pass extra params to be used when
1619 a role is applied to an the instance (rebless_params)
1620 - added tests for this
1622 * Moose::Util::TypeConstraints
1623 - class_type now accepts an optional second argument for a
1624 custom message. POD anotated accordingly (groditi)
1625 - added tests for this
1626 - it is now possible to make anon-enums by passing 'enum' an
1627 ARRAY ref instead of the $name => @values. Everything else
1629 - added tests for this
1632 - making test for using '+name' on attributes consumed
1633 from a role, it works and makes sense too.
1635 * Moose::Meta::Attribute
1636 - fix handles so that it doesn't return nothing
1637 when the method cannot be found, not sure why
1638 it ever did this originally, this means we now
1639 have slightly better support for AUTOLOADed
1641 - added more delegation tests
1642 - adding ->does method to this so as to better
1643 support traits and their introspection.
1644 - added tests for this
1647 - localizing the Data::Dumper configurations so
1648 that it does not pollute others (RT #33509)
1649 - made ->does a little more forgiving when it is
1650 passed Class::MOP era metaclasses.
1652 0.38 Fri. Feb. 15, 2008
1653 * Moose::Meta::Attribute
1654 - fixed initializer to correctly do
1655 type checking and coercion in the
1657 - added tests for this
1660 - fixed some finicky tests (thanks to konobi)
1662 0.37 Thurs. Feb. 14, 2008
1664 - fixed some details in Moose::init_meta
1665 and its superclass handling (thanks thepler)
1666 - added tests for this (thanks thepler)
1667 - 'has' now dies if you don't pass in name
1669 - added the 'make_immutable' keyword as a shortcut
1672 * Moose::Meta::Class
1673 Moose::Meta::Method::Constructor
1674 Moose::Meta::Attribute
1675 - making (init_arg => undef) work here too
1676 (thanks to nothingmuch)
1678 * Moose::Meta::Attribute
1679 Moose::Meta::Method::Constructor
1680 Moose::Meta::Method::Accessor
1681 - make lazy attributes respect attr initializers (rjbs)
1682 - added tests for this
1684 * Moose::Util::TypeConstraints
1685 Moose::Util::TypeConstraints::OptimizedConstraints
1686 Moose::Meta::TypeConstraints
1687 Moose::Meta::Attribute
1688 Moose::Meta::Method::Constructor
1689 Moose::Meta::Method::Accessor
1690 - making type errors use the
1691 assigned message (thanks to Sartak)
1692 - added tests for this
1694 * Moose::Meta::Method::Destructor
1695 - making sure DESTROY gets inlined properly
1696 with successive DEMOLISH calls (thanks to manito)
1698 * Moose::Meta::Attribute
1699 Moose::Meta::Method::Accessor
1700 - fixed handling of undef with type constraints
1702 - added tests for this
1705 - added &get_all_init_args and &get_all_attribute_values
1706 (thanks to Sartak and nothingmuch)
1708 0.36 Sat. Jan. 26, 2008
1710 Moose::Meta::Attribute
1711 - role type tests now support when roles are
1712 applied to non-Moose classes (found by ash)
1713 - added tests for this (thanks to ash)
1714 - couple extra tests to boost code coverage
1716 * Moose::Meta::Method::Constructor
1717 - improved fix for handling Class::MOP attributes
1718 - added test for this
1720 * Moose::Meta::Class
1721 - handled the add_attribute($attribute_meta_object)
1723 - added test for this
1725 0.35 Tues. Jan. 22, 2008
1726 * Moose::Meta::Method::Constructor
1727 - fix to make sure even Class::MOP attributes
1728 are handled correctly (Thanks to Dave Rolsky)
1729 - added test for this (also Dave Rolsky)
1731 * Moose::Meta::Class
1732 - improved error message on _apply_all_roles,
1733 you should now use Moose::Util::apply_all_roles
1734 and you shouldnt have been using a _ prefixed
1735 method in the first place ;)
1737 0.34 Mon. Jan. 21, 2008
1738 ~~~ more misc. doc. fixes ~~~
1739 ~~ updated copyright dates ~~
1741 Moose is now a postmodern object system :)
1742 - (see the POD for details)
1744 * <<Role System Refactoring>>
1745 - this release contains a major reworking and
1746 cleanup of the role system
1747 - 100% backwards compat.
1748 - Role application now restructured into seperate
1749 classes based on type of applicants
1750 - Role summation (combining of more than one role)
1751 is much cleaner and anon-classes are no longer
1752 used in this process
1753 - new Composite role metaclass
1754 - runtime application of roles to instances
1755 is now more efficient and re-uses generated
1756 classes when applicable
1758 * <<New Role composition features>>
1759 - methods can now be excluded from a given role
1761 - methods can now be aliased to another name (and
1762 still retain the original as well)
1764 * Moose::Util::TypeConstraints::OptimizedConstraints
1765 - added this module (see above)
1767 * Moose::Meta::Class
1768 - fixed the &_process_attribute method to be called
1769 by &add_attribute, so that the API is now correct
1771 * Moose::Meta::Method::Accessor
1772 - fixed bug when passing a list of values to
1773 an accessor would get (incorrectly) ignored.
1774 Thanks to Sartak for finding this ;)
1775 - added tests for this (Sartak again)
1777 * Moose::Meta::Method::Accessor
1778 Moose::Meta::Method::Constructor
1779 Moose::Meta::Attribute
1780 Moose::Meta::TypeConstraint
1781 Moose::Meta::TypeCoercion
1782 - lots of cleanup of such things as:
1784 - type constraint handling
1785 - error handling/messages
1786 (thanks to nothingmuch)
1788 * Moose::Meta::TypeConstraint::Parameterizable
1789 - added this module to support the refactor
1790 in Moose::Meta::TypeConstraint::Parameterized
1792 * Moose::Meta::TypeConstraint::Parameterized
1793 - refactored how these types are handled so they
1794 are more generic and not confined to ArrayRef
1798 - shortened some file names for better VMS support (RT #32381)
1800 0.33 Fri. Dec. 14, 2007
1801 !! Moose now loads 2 x faster !!
1802 !! with new Class::MOP 0.49 !!
1804 ++ new oose.pm module to make command line
1805 Moose-ness easier (see POD docs for more)
1807 * Moose::Meta::Class
1809 - several tweaks to take advantage of the
1810 new method map caching in Class::MOP
1812 * Moose::Meta::TypeConstraint::Parameterized
1813 - allow subtypes of ArrayRef and HashRef to
1814 be used as a container (sartak)
1815 - added tests for this
1816 - basic support for coercion to ArrayRef and
1817 HashRef for containers (sartak)
1818 - added tests for this
1820 * Moose::Meta::TypeCoercion
1821 - coercions will now create subtypes as needed
1822 so you can now add coercions to parameterized
1823 types without having to explictly define them
1824 - added tests for this
1826 * Moose::Meta::Method::Accessor
1827 - allow subclasses to decide whether we need
1828 to copy the value into a new variable (sartak)
1830 0.32 Tues. Dec. 4, 2007
1831 * Moose::Util::TypeConstraints
1832 - fixing how subtype aliases of unions work
1833 they should inherit the parent's coercion
1834 - added tests for this
1835 - you can now define multiple coercions on
1836 a single type at different times instead of
1837 having to do it all in one place
1838 - added tests for this
1840 * Moose::Meta::TypeConstraint
1841 - there is now a default constraint of sub { 1 }
1842 instead of Moose::Util::TypeConstraints setting
1845 * Moose::Meta::TypeCoercion
1846 * Moose::Meta::TypeCoercion::Union
1847 - added the &has_coercion_for_type and
1848 &add_type_coercions methods to support the
1849 new features above (although you cannot add
1850 more type coercions for Union types)
1852 0.31 Mon. Nov. 26, 2007
1853 * Moose::Meta::Attribute
1854 - made the +attr syntax handle extending types with
1855 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1856 now works if the original foo is an ArrayRef.
1857 - added tests for this.
1858 - delegation now works even if the attribute does not
1859 have a reader method using the get_read_method_ref
1860 method from Class::MOP::Attribute.
1861 - added tests for this
1862 - added docs for this
1864 * Moose::Util::TypeConstraints
1865 - passing no "additional attribute info" to
1866 &find_or_create_type_constraint will no longer
1867 attempt to create an __ANON__ type for you,
1868 instead it will just return undef.
1869 - added docs for this
1871 0.30 Fri. Nov. 23, 2007
1872 * Moose::Meta::Method::Constructor
1873 -builder related bug in inlined constructor. (groditi)
1875 * Moose::Meta::Method::Accessor
1876 - genereate unnecessary calls to predicates and refactor
1877 code generation for runtime speed (groditi)
1879 * Moose::Util::TypeConstraints
1880 - fix ClassName constraint to introspect symbol table (mst)
1881 - added more tests for this (mst)
1882 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1883 with work correctly.
1884 - added tests for this
1887 - adding the link to Recipie 11 (written by Sartak)
1888 - adding test for SYNOPSIS code
1891 - New tests for builder bug. Upon instantiation, if an
1892 attribute had a builder, no value and was not lazy the
1893 builder default was not getting run, oops. (groditi)
1895 0.29 Tues. Nov. 13, 2007
1896 * Moose::Meta::Attribute
1897 - Fix error message on missing builder method (groditi)
1899 * Moose::Meta::Method::Accessor
1900 - Fix error message on missing builder method (groditi)
1903 - Add test to check for the correct error message when
1904 builder method is missing (groditi)
1906 0.28 Tues. Nov. 13, 2007
1907 - 0.27 packaged incorrectly (groditi)
1909 0.27 Tues. Nov. 13, 2007
1910 * Moose::Meta::Attribute
1911 - Added support for the new builder option (groditi)
1912 - Added support for lazy_build option (groditi)
1913 - Changed slot initialization for predicate changes (groditi)
1915 * Moose::Meta::Method::Accessor
1916 - Added support for lazy_build option (groditi)
1917 - Fix inline methods to work with corrected predicate
1920 * Moose::Meta::Method::Constructor
1921 - Added support for lazy_build option (groditi)
1924 - tests for builder and lazy_build (groditi)
1926 * fixing some misc. bits in the docs that
1927 got mentioned on CPAN Forum & perlmonks
1930 - fixed how required methods are handled
1931 when they encounter overriden or modified
1932 methods from a class (thanks to confound).
1933 - added tests for this
1935 * Moose::Util::TypeConstraint
1936 - fixed the type notation parser so that
1937 the | always creates a union and so is
1938 no longer a valid type char (thanks to
1939 konobi, mugwump and #moose for working
1941 - added more tests for this
1943 0.26 Thurs. Sept. 27, 2007
1946 * Parameterized Types
1947 We now support parameterized collection types, such as:
1948 ArrayRef[Int] # array or integers
1949 HashRef[Object] # a hash with object values
1950 They can also be nested:
1951 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1952 And work with the type unions as well:
1953 ArrayRef[Int | Str] # array of integers of strings
1955 * Better Framework Extendability
1956 Moose.pm is now "extendable" such that it is now much
1957 easier to extend the framework and add your own keywords
1958 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1959 section of the Moose.pm docs.
1962 In an effort to begin documenting some of the various
1963 details of Moose as well as some common idioms, we have
1964 created Moose::Cookbook::Snacks as a place to find
1965 small (easily digestable) nuggets of Moose code.
1968 ~ Several doc updates/cleanup thanks to castaway ~
1970 - converted build system to use Module::Install instead of
1971 Module::Build (thanks to jrockway)
1974 - added all the meta classes to the immutable list and
1975 set it to inline the accessors
1976 - fix import to allow Sub::Exporter like { into => }
1977 and { into_level => } (perigrin)
1978 - exposed and documented init_meta() to allow better
1979 embedding and extending of Moose (perigrin)
1982 - complete re-organization of the test suite
1983 - added some new tests as well
1984 - finally re-enabled the Moose::POOP test since
1985 the new version of DBM::Deep now works again
1988 * Moose::Meta::Class
1989 - fixed very odd and very nasty recursion bug with
1991 - added tests for this (eilara)
1993 * Moose::Meta::Attribute
1994 Moose::Meta::Method::Constructor
1995 Moose::Meta::Method::Accessor
1996 - fixed issue with overload::Overloaded getting called
1997 on non-blessed items. (RT #29269)
1998 - added tests for this
2000 * Moose::Meta::Method::Accessor
2001 - fixed issue with generated accessor code making
2002 assumptions about hash based classes (thanks to dexter)
2004 * Moose::Coookbook::Snacks
2005 - these are bits of documentation, not quite as big as
2006 Recipes but which have no clear place in the module docs.
2007 So they are Snacks! (horray for castaway++)
2009 * Moose::Cookbook::Recipe4
2010 - updated it to use the new ArrayRef[MyType] construct
2011 - updated the accompanying test as well
2013 +++ Major Refactor of the Type Constraint system +++
2014 +++ with new features added as well +++
2016 * Moose::Util::TypeConstraint
2017 - no longer uses package variable to keep track of
2018 the type constraints, now uses the an instance of
2019 Moose::Meta::TypeConstraint::Registry to do it
2020 - added more sophisticated type notation parsing
2022 - added tests for this
2024 * Moose::Meta::TypeConstraint
2025 - some minor adjustments to make subclassing easier
2026 - added the package_defined_in attribute so that we
2027 can track where the type constraints are created
2029 * Moose::Meta::TypeConstraint::Union
2030 - this is now been refactored to be a subclass of
2031 Moose::Meta::TypeConstraint
2033 * Moose::Meta::TypeCoercion::Union
2034 - this has been added to service the newly refactored
2035 Moose::Meta::TypeConstraint::Union and is itself
2036 a subclass of Moose::Meta::TypeCoercion
2038 * Moose::Meta::TypeConstraint::Parameterized
2039 - added this module (taken from MooseX::AttributeHelpers)
2040 to help construct nested collection types
2041 - added tests for this
2043 * Moose::Meta::TypeConstraint::Registry
2044 - added this class to keep track of type constraints
2046 0.25 Mon. Aug. 13, 2007
2048 - Documentation update to reference Moose::Util::TypeConstraints
2049 under 'isa' in 'has' for how to define a new type
2050 (thanks to shlomif).
2052 * Moose::Meta::Attribute
2053 - required attributes now will no longer accept undef
2054 from the constructor, even if there is a default and lazy
2055 - added tests for this
2056 - default subroutines must return a value which passes the
2058 - added tests for this
2060 * Moose::Meta::Attribute
2061 * Moose::Meta::Method::Constructor
2062 * Moose::Meta::Method::Accessor
2063 - type-constraint tests now handle overloaded objects correctly
2064 in the error message
2065 - added tests for this (thanks to EvanCarroll)
2067 * Moose::Meta::TypeConstraint::Union
2068 - added (has_)hand_optimized_constraint to this class so that
2069 it behaves as the regular Moose::Meta::TypeConstraint does.
2072 - large refactoring of this code
2073 - added several more tests
2074 - tests for subtle conflict resolition issues
2075 added, but not currently running
2078 * Moose::Cookbook::Recipe7
2079 - added new recipe for augment/inner functionality
2081 - added test for this
2084 - a formal definition of roles (still in progress)
2087 - utilities for easier working with Moose classes
2088 - added tests for these
2091 - This contains Moose specific test functions
2092 - added tests for these
2094 0.24 Tues. July 3, 2007
2095 ~ Some doc updates/cleanup ~
2097 * Moose::Meta::Attribute
2098 - added support for roles to be given as parameters
2099 to the 'handles' option.
2100 - added tests and docs for this
2101 - the has '+foo' attribute form now accepts changes to
2102 the lazy option, and the addition of a handles option
2103 (but not changing the handles option)
2104 - added tests and docs for this
2107 - required methods are now fetched using find_method_by_name
2108 so that required methods can come from superclasses
2109 - adjusted tests for this
2111 0.23 Mon. June 18, 2007
2112 * Moose::Meta::Method::Constructor
2113 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2114 * Moose::Meta::Class
2115 - Modify make_immutable to work with the new Class::MOP immutable
2116 mechanism + POD + very basic test (groditi)
2117 * Moose::Meta::Attribute
2118 - Fix handles to use goto() so that caller() comes out properly on
2119 the other side (perigrin)
2121 0.22 Thurs. May 31, 2007
2122 * Moose::Util::TypeConstraints
2123 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2124 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2125 prototypes for functions
2126 - added the ClassName type constraint, this checks for strings
2127 which will respond true to ->isa(UNIVERSAL).
2128 - added tests and docs for this
2129 - subtyping just in name now works correctly by making the
2130 default for where be { 1 }
2131 - added test for this
2133 * Moose::Meta::Method::Accessor
2134 - coerce and lazy now work together correctly, thanks to
2135 merlyn for finding this bug
2136 - tests added for this
2137 - fix reader presedence bug in Moose::Meta::Attribute + tests
2140 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2141 a HASH-ref and missed. This produces better error messages then
2142 having it die cause undef is not a HASH.
2143 - added tests for this
2145 0.21 Thursday, May 2nd, 2007
2147 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2148 - modified unimport to remove super and inner along with the rest
2149 - altered unimport tests to handle this
2152 - altered super export to populate SUPER_SLOT
2154 * Moose::Meta::Class
2155 - altered augment and override modifier application to use *_SLOT
2156 - modified tests for these to unimport one test class each to test
2159 - fixed issue where custom attribute metaclasses
2160 where not handled correctly in roles
2161 - added tests for this
2163 * Moose::Meta::Class
2164 - fixed issue where extending metaclasses with
2165 roles would blow up. Thanks to Aankhen`` for
2166 finding this insidious error, and it's solution.
2168 ~~ lots of spelling and grammer fixes in the docs,
2169 many many thanks to rlb3 and Aankhen for these :)
2171 0.20 Friday, April 6th, 2007
2172 >> I messed up the SKIP logic in one test
2173 so this release is just to fix that.
2176 - 'has' now also accepts an ARRAY ref
2177 to create multiple attrs (see docs)
2178 (thanks to konobi for this)
2179 - added tests and docs
2181 0.19 Thurs. April 5th, 2007
2182 ~~ More documentation updates ~~
2184 * Moose::Util::TypeConstraints
2185 - 'type' now supports messages as well
2186 thanks to phaylon for finding this
2187 - added tests for this
2188 - added &list_all_type_constraints and
2189 &list_all_builtin_type_constraints
2190 functions to facilitate introspection.
2192 * Moose::Meta::Attribute
2193 - fixed regexp 'handles' declarations
2194 to build the list of delegated methods
2195 correctly (and not override important
2196 things like &new) thanks to ashleyb
2198 - added tests and docs for this
2199 - added the 'documentation' attributes
2200 so that you can actually document your
2201 attributes and inspect them through the
2203 - added tests and docs for this
2205 * Moose::Meta::Class
2206 - when loading custom attribute metaclasses
2207 it will first look in for the class in the
2208 Moose::Meta::Attribute::Custom::$name, and
2209 then default to just loading $name.
2210 - added tests and docs for this
2212 * Moose::Meta::TypeConstraint
2213 - type constraints now stringify to their names.
2214 - added test for this
2217 - added tests to assure we work with Module::Refresh
2218 - added stricter test skip logic in the Moose POOP
2219 test, ask Rob Kinyon why.
2220 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2222 0.18 Sat. March 10, 2007
2223 ~~ Many, many documentation updates ~~
2226 - We now use Class::MOP::load_class to
2228 - added tests to show types and subtypes
2229 working with Declare::Constraints::Simple
2230 and Test::Deep as constraint engines.
2233 !! You must have Class::MOP 0.37_001 !!
2234 !! for this developer release to work !!
2236 This release was primarily adding the immutable
2237 feature to Moose. An immutable class is one which
2238 you promise not to alter. When you set the class
2239 as immutable it will perform various bits of
2240 memoization and inline certain part of the code
2241 (constructors, destructors and accessors). This
2242 minimizes (and in some cases totally eliminates)
2243 one of Moose's biggest performance hits. This
2244 feature is not on by default, and is 100% optional.
2245 It has several configurable bits as well, so you
2246 can pick and choose to your specific needs.
2248 The changes involved in this were fairly wide and
2249 highly specific, but 100% backwards compatible, so
2250 I am not going to enumerate them here. If you are
2251 truely interested in what was changed, please do
2254 0.17 Tues. Nov. 14, 2006
2255 * Moose::Meta::Method::Accessor
2256 - bugfix for read-only accessors which
2257 are have a type constraint and lazy.
2258 Thanks to chansen for finding it.
2260 0.16 Tues. Nov. 14, 2006
2262 There are some speed improvements in this release,
2263 but they are only the begining, so stay tuned.
2266 - BUILDALL and DEMOLISHALL no longer get
2267 called unless they actually need to be.
2268 This gave us a signifigant speed boost
2269 for the cases when there is no BUILD or
2270 DEMOLISH method present.
2272 * Moose::Util::TypeConstraints
2273 * Moose::Meta::TypeConstraint
2274 - added an 'optimize_as' option to the
2275 type constraint, which allows for a
2276 hand optimized version of the type
2277 constraint to be used when possible.
2278 - Any internally created type constraints
2279 now provide an optimized version as well.
2281 0.15 Sun. Nov. 5, 2006
2283 This version of Moose *must* have Class::MOP 0.36 in order
2284 to work correctly. A number of small internal tweaks have
2285 been made in order to be compatible with that release.
2287 * Moose::Util::TypeConstraints
2288 - added &unimport so that you can clean out
2289 your class namespace of these exported
2292 * Moose::Meta::Class
2293 - fixed minor issue which occasionally
2294 comes up during global destruction
2296 - moved Moose::Meta::Method::Overriden into
2300 - moved Moose::Meta::Role::Method into
2303 * Moose::Meta::Attribute
2304 - changed how we do type checks so that
2305 we reduce the overall cost, but still
2308 - moved accessor generation methods to
2309 Moose::Meta::Method::Accessor to
2310 conform to the API changes from
2313 * Moose::Meta::TypeConstraint
2314 - changed how constraints are compiled
2315 so that we do less recursion and more
2316 iteration. This makes the type check
2318 - moved Moose::Meta::TypeConstraint::Union
2321 * Moose::Meta::Method::Accessor
2322 - created this from methods formerly found in
2323 Moose::Meta::Attribute
2325 * Moose::Meta::Role::Method
2326 - moved this from Moose::Meta::Role
2328 * Moose::Meta::Method::Overriden
2329 - moved this from Moose::Meta::Class
2331 * Moose::Meta::TypeConstraint::Union
2332 - moved this from Moose::Meta::TypeConstraint
2334 0.14 Mon. Oct. 9, 2006
2336 * Moose::Meta::Attribute
2337 - fixed lazy attributes which were not getting
2338 checked with the type constraint (thanks ashley)
2339 - added tests for this
2340 - removed the over-enthusiastic DWIMery of the
2341 automatic ArrayRef and HashRef defaults, it
2342 broke predicates in an ugly way.
2343 - removed tests for this
2345 0.13 Sat. Sept. 30, 2006
2347 This version of Moose *must* have Class::MOP 0.35 in order
2348 to work correctly. A number of small internal tweaks have
2349 been made in order to be compatible with that release.
2352 - Removed the use of UNIVERSAL::require to be a better
2353 symbol table citizen and remove a dependency
2354 (thanks Adam Kennedy)
2356 **~~ removed experimental & undocumented feature ~~**
2357 - commented out the 'method' and 'self' keywords, see the
2358 comments for more info.
2361 - added a FAQ and WTF files to document frequently
2362 asked questions and common problems
2364 * Moose::Util::TypeConstraints
2365 - added GlobRef and FileHandle type constraint
2366 - added tests for this
2368 * Moose::Meta::Attribute
2369 - if your attribute 'isa' ArrayRef of HashRef, and you have
2370 not explicitly set a default, then make the default DWIM.
2371 This will also work for subtypes of ArrayRef and HashRef
2373 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2374 - new test added for this (thanks to ashley)
2377 - added basic support for runtime role composition
2378 but this is still *highly experimental*, so feedback
2379 is much appreciated :)
2380 - added tests for this
2382 * Moose::Meta::TypeConstraint
2383 - the type constraint now handles the coercion process
2384 through delegation, this is to support the coercion
2387 * Moose::Meta::TypeConstraint::Union
2388 - it is now possible for coercions to be performed
2390 - added tests for this (thanks to konobi)
2392 * Moose::Meta::TypeCoercion
2393 - properly capturing error when type constraint
2397 - Scalar::Util 1.18 is bad on Win32, so temporarily
2398 only require version 1.17 for Win32 and cygwin.
2399 (thanks Adam Kennedy)
2401 0.12 Sat. Sept. 1, 2006
2403 - Recipe5 (subtypes & coercion) has been written
2406 - fixed "bad meta" error message to be more descriptive
2407 - fixed &unimport to not remove the &inner and &super
2408 keywords because we need to localize them.
2409 - fixed number of spelling/grammer issues, thanks Theory :)
2411 **~~ experimental & undocumented feature ~~**
2412 - added the method and self keywords, they are basically
2413 just sugar, and they may not stay around.
2416 - added &dump method to easily Data::Dumper
2419 * Moose::Meta::TypeConstraint
2420 - added the &is_a_type_of method to check both the current
2421 and the subtype of a method (similar to &isa with classes)
2424 - this is now a subclass of Class::MOP::Module, and no longer
2425 creates the _role_meta ugliness of before.
2426 - fixed tests to reflect this change
2428 0.11 Wed. July 12, 2006
2430 - added an &unimport method to remove all the keywords
2431 that Moose will import, simply add 'no Moose' to the
2432 bottom of your class file.
2435 - fixed some test failures caused by a forgotten test
2438 0.10 Thurs. July 6, 2006
2440 - improved error message when loading modules so
2441 it is less confusing when you load a role.
2442 - added &calculate_all_roles method to
2443 Moose::Meta::Class and Moose::Meta::Role
2446 This module has been tested against Class::MOP 0.30
2447 but it does not yet utilize the optimizations
2448 it makes available. Stay tuned for that ;)
2450 0.09_03 Fri. June 23, 2006
2451 ++ DEVELOPER RELEASE ++
2453 - 'use strict' and 'use warnings' are no longer
2454 needed in Moose classes, Moose itself will
2455 turn them on for you.
2456 - added tests for this
2457 - moved code from exported subs to private methods
2458 in Moose::Meta::Class
2461 - as with Moose, strict and warnings are
2462 automatically turned on for you.
2463 - added tests for this
2466 - now handles an edge case for override errors
2467 - added tests for this
2468 - added some more edge case tests
2470 0.09_02 Tues. May 16, 2006
2471 ++ DEVELOPER RELEASE ++
2473 - added prototypes to the exported subs
2477 - added prototypes to the exported subs
2480 * Moose::Util::TypeConstraints
2481 - cleaned up prototypes for the subs
2484 0.09_01 Fri. May 12, 2006
2485 ++ DEVELOPER RELEASE ++
2486 - This release works in combination with
2487 Class::MOP 0.29_01, it is a developer
2488 release because it uses the a new
2489 instance sub-protocol and a fairly
2490 complete Role implementation. It has
2491 not yet been optimized, so it slower
2492 the the previous CPAN version. This
2493 release also lacks good updated docs,
2494 the official release will have updated docs.
2497 - refactored the keyword exports
2498 - 'with' now checks Role validaity and
2499 accepts more than one Role at a time
2500 - 'extends' makes metaclass adjustments as
2501 needed to ensure metaclass compatibility
2504 - refactored the keyword exports
2505 - 'with' now checks Role validaity and
2506 accepts more than one Role at a time
2508 * Moose::Util::TypeConstraints
2509 - added the 'enum' keyword for simple
2510 string enumerations which can be used as
2512 - see example of usage in t/202_example.t
2515 - more careful checking of params to new()
2518 - much work done on the role composition
2519 - many new tests for conflict detection
2520 and composition edge cases
2521 - not enough documentation, I suggest
2522 looking at the tests
2524 * Moose::Meta::Instance
2525 - added new Instance metaclass to support
2526 the new Class::MOP instance protocol
2528 * Moose::Meta::Class
2529 - some small changes to support the new
2531 - some small additions to support Roles
2533 * Moose::Meta::Attribute
2534 - some improvements to the accessor generation code
2536 - some small changes to support the new
2538 - (still somewhat) experimental delegation support
2539 with the 'handles' option
2540 - added several tests for this
2541 - no docs for this yet
2543 0.05 Thurs. April 27, 2006
2545 - keywords are now exported with Sub::Exporter
2546 thanks to chansen for this commit
2547 - has keyword now takes a 'metaclass' option
2548 to support custom attribute meta-classes
2549 on a per-attribute basis
2550 - added tests for this
2551 - the 'has' keyword not accepts inherited slot
2552 specifications (has '+foo'). This is still an
2553 experimental feature and probably not finished
2554 see t/038_attribute_inherited_slot_specs.t for
2555 more details, or ask about it on #moose
2556 - added tests for this
2559 - keywords are now exported with Sub::Exporter
2561 * Moose::Utils::TypeConstraints
2562 - reorganized the type constraint hierarchy, thanks
2563 to nothingmuch and chansen for his help and advice
2565 - added some tests for this
2566 - keywords are now exported with Sub::Exporter
2567 thanks to chansen for this commit
2569 * Moose::Meta::Class
2570 - due to changes in Class::MOP, we had to change
2571 construct_instance (for the better)
2573 * Moose::Meta::Attribute
2574 - due to changes in Class::MOP, we had to add the
2575 initialize_instance_slot method (it's a good thing)
2577 * Moose::Meta::TypeConstraint
2578 - added type constraint unions
2579 - added tests for this
2580 - added the is_subtype_of predicate method
2581 - added tests for this
2583 0.04 Sun. April 16th, 2006
2585 - Roles can now consume other roles
2586 - added tests for this
2587 - Roles can specify required methods now with
2588 the requires() keyword
2589 - added tests for this
2592 - ripped out much of it's guts ,.. much cleaner now
2593 - added required methods and correct handling of
2594 them in apply() for both classes and roles
2595 - added tests for this
2596 - no longer adds a does() method to consuming classes
2597 it relys on the one in Moose::Object
2598 - added roles attribute and some methods to support
2599 roles consuming roles
2601 * Moose::Meta::Attribute
2602 - added support for triggers on attributes
2603 - added tests for this
2604 - added support for does option on an attribute
2605 - added tests for this
2607 * Moose::Meta::Class
2608 - added support for attribute triggers in the
2610 - added tests for this
2613 - Moose no longer creates a subtype for your class
2614 if a subtype of the same name already exists, this
2615 should DWIM in 99.9999% of all cases
2617 * Moose::Util::TypeConstraints
2618 - fixed bug where incorrect subtype conflicts were
2620 - added test for this
2623 - this class can now be extended with 'use base' if
2624 you need it, it properly loads the metaclass class now
2625 - added test for this
2627 0.03_02 Wed. April 12, 2006
2629 - you must now explictly use Moose::Util::TypeConstraints
2630 it no longer gets exported for you automatically
2633 - new() now accepts hash-refs as well as key/value lists
2634 - added does() method to check for Roles
2635 - added tests for this
2637 * Moose::Meta::Class
2638 - added roles attribute along with the add_role() and
2640 - added tests for this
2643 - now adds a does() method to consuming classes
2644 which tests the class's hierarchy for roles
2645 - added tests for this
2647 0.03_01 Mon. April 10, 2006
2649 - added new Role recipe (no content yet, only code)
2652 - added 'with' keyword for Role support
2653 - added test and docs for this
2654 - fixed subtype quoting bug
2655 - added test for this
2659 - added test and docs
2661 * Moose::Util::TypeConstraints
2662 - added the message keyword to add custom
2663 error messages to type constraints
2666 - the meta role to support Moose::Role
2667 - added tests and docs
2669 * Moose::Meta::Class
2670 - moved a number of things from Moose.pm
2671 to here, they should have been here
2674 * Moose::Meta::Attribute
2675 - moved the attribute option macros here
2676 instead of putting them in Moose.pm
2678 * Moose::Meta::TypeConstraint
2679 - added the message attributes and the
2681 - added tests and docs for this
2683 0.03 Thurs. March 30, 2006
2685 - added the Moose::Cookbook with 5 recipes,
2686 describing all the stuff Moose can do.
2689 - fixed an issue with &extends super class loading
2690 it now captures errors and deals with inline
2691 packages correctly (bug found by mst, solution
2693 - added super/override & inner/augment features
2694 - added tests and docs for these
2697 - BUILDALL now takes a reference of the %params
2698 that are passed to &new, and passes that to
2701 * Moose::Util::TypeConstraints
2702 - Type constraints now survive runtime reloading
2703 - added test for this
2705 * Moose::Meta::Class
2706 - fixed the way attribute defaults are handled
2707 during instance construction (bug found by chansen)
2709 * Moose::Meta::Attribute
2710 - read-only attributes now actually enforce their
2711 read-only-ness (this corrected in Class::MOP as
2714 0.02 Tues. March 21, 2006
2716 - many more tests, fixing some bugs and
2718 - &extends now loads the base module with
2720 - added UNIVERSAL::require to the
2723 - each new Moose class will also create
2724 and register a subtype of Object which
2725 correspond to the new Moose class.
2726 - the 'isa' option in &has now only
2727 accepts strings, and will DWIM in
2730 * Moose::Util::TypeConstraints
2731 - added type coercion features
2732 - added tests for this
2733 - added support for this in attributes
2734 and instance construction
2736 - type construction no longer creates a
2737 function, it registers the type instead.
2738 - added several functions to get the
2742 - BUILDALL and DEMOLISHALL were broken
2743 because of a mis-named hash key, Whoops :)
2745 * Moose::Meta::Attribute
2746 - adding support for coercion in the
2747 autogenerated accessors
2749 * Moose::Meta::Class
2750 - adding support for coercion in the
2751 instance construction
2753 * Moose::Meta::TypeConstraint
2754 * Moose::Meta::TypeCoercion
2755 - type constraints and coercions are now
2756 full fledges meta-objects
2758 0.01 Wed. March 15, 2006
2759 - Moooooooooooooooooose!!!