1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Attribute
6 - Added the currying syntax for delegation from AttributeHelpers
7 to the existing delegation API. (hdp)
9 * Moose::AttributeHelpers
10 - Moved in from MooseX with API tweaks. See Moose::Manual::Delta for
11 details. (hdp, jhannah, rbuels)
14 * Moose::Meta::Method::Delegation
15 - Once again allow class names as well as objects for
16 delegation. This was changed in 0.86.
19 * Moose::Meta::Class::Immutable::Trait
20 - Fixes to work with the latest Class::MOP.
22 * Moose::Meta::Method::Delegation
23 - Delegation now dies with a more useful error message if the
24 attribute's accessor returns something defined but
27 0.85 Fri, Jun 26, 2009
28 * Moose::Meta::Attribute
29 - The warning for 'no associated methods' is now split out into
30 the _check_associated_methods method, so that extensions can
31 safely call 'after install_accessors => ...'. This fixes a
32 warning from MooseX::AttributeHelpers. (hdp)
34 0.84 Fri, Jun 26, 2009
36 - has now sets definition_context for attributes defined in
39 * Moose::Meta::Attribute
40 - When adding an attribute to a metaclass, if the attribute has
41 no associated methods, it will give a deprecation
43 - Methods generated by delegation were not being added to
44 associated_methods. (hdp)
45 - Attribute accessors (reader, writer, accessor, predicate,
46 clearer) now warn if they overwrite an existing method. (doy)
47 - Attribute constructors now warn very noisily about unknown (or
50 * Moose::Util::TypeConstraints
51 - Deprecated the totally useless Role type name, which just
52 checked if $object->can('does'). Note that this is _not_ the
53 same as a type created by calling role_type('RoleName').
55 * Moose::Util::TypeConstraints
56 * Moose::Meta::TypeConstraint::DuckType
57 - Reify duck type from a regular subtype into an actual class
59 - Document this because Sartak did all my work for me
62 * Moose::Meta::Attribute
63 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
64 it is just a list of methods (Sartak)
67 - The get_*_method_modifiers methods would die if the role had
68 no modifiers of the given type (Robert Buels).
70 0.83 Tue, Jun 23, 2009
72 - Fix _construct_instance not setting the special __MOP__ object
73 key in instances of anon classes. (doy)
75 0.82 Sun, Jun 21, 2009
76 * Moose::Manual::Types
77 - Mention MooseX::Types early to avoid users falling down the
78 string parsing rathole (mst)
80 * Moose::Manual::MooseX
81 - Add warnings about class-level extensions and mention considering
82 using plain objects instead
85 * Bumped our Class::MOP prereq to the latest version (0.85), since
90 - Add FAQ about the coercion change from 0.76 because it came up
91 three times today (perigrin)
92 - Win doy $10 dollars because Sartak didn't think anybody
93 would document this fast enough (perigrin)
95 * Moose::Meta::Method::Destructor
96 - Inline a DESTROY method even if there are no DEMOLISH methods
97 to prevent unnecessary introspection in
98 Moose::Object::DEMOLISHALL
101 - A role's required methods are now represented by
102 Moose::Meta::Role::Method::Required objects. Conflicts are now
103 represented by Moose::Meta::Role::Method::Conflicting
104 objects. The benefit for end-users in that unresolved
105 conflicts generate different, more instructive, errors,
106 resolving Ovid's #44895. (Sartak)
109 - Improve the error message of "extends" as suggested by Adam
110 Kennedy and confound (Sartak)
111 - Link to Moose::Manual::Roles from Moose::Role as we now have
112 excellent documentation (Adam Kennedy)
115 - Update test suite for subname change in Class::MOP
117 - Add TODO test for infinite recursion in Moose::Meta::Class
120 0.79 Wed, May 13, 2009
122 - More fixes for Win32 problems. Reported by Robert Krimen.
125 - The DEMOLISHALL method could still blow up in some cases
126 during global destruction. This method has been made more
127 resilient in the face of global destruction's random garbage
131 - If you "also" a module that isn't loaded, the error message
132 now acknowledges that (Sartak)
135 - When your ->meta method does not return a Moose::Meta::Class,
136 the error message gave the wrong output (Sartak)
138 0.78 Tue, May 12, 2009
139 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
140 - Merged these documents into what is now Moose::Manual::FAQ
143 - Moved to Moose::Manual::Unsweetened
145 * Moose::Cookbook::Basics::Recipes 9-12
146 - Renamed to be 8-11, since recipe 8 did not exist
149 - Make Moose::Exporter import strict and warnings into packages
153 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
154 methods during global destruction (doy)
157 * Moose::Meta::Role::Application::ToClass
158 - Track the Role::Application objects created during class-role
162 - Fix metaclass incompatibility errors when extending a vanilla perl
163 class which isa Moose class with a metaclass role applied (t0m)
166 - Add a role-combination hook, _role_for_combination, for the
167 benefit of MooseX::Role::Parameterized (Sartak)
170 - Some tests were failing on Win32 because they explicit checked
171 warning output for newlines. Reported by Nickolay Platonov.
173 0.77 Sat, May 2, 2009
175 - Add explicit use of Devel::GlobalDestruction and Sub::Name
179 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
180 or not we are currently in global destruction (doy)
181 - Add explicit use of Devel::GlobalDestruction and Sub::Name
184 * Moose::Cookbook::FAQ
185 - Reworked much of the existing content to be more useful to
186 modern Moose hackers (Sartak)
189 - Depend on Class::MOP 0.83 instead of 0.82_01.
191 0.76 Mon, April 27, 2009
192 * Moose::Meta::TypeConstraint
193 - Do not run coercions in coerce() if the value already passes the type
196 * Moose::Meta::TypeConstraint::Class
197 - In validation error messages, specifically say that the value is not
198 an instance of the class. This should alleviate some frustrating
199 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
201 * Moose::Meta::Role::Application::ToClass
202 - Revert the class-overrides-role warning in favor of a solution outside
203 of the Moose core (Sartak)
206 - Make Test::Output optional again, since it's only used in a few files
209 0.75_01 Thu, April 23, 2009
210 * Moose::Meta::Role::Application::ToClass
211 - Moose now warns about each class overriding methods from roles it
215 - Warnings tests have standardized on Test::Output which is now an
216 unconditionally dependency (Sartak)
219 - Changes to immutabilization to work with Class::MOP 0.82_01+.
221 0.75 Mon, April 20, 2009
224 - Move validation of not inheriting from roles from Moose::extends to
225 Moose::Meta::Class::superclasses (doy)
228 - add ensure_all_roles() function to encapsulate the common "apply this
229 role unless the object already does it" pattern (hdp)
232 - Users can now select a different metaclass with the "-metaclass"
233 option to import, for classes and roles (Sartak)
236 - Make method_metaclass an attr so that it can accept a metarole
239 0.74 Tue, April 7, 2009
241 * Moose::Meta::Method::Destructor
242 - Include stack traces in the deprecation warnings.
246 - Removed the long-deprecated _apply_all_roles method.
248 * Moose::Meta::TypeConstraint
249 - Removed the long-deprecated union method.
252 0.73_02 Mon, April 6, 2009
253 * More deprecations and renamings
254 - Moose::Meta::Method::Constructor
255 - initialize_body => _initialize_body (this is always called
256 when an object is constructed)
259 - The DEMOLISHALL method could throw an exception during global
260 destruction, meaning that your class's DEMOLISH methods would
261 not be properly called. Reported by t0m.
263 * Moose::Meta::Method::Destructor
264 - Destructor inlining was totally broken by the change to the
265 is_needed method in 0.72_01. Now there is a test for this
266 feature, and it works again.
269 - Bold the word 'not' in the POD for find_meta (t0m)
271 0.73_01 Sun, April 5, 2009
273 - Call user_class->meta in fewer places, with the eventual goal
274 of allowing the user to rename or exclude ->meta
275 altogether. Instead uses Class::MOP::class_of. (Sartak)
277 * Moose::Meta::Method::Accessor
278 - If an attribute had a lazy default, and that value did not
279 pass the attribute's type constraint, it did not get the
280 message from the type constraint, instead using a generic
281 message. Test provided by perigrin.
283 * Moose::Util::TypeConstraints
284 - Add duck_type keyword. It's sugar over making sure an object
285 can() a list of methods. This is easier than jrockway's
286 suggestion to fork all of CPAN. (perigrin)
287 - add tests and documentation (perigrin)
290 - Document the fact that init_meta() returns the target class's
291 metaclass object. (hdp)
293 * Moose::Cookbook::Extending::Recipe1
294 * Moose::Cookbook::Extending::Recipe2
295 * Moose::Cookbook::Extending::Recipe3
296 * Moose::Cookbook::Extending::Recipe4
297 - Make init_meta() examples explicitly return the metaclass and
298 point out this fact. (hdp)
300 * Moose::Cookbook::Basics::Recipe12
301 - A new recipe, creating a custom meta-method class.
303 * Moose::Cookbook::Meta::Recipe6
304 - A new recipe, creating a custom meta-method class.
307 * Moose::Meta::Method::Constructor
308 - Attribute triggers no longer receive the meta-attribute object
309 as an argument in any circumstance. Previously, triggers
310 called during instance construction were passed the
311 meta-attribute, but triggers called by normal accessors were
312 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
314 * Moose::Manual::Attributes
315 - Remove references to triggers receving the meta-attribute object as an
318 * Moose::Cookbook::FAQ
319 - Remove recommendation for deprecated Moose::Policy and
320 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
323 * Many methods have been renamed with a leading underscore, and a
324 few have been deprecated entirely. The methods with a leading
325 underscore are consider "internals only". People writing
326 subclasses or extensions to Moose should feel free to override
327 them, but they are not for "public" use.
330 - check_metaclass_compatibility => _check_metaclass_compatibility
332 - Moose::Meta::Method::Accessor
333 - initialize_body => _initialize_body (this is always called
334 when an object is constructed)
335 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
337 - Moose::Meta::Method::Constructor
338 - initialize_body => _initialize_body (this is always called
339 when an object is constructed)
340 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
341 - attributes => _attributes (now inherited from parent)
342 - meta_instance => _meta_instance (now inherited from parent)
345 - alias_method is deprecated. Use add_method
347 0.73 Fri, March 29, 2009
348 * No changes from 0.72_01.
350 0.72_01 Thu, March 26, 2009
352 - Almost every module has complete API documentation. A few
353 methods (and even whole classes) have been intentionally
354 excluded pending some rethinking of their APIs.
356 * Moose::Util::TypeConstraints
357 - Calling subtype with a name as the only argument is now an
358 exception. If you want an anonymous subtype do:
360 my $subtype = subtype as 'Foo';
362 * Moose::Cookbook::Meta::Recipe7
363 - A new recipe, creating a custom meta-instance class.
365 * Moose::Cookbook::Basics::Recipe5
366 - Fix various typos and mistakes. Includes a patch from Radu
369 * Moose::Cookbook::Basics::Recipe9
370 - Link to this recipe from Moose.pm's builder blurb
373 - When wrapping a function with a prototype, Moose::Exporter now
374 makes sure the wrapped function still has the same
375 prototype. (Daisuke Maki)
377 * Moose::Meta::Attribute
378 - Allow a subclass to set lazy_build for an inherited
382 - Explicitly depend on Data::OptList. We already had this dependency
383 via Sub::Exporter, but since we're using it directly we're
384 better off with it listed. (Sartak)
386 * Moose::Meta::Method::Constructor
387 - Make it easier to subclass the inlining behaviour. (Ash
390 * Moose::Manual::Delta
391 - Details significant changes in the history of Moose, along
392 with recommended workarounds.
394 * Moose::Manual::Contributing
395 - Contributor's guide to Moose.
397 * Moose::Meta::Method::Constructor
398 - The long-deprecated intialize_body method has been removed
399 (yes, spelled like that).
401 * Moose::Meta::Method::Destructor
402 - This is_needed method is now always a class method.
405 - Changes to the internals of how make_immutable works to match
406 changes in latest Class::MOP.
408 0.72 Mon, February 23, 2009
410 * Moose::Meta::Method::Constructor
411 - A mutable class accepted Foo->new(undef) without complaint,
412 while an immutable class would blow up with an unhelpful
413 error. Now, in both cases we throw a helpful error
414 instead. Reported by doy.
416 0.71_01 Sun, February 22, 2009
418 - Hopefully fixed some POD errors in a few recipes that caused
419 them to display weird on search.cpan.org.
421 * Moose::Util::TypeConstraints
422 - Calling type or subtype without the sugar helpers (as, where,
423 message) is now deprecated.
424 - The subtype function tried hard to guess what you meant, but
425 often got it wrong. For example:
427 my $subtype = subtype as 'ArrayRef[Object]';
429 This caused an error in the past, but now works as you'd
433 - Make sure Moose.pm is loaded before calling
434 Moose->throw_error. This wasn't normally an issue, but could
435 bite you in weird cases.
437 0.71 Thu, February 19, 2009
438 * Moose::Cookbook::Basics::Recipe11
439 - A new recipe which demonstrates the use of BUILDARGS and
442 * Moose::Cookbook::Roles::Recipe3
443 - A new recipe, applying a role to an object instance. (Dave
447 - Allow overriding specific keywords from "also" packages. (doy)
450 - Replace hardcoded cookbook tests with Test::Inline to ensure
451 the tests match the actual code in the recipes. (Dave Rolsky)
454 - Working on the above turned up a number of little bugs in the
455 recipe code. (Dave Rolsky)
457 * Moose::Util::TypeConstraints::Optimized
458 - Just use Class::MOP for the optimized ClassName check. (Dave
461 0.70 Sat, February 14, 2009
462 * Moose::Util::TypeConstraints
463 - Added the RoleName type (stevan)
464 - added tests for this (stevan)
466 * Moose::Cookbook::Basics::Recipe3
467 - Updated the before qw[left right] sub to be a little more
468 defensive about what it accepts (stevan)
469 - added more tests to t/000_recipies/basics/003_binary_tree.t
473 - We now always call DEMOLISHALL, even if a class does not
474 define DEMOLISH. This makes sure that method modifiers on
475 DEMOLISHALL work as expected. (doy)
476 - added tests for this (EvanCarroll)
478 * Moose::Util::MetaRole
479 - Accept roles for the wrapped_method_metaclass (rafl)
480 - added tests for this (rafl)
482 * Moose::Meta::Attribute
483 - We no longer pass the meta-attribute object as a final
484 argument to triggers. This actually changed for inlined code a
485 while back, but the non-inlined version and the docs were
489 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
490 they require 0.11. (Dave Rolsky)
493 - Lots of small changes to the manual, cookbook, and
494 elsewhere. These were based on feedback from various
495 users, too many to list here. (Dave Rolsky)
497 0.69 Thu, February 12, 2009
499 - Make some keyword errors use throw_error instead of croak
500 since Moose::Exporter wraps keywords now (Sartak)
503 - Revised every recipe for style and clarity. Also moved some
504 documentation out of cookbook recipes and into Moose::Manual
505 pages. This work was funded as part of the Moose docs grant
506 from TPF. (Dave Rolsky)
508 * Moose::Meta::Method::Delegation
509 - If the attribute doing the delegation was not populated, the
510 error message did not specify the attribute name
513 0.68 Wed, February 4, 2009
515 - Many spelling, typo, and formatting fixes by daxim.
517 * Moose::Manual::Attributes
518 - The NAME section in the POD used "Attribute" so search.cpan
519 didn't resolve links from other documents properly.
521 * Moose::Meta::Method::Overriden
522 - Now properly spelled as Overridden. Thanks to daxim for
525 0.67 Tue, February 3, 2009
527 - Lots of little typo fixes and a few clarifications. Several
528 pages didn't have proper titles, and so weren't actually
529 visible on search.cpan.org. Thanks to hanekomu for a variety
530 of fixes and formatting improvements.
532 0.66 Tue, February 3, 2009
534 - This is a brand new, extensive manual for Moose. This aims to
535 provide a complete introduction to all of Moose's
536 features. This work was funded as part of the Moose docs grant
537 from TPF. (Dave Rolsky)
539 * Moose::Meta::Attribute
540 - Added a delegation_metaclass method to replace a hard-coded
541 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
543 * Moose::Util::TypeConstraints
544 - If you created a subtype and passed a parent that Moose didn't
545 know about, it simply ignored the parent. Now it automatically
546 creates the parent as a class type. This may not be what you
547 want, but is less broken than before. (Dave Rolsky)
549 * Moose::Util::TypeConstraints
550 - This module tried throw errors by calling Moose->throw_error,
551 but it did not ensure that Moose was loaded first. This could
552 cause very unhelpful errors when it tried to throw an error
553 before Moose was loaded. (Dave Rolsky)
555 * Moose::Util::TypeConstraints
556 - You could declare a name with subtype such as "Foo!Bar" that
557 would be allowed, but if you used it in a parameterized type
558 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
559 vetting on names created via the sugar functions, so that they
560 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
562 0.65 Thu, January 22, 2008
563 * Moose and Moose::Meta::Method::Overridden
564 - If an overridden method called super(), and then the
565 superclass's method (not overridden) _also_ called super(),
566 Moose went into an endless recursion loop. Test provided by
567 Chris Prather. (Dave Rolsky)
569 * Moose::Meta::TypeConstraint
570 - All methods are now documented. (gphat)
572 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
573 - Fixed some bogus failures that occurred because we tried to
574 validate filesystem paths in a very ad-hoc and
575 not-quite-correct way. (Dave Rolsky)
577 * Moose::Util::TypeConstraints
578 - Added maybe_type to exports. See docs for details. (rjbs)
581 - Added Moose::Util::TypeConstraints to the SEE ALSO
585 - Methods created via an attribute can now fulfill a "requires"
586 declaration for a role. (nothingmuch)
588 * Moose::Meta::Method::*
589 - Stack traces from inlined code will now report its line and
590 file as being in your class, as opposed to in Moose
593 0.64 Wed, December 31, 2008
594 * Moose::Meta::Method::Accessor
595 - Always inline predicate and clearer methods (Sartak)
597 * Moose::Meta::Attribute
598 - Support for parameterized traits (Sartak)
599 - verify_against_type_constraint method to avoid duplication
600 and enhance extensibility (Sartak)
603 - Tests (but no support yet) for parameterized traits (Sartak)
606 - Require Class::MOP 0.75+, which has the side effect of making
607 sure we work on Win32. (Dave Rolsky)
609 0.63 Mon, December 8, 2008
611 - Some small grammar tweaks and bug fixes in non-Moose example
614 0.62_02 Fri, December 5, 2008
615 * Moose::Meta::Role::Application::ToClass
616 - When a class does not provide all of a role's required
617 methods, the error thrown now mentions all of the missing
618 methods, as opposed to just the first one found. Requested by
619 Curtis Poe (RT #41119). (Dave Rolsky)
621 * Moose::Meta::Method::Constructor
622 - Moose will no longer inline a constructor for your class
623 unless it inherits its constructor from Moose::Object, and
624 will warn when it doesn't inline. If you want to force
625 inlining anyway, pass "replace_constructor => 1" to
626 make_immutable. Addresses RT #40968, reported by Jon
627 Swartz. (Dave Rolsky)
628 - The quoting of default values could be broken if the default
629 contained a single quote ('). Now we use quotemeta to escape
630 anything potentially dangerous in the defaults. (Dave Rolsky)
632 0.62_01 Wed, December 3, 2008
634 - use the method->execute API for BUILDALL
635 and DEMOLISHALL (Sartak)
637 * Moose::Util::TypeConstraints
638 - We now make all the type constraint meta classes immutable
639 before creating the default types provided by Moose. This
640 should make loading Moose a little faster. (Dave Rolsky)
642 0.62 Wed November 26, 2008
643 * Moose::Meta::Role::Application::ToClass
644 Moose::Meta::Role::Application::ToRole
645 - fixed issues where excluding and aliasing the
646 same methods for a single role did not work
647 right (worked just fine with multiple
649 - added test for this (stevan)
651 * Moose::Meta::Role::Application::RoleSummation
652 - fixed the error message when trying to compose
653 a role with a role it excludes (Sartak)
656 - Catch another case where recursion caused the value
657 of $CALLER to be stamped on (t0m)
658 - added test for this (t0m)
661 - Remove the make_immutable keyword, which has been
662 deprecated since April. It breaks metaclasses that
663 use Moose without no Moose (Sartak)
665 * Moose::Meta::Attribute
666 - Removing an attribute from a class now also removes delegation
667 (handles) methods installed for that attribute (t0m)
668 - added test for this (t0m)
670 * Moose::Meta::Method::Constructor
671 - An attribute with a default that looked like a number (but was
672 really a string) would accidentally be treated as a number
673 when the constructor was made immutable (perigrin)
674 - added test for this (perigrin)
677 - create method for constructing a role
679 - added test for this (Sartak)
680 - anonymous roles! (Sartak)
681 - added test for this (Sartak)
684 - more consistent error messages (Sartak)
686 * Moose::Cookbook::Roles::Recipe1
687 - attempt to explain why a role that just requires
688 methods is useful (Sartak)
690 0.61 Fri November 7, 2008
691 * Moose::Meta::Attribute
692 - When passing a role to handles, it will be loaded if necessary
696 - Method objects returned by get_method (and other methods)
697 Could end up being returned without an associated_metaclass
698 attribute. Removing get_method_map, which is provided by
699 Class::MOP::Class, fixed this. The Moose version did nothing
700 different from its parent except introduce a bug. (Dave Rolsky)
701 - added tests for this (jdv79)
704 - Added a $VERSION to all .pm files which didn't have one. Fixes
705 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
707 * Moose::Cookbook::Basics::Recipe4
708 * Moose::Cookbook::Basics::Recipe6
709 - These files had spaces on the first line of the SYNOPSIS, as
710 opposed to a totally empty line. According to RT #40432, this
711 confuses POD parsers. (Dave Rolsky)
713 0.60 Fri October 24, 2008
715 - Passing "-traits" when loading Moose caused the Moose.pm
716 exports to be broken. Reported by t0m. (Dave Rolsky)
717 - Tests for this bug. (t0m)
720 - Change resolve_metaclass alias to use the new
721 load_first_existing_class function. This makes it a lot
722 simpler, and also around 5 times faster. (t0m)
723 - Add caching to resolve_metaclass_alias, which gives an order
724 of magnitude speedup to things which repeatedly call the
725 Moose::Meta::Attribute->does method, notably MooseX::Storage
728 * Moose::Util::TypeConstraint
729 - Put back the changes for parameterized constraints that
730 shouldn't have been removed in 0.59. We still cannot parse
731 them, but MooseX modules can create them in some other
732 way. See the 0.58 changes for more details. (jnapiorkowski)
733 - Changed the way subtypes are created so that the job is
734 delegated to a type constraint parent. This clears up some
735 hardcoded checking and should allow correct subtypes of
736 Moose::Meta::Type::Constraint. Don't rely on this new API too
737 much (create_child_type) because it may go away in the
738 future. (jnapiorkowski)
740 * Moose::Meta::TypeConstraint::Union
741 - Type constraint names are sorted as strings, not numbers.
744 * Moose::Meta::TypeConstraint::Parameterizable
745 - New parameterize method. This can be used as a factory method
746 to make a new type constraint with a given parameterized
747 type. (jnapiorkowski)
748 - added tests (jnapiorkowski)
750 0.59 Tue October 14, 2008
752 - Add abridged documentation for builder/default/initializer/
753 predicate, and link to more details sections in
754 Class::MOP::Attribute. (t0m)
756 * Moose::Util::TypeConstraints
757 - removed prototypes from all but the &-based stuff (mst)
759 * Moose::Util::TypeConstraints
760 - Creating a anonymous subtype with both a constraint and a
761 message failed with a very unhelpful error, but should just
762 work. Reported by t0m. (Dave Rolsky)
765 - Some tests that used Test::Warn if it was available failed
766 with older versions of Test::Warn. Reported by Fayland. (Dave
768 - Test firing behavior of triggers in relation to builder/default/
770 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
771 kinds of supported type. (t0m)
774 - In create(), do not pass "roles" option to the superclass
775 - added related test that creates an anon metaclass with
778 * Moose::Meta::TypeConstraint::Class
779 * Moose::Meta::TypeConstraint::Role
780 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
781 other types (as per change in 0.55_02). (t0m)
783 * Moose::Meta::TypeConstraint::Registry
784 - Fix warning when dealing with unknown type names (t0m)
786 * Moose::Util::TypeConstraints
787 - Reverted changes from 0.58 related to handle parameterized
788 types. This caused random failures on BSD and Win32 systems,
789 apparently related to the regex engine. This means that Moose
790 can no longer parse structured type constraints like
791 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
792 supported in a slightly different way via MooseX::Types some
793 time in the future. (Dave Rolsky)
795 0.58 Sat September 20, 2008
796 !! This release has an incompatible change regarding !!
797 !! how roles add methods to a class !!
799 * Roles and role application
800 ! Roles now add methods by calling add_method, not
801 alias_method. They make sure to always provide a method
802 object, which will be cloned internally. This means that it is
803 now possible to track the source of a method provided by a
804 role, and even follow its history through intermediate roles.
806 This means that methods added by a role now show up when
807 looking at a class's method list/map. (Dave Rolsky)
810 - From this release on, we'll try to maintain a list of
811 conflicting modules, and warn you if you have one
812 installed. For example, this release conflicts with ...
813 - MooseX::Singleton <= 0.11
814 - MooseX::Params::Validate <= 0.05
817 In general, we try to not break backwards compatibility for
818 most Moose users, but MooseX modules and other code which
819 extends Moose's metaclasses is often affected by very small
820 changes in the Moose internals.
822 * Moose::Meta::Method::Delegation
823 * Moose::Meta::Attribute
824 - Delegation methods now have their own method class. (Dave
827 * Moose::Meta::TypeConstraint::Parameterizable
828 - Added a new method 'parameterize' which is basically a factory
829 for the containing constraint. This makes it easier to create
830 new types of parameterized constraints. (jnapiorkowski)
832 * Moose::Meta::TypeConstraint::Union
833 - Changed the way Union types canonicalize their names to follow
834 the normalized TC naming rules, which means we strip all
835 whitespace. (jnapiorkowski)
837 * Moose::Util::TypeConstraints
838 - Parameter and Union args are now sorted, this makes Int|Str
839 the same constraint as Str|Int. (jnapiorkowski)
840 - Changes to the way Union types are parsed to more correctly
841 stringify their names. (jnapiorkowski)
842 - When creating a parameterized type, we now use the new
843 parameterize method. (jnapiorkowski)
844 - Incoming type constraint strings are now normalized to remove
845 all whitespace differences. (jnapiorkowski)
846 - Changed the way we parse type constraint strings so that we now
847 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
848 constraints. This lays the foundation for more flexible type
849 constraint implementations.
851 * Tests and docs for all the above. (jnapiorkowski)
855 - Moose::Exporter will no longer remove a subroutine that the
856 exporting package re-exports. Moose re-exports the
857 Carp::confess function, among others. The reasoning is that we
858 cannot know whether you have also explicitly imported those
859 functions for your own use, so we err on the safe side and
860 always keep them. (Dave Rolsky)
861 - added tests for this (rafl)
864 - Changes to how we fix metaclass compatibility that are much
865 too complicated to go into. The summary is that Moose is much
866 less likely to complain about metaclass incompatibility
867 now. In particular, if two metaclasses differ because
868 Moose::Util::MetaRole was used on the two corresponding
869 classes, then the difference in roles is reconciled for the
870 subclass's metaclass. (Dave Rolsky)
871 - Squashed an warning in _process_attribute (thepler)
874 - throw exceptions (sooner) for invalid attribute names (thepler)
875 - added tests for this (thepler)
877 * Moose::Util::MetaRole
878 - If you explicitly set a constructor or destructor class for a
879 metaclass object, and then applied roles to the metaclass,
880 that explicitly set class would be lost and replaced with the
884 * Moose::Meta::Attribute
885 * Moose::Meta::Method
888 * Moose::Error::Default
889 * Moose::Error::Croak
890 * Moose::Error::Confess
891 - All instances of confess() changed to use overridable
892 C<throw_error> method. This method ultimately calls a class
893 constructor, and you can change the class being called. In
894 addition, errors now pass more information than just a string.
895 The default C<error_class> behaves like C<Carp::confess>, so
896 the behavior is not visibly different for end users.
898 0.57 Wed September 3, 2008
900 - A new bit of doc intended to introduce folks familiar with
901 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
904 - Shows examples of two classes, each done first with and then
905 without Moose. This makes a nice parallel to
906 Moose::Intro. (Dave Rolsky)
908 * Moose::Util::TypeConstraints
909 - Fixed a bug in find_or_parse_type_constraint so that it
910 accepts a Moose::Meta::TypeConstraint object as the parent
911 type, not just a name (jnapiorkowski)
912 - added tests (jnapiorkowski)
915 - If Sub::Name was not present, unimporting failed to actually
916 remove some sugar subs, causing test failures (Dave Rolsky)
918 0.56 Mon September 1, 2008
919 For those not following the series of dev releases, there are
920 several major changes in this release of Moose.
921 ! Moose::init_meta should now be called as a method. See the
924 - Major performance improvements by nothingmuch.
926 - New modules for extension writers, Moose::Exporter and
927 Moose::Util::MetaRole by Dave Rolsky.
929 - Lots of doc improvements and additions, especially in the
934 * Removed all references to the experimental-but-no-longer-needed
935 Moose::Meta::Role::Application::ToMetaclassInstance.
937 * Require Class::MOP 0.65.
939 0.55_04 Sat August 30, 2008
940 * Moose::Util::MetaRole
941 * Moose::Cookbook::Extending::Recipe2
942 - This simplifies the application of roles to any meta class, as
943 well as the base object class. Reimplemented metaclass traits
944 using this module. (Dave Rolsky)
946 * Moose::Cookbook::Extending::Recipe1
947 - This a new recipe, an overview of various ways to write Moose
948 extensions (Dave Rolsky)
950 * Moose::Cookbook::Extending::Recipe3
951 * Moose::Cookbook::Extending::Recipe4
952 - These used to be Extending::Recipe1 and Extending::Recipe2,
955 0.55_03 Fri August 29, 2008
956 * No changes from 0.55_02 except increasing the Class::MOP
957 dependency to 0.64_07.
959 0.55_02 Fri August 29, 2008
960 * Makefile.PL and Moose.pm
961 - explicitly require Perl 5.8.0+ (Dave Rolsky)
963 * Moose::Util::TypeConstraints
964 - Fix warnings from find_type_constraint if the type is not
967 * Moose::Meta::TypeConstraint
968 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
969 return false if the type you specify cannot be found in the
970 type registry, rather than throwing an unhelpful and
971 coincidental exception. (t0m).
972 - added docs & test for this (t0m)
974 * Moose::Meta::TypeConstraint::Registry
975 - add_type_constraint now throws an exception if a parameter is
977 - added docs & test for this (t0m)
979 * Moose::Cookbook::FAQ
980 - Added a faq entry on the difference between "role" and "trait"
984 - Fixed a bug that caused role composition to not see a required
985 method when that method was provided by another role being
986 composed at the same time. (Dave Rolsky)
987 - test and bug finding (tokuhirom)
989 0.55_01 Wed August 20, 2008
991 !! Calling Moose::init_meta as a function is now !!
992 !! deprecated. Please see the Moose.pm docs for details. !!
994 * Moose::Meta::Method::Constructor
995 - Fix inlined constructor so that values produced by default
996 or builder methods are coerced as required. (t0m)
997 - added test for this (t0m)
999 * Moose::Meta::Attribute
1000 - A lazy attribute with a default or builder did not attempt to
1001 coerce the default value. The immutable code _did_
1003 - added test for this (t0m)
1006 - This is a new helper module for writing "Moose-alike"
1007 modules. This should make the lives of MooseX module authors
1008 much easier. (Dave Rolsky)
1011 * Moose::Cookbook::Meta::Recipe5
1012 - Implemented metaclass traits (and wrote a recipe for it):
1014 use Moose -traits => 'Foo'
1016 This should make writing small Moose extensions a little
1017 easier (Dave Rolsky)
1019 * Moose::Cookbook::Basics::Recipe1
1020 - Removed any examples of direct hashref access, and applied an
1021 editorial axe to reduce verbosity. (Dave Rolsky)
1023 * Moose::Cookbook::Basics::Recipe1
1024 - Also applied an editorial axe here. (Dave Rolsky)
1027 * Moose::Cookbook::Extending::Recipe1
1028 * Moose::Cookbook::Extending::Recipe2
1029 - Rewrote extending and embedding moose documentation and
1030 recipes to use Moose::Exporter (Dave Rolsky)
1034 - These two modules now warn when you load them from the main
1035 package "main" package, because we will not export sugar to
1036 main. Previously it just did nothing. (Dave Rolsky)
1039 - Now provide an init_meta method just like Moose.pm, and you
1040 can call this to provide an alternate role metaclass. (Dave
1041 Rolsky and nothingmuch)
1042 - get_method_map now respects the package cache flag (nothingmuch)
1045 - Two new methods - add_method and wrap_method_body
1049 - Optimizations including allowing constructors to accept hash
1050 refs, making many more classes immutable, and making
1051 constructors immutable. (nothingmuch)
1053 0.55 Sun August 3, 2008
1054 * Moose::Meta::Attribute
1055 - breaking down the way 'handles' methods are
1056 created so that the process can be more easily
1057 overridden by subclasses (stevan)
1059 * Moose::Meta::TypeConstraint
1060 - fixing what is passed into a ->message with
1061 the type constraints (RT #37569)
1062 - added tests for this (Charles Alderman)
1064 * Moose::Util::TypeConstraints
1065 - fix coerce to accept anon types like subtype can (mst)
1068 - reorganized the recipes into sections - Basics, Roles, Meta,
1069 Extending - and wrote abstracts for each section (Dave Rolsky)
1071 * Moose::Cookbook::Basics::Recipe10
1072 - A new recipe that demonstrates operator overloading
1073 in combination with Moose. (bluefeet)
1075 * Moose::Cookbook::Meta::Recipe1
1076 - an introduction to what meta is and why you'd want to make
1077 your own metaclass extensions (Dave Rolsky)
1079 * Moose::Cookbook::Meta::Recipe4
1080 - a very simple metaclass example (Dave Rolsky)
1082 * Moose::Cookbook::Extending::Recipe1
1083 - how to write a Moose-alike module to use your own object base
1086 * Moose::Cookbook::Extending::Recipe2
1087 - how to write modules with an API just like C<Moose.pm> (Dave
1091 - Tons of fixes, both syntactical and grammatical (Dave
1092 Rolsky, Paul Fenwick)
1094 0.54 Thurs. July 3, 2008
1095 ... this is not my day today ...
1097 * Moose::Meta::Attribute
1098 - fixed legal_options_for_inheritance such that
1099 clone_and_inherit options still works for
1100 Class::MOP::Attribute objects and therefore
1101 does not break MooseX::AttributeHelpers
1104 0.53 Thurs. July 3, 2008
1105 * Whoops, I guess I should run 'make manifest' before
1106 actually releasing the module. No actual changes
1107 in this release, except the fact that it includes
1108 the changes that I didn't include in the last
1111 0.52 Thurs. July 3, 2008
1113 - added "FEATURE REQUESTS" section to the Moose docs
1114 to properly direct people (stevan) (RT #34333)
1115 - making 'extends' croak if it is passed a Role since
1116 this is not ever something you want to do
1117 (fixed by stevan, found by obra)
1118 - added tests for this (stevan)
1121 - adding support for DOES (as in UNIVERSAL::DOES)
1123 - added test for this
1125 * Moose::Meta::Attribute
1126 - added legal_options_for_inheritance (wreis)
1127 - added tests for this (wreis)
1129 * Moose::Cookbook::Snacks::*
1130 - removed some of the unfinished snacks that should
1131 not have been released yet. Added some more examples
1132 to the 'Keywords' snack. (stevan)
1134 * Moose::Cookbook::Style
1135 - added general Moose "style guide" of sorts to the
1136 cookbook (nothingmuch) (RT #34335)
1139 - added more BUILDARGS tests (stevan)
1141 0.51 Thurs. Jun 26, 2008
1143 - add unimport so "no Moose::Role" actually does
1146 * Moose::Meta::Role::Application::ToRole
1147 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1148 order to provide its own implementation, that method still got
1149 added to the list of required methods for consumers of
1150 RoleB. Now an aliased method is only added to the list of
1151 required methods if the role doing the aliasing does not
1152 provide its own implementation. See Recipe 11 for an example
1153 of all this. (Dave Rolsky)
1154 - added tests for this
1156 * Moose::Meta::Method::Constructor
1157 - when a single argument that wasn't a hashref was provided to
1158 an immutabilized constructor, the error message was very
1159 unhelpful, as opposed to the non-immutable error. Reported by
1161 - added test for this (Dave Rolsky)
1163 * Moose::Meta::Attribute
1164 - added support for meta_attr->does("ShortAlias") (sartak)
1165 - added tests for this (sartak)
1166 - moved the bulk of the `handles` handling to the new
1167 install_delegation method (Stevan)
1170 - Added BUILDARGS, a new step in new()
1172 * Moose::Meta::Role::Application::RoleSummation
1173 - fix typos no one ever sees (sartak)
1175 * Moose::Util::TypeConstraints
1176 * Moose::Meta::TypeConstraint
1177 * Moose::Meta::TypeCoercion
1178 - Attempt to work around the ??{ } vs. threads issue
1180 - Some null_constraint optimizations
1182 0.50 Thurs. Jun 11, 2008
1183 - Fixed a version number issue by bumping all modules
1186 0.49 Thurs. Jun 11, 2008
1187 !! This version now approx. 20-25% !!
1188 !! faster with new Class::MOP 0.59 !!
1190 * Moose::Meta::Attribute
1191 - fixed how the is => (ro|rw) works with
1192 custom defined reader, writer and accessor
1194 - added docs for this (TODO).
1195 - added tests for this (Thanks to Penfold)
1196 - added the custom attribute alias for regular
1197 Moose attributes which is "Moose"
1198 - fix builder and default both being used
1203 Moose::Meta::Attribute
1205 Moose::Meta::Role::Composite
1206 Moose::Util::TypeConstraints
1207 - switched usage of reftype to ref because
1211 - changing add_package_symbol to use the new
1215 - fixed how DEMOLISHALL is called so that it
1216 can be overrided in subclasses (thanks to Sartak)
1217 - added test for this (thanks to Sartak)
1219 * Moose::Util::TypeConstraints
1220 - move the ClassName type check code to
1221 Class::MOP::is_class_loaded (thanks to Sartak)
1223 * Moose::Cookbook::Recipe11
1224 - add tests for this (thanks to tokuhirom)
1226 0.48 Thurs. May 29, 2008
1227 (early morning release engineering)--
1229 - fixing the version in Moose::Meta::Method::Destructor
1230 which was causing the indexer to choke
1232 0.47 Thurs. May 29, 2008
1233 (late night release engineering)--
1235 - fixing the version is META.yml, no functional
1236 changes in this release
1238 0.46 Wed. May 28, 2008
1239 !! This version now approx. 20-25% !!
1240 !! faster with new Class::MOP 0.57 !!
1242 * Moose::Meta::Class
1243 - some optimizations of the &initialize method
1244 since it is called so often by &meta
1246 * Moose::Meta::Class
1248 - now use the get_all_package_symbols from the
1249 updated Class::MOP, test suite is now 10 seconds
1252 * Moose::Meta::Method::Destructor
1253 - is_needed can now also be called as a class
1254 method for immutablization to check if the
1255 destructor object even needs to be created
1258 * Moose::Meta::Method::Destructor
1259 Moose::Meta::Method::Constructor
1260 - added more descriptive error message to help
1261 keep people from wasting time tracking an error
1262 that is easily fixed by upgrading.
1264 0.45 Saturday, May 24, 2008
1266 - Because of work in Class::MOP 0.57, all
1267 XS based functionality is now optional
1268 and a Pure Perl version is supplied
1269 - the CLASS_MOP_NO_XS environment variable
1270 can now be used to force non-XS versions
1272 - several of the packages have been tweaked
1273 to take care of this, mostly we added
1274 support for the package_name and name
1275 variables in all the Method metaclasses
1276 - before/around/after method modifiers now
1277 support regexp matching of names
1278 (thanks to Takatoshi Kitano)
1279 - tests added for this
1280 - NOTE: this only works for classes, it
1281 is currently not supported in roles,
1282 but, ... patches welcome
1283 - All usage of Carp::confess have been replaced
1284 by Carp::croak in the "keyword" functions since
1285 the stack trace is usually not helpful
1288 - All usage of Carp::confess have been replaced
1289 by Carp::croak in the "keyword" functions since
1290 the stack trace is usually not helpful
1291 - The 'has' keyword for roles now accepts the
1292 same array ref form that Moose.pm does
1293 (has [qw/foo bar/] => (is => 'rw', ...))
1294 - added test for this
1296 * Moose::Meta::Attribute
1297 - trigger on a ro-attribute is no longer an
1298 error, as it's useful to trigger off of the
1301 * Moose::Meta::Class
1302 - added same 'add_package_symbol' fix as in
1306 - does_role now handles non-Moose classes
1308 - added tests for this
1309 - added the 'add_method_modifier' function
1310 (thanks to Takatoshi Kitano)
1312 * Moose::Util::TypeConstraints
1313 - subtypes of parameterizable types now are
1314 themselves parameterizable types
1316 * Moose::Meta::Method::Constructor
1317 - fixed bug where trigger was not being
1318 called by the inlined immutable
1320 - added test for this (thanks to Caelum)
1322 * Moose::Meta::Role::Application::ToInstance
1323 - now uses the metaclass of the instance
1324 (if possible) to create the anon-class
1325 (thanks Jonathan Rockway)
1327 * Moose::Cookbook::Recipe22
1328 - added the meta-attribute trait recipe
1332 - fixed hash-ordering test bug that was
1333 causing occasional cpantester failures
1334 - renamed the t/000_recipe/*.t tests to be
1335 more descriptive (thanks to Sartak)
1337 0.44 Sat. May 10, 2008
1339 - made make_immutable warning cluck to
1340 show where the error is (thanks mst)
1343 - BUILDALL and DEMOLISHALL now call
1344 ->body when looping through the
1345 methods, to avoid the overloaded
1347 - fixed issue where DEMOLISHALL was
1348 eating the $@ values, and so not
1349 working correctly, it still kind of
1350 eats them, but so does vanilla perl
1351 - added tests for this
1353 * Moose::Cookbook::Recipe7
1354 - added new recipe for immutable
1355 functionality (thanks Dave Rolsky)
1357 * Moose::Cookbook::Recipe9
1358 - added new recipe for builder and
1359 lazy_build (thanks Dave Rolsky)
1361 * Moose::Cookbook::Recipe11
1362 - added new recipe for method aliasing
1363 and exclusion with Roles (thanks Dave Rolsky)
1366 - fixed Win32 test failure (thanks spicyjack)
1368 ~ removed Build.PL and Module::Build compat
1369 since Module::Install has done that.
1371 0.43 Wed. April, 30, 2008
1373 drink more coffee before
1374 doing release engineering
1376 - whoops, forgot to do the smolder tests,
1377 and we broke some of the custom meta-attr
1378 modules. This fixes that.
1380 0.42 Mon. April 28, 2008
1381 - some bad tests slipped by, nothing else
1382 changed in this release (cpantesters++)
1384 - upped the Class::MOP dependency to 0.55
1385 since we have tests which need the C3
1388 0.41 Mon. April 28, 2008
1389 ~~ numerous documentation updates ~~
1391 - Changed all usage of die to Carp::croak for better
1392 error reporting (initial patch by Tod Hagan)
1394 ** IMPORTANT NOTE **
1395 - the make_immutable keyword is now deprecated, don't
1396 use it in any new code and please fix your old code
1397 as well. There will be 2 releases, and then it will
1403 - refactored the way inner and super work to avoid
1404 any method/@ISA cache penalty (nothingmuch)
1406 * Moose::Meta::Class
1407 - fixing &new_object to make sure trigger gets the
1408 coerced value (spotted by Charles Alderman on the
1410 - added test for this
1412 * Moose::Meta::Method::Constructor
1413 - immutable classes which had non-lazy attributes were calling
1414 the default generating sub twice in the constructor. (bug
1415 found by Jesse Luehrs, fixed by Dave Rolsky)
1416 - added tests for this (Dave Rolsky)
1417 - fix typo in initialize_body method (nothingmuch)
1419 * Moose::Meta::Method::Destructor
1420 - fix typo in initialize_body method (nothingmuch)
1422 * Moose::Meta::Method::Overriden
1423 Moose::Meta::Method::Augmented
1424 - moved the logic for these into their own
1425 classes (nothingmuch)
1427 * Moose::Meta::Attribute
1428 - inherited attributes may now be extended without
1429 restriction on the type ('isa', 'does') (Sartak)
1430 - added tests for this (Sartak)
1431 - when an attribute property is malformed (such as lazy without
1432 a default), give the name of the attribute in the error
1434 - added the &applied_traits and &has_applied_traits methods
1435 to allow introspection of traits
1436 - added tests for this
1437 - moved 'trait' and 'metaclass' argument handling to here from
1439 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1440 '+foo' syntax) (nothingmuch)
1441 - added tests for this (t0m)
1444 - localize $@ inside DEMOLISHALL to avoid it
1445 eating $@ (found by Ernesto)
1446 - added test for this (thanks to Ernesto)
1448 * Moose::Util::TypeConstraints
1449 - &find_type_constraint now DWIMs when given an
1450 type constraint object or name (nothingmuch)
1451 - &find_or_create_type_constraint superseded with a number of more
1453 - find_or_create_{isa,does}_type_constraint
1454 - find_or_parse_type_constraint
1456 * Moose::Meta::TypeConstraint
1457 Moose::Meta::TypeConstraint::Class
1458 Moose::Meta::TypeConstraint::Role
1459 Moose::Meta::TypeConstraint::Enum
1460 Moose::Meta::TypeConstraint::Union
1461 Moose::Meta::TypeConstraint::Parameterized
1462 - added the &equals method for comparing two type
1463 constraints (nothingmuch)
1464 - added tests for this (nothingmuch)
1466 * Moose::Meta::TypeConstraint
1467 - add the &parents method, which is just an alias to &parent.
1468 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1470 * Moose::Meta::TypeConstraint::Class
1471 - added the class attribute for introspection purposes
1473 - added tests for this
1475 * Moose::Meta::TypeConstraint::Enum
1476 Moose::Meta::TypeConstraint::Role
1477 - broke these out into their own classes (nothingmuch)
1479 * Moose::Cookbook::Recipe*
1480 - fixed references to test file locations in the POD
1481 and updated up some text for new Moose features
1485 - Added &resolve_metaclass_alias, a helper function for finding an actual
1486 class for a short name (e.g. in the traits list)
1488 0.40 Fri. March 14, 2008
1489 - I hate Pod::Coverage
1491 0.39 Fri. March 14, 2008
1493 - documenting the use of '+name' with attributes
1494 that come from recently composed roles. It makes
1495 sense, people are using it, and so why not just
1496 officially support it.
1497 - fixing the 'extends' keyword so that it will not
1498 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1501 - added the perl -Moose=+Class::Name feature to allow
1502 monkeypatching of classes in one liners
1505 - fixing the 'apply_all_roles' keyword so that it will not
1506 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1508 * Moose::Meta::Class
1509 - added ->create method which now supports roles (thanks to jrockway)
1510 - added tests for this
1511 - added ->create_anon_class which now supports roles and caching of
1512 the results (thanks to jrockway)
1513 - added tests for this
1514 - made ->does_role a little more forgiving when it is
1515 checking a Class::MOP era metaclasses.
1517 * Moose::Meta::Role::Application::ToInstance
1518 - it is now possible to pass extra params to be used when
1519 a role is applied to an the instance (rebless_params)
1520 - added tests for this
1522 * Moose::Util::TypeConstraints
1523 - class_type now accepts an optional second argument for a
1524 custom message. POD anotated accordingly (groditi)
1525 - added tests for this
1526 - it is now possible to make anon-enums by passing 'enum' an
1527 ARRAY ref instead of the $name => @values. Everything else
1529 - added tests for this
1532 - making test for using '+name' on attributes consumed
1533 from a role, it works and makes sense too.
1535 * Moose::Meta::Attribute
1536 - fix handles so that it doesn't return nothing
1537 when the method cannot be found, not sure why
1538 it ever did this originally, this means we now
1539 have slightly better support for AUTOLOADed
1541 - added more delegation tests
1542 - adding ->does method to this so as to better
1543 support traits and their introspection.
1544 - added tests for this
1547 - localizing the Data::Dumper configurations so
1548 that it does not pollute others (RT #33509)
1549 - made ->does a little more forgiving when it is
1550 passed Class::MOP era metaclasses.
1552 0.38 Fri. Feb. 15, 2008
1553 * Moose::Meta::Attribute
1554 - fixed initializer to correctly do
1555 type checking and coercion in the
1557 - added tests for this
1560 - fixed some finicky tests (thanks to konobi)
1562 0.37 Thurs. Feb. 14, 2008
1564 - fixed some details in Moose::init_meta
1565 and its superclass handling (thanks thepler)
1566 - added tests for this (thanks thepler)
1567 - 'has' now dies if you don't pass in name
1569 - added the 'make_immutable' keyword as a shortcut
1572 * Moose::Meta::Class
1573 Moose::Meta::Method::Constructor
1574 Moose::Meta::Attribute
1575 - making (init_arg => undef) work here too
1576 (thanks to nothingmuch)
1578 * Moose::Meta::Attribute
1579 Moose::Meta::Method::Constructor
1580 Moose::Meta::Method::Accessor
1581 - make lazy attributes respect attr initializers (rjbs)
1582 - added tests for this
1584 * Moose::Util::TypeConstraints
1585 Moose::Util::TypeConstraints::OptimizedConstraints
1586 Moose::Meta::TypeConstraints
1587 Moose::Meta::Attribute
1588 Moose::Meta::Method::Constructor
1589 Moose::Meta::Method::Accessor
1590 - making type errors use the
1591 assigned message (thanks to Sartak)
1592 - added tests for this
1594 * Moose::Meta::Method::Destructor
1595 - making sure DESTROY gets inlined properly
1596 with successive DEMOLISH calls (thanks to manito)
1598 * Moose::Meta::Attribute
1599 Moose::Meta::Method::Accessor
1600 - fixed handling of undef with type constraints
1602 - added tests for this
1605 - added &get_all_init_args and &get_all_attribute_values
1606 (thanks to Sartak and nothingmuch)
1608 0.36 Sat. Jan. 26, 2008
1610 Moose::Meta::Attribute
1611 - role type tests now support when roles are
1612 applied to non-Moose classes (found by ash)
1613 - added tests for this (thanks to ash)
1614 - couple extra tests to boost code coverage
1616 * Moose::Meta::Method::Constructor
1617 - improved fix for handling Class::MOP attributes
1618 - added test for this
1620 * Moose::Meta::Class
1621 - handled the add_attribute($attribute_meta_object)
1623 - added test for this
1625 0.35 Tues. Jan. 22, 2008
1626 * Moose::Meta::Method::Constructor
1627 - fix to make sure even Class::MOP attributes
1628 are handled correctly (Thanks to Dave Rolsky)
1629 - added test for this (also Dave Rolsky)
1631 * Moose::Meta::Class
1632 - improved error message on _apply_all_roles,
1633 you should now use Moose::Util::apply_all_roles
1634 and you shouldnt have been using a _ prefixed
1635 method in the first place ;)
1637 0.34 Mon. Jan. 21, 2008
1638 ~~~ more misc. doc. fixes ~~~
1639 ~~ updated copyright dates ~~
1641 Moose is now a postmodern object system :)
1642 - (see the POD for details)
1644 * <<Role System Refactoring>>
1645 - this release contains a major reworking and
1646 cleanup of the role system
1647 - 100% backwards compat.
1648 - Role application now restructured into seperate
1649 classes based on type of applicants
1650 - Role summation (combining of more than one role)
1651 is much cleaner and anon-classes are no longer
1652 used in this process
1653 - new Composite role metaclass
1654 - runtime application of roles to instances
1655 is now more efficient and re-uses generated
1656 classes when applicable
1658 * <<New Role composition features>>
1659 - methods can now be excluded from a given role
1661 - methods can now be aliased to another name (and
1662 still retain the original as well)
1664 * Moose::Util::TypeConstraints::OptimizedConstraints
1665 - added this module (see above)
1667 * Moose::Meta::Class
1668 - fixed the &_process_attribute method to be called
1669 by &add_attribute, so that the API is now correct
1671 * Moose::Meta::Method::Accessor
1672 - fixed bug when passing a list of values to
1673 an accessor would get (incorrectly) ignored.
1674 Thanks to Sartak for finding this ;)
1675 - added tests for this (Sartak again)
1677 * Moose::Meta::Method::Accessor
1678 Moose::Meta::Method::Constructor
1679 Moose::Meta::Attribute
1680 Moose::Meta::TypeConstraint
1681 Moose::Meta::TypeCoercion
1682 - lots of cleanup of such things as:
1684 - type constraint handling
1685 - error handling/messages
1686 (thanks to nothingmuch)
1688 * Moose::Meta::TypeConstraint::Parameterizable
1689 - added this module to support the refactor
1690 in Moose::Meta::TypeConstraint::Parameterized
1692 * Moose::Meta::TypeConstraint::Parameterized
1693 - refactored how these types are handled so they
1694 are more generic and not confined to ArrayRef
1698 - shortened some file names for better VMS support (RT #32381)
1700 0.33 Fri. Dec. 14, 2007
1701 !! Moose now loads 2 x faster !!
1702 !! with new Class::MOP 0.49 !!
1704 ++ new oose.pm module to make command line
1705 Moose-ness easier (see POD docs for more)
1707 * Moose::Meta::Class
1709 - several tweaks to take advantage of the
1710 new method map caching in Class::MOP
1712 * Moose::Meta::TypeConstraint::Parameterized
1713 - allow subtypes of ArrayRef and HashRef to
1714 be used as a container (sartak)
1715 - added tests for this
1716 - basic support for coercion to ArrayRef and
1717 HashRef for containers (sartak)
1718 - added tests for this
1720 * Moose::Meta::TypeCoercion
1721 - coercions will now create subtypes as needed
1722 so you can now add coercions to parameterized
1723 types without having to explictly define them
1724 - added tests for this
1726 * Moose::Meta::Method::Accessor
1727 - allow subclasses to decide whether we need
1728 to copy the value into a new variable (sartak)
1730 0.32 Tues. Dec. 4, 2007
1731 * Moose::Util::TypeConstraints
1732 - fixing how subtype aliases of unions work
1733 they should inherit the parent's coercion
1734 - added tests for this
1735 - you can now define multiple coercions on
1736 a single type at different times instead of
1737 having to do it all in one place
1738 - added tests for this
1740 * Moose::Meta::TypeConstraint
1741 - there is now a default constraint of sub { 1 }
1742 instead of Moose::Util::TypeConstraints setting
1745 * Moose::Meta::TypeCoercion
1746 * Moose::Meta::TypeCoercion::Union
1747 - added the &has_coercion_for_type and
1748 &add_type_coercions methods to support the
1749 new features above (although you cannot add
1750 more type coercions for Union types)
1752 0.31 Mon. Nov. 26, 2007
1753 * Moose::Meta::Attribute
1754 - made the +attr syntax handle extending types with
1755 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1756 now works if the original foo is an ArrayRef.
1757 - added tests for this.
1758 - delegation now works even if the attribute does not
1759 have a reader method using the get_read_method_ref
1760 method from Class::MOP::Attribute.
1761 - added tests for this
1762 - added docs for this
1764 * Moose::Util::TypeConstraints
1765 - passing no "additional attribute info" to
1766 &find_or_create_type_constraint will no longer
1767 attempt to create an __ANON__ type for you,
1768 instead it will just return undef.
1769 - added docs for this
1771 0.30 Fri. Nov. 23, 2007
1772 * Moose::Meta::Method::Constructor
1773 -builder related bug in inlined constructor. (groditi)
1775 * Moose::Meta::Method::Accessor
1776 - genereate unnecessary calls to predicates and refactor
1777 code generation for runtime speed (groditi)
1779 * Moose::Util::TypeConstraints
1780 - fix ClassName constraint to introspect symbol table (mst)
1781 - added more tests for this (mst)
1782 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1783 with work correctly.
1784 - added tests for this
1787 - adding the link to Recipie 11 (written by Sartak)
1788 - adding test for SYNOPSIS code
1791 - New tests for builder bug. Upon instantiation, if an
1792 attribute had a builder, no value and was not lazy the
1793 builder default was not getting run, oops. (groditi)
1795 0.29 Tues. Nov. 13, 2007
1796 * Moose::Meta::Attribute
1797 - Fix error message on missing builder method (groditi)
1799 * Moose::Meta::Method::Accessor
1800 - Fix error message on missing builder method (groditi)
1803 - Add test to check for the correct error message when
1804 builder method is missing (groditi)
1806 0.28 Tues. Nov. 13, 2007
1807 - 0.27 packaged incorrectly (groditi)
1809 0.27 Tues. Nov. 13, 2007
1810 * Moose::Meta::Attribute
1811 - Added support for the new builder option (groditi)
1812 - Added support for lazy_build option (groditi)
1813 - Changed slot initialization for predicate changes (groditi)
1815 * Moose::Meta::Method::Accessor
1816 - Added support for lazy_build option (groditi)
1817 - Fix inline methods to work with corrected predicate
1820 * Moose::Meta::Method::Constructor
1821 - Added support for lazy_build option (groditi)
1824 - tests for builder and lazy_build (groditi)
1826 * fixing some misc. bits in the docs that
1827 got mentioned on CPAN Forum & perlmonks
1830 - fixed how required methods are handled
1831 when they encounter overriden or modified
1832 methods from a class (thanks to confound).
1833 - added tests for this
1835 * Moose::Util::TypeConstraint
1836 - fixed the type notation parser so that
1837 the | always creates a union and so is
1838 no longer a valid type char (thanks to
1839 konobi, mugwump and #moose for working
1841 - added more tests for this
1843 0.26 Thurs. Sept. 27, 2007
1846 * Parameterized Types
1847 We now support parameterized collection types, such as:
1848 ArrayRef[Int] # array or integers
1849 HashRef[Object] # a hash with object values
1850 They can also be nested:
1851 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1852 And work with the type unions as well:
1853 ArrayRef[Int | Str] # array of integers of strings
1855 * Better Framework Extendability
1856 Moose.pm is now "extendable" such that it is now much
1857 easier to extend the framework and add your own keywords
1858 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1859 section of the Moose.pm docs.
1862 In an effort to begin documenting some of the various
1863 details of Moose as well as some common idioms, we have
1864 created Moose::Cookbook::Snacks as a place to find
1865 small (easily digestable) nuggets of Moose code.
1868 ~ Several doc updates/cleanup thanks to castaway ~
1870 - converted build system to use Module::Install instead of
1871 Module::Build (thanks to jrockway)
1874 - added all the meta classes to the immutable list and
1875 set it to inline the accessors
1876 - fix import to allow Sub::Exporter like { into => }
1877 and { into_level => } (perigrin)
1878 - exposed and documented init_meta() to allow better
1879 embedding and extending of Moose (perigrin)
1882 - complete re-organization of the test suite
1883 - added some new tests as well
1884 - finally re-enabled the Moose::POOP test since
1885 the new version of DBM::Deep now works again
1888 * Moose::Meta::Class
1889 - fixed very odd and very nasty recursion bug with
1891 - added tests for this (eilara)
1893 * Moose::Meta::Attribute
1894 Moose::Meta::Method::Constructor
1895 Moose::Meta::Method::Accessor
1896 - fixed issue with overload::Overloaded getting called
1897 on non-blessed items. (RT #29269)
1898 - added tests for this
1900 * Moose::Meta::Method::Accessor
1901 - fixed issue with generated accessor code making
1902 assumptions about hash based classes (thanks to dexter)
1904 * Moose::Coookbook::Snacks
1905 - these are bits of documentation, not quite as big as
1906 Recipes but which have no clear place in the module docs.
1907 So they are Snacks! (horray for castaway++)
1909 * Moose::Cookbook::Recipe4
1910 - updated it to use the new ArrayRef[MyType] construct
1911 - updated the accompanying test as well
1913 +++ Major Refactor of the Type Constraint system +++
1914 +++ with new features added as well +++
1916 * Moose::Util::TypeConstraint
1917 - no longer uses package variable to keep track of
1918 the type constraints, now uses the an instance of
1919 Moose::Meta::TypeConstraint::Registry to do it
1920 - added more sophisticated type notation parsing
1922 - added tests for this
1924 * Moose::Meta::TypeConstraint
1925 - some minor adjustments to make subclassing easier
1926 - added the package_defined_in attribute so that we
1927 can track where the type constraints are created
1929 * Moose::Meta::TypeConstraint::Union
1930 - this is now been refactored to be a subclass of
1931 Moose::Meta::TypeConstraint
1933 * Moose::Meta::TypeCoercion::Union
1934 - this has been added to service the newly refactored
1935 Moose::Meta::TypeConstraint::Union and is itself
1936 a subclass of Moose::Meta::TypeCoercion
1938 * Moose::Meta::TypeConstraint::Parameterized
1939 - added this module (taken from MooseX::AttributeHelpers)
1940 to help construct nested collection types
1941 - added tests for this
1943 * Moose::Meta::TypeConstraint::Registry
1944 - added this class to keep track of type constraints
1946 0.25 Mon. Aug. 13, 2007
1948 - Documentation update to reference Moose::Util::TypeConstraints
1949 under 'isa' in 'has' for how to define a new type
1950 (thanks to shlomif).
1952 * Moose::Meta::Attribute
1953 - required attributes now will no longer accept undef
1954 from the constructor, even if there is a default and lazy
1955 - added tests for this
1956 - default subroutines must return a value which passes the
1958 - added tests for this
1960 * Moose::Meta::Attribute
1961 * Moose::Meta::Method::Constructor
1962 * Moose::Meta::Method::Accessor
1963 - type-constraint tests now handle overloaded objects correctly
1964 in the error message
1965 - added tests for this (thanks to EvanCarroll)
1967 * Moose::Meta::TypeConstraint::Union
1968 - added (has_)hand_optimized_constraint to this class so that
1969 it behaves as the regular Moose::Meta::TypeConstraint does.
1972 - large refactoring of this code
1973 - added several more tests
1974 - tests for subtle conflict resolition issues
1975 added, but not currently running
1978 * Moose::Cookbook::Recipe7
1979 - added new recipe for augment/inner functionality
1981 - added test for this
1984 - a formal definition of roles (still in progress)
1987 - utilities for easier working with Moose classes
1988 - added tests for these
1991 - This contains Moose specific test functions
1992 - added tests for these
1994 0.24 Tues. July 3, 2007
1995 ~ Some doc updates/cleanup ~
1997 * Moose::Meta::Attribute
1998 - added support for roles to be given as parameters
1999 to the 'handles' option.
2000 - added tests and docs for this
2001 - the has '+foo' attribute form now accepts changes to
2002 the lazy option, and the addition of a handles option
2003 (but not changing the handles option)
2004 - added tests and docs for this
2007 - required methods are now fetched using find_method_by_name
2008 so that required methods can come from superclasses
2009 - adjusted tests for this
2011 0.23 Mon. June 18, 2007
2012 * Moose::Meta::Method::Constructor
2013 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2014 * Moose::Meta::Class
2015 - Modify make_immutable to work with the new Class::MOP immutable
2016 mechanism + POD + very basic test (groditi)
2017 * Moose::Meta::Attribute
2018 - Fix handles to use goto() so that caller() comes out properly on
2019 the other side (perigrin)
2021 0.22 Thurs. May 31, 2007
2022 * Moose::Util::TypeConstraints
2023 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2024 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2025 prototypes for functions
2026 - added the ClassName type constraint, this checks for strings
2027 which will respond true to ->isa(UNIVERSAL).
2028 - added tests and docs for this
2029 - subtyping just in name now works correctly by making the
2030 default for where be { 1 }
2031 - added test for this
2033 * Moose::Meta::Method::Accessor
2034 - coerce and lazy now work together correctly, thanks to
2035 merlyn for finding this bug
2036 - tests added for this
2037 - fix reader presedence bug in Moose::Meta::Attribute + tests
2040 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2041 a HASH-ref and missed. This produces better error messages then
2042 having it die cause undef is not a HASH.
2043 - added tests for this
2045 0.21 Thursday, May 2nd, 2007
2047 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2048 - modified unimport to remove super and inner along with the rest
2049 - altered unimport tests to handle this
2052 - altered super export to populate SUPER_SLOT
2054 * Moose::Meta::Class
2055 - altered augment and override modifier application to use *_SLOT
2056 - modified tests for these to unimport one test class each to test
2059 - fixed issue where custom attribute metaclasses
2060 where not handled correctly in roles
2061 - added tests for this
2063 * Moose::Meta::Class
2064 - fixed issue where extending metaclasses with
2065 roles would blow up. Thanks to Aankhen`` for
2066 finding this insidious error, and it's solution.
2068 ~~ lots of spelling and grammer fixes in the docs,
2069 many many thanks to rlb3 and Aankhen for these :)
2071 0.20 Friday, April 6th, 2007
2072 >> I messed up the SKIP logic in one test
2073 so this release is just to fix that.
2076 - 'has' now also accepts an ARRAY ref
2077 to create multiple attrs (see docs)
2078 (thanks to konobi for this)
2079 - added tests and docs
2081 0.19 Thurs. April 5th, 2007
2082 ~~ More documentation updates ~~
2084 * Moose::Util::TypeConstraints
2085 - 'type' now supports messages as well
2086 thanks to phaylon for finding this
2087 - added tests for this
2088 - added &list_all_type_constraints and
2089 &list_all_builtin_type_constraints
2090 functions to facilitate introspection.
2092 * Moose::Meta::Attribute
2093 - fixed regexp 'handles' declarations
2094 to build the list of delegated methods
2095 correctly (and not override important
2096 things like &new) thanks to ashleyb
2098 - added tests and docs for this
2099 - added the 'documentation' attributes
2100 so that you can actually document your
2101 attributes and inspect them through the
2103 - added tests and docs for this
2105 * Moose::Meta::Class
2106 - when loading custom attribute metaclasses
2107 it will first look in for the class in the
2108 Moose::Meta::Attribute::Custom::$name, and
2109 then default to just loading $name.
2110 - added tests and docs for this
2112 * Moose::Meta::TypeConstraint
2113 - type constraints now stringify to their names.
2114 - added test for this
2117 - added tests to assure we work with Module::Refresh
2118 - added stricter test skip logic in the Moose POOP
2119 test, ask Rob Kinyon why.
2120 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2122 0.18 Sat. March 10, 2007
2123 ~~ Many, many documentation updates ~~
2126 - We now use Class::MOP::load_class to
2128 - added tests to show types and subtypes
2129 working with Declare::Constraints::Simple
2130 and Test::Deep as constraint engines.
2133 !! You must have Class::MOP 0.37_001 !!
2134 !! for this developer release to work !!
2136 This release was primarily adding the immutable
2137 feature to Moose. An immutable class is one which
2138 you promise not to alter. When you set the class
2139 as immutable it will perform various bits of
2140 memoization and inline certain part of the code
2141 (constructors, destructors and accessors). This
2142 minimizes (and in some cases totally eliminates)
2143 one of Moose's biggest performance hits. This
2144 feature is not on by default, and is 100% optional.
2145 It has several configurable bits as well, so you
2146 can pick and choose to your specific needs.
2148 The changes involved in this were fairly wide and
2149 highly specific, but 100% backwards compatible, so
2150 I am not going to enumerate them here. If you are
2151 truely interested in what was changed, please do
2154 0.17 Tues. Nov. 14, 2006
2155 * Moose::Meta::Method::Accessor
2156 - bugfix for read-only accessors which
2157 are have a type constraint and lazy.
2158 Thanks to chansen for finding it.
2160 0.16 Tues. Nov. 14, 2006
2162 There are some speed improvements in this release,
2163 but they are only the begining, so stay tuned.
2166 - BUILDALL and DEMOLISHALL no longer get
2167 called unless they actually need to be.
2168 This gave us a signifigant speed boost
2169 for the cases when there is no BUILD or
2170 DEMOLISH method present.
2172 * Moose::Util::TypeConstraints
2173 * Moose::Meta::TypeConstraint
2174 - added an 'optimize_as' option to the
2175 type constraint, which allows for a
2176 hand optimized version of the type
2177 constraint to be used when possible.
2178 - Any internally created type constraints
2179 now provide an optimized version as well.
2181 0.15 Sun. Nov. 5, 2006
2183 This version of Moose *must* have Class::MOP 0.36 in order
2184 to work correctly. A number of small internal tweaks have
2185 been made in order to be compatible with that release.
2187 * Moose::Util::TypeConstraints
2188 - added &unimport so that you can clean out
2189 your class namespace of these exported
2192 * Moose::Meta::Class
2193 - fixed minor issue which occasionally
2194 comes up during global destruction
2196 - moved Moose::Meta::Method::Overriden into
2200 - moved Moose::Meta::Role::Method into
2203 * Moose::Meta::Attribute
2204 - changed how we do type checks so that
2205 we reduce the overall cost, but still
2208 - moved accessor generation methods to
2209 Moose::Meta::Method::Accessor to
2210 conform to the API changes from
2213 * Moose::Meta::TypeConstraint
2214 - changed how constraints are compiled
2215 so that we do less recursion and more
2216 iteration. This makes the type check
2218 - moved Moose::Meta::TypeConstraint::Union
2221 * Moose::Meta::Method::Accessor
2222 - created this from methods formerly found in
2223 Moose::Meta::Attribute
2225 * Moose::Meta::Role::Method
2226 - moved this from Moose::Meta::Role
2228 * Moose::Meta::Method::Overriden
2229 - moved this from Moose::Meta::Class
2231 * Moose::Meta::TypeConstraint::Union
2232 - moved this from Moose::Meta::TypeConstraint
2234 0.14 Mon. Oct. 9, 2006
2236 * Moose::Meta::Attribute
2237 - fixed lazy attributes which were not getting
2238 checked with the type constraint (thanks ashley)
2239 - added tests for this
2240 - removed the over-enthusiastic DWIMery of the
2241 automatic ArrayRef and HashRef defaults, it
2242 broke predicates in an ugly way.
2243 - removed tests for this
2245 0.13 Sat. Sept. 30, 2006
2247 This version of Moose *must* have Class::MOP 0.35 in order
2248 to work correctly. A number of small internal tweaks have
2249 been made in order to be compatible with that release.
2252 - Removed the use of UNIVERSAL::require to be a better
2253 symbol table citizen and remove a dependency
2254 (thanks Adam Kennedy)
2256 **~~ removed experimental & undocumented feature ~~**
2257 - commented out the 'method' and 'self' keywords, see the
2258 comments for more info.
2261 - added a FAQ and WTF files to document frequently
2262 asked questions and common problems
2264 * Moose::Util::TypeConstraints
2265 - added GlobRef and FileHandle type constraint
2266 - added tests for this
2268 * Moose::Meta::Attribute
2269 - if your attribute 'isa' ArrayRef of HashRef, and you have
2270 not explicitly set a default, then make the default DWIM.
2271 This will also work for subtypes of ArrayRef and HashRef
2273 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2274 - new test added for this (thanks to ashley)
2277 - added basic support for runtime role composition
2278 but this is still *highly experimental*, so feedback
2279 is much appreciated :)
2280 - added tests for this
2282 * Moose::Meta::TypeConstraint
2283 - the type constraint now handles the coercion process
2284 through delegation, this is to support the coercion
2287 * Moose::Meta::TypeConstraint::Union
2288 - it is now possible for coercions to be performed
2290 - added tests for this (thanks to konobi)
2292 * Moose::Meta::TypeCoercion
2293 - properly capturing error when type constraint
2297 - Scalar::Util 1.18 is bad on Win32, so temporarily
2298 only require version 1.17 for Win32 and cygwin.
2299 (thanks Adam Kennedy)
2301 0.12 Sat. Sept. 1, 2006
2303 - Recipe5 (subtypes & coercion) has been written
2306 - fixed "bad meta" error message to be more descriptive
2307 - fixed &unimport to not remove the &inner and &super
2308 keywords because we need to localize them.
2309 - fixed number of spelling/grammer issues, thanks Theory :)
2311 **~~ experimental & undocumented feature ~~**
2312 - added the method and self keywords, they are basically
2313 just sugar, and they may not stay around.
2316 - added &dump method to easily Data::Dumper
2319 * Moose::Meta::TypeConstraint
2320 - added the &is_a_type_of method to check both the current
2321 and the subtype of a method (similar to &isa with classes)
2324 - this is now a subclass of Class::MOP::Module, and no longer
2325 creates the _role_meta ugliness of before.
2326 - fixed tests to reflect this change
2328 0.11 Wed. July 12, 2006
2330 - added an &unimport method to remove all the keywords
2331 that Moose will import, simply add 'no Moose' to the
2332 bottom of your class file.
2335 - fixed some test failures caused by a forgotten test
2338 0.10 Thurs. July 6, 2006
2340 - improved error message when loading modules so
2341 it is less confusing when you load a role.
2342 - added &calculate_all_roles method to
2343 Moose::Meta::Class and Moose::Meta::Role
2346 This module has been tested against Class::MOP 0.30
2347 but it does not yet utilize the optimizations
2348 it makes available. Stay tuned for that ;)
2350 0.09_03 Fri. June 23, 2006
2351 ++ DEVELOPER RELEASE ++
2353 - 'use strict' and 'use warnings' are no longer
2354 needed in Moose classes, Moose itself will
2355 turn them on for you.
2356 - added tests for this
2357 - moved code from exported subs to private methods
2358 in Moose::Meta::Class
2361 - as with Moose, strict and warnings are
2362 automatically turned on for you.
2363 - added tests for this
2366 - now handles an edge case for override errors
2367 - added tests for this
2368 - added some more edge case tests
2370 0.09_02 Tues. May 16, 2006
2371 ++ DEVELOPER RELEASE ++
2373 - added prototypes to the exported subs
2377 - added prototypes to the exported subs
2380 * Moose::Util::TypeConstraints
2381 - cleaned up prototypes for the subs
2384 0.09_01 Fri. May 12, 2006
2385 ++ DEVELOPER RELEASE ++
2386 - This release works in combination with
2387 Class::MOP 0.29_01, it is a developer
2388 release because it uses the a new
2389 instance sub-protocol and a fairly
2390 complete Role implementation. It has
2391 not yet been optimized, so it slower
2392 the the previous CPAN version. This
2393 release also lacks good updated docs,
2394 the official release will have updated docs.
2397 - refactored the keyword exports
2398 - 'with' now checks Role validaity and
2399 accepts more than one Role at a time
2400 - 'extends' makes metaclass adjustments as
2401 needed to ensure metaclass compatibility
2404 - refactored the keyword exports
2405 - 'with' now checks Role validaity and
2406 accepts more than one Role at a time
2408 * Moose::Util::TypeConstraints
2409 - added the 'enum' keyword for simple
2410 string enumerations which can be used as
2412 - see example of usage in t/202_example.t
2415 - more careful checking of params to new()
2418 - much work done on the role composition
2419 - many new tests for conflict detection
2420 and composition edge cases
2421 - not enough documentation, I suggest
2422 looking at the tests
2424 * Moose::Meta::Instance
2425 - added new Instance metaclass to support
2426 the new Class::MOP instance protocol
2428 * Moose::Meta::Class
2429 - some small changes to support the new
2431 - some small additions to support Roles
2433 * Moose::Meta::Attribute
2434 - some improvements to the accessor generation code
2436 - some small changes to support the new
2438 - (still somewhat) experimental delegation support
2439 with the 'handles' option
2440 - added several tests for this
2441 - no docs for this yet
2443 0.05 Thurs. April 27, 2006
2445 - keywords are now exported with Sub::Exporter
2446 thanks to chansen for this commit
2447 - has keyword now takes a 'metaclass' option
2448 to support custom attribute meta-classes
2449 on a per-attribute basis
2450 - added tests for this
2451 - the 'has' keyword not accepts inherited slot
2452 specifications (has '+foo'). This is still an
2453 experimental feature and probably not finished
2454 see t/038_attribute_inherited_slot_specs.t for
2455 more details, or ask about it on #moose
2456 - added tests for this
2459 - keywords are now exported with Sub::Exporter
2461 * Moose::Utils::TypeConstraints
2462 - reorganized the type constraint hierarchy, thanks
2463 to nothingmuch and chansen for his help and advice
2465 - added some tests for this
2466 - keywords are now exported with Sub::Exporter
2467 thanks to chansen for this commit
2469 * Moose::Meta::Class
2470 - due to changes in Class::MOP, we had to change
2471 construct_instance (for the better)
2473 * Moose::Meta::Attribute
2474 - due to changes in Class::MOP, we had to add the
2475 initialize_instance_slot method (it's a good thing)
2477 * Moose::Meta::TypeConstraint
2478 - added type constraint unions
2479 - added tests for this
2480 - added the is_subtype_of predicate method
2481 - added tests for this
2483 0.04 Sun. April 16th, 2006
2485 - Roles can now consume other roles
2486 - added tests for this
2487 - Roles can specify required methods now with
2488 the requires() keyword
2489 - added tests for this
2492 - ripped out much of it's guts ,.. much cleaner now
2493 - added required methods and correct handling of
2494 them in apply() for both classes and roles
2495 - added tests for this
2496 - no longer adds a does() method to consuming classes
2497 it relys on the one in Moose::Object
2498 - added roles attribute and some methods to support
2499 roles consuming roles
2501 * Moose::Meta::Attribute
2502 - added support for triggers on attributes
2503 - added tests for this
2504 - added support for does option on an attribute
2505 - added tests for this
2507 * Moose::Meta::Class
2508 - added support for attribute triggers in the
2510 - added tests for this
2513 - Moose no longer creates a subtype for your class
2514 if a subtype of the same name already exists, this
2515 should DWIM in 99.9999% of all cases
2517 * Moose::Util::TypeConstraints
2518 - fixed bug where incorrect subtype conflicts were
2520 - added test for this
2523 - this class can now be extended with 'use base' if
2524 you need it, it properly loads the metaclass class now
2525 - added test for this
2527 0.03_02 Wed. April 12, 2006
2529 - you must now explictly use Moose::Util::TypeConstraints
2530 it no longer gets exported for you automatically
2533 - new() now accepts hash-refs as well as key/value lists
2534 - added does() method to check for Roles
2535 - added tests for this
2537 * Moose::Meta::Class
2538 - added roles attribute along with the add_role() and
2540 - added tests for this
2543 - now adds a does() method to consuming classes
2544 which tests the class's hierarchy for roles
2545 - added tests for this
2547 0.03_01 Mon. April 10, 2006
2549 - added new Role recipe (no content yet, only code)
2552 - added 'with' keyword for Role support
2553 - added test and docs for this
2554 - fixed subtype quoting bug
2555 - added test for this
2559 - added test and docs
2561 * Moose::Util::TypeConstraints
2562 - added the message keyword to add custom
2563 error messages to type constraints
2566 - the meta role to support Moose::Role
2567 - added tests and docs
2569 * Moose::Meta::Class
2570 - moved a number of things from Moose.pm
2571 to here, they should have been here
2574 * Moose::Meta::Attribute
2575 - moved the attribute option macros here
2576 instead of putting them in Moose.pm
2578 * Moose::Meta::TypeConstraint
2579 - added the message attributes and the
2581 - added tests and docs for this
2583 0.03 Thurs. March 30, 2006
2585 - added the Moose::Cookbook with 5 recipes,
2586 describing all the stuff Moose can do.
2589 - fixed an issue with &extends super class loading
2590 it now captures errors and deals with inline
2591 packages correctly (bug found by mst, solution
2593 - added super/override & inner/augment features
2594 - added tests and docs for these
2597 - BUILDALL now takes a reference of the %params
2598 that are passed to &new, and passes that to
2601 * Moose::Util::TypeConstraints
2602 - Type constraints now survive runtime reloading
2603 - added test for this
2605 * Moose::Meta::Class
2606 - fixed the way attribute defaults are handled
2607 during instance construction (bug found by chansen)
2609 * Moose::Meta::Attribute
2610 - read-only attributes now actually enforce their
2611 read-only-ness (this corrected in Class::MOP as
2614 0.02 Tues. March 21, 2006
2616 - many more tests, fixing some bugs and
2618 - &extends now loads the base module with
2620 - added UNIVERSAL::require to the
2623 - each new Moose class will also create
2624 and register a subtype of Object which
2625 correspond to the new Moose class.
2626 - the 'isa' option in &has now only
2627 accepts strings, and will DWIM in
2630 * Moose::Util::TypeConstraints
2631 - added type coercion features
2632 - added tests for this
2633 - added support for this in attributes
2634 and instance construction
2636 - type construction no longer creates a
2637 function, it registers the type instead.
2638 - added several functions to get the
2642 - BUILDALL and DEMOLISHALL were broken
2643 because of a mis-named hash key, Whoops :)
2645 * Moose::Meta::Attribute
2646 - adding support for coercion in the
2647 autogenerated accessors
2649 * Moose::Meta::Class
2650 - adding support for coercion in the
2651 instance construction
2653 * Moose::Meta::TypeConstraint
2654 * Moose::Meta::TypeCoercion
2655 - type constraints and coercions are now
2656 full fledges meta-objects
2658 0.01 Wed. March 15, 2006
2659 - Moooooooooooooooooose!!!