1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Method::Accessor
6 - No longer uses inline_slot_access in accessors, to support
7 non-lvalue-based meta instances.
10 * Moose::Meta::Method::Delegation
11 - Once again allow class names as well as objects for
12 delegation. This was changed in 0.86.
15 * Moose::Meta::Class::Immutable::Trait
16 - Fixes to work with the latest Class::MOP.
18 * Moose::Meta::Method::Delegation
19 - Delegation now dies with a more useful error message if the
20 attribute's accessor returns something defined but
23 0.85 Fri, Jun 26, 2009
24 * Moose::Meta::Attribute
25 - The warning for 'no associated methods' is now split out into
26 the _check_associated_methods method, so that extensions can
27 safely call 'after install_accessors => ...'. This fixes a
28 warning from MooseX::AttributeHelpers. (hdp)
30 0.84 Fri, Jun 26, 2009
32 - has now sets definition_context for attributes defined in
35 * Moose::Meta::Attribute
36 - When adding an attribute to a metaclass, if the attribute has
37 no associated methods, it will give a deprecation
39 - Methods generated by delegation were not being added to
40 associated_methods. (hdp)
41 - Attribute accessors (reader, writer, accessor, predicate,
42 clearer) now warn if they overwrite an existing method. (doy)
43 - Attribute constructors now warn very noisily about unknown (or
46 * Moose::Util::TypeConstraints
47 - Deprecated the totally useless Role type name, which just
48 checked if $object->can('does'). Note that this is _not_ the
49 same as a type created by calling role_type('RoleName').
51 * Moose::Util::TypeConstraints
52 * Moose::Meta::TypeConstraint::DuckType
53 - Reify duck type from a regular subtype into an actual class
55 - Document this because Sartak did all my work for me
58 * Moose::Meta::Attribute
59 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
60 it is just a list of methods (Sartak)
63 - The get_*_method_modifiers methods would die if the role had
64 no modifiers of the given type (Robert Buels).
66 0.83 Tue, Jun 23, 2009
68 - Fix _construct_instance not setting the special __MOP__ object
69 key in instances of anon classes. (doy)
71 0.82 Sun, Jun 21, 2009
72 * Moose::Manual::Types
73 - Mention MooseX::Types early to avoid users falling down the
74 string parsing rathole (mst)
76 * Moose::Manual::MooseX
77 - Add warnings about class-level extensions and mention considering
78 using plain objects instead
81 * Bumped our Class::MOP prereq to the latest version (0.85), since
86 - Add FAQ about the coercion change from 0.76 because it came up
87 three times today (perigrin)
88 - Win doy $10 dollars because Sartak didn't think anybody
89 would document this fast enough (perigrin)
91 * Moose::Meta::Method::Destructor
92 - Inline a DESTROY method even if there are no DEMOLISH methods
93 to prevent unnecessary introspection in
94 Moose::Object::DEMOLISHALL
97 - A role's required methods are now represented by
98 Moose::Meta::Role::Method::Required objects. Conflicts are now
99 represented by Moose::Meta::Role::Method::Conflicting
100 objects. The benefit for end-users in that unresolved
101 conflicts generate different, more instructive, errors,
102 resolving Ovid's #44895. (Sartak)
105 - Improve the error message of "extends" as suggested by Adam
106 Kennedy and confound (Sartak)
107 - Link to Moose::Manual::Roles from Moose::Role as we now have
108 excellent documentation (Adam Kennedy)
111 - Update test suite for subname change in Class::MOP
113 - Add TODO test for infinite recursion in Moose::Meta::Class
116 0.79 Wed, May 13, 2009
118 - More fixes for Win32 problems. Reported by Robert Krimen.
121 - The DEMOLISHALL method could still blow up in some cases
122 during global destruction. This method has been made more
123 resilient in the face of global destruction's random garbage
127 - If you "also" a module that isn't loaded, the error message
128 now acknowledges that (Sartak)
131 - When your ->meta method does not return a Moose::Meta::Class,
132 the error message gave the wrong output (Sartak)
134 0.78 Tue, May 12, 2009
135 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
136 - Merged these documents into what is now Moose::Manual::FAQ
139 - Moved to Moose::Manual::Unsweetened
141 * Moose::Cookbook::Basics::Recipes 9-12
142 - Renamed to be 8-11, since recipe 8 did not exist
145 - Make Moose::Exporter import strict and warnings into packages
149 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
150 methods during global destruction (doy)
153 * Moose::Meta::Role::Application::ToClass
154 - Track the Role::Application objects created during class-role
158 - Fix metaclass incompatibility errors when extending a vanilla perl
159 class which isa Moose class with a metaclass role applied (t0m)
162 - Add a role-combination hook, _role_for_combination, for the
163 benefit of MooseX::Role::Parameterized (Sartak)
166 - Some tests were failing on Win32 because they explicit checked
167 warning output for newlines. Reported by Nickolay Platonov.
169 0.77 Sat, May 2, 2009
171 - Add explicit use of Devel::GlobalDestruction and Sub::Name
175 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
176 or not we are currently in global destruction (doy)
177 - Add explicit use of Devel::GlobalDestruction and Sub::Name
180 * Moose::Cookbook::FAQ
181 - Reworked much of the existing content to be more useful to
182 modern Moose hackers (Sartak)
185 - Depend on Class::MOP 0.83 instead of 0.82_01.
187 0.76 Mon, April 27, 2009
188 * Moose::Meta::TypeConstraint
189 - Do not run coercions in coerce() if the value already passes the type
192 * Moose::Meta::TypeConstraint::Class
193 - In validation error messages, specifically say that the value is not
194 an instance of the class. This should alleviate some frustrating
195 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
197 * Moose::Meta::Role::Application::ToClass
198 - Revert the class-overrides-role warning in favor of a solution outside
199 of the Moose core (Sartak)
202 - Make Test::Output optional again, since it's only used in a few files
205 0.75_01 Thu, April 23, 2009
206 * Moose::Meta::Role::Application::ToClass
207 - Moose now warns about each class overriding methods from roles it
211 - Warnings tests have standardized on Test::Output which is now an
212 unconditionally dependency (Sartak)
215 - Changes to immutabilization to work with Class::MOP 0.82_01+.
217 0.75 Mon, April 20, 2009
220 - Move validation of not inheriting from roles from Moose::extends to
221 Moose::Meta::Class::superclasses (doy)
224 - add ensure_all_roles() function to encapsulate the common "apply this
225 role unless the object already does it" pattern (hdp)
228 - Users can now select a different metaclass with the "-metaclass"
229 option to import, for classes and roles (Sartak)
232 - Make method_metaclass an attr so that it can accept a metarole
235 0.74 Tue, April 7, 2009
237 * Moose::Meta::Method::Destructor
238 - Include stack traces in the deprecation warnings.
242 - Removed the long-deprecated _apply_all_roles method.
244 * Moose::Meta::TypeConstraint
245 - Removed the long-deprecated union method.
248 0.73_02 Mon, April 6, 2009
249 * More deprecations and renamings
250 - Moose::Meta::Method::Constructor
251 - initialize_body => _initialize_body (this is always called
252 when an object is constructed)
255 - The DEMOLISHALL method could throw an exception during global
256 destruction, meaning that your class's DEMOLISH methods would
257 not be properly called. Reported by t0m.
259 * Moose::Meta::Method::Destructor
260 - Destructor inlining was totally broken by the change to the
261 is_needed method in 0.72_01. Now there is a test for this
262 feature, and it works again.
265 - Bold the word 'not' in the POD for find_meta (t0m)
267 0.73_01 Sun, April 5, 2009
269 - Call user_class->meta in fewer places, with the eventual goal
270 of allowing the user to rename or exclude ->meta
271 altogether. Instead uses Class::MOP::class_of. (Sartak)
273 * Moose::Meta::Method::Accessor
274 - If an attribute had a lazy default, and that value did not
275 pass the attribute's type constraint, it did not get the
276 message from the type constraint, instead using a generic
277 message. Test provided by perigrin.
279 * Moose::Util::TypeConstraints
280 - Add duck_type keyword. It's sugar over making sure an object
281 can() a list of methods. This is easier than jrockway's
282 suggestion to fork all of CPAN. (perigrin)
283 - add tests and documentation (perigrin)
286 - Document the fact that init_meta() returns the target class's
287 metaclass object. (hdp)
289 * Moose::Cookbook::Extending::Recipe1
290 * Moose::Cookbook::Extending::Recipe2
291 * Moose::Cookbook::Extending::Recipe3
292 * Moose::Cookbook::Extending::Recipe4
293 - Make init_meta() examples explicitly return the metaclass and
294 point out this fact. (hdp)
296 * Moose::Cookbook::Basics::Recipe12
297 - A new recipe, creating a custom meta-method class.
299 * Moose::Cookbook::Meta::Recipe6
300 - A new recipe, creating a custom meta-method class.
303 * Moose::Meta::Method::Constructor
304 - Attribute triggers no longer receive the meta-attribute object
305 as an argument in any circumstance. Previously, triggers
306 called during instance construction were passed the
307 meta-attribute, but triggers called by normal accessors were
308 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
310 * Moose::Manual::Attributes
311 - Remove references to triggers receving the meta-attribute object as an
314 * Moose::Cookbook::FAQ
315 - Remove recommendation for deprecated Moose::Policy and
316 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
319 * Many methods have been renamed with a leading underscore, and a
320 few have been deprecated entirely. The methods with a leading
321 underscore are consider "internals only". People writing
322 subclasses or extensions to Moose should feel free to override
323 them, but they are not for "public" use.
326 - check_metaclass_compatibility => _check_metaclass_compatibility
328 - Moose::Meta::Method::Accessor
329 - initialize_body => _initialize_body (this is always called
330 when an object is constructed)
331 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
333 - Moose::Meta::Method::Constructor
334 - initialize_body => _initialize_body (this is always called
335 when an object is constructed)
336 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
337 - attributes => _attributes (now inherited from parent)
338 - meta_instance => _meta_instance (now inherited from parent)
341 - alias_method is deprecated. Use add_method
343 0.73 Fri, March 29, 2009
344 * No changes from 0.72_01.
346 0.72_01 Thu, March 26, 2009
348 - Almost every module has complete API documentation. A few
349 methods (and even whole classes) have been intentionally
350 excluded pending some rethinking of their APIs.
352 * Moose::Util::TypeConstraints
353 - Calling subtype with a name as the only argument is now an
354 exception. If you want an anonymous subtype do:
356 my $subtype = subtype as 'Foo';
358 * Moose::Cookbook::Meta::Recipe7
359 - A new recipe, creating a custom meta-instance class.
361 * Moose::Cookbook::Basics::Recipe5
362 - Fix various typos and mistakes. Includes a patch from Radu
365 * Moose::Cookbook::Basics::Recipe9
366 - Link to this recipe from Moose.pm's builder blurb
369 - When wrapping a function with a prototype, Moose::Exporter now
370 makes sure the wrapped function still has the same
371 prototype. (Daisuke Maki)
373 * Moose::Meta::Attribute
374 - Allow a subclass to set lazy_build for an inherited
378 - Explicitly depend on Data::OptList. We already had this dependency
379 via Sub::Exporter, but since we're using it directly we're
380 better off with it listed. (Sartak)
382 * Moose::Meta::Method::Constructor
383 - Make it easier to subclass the inlining behaviour. (Ash
386 * Moose::Manual::Delta
387 - Details significant changes in the history of Moose, along
388 with recommended workarounds.
390 * Moose::Manual::Contributing
391 - Contributor's guide to Moose.
393 * Moose::Meta::Method::Constructor
394 - The long-deprecated intialize_body method has been removed
395 (yes, spelled like that).
397 * Moose::Meta::Method::Destructor
398 - This is_needed method is now always a class method.
401 - Changes to the internals of how make_immutable works to match
402 changes in latest Class::MOP.
404 0.72 Mon, February 23, 2009
406 * Moose::Meta::Method::Constructor
407 - A mutable class accepted Foo->new(undef) without complaint,
408 while an immutable class would blow up with an unhelpful
409 error. Now, in both cases we throw a helpful error
410 instead. Reported by doy.
412 0.71_01 Sun, February 22, 2009
414 - Hopefully fixed some POD errors in a few recipes that caused
415 them to display weird on search.cpan.org.
417 * Moose::Util::TypeConstraints
418 - Calling type or subtype without the sugar helpers (as, where,
419 message) is now deprecated.
420 - The subtype function tried hard to guess what you meant, but
421 often got it wrong. For example:
423 my $subtype = subtype as 'ArrayRef[Object]';
425 This caused an error in the past, but now works as you'd
429 - Make sure Moose.pm is loaded before calling
430 Moose->throw_error. This wasn't normally an issue, but could
431 bite you in weird cases.
433 0.71 Thu, February 19, 2009
434 * Moose::Cookbook::Basics::Recipe11
435 - A new recipe which demonstrates the use of BUILDARGS and
438 * Moose::Cookbook::Roles::Recipe3
439 - A new recipe, applying a role to an object instance. (Dave
443 - Allow overriding specific keywords from "also" packages. (doy)
446 - Replace hardcoded cookbook tests with Test::Inline to ensure
447 the tests match the actual code in the recipes. (Dave Rolsky)
450 - Working on the above turned up a number of little bugs in the
451 recipe code. (Dave Rolsky)
453 * Moose::Util::TypeConstraints::Optimized
454 - Just use Class::MOP for the optimized ClassName check. (Dave
457 0.70 Sat, February 14, 2009
458 * Moose::Util::TypeConstraints
459 - Added the RoleName type (stevan)
460 - added tests for this (stevan)
462 * Moose::Cookbook::Basics::Recipe3
463 - Updated the before qw[left right] sub to be a little more
464 defensive about what it accepts (stevan)
465 - added more tests to t/000_recipies/basics/003_binary_tree.t
469 - We now always call DEMOLISHALL, even if a class does not
470 define DEMOLISH. This makes sure that method modifiers on
471 DEMOLISHALL work as expected. (doy)
472 - added tests for this (EvanCarroll)
474 * Moose::Util::MetaRole
475 - Accept roles for the wrapped_method_metaclass (rafl)
476 - added tests for this (rafl)
478 * Moose::Meta::Attribute
479 - We no longer pass the meta-attribute object as a final
480 argument to triggers. This actually changed for inlined code a
481 while back, but the non-inlined version and the docs were
485 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
486 they require 0.11. (Dave Rolsky)
489 - Lots of small changes to the manual, cookbook, and
490 elsewhere. These were based on feedback from various
491 users, too many to list here. (Dave Rolsky)
493 0.69 Thu, February 12, 2009
495 - Make some keyword errors use throw_error instead of croak
496 since Moose::Exporter wraps keywords now (Sartak)
499 - Revised every recipe for style and clarity. Also moved some
500 documentation out of cookbook recipes and into Moose::Manual
501 pages. This work was funded as part of the Moose docs grant
502 from TPF. (Dave Rolsky)
504 * Moose::Meta::Method::Delegation
505 - If the attribute doing the delegation was not populated, the
506 error message did not specify the attribute name
509 0.68 Wed, February 4, 2009
511 - Many spelling, typo, and formatting fixes by daxim.
513 * Moose::Manual::Attributes
514 - The NAME section in the POD used "Attribute" so search.cpan
515 didn't resolve links from other documents properly.
517 * Moose::Meta::Method::Overriden
518 - Now properly spelled as Overridden. Thanks to daxim for
521 0.67 Tue, February 3, 2009
523 - Lots of little typo fixes and a few clarifications. Several
524 pages didn't have proper titles, and so weren't actually
525 visible on search.cpan.org. Thanks to hanekomu for a variety
526 of fixes and formatting improvements.
528 0.66 Tue, February 3, 2009
530 - This is a brand new, extensive manual for Moose. This aims to
531 provide a complete introduction to all of Moose's
532 features. This work was funded as part of the Moose docs grant
533 from TPF. (Dave Rolsky)
535 * Moose::Meta::Attribute
536 - Added a delegation_metaclass method to replace a hard-coded
537 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
539 * Moose::Util::TypeConstraints
540 - If you created a subtype and passed a parent that Moose didn't
541 know about, it simply ignored the parent. Now it automatically
542 creates the parent as a class type. This may not be what you
543 want, but is less broken than before. (Dave Rolsky)
545 * Moose::Util::TypeConstraints
546 - This module tried throw errors by calling Moose->throw_error,
547 but it did not ensure that Moose was loaded first. This could
548 cause very unhelpful errors when it tried to throw an error
549 before Moose was loaded. (Dave Rolsky)
551 * Moose::Util::TypeConstraints
552 - You could declare a name with subtype such as "Foo!Bar" that
553 would be allowed, but if you used it in a parameterized type
554 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
555 vetting on names created via the sugar functions, so that they
556 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
558 0.65 Thu, January 22, 2008
559 * Moose and Moose::Meta::Method::Overridden
560 - If an overridden method called super(), and then the
561 superclass's method (not overridden) _also_ called super(),
562 Moose went into an endless recursion loop. Test provided by
563 Chris Prather. (Dave Rolsky)
565 * Moose::Meta::TypeConstraint
566 - All methods are now documented. (gphat)
568 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
569 - Fixed some bogus failures that occurred because we tried to
570 validate filesystem paths in a very ad-hoc and
571 not-quite-correct way. (Dave Rolsky)
573 * Moose::Util::TypeConstraints
574 - Added maybe_type to exports. See docs for details. (rjbs)
577 - Added Moose::Util::TypeConstraints to the SEE ALSO
581 - Methods created via an attribute can now fulfill a "requires"
582 declaration for a role. (nothingmuch)
584 * Moose::Meta::Method::*
585 - Stack traces from inlined code will now report its line and
586 file as being in your class, as opposed to in Moose
589 0.64 Wed, December 31, 2008
590 * Moose::Meta::Method::Accessor
591 - Always inline predicate and clearer methods (Sartak)
593 * Moose::Meta::Attribute
594 - Support for parameterized traits (Sartak)
595 - verify_against_type_constraint method to avoid duplication
596 and enhance extensibility (Sartak)
599 - Tests (but no support yet) for parameterized traits (Sartak)
602 - Require Class::MOP 0.75+, which has the side effect of making
603 sure we work on Win32. (Dave Rolsky)
605 0.63 Mon, December 8, 2008
607 - Some small grammar tweaks and bug fixes in non-Moose example
610 0.62_02 Fri, December 5, 2008
611 * Moose::Meta::Role::Application::ToClass
612 - When a class does not provide all of a role's required
613 methods, the error thrown now mentions all of the missing
614 methods, as opposed to just the first one found. Requested by
615 Curtis Poe (RT #41119). (Dave Rolsky)
617 * Moose::Meta::Method::Constructor
618 - Moose will no longer inline a constructor for your class
619 unless it inherits its constructor from Moose::Object, and
620 will warn when it doesn't inline. If you want to force
621 inlining anyway, pass "replace_constructor => 1" to
622 make_immutable. Addresses RT #40968, reported by Jon
623 Swartz. (Dave Rolsky)
624 - The quoting of default values could be broken if the default
625 contained a single quote ('). Now we use quotemeta to escape
626 anything potentially dangerous in the defaults. (Dave Rolsky)
628 0.62_01 Wed, December 3, 2008
630 - use the method->execute API for BUILDALL
631 and DEMOLISHALL (Sartak)
633 * Moose::Util::TypeConstraints
634 - We now make all the type constraint meta classes immutable
635 before creating the default types provided by Moose. This
636 should make loading Moose a little faster. (Dave Rolsky)
638 0.62 Wed November 26, 2008
639 * Moose::Meta::Role::Application::ToClass
640 Moose::Meta::Role::Application::ToRole
641 - fixed issues where excluding and aliasing the
642 same methods for a single role did not work
643 right (worked just fine with multiple
645 - added test for this (stevan)
647 * Moose::Meta::Role::Application::RoleSummation
648 - fixed the error message when trying to compose
649 a role with a role it excludes (Sartak)
652 - Catch another case where recursion caused the value
653 of $CALLER to be stamped on (t0m)
654 - added test for this (t0m)
657 - Remove the make_immutable keyword, which has been
658 deprecated since April. It breaks metaclasses that
659 use Moose without no Moose (Sartak)
661 * Moose::Meta::Attribute
662 - Removing an attribute from a class now also removes delegation
663 (handles) methods installed for that attribute (t0m)
664 - added test for this (t0m)
666 * Moose::Meta::Method::Constructor
667 - An attribute with a default that looked like a number (but was
668 really a string) would accidentally be treated as a number
669 when the constructor was made immutable (perigrin)
670 - added test for this (perigrin)
673 - create method for constructing a role
675 - added test for this (Sartak)
676 - anonymous roles! (Sartak)
677 - added test for this (Sartak)
680 - more consistent error messages (Sartak)
682 * Moose::Cookbook::Roles::Recipe1
683 - attempt to explain why a role that just requires
684 methods is useful (Sartak)
686 0.61 Fri November 7, 2008
687 * Moose::Meta::Attribute
688 - When passing a role to handles, it will be loaded if necessary
692 - Method objects returned by get_method (and other methods)
693 Could end up being returned without an associated_metaclass
694 attribute. Removing get_method_map, which is provided by
695 Class::MOP::Class, fixed this. The Moose version did nothing
696 different from its parent except introduce a bug. (Dave Rolsky)
697 - added tests for this (jdv79)
700 - Added a $VERSION to all .pm files which didn't have one. Fixes
701 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
703 * Moose::Cookbook::Basics::Recipe4
704 * Moose::Cookbook::Basics::Recipe6
705 - These files had spaces on the first line of the SYNOPSIS, as
706 opposed to a totally empty line. According to RT #40432, this
707 confuses POD parsers. (Dave Rolsky)
709 0.60 Fri October 24, 2008
711 - Passing "-traits" when loading Moose caused the Moose.pm
712 exports to be broken. Reported by t0m. (Dave Rolsky)
713 - Tests for this bug. (t0m)
716 - Change resolve_metaclass alias to use the new
717 load_first_existing_class function. This makes it a lot
718 simpler, and also around 5 times faster. (t0m)
719 - Add caching to resolve_metaclass_alias, which gives an order
720 of magnitude speedup to things which repeatedly call the
721 Moose::Meta::Attribute->does method, notably MooseX::Storage
724 * Moose::Util::TypeConstraint
725 - Put back the changes for parameterized constraints that
726 shouldn't have been removed in 0.59. We still cannot parse
727 them, but MooseX modules can create them in some other
728 way. See the 0.58 changes for more details. (jnapiorkowski)
729 - Changed the way subtypes are created so that the job is
730 delegated to a type constraint parent. This clears up some
731 hardcoded checking and should allow correct subtypes of
732 Moose::Meta::Type::Constraint. Don't rely on this new API too
733 much (create_child_type) because it may go away in the
734 future. (jnapiorkowski)
736 * Moose::Meta::TypeConstraint::Union
737 - Type constraint names are sorted as strings, not numbers.
740 * Moose::Meta::TypeConstraint::Parameterizable
741 - New parameterize method. This can be used as a factory method
742 to make a new type constraint with a given parameterized
743 type. (jnapiorkowski)
744 - added tests (jnapiorkowski)
746 0.59 Tue October 14, 2008
748 - Add abridged documentation for builder/default/initializer/
749 predicate, and link to more details sections in
750 Class::MOP::Attribute. (t0m)
752 * Moose::Util::TypeConstraints
753 - removed prototypes from all but the &-based stuff (mst)
755 * Moose::Util::TypeConstraints
756 - Creating a anonymous subtype with both a constraint and a
757 message failed with a very unhelpful error, but should just
758 work. Reported by t0m. (Dave Rolsky)
761 - Some tests that used Test::Warn if it was available failed
762 with older versions of Test::Warn. Reported by Fayland. (Dave
764 - Test firing behavior of triggers in relation to builder/default/
766 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
767 kinds of supported type. (t0m)
770 - In create(), do not pass "roles" option to the superclass
771 - added related test that creates an anon metaclass with
774 * Moose::Meta::TypeConstraint::Class
775 * Moose::Meta::TypeConstraint::Role
776 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
777 other types (as per change in 0.55_02). (t0m)
779 * Moose::Meta::TypeConstraint::Registry
780 - Fix warning when dealing with unknown type names (t0m)
782 * Moose::Util::TypeConstraints
783 - Reverted changes from 0.58 related to handle parameterized
784 types. This caused random failures on BSD and Win32 systems,
785 apparently related to the regex engine. This means that Moose
786 can no longer parse structured type constraints like
787 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
788 supported in a slightly different way via MooseX::Types some
789 time in the future. (Dave Rolsky)
791 0.58 Sat September 20, 2008
792 !! This release has an incompatible change regarding !!
793 !! how roles add methods to a class !!
795 * Roles and role application
796 ! Roles now add methods by calling add_method, not
797 alias_method. They make sure to always provide a method
798 object, which will be cloned internally. This means that it is
799 now possible to track the source of a method provided by a
800 role, and even follow its history through intermediate roles.
802 This means that methods added by a role now show up when
803 looking at a class's method list/map. (Dave Rolsky)
806 - From this release on, we'll try to maintain a list of
807 conflicting modules, and warn you if you have one
808 installed. For example, this release conflicts with ...
809 - MooseX::Singleton <= 0.11
810 - MooseX::Params::Validate <= 0.05
813 In general, we try to not break backwards compatibility for
814 most Moose users, but MooseX modules and other code which
815 extends Moose's metaclasses is often affected by very small
816 changes in the Moose internals.
818 * Moose::Meta::Method::Delegation
819 * Moose::Meta::Attribute
820 - Delegation methods now have their own method class. (Dave
823 * Moose::Meta::TypeConstraint::Parameterizable
824 - Added a new method 'parameterize' which is basically a factory
825 for the containing constraint. This makes it easier to create
826 new types of parameterized constraints. (jnapiorkowski)
828 * Moose::Meta::TypeConstraint::Union
829 - Changed the way Union types canonicalize their names to follow
830 the normalized TC naming rules, which means we strip all
831 whitespace. (jnapiorkowski)
833 * Moose::Util::TypeConstraints
834 - Parameter and Union args are now sorted, this makes Int|Str
835 the same constraint as Str|Int. (jnapiorkowski)
836 - Changes to the way Union types are parsed to more correctly
837 stringify their names. (jnapiorkowski)
838 - When creating a parameterized type, we now use the new
839 parameterize method. (jnapiorkowski)
840 - Incoming type constraint strings are now normalized to remove
841 all whitespace differences. (jnapiorkowski)
842 - Changed the way we parse type constraint strings so that we now
843 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
844 constraints. This lays the foundation for more flexible type
845 constraint implementations.
847 * Tests and docs for all the above. (jnapiorkowski)
851 - Moose::Exporter will no longer remove a subroutine that the
852 exporting package re-exports. Moose re-exports the
853 Carp::confess function, among others. The reasoning is that we
854 cannot know whether you have also explicitly imported those
855 functions for your own use, so we err on the safe side and
856 always keep them. (Dave Rolsky)
857 - added tests for this (rafl)
860 - Changes to how we fix metaclass compatibility that are much
861 too complicated to go into. The summary is that Moose is much
862 less likely to complain about metaclass incompatibility
863 now. In particular, if two metaclasses differ because
864 Moose::Util::MetaRole was used on the two corresponding
865 classes, then the difference in roles is reconciled for the
866 subclass's metaclass. (Dave Rolsky)
867 - Squashed an warning in _process_attribute (thepler)
870 - throw exceptions (sooner) for invalid attribute names (thepler)
871 - added tests for this (thepler)
873 * Moose::Util::MetaRole
874 - If you explicitly set a constructor or destructor class for a
875 metaclass object, and then applied roles to the metaclass,
876 that explicitly set class would be lost and replaced with the
880 * Moose::Meta::Attribute
881 * Moose::Meta::Method
884 * Moose::Error::Default
885 * Moose::Error::Croak
886 * Moose::Error::Confess
887 - All instances of confess() changed to use overridable
888 C<throw_error> method. This method ultimately calls a class
889 constructor, and you can change the class being called. In
890 addition, errors now pass more information than just a string.
891 The default C<error_class> behaves like C<Carp::confess>, so
892 the behavior is not visibly different for end users.
894 0.57 Wed September 3, 2008
896 - A new bit of doc intended to introduce folks familiar with
897 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
900 - Shows examples of two classes, each done first with and then
901 without Moose. This makes a nice parallel to
902 Moose::Intro. (Dave Rolsky)
904 * Moose::Util::TypeConstraints
905 - Fixed a bug in find_or_parse_type_constraint so that it
906 accepts a Moose::Meta::TypeConstraint object as the parent
907 type, not just a name (jnapiorkowski)
908 - added tests (jnapiorkowski)
911 - If Sub::Name was not present, unimporting failed to actually
912 remove some sugar subs, causing test failures (Dave Rolsky)
914 0.56 Mon September 1, 2008
915 For those not following the series of dev releases, there are
916 several major changes in this release of Moose.
917 ! Moose::init_meta should now be called as a method. See the
920 - Major performance improvements by nothingmuch.
922 - New modules for extension writers, Moose::Exporter and
923 Moose::Util::MetaRole by Dave Rolsky.
925 - Lots of doc improvements and additions, especially in the
930 * Removed all references to the experimental-but-no-longer-needed
931 Moose::Meta::Role::Application::ToMetaclassInstance.
933 * Require Class::MOP 0.65.
935 0.55_04 Sat August 30, 2008
936 * Moose::Util::MetaRole
937 * Moose::Cookbook::Extending::Recipe2
938 - This simplifies the application of roles to any meta class, as
939 well as the base object class. Reimplemented metaclass traits
940 using this module. (Dave Rolsky)
942 * Moose::Cookbook::Extending::Recipe1
943 - This a new recipe, an overview of various ways to write Moose
944 extensions (Dave Rolsky)
946 * Moose::Cookbook::Extending::Recipe3
947 * Moose::Cookbook::Extending::Recipe4
948 - These used to be Extending::Recipe1 and Extending::Recipe2,
951 0.55_03 Fri August 29, 2008
952 * No changes from 0.55_02 except increasing the Class::MOP
953 dependency to 0.64_07.
955 0.55_02 Fri August 29, 2008
956 * Makefile.PL and Moose.pm
957 - explicitly require Perl 5.8.0+ (Dave Rolsky)
959 * Moose::Util::TypeConstraints
960 - Fix warnings from find_type_constraint if the type is not
963 * Moose::Meta::TypeConstraint
964 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
965 return false if the type you specify cannot be found in the
966 type registry, rather than throwing an unhelpful and
967 coincidental exception. (t0m).
968 - added docs & test for this (t0m)
970 * Moose::Meta::TypeConstraint::Registry
971 - add_type_constraint now throws an exception if a parameter is
973 - added docs & test for this (t0m)
975 * Moose::Cookbook::FAQ
976 - Added a faq entry on the difference between "role" and "trait"
980 - Fixed a bug that caused role composition to not see a required
981 method when that method was provided by another role being
982 composed at the same time. (Dave Rolsky)
983 - test and bug finding (tokuhirom)
985 0.55_01 Wed August 20, 2008
987 !! Calling Moose::init_meta as a function is now !!
988 !! deprecated. Please see the Moose.pm docs for details. !!
990 * Moose::Meta::Method::Constructor
991 - Fix inlined constructor so that values produced by default
992 or builder methods are coerced as required. (t0m)
993 - added test for this (t0m)
995 * Moose::Meta::Attribute
996 - A lazy attribute with a default or builder did not attempt to
997 coerce the default value. The immutable code _did_
999 - added test for this (t0m)
1002 - This is a new helper module for writing "Moose-alike"
1003 modules. This should make the lives of MooseX module authors
1004 much easier. (Dave Rolsky)
1007 * Moose::Cookbook::Meta::Recipe5
1008 - Implemented metaclass traits (and wrote a recipe for it):
1010 use Moose -traits => 'Foo'
1012 This should make writing small Moose extensions a little
1013 easier (Dave Rolsky)
1015 * Moose::Cookbook::Basics::Recipe1
1016 - Removed any examples of direct hashref access, and applied an
1017 editorial axe to reduce verbosity. (Dave Rolsky)
1019 * Moose::Cookbook::Basics::Recipe1
1020 - Also applied an editorial axe here. (Dave Rolsky)
1023 * Moose::Cookbook::Extending::Recipe1
1024 * Moose::Cookbook::Extending::Recipe2
1025 - Rewrote extending and embedding moose documentation and
1026 recipes to use Moose::Exporter (Dave Rolsky)
1030 - These two modules now warn when you load them from the main
1031 package "main" package, because we will not export sugar to
1032 main. Previously it just did nothing. (Dave Rolsky)
1035 - Now provide an init_meta method just like Moose.pm, and you
1036 can call this to provide an alternate role metaclass. (Dave
1037 Rolsky and nothingmuch)
1038 - get_method_map now respects the package cache flag (nothingmuch)
1041 - Two new methods - add_method and wrap_method_body
1045 - Optimizations including allowing constructors to accept hash
1046 refs, making many more classes immutable, and making
1047 constructors immutable. (nothingmuch)
1049 0.55 Sun August 3, 2008
1050 * Moose::Meta::Attribute
1051 - breaking down the way 'handles' methods are
1052 created so that the process can be more easily
1053 overridden by subclasses (stevan)
1055 * Moose::Meta::TypeConstraint
1056 - fixing what is passed into a ->message with
1057 the type constraints (RT #37569)
1058 - added tests for this (Charles Alderman)
1060 * Moose::Util::TypeConstraints
1061 - fix coerce to accept anon types like subtype can (mst)
1064 - reorganized the recipes into sections - Basics, Roles, Meta,
1065 Extending - and wrote abstracts for each section (Dave Rolsky)
1067 * Moose::Cookbook::Basics::Recipe10
1068 - A new recipe that demonstrates operator overloading
1069 in combination with Moose. (bluefeet)
1071 * Moose::Cookbook::Meta::Recipe1
1072 - an introduction to what meta is and why you'd want to make
1073 your own metaclass extensions (Dave Rolsky)
1075 * Moose::Cookbook::Meta::Recipe4
1076 - a very simple metaclass example (Dave Rolsky)
1078 * Moose::Cookbook::Extending::Recipe1
1079 - how to write a Moose-alike module to use your own object base
1082 * Moose::Cookbook::Extending::Recipe2
1083 - how to write modules with an API just like C<Moose.pm> (Dave
1087 - Tons of fixes, both syntactical and grammatical (Dave
1088 Rolsky, Paul Fenwick)
1090 0.54 Thurs. July 3, 2008
1091 ... this is not my day today ...
1093 * Moose::Meta::Attribute
1094 - fixed legal_options_for_inheritance such that
1095 clone_and_inherit options still works for
1096 Class::MOP::Attribute objects and therefore
1097 does not break MooseX::AttributeHelpers
1100 0.53 Thurs. July 3, 2008
1101 * Whoops, I guess I should run 'make manifest' before
1102 actually releasing the module. No actual changes
1103 in this release, except the fact that it includes
1104 the changes that I didn't include in the last
1107 0.52 Thurs. July 3, 2008
1109 - added "FEATURE REQUESTS" section to the Moose docs
1110 to properly direct people (stevan) (RT #34333)
1111 - making 'extends' croak if it is passed a Role since
1112 this is not ever something you want to do
1113 (fixed by stevan, found by obra)
1114 - added tests for this (stevan)
1117 - adding support for DOES (as in UNIVERSAL::DOES)
1119 - added test for this
1121 * Moose::Meta::Attribute
1122 - added legal_options_for_inheritance (wreis)
1123 - added tests for this (wreis)
1125 * Moose::Cookbook::Snacks::*
1126 - removed some of the unfinished snacks that should
1127 not have been released yet. Added some more examples
1128 to the 'Keywords' snack. (stevan)
1130 * Moose::Cookbook::Style
1131 - added general Moose "style guide" of sorts to the
1132 cookbook (nothingmuch) (RT #34335)
1135 - added more BUILDARGS tests (stevan)
1137 0.51 Thurs. Jun 26, 2008
1139 - add unimport so "no Moose::Role" actually does
1142 * Moose::Meta::Role::Application::ToRole
1143 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1144 order to provide its own implementation, that method still got
1145 added to the list of required methods for consumers of
1146 RoleB. Now an aliased method is only added to the list of
1147 required methods if the role doing the aliasing does not
1148 provide its own implementation. See Recipe 11 for an example
1149 of all this. (Dave Rolsky)
1150 - added tests for this
1152 * Moose::Meta::Method::Constructor
1153 - when a single argument that wasn't a hashref was provided to
1154 an immutabilized constructor, the error message was very
1155 unhelpful, as opposed to the non-immutable error. Reported by
1157 - added test for this (Dave Rolsky)
1159 * Moose::Meta::Attribute
1160 - added support for meta_attr->does("ShortAlias") (sartak)
1161 - added tests for this (sartak)
1162 - moved the bulk of the `handles` handling to the new
1163 install_delegation method (Stevan)
1166 - Added BUILDARGS, a new step in new()
1168 * Moose::Meta::Role::Application::RoleSummation
1169 - fix typos no one ever sees (sartak)
1171 * Moose::Util::TypeConstraints
1172 * Moose::Meta::TypeConstraint
1173 * Moose::Meta::TypeCoercion
1174 - Attempt to work around the ??{ } vs. threads issue
1176 - Some null_constraint optimizations
1178 0.50 Thurs. Jun 11, 2008
1179 - Fixed a version number issue by bumping all modules
1182 0.49 Thurs. Jun 11, 2008
1183 !! This version now approx. 20-25% !!
1184 !! faster with new Class::MOP 0.59 !!
1186 * Moose::Meta::Attribute
1187 - fixed how the is => (ro|rw) works with
1188 custom defined reader, writer and accessor
1190 - added docs for this (TODO).
1191 - added tests for this (Thanks to Penfold)
1192 - added the custom attribute alias for regular
1193 Moose attributes which is "Moose"
1194 - fix builder and default both being used
1199 Moose::Meta::Attribute
1201 Moose::Meta::Role::Composite
1202 Moose::Util::TypeConstraints
1203 - switched usage of reftype to ref because
1207 - changing add_package_symbol to use the new
1211 - fixed how DEMOLISHALL is called so that it
1212 can be overrided in subclasses (thanks to Sartak)
1213 - added test for this (thanks to Sartak)
1215 * Moose::Util::TypeConstraints
1216 - move the ClassName type check code to
1217 Class::MOP::is_class_loaded (thanks to Sartak)
1219 * Moose::Cookbook::Recipe11
1220 - add tests for this (thanks to tokuhirom)
1222 0.48 Thurs. May 29, 2008
1223 (early morning release engineering)--
1225 - fixing the version in Moose::Meta::Method::Destructor
1226 which was causing the indexer to choke
1228 0.47 Thurs. May 29, 2008
1229 (late night release engineering)--
1231 - fixing the version is META.yml, no functional
1232 changes in this release
1234 0.46 Wed. May 28, 2008
1235 !! This version now approx. 20-25% !!
1236 !! faster with new Class::MOP 0.57 !!
1238 * Moose::Meta::Class
1239 - some optimizations of the &initialize method
1240 since it is called so often by &meta
1242 * Moose::Meta::Class
1244 - now use the get_all_package_symbols from the
1245 updated Class::MOP, test suite is now 10 seconds
1248 * Moose::Meta::Method::Destructor
1249 - is_needed can now also be called as a class
1250 method for immutablization to check if the
1251 destructor object even needs to be created
1254 * Moose::Meta::Method::Destructor
1255 Moose::Meta::Method::Constructor
1256 - added more descriptive error message to help
1257 keep people from wasting time tracking an error
1258 that is easily fixed by upgrading.
1260 0.45 Saturday, May 24, 2008
1262 - Because of work in Class::MOP 0.57, all
1263 XS based functionality is now optional
1264 and a Pure Perl version is supplied
1265 - the CLASS_MOP_NO_XS environment variable
1266 can now be used to force non-XS versions
1268 - several of the packages have been tweaked
1269 to take care of this, mostly we added
1270 support for the package_name and name
1271 variables in all the Method metaclasses
1272 - before/around/after method modifiers now
1273 support regexp matching of names
1274 (thanks to Takatoshi Kitano)
1275 - tests added for this
1276 - NOTE: this only works for classes, it
1277 is currently not supported in roles,
1278 but, ... patches welcome
1279 - All usage of Carp::confess have been replaced
1280 by Carp::croak in the "keyword" functions since
1281 the stack trace is usually not helpful
1284 - All usage of Carp::confess have been replaced
1285 by Carp::croak in the "keyword" functions since
1286 the stack trace is usually not helpful
1287 - The 'has' keyword for roles now accepts the
1288 same array ref form that Moose.pm does
1289 (has [qw/foo bar/] => (is => 'rw', ...))
1290 - added test for this
1292 * Moose::Meta::Attribute
1293 - trigger on a ro-attribute is no longer an
1294 error, as it's useful to trigger off of the
1297 * Moose::Meta::Class
1298 - added same 'add_package_symbol' fix as in
1302 - does_role now handles non-Moose classes
1304 - added tests for this
1305 - added the 'add_method_modifier' function
1306 (thanks to Takatoshi Kitano)
1308 * Moose::Util::TypeConstraints
1309 - subtypes of parameterizable types now are
1310 themselves parameterizable types
1312 * Moose::Meta::Method::Constructor
1313 - fixed bug where trigger was not being
1314 called by the inlined immutable
1316 - added test for this (thanks to Caelum)
1318 * Moose::Meta::Role::Application::ToInstance
1319 - now uses the metaclass of the instance
1320 (if possible) to create the anon-class
1321 (thanks Jonathan Rockway)
1323 * Moose::Cookbook::Recipe22
1324 - added the meta-attribute trait recipe
1328 - fixed hash-ordering test bug that was
1329 causing occasional cpantester failures
1330 - renamed the t/000_recipe/*.t tests to be
1331 more descriptive (thanks to Sartak)
1333 0.44 Sat. May 10, 2008
1335 - made make_immutable warning cluck to
1336 show where the error is (thanks mst)
1339 - BUILDALL and DEMOLISHALL now call
1340 ->body when looping through the
1341 methods, to avoid the overloaded
1343 - fixed issue where DEMOLISHALL was
1344 eating the $@ values, and so not
1345 working correctly, it still kind of
1346 eats them, but so does vanilla perl
1347 - added tests for this
1349 * Moose::Cookbook::Recipe7
1350 - added new recipe for immutable
1351 functionality (thanks Dave Rolsky)
1353 * Moose::Cookbook::Recipe9
1354 - added new recipe for builder and
1355 lazy_build (thanks Dave Rolsky)
1357 * Moose::Cookbook::Recipe11
1358 - added new recipe for method aliasing
1359 and exclusion with Roles (thanks Dave Rolsky)
1362 - fixed Win32 test failure (thanks spicyjack)
1364 ~ removed Build.PL and Module::Build compat
1365 since Module::Install has done that.
1367 0.43 Wed. April, 30, 2008
1369 drink more coffee before
1370 doing release engineering
1372 - whoops, forgot to do the smolder tests,
1373 and we broke some of the custom meta-attr
1374 modules. This fixes that.
1376 0.42 Mon. April 28, 2008
1377 - some bad tests slipped by, nothing else
1378 changed in this release (cpantesters++)
1380 - upped the Class::MOP dependency to 0.55
1381 since we have tests which need the C3
1384 0.41 Mon. April 28, 2008
1385 ~~ numerous documentation updates ~~
1387 - Changed all usage of die to Carp::croak for better
1388 error reporting (initial patch by Tod Hagan)
1390 ** IMPORTANT NOTE **
1391 - the make_immutable keyword is now deprecated, don't
1392 use it in any new code and please fix your old code
1393 as well. There will be 2 releases, and then it will
1399 - refactored the way inner and super work to avoid
1400 any method/@ISA cache penalty (nothingmuch)
1402 * Moose::Meta::Class
1403 - fixing &new_object to make sure trigger gets the
1404 coerced value (spotted by Charles Alderman on the
1406 - added test for this
1408 * Moose::Meta::Method::Constructor
1409 - immutable classes which had non-lazy attributes were calling
1410 the default generating sub twice in the constructor. (bug
1411 found by Jesse Luehrs, fixed by Dave Rolsky)
1412 - added tests for this (Dave Rolsky)
1413 - fix typo in initialize_body method (nothingmuch)
1415 * Moose::Meta::Method::Destructor
1416 - fix typo in initialize_body method (nothingmuch)
1418 * Moose::Meta::Method::Overriden
1419 Moose::Meta::Method::Augmented
1420 - moved the logic for these into their own
1421 classes (nothingmuch)
1423 * Moose::Meta::Attribute
1424 - inherited attributes may now be extended without
1425 restriction on the type ('isa', 'does') (Sartak)
1426 - added tests for this (Sartak)
1427 - when an attribute property is malformed (such as lazy without
1428 a default), give the name of the attribute in the error
1430 - added the &applied_traits and &has_applied_traits methods
1431 to allow introspection of traits
1432 - added tests for this
1433 - moved 'trait' and 'metaclass' argument handling to here from
1435 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1436 '+foo' syntax) (nothingmuch)
1437 - added tests for this (t0m)
1440 - localize $@ inside DEMOLISHALL to avoid it
1441 eating $@ (found by Ernesto)
1442 - added test for this (thanks to Ernesto)
1444 * Moose::Util::TypeConstraints
1445 - &find_type_constraint now DWIMs when given an
1446 type constraint object or name (nothingmuch)
1447 - &find_or_create_type_constraint superseded with a number of more
1449 - find_or_create_{isa,does}_type_constraint
1450 - find_or_parse_type_constraint
1452 * Moose::Meta::TypeConstraint
1453 Moose::Meta::TypeConstraint::Class
1454 Moose::Meta::TypeConstraint::Role
1455 Moose::Meta::TypeConstraint::Enum
1456 Moose::Meta::TypeConstraint::Union
1457 Moose::Meta::TypeConstraint::Parameterized
1458 - added the &equals method for comparing two type
1459 constraints (nothingmuch)
1460 - added tests for this (nothingmuch)
1462 * Moose::Meta::TypeConstraint
1463 - add the &parents method, which is just an alias to &parent.
1464 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1466 * Moose::Meta::TypeConstraint::Class
1467 - added the class attribute for introspection purposes
1469 - added tests for this
1471 * Moose::Meta::TypeConstraint::Enum
1472 Moose::Meta::TypeConstraint::Role
1473 - broke these out into their own classes (nothingmuch)
1475 * Moose::Cookbook::Recipe*
1476 - fixed references to test file locations in the POD
1477 and updated up some text for new Moose features
1481 - Added &resolve_metaclass_alias, a helper function for finding an actual
1482 class for a short name (e.g. in the traits list)
1484 0.40 Fri. March 14, 2008
1485 - I hate Pod::Coverage
1487 0.39 Fri. March 14, 2008
1489 - documenting the use of '+name' with attributes
1490 that come from recently composed roles. It makes
1491 sense, people are using it, and so why not just
1492 officially support it.
1493 - fixing the 'extends' keyword so that it will not
1494 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1497 - added the perl -Moose=+Class::Name feature to allow
1498 monkeypatching of classes in one liners
1501 - fixing the 'apply_all_roles' keyword so that it will not
1502 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1504 * Moose::Meta::Class
1505 - added ->create method which now supports roles (thanks to jrockway)
1506 - added tests for this
1507 - added ->create_anon_class which now supports roles and caching of
1508 the results (thanks to jrockway)
1509 - added tests for this
1510 - made ->does_role a little more forgiving when it is
1511 checking a Class::MOP era metaclasses.
1513 * Moose::Meta::Role::Application::ToInstance
1514 - it is now possible to pass extra params to be used when
1515 a role is applied to an the instance (rebless_params)
1516 - added tests for this
1518 * Moose::Util::TypeConstraints
1519 - class_type now accepts an optional second argument for a
1520 custom message. POD anotated accordingly (groditi)
1521 - added tests for this
1522 - it is now possible to make anon-enums by passing 'enum' an
1523 ARRAY ref instead of the $name => @values. Everything else
1525 - added tests for this
1528 - making test for using '+name' on attributes consumed
1529 from a role, it works and makes sense too.
1531 * Moose::Meta::Attribute
1532 - fix handles so that it doesn't return nothing
1533 when the method cannot be found, not sure why
1534 it ever did this originally, this means we now
1535 have slightly better support for AUTOLOADed
1537 - added more delegation tests
1538 - adding ->does method to this so as to better
1539 support traits and their introspection.
1540 - added tests for this
1543 - localizing the Data::Dumper configurations so
1544 that it does not pollute others (RT #33509)
1545 - made ->does a little more forgiving when it is
1546 passed Class::MOP era metaclasses.
1548 0.38 Fri. Feb. 15, 2008
1549 * Moose::Meta::Attribute
1550 - fixed initializer to correctly do
1551 type checking and coercion in the
1553 - added tests for this
1556 - fixed some finicky tests (thanks to konobi)
1558 0.37 Thurs. Feb. 14, 2008
1560 - fixed some details in Moose::init_meta
1561 and its superclass handling (thanks thepler)
1562 - added tests for this (thanks thepler)
1563 - 'has' now dies if you don't pass in name
1565 - added the 'make_immutable' keyword as a shortcut
1568 * Moose::Meta::Class
1569 Moose::Meta::Method::Constructor
1570 Moose::Meta::Attribute
1571 - making (init_arg => undef) work here too
1572 (thanks to nothingmuch)
1574 * Moose::Meta::Attribute
1575 Moose::Meta::Method::Constructor
1576 Moose::Meta::Method::Accessor
1577 - make lazy attributes respect attr initializers (rjbs)
1578 - added tests for this
1580 * Moose::Util::TypeConstraints
1581 Moose::Util::TypeConstraints::OptimizedConstraints
1582 Moose::Meta::TypeConstraints
1583 Moose::Meta::Attribute
1584 Moose::Meta::Method::Constructor
1585 Moose::Meta::Method::Accessor
1586 - making type errors use the
1587 assigned message (thanks to Sartak)
1588 - added tests for this
1590 * Moose::Meta::Method::Destructor
1591 - making sure DESTROY gets inlined properly
1592 with successive DEMOLISH calls (thanks to manito)
1594 * Moose::Meta::Attribute
1595 Moose::Meta::Method::Accessor
1596 - fixed handling of undef with type constraints
1598 - added tests for this
1601 - added &get_all_init_args and &get_all_attribute_values
1602 (thanks to Sartak and nothingmuch)
1604 0.36 Sat. Jan. 26, 2008
1606 Moose::Meta::Attribute
1607 - role type tests now support when roles are
1608 applied to non-Moose classes (found by ash)
1609 - added tests for this (thanks to ash)
1610 - couple extra tests to boost code coverage
1612 * Moose::Meta::Method::Constructor
1613 - improved fix for handling Class::MOP attributes
1614 - added test for this
1616 * Moose::Meta::Class
1617 - handled the add_attribute($attribute_meta_object)
1619 - added test for this
1621 0.35 Tues. Jan. 22, 2008
1622 * Moose::Meta::Method::Constructor
1623 - fix to make sure even Class::MOP attributes
1624 are handled correctly (Thanks to Dave Rolsky)
1625 - added test for this (also Dave Rolsky)
1627 * Moose::Meta::Class
1628 - improved error message on _apply_all_roles,
1629 you should now use Moose::Util::apply_all_roles
1630 and you shouldnt have been using a _ prefixed
1631 method in the first place ;)
1633 0.34 Mon. Jan. 21, 2008
1634 ~~~ more misc. doc. fixes ~~~
1635 ~~ updated copyright dates ~~
1637 Moose is now a postmodern object system :)
1638 - (see the POD for details)
1640 * <<Role System Refactoring>>
1641 - this release contains a major reworking and
1642 cleanup of the role system
1643 - 100% backwards compat.
1644 - Role application now restructured into seperate
1645 classes based on type of applicants
1646 - Role summation (combining of more than one role)
1647 is much cleaner and anon-classes are no longer
1648 used in this process
1649 - new Composite role metaclass
1650 - runtime application of roles to instances
1651 is now more efficient and re-uses generated
1652 classes when applicable
1654 * <<New Role composition features>>
1655 - methods can now be excluded from a given role
1657 - methods can now be aliased to another name (and
1658 still retain the original as well)
1660 * Moose::Util::TypeConstraints::OptimizedConstraints
1661 - added this module (see above)
1663 * Moose::Meta::Class
1664 - fixed the &_process_attribute method to be called
1665 by &add_attribute, so that the API is now correct
1667 * Moose::Meta::Method::Accessor
1668 - fixed bug when passing a list of values to
1669 an accessor would get (incorrectly) ignored.
1670 Thanks to Sartak for finding this ;)
1671 - added tests for this (Sartak again)
1673 * Moose::Meta::Method::Accessor
1674 Moose::Meta::Method::Constructor
1675 Moose::Meta::Attribute
1676 Moose::Meta::TypeConstraint
1677 Moose::Meta::TypeCoercion
1678 - lots of cleanup of such things as:
1680 - type constraint handling
1681 - error handling/messages
1682 (thanks to nothingmuch)
1684 * Moose::Meta::TypeConstraint::Parameterizable
1685 - added this module to support the refactor
1686 in Moose::Meta::TypeConstraint::Parameterized
1688 * Moose::Meta::TypeConstraint::Parameterized
1689 - refactored how these types are handled so they
1690 are more generic and not confined to ArrayRef
1694 - shortened some file names for better VMS support (RT #32381)
1696 0.33 Fri. Dec. 14, 2007
1697 !! Moose now loads 2 x faster !!
1698 !! with new Class::MOP 0.49 !!
1700 ++ new oose.pm module to make command line
1701 Moose-ness easier (see POD docs for more)
1703 * Moose::Meta::Class
1705 - several tweaks to take advantage of the
1706 new method map caching in Class::MOP
1708 * Moose::Meta::TypeConstraint::Parameterized
1709 - allow subtypes of ArrayRef and HashRef to
1710 be used as a container (sartak)
1711 - added tests for this
1712 - basic support for coercion to ArrayRef and
1713 HashRef for containers (sartak)
1714 - added tests for this
1716 * Moose::Meta::TypeCoercion
1717 - coercions will now create subtypes as needed
1718 so you can now add coercions to parameterized
1719 types without having to explictly define them
1720 - added tests for this
1722 * Moose::Meta::Method::Accessor
1723 - allow subclasses to decide whether we need
1724 to copy the value into a new variable (sartak)
1726 0.32 Tues. Dec. 4, 2007
1727 * Moose::Util::TypeConstraints
1728 - fixing how subtype aliases of unions work
1729 they should inherit the parent's coercion
1730 - added tests for this
1731 - you can now define multiple coercions on
1732 a single type at different times instead of
1733 having to do it all in one place
1734 - added tests for this
1736 * Moose::Meta::TypeConstraint
1737 - there is now a default constraint of sub { 1 }
1738 instead of Moose::Util::TypeConstraints setting
1741 * Moose::Meta::TypeCoercion
1742 * Moose::Meta::TypeCoercion::Union
1743 - added the &has_coercion_for_type and
1744 &add_type_coercions methods to support the
1745 new features above (although you cannot add
1746 more type coercions for Union types)
1748 0.31 Mon. Nov. 26, 2007
1749 * Moose::Meta::Attribute
1750 - made the +attr syntax handle extending types with
1751 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1752 now works if the original foo is an ArrayRef.
1753 - added tests for this.
1754 - delegation now works even if the attribute does not
1755 have a reader method using the get_read_method_ref
1756 method from Class::MOP::Attribute.
1757 - added tests for this
1758 - added docs for this
1760 * Moose::Util::TypeConstraints
1761 - passing no "additional attribute info" to
1762 &find_or_create_type_constraint will no longer
1763 attempt to create an __ANON__ type for you,
1764 instead it will just return undef.
1765 - added docs for this
1767 0.30 Fri. Nov. 23, 2007
1768 * Moose::Meta::Method::Constructor
1769 -builder related bug in inlined constructor. (groditi)
1771 * Moose::Meta::Method::Accessor
1772 - genereate unnecessary calls to predicates and refactor
1773 code generation for runtime speed (groditi)
1775 * Moose::Util::TypeConstraints
1776 - fix ClassName constraint to introspect symbol table (mst)
1777 - added more tests for this (mst)
1778 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1779 with work correctly.
1780 - added tests for this
1783 - adding the link to Recipie 11 (written by Sartak)
1784 - adding test for SYNOPSIS code
1787 - New tests for builder bug. Upon instantiation, if an
1788 attribute had a builder, no value and was not lazy the
1789 builder default was not getting run, oops. (groditi)
1791 0.29 Tues. Nov. 13, 2007
1792 * Moose::Meta::Attribute
1793 - Fix error message on missing builder method (groditi)
1795 * Moose::Meta::Method::Accessor
1796 - Fix error message on missing builder method (groditi)
1799 - Add test to check for the correct error message when
1800 builder method is missing (groditi)
1802 0.28 Tues. Nov. 13, 2007
1803 - 0.27 packaged incorrectly (groditi)
1805 0.27 Tues. Nov. 13, 2007
1806 * Moose::Meta::Attribute
1807 - Added support for the new builder option (groditi)
1808 - Added support for lazy_build option (groditi)
1809 - Changed slot initialization for predicate changes (groditi)
1811 * Moose::Meta::Method::Accessor
1812 - Added support for lazy_build option (groditi)
1813 - Fix inline methods to work with corrected predicate
1816 * Moose::Meta::Method::Constructor
1817 - Added support for lazy_build option (groditi)
1820 - tests for builder and lazy_build (groditi)
1822 * fixing some misc. bits in the docs that
1823 got mentioned on CPAN Forum & perlmonks
1826 - fixed how required methods are handled
1827 when they encounter overriden or modified
1828 methods from a class (thanks to confound).
1829 - added tests for this
1831 * Moose::Util::TypeConstraint
1832 - fixed the type notation parser so that
1833 the | always creates a union and so is
1834 no longer a valid type char (thanks to
1835 konobi, mugwump and #moose for working
1837 - added more tests for this
1839 0.26 Thurs. Sept. 27, 2007
1842 * Parameterized Types
1843 We now support parameterized collection types, such as:
1844 ArrayRef[Int] # array or integers
1845 HashRef[Object] # a hash with object values
1846 They can also be nested:
1847 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1848 And work with the type unions as well:
1849 ArrayRef[Int | Str] # array of integers of strings
1851 * Better Framework Extendability
1852 Moose.pm is now "extendable" such that it is now much
1853 easier to extend the framework and add your own keywords
1854 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1855 section of the Moose.pm docs.
1858 In an effort to begin documenting some of the various
1859 details of Moose as well as some common idioms, we have
1860 created Moose::Cookbook::Snacks as a place to find
1861 small (easily digestable) nuggets of Moose code.
1864 ~ Several doc updates/cleanup thanks to castaway ~
1866 - converted build system to use Module::Install instead of
1867 Module::Build (thanks to jrockway)
1870 - added all the meta classes to the immutable list and
1871 set it to inline the accessors
1872 - fix import to allow Sub::Exporter like { into => }
1873 and { into_level => } (perigrin)
1874 - exposed and documented init_meta() to allow better
1875 embedding and extending of Moose (perigrin)
1878 - complete re-organization of the test suite
1879 - added some new tests as well
1880 - finally re-enabled the Moose::POOP test since
1881 the new version of DBM::Deep now works again
1884 * Moose::Meta::Class
1885 - fixed very odd and very nasty recursion bug with
1887 - added tests for this (eilara)
1889 * Moose::Meta::Attribute
1890 Moose::Meta::Method::Constructor
1891 Moose::Meta::Method::Accessor
1892 - fixed issue with overload::Overloaded getting called
1893 on non-blessed items. (RT #29269)
1894 - added tests for this
1896 * Moose::Meta::Method::Accessor
1897 - fixed issue with generated accessor code making
1898 assumptions about hash based classes (thanks to dexter)
1900 * Moose::Coookbook::Snacks
1901 - these are bits of documentation, not quite as big as
1902 Recipes but which have no clear place in the module docs.
1903 So they are Snacks! (horray for castaway++)
1905 * Moose::Cookbook::Recipe4
1906 - updated it to use the new ArrayRef[MyType] construct
1907 - updated the accompanying test as well
1909 +++ Major Refactor of the Type Constraint system +++
1910 +++ with new features added as well +++
1912 * Moose::Util::TypeConstraint
1913 - no longer uses package variable to keep track of
1914 the type constraints, now uses the an instance of
1915 Moose::Meta::TypeConstraint::Registry to do it
1916 - added more sophisticated type notation parsing
1918 - added tests for this
1920 * Moose::Meta::TypeConstraint
1921 - some minor adjustments to make subclassing easier
1922 - added the package_defined_in attribute so that we
1923 can track where the type constraints are created
1925 * Moose::Meta::TypeConstraint::Union
1926 - this is now been refactored to be a subclass of
1927 Moose::Meta::TypeConstraint
1929 * Moose::Meta::TypeCoercion::Union
1930 - this has been added to service the newly refactored
1931 Moose::Meta::TypeConstraint::Union and is itself
1932 a subclass of Moose::Meta::TypeCoercion
1934 * Moose::Meta::TypeConstraint::Parameterized
1935 - added this module (taken from MooseX::AttributeHelpers)
1936 to help construct nested collection types
1937 - added tests for this
1939 * Moose::Meta::TypeConstraint::Registry
1940 - added this class to keep track of type constraints
1942 0.25 Mon. Aug. 13, 2007
1944 - Documentation update to reference Moose::Util::TypeConstraints
1945 under 'isa' in 'has' for how to define a new type
1946 (thanks to shlomif).
1948 * Moose::Meta::Attribute
1949 - required attributes now will no longer accept undef
1950 from the constructor, even if there is a default and lazy
1951 - added tests for this
1952 - default subroutines must return a value which passes the
1954 - added tests for this
1956 * Moose::Meta::Attribute
1957 * Moose::Meta::Method::Constructor
1958 * Moose::Meta::Method::Accessor
1959 - type-constraint tests now handle overloaded objects correctly
1960 in the error message
1961 - added tests for this (thanks to EvanCarroll)
1963 * Moose::Meta::TypeConstraint::Union
1964 - added (has_)hand_optimized_constraint to this class so that
1965 it behaves as the regular Moose::Meta::TypeConstraint does.
1968 - large refactoring of this code
1969 - added several more tests
1970 - tests for subtle conflict resolition issues
1971 added, but not currently running
1974 * Moose::Cookbook::Recipe7
1975 - added new recipe for augment/inner functionality
1977 - added test for this
1980 - a formal definition of roles (still in progress)
1983 - utilities for easier working with Moose classes
1984 - added tests for these
1987 - This contains Moose specific test functions
1988 - added tests for these
1990 0.24 Tues. July 3, 2007
1991 ~ Some doc updates/cleanup ~
1993 * Moose::Meta::Attribute
1994 - added support for roles to be given as parameters
1995 to the 'handles' option.
1996 - added tests and docs for this
1997 - the has '+foo' attribute form now accepts changes to
1998 the lazy option, and the addition of a handles option
1999 (but not changing the handles option)
2000 - added tests and docs for this
2003 - required methods are now fetched using find_method_by_name
2004 so that required methods can come from superclasses
2005 - adjusted tests for this
2007 0.23 Mon. June 18, 2007
2008 * Moose::Meta::Method::Constructor
2009 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2010 * Moose::Meta::Class
2011 - Modify make_immutable to work with the new Class::MOP immutable
2012 mechanism + POD + very basic test (groditi)
2013 * Moose::Meta::Attribute
2014 - Fix handles to use goto() so that caller() comes out properly on
2015 the other side (perigrin)
2017 0.22 Thurs. May 31, 2007
2018 * Moose::Util::TypeConstraints
2019 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2020 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2021 prototypes for functions
2022 - added the ClassName type constraint, this checks for strings
2023 which will respond true to ->isa(UNIVERSAL).
2024 - added tests and docs for this
2025 - subtyping just in name now works correctly by making the
2026 default for where be { 1 }
2027 - added test for this
2029 * Moose::Meta::Method::Accessor
2030 - coerce and lazy now work together correctly, thanks to
2031 merlyn for finding this bug
2032 - tests added for this
2033 - fix reader presedence bug in Moose::Meta::Attribute + tests
2036 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2037 a HASH-ref and missed. This produces better error messages then
2038 having it die cause undef is not a HASH.
2039 - added tests for this
2041 0.21 Thursday, May 2nd, 2007
2043 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2044 - modified unimport to remove super and inner along with the rest
2045 - altered unimport tests to handle this
2048 - altered super export to populate SUPER_SLOT
2050 * Moose::Meta::Class
2051 - altered augment and override modifier application to use *_SLOT
2052 - modified tests for these to unimport one test class each to test
2055 - fixed issue where custom attribute metaclasses
2056 where not handled correctly in roles
2057 - added tests for this
2059 * Moose::Meta::Class
2060 - fixed issue where extending metaclasses with
2061 roles would blow up. Thanks to Aankhen`` for
2062 finding this insidious error, and it's solution.
2064 ~~ lots of spelling and grammer fixes in the docs,
2065 many many thanks to rlb3 and Aankhen for these :)
2067 0.20 Friday, April 6th, 2007
2068 >> I messed up the SKIP logic in one test
2069 so this release is just to fix that.
2072 - 'has' now also accepts an ARRAY ref
2073 to create multiple attrs (see docs)
2074 (thanks to konobi for this)
2075 - added tests and docs
2077 0.19 Thurs. April 5th, 2007
2078 ~~ More documentation updates ~~
2080 * Moose::Util::TypeConstraints
2081 - 'type' now supports messages as well
2082 thanks to phaylon for finding this
2083 - added tests for this
2084 - added &list_all_type_constraints and
2085 &list_all_builtin_type_constraints
2086 functions to facilitate introspection.
2088 * Moose::Meta::Attribute
2089 - fixed regexp 'handles' declarations
2090 to build the list of delegated methods
2091 correctly (and not override important
2092 things like &new) thanks to ashleyb
2094 - added tests and docs for this
2095 - added the 'documentation' attributes
2096 so that you can actually document your
2097 attributes and inspect them through the
2099 - added tests and docs for this
2101 * Moose::Meta::Class
2102 - when loading custom attribute metaclasses
2103 it will first look in for the class in the
2104 Moose::Meta::Attribute::Custom::$name, and
2105 then default to just loading $name.
2106 - added tests and docs for this
2108 * Moose::Meta::TypeConstraint
2109 - type constraints now stringify to their names.
2110 - added test for this
2113 - added tests to assure we work with Module::Refresh
2114 - added stricter test skip logic in the Moose POOP
2115 test, ask Rob Kinyon why.
2116 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2118 0.18 Sat. March 10, 2007
2119 ~~ Many, many documentation updates ~~
2122 - We now use Class::MOP::load_class to
2124 - added tests to show types and subtypes
2125 working with Declare::Constraints::Simple
2126 and Test::Deep as constraint engines.
2129 !! You must have Class::MOP 0.37_001 !!
2130 !! for this developer release to work !!
2132 This release was primarily adding the immutable
2133 feature to Moose. An immutable class is one which
2134 you promise not to alter. When you set the class
2135 as immutable it will perform various bits of
2136 memoization and inline certain part of the code
2137 (constructors, destructors and accessors). This
2138 minimizes (and in some cases totally eliminates)
2139 one of Moose's biggest performance hits. This
2140 feature is not on by default, and is 100% optional.
2141 It has several configurable bits as well, so you
2142 can pick and choose to your specific needs.
2144 The changes involved in this were fairly wide and
2145 highly specific, but 100% backwards compatible, so
2146 I am not going to enumerate them here. If you are
2147 truely interested in what was changed, please do
2150 0.17 Tues. Nov. 14, 2006
2151 * Moose::Meta::Method::Accessor
2152 - bugfix for read-only accessors which
2153 are have a type constraint and lazy.
2154 Thanks to chansen for finding it.
2156 0.16 Tues. Nov. 14, 2006
2158 There are some speed improvements in this release,
2159 but they are only the begining, so stay tuned.
2162 - BUILDALL and DEMOLISHALL no longer get
2163 called unless they actually need to be.
2164 This gave us a signifigant speed boost
2165 for the cases when there is no BUILD or
2166 DEMOLISH method present.
2168 * Moose::Util::TypeConstraints
2169 * Moose::Meta::TypeConstraint
2170 - added an 'optimize_as' option to the
2171 type constraint, which allows for a
2172 hand optimized version of the type
2173 constraint to be used when possible.
2174 - Any internally created type constraints
2175 now provide an optimized version as well.
2177 0.15 Sun. Nov. 5, 2006
2179 This version of Moose *must* have Class::MOP 0.36 in order
2180 to work correctly. A number of small internal tweaks have
2181 been made in order to be compatible with that release.
2183 * Moose::Util::TypeConstraints
2184 - added &unimport so that you can clean out
2185 your class namespace of these exported
2188 * Moose::Meta::Class
2189 - fixed minor issue which occasionally
2190 comes up during global destruction
2192 - moved Moose::Meta::Method::Overriden into
2196 - moved Moose::Meta::Role::Method into
2199 * Moose::Meta::Attribute
2200 - changed how we do type checks so that
2201 we reduce the overall cost, but still
2204 - moved accessor generation methods to
2205 Moose::Meta::Method::Accessor to
2206 conform to the API changes from
2209 * Moose::Meta::TypeConstraint
2210 - changed how constraints are compiled
2211 so that we do less recursion and more
2212 iteration. This makes the type check
2214 - moved Moose::Meta::TypeConstraint::Union
2217 * Moose::Meta::Method::Accessor
2218 - created this from methods formerly found in
2219 Moose::Meta::Attribute
2221 * Moose::Meta::Role::Method
2222 - moved this from Moose::Meta::Role
2224 * Moose::Meta::Method::Overriden
2225 - moved this from Moose::Meta::Class
2227 * Moose::Meta::TypeConstraint::Union
2228 - moved this from Moose::Meta::TypeConstraint
2230 0.14 Mon. Oct. 9, 2006
2232 * Moose::Meta::Attribute
2233 - fixed lazy attributes which were not getting
2234 checked with the type constraint (thanks ashley)
2235 - added tests for this
2236 - removed the over-enthusiastic DWIMery of the
2237 automatic ArrayRef and HashRef defaults, it
2238 broke predicates in an ugly way.
2239 - removed tests for this
2241 0.13 Sat. Sept. 30, 2006
2243 This version of Moose *must* have Class::MOP 0.35 in order
2244 to work correctly. A number of small internal tweaks have
2245 been made in order to be compatible with that release.
2248 - Removed the use of UNIVERSAL::require to be a better
2249 symbol table citizen and remove a dependency
2250 (thanks Adam Kennedy)
2252 **~~ removed experimental & undocumented feature ~~**
2253 - commented out the 'method' and 'self' keywords, see the
2254 comments for more info.
2257 - added a FAQ and WTF files to document frequently
2258 asked questions and common problems
2260 * Moose::Util::TypeConstraints
2261 - added GlobRef and FileHandle type constraint
2262 - added tests for this
2264 * Moose::Meta::Attribute
2265 - if your attribute 'isa' ArrayRef of HashRef, and you have
2266 not explicitly set a default, then make the default DWIM.
2267 This will also work for subtypes of ArrayRef and HashRef
2269 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2270 - new test added for this (thanks to ashley)
2273 - added basic support for runtime role composition
2274 but this is still *highly experimental*, so feedback
2275 is much appreciated :)
2276 - added tests for this
2278 * Moose::Meta::TypeConstraint
2279 - the type constraint now handles the coercion process
2280 through delegation, this is to support the coercion
2283 * Moose::Meta::TypeConstraint::Union
2284 - it is now possible for coercions to be performed
2286 - added tests for this (thanks to konobi)
2288 * Moose::Meta::TypeCoercion
2289 - properly capturing error when type constraint
2293 - Scalar::Util 1.18 is bad on Win32, so temporarily
2294 only require version 1.17 for Win32 and cygwin.
2295 (thanks Adam Kennedy)
2297 0.12 Sat. Sept. 1, 2006
2299 - Recipe5 (subtypes & coercion) has been written
2302 - fixed "bad meta" error message to be more descriptive
2303 - fixed &unimport to not remove the &inner and &super
2304 keywords because we need to localize them.
2305 - fixed number of spelling/grammer issues, thanks Theory :)
2307 **~~ experimental & undocumented feature ~~**
2308 - added the method and self keywords, they are basically
2309 just sugar, and they may not stay around.
2312 - added &dump method to easily Data::Dumper
2315 * Moose::Meta::TypeConstraint
2316 - added the &is_a_type_of method to check both the current
2317 and the subtype of a method (similar to &isa with classes)
2320 - this is now a subclass of Class::MOP::Module, and no longer
2321 creates the _role_meta ugliness of before.
2322 - fixed tests to reflect this change
2324 0.11 Wed. July 12, 2006
2326 - added an &unimport method to remove all the keywords
2327 that Moose will import, simply add 'no Moose' to the
2328 bottom of your class file.
2331 - fixed some test failures caused by a forgotten test
2334 0.10 Thurs. July 6, 2006
2336 - improved error message when loading modules so
2337 it is less confusing when you load a role.
2338 - added &calculate_all_roles method to
2339 Moose::Meta::Class and Moose::Meta::Role
2342 This module has been tested against Class::MOP 0.30
2343 but it does not yet utilize the optimizations
2344 it makes available. Stay tuned for that ;)
2346 0.09_03 Fri. June 23, 2006
2347 ++ DEVELOPER RELEASE ++
2349 - 'use strict' and 'use warnings' are no longer
2350 needed in Moose classes, Moose itself will
2351 turn them on for you.
2352 - added tests for this
2353 - moved code from exported subs to private methods
2354 in Moose::Meta::Class
2357 - as with Moose, strict and warnings are
2358 automatically turned on for you.
2359 - added tests for this
2362 - now handles an edge case for override errors
2363 - added tests for this
2364 - added some more edge case tests
2366 0.09_02 Tues. May 16, 2006
2367 ++ DEVELOPER RELEASE ++
2369 - added prototypes to the exported subs
2373 - added prototypes to the exported subs
2376 * Moose::Util::TypeConstraints
2377 - cleaned up prototypes for the subs
2380 0.09_01 Fri. May 12, 2006
2381 ++ DEVELOPER RELEASE ++
2382 - This release works in combination with
2383 Class::MOP 0.29_01, it is a developer
2384 release because it uses the a new
2385 instance sub-protocol and a fairly
2386 complete Role implementation. It has
2387 not yet been optimized, so it slower
2388 the the previous CPAN version. This
2389 release also lacks good updated docs,
2390 the official release will have updated docs.
2393 - refactored the keyword exports
2394 - 'with' now checks Role validaity and
2395 accepts more than one Role at a time
2396 - 'extends' makes metaclass adjustments as
2397 needed to ensure metaclass compatibility
2400 - refactored the keyword exports
2401 - 'with' now checks Role validaity and
2402 accepts more than one Role at a time
2404 * Moose::Util::TypeConstraints
2405 - added the 'enum' keyword for simple
2406 string enumerations which can be used as
2408 - see example of usage in t/202_example.t
2411 - more careful checking of params to new()
2414 - much work done on the role composition
2415 - many new tests for conflict detection
2416 and composition edge cases
2417 - not enough documentation, I suggest
2418 looking at the tests
2420 * Moose::Meta::Instance
2421 - added new Instance metaclass to support
2422 the new Class::MOP instance protocol
2424 * Moose::Meta::Class
2425 - some small changes to support the new
2427 - some small additions to support Roles
2429 * Moose::Meta::Attribute
2430 - some improvements to the accessor generation code
2432 - some small changes to support the new
2434 - (still somewhat) experimental delegation support
2435 with the 'handles' option
2436 - added several tests for this
2437 - no docs for this yet
2439 0.05 Thurs. April 27, 2006
2441 - keywords are now exported with Sub::Exporter
2442 thanks to chansen for this commit
2443 - has keyword now takes a 'metaclass' option
2444 to support custom attribute meta-classes
2445 on a per-attribute basis
2446 - added tests for this
2447 - the 'has' keyword not accepts inherited slot
2448 specifications (has '+foo'). This is still an
2449 experimental feature and probably not finished
2450 see t/038_attribute_inherited_slot_specs.t for
2451 more details, or ask about it on #moose
2452 - added tests for this
2455 - keywords are now exported with Sub::Exporter
2457 * Moose::Utils::TypeConstraints
2458 - reorganized the type constraint hierarchy, thanks
2459 to nothingmuch and chansen for his help and advice
2461 - added some tests for this
2462 - keywords are now exported with Sub::Exporter
2463 thanks to chansen for this commit
2465 * Moose::Meta::Class
2466 - due to changes in Class::MOP, we had to change
2467 construct_instance (for the better)
2469 * Moose::Meta::Attribute
2470 - due to changes in Class::MOP, we had to add the
2471 initialize_instance_slot method (it's a good thing)
2473 * Moose::Meta::TypeConstraint
2474 - added type constraint unions
2475 - added tests for this
2476 - added the is_subtype_of predicate method
2477 - added tests for this
2479 0.04 Sun. April 16th, 2006
2481 - Roles can now consume other roles
2482 - added tests for this
2483 - Roles can specify required methods now with
2484 the requires() keyword
2485 - added tests for this
2488 - ripped out much of it's guts ,.. much cleaner now
2489 - added required methods and correct handling of
2490 them in apply() for both classes and roles
2491 - added tests for this
2492 - no longer adds a does() method to consuming classes
2493 it relys on the one in Moose::Object
2494 - added roles attribute and some methods to support
2495 roles consuming roles
2497 * Moose::Meta::Attribute
2498 - added support for triggers on attributes
2499 - added tests for this
2500 - added support for does option on an attribute
2501 - added tests for this
2503 * Moose::Meta::Class
2504 - added support for attribute triggers in the
2506 - added tests for this
2509 - Moose no longer creates a subtype for your class
2510 if a subtype of the same name already exists, this
2511 should DWIM in 99.9999% of all cases
2513 * Moose::Util::TypeConstraints
2514 - fixed bug where incorrect subtype conflicts were
2516 - added test for this
2519 - this class can now be extended with 'use base' if
2520 you need it, it properly loads the metaclass class now
2521 - added test for this
2523 0.03_02 Wed. April 12, 2006
2525 - you must now explictly use Moose::Util::TypeConstraints
2526 it no longer gets exported for you automatically
2529 - new() now accepts hash-refs as well as key/value lists
2530 - added does() method to check for Roles
2531 - added tests for this
2533 * Moose::Meta::Class
2534 - added roles attribute along with the add_role() and
2536 - added tests for this
2539 - now adds a does() method to consuming classes
2540 which tests the class's hierarchy for roles
2541 - added tests for this
2543 0.03_01 Mon. April 10, 2006
2545 - added new Role recipe (no content yet, only code)
2548 - added 'with' keyword for Role support
2549 - added test and docs for this
2550 - fixed subtype quoting bug
2551 - added test for this
2555 - added test and docs
2557 * Moose::Util::TypeConstraints
2558 - added the message keyword to add custom
2559 error messages to type constraints
2562 - the meta role to support Moose::Role
2563 - added tests and docs
2565 * Moose::Meta::Class
2566 - moved a number of things from Moose.pm
2567 to here, they should have been here
2570 * Moose::Meta::Attribute
2571 - moved the attribute option macros here
2572 instead of putting them in Moose.pm
2574 * Moose::Meta::TypeConstraint
2575 - added the message attributes and the
2577 - added tests and docs for this
2579 0.03 Thurs. March 30, 2006
2581 - added the Moose::Cookbook with 5 recipes,
2582 describing all the stuff Moose can do.
2585 - fixed an issue with &extends super class loading
2586 it now captures errors and deals with inline
2587 packages correctly (bug found by mst, solution
2589 - added super/override & inner/augment features
2590 - added tests and docs for these
2593 - BUILDALL now takes a reference of the %params
2594 that are passed to &new, and passes that to
2597 * Moose::Util::TypeConstraints
2598 - Type constraints now survive runtime reloading
2599 - added test for this
2601 * Moose::Meta::Class
2602 - fixed the way attribute defaults are handled
2603 during instance construction (bug found by chansen)
2605 * Moose::Meta::Attribute
2606 - read-only attributes now actually enforce their
2607 read-only-ness (this corrected in Class::MOP as
2610 0.02 Tues. March 21, 2006
2612 - many more tests, fixing some bugs and
2614 - &extends now loads the base module with
2616 - added UNIVERSAL::require to the
2619 - each new Moose class will also create
2620 and register a subtype of Object which
2621 correspond to the new Moose class.
2622 - the 'isa' option in &has now only
2623 accepts strings, and will DWIM in
2626 * Moose::Util::TypeConstraints
2627 - added type coercion features
2628 - added tests for this
2629 - added support for this in attributes
2630 and instance construction
2632 - type construction no longer creates a
2633 function, it registers the type instead.
2634 - added several functions to get the
2638 - BUILDALL and DEMOLISHALL were broken
2639 because of a mis-named hash key, Whoops :)
2641 * Moose::Meta::Attribute
2642 - adding support for coercion in the
2643 autogenerated accessors
2645 * Moose::Meta::Class
2646 - adding support for coercion in the
2647 instance construction
2649 * Moose::Meta::TypeConstraint
2650 * Moose::Meta::TypeCoercion
2651 - type constraints and coercions are now
2652 full fledges meta-objects
2654 0.01 Wed. March 15, 2006
2655 - Moooooooooooooooooose!!!