1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Meta::Attribute::Native
6 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
8 0.89_01 Wed Sep 2, 2009
9 * Moose::Meta::Attribute
10 - Added the currying syntax for delegation from AttributeHelpers to the
11 existing delegation API. (hdp)
13 * Moose::Meta::Attribute::Native
14 - We have merged the functionality of MooseX::AttributeHelpers into the
15 Moose core with some API tweaks. You can continue to use
16 MooseX::AttributeHelpers, but it will not be maintained except
17 (perhaps) for critical bug fixes in the future. See
18 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
22 * Moose::Error::Confess
23 - Clarify documentation on how to use different error-throwing
24 modules. (Curtis Jewell)
27 - Correct POD for builder to point to Recipe8, not 9. (gphat)
30 * Moose::Manual::Attributes
31 - Clarify "is", include discussion of "bare". (Sartak)
33 * Moose::Meta::Role::Method::Conflicting
34 * Moose::Meta::Role::Application::ToClass
35 - For the first set of roles involved in a conflict, report all
36 unresolved method conflicts, not just the first method. Fixes #47210
37 reported by Ovid. (Sartak)
39 * Moose::Meta::TypeConstraint
40 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
43 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
45 - Allow specifying role options (alias, excludes, MXRP stuff) in the
46 arrayref passed to "use Moose -traits" (doy)
49 - Add functions meta_class_alias and meta_attribute_alias for creating
50 aliases for class and attribute metaclasses and metatraits. (doy)
52 * Moose::Meta::Attribute
53 * Moose::Meta::Method::Accessor
54 - A trigger now receives the old value as a second argument, if the
55 attribute had one. (Dave Rolsky)
57 * Moose::Meta::Method::Constructor
58 - Fix a bug with $obj->new when $obj has stringify overloading.
59 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
60 - However, we will probably deprecate $obj->new, so please don't start
61 using it for new code!
63 * Moose::Meta::Role::Application
64 * Moose::Meta::Role::Application::RoleSummation
65 - Rename alias and excludes to -alias and -excludes (but keep the old
66 names for now, for backcompat) (doy)
69 * Moose::Manual::Contributing
70 - Re-write the Moose::Manual::Contributing document to reflect
71 the new layout and methods of work for the Git repository. All
72 work now should be done in topic branches and reviewed by a
73 core committer before being applied to master. All releases
74 are done by a cabal member and merged from master to
75 stable. This plan was devised by Yuval, blame him. (perigrin)
78 - Create metaclass attributes for the different role application
81 * Moose::Util::MetaRole
82 - Allow applying roles to a meta role's role application
85 * Moose::Meta::Attribute
86 - Add weak_ref to allowed options for "has '+foo'" (mst)
88 * Moose::Meta::Method::Accessor
89 - No longer uses inline_slot_access in accessors, to support
90 non-lvalue-based meta instances. (sorear)
93 * Moose::Meta::Method::Delegation
94 - Once again allow class names as well as objects for
95 delegation. This was changed in 0.86.
98 * Moose::Meta::Class::Immutable::Trait
99 - Fixes to work with the latest Class::MOP.
101 * Moose::Meta::Method::Delegation
102 - Delegation now dies with a more useful error message if the
103 attribute's accessor returns something defined but
106 0.85 Fri, Jun 26, 2009
107 * Moose::Meta::Attribute
108 - The warning for 'no associated methods' is now split out into
109 the _check_associated_methods method, so that extensions can
110 safely call 'after install_accessors => ...'. This fixes a
111 warning from MooseX::AttributeHelpers. (hdp)
113 0.84 Fri, Jun 26, 2009
115 - has now sets definition_context for attributes defined in
118 * Moose::Meta::Attribute
119 - When adding an attribute to a metaclass, if the attribute has
120 no associated methods, it will give a deprecation
122 - Methods generated by delegation were not being added to
123 associated_methods. (hdp)
124 - Attribute accessors (reader, writer, accessor, predicate,
125 clearer) now warn if they overwrite an existing method. (doy)
126 - Attribute constructors now warn very noisily about unknown (or
127 misspelled) arguments
129 * Moose::Util::TypeConstraints
130 - Deprecated the totally useless Role type name, which just
131 checked if $object->can('does'). Note that this is _not_ the
132 same as a type created by calling role_type('RoleName').
134 * Moose::Util::TypeConstraints
135 * Moose::Meta::TypeConstraint::DuckType
136 - Reify duck type from a regular subtype into an actual class
138 - Document this because Sartak did all my work for me
141 * Moose::Meta::Attribute
142 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
143 it is just a list of methods (Sartak)
146 - The get_*_method_modifiers methods would die if the role had
147 no modifiers of the given type (Robert Buels).
149 0.83 Tue, Jun 23, 2009
151 - Fix _construct_instance not setting the special __MOP__ object
152 key in instances of anon classes. (doy)
154 0.82 Sun, Jun 21, 2009
155 * Moose::Manual::Types
156 - Mention MooseX::Types early to avoid users falling down the
157 string parsing rathole (mst)
159 * Moose::Manual::MooseX
160 - Add warnings about class-level extensions and mention considering
161 using plain objects instead
163 0.81 Sun, Jun 7, 2009
164 * Bumped our Class::MOP prereq to the latest version (0.85), since
167 0.80 Sat, Jun 6, 2009
169 - Add FAQ about the coercion change from 0.76 because it came up
170 three times today (perigrin)
171 - Win doy $10 dollars because Sartak didn't think anybody
172 would document this fast enough (perigrin)
174 * Moose::Meta::Method::Destructor
175 - Inline a DESTROY method even if there are no DEMOLISH methods
176 to prevent unnecessary introspection in
177 Moose::Object::DEMOLISHALL
180 - A role's required methods are now represented by
181 Moose::Meta::Role::Method::Required objects. Conflicts are now
182 represented by Moose::Meta::Role::Method::Conflicting
183 objects. The benefit for end-users in that unresolved
184 conflicts generate different, more instructive, errors,
185 resolving Ovid's #44895. (Sartak)
188 - Improve the error message of "extends" as suggested by Adam
189 Kennedy and confound (Sartak)
190 - Link to Moose::Manual::Roles from Moose::Role as we now have
191 excellent documentation (Adam Kennedy)
194 - Update test suite for subname change in Class::MOP
196 - Add TODO test for infinite recursion in Moose::Meta::Class
199 0.79 Wed, May 13, 2009
201 - More fixes for Win32 problems. Reported by Robert Krimen.
204 - The DEMOLISHALL method could still blow up in some cases
205 during global destruction. This method has been made more
206 resilient in the face of global destruction's random garbage
210 - If you "also" a module that isn't loaded, the error message
211 now acknowledges that (Sartak)
214 - When your ->meta method does not return a Moose::Meta::Class,
215 the error message gave the wrong output (Sartak)
217 0.78 Tue, May 12, 2009
218 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
219 - Merged these documents into what is now Moose::Manual::FAQ
222 - Moved to Moose::Manual::Unsweetened
224 * Moose::Cookbook::Basics::Recipes 9-12
225 - Renamed to be 8-11, since recipe 8 did not exist
228 - Make Moose::Exporter import strict and warnings into packages
232 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
233 methods during global destruction (doy)
236 * Moose::Meta::Role::Application::ToClass
237 - Track the Role::Application objects created during class-role
241 - Fix metaclass incompatibility errors when extending a vanilla perl
242 class which isa Moose class with a metaclass role applied (t0m)
245 - Add a role-combination hook, _role_for_combination, for the
246 benefit of MooseX::Role::Parameterized (Sartak)
249 - Some tests were failing on Win32 because they explicit checked
250 warning output for newlines. Reported by Nickolay Platonov.
252 0.77 Sat, May 2, 2009
254 - Add explicit use of Devel::GlobalDestruction and Sub::Name
258 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
259 or not we are currently in global destruction (doy)
260 - Add explicit use of Devel::GlobalDestruction and Sub::Name
263 * Moose::Cookbook::FAQ
264 - Reworked much of the existing content to be more useful to
265 modern Moose hackers (Sartak)
268 - Depend on Class::MOP 0.83 instead of 0.82_01.
270 0.76 Mon, April 27, 2009
271 * Moose::Meta::TypeConstraint
272 - Do not run coercions in coerce() if the value already passes the type
275 * Moose::Meta::TypeConstraint::Class
276 - In validation error messages, specifically say that the value is not
277 an instance of the class. This should alleviate some frustrating
278 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
280 * Moose::Meta::Role::Application::ToClass
281 - Revert the class-overrides-role warning in favor of a solution outside
282 of the Moose core (Sartak)
285 - Make Test::Output optional again, since it's only used in a few files
288 0.75_01 Thu, April 23, 2009
289 * Moose::Meta::Role::Application::ToClass
290 - Moose now warns about each class overriding methods from roles it
294 - Warnings tests have standardized on Test::Output which is now an
295 unconditionally dependency (Sartak)
298 - Changes to immutabilization to work with Class::MOP 0.82_01+.
300 0.75 Mon, April 20, 2009
303 - Move validation of not inheriting from roles from Moose::extends to
304 Moose::Meta::Class::superclasses (doy)
307 - add ensure_all_roles() function to encapsulate the common "apply this
308 role unless the object already does it" pattern (hdp)
311 - Users can now select a different metaclass with the "-metaclass"
312 option to import, for classes and roles (Sartak)
315 - Make method_metaclass an attr so that it can accept a metarole
318 0.74 Tue, April 7, 2009
320 * Moose::Meta::Method::Destructor
321 - Include stack traces in the deprecation warnings.
325 - Removed the long-deprecated _apply_all_roles method.
327 * Moose::Meta::TypeConstraint
328 - Removed the long-deprecated union method.
331 0.73_02 Mon, April 6, 2009
332 * More deprecations and renamings
333 - Moose::Meta::Method::Constructor
334 - initialize_body => _initialize_body (this is always called
335 when an object is constructed)
338 - The DEMOLISHALL method could throw an exception during global
339 destruction, meaning that your class's DEMOLISH methods would
340 not be properly called. Reported by t0m.
342 * Moose::Meta::Method::Destructor
343 - Destructor inlining was totally broken by the change to the
344 is_needed method in 0.72_01. Now there is a test for this
345 feature, and it works again.
348 - Bold the word 'not' in the POD for find_meta (t0m)
350 0.73_01 Sun, April 5, 2009
352 - Call user_class->meta in fewer places, with the eventual goal
353 of allowing the user to rename or exclude ->meta
354 altogether. Instead uses Class::MOP::class_of. (Sartak)
356 * Moose::Meta::Method::Accessor
357 - If an attribute had a lazy default, and that value did not
358 pass the attribute's type constraint, it did not get the
359 message from the type constraint, instead using a generic
360 message. Test provided by perigrin.
362 * Moose::Util::TypeConstraints
363 - Add duck_type keyword. It's sugar over making sure an object
364 can() a list of methods. This is easier than jrockway's
365 suggestion to fork all of CPAN. (perigrin)
366 - add tests and documentation (perigrin)
369 - Document the fact that init_meta() returns the target class's
370 metaclass object. (hdp)
372 * Moose::Cookbook::Extending::Recipe1
373 * Moose::Cookbook::Extending::Recipe2
374 * Moose::Cookbook::Extending::Recipe3
375 * Moose::Cookbook::Extending::Recipe4
376 - Make init_meta() examples explicitly return the metaclass and
377 point out this fact. (hdp)
379 * Moose::Cookbook::Basics::Recipe12
380 - A new recipe, creating a custom meta-method class.
382 * Moose::Cookbook::Meta::Recipe6
383 - A new recipe, creating a custom meta-method class.
386 * Moose::Meta::Method::Constructor
387 - Attribute triggers no longer receive the meta-attribute object
388 as an argument in any circumstance. Previously, triggers
389 called during instance construction were passed the
390 meta-attribute, but triggers called by normal accessors were
391 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
393 * Moose::Manual::Attributes
394 - Remove references to triggers receving the meta-attribute object as an
397 * Moose::Cookbook::FAQ
398 - Remove recommendation for deprecated Moose::Policy and
399 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
402 * Many methods have been renamed with a leading underscore, and a
403 few have been deprecated entirely. The methods with a leading
404 underscore are consider "internals only". People writing
405 subclasses or extensions to Moose should feel free to override
406 them, but they are not for "public" use.
409 - check_metaclass_compatibility => _check_metaclass_compatibility
411 - Moose::Meta::Method::Accessor
412 - initialize_body => _initialize_body (this is always called
413 when an object is constructed)
414 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
416 - Moose::Meta::Method::Constructor
417 - initialize_body => _initialize_body (this is always called
418 when an object is constructed)
419 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
420 - attributes => _attributes (now inherited from parent)
421 - meta_instance => _meta_instance (now inherited from parent)
424 - alias_method is deprecated. Use add_method
426 0.73 Fri, March 29, 2009
427 * No changes from 0.72_01.
429 0.72_01 Thu, March 26, 2009
431 - Almost every module has complete API documentation. A few
432 methods (and even whole classes) have been intentionally
433 excluded pending some rethinking of their APIs.
435 * Moose::Util::TypeConstraints
436 - Calling subtype with a name as the only argument is now an
437 exception. If you want an anonymous subtype do:
439 my $subtype = subtype as 'Foo';
441 * Moose::Cookbook::Meta::Recipe7
442 - A new recipe, creating a custom meta-instance class.
444 * Moose::Cookbook::Basics::Recipe5
445 - Fix various typos and mistakes. Includes a patch from Radu
448 * Moose::Cookbook::Basics::Recipe9
449 - Link to this recipe from Moose.pm's builder blurb
452 - When wrapping a function with a prototype, Moose::Exporter now
453 makes sure the wrapped function still has the same
454 prototype. (Daisuke Maki)
456 * Moose::Meta::Attribute
457 - Allow a subclass to set lazy_build for an inherited
461 - Explicitly depend on Data::OptList. We already had this dependency
462 via Sub::Exporter, but since we're using it directly we're
463 better off with it listed. (Sartak)
465 * Moose::Meta::Method::Constructor
466 - Make it easier to subclass the inlining behaviour. (Ash
469 * Moose::Manual::Delta
470 - Details significant changes in the history of Moose, along
471 with recommended workarounds.
473 * Moose::Manual::Contributing
474 - Contributor's guide to Moose.
476 * Moose::Meta::Method::Constructor
477 - The long-deprecated intialize_body method has been removed
478 (yes, spelled like that).
480 * Moose::Meta::Method::Destructor
481 - This is_needed method is now always a class method.
484 - Changes to the internals of how make_immutable works to match
485 changes in latest Class::MOP.
487 0.72 Mon, February 23, 2009
489 * Moose::Meta::Method::Constructor
490 - A mutable class accepted Foo->new(undef) without complaint,
491 while an immutable class would blow up with an unhelpful
492 error. Now, in both cases we throw a helpful error
493 instead. Reported by doy.
495 0.71_01 Sun, February 22, 2009
497 - Hopefully fixed some POD errors in a few recipes that caused
498 them to display weird on search.cpan.org.
500 * Moose::Util::TypeConstraints
501 - Calling type or subtype without the sugar helpers (as, where,
502 message) is now deprecated.
503 - The subtype function tried hard to guess what you meant, but
504 often got it wrong. For example:
506 my $subtype = subtype as 'ArrayRef[Object]';
508 This caused an error in the past, but now works as you'd
512 - Make sure Moose.pm is loaded before calling
513 Moose->throw_error. This wasn't normally an issue, but could
514 bite you in weird cases.
516 0.71 Thu, February 19, 2009
517 * Moose::Cookbook::Basics::Recipe11
518 - A new recipe which demonstrates the use of BUILDARGS and
521 * Moose::Cookbook::Roles::Recipe3
522 - A new recipe, applying a role to an object instance. (Dave
526 - Allow overriding specific keywords from "also" packages. (doy)
529 - Replace hardcoded cookbook tests with Test::Inline to ensure
530 the tests match the actual code in the recipes. (Dave Rolsky)
533 - Working on the above turned up a number of little bugs in the
534 recipe code. (Dave Rolsky)
536 * Moose::Util::TypeConstraints::Optimized
537 - Just use Class::MOP for the optimized ClassName check. (Dave
540 0.70 Sat, February 14, 2009
541 * Moose::Util::TypeConstraints
542 - Added the RoleName type (stevan)
543 - added tests for this (stevan)
545 * Moose::Cookbook::Basics::Recipe3
546 - Updated the before qw[left right] sub to be a little more
547 defensive about what it accepts (stevan)
548 - added more tests to t/000_recipies/basics/003_binary_tree.t
552 - We now always call DEMOLISHALL, even if a class does not
553 define DEMOLISH. This makes sure that method modifiers on
554 DEMOLISHALL work as expected. (doy)
555 - added tests for this (EvanCarroll)
557 * Moose::Util::MetaRole
558 - Accept roles for the wrapped_method_metaclass (rafl)
559 - added tests for this (rafl)
561 * Moose::Meta::Attribute
562 - We no longer pass the meta-attribute object as a final
563 argument to triggers. This actually changed for inlined code a
564 while back, but the non-inlined version and the docs were
568 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
569 they require 0.11. (Dave Rolsky)
572 - Lots of small changes to the manual, cookbook, and
573 elsewhere. These were based on feedback from various
574 users, too many to list here. (Dave Rolsky)
576 0.69 Thu, February 12, 2009
578 - Make some keyword errors use throw_error instead of croak
579 since Moose::Exporter wraps keywords now (Sartak)
582 - Revised every recipe for style and clarity. Also moved some
583 documentation out of cookbook recipes and into Moose::Manual
584 pages. This work was funded as part of the Moose docs grant
585 from TPF. (Dave Rolsky)
587 * Moose::Meta::Method::Delegation
588 - If the attribute doing the delegation was not populated, the
589 error message did not specify the attribute name
592 0.68 Wed, February 4, 2009
594 - Many spelling, typo, and formatting fixes by daxim.
596 * Moose::Manual::Attributes
597 - The NAME section in the POD used "Attribute" so search.cpan
598 didn't resolve links from other documents properly.
600 * Moose::Meta::Method::Overriden
601 - Now properly spelled as Overridden. Thanks to daxim for
604 0.67 Tue, February 3, 2009
606 - Lots of little typo fixes and a few clarifications. Several
607 pages didn't have proper titles, and so weren't actually
608 visible on search.cpan.org. Thanks to hanekomu for a variety
609 of fixes and formatting improvements.
611 0.66 Tue, February 3, 2009
613 - This is a brand new, extensive manual for Moose. This aims to
614 provide a complete introduction to all of Moose's
615 features. This work was funded as part of the Moose docs grant
616 from TPF. (Dave Rolsky)
618 * Moose::Meta::Attribute
619 - Added a delegation_metaclass method to replace a hard-coded
620 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
622 * Moose::Util::TypeConstraints
623 - If you created a subtype and passed a parent that Moose didn't
624 know about, it simply ignored the parent. Now it automatically
625 creates the parent as a class type. This may not be what you
626 want, but is less broken than before. (Dave Rolsky)
628 * Moose::Util::TypeConstraints
629 - This module tried throw errors by calling Moose->throw_error,
630 but it did not ensure that Moose was loaded first. This could
631 cause very unhelpful errors when it tried to throw an error
632 before Moose was loaded. (Dave Rolsky)
634 * Moose::Util::TypeConstraints
635 - You could declare a name with subtype such as "Foo!Bar" that
636 would be allowed, but if you used it in a parameterized type
637 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
638 vetting on names created via the sugar functions, so that they
639 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
641 0.65 Thu, January 22, 2008
642 * Moose and Moose::Meta::Method::Overridden
643 - If an overridden method called super(), and then the
644 superclass's method (not overridden) _also_ called super(),
645 Moose went into an endless recursion loop. Test provided by
646 Chris Prather. (Dave Rolsky)
648 * Moose::Meta::TypeConstraint
649 - All methods are now documented. (gphat)
651 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
652 - Fixed some bogus failures that occurred because we tried to
653 validate filesystem paths in a very ad-hoc and
654 not-quite-correct way. (Dave Rolsky)
656 * Moose::Util::TypeConstraints
657 - Added maybe_type to exports. See docs for details. (rjbs)
660 - Added Moose::Util::TypeConstraints to the SEE ALSO
664 - Methods created via an attribute can now fulfill a "requires"
665 declaration for a role. (nothingmuch)
667 * Moose::Meta::Method::*
668 - Stack traces from inlined code will now report its line and
669 file as being in your class, as opposed to in Moose
672 0.64 Wed, December 31, 2008
673 * Moose::Meta::Method::Accessor
674 - Always inline predicate and clearer methods (Sartak)
676 * Moose::Meta::Attribute
677 - Support for parameterized traits (Sartak)
678 - verify_against_type_constraint method to avoid duplication
679 and enhance extensibility (Sartak)
682 - Tests (but no support yet) for parameterized traits (Sartak)
685 - Require Class::MOP 0.75+, which has the side effect of making
686 sure we work on Win32. (Dave Rolsky)
688 0.63 Mon, December 8, 2008
690 - Some small grammar tweaks and bug fixes in non-Moose example
693 0.62_02 Fri, December 5, 2008
694 * Moose::Meta::Role::Application::ToClass
695 - When a class does not provide all of a role's required
696 methods, the error thrown now mentions all of the missing
697 methods, as opposed to just the first one found. Requested by
698 Curtis Poe (RT #41119). (Dave Rolsky)
700 * Moose::Meta::Method::Constructor
701 - Moose will no longer inline a constructor for your class
702 unless it inherits its constructor from Moose::Object, and
703 will warn when it doesn't inline. If you want to force
704 inlining anyway, pass "replace_constructor => 1" to
705 make_immutable. Addresses RT #40968, reported by Jon
706 Swartz. (Dave Rolsky)
707 - The quoting of default values could be broken if the default
708 contained a single quote ('). Now we use quotemeta to escape
709 anything potentially dangerous in the defaults. (Dave Rolsky)
711 0.62_01 Wed, December 3, 2008
713 - use the method->execute API for BUILDALL
714 and DEMOLISHALL (Sartak)
716 * Moose::Util::TypeConstraints
717 - We now make all the type constraint meta classes immutable
718 before creating the default types provided by Moose. This
719 should make loading Moose a little faster. (Dave Rolsky)
721 0.62 Wed November 26, 2008
722 * Moose::Meta::Role::Application::ToClass
723 Moose::Meta::Role::Application::ToRole
724 - fixed issues where excluding and aliasing the
725 same methods for a single role did not work
726 right (worked just fine with multiple
728 - added test for this (stevan)
730 * Moose::Meta::Role::Application::RoleSummation
731 - fixed the error message when trying to compose
732 a role with a role it excludes (Sartak)
735 - Catch another case where recursion caused the value
736 of $CALLER to be stamped on (t0m)
737 - added test for this (t0m)
740 - Remove the make_immutable keyword, which has been
741 deprecated since April. It breaks metaclasses that
742 use Moose without no Moose (Sartak)
744 * Moose::Meta::Attribute
745 - Removing an attribute from a class now also removes delegation
746 (handles) methods installed for that attribute (t0m)
747 - added test for this (t0m)
749 * Moose::Meta::Method::Constructor
750 - An attribute with a default that looked like a number (but was
751 really a string) would accidentally be treated as a number
752 when the constructor was made immutable (perigrin)
753 - added test for this (perigrin)
756 - create method for constructing a role
758 - added test for this (Sartak)
759 - anonymous roles! (Sartak)
760 - added test for this (Sartak)
763 - more consistent error messages (Sartak)
765 * Moose::Cookbook::Roles::Recipe1
766 - attempt to explain why a role that just requires
767 methods is useful (Sartak)
769 0.61 Fri November 7, 2008
770 * Moose::Meta::Attribute
771 - When passing a role to handles, it will be loaded if necessary
775 - Method objects returned by get_method (and other methods)
776 Could end up being returned without an associated_metaclass
777 attribute. Removing get_method_map, which is provided by
778 Class::MOP::Class, fixed this. The Moose version did nothing
779 different from its parent except introduce a bug. (Dave Rolsky)
780 - added tests for this (jdv79)
783 - Added a $VERSION to all .pm files which didn't have one. Fixes
784 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
786 * Moose::Cookbook::Basics::Recipe4
787 * Moose::Cookbook::Basics::Recipe6
788 - These files had spaces on the first line of the SYNOPSIS, as
789 opposed to a totally empty line. According to RT #40432, this
790 confuses POD parsers. (Dave Rolsky)
792 0.60 Fri October 24, 2008
794 - Passing "-traits" when loading Moose caused the Moose.pm
795 exports to be broken. Reported by t0m. (Dave Rolsky)
796 - Tests for this bug. (t0m)
799 - Change resolve_metaclass alias to use the new
800 load_first_existing_class function. This makes it a lot
801 simpler, and also around 5 times faster. (t0m)
802 - Add caching to resolve_metaclass_alias, which gives an order
803 of magnitude speedup to things which repeatedly call the
804 Moose::Meta::Attribute->does method, notably MooseX::Storage
807 * Moose::Util::TypeConstraint
808 - Put back the changes for parameterized constraints that
809 shouldn't have been removed in 0.59. We still cannot parse
810 them, but MooseX modules can create them in some other
811 way. See the 0.58 changes for more details. (jnapiorkowski)
812 - Changed the way subtypes are created so that the job is
813 delegated to a type constraint parent. This clears up some
814 hardcoded checking and should allow correct subtypes of
815 Moose::Meta::Type::Constraint. Don't rely on this new API too
816 much (create_child_type) because it may go away in the
817 future. (jnapiorkowski)
819 * Moose::Meta::TypeConstraint::Union
820 - Type constraint names are sorted as strings, not numbers.
823 * Moose::Meta::TypeConstraint::Parameterizable
824 - New parameterize method. This can be used as a factory method
825 to make a new type constraint with a given parameterized
826 type. (jnapiorkowski)
827 - added tests (jnapiorkowski)
829 0.59 Tue October 14, 2008
831 - Add abridged documentation for builder/default/initializer/
832 predicate, and link to more details sections in
833 Class::MOP::Attribute. (t0m)
835 * Moose::Util::TypeConstraints
836 - removed prototypes from all but the &-based stuff (mst)
838 * Moose::Util::TypeConstraints
839 - Creating a anonymous subtype with both a constraint and a
840 message failed with a very unhelpful error, but should just
841 work. Reported by t0m. (Dave Rolsky)
844 - Some tests that used Test::Warn if it was available failed
845 with older versions of Test::Warn. Reported by Fayland. (Dave
847 - Test firing behavior of triggers in relation to builder/default/
849 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
850 kinds of supported type. (t0m)
853 - In create(), do not pass "roles" option to the superclass
854 - added related test that creates an anon metaclass with
857 * Moose::Meta::TypeConstraint::Class
858 * Moose::Meta::TypeConstraint::Role
859 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
860 other types (as per change in 0.55_02). (t0m)
862 * Moose::Meta::TypeConstraint::Registry
863 - Fix warning when dealing with unknown type names (t0m)
865 * Moose::Util::TypeConstraints
866 - Reverted changes from 0.58 related to handle parameterized
867 types. This caused random failures on BSD and Win32 systems,
868 apparently related to the regex engine. This means that Moose
869 can no longer parse structured type constraints like
870 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
871 supported in a slightly different way via MooseX::Types some
872 time in the future. (Dave Rolsky)
874 0.58 Sat September 20, 2008
875 !! This release has an incompatible change regarding !!
876 !! how roles add methods to a class !!
878 * Roles and role application
879 ! Roles now add methods by calling add_method, not
880 alias_method. They make sure to always provide a method
881 object, which will be cloned internally. This means that it is
882 now possible to track the source of a method provided by a
883 role, and even follow its history through intermediate roles.
885 This means that methods added by a role now show up when
886 looking at a class's method list/map. (Dave Rolsky)
889 - From this release on, we'll try to maintain a list of
890 conflicting modules, and warn you if you have one
891 installed. For example, this release conflicts with ...
892 - MooseX::Singleton <= 0.11
893 - MooseX::Params::Validate <= 0.05
896 In general, we try to not break backwards compatibility for
897 most Moose users, but MooseX modules and other code which
898 extends Moose's metaclasses is often affected by very small
899 changes in the Moose internals.
901 * Moose::Meta::Method::Delegation
902 * Moose::Meta::Attribute
903 - Delegation methods now have their own method class. (Dave
906 * Moose::Meta::TypeConstraint::Parameterizable
907 - Added a new method 'parameterize' which is basically a factory
908 for the containing constraint. This makes it easier to create
909 new types of parameterized constraints. (jnapiorkowski)
911 * Moose::Meta::TypeConstraint::Union
912 - Changed the way Union types canonicalize their names to follow
913 the normalized TC naming rules, which means we strip all
914 whitespace. (jnapiorkowski)
916 * Moose::Util::TypeConstraints
917 - Parameter and Union args are now sorted, this makes Int|Str
918 the same constraint as Str|Int. (jnapiorkowski)
919 - Changes to the way Union types are parsed to more correctly
920 stringify their names. (jnapiorkowski)
921 - When creating a parameterized type, we now use the new
922 parameterize method. (jnapiorkowski)
923 - Incoming type constraint strings are now normalized to remove
924 all whitespace differences. (jnapiorkowski)
925 - Changed the way we parse type constraint strings so that we now
926 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
927 constraints. This lays the foundation for more flexible type
928 constraint implementations.
930 * Tests and docs for all the above. (jnapiorkowski)
934 - Moose::Exporter will no longer remove a subroutine that the
935 exporting package re-exports. Moose re-exports the
936 Carp::confess function, among others. The reasoning is that we
937 cannot know whether you have also explicitly imported those
938 functions for your own use, so we err on the safe side and
939 always keep them. (Dave Rolsky)
940 - added tests for this (rafl)
943 - Changes to how we fix metaclass compatibility that are much
944 too complicated to go into. The summary is that Moose is much
945 less likely to complain about metaclass incompatibility
946 now. In particular, if two metaclasses differ because
947 Moose::Util::MetaRole was used on the two corresponding
948 classes, then the difference in roles is reconciled for the
949 subclass's metaclass. (Dave Rolsky)
950 - Squashed an warning in _process_attribute (thepler)
953 - throw exceptions (sooner) for invalid attribute names (thepler)
954 - added tests for this (thepler)
956 * Moose::Util::MetaRole
957 - If you explicitly set a constructor or destructor class for a
958 metaclass object, and then applied roles to the metaclass,
959 that explicitly set class would be lost and replaced with the
963 * Moose::Meta::Attribute
964 * Moose::Meta::Method
967 * Moose::Error::Default
968 * Moose::Error::Croak
969 * Moose::Error::Confess
970 - All instances of confess() changed to use overridable
971 C<throw_error> method. This method ultimately calls a class
972 constructor, and you can change the class being called. In
973 addition, errors now pass more information than just a string.
974 The default C<error_class> behaves like C<Carp::confess>, so
975 the behavior is not visibly different for end users.
977 0.57 Wed September 3, 2008
979 - A new bit of doc intended to introduce folks familiar with
980 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
983 - Shows examples of two classes, each done first with and then
984 without Moose. This makes a nice parallel to
985 Moose::Intro. (Dave Rolsky)
987 * Moose::Util::TypeConstraints
988 - Fixed a bug in find_or_parse_type_constraint so that it
989 accepts a Moose::Meta::TypeConstraint object as the parent
990 type, not just a name (jnapiorkowski)
991 - added tests (jnapiorkowski)
994 - If Sub::Name was not present, unimporting failed to actually
995 remove some sugar subs, causing test failures (Dave Rolsky)
997 0.56 Mon September 1, 2008
998 For those not following the series of dev releases, there are
999 several major changes in this release of Moose.
1000 ! Moose::init_meta should now be called as a method. See the
1003 - Major performance improvements by nothingmuch.
1005 - New modules for extension writers, Moose::Exporter and
1006 Moose::Util::MetaRole by Dave Rolsky.
1008 - Lots of doc improvements and additions, especially in the
1011 - Various bug fixes.
1013 * Removed all references to the experimental-but-no-longer-needed
1014 Moose::Meta::Role::Application::ToMetaclassInstance.
1016 * Require Class::MOP 0.65.
1018 0.55_04 Sat August 30, 2008
1019 * Moose::Util::MetaRole
1020 * Moose::Cookbook::Extending::Recipe2
1021 - This simplifies the application of roles to any meta class, as
1022 well as the base object class. Reimplemented metaclass traits
1023 using this module. (Dave Rolsky)
1025 * Moose::Cookbook::Extending::Recipe1
1026 - This a new recipe, an overview of various ways to write Moose
1027 extensions (Dave Rolsky)
1029 * Moose::Cookbook::Extending::Recipe3
1030 * Moose::Cookbook::Extending::Recipe4
1031 - These used to be Extending::Recipe1 and Extending::Recipe2,
1034 0.55_03 Fri August 29, 2008
1035 * No changes from 0.55_02 except increasing the Class::MOP
1036 dependency to 0.64_07.
1038 0.55_02 Fri August 29, 2008
1039 * Makefile.PL and Moose.pm
1040 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1042 * Moose::Util::TypeConstraints
1043 - Fix warnings from find_type_constraint if the type is not
1046 * Moose::Meta::TypeConstraint
1047 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1048 return false if the type you specify cannot be found in the
1049 type registry, rather than throwing an unhelpful and
1050 coincidental exception. (t0m).
1051 - added docs & test for this (t0m)
1053 * Moose::Meta::TypeConstraint::Registry
1054 - add_type_constraint now throws an exception if a parameter is
1056 - added docs & test for this (t0m)
1058 * Moose::Cookbook::FAQ
1059 - Added a faq entry on the difference between "role" and "trait"
1063 - Fixed a bug that caused role composition to not see a required
1064 method when that method was provided by another role being
1065 composed at the same time. (Dave Rolsky)
1066 - test and bug finding (tokuhirom)
1068 0.55_01 Wed August 20, 2008
1070 !! Calling Moose::init_meta as a function is now !!
1071 !! deprecated. Please see the Moose.pm docs for details. !!
1073 * Moose::Meta::Method::Constructor
1074 - Fix inlined constructor so that values produced by default
1075 or builder methods are coerced as required. (t0m)
1076 - added test for this (t0m)
1078 * Moose::Meta::Attribute
1079 - A lazy attribute with a default or builder did not attempt to
1080 coerce the default value. The immutable code _did_
1082 - added test for this (t0m)
1085 - This is a new helper module for writing "Moose-alike"
1086 modules. This should make the lives of MooseX module authors
1087 much easier. (Dave Rolsky)
1090 * Moose::Cookbook::Meta::Recipe5
1091 - Implemented metaclass traits (and wrote a recipe for it):
1093 use Moose -traits => 'Foo'
1095 This should make writing small Moose extensions a little
1096 easier (Dave Rolsky)
1098 * Moose::Cookbook::Basics::Recipe1
1099 - Removed any examples of direct hashref access, and applied an
1100 editorial axe to reduce verbosity. (Dave Rolsky)
1102 * Moose::Cookbook::Basics::Recipe1
1103 - Also applied an editorial axe here. (Dave Rolsky)
1106 * Moose::Cookbook::Extending::Recipe1
1107 * Moose::Cookbook::Extending::Recipe2
1108 - Rewrote extending and embedding moose documentation and
1109 recipes to use Moose::Exporter (Dave Rolsky)
1113 - These two modules now warn when you load them from the main
1114 package "main" package, because we will not export sugar to
1115 main. Previously it just did nothing. (Dave Rolsky)
1118 - Now provide an init_meta method just like Moose.pm, and you
1119 can call this to provide an alternate role metaclass. (Dave
1120 Rolsky and nothingmuch)
1121 - get_method_map now respects the package cache flag (nothingmuch)
1124 - Two new methods - add_method and wrap_method_body
1128 - Optimizations including allowing constructors to accept hash
1129 refs, making many more classes immutable, and making
1130 constructors immutable. (nothingmuch)
1132 0.55 Sun August 3, 2008
1133 * Moose::Meta::Attribute
1134 - breaking down the way 'handles' methods are
1135 created so that the process can be more easily
1136 overridden by subclasses (stevan)
1138 * Moose::Meta::TypeConstraint
1139 - fixing what is passed into a ->message with
1140 the type constraints (RT #37569)
1141 - added tests for this (Charles Alderman)
1143 * Moose::Util::TypeConstraints
1144 - fix coerce to accept anon types like subtype can (mst)
1147 - reorganized the recipes into sections - Basics, Roles, Meta,
1148 Extending - and wrote abstracts for each section (Dave Rolsky)
1150 * Moose::Cookbook::Basics::Recipe10
1151 - A new recipe that demonstrates operator overloading
1152 in combination with Moose. (bluefeet)
1154 * Moose::Cookbook::Meta::Recipe1
1155 - an introduction to what meta is and why you'd want to make
1156 your own metaclass extensions (Dave Rolsky)
1158 * Moose::Cookbook::Meta::Recipe4
1159 - a very simple metaclass example (Dave Rolsky)
1161 * Moose::Cookbook::Extending::Recipe1
1162 - how to write a Moose-alike module to use your own object base
1165 * Moose::Cookbook::Extending::Recipe2
1166 - how to write modules with an API just like C<Moose.pm> (Dave
1170 - Tons of fixes, both syntactical and grammatical (Dave
1171 Rolsky, Paul Fenwick)
1173 0.54 Thurs. July 3, 2008
1174 ... this is not my day today ...
1176 * Moose::Meta::Attribute
1177 - fixed legal_options_for_inheritance such that
1178 clone_and_inherit options still works for
1179 Class::MOP::Attribute objects and therefore
1180 does not break MooseX::AttributeHelpers
1183 0.53 Thurs. July 3, 2008
1184 * Whoops, I guess I should run 'make manifest' before
1185 actually releasing the module. No actual changes
1186 in this release, except the fact that it includes
1187 the changes that I didn't include in the last
1190 0.52 Thurs. July 3, 2008
1192 - added "FEATURE REQUESTS" section to the Moose docs
1193 to properly direct people (stevan) (RT #34333)
1194 - making 'extends' croak if it is passed a Role since
1195 this is not ever something you want to do
1196 (fixed by stevan, found by obra)
1197 - added tests for this (stevan)
1200 - adding support for DOES (as in UNIVERSAL::DOES)
1202 - added test for this
1204 * Moose::Meta::Attribute
1205 - added legal_options_for_inheritance (wreis)
1206 - added tests for this (wreis)
1208 * Moose::Cookbook::Snacks::*
1209 - removed some of the unfinished snacks that should
1210 not have been released yet. Added some more examples
1211 to the 'Keywords' snack. (stevan)
1213 * Moose::Cookbook::Style
1214 - added general Moose "style guide" of sorts to the
1215 cookbook (nothingmuch) (RT #34335)
1218 - added more BUILDARGS tests (stevan)
1220 0.51 Thurs. Jun 26, 2008
1222 - add unimport so "no Moose::Role" actually does
1225 * Moose::Meta::Role::Application::ToRole
1226 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1227 order to provide its own implementation, that method still got
1228 added to the list of required methods for consumers of
1229 RoleB. Now an aliased method is only added to the list of
1230 required methods if the role doing the aliasing does not
1231 provide its own implementation. See Recipe 11 for an example
1232 of all this. (Dave Rolsky)
1233 - added tests for this
1235 * Moose::Meta::Method::Constructor
1236 - when a single argument that wasn't a hashref was provided to
1237 an immutabilized constructor, the error message was very
1238 unhelpful, as opposed to the non-immutable error. Reported by
1240 - added test for this (Dave Rolsky)
1242 * Moose::Meta::Attribute
1243 - added support for meta_attr->does("ShortAlias") (sartak)
1244 - added tests for this (sartak)
1245 - moved the bulk of the `handles` handling to the new
1246 install_delegation method (Stevan)
1249 - Added BUILDARGS, a new step in new()
1251 * Moose::Meta::Role::Application::RoleSummation
1252 - fix typos no one ever sees (sartak)
1254 * Moose::Util::TypeConstraints
1255 * Moose::Meta::TypeConstraint
1256 * Moose::Meta::TypeCoercion
1257 - Attempt to work around the ??{ } vs. threads issue
1259 - Some null_constraint optimizations
1261 0.50 Thurs. Jun 11, 2008
1262 - Fixed a version number issue by bumping all modules
1265 0.49 Thurs. Jun 11, 2008
1266 !! This version now approx. 20-25% !!
1267 !! faster with new Class::MOP 0.59 !!
1269 * Moose::Meta::Attribute
1270 - fixed how the is => (ro|rw) works with
1271 custom defined reader, writer and accessor
1273 - added docs for this (TODO).
1274 - added tests for this (Thanks to Penfold)
1275 - added the custom attribute alias for regular
1276 Moose attributes which is "Moose"
1277 - fix builder and default both being used
1282 Moose::Meta::Attribute
1284 Moose::Meta::Role::Composite
1285 Moose::Util::TypeConstraints
1286 - switched usage of reftype to ref because
1290 - changing add_package_symbol to use the new
1294 - fixed how DEMOLISHALL is called so that it
1295 can be overrided in subclasses (thanks to Sartak)
1296 - added test for this (thanks to Sartak)
1298 * Moose::Util::TypeConstraints
1299 - move the ClassName type check code to
1300 Class::MOP::is_class_loaded (thanks to Sartak)
1302 * Moose::Cookbook::Recipe11
1303 - add tests for this (thanks to tokuhirom)
1305 0.48 Thurs. May 29, 2008
1306 (early morning release engineering)--
1308 - fixing the version in Moose::Meta::Method::Destructor
1309 which was causing the indexer to choke
1311 0.47 Thurs. May 29, 2008
1312 (late night release engineering)--
1314 - fixing the version is META.yml, no functional
1315 changes in this release
1317 0.46 Wed. May 28, 2008
1318 !! This version now approx. 20-25% !!
1319 !! faster with new Class::MOP 0.57 !!
1321 * Moose::Meta::Class
1322 - some optimizations of the &initialize method
1323 since it is called so often by &meta
1325 * Moose::Meta::Class
1327 - now use the get_all_package_symbols from the
1328 updated Class::MOP, test suite is now 10 seconds
1331 * Moose::Meta::Method::Destructor
1332 - is_needed can now also be called as a class
1333 method for immutablization to check if the
1334 destructor object even needs to be created
1337 * Moose::Meta::Method::Destructor
1338 Moose::Meta::Method::Constructor
1339 - added more descriptive error message to help
1340 keep people from wasting time tracking an error
1341 that is easily fixed by upgrading.
1343 0.45 Saturday, May 24, 2008
1345 - Because of work in Class::MOP 0.57, all
1346 XS based functionality is now optional
1347 and a Pure Perl version is supplied
1348 - the CLASS_MOP_NO_XS environment variable
1349 can now be used to force non-XS versions
1351 - several of the packages have been tweaked
1352 to take care of this, mostly we added
1353 support for the package_name and name
1354 variables in all the Method metaclasses
1355 - before/around/after method modifiers now
1356 support regexp matching of names
1357 (thanks to Takatoshi Kitano)
1358 - tests added for this
1359 - NOTE: this only works for classes, it
1360 is currently not supported in roles,
1361 but, ... patches welcome
1362 - All usage of Carp::confess have been replaced
1363 by Carp::croak in the "keyword" functions since
1364 the stack trace is usually not helpful
1367 - All usage of Carp::confess have been replaced
1368 by Carp::croak in the "keyword" functions since
1369 the stack trace is usually not helpful
1370 - The 'has' keyword for roles now accepts the
1371 same array ref form that Moose.pm does
1372 (has [qw/foo bar/] => (is => 'rw', ...))
1373 - added test for this
1375 * Moose::Meta::Attribute
1376 - trigger on a ro-attribute is no longer an
1377 error, as it's useful to trigger off of the
1380 * Moose::Meta::Class
1381 - added same 'add_package_symbol' fix as in
1385 - does_role now handles non-Moose classes
1387 - added tests for this
1388 - added the 'add_method_modifier' function
1389 (thanks to Takatoshi Kitano)
1391 * Moose::Util::TypeConstraints
1392 - subtypes of parameterizable types now are
1393 themselves parameterizable types
1395 * Moose::Meta::Method::Constructor
1396 - fixed bug where trigger was not being
1397 called by the inlined immutable
1399 - added test for this (thanks to Caelum)
1401 * Moose::Meta::Role::Application::ToInstance
1402 - now uses the metaclass of the instance
1403 (if possible) to create the anon-class
1404 (thanks Jonathan Rockway)
1406 * Moose::Cookbook::Recipe22
1407 - added the meta-attribute trait recipe
1411 - fixed hash-ordering test bug that was
1412 causing occasional cpantester failures
1413 - renamed the t/000_recipe/*.t tests to be
1414 more descriptive (thanks to Sartak)
1416 0.44 Sat. May 10, 2008
1418 - made make_immutable warning cluck to
1419 show where the error is (thanks mst)
1422 - BUILDALL and DEMOLISHALL now call
1423 ->body when looping through the
1424 methods, to avoid the overloaded
1426 - fixed issue where DEMOLISHALL was
1427 eating the $@ values, and so not
1428 working correctly, it still kind of
1429 eats them, but so does vanilla perl
1430 - added tests for this
1432 * Moose::Cookbook::Recipe7
1433 - added new recipe for immutable
1434 functionality (thanks Dave Rolsky)
1436 * Moose::Cookbook::Recipe9
1437 - added new recipe for builder and
1438 lazy_build (thanks Dave Rolsky)
1440 * Moose::Cookbook::Recipe11
1441 - added new recipe for method aliasing
1442 and exclusion with Roles (thanks Dave Rolsky)
1445 - fixed Win32 test failure (thanks spicyjack)
1447 ~ removed Build.PL and Module::Build compat
1448 since Module::Install has done that.
1450 0.43 Wed. April, 30, 2008
1452 drink more coffee before
1453 doing release engineering
1455 - whoops, forgot to do the smolder tests,
1456 and we broke some of the custom meta-attr
1457 modules. This fixes that.
1459 0.42 Mon. April 28, 2008
1460 - some bad tests slipped by, nothing else
1461 changed in this release (cpantesters++)
1463 - upped the Class::MOP dependency to 0.55
1464 since we have tests which need the C3
1467 0.41 Mon. April 28, 2008
1468 ~~ numerous documentation updates ~~
1470 - Changed all usage of die to Carp::croak for better
1471 error reporting (initial patch by Tod Hagan)
1473 ** IMPORTANT NOTE **
1474 - the make_immutable keyword is now deprecated, don't
1475 use it in any new code and please fix your old code
1476 as well. There will be 2 releases, and then it will
1482 - refactored the way inner and super work to avoid
1483 any method/@ISA cache penalty (nothingmuch)
1485 * Moose::Meta::Class
1486 - fixing &new_object to make sure trigger gets the
1487 coerced value (spotted by Charles Alderman on the
1489 - added test for this
1491 * Moose::Meta::Method::Constructor
1492 - immutable classes which had non-lazy attributes were calling
1493 the default generating sub twice in the constructor. (bug
1494 found by Jesse Luehrs, fixed by Dave Rolsky)
1495 - added tests for this (Dave Rolsky)
1496 - fix typo in initialize_body method (nothingmuch)
1498 * Moose::Meta::Method::Destructor
1499 - fix typo in initialize_body method (nothingmuch)
1501 * Moose::Meta::Method::Overriden
1502 Moose::Meta::Method::Augmented
1503 - moved the logic for these into their own
1504 classes (nothingmuch)
1506 * Moose::Meta::Attribute
1507 - inherited attributes may now be extended without
1508 restriction on the type ('isa', 'does') (Sartak)
1509 - added tests for this (Sartak)
1510 - when an attribute property is malformed (such as lazy without
1511 a default), give the name of the attribute in the error
1513 - added the &applied_traits and &has_applied_traits methods
1514 to allow introspection of traits
1515 - added tests for this
1516 - moved 'trait' and 'metaclass' argument handling to here from
1518 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1519 '+foo' syntax) (nothingmuch)
1520 - added tests for this (t0m)
1523 - localize $@ inside DEMOLISHALL to avoid it
1524 eating $@ (found by Ernesto)
1525 - added test for this (thanks to Ernesto)
1527 * Moose::Util::TypeConstraints
1528 - &find_type_constraint now DWIMs when given an
1529 type constraint object or name (nothingmuch)
1530 - &find_or_create_type_constraint superseded with a number of more
1532 - find_or_create_{isa,does}_type_constraint
1533 - find_or_parse_type_constraint
1535 * Moose::Meta::TypeConstraint
1536 Moose::Meta::TypeConstraint::Class
1537 Moose::Meta::TypeConstraint::Role
1538 Moose::Meta::TypeConstraint::Enum
1539 Moose::Meta::TypeConstraint::Union
1540 Moose::Meta::TypeConstraint::Parameterized
1541 - added the &equals method for comparing two type
1542 constraints (nothingmuch)
1543 - added tests for this (nothingmuch)
1545 * Moose::Meta::TypeConstraint
1546 - add the &parents method, which is just an alias to &parent.
1547 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1549 * Moose::Meta::TypeConstraint::Class
1550 - added the class attribute for introspection purposes
1552 - added tests for this
1554 * Moose::Meta::TypeConstraint::Enum
1555 Moose::Meta::TypeConstraint::Role
1556 - broke these out into their own classes (nothingmuch)
1558 * Moose::Cookbook::Recipe*
1559 - fixed references to test file locations in the POD
1560 and updated up some text for new Moose features
1564 - Added &resolve_metaclass_alias, a helper function for finding an actual
1565 class for a short name (e.g. in the traits list)
1567 0.40 Fri. March 14, 2008
1568 - I hate Pod::Coverage
1570 0.39 Fri. March 14, 2008
1572 - documenting the use of '+name' with attributes
1573 that come from recently composed roles. It makes
1574 sense, people are using it, and so why not just
1575 officially support it.
1576 - fixing the 'extends' keyword so that it will not
1577 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1580 - added the perl -Moose=+Class::Name feature to allow
1581 monkeypatching of classes in one liners
1584 - fixing the 'apply_all_roles' keyword so that it will not
1585 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1587 * Moose::Meta::Class
1588 - added ->create method which now supports roles (thanks to jrockway)
1589 - added tests for this
1590 - added ->create_anon_class which now supports roles and caching of
1591 the results (thanks to jrockway)
1592 - added tests for this
1593 - made ->does_role a little more forgiving when it is
1594 checking a Class::MOP era metaclasses.
1596 * Moose::Meta::Role::Application::ToInstance
1597 - it is now possible to pass extra params to be used when
1598 a role is applied to an the instance (rebless_params)
1599 - added tests for this
1601 * Moose::Util::TypeConstraints
1602 - class_type now accepts an optional second argument for a
1603 custom message. POD anotated accordingly (groditi)
1604 - added tests for this
1605 - it is now possible to make anon-enums by passing 'enum' an
1606 ARRAY ref instead of the $name => @values. Everything else
1608 - added tests for this
1611 - making test for using '+name' on attributes consumed
1612 from a role, it works and makes sense too.
1614 * Moose::Meta::Attribute
1615 - fix handles so that it doesn't return nothing
1616 when the method cannot be found, not sure why
1617 it ever did this originally, this means we now
1618 have slightly better support for AUTOLOADed
1620 - added more delegation tests
1621 - adding ->does method to this so as to better
1622 support traits and their introspection.
1623 - added tests for this
1626 - localizing the Data::Dumper configurations so
1627 that it does not pollute others (RT #33509)
1628 - made ->does a little more forgiving when it is
1629 passed Class::MOP era metaclasses.
1631 0.38 Fri. Feb. 15, 2008
1632 * Moose::Meta::Attribute
1633 - fixed initializer to correctly do
1634 type checking and coercion in the
1636 - added tests for this
1639 - fixed some finicky tests (thanks to konobi)
1641 0.37 Thurs. Feb. 14, 2008
1643 - fixed some details in Moose::init_meta
1644 and its superclass handling (thanks thepler)
1645 - added tests for this (thanks thepler)
1646 - 'has' now dies if you don't pass in name
1648 - added the 'make_immutable' keyword as a shortcut
1651 * Moose::Meta::Class
1652 Moose::Meta::Method::Constructor
1653 Moose::Meta::Attribute
1654 - making (init_arg => undef) work here too
1655 (thanks to nothingmuch)
1657 * Moose::Meta::Attribute
1658 Moose::Meta::Method::Constructor
1659 Moose::Meta::Method::Accessor
1660 - make lazy attributes respect attr initializers (rjbs)
1661 - added tests for this
1663 * Moose::Util::TypeConstraints
1664 Moose::Util::TypeConstraints::OptimizedConstraints
1665 Moose::Meta::TypeConstraints
1666 Moose::Meta::Attribute
1667 Moose::Meta::Method::Constructor
1668 Moose::Meta::Method::Accessor
1669 - making type errors use the
1670 assigned message (thanks to Sartak)
1671 - added tests for this
1673 * Moose::Meta::Method::Destructor
1674 - making sure DESTROY gets inlined properly
1675 with successive DEMOLISH calls (thanks to manito)
1677 * Moose::Meta::Attribute
1678 Moose::Meta::Method::Accessor
1679 - fixed handling of undef with type constraints
1681 - added tests for this
1684 - added &get_all_init_args and &get_all_attribute_values
1685 (thanks to Sartak and nothingmuch)
1687 0.36 Sat. Jan. 26, 2008
1689 Moose::Meta::Attribute
1690 - role type tests now support when roles are
1691 applied to non-Moose classes (found by ash)
1692 - added tests for this (thanks to ash)
1693 - couple extra tests to boost code coverage
1695 * Moose::Meta::Method::Constructor
1696 - improved fix for handling Class::MOP attributes
1697 - added test for this
1699 * Moose::Meta::Class
1700 - handled the add_attribute($attribute_meta_object)
1702 - added test for this
1704 0.35 Tues. Jan. 22, 2008
1705 * Moose::Meta::Method::Constructor
1706 - fix to make sure even Class::MOP attributes
1707 are handled correctly (Thanks to Dave Rolsky)
1708 - added test for this (also Dave Rolsky)
1710 * Moose::Meta::Class
1711 - improved error message on _apply_all_roles,
1712 you should now use Moose::Util::apply_all_roles
1713 and you shouldnt have been using a _ prefixed
1714 method in the first place ;)
1716 0.34 Mon. Jan. 21, 2008
1717 ~~~ more misc. doc. fixes ~~~
1718 ~~ updated copyright dates ~~
1720 Moose is now a postmodern object system :)
1721 - (see the POD for details)
1723 * <<Role System Refactoring>>
1724 - this release contains a major reworking and
1725 cleanup of the role system
1726 - 100% backwards compat.
1727 - Role application now restructured into seperate
1728 classes based on type of applicants
1729 - Role summation (combining of more than one role)
1730 is much cleaner and anon-classes are no longer
1731 used in this process
1732 - new Composite role metaclass
1733 - runtime application of roles to instances
1734 is now more efficient and re-uses generated
1735 classes when applicable
1737 * <<New Role composition features>>
1738 - methods can now be excluded from a given role
1740 - methods can now be aliased to another name (and
1741 still retain the original as well)
1743 * Moose::Util::TypeConstraints::OptimizedConstraints
1744 - added this module (see above)
1746 * Moose::Meta::Class
1747 - fixed the &_process_attribute method to be called
1748 by &add_attribute, so that the API is now correct
1750 * Moose::Meta::Method::Accessor
1751 - fixed bug when passing a list of values to
1752 an accessor would get (incorrectly) ignored.
1753 Thanks to Sartak for finding this ;)
1754 - added tests for this (Sartak again)
1756 * Moose::Meta::Method::Accessor
1757 Moose::Meta::Method::Constructor
1758 Moose::Meta::Attribute
1759 Moose::Meta::TypeConstraint
1760 Moose::Meta::TypeCoercion
1761 - lots of cleanup of such things as:
1763 - type constraint handling
1764 - error handling/messages
1765 (thanks to nothingmuch)
1767 * Moose::Meta::TypeConstraint::Parameterizable
1768 - added this module to support the refactor
1769 in Moose::Meta::TypeConstraint::Parameterized
1771 * Moose::Meta::TypeConstraint::Parameterized
1772 - refactored how these types are handled so they
1773 are more generic and not confined to ArrayRef
1777 - shortened some file names for better VMS support (RT #32381)
1779 0.33 Fri. Dec. 14, 2007
1780 !! Moose now loads 2 x faster !!
1781 !! with new Class::MOP 0.49 !!
1783 ++ new oose.pm module to make command line
1784 Moose-ness easier (see POD docs for more)
1786 * Moose::Meta::Class
1788 - several tweaks to take advantage of the
1789 new method map caching in Class::MOP
1791 * Moose::Meta::TypeConstraint::Parameterized
1792 - allow subtypes of ArrayRef and HashRef to
1793 be used as a container (sartak)
1794 - added tests for this
1795 - basic support for coercion to ArrayRef and
1796 HashRef for containers (sartak)
1797 - added tests for this
1799 * Moose::Meta::TypeCoercion
1800 - coercions will now create subtypes as needed
1801 so you can now add coercions to parameterized
1802 types without having to explictly define them
1803 - added tests for this
1805 * Moose::Meta::Method::Accessor
1806 - allow subclasses to decide whether we need
1807 to copy the value into a new variable (sartak)
1809 0.32 Tues. Dec. 4, 2007
1810 * Moose::Util::TypeConstraints
1811 - fixing how subtype aliases of unions work
1812 they should inherit the parent's coercion
1813 - added tests for this
1814 - you can now define multiple coercions on
1815 a single type at different times instead of
1816 having to do it all in one place
1817 - added tests for this
1819 * Moose::Meta::TypeConstraint
1820 - there is now a default constraint of sub { 1 }
1821 instead of Moose::Util::TypeConstraints setting
1824 * Moose::Meta::TypeCoercion
1825 * Moose::Meta::TypeCoercion::Union
1826 - added the &has_coercion_for_type and
1827 &add_type_coercions methods to support the
1828 new features above (although you cannot add
1829 more type coercions for Union types)
1831 0.31 Mon. Nov. 26, 2007
1832 * Moose::Meta::Attribute
1833 - made the +attr syntax handle extending types with
1834 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1835 now works if the original foo is an ArrayRef.
1836 - added tests for this.
1837 - delegation now works even if the attribute does not
1838 have a reader method using the get_read_method_ref
1839 method from Class::MOP::Attribute.
1840 - added tests for this
1841 - added docs for this
1843 * Moose::Util::TypeConstraints
1844 - passing no "additional attribute info" to
1845 &find_or_create_type_constraint will no longer
1846 attempt to create an __ANON__ type for you,
1847 instead it will just return undef.
1848 - added docs for this
1850 0.30 Fri. Nov. 23, 2007
1851 * Moose::Meta::Method::Constructor
1852 -builder related bug in inlined constructor. (groditi)
1854 * Moose::Meta::Method::Accessor
1855 - genereate unnecessary calls to predicates and refactor
1856 code generation for runtime speed (groditi)
1858 * Moose::Util::TypeConstraints
1859 - fix ClassName constraint to introspect symbol table (mst)
1860 - added more tests for this (mst)
1861 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1862 with work correctly.
1863 - added tests for this
1866 - adding the link to Recipie 11 (written by Sartak)
1867 - adding test for SYNOPSIS code
1870 - New tests for builder bug. Upon instantiation, if an
1871 attribute had a builder, no value and was not lazy the
1872 builder default was not getting run, oops. (groditi)
1874 0.29 Tues. Nov. 13, 2007
1875 * Moose::Meta::Attribute
1876 - Fix error message on missing builder method (groditi)
1878 * Moose::Meta::Method::Accessor
1879 - Fix error message on missing builder method (groditi)
1882 - Add test to check for the correct error message when
1883 builder method is missing (groditi)
1885 0.28 Tues. Nov. 13, 2007
1886 - 0.27 packaged incorrectly (groditi)
1888 0.27 Tues. Nov. 13, 2007
1889 * Moose::Meta::Attribute
1890 - Added support for the new builder option (groditi)
1891 - Added support for lazy_build option (groditi)
1892 - Changed slot initialization for predicate changes (groditi)
1894 * Moose::Meta::Method::Accessor
1895 - Added support for lazy_build option (groditi)
1896 - Fix inline methods to work with corrected predicate
1899 * Moose::Meta::Method::Constructor
1900 - Added support for lazy_build option (groditi)
1903 - tests for builder and lazy_build (groditi)
1905 * fixing some misc. bits in the docs that
1906 got mentioned on CPAN Forum & perlmonks
1909 - fixed how required methods are handled
1910 when they encounter overriden or modified
1911 methods from a class (thanks to confound).
1912 - added tests for this
1914 * Moose::Util::TypeConstraint
1915 - fixed the type notation parser so that
1916 the | always creates a union and so is
1917 no longer a valid type char (thanks to
1918 konobi, mugwump and #moose for working
1920 - added more tests for this
1922 0.26 Thurs. Sept. 27, 2007
1925 * Parameterized Types
1926 We now support parameterized collection types, such as:
1927 ArrayRef[Int] # array or integers
1928 HashRef[Object] # a hash with object values
1929 They can also be nested:
1930 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1931 And work with the type unions as well:
1932 ArrayRef[Int | Str] # array of integers of strings
1934 * Better Framework Extendability
1935 Moose.pm is now "extendable" such that it is now much
1936 easier to extend the framework and add your own keywords
1937 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1938 section of the Moose.pm docs.
1941 In an effort to begin documenting some of the various
1942 details of Moose as well as some common idioms, we have
1943 created Moose::Cookbook::Snacks as a place to find
1944 small (easily digestable) nuggets of Moose code.
1947 ~ Several doc updates/cleanup thanks to castaway ~
1949 - converted build system to use Module::Install instead of
1950 Module::Build (thanks to jrockway)
1953 - added all the meta classes to the immutable list and
1954 set it to inline the accessors
1955 - fix import to allow Sub::Exporter like { into => }
1956 and { into_level => } (perigrin)
1957 - exposed and documented init_meta() to allow better
1958 embedding and extending of Moose (perigrin)
1961 - complete re-organization of the test suite
1962 - added some new tests as well
1963 - finally re-enabled the Moose::POOP test since
1964 the new version of DBM::Deep now works again
1967 * Moose::Meta::Class
1968 - fixed very odd and very nasty recursion bug with
1970 - added tests for this (eilara)
1972 * Moose::Meta::Attribute
1973 Moose::Meta::Method::Constructor
1974 Moose::Meta::Method::Accessor
1975 - fixed issue with overload::Overloaded getting called
1976 on non-blessed items. (RT #29269)
1977 - added tests for this
1979 * Moose::Meta::Method::Accessor
1980 - fixed issue with generated accessor code making
1981 assumptions about hash based classes (thanks to dexter)
1983 * Moose::Coookbook::Snacks
1984 - these are bits of documentation, not quite as big as
1985 Recipes but which have no clear place in the module docs.
1986 So they are Snacks! (horray for castaway++)
1988 * Moose::Cookbook::Recipe4
1989 - updated it to use the new ArrayRef[MyType] construct
1990 - updated the accompanying test as well
1992 +++ Major Refactor of the Type Constraint system +++
1993 +++ with new features added as well +++
1995 * Moose::Util::TypeConstraint
1996 - no longer uses package variable to keep track of
1997 the type constraints, now uses the an instance of
1998 Moose::Meta::TypeConstraint::Registry to do it
1999 - added more sophisticated type notation parsing
2001 - added tests for this
2003 * Moose::Meta::TypeConstraint
2004 - some minor adjustments to make subclassing easier
2005 - added the package_defined_in attribute so that we
2006 can track where the type constraints are created
2008 * Moose::Meta::TypeConstraint::Union
2009 - this is now been refactored to be a subclass of
2010 Moose::Meta::TypeConstraint
2012 * Moose::Meta::TypeCoercion::Union
2013 - this has been added to service the newly refactored
2014 Moose::Meta::TypeConstraint::Union and is itself
2015 a subclass of Moose::Meta::TypeCoercion
2017 * Moose::Meta::TypeConstraint::Parameterized
2018 - added this module (taken from MooseX::AttributeHelpers)
2019 to help construct nested collection types
2020 - added tests for this
2022 * Moose::Meta::TypeConstraint::Registry
2023 - added this class to keep track of type constraints
2025 0.25 Mon. Aug. 13, 2007
2027 - Documentation update to reference Moose::Util::TypeConstraints
2028 under 'isa' in 'has' for how to define a new type
2029 (thanks to shlomif).
2031 * Moose::Meta::Attribute
2032 - required attributes now will no longer accept undef
2033 from the constructor, even if there is a default and lazy
2034 - added tests for this
2035 - default subroutines must return a value which passes the
2037 - added tests for this
2039 * Moose::Meta::Attribute
2040 * Moose::Meta::Method::Constructor
2041 * Moose::Meta::Method::Accessor
2042 - type-constraint tests now handle overloaded objects correctly
2043 in the error message
2044 - added tests for this (thanks to EvanCarroll)
2046 * Moose::Meta::TypeConstraint::Union
2047 - added (has_)hand_optimized_constraint to this class so that
2048 it behaves as the regular Moose::Meta::TypeConstraint does.
2051 - large refactoring of this code
2052 - added several more tests
2053 - tests for subtle conflict resolition issues
2054 added, but not currently running
2057 * Moose::Cookbook::Recipe7
2058 - added new recipe for augment/inner functionality
2060 - added test for this
2063 - a formal definition of roles (still in progress)
2066 - utilities for easier working with Moose classes
2067 - added tests for these
2070 - This contains Moose specific test functions
2071 - added tests for these
2073 0.24 Tues. July 3, 2007
2074 ~ Some doc updates/cleanup ~
2076 * Moose::Meta::Attribute
2077 - added support for roles to be given as parameters
2078 to the 'handles' option.
2079 - added tests and docs for this
2080 - the has '+foo' attribute form now accepts changes to
2081 the lazy option, and the addition of a handles option
2082 (but not changing the handles option)
2083 - added tests and docs for this
2086 - required methods are now fetched using find_method_by_name
2087 so that required methods can come from superclasses
2088 - adjusted tests for this
2090 0.23 Mon. June 18, 2007
2091 * Moose::Meta::Method::Constructor
2092 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2093 * Moose::Meta::Class
2094 - Modify make_immutable to work with the new Class::MOP immutable
2095 mechanism + POD + very basic test (groditi)
2096 * Moose::Meta::Attribute
2097 - Fix handles to use goto() so that caller() comes out properly on
2098 the other side (perigrin)
2100 0.22 Thurs. May 31, 2007
2101 * Moose::Util::TypeConstraints
2102 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2103 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2104 prototypes for functions
2105 - added the ClassName type constraint, this checks for strings
2106 which will respond true to ->isa(UNIVERSAL).
2107 - added tests and docs for this
2108 - subtyping just in name now works correctly by making the
2109 default for where be { 1 }
2110 - added test for this
2112 * Moose::Meta::Method::Accessor
2113 - coerce and lazy now work together correctly, thanks to
2114 merlyn for finding this bug
2115 - tests added for this
2116 - fix reader presedence bug in Moose::Meta::Attribute + tests
2119 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2120 a HASH-ref and missed. This produces better error messages then
2121 having it die cause undef is not a HASH.
2122 - added tests for this
2124 0.21 Thursday, May 2nd, 2007
2126 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2127 - modified unimport to remove super and inner along with the rest
2128 - altered unimport tests to handle this
2131 - altered super export to populate SUPER_SLOT
2133 * Moose::Meta::Class
2134 - altered augment and override modifier application to use *_SLOT
2135 - modified tests for these to unimport one test class each to test
2138 - fixed issue where custom attribute metaclasses
2139 where not handled correctly in roles
2140 - added tests for this
2142 * Moose::Meta::Class
2143 - fixed issue where extending metaclasses with
2144 roles would blow up. Thanks to Aankhen`` for
2145 finding this insidious error, and it's solution.
2147 ~~ lots of spelling and grammer fixes in the docs,
2148 many many thanks to rlb3 and Aankhen for these :)
2150 0.20 Friday, April 6th, 2007
2151 >> I messed up the SKIP logic in one test
2152 so this release is just to fix that.
2155 - 'has' now also accepts an ARRAY ref
2156 to create multiple attrs (see docs)
2157 (thanks to konobi for this)
2158 - added tests and docs
2160 0.19 Thurs. April 5th, 2007
2161 ~~ More documentation updates ~~
2163 * Moose::Util::TypeConstraints
2164 - 'type' now supports messages as well
2165 thanks to phaylon for finding this
2166 - added tests for this
2167 - added &list_all_type_constraints and
2168 &list_all_builtin_type_constraints
2169 functions to facilitate introspection.
2171 * Moose::Meta::Attribute
2172 - fixed regexp 'handles' declarations
2173 to build the list of delegated methods
2174 correctly (and not override important
2175 things like &new) thanks to ashleyb
2177 - added tests and docs for this
2178 - added the 'documentation' attributes
2179 so that you can actually document your
2180 attributes and inspect them through the
2182 - added tests and docs for this
2184 * Moose::Meta::Class
2185 - when loading custom attribute metaclasses
2186 it will first look in for the class in the
2187 Moose::Meta::Attribute::Custom::$name, and
2188 then default to just loading $name.
2189 - added tests and docs for this
2191 * Moose::Meta::TypeConstraint
2192 - type constraints now stringify to their names.
2193 - added test for this
2196 - added tests to assure we work with Module::Refresh
2197 - added stricter test skip logic in the Moose POOP
2198 test, ask Rob Kinyon why.
2199 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2201 0.18 Sat. March 10, 2007
2202 ~~ Many, many documentation updates ~~
2205 - We now use Class::MOP::load_class to
2207 - added tests to show types and subtypes
2208 working with Declare::Constraints::Simple
2209 and Test::Deep as constraint engines.
2212 !! You must have Class::MOP 0.37_001 !!
2213 !! for this developer release to work !!
2215 This release was primarily adding the immutable
2216 feature to Moose. An immutable class is one which
2217 you promise not to alter. When you set the class
2218 as immutable it will perform various bits of
2219 memoization and inline certain part of the code
2220 (constructors, destructors and accessors). This
2221 minimizes (and in some cases totally eliminates)
2222 one of Moose's biggest performance hits. This
2223 feature is not on by default, and is 100% optional.
2224 It has several configurable bits as well, so you
2225 can pick and choose to your specific needs.
2227 The changes involved in this were fairly wide and
2228 highly specific, but 100% backwards compatible, so
2229 I am not going to enumerate them here. If you are
2230 truely interested in what was changed, please do
2233 0.17 Tues. Nov. 14, 2006
2234 * Moose::Meta::Method::Accessor
2235 - bugfix for read-only accessors which
2236 are have a type constraint and lazy.
2237 Thanks to chansen for finding it.
2239 0.16 Tues. Nov. 14, 2006
2241 There are some speed improvements in this release,
2242 but they are only the begining, so stay tuned.
2245 - BUILDALL and DEMOLISHALL no longer get
2246 called unless they actually need to be.
2247 This gave us a signifigant speed boost
2248 for the cases when there is no BUILD or
2249 DEMOLISH method present.
2251 * Moose::Util::TypeConstraints
2252 * Moose::Meta::TypeConstraint
2253 - added an 'optimize_as' option to the
2254 type constraint, which allows for a
2255 hand optimized version of the type
2256 constraint to be used when possible.
2257 - Any internally created type constraints
2258 now provide an optimized version as well.
2260 0.15 Sun. Nov. 5, 2006
2262 This version of Moose *must* have Class::MOP 0.36 in order
2263 to work correctly. A number of small internal tweaks have
2264 been made in order to be compatible with that release.
2266 * Moose::Util::TypeConstraints
2267 - added &unimport so that you can clean out
2268 your class namespace of these exported
2271 * Moose::Meta::Class
2272 - fixed minor issue which occasionally
2273 comes up during global destruction
2275 - moved Moose::Meta::Method::Overriden into
2279 - moved Moose::Meta::Role::Method into
2282 * Moose::Meta::Attribute
2283 - changed how we do type checks so that
2284 we reduce the overall cost, but still
2287 - moved accessor generation methods to
2288 Moose::Meta::Method::Accessor to
2289 conform to the API changes from
2292 * Moose::Meta::TypeConstraint
2293 - changed how constraints are compiled
2294 so that we do less recursion and more
2295 iteration. This makes the type check
2297 - moved Moose::Meta::TypeConstraint::Union
2300 * Moose::Meta::Method::Accessor
2301 - created this from methods formerly found in
2302 Moose::Meta::Attribute
2304 * Moose::Meta::Role::Method
2305 - moved this from Moose::Meta::Role
2307 * Moose::Meta::Method::Overriden
2308 - moved this from Moose::Meta::Class
2310 * Moose::Meta::TypeConstraint::Union
2311 - moved this from Moose::Meta::TypeConstraint
2313 0.14 Mon. Oct. 9, 2006
2315 * Moose::Meta::Attribute
2316 - fixed lazy attributes which were not getting
2317 checked with the type constraint (thanks ashley)
2318 - added tests for this
2319 - removed the over-enthusiastic DWIMery of the
2320 automatic ArrayRef and HashRef defaults, it
2321 broke predicates in an ugly way.
2322 - removed tests for this
2324 0.13 Sat. Sept. 30, 2006
2326 This version of Moose *must* have Class::MOP 0.35 in order
2327 to work correctly. A number of small internal tweaks have
2328 been made in order to be compatible with that release.
2331 - Removed the use of UNIVERSAL::require to be a better
2332 symbol table citizen and remove a dependency
2333 (thanks Adam Kennedy)
2335 **~~ removed experimental & undocumented feature ~~**
2336 - commented out the 'method' and 'self' keywords, see the
2337 comments for more info.
2340 - added a FAQ and WTF files to document frequently
2341 asked questions and common problems
2343 * Moose::Util::TypeConstraints
2344 - added GlobRef and FileHandle type constraint
2345 - added tests for this
2347 * Moose::Meta::Attribute
2348 - if your attribute 'isa' ArrayRef of HashRef, and you have
2349 not explicitly set a default, then make the default DWIM.
2350 This will also work for subtypes of ArrayRef and HashRef
2352 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2353 - new test added for this (thanks to ashley)
2356 - added basic support for runtime role composition
2357 but this is still *highly experimental*, so feedback
2358 is much appreciated :)
2359 - added tests for this
2361 * Moose::Meta::TypeConstraint
2362 - the type constraint now handles the coercion process
2363 through delegation, this is to support the coercion
2366 * Moose::Meta::TypeConstraint::Union
2367 - it is now possible for coercions to be performed
2369 - added tests for this (thanks to konobi)
2371 * Moose::Meta::TypeCoercion
2372 - properly capturing error when type constraint
2376 - Scalar::Util 1.18 is bad on Win32, so temporarily
2377 only require version 1.17 for Win32 and cygwin.
2378 (thanks Adam Kennedy)
2380 0.12 Sat. Sept. 1, 2006
2382 - Recipe5 (subtypes & coercion) has been written
2385 - fixed "bad meta" error message to be more descriptive
2386 - fixed &unimport to not remove the &inner and &super
2387 keywords because we need to localize them.
2388 - fixed number of spelling/grammer issues, thanks Theory :)
2390 **~~ experimental & undocumented feature ~~**
2391 - added the method and self keywords, they are basically
2392 just sugar, and they may not stay around.
2395 - added &dump method to easily Data::Dumper
2398 * Moose::Meta::TypeConstraint
2399 - added the &is_a_type_of method to check both the current
2400 and the subtype of a method (similar to &isa with classes)
2403 - this is now a subclass of Class::MOP::Module, and no longer
2404 creates the _role_meta ugliness of before.
2405 - fixed tests to reflect this change
2407 0.11 Wed. July 12, 2006
2409 - added an &unimport method to remove all the keywords
2410 that Moose will import, simply add 'no Moose' to the
2411 bottom of your class file.
2414 - fixed some test failures caused by a forgotten test
2417 0.10 Thurs. July 6, 2006
2419 - improved error message when loading modules so
2420 it is less confusing when you load a role.
2421 - added &calculate_all_roles method to
2422 Moose::Meta::Class and Moose::Meta::Role
2425 This module has been tested against Class::MOP 0.30
2426 but it does not yet utilize the optimizations
2427 it makes available. Stay tuned for that ;)
2429 0.09_03 Fri. June 23, 2006
2430 ++ DEVELOPER RELEASE ++
2432 - 'use strict' and 'use warnings' are no longer
2433 needed in Moose classes, Moose itself will
2434 turn them on for you.
2435 - added tests for this
2436 - moved code from exported subs to private methods
2437 in Moose::Meta::Class
2440 - as with Moose, strict and warnings are
2441 automatically turned on for you.
2442 - added tests for this
2445 - now handles an edge case for override errors
2446 - added tests for this
2447 - added some more edge case tests
2449 0.09_02 Tues. May 16, 2006
2450 ++ DEVELOPER RELEASE ++
2452 - added prototypes to the exported subs
2456 - added prototypes to the exported subs
2459 * Moose::Util::TypeConstraints
2460 - cleaned up prototypes for the subs
2463 0.09_01 Fri. May 12, 2006
2464 ++ DEVELOPER RELEASE ++
2465 - This release works in combination with
2466 Class::MOP 0.29_01, it is a developer
2467 release because it uses the a new
2468 instance sub-protocol and a fairly
2469 complete Role implementation. It has
2470 not yet been optimized, so it slower
2471 the the previous CPAN version. This
2472 release also lacks good updated docs,
2473 the official release will have updated docs.
2476 - refactored the keyword exports
2477 - 'with' now checks Role validaity and
2478 accepts more than one Role at a time
2479 - 'extends' makes metaclass adjustments as
2480 needed to ensure metaclass compatibility
2483 - refactored the keyword exports
2484 - 'with' now checks Role validaity and
2485 accepts more than one Role at a time
2487 * Moose::Util::TypeConstraints
2488 - added the 'enum' keyword for simple
2489 string enumerations which can be used as
2491 - see example of usage in t/202_example.t
2494 - more careful checking of params to new()
2497 - much work done on the role composition
2498 - many new tests for conflict detection
2499 and composition edge cases
2500 - not enough documentation, I suggest
2501 looking at the tests
2503 * Moose::Meta::Instance
2504 - added new Instance metaclass to support
2505 the new Class::MOP instance protocol
2507 * Moose::Meta::Class
2508 - some small changes to support the new
2510 - some small additions to support Roles
2512 * Moose::Meta::Attribute
2513 - some improvements to the accessor generation code
2515 - some small changes to support the new
2517 - (still somewhat) experimental delegation support
2518 with the 'handles' option
2519 - added several tests for this
2520 - no docs for this yet
2522 0.05 Thurs. April 27, 2006
2524 - keywords are now exported with Sub::Exporter
2525 thanks to chansen for this commit
2526 - has keyword now takes a 'metaclass' option
2527 to support custom attribute meta-classes
2528 on a per-attribute basis
2529 - added tests for this
2530 - the 'has' keyword not accepts inherited slot
2531 specifications (has '+foo'). This is still an
2532 experimental feature and probably not finished
2533 see t/038_attribute_inherited_slot_specs.t for
2534 more details, or ask about it on #moose
2535 - added tests for this
2538 - keywords are now exported with Sub::Exporter
2540 * Moose::Utils::TypeConstraints
2541 - reorganized the type constraint hierarchy, thanks
2542 to nothingmuch and chansen for his help and advice
2544 - added some tests for this
2545 - keywords are now exported with Sub::Exporter
2546 thanks to chansen for this commit
2548 * Moose::Meta::Class
2549 - due to changes in Class::MOP, we had to change
2550 construct_instance (for the better)
2552 * Moose::Meta::Attribute
2553 - due to changes in Class::MOP, we had to add the
2554 initialize_instance_slot method (it's a good thing)
2556 * Moose::Meta::TypeConstraint
2557 - added type constraint unions
2558 - added tests for this
2559 - added the is_subtype_of predicate method
2560 - added tests for this
2562 0.04 Sun. April 16th, 2006
2564 - Roles can now consume other roles
2565 - added tests for this
2566 - Roles can specify required methods now with
2567 the requires() keyword
2568 - added tests for this
2571 - ripped out much of it's guts ,.. much cleaner now
2572 - added required methods and correct handling of
2573 them in apply() for both classes and roles
2574 - added tests for this
2575 - no longer adds a does() method to consuming classes
2576 it relys on the one in Moose::Object
2577 - added roles attribute and some methods to support
2578 roles consuming roles
2580 * Moose::Meta::Attribute
2581 - added support for triggers on attributes
2582 - added tests for this
2583 - added support for does option on an attribute
2584 - added tests for this
2586 * Moose::Meta::Class
2587 - added support for attribute triggers in the
2589 - added tests for this
2592 - Moose no longer creates a subtype for your class
2593 if a subtype of the same name already exists, this
2594 should DWIM in 99.9999% of all cases
2596 * Moose::Util::TypeConstraints
2597 - fixed bug where incorrect subtype conflicts were
2599 - added test for this
2602 - this class can now be extended with 'use base' if
2603 you need it, it properly loads the metaclass class now
2604 - added test for this
2606 0.03_02 Wed. April 12, 2006
2608 - you must now explictly use Moose::Util::TypeConstraints
2609 it no longer gets exported for you automatically
2612 - new() now accepts hash-refs as well as key/value lists
2613 - added does() method to check for Roles
2614 - added tests for this
2616 * Moose::Meta::Class
2617 - added roles attribute along with the add_role() and
2619 - added tests for this
2622 - now adds a does() method to consuming classes
2623 which tests the class's hierarchy for roles
2624 - added tests for this
2626 0.03_01 Mon. April 10, 2006
2628 - added new Role recipe (no content yet, only code)
2631 - added 'with' keyword for Role support
2632 - added test and docs for this
2633 - fixed subtype quoting bug
2634 - added test for this
2638 - added test and docs
2640 * Moose::Util::TypeConstraints
2641 - added the message keyword to add custom
2642 error messages to type constraints
2645 - the meta role to support Moose::Role
2646 - added tests and docs
2648 * Moose::Meta::Class
2649 - moved a number of things from Moose.pm
2650 to here, they should have been here
2653 * Moose::Meta::Attribute
2654 - moved the attribute option macros here
2655 instead of putting them in Moose.pm
2657 * Moose::Meta::TypeConstraint
2658 - added the message attributes and the
2660 - added tests and docs for this
2662 0.03 Thurs. March 30, 2006
2664 - added the Moose::Cookbook with 5 recipes,
2665 describing all the stuff Moose can do.
2668 - fixed an issue with &extends super class loading
2669 it now captures errors and deals with inline
2670 packages correctly (bug found by mst, solution
2672 - added super/override & inner/augment features
2673 - added tests and docs for these
2676 - BUILDALL now takes a reference of the %params
2677 that are passed to &new, and passes that to
2680 * Moose::Util::TypeConstraints
2681 - Type constraints now survive runtime reloading
2682 - added test for this
2684 * Moose::Meta::Class
2685 - fixed the way attribute defaults are handled
2686 during instance construction (bug found by chansen)
2688 * Moose::Meta::Attribute
2689 - read-only attributes now actually enforce their
2690 read-only-ness (this corrected in Class::MOP as
2693 0.02 Tues. March 21, 2006
2695 - many more tests, fixing some bugs and
2697 - &extends now loads the base module with
2699 - added UNIVERSAL::require to the
2702 - each new Moose class will also create
2703 and register a subtype of Object which
2704 correspond to the new Moose class.
2705 - the 'isa' option in &has now only
2706 accepts strings, and will DWIM in
2709 * Moose::Util::TypeConstraints
2710 - added type coercion features
2711 - added tests for this
2712 - added support for this in attributes
2713 and instance construction
2715 - type construction no longer creates a
2716 function, it registers the type instead.
2717 - added several functions to get the
2721 - BUILDALL and DEMOLISHALL were broken
2722 because of a mis-named hash key, Whoops :)
2724 * Moose::Meta::Attribute
2725 - adding support for coercion in the
2726 autogenerated accessors
2728 * Moose::Meta::Class
2729 - adding support for coercion in the
2730 instance construction
2732 * Moose::Meta::TypeConstraint
2733 * Moose::Meta::TypeCoercion
2734 - type constraints and coercions are now
2735 full fledges meta-objects
2737 0.01 Wed. March 15, 2006
2738 - Moooooooooooooooooose!!!