1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
8 * Improved support for anonymous roles by changing various APIs to take
9 Moose::Meta::Role objects as well as role names. This included
11 - Moose::Meta::Class->does_role
12 - Moose::Meta::Role->does_role
13 - Moose::Util::does_role
14 - Moose::Util::apply_all_roles
15 - Moose::Util::ensure_all_roles
16 - Moose::Util::search_class_by_role
18 Requested by Shawn Moore. Addresses RT #51143 (and then some). (Dave Rolsky)
22 * Fix handling of non-alphanumeric attributes names like '@foo'. This should
23 work as long as the accessor method names are explicitly set to valid Perl
24 method names. Reported by Doug Treder. RT #53731. (Dave Rolsky)
27 0.93_03 Tue, Jan 5, 2009
31 * Portability fixes to our XS code so we compile with 5.8.8 with Visual
32 C++. Fixes RT #53391. Reported by Taro Nishino. (rafl)
35 0.93_02 Tue, Jan 5, 2009
39 * Depend on Class::MOP 0.97_01 so we can get useful results from CPAN
40 testers. (Dave Rolsky)
43 0.93_01 Mon, Jan 4, 2009
47 See Moose::Manual::Delta for more details on backwards compatiblity issues.
49 * Role attributes are now objects of the Moose::Meta::Role::Attribute
52 * There were major changes to how metaroles are applied. We now distinguish
53 between metaroles for classes vs those for roles. See the
54 Moose::Util::MetaRole docs for details. (Dave Rolsky)
56 * The old MetaRole API has been deprecated, but will continue to
57 work. However, if you are applying an attribute metaclass role, this may
58 break because of the fact that roles now have an attribute metaclass
61 * Moose::Util::MetaRole::apply_metaclass_roles is now called
62 apply_metaroles. The old name is deprecated. Dave Rolsky>
64 * The unimport subs created by Moose::Exporter now clean up re-exported
65 functions like blessed and confess, unless the caller imported them from
66 somewhere else too. See Moose::Manua::Delta for backcompat details. (rafl)
68 [ENHANCEMENTS AND BUG FIXES]
70 * Changed the Str constraint to accept magic lvalue strings like one gets from
71 substr et al, again. (sorear)
73 * Sped up the type constraint parsing regex. (Sam Vilain)
75 * The Moose::Cookbook::Extending::Recipe2 recipe was broken. Fix suggested by
78 * Added Moose::Util::TypeConstraints exports when using oose.pm to allow
79 easier testing of TypeConstraints from the command line. (perigrin)
81 * Added a with_immutable test function to Test::Moose, to run a block of tests
82 with and without certain classes being immutable. (doy)
84 * We now use Module::Install extensions explicitly to avoid confusing errors
85 if they're not installed. We use Module::Install::AuthorRequires to stop
86 test extraction and general failures if you don't have the author side
87 dependencies installed.
89 * Fixed a grammar error in Moose::Cookbook::Basics::Recipe4. rt.cpan.org
90 #51791. (Amir E. Aharoni)
93 0.93 Thu, Nov 19, 2009
95 - Calling $object->new() is no longer deprecated, and no longer
99 - The get_attribute_map method is now deprecated. (Dave Rolsky)
101 * Moose::Meta::Method::Delegation
102 - Preserve variable aliasing in @_ for delegated methods, so that
103 altering @_ affects the passed value. (doy)
105 * Moose::Util::TypeConstraints
106 - Allow array refs for non-anonymous form of enum and duck_type, not
107 just anonymous. The non-arrayref forms may be removed in the
109 - Changed Str constraint to not accept globs (*STDIN or *FOO). (chansen)
110 - Properly document Int being a subtype of Str. (doy)
113 - Moose::Exporter using modules can now export their functions to the
114 main package. This applied to Moose and Moose::Role, among
115 others. (nothingmuch)
117 * Moose::Meta::Attribute
118 - Don't remove attribute accessors we never installed, during
119 remove_accessors. (doy)
121 * Moose::Meta::Attribute::Native::Trait::Array
122 - Don't bypass prototype checking when calling List::Util::first, to
123 avoid a segfault when it is called with a non-code argument. (doy)
125 * Moose::Meta::Attribute::Native::Trait::Code
126 - Fix passing arguments to code execute helpers. (doy)
128 0.92 Tue, Sep 22, 2009
129 * Moose::Util::TypeConstraints
130 - added the match_on_type operator (Stevan)
131 - added tests and docs for this (Stevan)
134 - Metaclass compat fixing should already happen recursively, there's no
135 need to explicitly walk up the inheritance tree. (doy)
137 * Moose::Meta::Attribute
138 - Add tests for set_raw_value and get_raw_value. (nothingmuch)
140 0.91 Thu, Sep 17, 2009
142 - Don't import any functions, in order to avoid polluting our namespace
143 with things that can look like methods (blessed, try, etc)
146 * Moose::Meta::Method::Constructor
147 - The generated code needs to called Scalar::Util::blessed by its
148 fully-qualified name or else Perl can interpret the call to blessed as
149 an indirect method call. This broke Search::GIN, which in turn broke
150 KiokuDB. (nothingmuch)
152 0.90 Tue, Sep 15, 2009
153 * Moose::Meta::Attribute::Native::Trait::Counter
154 * Moose::Meta::Attribute::Native::Trait::String
155 - For these two traits, an attribute which did not explicitly provide
156 methods to handles magically ended up delegating *all* the helper
157 methods. This has been removed. You must be explicit in your handles
158 declaration for all Native Traits. (Dave Rolsky)
161 - DEMOLISHALL behavior has changed. If any DEMOLISH method dies, we make
162 sure to rethrow its error message. However, we also localize $@ before
163 this so that if all the DEMOLISH methods success, the value of $@ will
164 be preserved. (nothingmuch and Dave Rolsky)
165 - We now also localize $? during object destruction. (nothingmuch and
167 - The handling of DEMOLISH methods was broken for immutablized classes,
168 which were not receiving the value of
169 Devel::GlobalDestruction::in_global_destruction.
170 - These two fixes address some of RT #48271, reported by Zefram.
171 - This is all now documented in Moose::Manual::Construction.
172 - Calling $object->new() is now deprecated. A warning will be
176 - Added more hooks to customize how roles are applied. The role
177 summation class, used to create composite roles, can now be changed
178 and/or have meta-roles applied to it. (rafl)
179 - The get_method_list method no longer explicitly excludes the "meta"
180 method. This was a hack that has been replaced by better hacks. (Dave
183 * Moose::Meta::Method::Delegation
184 - fixed delegated methods to make sure that any modifiers attached to
185 the accessor being delegated on will be called (Stevan)
186 - added tests for this (Stevan)
189 - Moose no longer warns when a class that is being made immutable has
190 mutable ancestors. While in theory this is a good thing to warn about,
191 we found so many exceptions to this that doing this properly became
194 0.89_02 Thu, Sep 10, 2009
195 * Moose::Meta::Attribute::Native
196 - Fix Hash, which still had 'empty' instead of 'is_empty'. (hdp)
198 * Moose::Meta::Attribute::Native::Trait::Array
199 - Added a number of functions from List::Util and List::MoreUtils,
200 including reduce, shuffle, uniq, and natatime. (doy)
203 - This module will now generate an init_meta method for your exporting
204 class if you pass it options for
205 Moose::Util::MetaRole::apply_metaclass_roles or
206 apply_base_class_roles. This eliminates a lot of repetitive
207 boilerplate for typical MooseX modules. (doy).
208 - Documented the with_meta feature, which is a replacement for
209 with_caller. This feature was added by josh a while ago.
210 - The with_caller feature is now deprecated, but will not issue a
211 warning yet. (Dave Rolsky)
212 - If you try to wrap/export a subroutine which doesn't actually exist,
213 Moose::Exporter will warn you about this. (doy)
215 * Moose::Meta::Role::Application::ToRole
216 - When a role aliased a method from another role, it was only getting
217 the new (aliased) name, not the original name. This differed from what
218 happens when a class aliases a role's methods. If you _only_ want the
219 aliased name, make sure to also exclue the original name. (Dave
222 0.89_01 Wed Sep 2, 2009
223 * Moose::Meta::Attribute
224 - Added the currying syntax for delegation from AttributeHelpers to the
225 existing delegation API. (hdp)
227 * Moose::Meta::Attribute::Native
228 - We have merged the functionality of MooseX::AttributeHelpers into the
229 Moose core with some API tweaks. You can continue to use
230 MooseX::AttributeHelpers, but it will not be maintained except
231 (perhaps) for critical bug fixes in the future. See
232 Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
235 * Moose::Error::Croak
236 * Moose::Error::Confess
237 - Clarify documentation on how to use different error-throwing
238 modules. (Curtis Jewell)
241 - Correct POD for builder to point to Recipe8, not 9. (gphat)
244 - When a nonexistent sub name is passed to as_is, with_caller, or
245 with_meta, throw a warning and skip the exporting, rather than
246 installing a broken sub. (doy)
249 - Moose now warns if you call C<make_immutable> for a class with mutable
252 0.89 Thu Aug 13, 2009
253 * Moose::Manual::Attributes
254 - Clarify "is", include discussion of "bare". (Sartak)
256 * Moose::Meta::Role::Method::Conflicting
257 * Moose::Meta::Role::Application::ToClass
258 - For the first set of roles involved in a conflict, report all
259 unresolved method conflicts, not just the first method. Fixes #47210
260 reported by Ovid. (Sartak)
262 * Moose::Meta::TypeConstraint
263 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
266 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
268 - Allow specifying role options (alias, excludes, MXRP stuff) in the
269 arrayref passed to "use Moose -traits" (doy)
272 - Add functions meta_class_alias and meta_attribute_alias for creating
273 aliases for class and attribute metaclasses and metatraits. (doy)
275 * Moose::Meta::Attribute
276 * Moose::Meta::Method::Accessor
277 - A trigger now receives the old value as a second argument, if the
278 attribute had one. (Dave Rolsky)
280 * Moose::Meta::Method::Constructor
281 - Fix a bug with $obj->new when $obj has stringify overloading.
282 Reported by Andrew Suffield [rt.cpan.org #47882] (Sartak)
283 - However, we will probably deprecate $obj->new, so please don't start
284 using it for new code!
286 * Moose::Meta::Role::Application
287 * Moose::Meta::Role::Application::RoleSummation
288 - Rename alias and excludes to -alias and -excludes (but keep the old
289 names for now, for backcompat) (doy)
291 0.88 Fri Jul 24, 2009
292 * Moose::Manual::Contributing
293 - Re-write the Moose::Manual::Contributing document to reflect
294 the new layout and methods of work for the Git repository. All
295 work now should be done in topic branches and reviewed by a
296 core committer before being applied to master. All releases
297 are done by a cabal member and merged from master to
298 stable. This plan was devised by Yuval, blame him. (perigrin)
301 - Create metaclass attributes for the different role application
304 * Moose::Util::MetaRole
305 - Allow applying roles to a meta role's role application
308 * Moose::Meta::Attribute
309 - Add weak_ref to allowed options for "has '+foo'" (mst)
311 * Moose::Meta::Method::Accessor
312 - No longer uses inline_slot_access in accessors, to support
313 non-lvalue-based meta instances. (sorear)
316 * Moose::Meta::Method::Delegation
317 - Once again allow class names as well as objects for
318 delegation. This was changed in 0.86.
321 * Moose::Meta::Class::Immutable::Trait
322 - Fixes to work with the latest Class::MOP.
324 * Moose::Meta::Method::Delegation
325 - Delegation now dies with a more useful error message if the
326 attribute's accessor returns something defined but
329 0.85 Fri, Jun 26, 2009
330 * Moose::Meta::Attribute
331 - The warning for 'no associated methods' is now split out into
332 the _check_associated_methods method, so that extensions can
333 safely call 'after install_accessors => ...'. This fixes a
334 warning from MooseX::AttributeHelpers. (hdp)
336 0.84 Fri, Jun 26, 2009
338 - has now sets definition_context for attributes defined in
341 * Moose::Meta::Attribute
342 - When adding an attribute to a metaclass, if the attribute has
343 no associated methods, it will give a deprecation
345 - Methods generated by delegation were not being added to
346 associated_methods. (hdp)
347 - Attribute accessors (reader, writer, accessor, predicate,
348 clearer) now warn if they overwrite an existing method. (doy)
349 - Attribute constructors now warn very noisily about unknown (or
350 misspelled) arguments
352 * Moose::Util::TypeConstraints
353 - Deprecated the totally useless Role type name, which just
354 checked if $object->can('does'). Note that this is _not_ the
355 same as a type created by calling role_type('RoleName').
357 * Moose::Util::TypeConstraints
358 * Moose::Meta::TypeConstraint::DuckType
359 - Reify duck type from a regular subtype into an actual class
361 - Document this because Sartak did all my work for me
364 * Moose::Meta::Attribute
365 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
366 it is just a list of methods (Sartak)
369 - The get_*_method_modifiers methods would die if the role had
370 no modifiers of the given type (Robert Buels).
372 0.83 Tue, Jun 23, 2009
374 - Fix _construct_instance not setting the special __MOP__ object
375 key in instances of anon classes. (doy)
377 0.82 Sun, Jun 21, 2009
378 * Moose::Manual::Types
379 - Mention MooseX::Types early to avoid users falling down the
380 string parsing rathole (mst)
382 * Moose::Manual::MooseX
383 - Add warnings about class-level extensions and mention considering
384 using plain objects instead
386 0.81 Sun, Jun 7, 2009
387 * Bumped our Class::MOP prereq to the latest version (0.85), since
390 0.80 Sat, Jun 6, 2009
392 - Add FAQ about the coercion change from 0.76 because it came up
393 three times today (perigrin)
394 - Win doy $10 dollars because Sartak didn't think anybody
395 would document this fast enough (perigrin)
397 * Moose::Meta::Method::Destructor
398 - Inline a DESTROY method even if there are no DEMOLISH methods
399 to prevent unnecessary introspection in
400 Moose::Object::DEMOLISHALL
403 - A role's required methods are now represented by
404 Moose::Meta::Role::Method::Required objects. Conflicts are now
405 represented by Moose::Meta::Role::Method::Conflicting
406 objects. The benefit for end-users in that unresolved
407 conflicts generate different, more instructive, errors,
408 resolving Ovid's #44895. (Sartak)
411 - Improve the error message of "extends" as suggested by Adam
412 Kennedy and confound (Sartak)
413 - Link to Moose::Manual::Roles from Moose::Role as we now have
414 excellent documentation (Adam Kennedy)
417 - Update test suite for subname change in Class::MOP
419 - Add TODO test for infinite recursion in Moose::Meta::Class
422 0.79 Wed, May 13, 2009
424 - More fixes for Win32 problems. Reported by Robert Krimen.
427 - The DEMOLISHALL method could still blow up in some cases
428 during global destruction. This method has been made more
429 resilient in the face of global destruction's random garbage
433 - If you "also" a module that isn't loaded, the error message
434 now acknowledges that (Sartak)
437 - When your ->meta method does not return a Moose::Meta::Class,
438 the error message gave the wrong output (Sartak)
440 0.78 Tue, May 12, 2009
441 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
442 - Merged these documents into what is now Moose::Manual::FAQ
445 - Moved to Moose::Manual::Unsweetened
447 * Moose::Cookbook::Basics::Recipes 9-12
448 - Renamed to be 8-11, since recipe 8 did not exist
451 - Make Moose::Exporter import strict and warnings into packages
455 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
456 methods during global destruction (doy)
459 * Moose::Meta::Role::Application::ToClass
460 - Track the Role::Application objects created during class-role
464 - Fix metaclass incompatibility errors when extending a vanilla perl
465 class which isa Moose class with a metaclass role applied (t0m)
468 - Add a role-combination hook, _role_for_combination, for the
469 benefit of MooseX::Role::Parameterized (Sartak)
472 - Some tests were failing on Win32 because they explicit checked
473 warning output for newlines. Reported by Nickolay Platonov.
475 0.77 Sat, May 2, 2009
477 - Add explicit use of Devel::GlobalDestruction and Sub::Name
481 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
482 or not we are currently in global destruction (doy)
483 - Add explicit use of Devel::GlobalDestruction and Sub::Name
486 * Moose::Cookbook::FAQ
487 - Reworked much of the existing content to be more useful to
488 modern Moose hackers (Sartak)
491 - Depend on Class::MOP 0.83 instead of 0.82_01.
493 0.76 Mon, April 27, 2009
494 * Moose::Meta::TypeConstraint
495 - Do not run coercions in coerce() if the value already passes the type
498 * Moose::Meta::TypeConstraint::Class
499 - In validation error messages, specifically say that the value is not
500 an instance of the class. This should alleviate some frustrating
501 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
503 * Moose::Meta::Role::Application::ToClass
504 - Revert the class-overrides-role warning in favor of a solution outside
505 of the Moose core (Sartak)
508 - Make Test::Output optional again, since it's only used in a few files
511 0.75_01 Thu, April 23, 2009
512 * Moose::Meta::Role::Application::ToClass
513 - Moose now warns about each class overriding methods from roles it
517 - Warnings tests have standardized on Test::Output which is now an
518 unconditionally dependency (Sartak)
521 - Changes to immutabilization to work with Class::MOP 0.82_01+.
523 0.75 Mon, April 20, 2009
526 - Move validation of not inheriting from roles from Moose::extends to
527 Moose::Meta::Class::superclasses (doy)
530 - add ensure_all_roles() function to encapsulate the common "apply this
531 role unless the object already does it" pattern (hdp)
534 - Users can now select a different metaclass with the "-metaclass"
535 option to import, for classes and roles (Sartak)
538 - Make method_metaclass an attr so that it can accept a metarole
541 0.74 Tue, April 7, 2009
543 * Moose::Meta::Method::Destructor
544 - Include stack traces in the deprecation warnings.
548 - Removed the long-deprecated _apply_all_roles method.
550 * Moose::Meta::TypeConstraint
551 - Removed the long-deprecated union method.
554 0.73_02 Mon, April 6, 2009
555 * More deprecations and renamings
556 - Moose::Meta::Method::Constructor
557 - initialize_body => _initialize_body (this is always called
558 when an object is constructed)
561 - The DEMOLISHALL method could throw an exception during global
562 destruction, meaning that your class's DEMOLISH methods would
563 not be properly called. Reported by t0m.
565 * Moose::Meta::Method::Destructor
566 - Destructor inlining was totally broken by the change to the
567 is_needed method in 0.72_01. Now there is a test for this
568 feature, and it works again.
571 - Bold the word 'not' in the POD for find_meta (t0m)
573 0.73_01 Sun, April 5, 2009
575 - Call user_class->meta in fewer places, with the eventual goal
576 of allowing the user to rename or exclude ->meta
577 altogether. Instead uses Class::MOP::class_of. (Sartak)
579 * Moose::Meta::Method::Accessor
580 - If an attribute had a lazy default, and that value did not
581 pass the attribute's type constraint, it did not get the
582 message from the type constraint, instead using a generic
583 message. Test provided by perigrin.
585 * Moose::Util::TypeConstraints
586 - Add duck_type keyword. It's sugar over making sure an object
587 can() a list of methods. This is easier than jrockway's
588 suggestion to fork all of CPAN. (perigrin)
589 - add tests and documentation (perigrin)
592 - Document the fact that init_meta() returns the target class's
593 metaclass object. (hdp)
595 * Moose::Cookbook::Extending::Recipe1
596 * Moose::Cookbook::Extending::Recipe2
597 * Moose::Cookbook::Extending::Recipe3
598 * Moose::Cookbook::Extending::Recipe4
599 - Make init_meta() examples explicitly return the metaclass and
600 point out this fact. (hdp)
602 * Moose::Cookbook::Basics::Recipe12
603 - A new recipe, creating a custom meta-method class.
605 * Moose::Cookbook::Meta::Recipe6
606 - A new recipe, creating a custom meta-method class.
609 * Moose::Meta::Method::Constructor
610 - Attribute triggers no longer receive the meta-attribute object
611 as an argument in any circumstance. Previously, triggers
612 called during instance construction were passed the
613 meta-attribute, but triggers called by normal accessors were
614 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
616 * Moose::Manual::Attributes
617 - Remove references to triggers receving the meta-attribute object as an
620 * Moose::Cookbook::FAQ
621 - Remove recommendation for deprecated Moose::Policy and
622 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
625 * Many methods have been renamed with a leading underscore, and a
626 few have been deprecated entirely. The methods with a leading
627 underscore are consider "internals only". People writing
628 subclasses or extensions to Moose should feel free to override
629 them, but they are not for "public" use.
632 - check_metaclass_compatibility => _check_metaclass_compatibility
634 - Moose::Meta::Method::Accessor
635 - initialize_body => _initialize_body (this is always called
636 when an object is constructed)
637 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
639 - Moose::Meta::Method::Constructor
640 - initialize_body => _initialize_body (this is always called
641 when an object is constructed)
642 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
643 - attributes => _attributes (now inherited from parent)
644 - meta_instance => _meta_instance (now inherited from parent)
647 - alias_method is deprecated. Use add_method
649 0.73 Fri, March 29, 2009
650 * No changes from 0.72_01.
652 0.72_01 Thu, March 26, 2009
654 - Almost every module has complete API documentation. A few
655 methods (and even whole classes) have been intentionally
656 excluded pending some rethinking of their APIs.
658 * Moose::Util::TypeConstraints
659 - Calling subtype with a name as the only argument is now an
660 exception. If you want an anonymous subtype do:
662 my $subtype = subtype as 'Foo';
664 * Moose::Cookbook::Meta::Recipe7
665 - A new recipe, creating a custom meta-instance class.
667 * Moose::Cookbook::Basics::Recipe5
668 - Fix various typos and mistakes. Includes a patch from Radu
671 * Moose::Cookbook::Basics::Recipe9
672 - Link to this recipe from Moose.pm's builder blurb
675 - When wrapping a function with a prototype, Moose::Exporter now
676 makes sure the wrapped function still has the same
677 prototype. (Daisuke Maki)
679 * Moose::Meta::Attribute
680 - Allow a subclass to set lazy_build for an inherited
684 - Explicitly depend on Data::OptList. We already had this dependency
685 via Sub::Exporter, but since we're using it directly we're
686 better off with it listed. (Sartak)
688 * Moose::Meta::Method::Constructor
689 - Make it easier to subclass the inlining behaviour. (Ash
692 * Moose::Manual::Delta
693 - Details significant changes in the history of Moose, along
694 with recommended workarounds.
696 * Moose::Manual::Contributing
697 - Contributor's guide to Moose.
699 * Moose::Meta::Method::Constructor
700 - The long-deprecated intialize_body method has been removed
701 (yes, spelled like that).
703 * Moose::Meta::Method::Destructor
704 - This is_needed method is now always a class method.
707 - Changes to the internals of how make_immutable works to match
708 changes in latest Class::MOP.
710 0.72 Mon, February 23, 2009
712 * Moose::Meta::Method::Constructor
713 - A mutable class accepted Foo->new(undef) without complaint,
714 while an immutable class would blow up with an unhelpful
715 error. Now, in both cases we throw a helpful error
716 instead. Reported by doy.
718 0.71_01 Sun, February 22, 2009
720 - Hopefully fixed some POD errors in a few recipes that caused
721 them to display weird on search.cpan.org.
723 * Moose::Util::TypeConstraints
724 - Calling type or subtype without the sugar helpers (as, where,
725 message) is now deprecated.
726 - The subtype function tried hard to guess what you meant, but
727 often got it wrong. For example:
729 my $subtype = subtype as 'ArrayRef[Object]';
731 This caused an error in the past, but now works as you'd
735 - Make sure Moose.pm is loaded before calling
736 Moose->throw_error. This wasn't normally an issue, but could
737 bite you in weird cases.
739 0.71 Thu, February 19, 2009
740 * Moose::Cookbook::Basics::Recipe11
741 - A new recipe which demonstrates the use of BUILDARGS and
744 * Moose::Cookbook::Roles::Recipe3
745 - A new recipe, applying a role to an object instance. (Dave
749 - Allow overriding specific keywords from "also" packages. (doy)
752 - Replace hardcoded cookbook tests with Test::Inline to ensure
753 the tests match the actual code in the recipes. (Dave Rolsky)
756 - Working on the above turned up a number of little bugs in the
757 recipe code. (Dave Rolsky)
759 * Moose::Util::TypeConstraints::Optimized
760 - Just use Class::MOP for the optimized ClassName check. (Dave
763 0.70 Sat, February 14, 2009
764 * Moose::Util::TypeConstraints
765 - Added the RoleName type (stevan)
766 - added tests for this (stevan)
768 * Moose::Cookbook::Basics::Recipe3
769 - Updated the before qw[left right] sub to be a little more
770 defensive about what it accepts (stevan)
771 - added more tests to t/000_recipies/basics/003_binary_tree.t
775 - We now always call DEMOLISHALL, even if a class does not
776 define DEMOLISH. This makes sure that method modifiers on
777 DEMOLISHALL work as expected. (doy)
778 - added tests for this (EvanCarroll)
780 * Moose::Util::MetaRole
781 - Accept roles for the wrapped_method_metaclass (rafl)
782 - added tests for this (rafl)
784 * Moose::Meta::Attribute
785 - We no longer pass the meta-attribute object as a final
786 argument to triggers. This actually changed for inlined code a
787 while back, but the non-inlined version and the docs were
791 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
792 they require 0.11. (Dave Rolsky)
795 - Lots of small changes to the manual, cookbook, and
796 elsewhere. These were based on feedback from various
797 users, too many to list here. (Dave Rolsky)
799 0.69 Thu, February 12, 2009
801 - Make some keyword errors use throw_error instead of croak
802 since Moose::Exporter wraps keywords now (Sartak)
805 - Revised every recipe for style and clarity. Also moved some
806 documentation out of cookbook recipes and into Moose::Manual
807 pages. This work was funded as part of the Moose docs grant
808 from TPF. (Dave Rolsky)
810 * Moose::Meta::Method::Delegation
811 - If the attribute doing the delegation was not populated, the
812 error message did not specify the attribute name
815 0.68 Wed, February 4, 2009
817 - Many spelling, typo, and formatting fixes by daxim.
819 * Moose::Manual::Attributes
820 - The NAME section in the POD used "Attribute" so search.cpan
821 didn't resolve links from other documents properly.
823 * Moose::Meta::Method::Overriden
824 - Now properly spelled as Overridden. Thanks to daxim for
827 0.67 Tue, February 3, 2009
829 - Lots of little typo fixes and a few clarifications. Several
830 pages didn't have proper titles, and so weren't actually
831 visible on search.cpan.org. Thanks to hanekomu for a variety
832 of fixes and formatting improvements.
834 0.66 Tue, February 3, 2009
836 - This is a brand new, extensive manual for Moose. This aims to
837 provide a complete introduction to all of Moose's
838 features. This work was funded as part of the Moose docs grant
839 from TPF. (Dave Rolsky)
841 * Moose::Meta::Attribute
842 - Added a delegation_metaclass method to replace a hard-coded
843 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
845 * Moose::Util::TypeConstraints
846 - If you created a subtype and passed a parent that Moose didn't
847 know about, it simply ignored the parent. Now it automatically
848 creates the parent as a class type. This may not be what you
849 want, but is less broken than before. (Dave Rolsky)
851 * Moose::Util::TypeConstraints
852 - This module tried throw errors by calling Moose->throw_error,
853 but it did not ensure that Moose was loaded first. This could
854 cause very unhelpful errors when it tried to throw an error
855 before Moose was loaded. (Dave Rolsky)
857 * Moose::Util::TypeConstraints
858 - You could declare a name with subtype such as "Foo!Bar" that
859 would be allowed, but if you used it in a parameterized type
860 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
861 vetting on names created via the sugar functions, so that they
862 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
864 0.65 Thu, January 22, 2008
865 * Moose and Moose::Meta::Method::Overridden
866 - If an overridden method called super(), and then the
867 superclass's method (not overridden) _also_ called super(),
868 Moose went into an endless recursion loop. Test provided by
869 Chris Prather. (Dave Rolsky)
871 * Moose::Meta::TypeConstraint
872 - All methods are now documented. (gphat)
874 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
875 - Fixed some bogus failures that occurred because we tried to
876 validate filesystem paths in a very ad-hoc and
877 not-quite-correct way. (Dave Rolsky)
879 * Moose::Util::TypeConstraints
880 - Added maybe_type to exports. See docs for details. (rjbs)
883 - Added Moose::Util::TypeConstraints to the SEE ALSO
887 - Methods created via an attribute can now fulfill a "requires"
888 declaration for a role. (nothingmuch)
890 * Moose::Meta::Method::*
891 - Stack traces from inlined code will now report its line and
892 file as being in your class, as opposed to in Moose
895 0.64 Wed, December 31, 2008
896 * Moose::Meta::Method::Accessor
897 - Always inline predicate and clearer methods (Sartak)
899 * Moose::Meta::Attribute
900 - Support for parameterized traits (Sartak)
901 - verify_against_type_constraint method to avoid duplication
902 and enhance extensibility (Sartak)
905 - Tests (but no support yet) for parameterized traits (Sartak)
908 - Require Class::MOP 0.75+, which has the side effect of making
909 sure we work on Win32. (Dave Rolsky)
911 0.63 Mon, December 8, 2008
913 - Some small grammar tweaks and bug fixes in non-Moose example
916 0.62_02 Fri, December 5, 2008
917 * Moose::Meta::Role::Application::ToClass
918 - When a class does not provide all of a role's required
919 methods, the error thrown now mentions all of the missing
920 methods, as opposed to just the first one found. Requested by
921 Curtis Poe (RT #41119). (Dave Rolsky)
923 * Moose::Meta::Method::Constructor
924 - Moose will no longer inline a constructor for your class
925 unless it inherits its constructor from Moose::Object, and
926 will warn when it doesn't inline. If you want to force
927 inlining anyway, pass "replace_constructor => 1" to
928 make_immutable. Addresses RT #40968, reported by Jon
929 Swartz. (Dave Rolsky)
930 - The quoting of default values could be broken if the default
931 contained a single quote ('). Now we use quotemeta to escape
932 anything potentially dangerous in the defaults. (Dave Rolsky)
934 0.62_01 Wed, December 3, 2008
936 - use the method->execute API for BUILDALL
937 and DEMOLISHALL (Sartak)
939 * Moose::Util::TypeConstraints
940 - We now make all the type constraint meta classes immutable
941 before creating the default types provided by Moose. This
942 should make loading Moose a little faster. (Dave Rolsky)
944 0.62 Wed November 26, 2008
945 * Moose::Meta::Role::Application::ToClass
946 Moose::Meta::Role::Application::ToRole
947 - fixed issues where excluding and aliasing the
948 same methods for a single role did not work
949 right (worked just fine with multiple
951 - added test for this (stevan)
953 * Moose::Meta::Role::Application::RoleSummation
954 - fixed the error message when trying to compose
955 a role with a role it excludes (Sartak)
958 - Catch another case where recursion caused the value
959 of $CALLER to be stamped on (t0m)
960 - added test for this (t0m)
963 - Remove the make_immutable keyword, which has been
964 deprecated since April. It breaks metaclasses that
965 use Moose without no Moose (Sartak)
967 * Moose::Meta::Attribute
968 - Removing an attribute from a class now also removes delegation
969 (handles) methods installed for that attribute (t0m)
970 - added test for this (t0m)
972 * Moose::Meta::Method::Constructor
973 - An attribute with a default that looked like a number (but was
974 really a string) would accidentally be treated as a number
975 when the constructor was made immutable (perigrin)
976 - added test for this (perigrin)
979 - create method for constructing a role
981 - added test for this (Sartak)
982 - anonymous roles! (Sartak)
983 - added test for this (Sartak)
986 - more consistent error messages (Sartak)
988 * Moose::Cookbook::Roles::Recipe1
989 - attempt to explain why a role that just requires
990 methods is useful (Sartak)
992 0.61 Fri November 7, 2008
993 * Moose::Meta::Attribute
994 - When passing a role to handles, it will be loaded if necessary
998 - Method objects returned by get_method (and other methods)
999 Could end up being returned without an associated_metaclass
1000 attribute. Removing get_method_map, which is provided by
1001 Class::MOP::Class, fixed this. The Moose version did nothing
1002 different from its parent except introduce a bug. (Dave Rolsky)
1003 - added tests for this (jdv79)
1006 - Added a $VERSION to all .pm files which didn't have one. Fixes
1007 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
1009 * Moose::Cookbook::Basics::Recipe4
1010 * Moose::Cookbook::Basics::Recipe6
1011 - These files had spaces on the first line of the SYNOPSIS, as
1012 opposed to a totally empty line. According to RT #40432, this
1013 confuses POD parsers. (Dave Rolsky)
1015 0.60 Fri October 24, 2008
1017 - Passing "-traits" when loading Moose caused the Moose.pm
1018 exports to be broken. Reported by t0m. (Dave Rolsky)
1019 - Tests for this bug. (t0m)
1022 - Change resolve_metaclass alias to use the new
1023 load_first_existing_class function. This makes it a lot
1024 simpler, and also around 5 times faster. (t0m)
1025 - Add caching to resolve_metaclass_alias, which gives an order
1026 of magnitude speedup to things which repeatedly call the
1027 Moose::Meta::Attribute->does method, notably MooseX::Storage
1030 * Moose::Util::TypeConstraint
1031 - Put back the changes for parameterized constraints that
1032 shouldn't have been removed in 0.59. We still cannot parse
1033 them, but MooseX modules can create them in some other
1034 way. See the 0.58 changes for more details. (jnapiorkowski)
1035 - Changed the way subtypes are created so that the job is
1036 delegated to a type constraint parent. This clears up some
1037 hardcoded checking and should allow correct subtypes of
1038 Moose::Meta::Type::Constraint. Don't rely on this new API too
1039 much (create_child_type) because it may go away in the
1040 future. (jnapiorkowski)
1042 * Moose::Meta::TypeConstraint::Union
1043 - Type constraint names are sorted as strings, not numbers.
1046 * Moose::Meta::TypeConstraint::Parameterizable
1047 - New parameterize method. This can be used as a factory method
1048 to make a new type constraint with a given parameterized
1049 type. (jnapiorkowski)
1050 - added tests (jnapiorkowski)
1052 0.59 Tue October 14, 2008
1054 - Add abridged documentation for builder/default/initializer/
1055 predicate, and link to more details sections in
1056 Class::MOP::Attribute. (t0m)
1058 * Moose::Util::TypeConstraints
1059 - removed prototypes from all but the &-based stuff (mst)
1061 * Moose::Util::TypeConstraints
1062 - Creating a anonymous subtype with both a constraint and a
1063 message failed with a very unhelpful error, but should just
1064 work. Reported by t0m. (Dave Rolsky)
1067 - Some tests that used Test::Warn if it was available failed
1068 with older versions of Test::Warn. Reported by Fayland. (Dave
1070 - Test firing behavior of triggers in relation to builder/default/
1072 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
1073 kinds of supported type. (t0m)
1075 * Moose::Meta::Class
1076 - In create(), do not pass "roles" option to the superclass
1077 - added related test that creates an anon metaclass with
1078 a required attribute
1080 * Moose::Meta::TypeConstraint::Class
1081 * Moose::Meta::TypeConstraint::Role
1082 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
1083 other types (as per change in 0.55_02). (t0m)
1085 * Moose::Meta::TypeConstraint::Registry
1086 - Fix warning when dealing with unknown type names (t0m)
1088 * Moose::Util::TypeConstraints
1089 - Reverted changes from 0.58 related to handle parameterized
1090 types. This caused random failures on BSD and Win32 systems,
1091 apparently related to the regex engine. This means that Moose
1092 can no longer parse structured type constraints like
1093 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
1094 supported in a slightly different way via MooseX::Types some
1095 time in the future. (Dave Rolsky)
1097 0.58 Sat September 20, 2008
1098 !! This release has an incompatible change regarding !!
1099 !! how roles add methods to a class !!
1101 * Roles and role application
1102 ! Roles now add methods by calling add_method, not
1103 alias_method. They make sure to always provide a method
1104 object, which will be cloned internally. This means that it is
1105 now possible to track the source of a method provided by a
1106 role, and even follow its history through intermediate roles.
1108 This means that methods added by a role now show up when
1109 looking at a class's method list/map. (Dave Rolsky)
1112 - From this release on, we'll try to maintain a list of
1113 conflicting modules, and warn you if you have one
1114 installed. For example, this release conflicts with ...
1115 - MooseX::Singleton <= 0.11
1116 - MooseX::Params::Validate <= 0.05
1119 In general, we try to not break backwards compatibility for
1120 most Moose users, but MooseX modules and other code which
1121 extends Moose's metaclasses is often affected by very small
1122 changes in the Moose internals.
1124 * Moose::Meta::Method::Delegation
1125 * Moose::Meta::Attribute
1126 - Delegation methods now have their own method class. (Dave
1129 * Moose::Meta::TypeConstraint::Parameterizable
1130 - Added a new method 'parameterize' which is basically a factory
1131 for the containing constraint. This makes it easier to create
1132 new types of parameterized constraints. (jnapiorkowski)
1134 * Moose::Meta::TypeConstraint::Union
1135 - Changed the way Union types canonicalize their names to follow
1136 the normalized TC naming rules, which means we strip all
1137 whitespace. (jnapiorkowski)
1139 * Moose::Util::TypeConstraints
1140 - Parameter and Union args are now sorted, this makes Int|Str
1141 the same constraint as Str|Int. (jnapiorkowski)
1142 - Changes to the way Union types are parsed to more correctly
1143 stringify their names. (jnapiorkowski)
1144 - When creating a parameterized type, we now use the new
1145 parameterize method. (jnapiorkowski)
1146 - Incoming type constraint strings are now normalized to remove
1147 all whitespace differences. (jnapiorkowski)
1148 - Changed the way we parse type constraint strings so that we now
1149 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
1150 constraints. This lays the foundation for more flexible type
1151 constraint implementations.
1153 * Tests and docs for all the above. (jnapiorkowski)
1157 - Moose::Exporter will no longer remove a subroutine that the
1158 exporting package re-exports. Moose re-exports the
1159 Carp::confess function, among others. The reasoning is that we
1160 cannot know whether you have also explicitly imported those
1161 functions for your own use, so we err on the safe side and
1162 always keep them. (Dave Rolsky)
1163 - added tests for this (rafl)
1165 * Moose::Meta::Class
1166 - Changes to how we fix metaclass compatibility that are much
1167 too complicated to go into. The summary is that Moose is much
1168 less likely to complain about metaclass incompatibility
1169 now. In particular, if two metaclasses differ because
1170 Moose::Util::MetaRole was used on the two corresponding
1171 classes, then the difference in roles is reconciled for the
1172 subclass's metaclass. (Dave Rolsky)
1173 - Squashed an warning in _process_attribute (thepler)
1176 - throw exceptions (sooner) for invalid attribute names (thepler)
1177 - added tests for this (thepler)
1179 * Moose::Util::MetaRole
1180 - If you explicitly set a constructor or destructor class for a
1181 metaclass object, and then applied roles to the metaclass,
1182 that explicitly set class would be lost and replaced with the
1185 * Moose::Meta::Class
1186 * Moose::Meta::Attribute
1187 * Moose::Meta::Method
1190 * Moose::Error::Default
1191 * Moose::Error::Croak
1192 * Moose::Error::Confess
1193 - All instances of confess() changed to use overridable
1194 C<throw_error> method. This method ultimately calls a class
1195 constructor, and you can change the class being called. In
1196 addition, errors now pass more information than just a string.
1197 The default C<error_class> behaves like C<Carp::confess>, so
1198 the behavior is not visibly different for end users.
1200 0.57 Wed September 3, 2008
1202 - A new bit of doc intended to introduce folks familiar with
1203 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
1205 * Moose::Unsweetened
1206 - Shows examples of two classes, each done first with and then
1207 without Moose. This makes a nice parallel to
1208 Moose::Intro. (Dave Rolsky)
1210 * Moose::Util::TypeConstraints
1211 - Fixed a bug in find_or_parse_type_constraint so that it
1212 accepts a Moose::Meta::TypeConstraint object as the parent
1213 type, not just a name (jnapiorkowski)
1214 - added tests (jnapiorkowski)
1217 - If Sub::Name was not present, unimporting failed to actually
1218 remove some sugar subs, causing test failures (Dave Rolsky)
1220 0.56 Mon September 1, 2008
1221 For those not following the series of dev releases, there are
1222 several major changes in this release of Moose.
1223 ! Moose::init_meta should now be called as a method. See the
1226 - Major performance improvements by nothingmuch.
1228 - New modules for extension writers, Moose::Exporter and
1229 Moose::Util::MetaRole by Dave Rolsky.
1231 - Lots of doc improvements and additions, especially in the
1234 - Various bug fixes.
1236 * Removed all references to the experimental-but-no-longer-needed
1237 Moose::Meta::Role::Application::ToMetaclassInstance.
1239 * Require Class::MOP 0.65.
1241 0.55_04 Sat August 30, 2008
1242 * Moose::Util::MetaRole
1243 * Moose::Cookbook::Extending::Recipe2
1244 - This simplifies the application of roles to any meta class, as
1245 well as the base object class. Reimplemented metaclass traits
1246 using this module. (Dave Rolsky)
1248 * Moose::Cookbook::Extending::Recipe1
1249 - This a new recipe, an overview of various ways to write Moose
1250 extensions (Dave Rolsky)
1252 * Moose::Cookbook::Extending::Recipe3
1253 * Moose::Cookbook::Extending::Recipe4
1254 - These used to be Extending::Recipe1 and Extending::Recipe2,
1257 0.55_03 Fri August 29, 2008
1258 * No changes from 0.55_02 except increasing the Class::MOP
1259 dependency to 0.64_07.
1261 0.55_02 Fri August 29, 2008
1262 * Makefile.PL and Moose.pm
1263 - explicitly require Perl 5.8.0+ (Dave Rolsky)
1265 * Moose::Util::TypeConstraints
1266 - Fix warnings from find_type_constraint if the type is not
1269 * Moose::Meta::TypeConstraint
1270 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1271 return false if the type you specify cannot be found in the
1272 type registry, rather than throwing an unhelpful and
1273 coincidental exception. (t0m).
1274 - added docs & test for this (t0m)
1276 * Moose::Meta::TypeConstraint::Registry
1277 - add_type_constraint now throws an exception if a parameter is
1279 - added docs & test for this (t0m)
1281 * Moose::Cookbook::FAQ
1282 - Added a faq entry on the difference between "role" and "trait"
1286 - Fixed a bug that caused role composition to not see a required
1287 method when that method was provided by another role being
1288 composed at the same time. (Dave Rolsky)
1289 - test and bug finding (tokuhirom)
1291 0.55_01 Wed August 20, 2008
1293 !! Calling Moose::init_meta as a function is now !!
1294 !! deprecated. Please see the Moose.pm docs for details. !!
1296 * Moose::Meta::Method::Constructor
1297 - Fix inlined constructor so that values produced by default
1298 or builder methods are coerced as required. (t0m)
1299 - added test for this (t0m)
1301 * Moose::Meta::Attribute
1302 - A lazy attribute with a default or builder did not attempt to
1303 coerce the default value. The immutable code _did_
1305 - added test for this (t0m)
1308 - This is a new helper module for writing "Moose-alike"
1309 modules. This should make the lives of MooseX module authors
1310 much easier. (Dave Rolsky)
1313 * Moose::Cookbook::Meta::Recipe5
1314 - Implemented metaclass traits (and wrote a recipe for it):
1316 use Moose -traits => 'Foo'
1318 This should make writing small Moose extensions a little
1319 easier (Dave Rolsky)
1321 * Moose::Cookbook::Basics::Recipe1
1322 - Removed any examples of direct hashref access, and applied an
1323 editorial axe to reduce verbosity. (Dave Rolsky)
1325 * Moose::Cookbook::Basics::Recipe1
1326 - Also applied an editorial axe here. (Dave Rolsky)
1329 * Moose::Cookbook::Extending::Recipe1
1330 * Moose::Cookbook::Extending::Recipe2
1331 - Rewrote extending and embedding moose documentation and
1332 recipes to use Moose::Exporter (Dave Rolsky)
1336 - These two modules now warn when you load them from the main
1337 package "main" package, because we will not export sugar to
1338 main. Previously it just did nothing. (Dave Rolsky)
1341 - Now provide an init_meta method just like Moose.pm, and you
1342 can call this to provide an alternate role metaclass. (Dave
1343 Rolsky and nothingmuch)
1344 - get_method_map now respects the package cache flag (nothingmuch)
1347 - Two new methods - add_method and wrap_method_body
1351 - Optimizations including allowing constructors to accept hash
1352 refs, making many more classes immutable, and making
1353 constructors immutable. (nothingmuch)
1355 0.55 Sun August 3, 2008
1356 * Moose::Meta::Attribute
1357 - breaking down the way 'handles' methods are
1358 created so that the process can be more easily
1359 overridden by subclasses (stevan)
1361 * Moose::Meta::TypeConstraint
1362 - fixing what is passed into a ->message with
1363 the type constraints (RT #37569)
1364 - added tests for this (Charles Alderman)
1366 * Moose::Util::TypeConstraints
1367 - fix coerce to accept anon types like subtype can (mst)
1370 - reorganized the recipes into sections - Basics, Roles, Meta,
1371 Extending - and wrote abstracts for each section (Dave Rolsky)
1373 * Moose::Cookbook::Basics::Recipe10
1374 - A new recipe that demonstrates operator overloading
1375 in combination with Moose. (bluefeet)
1377 * Moose::Cookbook::Meta::Recipe1
1378 - an introduction to what meta is and why you'd want to make
1379 your own metaclass extensions (Dave Rolsky)
1381 * Moose::Cookbook::Meta::Recipe4
1382 - a very simple metaclass example (Dave Rolsky)
1384 * Moose::Cookbook::Extending::Recipe1
1385 - how to write a Moose-alike module to use your own object base
1388 * Moose::Cookbook::Extending::Recipe2
1389 - how to write modules with an API just like C<Moose.pm> (Dave
1393 - Tons of fixes, both syntactical and grammatical (Dave
1394 Rolsky, Paul Fenwick)
1396 0.54 Thurs. July 3, 2008
1397 ... this is not my day today ...
1399 * Moose::Meta::Attribute
1400 - fixed legal_options_for_inheritance such that
1401 clone_and_inherit options still works for
1402 Class::MOP::Attribute objects and therefore
1403 does not break MooseX::AttributeHelpers
1406 0.53 Thurs. July 3, 2008
1407 * Whoops, I guess I should run 'make manifest' before
1408 actually releasing the module. No actual changes
1409 in this release, except the fact that it includes
1410 the changes that I didn't include in the last
1413 0.52 Thurs. July 3, 2008
1415 - added "FEATURE REQUESTS" section to the Moose docs
1416 to properly direct people (stevan) (RT #34333)
1417 - making 'extends' croak if it is passed a Role since
1418 this is not ever something you want to do
1419 (fixed by stevan, found by obra)
1420 - added tests for this (stevan)
1423 - adding support for DOES (as in UNIVERSAL::DOES)
1425 - added test for this
1427 * Moose::Meta::Attribute
1428 - added legal_options_for_inheritance (wreis)
1429 - added tests for this (wreis)
1431 * Moose::Cookbook::Snacks::*
1432 - removed some of the unfinished snacks that should
1433 not have been released yet. Added some more examples
1434 to the 'Keywords' snack. (stevan)
1436 * Moose::Cookbook::Style
1437 - added general Moose "style guide" of sorts to the
1438 cookbook (nothingmuch) (RT #34335)
1441 - added more BUILDARGS tests (stevan)
1443 0.51 Thurs. Jun 26, 2008
1445 - add unimport so "no Moose::Role" actually does
1448 * Moose::Meta::Role::Application::ToRole
1449 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1450 order to provide its own implementation, that method still got
1451 added to the list of required methods for consumers of
1452 RoleB. Now an aliased method is only added to the list of
1453 required methods if the role doing the aliasing does not
1454 provide its own implementation. See Recipe 11 for an example
1455 of all this. (Dave Rolsky)
1456 - added tests for this
1458 * Moose::Meta::Method::Constructor
1459 - when a single argument that wasn't a hashref was provided to
1460 an immutabilized constructor, the error message was very
1461 unhelpful, as opposed to the non-immutable error. Reported by
1463 - added test for this (Dave Rolsky)
1465 * Moose::Meta::Attribute
1466 - added support for meta_attr->does("ShortAlias") (sartak)
1467 - added tests for this (sartak)
1468 - moved the bulk of the `handles` handling to the new
1469 install_delegation method (Stevan)
1472 - Added BUILDARGS, a new step in new()
1474 * Moose::Meta::Role::Application::RoleSummation
1475 - fix typos no one ever sees (sartak)
1477 * Moose::Util::TypeConstraints
1478 * Moose::Meta::TypeConstraint
1479 * Moose::Meta::TypeCoercion
1480 - Attempt to work around the ??{ } vs. threads issue
1482 - Some null_constraint optimizations
1484 0.50 Thurs. Jun 11, 2008
1485 - Fixed a version number issue by bumping all modules
1488 0.49 Thurs. Jun 11, 2008
1489 !! This version now approx. 20-25% !!
1490 !! faster with new Class::MOP 0.59 !!
1492 * Moose::Meta::Attribute
1493 - fixed how the is => (ro|rw) works with
1494 custom defined reader, writer and accessor
1496 - added docs for this (TODO).
1497 - added tests for this (Thanks to Penfold)
1498 - added the custom attribute alias for regular
1499 Moose attributes which is "Moose"
1500 - fix builder and default both being used
1505 Moose::Meta::Attribute
1507 Moose::Meta::Role::Composite
1508 Moose::Util::TypeConstraints
1509 - switched usage of reftype to ref because
1513 - changing add_package_symbol to use the new
1517 - fixed how DEMOLISHALL is called so that it
1518 can be overrided in subclasses (thanks to Sartak)
1519 - added test for this (thanks to Sartak)
1521 * Moose::Util::TypeConstraints
1522 - move the ClassName type check code to
1523 Class::MOP::is_class_loaded (thanks to Sartak)
1525 * Moose::Cookbook::Recipe11
1526 - add tests for this (thanks to tokuhirom)
1528 0.48 Thurs. May 29, 2008
1529 (early morning release engineering)--
1531 - fixing the version in Moose::Meta::Method::Destructor
1532 which was causing the indexer to choke
1534 0.47 Thurs. May 29, 2008
1535 (late night release engineering)--
1537 - fixing the version is META.yml, no functional
1538 changes in this release
1540 0.46 Wed. May 28, 2008
1541 !! This version now approx. 20-25% !!
1542 !! faster with new Class::MOP 0.57 !!
1544 * Moose::Meta::Class
1545 - some optimizations of the &initialize method
1546 since it is called so often by &meta
1548 * Moose::Meta::Class
1550 - now use the get_all_package_symbols from the
1551 updated Class::MOP, test suite is now 10 seconds
1554 * Moose::Meta::Method::Destructor
1555 - is_needed can now also be called as a class
1556 method for immutablization to check if the
1557 destructor object even needs to be created
1560 * Moose::Meta::Method::Destructor
1561 Moose::Meta::Method::Constructor
1562 - added more descriptive error message to help
1563 keep people from wasting time tracking an error
1564 that is easily fixed by upgrading.
1566 0.45 Saturday, May 24, 2008
1568 - Because of work in Class::MOP 0.57, all
1569 XS based functionality is now optional
1570 and a Pure Perl version is supplied
1571 - the CLASS_MOP_NO_XS environment variable
1572 can now be used to force non-XS versions
1574 - several of the packages have been tweaked
1575 to take care of this, mostly we added
1576 support for the package_name and name
1577 variables in all the Method metaclasses
1578 - before/around/after method modifiers now
1579 support regexp matching of names
1580 (thanks to Takatoshi Kitano)
1581 - tests added for this
1582 - NOTE: this only works for classes, it
1583 is currently not supported in roles,
1584 but, ... patches welcome
1585 - All usage of Carp::confess have been replaced
1586 by Carp::croak in the "keyword" functions since
1587 the stack trace is usually not helpful
1590 - All usage of Carp::confess have been replaced
1591 by Carp::croak in the "keyword" functions since
1592 the stack trace is usually not helpful
1593 - The 'has' keyword for roles now accepts the
1594 same array ref form that Moose.pm does
1595 (has [qw/foo bar/] => (is => 'rw', ...))
1596 - added test for this
1598 * Moose::Meta::Attribute
1599 - trigger on a ro-attribute is no longer an
1600 error, as it's useful to trigger off of the
1603 * Moose::Meta::Class
1604 - added same 'add_package_symbol' fix as in
1608 - does_role now handles non-Moose classes
1610 - added tests for this
1611 - added the 'add_method_modifier' function
1612 (thanks to Takatoshi Kitano)
1614 * Moose::Util::TypeConstraints
1615 - subtypes of parameterizable types now are
1616 themselves parameterizable types
1618 * Moose::Meta::Method::Constructor
1619 - fixed bug where trigger was not being
1620 called by the inlined immutable
1622 - added test for this (thanks to Caelum)
1624 * Moose::Meta::Role::Application::ToInstance
1625 - now uses the metaclass of the instance
1626 (if possible) to create the anon-class
1627 (thanks Jonathan Rockway)
1629 * Moose::Cookbook::Recipe22
1630 - added the meta-attribute trait recipe
1634 - fixed hash-ordering test bug that was
1635 causing occasional cpantester failures
1636 - renamed the t/000_recipe/*.t tests to be
1637 more descriptive (thanks to Sartak)
1639 0.44 Sat. May 10, 2008
1641 - made make_immutable warning cluck to
1642 show where the error is (thanks mst)
1645 - BUILDALL and DEMOLISHALL now call
1646 ->body when looping through the
1647 methods, to avoid the overloaded
1649 - fixed issue where DEMOLISHALL was
1650 eating the $@ values, and so not
1651 working correctly, it still kind of
1652 eats them, but so does vanilla perl
1653 - added tests for this
1655 * Moose::Cookbook::Recipe7
1656 - added new recipe for immutable
1657 functionality (thanks Dave Rolsky)
1659 * Moose::Cookbook::Recipe9
1660 - added new recipe for builder and
1661 lazy_build (thanks Dave Rolsky)
1663 * Moose::Cookbook::Recipe11
1664 - added new recipe for method aliasing
1665 and exclusion with Roles (thanks Dave Rolsky)
1668 - fixed Win32 test failure (thanks spicyjack)
1670 ~ removed Build.PL and Module::Build compat
1671 since Module::Install has done that.
1673 0.43 Wed. April, 30, 2008
1675 drink more coffee before
1676 doing release engineering
1678 - whoops, forgot to do the smolder tests,
1679 and we broke some of the custom meta-attr
1680 modules. This fixes that.
1682 0.42 Mon. April 28, 2008
1683 - some bad tests slipped by, nothing else
1684 changed in this release (cpantesters++)
1686 - upped the Class::MOP dependency to 0.55
1687 since we have tests which need the C3
1690 0.41 Mon. April 28, 2008
1691 ~~ numerous documentation updates ~~
1693 - Changed all usage of die to Carp::croak for better
1694 error reporting (initial patch by Tod Hagan)
1696 ** IMPORTANT NOTE **
1697 - the make_immutable keyword is now deprecated, don't
1698 use it in any new code and please fix your old code
1699 as well. There will be 2 releases, and then it will
1705 - refactored the way inner and super work to avoid
1706 any method/@ISA cache penalty (nothingmuch)
1708 * Moose::Meta::Class
1709 - fixing &new_object to make sure trigger gets the
1710 coerced value (spotted by Charles Alderman on the
1712 - added test for this
1714 * Moose::Meta::Method::Constructor
1715 - immutable classes which had non-lazy attributes were calling
1716 the default generating sub twice in the constructor. (bug
1717 found by Jesse Luehrs, fixed by Dave Rolsky)
1718 - added tests for this (Dave Rolsky)
1719 - fix typo in initialize_body method (nothingmuch)
1721 * Moose::Meta::Method::Destructor
1722 - fix typo in initialize_body method (nothingmuch)
1724 * Moose::Meta::Method::Overriden
1725 Moose::Meta::Method::Augmented
1726 - moved the logic for these into their own
1727 classes (nothingmuch)
1729 * Moose::Meta::Attribute
1730 - inherited attributes may now be extended without
1731 restriction on the type ('isa', 'does') (Sartak)
1732 - added tests for this (Sartak)
1733 - when an attribute property is malformed (such as lazy without
1734 a default), give the name of the attribute in the error
1736 - added the &applied_traits and &has_applied_traits methods
1737 to allow introspection of traits
1738 - added tests for this
1739 - moved 'trait' and 'metaclass' argument handling to here from
1741 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1742 '+foo' syntax) (nothingmuch)
1743 - added tests for this (t0m)
1746 - localize $@ inside DEMOLISHALL to avoid it
1747 eating $@ (found by Ernesto)
1748 - added test for this (thanks to Ernesto)
1750 * Moose::Util::TypeConstraints
1751 - &find_type_constraint now DWIMs when given an
1752 type constraint object or name (nothingmuch)
1753 - &find_or_create_type_constraint superseded with a number of more
1755 - find_or_create_{isa,does}_type_constraint
1756 - find_or_parse_type_constraint
1758 * Moose::Meta::TypeConstraint
1759 Moose::Meta::TypeConstraint::Class
1760 Moose::Meta::TypeConstraint::Role
1761 Moose::Meta::TypeConstraint::Enum
1762 Moose::Meta::TypeConstraint::Union
1763 Moose::Meta::TypeConstraint::Parameterized
1764 - added the &equals method for comparing two type
1765 constraints (nothingmuch)
1766 - added tests for this (nothingmuch)
1768 * Moose::Meta::TypeConstraint
1769 - add the &parents method, which is just an alias to &parent.
1770 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1772 * Moose::Meta::TypeConstraint::Class
1773 - added the class attribute for introspection purposes
1775 - added tests for this
1777 * Moose::Meta::TypeConstraint::Enum
1778 Moose::Meta::TypeConstraint::Role
1779 - broke these out into their own classes (nothingmuch)
1781 * Moose::Cookbook::Recipe*
1782 - fixed references to test file locations in the POD
1783 and updated up some text for new Moose features
1787 - Added &resolve_metaclass_alias, a helper function for finding an actual
1788 class for a short name (e.g. in the traits list)
1790 0.40 Fri. March 14, 2008
1791 - I hate Pod::Coverage
1793 0.39 Fri. March 14, 2008
1795 - documenting the use of '+name' with attributes
1796 that come from recently composed roles. It makes
1797 sense, people are using it, and so why not just
1798 officially support it.
1799 - fixing the 'extends' keyword so that it will not
1800 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1803 - added the perl -Moose=+Class::Name feature to allow
1804 monkeypatching of classes in one liners
1807 - fixing the 'apply_all_roles' keyword so that it will not
1808 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1810 * Moose::Meta::Class
1811 - added ->create method which now supports roles (thanks to jrockway)
1812 - added tests for this
1813 - added ->create_anon_class which now supports roles and caching of
1814 the results (thanks to jrockway)
1815 - added tests for this
1816 - made ->does_role a little more forgiving when it is
1817 checking a Class::MOP era metaclasses.
1819 * Moose::Meta::Role::Application::ToInstance
1820 - it is now possible to pass extra params to be used when
1821 a role is applied to an the instance (rebless_params)
1822 - added tests for this
1824 * Moose::Util::TypeConstraints
1825 - class_type now accepts an optional second argument for a
1826 custom message. POD anotated accordingly (groditi)
1827 - added tests for this
1828 - it is now possible to make anon-enums by passing 'enum' an
1829 ARRAY ref instead of the $name => @values. Everything else
1831 - added tests for this
1834 - making test for using '+name' on attributes consumed
1835 from a role, it works and makes sense too.
1837 * Moose::Meta::Attribute
1838 - fix handles so that it doesn't return nothing
1839 when the method cannot be found, not sure why
1840 it ever did this originally, this means we now
1841 have slightly better support for AUTOLOADed
1843 - added more delegation tests
1844 - adding ->does method to this so as to better
1845 support traits and their introspection.
1846 - added tests for this
1849 - localizing the Data::Dumper configurations so
1850 that it does not pollute others (RT #33509)
1851 - made ->does a little more forgiving when it is
1852 passed Class::MOP era metaclasses.
1854 0.38 Fri. Feb. 15, 2008
1855 * Moose::Meta::Attribute
1856 - fixed initializer to correctly do
1857 type checking and coercion in the
1859 - added tests for this
1862 - fixed some finicky tests (thanks to konobi)
1864 0.37 Thurs. Feb. 14, 2008
1866 - fixed some details in Moose::init_meta
1867 and its superclass handling (thanks thepler)
1868 - added tests for this (thanks thepler)
1869 - 'has' now dies if you don't pass in name
1871 - added the 'make_immutable' keyword as a shortcut
1874 * Moose::Meta::Class
1875 Moose::Meta::Method::Constructor
1876 Moose::Meta::Attribute
1877 - making (init_arg => undef) work here too
1878 (thanks to nothingmuch)
1880 * Moose::Meta::Attribute
1881 Moose::Meta::Method::Constructor
1882 Moose::Meta::Method::Accessor
1883 - make lazy attributes respect attr initializers (rjbs)
1884 - added tests for this
1886 * Moose::Util::TypeConstraints
1887 Moose::Util::TypeConstraints::OptimizedConstraints
1888 Moose::Meta::TypeConstraints
1889 Moose::Meta::Attribute
1890 Moose::Meta::Method::Constructor
1891 Moose::Meta::Method::Accessor
1892 - making type errors use the
1893 assigned message (thanks to Sartak)
1894 - added tests for this
1896 * Moose::Meta::Method::Destructor
1897 - making sure DESTROY gets inlined properly
1898 with successive DEMOLISH calls (thanks to manito)
1900 * Moose::Meta::Attribute
1901 Moose::Meta::Method::Accessor
1902 - fixed handling of undef with type constraints
1904 - added tests for this
1907 - added &get_all_init_args and &get_all_attribute_values
1908 (thanks to Sartak and nothingmuch)
1910 0.36 Sat. Jan. 26, 2008
1912 Moose::Meta::Attribute
1913 - role type tests now support when roles are
1914 applied to non-Moose classes (found by ash)
1915 - added tests for this (thanks to ash)
1916 - couple extra tests to boost code coverage
1918 * Moose::Meta::Method::Constructor
1919 - improved fix for handling Class::MOP attributes
1920 - added test for this
1922 * Moose::Meta::Class
1923 - handled the add_attribute($attribute_meta_object)
1925 - added test for this
1927 0.35 Tues. Jan. 22, 2008
1928 * Moose::Meta::Method::Constructor
1929 - fix to make sure even Class::MOP attributes
1930 are handled correctly (Thanks to Dave Rolsky)
1931 - added test for this (also Dave Rolsky)
1933 * Moose::Meta::Class
1934 - improved error message on _apply_all_roles,
1935 you should now use Moose::Util::apply_all_roles
1936 and you shouldnt have been using a _ prefixed
1937 method in the first place ;)
1939 0.34 Mon. Jan. 21, 2008
1940 ~~~ more misc. doc. fixes ~~~
1941 ~~ updated copyright dates ~~
1943 Moose is now a postmodern object system :)
1944 - (see the POD for details)
1946 * <<Role System Refactoring>>
1947 - this release contains a major reworking and
1948 cleanup of the role system
1949 - 100% backwards compat.
1950 - Role application now restructured into seperate
1951 classes based on type of applicants
1952 - Role summation (combining of more than one role)
1953 is much cleaner and anon-classes are no longer
1954 used in this process
1955 - new Composite role metaclass
1956 - runtime application of roles to instances
1957 is now more efficient and re-uses generated
1958 classes when applicable
1960 * <<New Role composition features>>
1961 - methods can now be excluded from a given role
1963 - methods can now be aliased to another name (and
1964 still retain the original as well)
1966 * Moose::Util::TypeConstraints::OptimizedConstraints
1967 - added this module (see above)
1969 * Moose::Meta::Class
1970 - fixed the &_process_attribute method to be called
1971 by &add_attribute, so that the API is now correct
1973 * Moose::Meta::Method::Accessor
1974 - fixed bug when passing a list of values to
1975 an accessor would get (incorrectly) ignored.
1976 Thanks to Sartak for finding this ;)
1977 - added tests for this (Sartak again)
1979 * Moose::Meta::Method::Accessor
1980 Moose::Meta::Method::Constructor
1981 Moose::Meta::Attribute
1982 Moose::Meta::TypeConstraint
1983 Moose::Meta::TypeCoercion
1984 - lots of cleanup of such things as:
1986 - type constraint handling
1987 - error handling/messages
1988 (thanks to nothingmuch)
1990 * Moose::Meta::TypeConstraint::Parameterizable
1991 - added this module to support the refactor
1992 in Moose::Meta::TypeConstraint::Parameterized
1994 * Moose::Meta::TypeConstraint::Parameterized
1995 - refactored how these types are handled so they
1996 are more generic and not confined to ArrayRef
2000 - shortened some file names for better VMS support (RT #32381)
2002 0.33 Fri. Dec. 14, 2007
2003 !! Moose now loads 2 x faster !!
2004 !! with new Class::MOP 0.49 !!
2006 ++ new oose.pm module to make command line
2007 Moose-ness easier (see POD docs for more)
2009 * Moose::Meta::Class
2011 - several tweaks to take advantage of the
2012 new method map caching in Class::MOP
2014 * Moose::Meta::TypeConstraint::Parameterized
2015 - allow subtypes of ArrayRef and HashRef to
2016 be used as a container (sartak)
2017 - added tests for this
2018 - basic support for coercion to ArrayRef and
2019 HashRef for containers (sartak)
2020 - added tests for this
2022 * Moose::Meta::TypeCoercion
2023 - coercions will now create subtypes as needed
2024 so you can now add coercions to parameterized
2025 types without having to explictly define them
2026 - added tests for this
2028 * Moose::Meta::Method::Accessor
2029 - allow subclasses to decide whether we need
2030 to copy the value into a new variable (sartak)
2032 0.32 Tues. Dec. 4, 2007
2033 * Moose::Util::TypeConstraints
2034 - fixing how subtype aliases of unions work
2035 they should inherit the parent's coercion
2036 - added tests for this
2037 - you can now define multiple coercions on
2038 a single type at different times instead of
2039 having to do it all in one place
2040 - added tests for this
2042 * Moose::Meta::TypeConstraint
2043 - there is now a default constraint of sub { 1 }
2044 instead of Moose::Util::TypeConstraints setting
2047 * Moose::Meta::TypeCoercion
2048 * Moose::Meta::TypeCoercion::Union
2049 - added the &has_coercion_for_type and
2050 &add_type_coercions methods to support the
2051 new features above (although you cannot add
2052 more type coercions for Union types)
2054 0.31 Mon. Nov. 26, 2007
2055 * Moose::Meta::Attribute
2056 - made the +attr syntax handle extending types with
2057 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
2058 now works if the original foo is an ArrayRef.
2059 - added tests for this.
2060 - delegation now works even if the attribute does not
2061 have a reader method using the get_read_method_ref
2062 method from Class::MOP::Attribute.
2063 - added tests for this
2064 - added docs for this
2066 * Moose::Util::TypeConstraints
2067 - passing no "additional attribute info" to
2068 &find_or_create_type_constraint will no longer
2069 attempt to create an __ANON__ type for you,
2070 instead it will just return undef.
2071 - added docs for this
2073 0.30 Fri. Nov. 23, 2007
2074 * Moose::Meta::Method::Constructor
2075 -builder related bug in inlined constructor. (groditi)
2077 * Moose::Meta::Method::Accessor
2078 - genereate unnecessary calls to predicates and refactor
2079 code generation for runtime speed (groditi)
2081 * Moose::Util::TypeConstraints
2082 - fix ClassName constraint to introspect symbol table (mst)
2083 - added more tests for this (mst)
2084 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
2085 with work correctly.
2086 - added tests for this
2089 - adding the link to Recipie 11 (written by Sartak)
2090 - adding test for SYNOPSIS code
2093 - New tests for builder bug. Upon instantiation, if an
2094 attribute had a builder, no value and was not lazy the
2095 builder default was not getting run, oops. (groditi)
2097 0.29 Tues. Nov. 13, 2007
2098 * Moose::Meta::Attribute
2099 - Fix error message on missing builder method (groditi)
2101 * Moose::Meta::Method::Accessor
2102 - Fix error message on missing builder method (groditi)
2105 - Add test to check for the correct error message when
2106 builder method is missing (groditi)
2108 0.28 Tues. Nov. 13, 2007
2109 - 0.27 packaged incorrectly (groditi)
2111 0.27 Tues. Nov. 13, 2007
2112 * Moose::Meta::Attribute
2113 - Added support for the new builder option (groditi)
2114 - Added support for lazy_build option (groditi)
2115 - Changed slot initialization for predicate changes (groditi)
2117 * Moose::Meta::Method::Accessor
2118 - Added support for lazy_build option (groditi)
2119 - Fix inline methods to work with corrected predicate
2122 * Moose::Meta::Method::Constructor
2123 - Added support for lazy_build option (groditi)
2126 - tests for builder and lazy_build (groditi)
2128 * fixing some misc. bits in the docs that
2129 got mentioned on CPAN Forum & perlmonks
2132 - fixed how required methods are handled
2133 when they encounter overriden or modified
2134 methods from a class (thanks to confound).
2135 - added tests for this
2137 * Moose::Util::TypeConstraint
2138 - fixed the type notation parser so that
2139 the | always creates a union and so is
2140 no longer a valid type char (thanks to
2141 konobi, mugwump and #moose for working
2143 - added more tests for this
2145 0.26 Thurs. Sept. 27, 2007
2148 * Parameterized Types
2149 We now support parameterized collection types, such as:
2150 ArrayRef[Int] # array or integers
2151 HashRef[Object] # a hash with object values
2152 They can also be nested:
2153 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
2154 And work with the type unions as well:
2155 ArrayRef[Int | Str] # array of integers of strings
2157 * Better Framework Extendability
2158 Moose.pm is now "extendable" such that it is now much
2159 easier to extend the framework and add your own keywords
2160 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
2161 section of the Moose.pm docs.
2164 In an effort to begin documenting some of the various
2165 details of Moose as well as some common idioms, we have
2166 created Moose::Cookbook::Snacks as a place to find
2167 small (easily digestable) nuggets of Moose code.
2170 ~ Several doc updates/cleanup thanks to castaway ~
2172 - converted build system to use Module::Install instead of
2173 Module::Build (thanks to jrockway)
2176 - added all the meta classes to the immutable list and
2177 set it to inline the accessors
2178 - fix import to allow Sub::Exporter like { into => }
2179 and { into_level => } (perigrin)
2180 - exposed and documented init_meta() to allow better
2181 embedding and extending of Moose (perigrin)
2184 - complete re-organization of the test suite
2185 - added some new tests as well
2186 - finally re-enabled the Moose::POOP test since
2187 the new version of DBM::Deep now works again
2190 * Moose::Meta::Class
2191 - fixed very odd and very nasty recursion bug with
2193 - added tests for this (eilara)
2195 * Moose::Meta::Attribute
2196 Moose::Meta::Method::Constructor
2197 Moose::Meta::Method::Accessor
2198 - fixed issue with overload::Overloaded getting called
2199 on non-blessed items. (RT #29269)
2200 - added tests for this
2202 * Moose::Meta::Method::Accessor
2203 - fixed issue with generated accessor code making
2204 assumptions about hash based classes (thanks to dexter)
2206 * Moose::Coookbook::Snacks
2207 - these are bits of documentation, not quite as big as
2208 Recipes but which have no clear place in the module docs.
2209 So they are Snacks! (horray for castaway++)
2211 * Moose::Cookbook::Recipe4
2212 - updated it to use the new ArrayRef[MyType] construct
2213 - updated the accompanying test as well
2215 +++ Major Refactor of the Type Constraint system +++
2216 +++ with new features added as well +++
2218 * Moose::Util::TypeConstraint
2219 - no longer uses package variable to keep track of
2220 the type constraints, now uses the an instance of
2221 Moose::Meta::TypeConstraint::Registry to do it
2222 - added more sophisticated type notation parsing
2224 - added tests for this
2226 * Moose::Meta::TypeConstraint
2227 - some minor adjustments to make subclassing easier
2228 - added the package_defined_in attribute so that we
2229 can track where the type constraints are created
2231 * Moose::Meta::TypeConstraint::Union
2232 - this is now been refactored to be a subclass of
2233 Moose::Meta::TypeConstraint
2235 * Moose::Meta::TypeCoercion::Union
2236 - this has been added to service the newly refactored
2237 Moose::Meta::TypeConstraint::Union and is itself
2238 a subclass of Moose::Meta::TypeCoercion
2240 * Moose::Meta::TypeConstraint::Parameterized
2241 - added this module (taken from MooseX::AttributeHelpers)
2242 to help construct nested collection types
2243 - added tests for this
2245 * Moose::Meta::TypeConstraint::Registry
2246 - added this class to keep track of type constraints
2248 0.25 Mon. Aug. 13, 2007
2250 - Documentation update to reference Moose::Util::TypeConstraints
2251 under 'isa' in 'has' for how to define a new type
2252 (thanks to shlomif).
2254 * Moose::Meta::Attribute
2255 - required attributes now will no longer accept undef
2256 from the constructor, even if there is a default and lazy
2257 - added tests for this
2258 - default subroutines must return a value which passes the
2260 - added tests for this
2262 * Moose::Meta::Attribute
2263 * Moose::Meta::Method::Constructor
2264 * Moose::Meta::Method::Accessor
2265 - type-constraint tests now handle overloaded objects correctly
2266 in the error message
2267 - added tests for this (thanks to EvanCarroll)
2269 * Moose::Meta::TypeConstraint::Union
2270 - added (has_)hand_optimized_constraint to this class so that
2271 it behaves as the regular Moose::Meta::TypeConstraint does.
2274 - large refactoring of this code
2275 - added several more tests
2276 - tests for subtle conflict resolition issues
2277 added, but not currently running
2280 * Moose::Cookbook::Recipe7
2281 - added new recipe for augment/inner functionality
2283 - added test for this
2286 - a formal definition of roles (still in progress)
2289 - utilities for easier working with Moose classes
2290 - added tests for these
2293 - This contains Moose specific test functions
2294 - added tests for these
2296 0.24 Tues. July 3, 2007
2297 ~ Some doc updates/cleanup ~
2299 * Moose::Meta::Attribute
2300 - added support for roles to be given as parameters
2301 to the 'handles' option.
2302 - added tests and docs for this
2303 - the has '+foo' attribute form now accepts changes to
2304 the lazy option, and the addition of a handles option
2305 (but not changing the handles option)
2306 - added tests and docs for this
2309 - required methods are now fetched using find_method_by_name
2310 so that required methods can come from superclasses
2311 - adjusted tests for this
2313 0.23 Mon. June 18, 2007
2314 * Moose::Meta::Method::Constructor
2315 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2316 * Moose::Meta::Class
2317 - Modify make_immutable to work with the new Class::MOP immutable
2318 mechanism + POD + very basic test (groditi)
2319 * Moose::Meta::Attribute
2320 - Fix handles to use goto() so that caller() comes out properly on
2321 the other side (perigrin)
2323 0.22 Thurs. May 31, 2007
2324 * Moose::Util::TypeConstraints
2325 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2326 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2327 prototypes for functions
2328 - added the ClassName type constraint, this checks for strings
2329 which will respond true to ->isa(UNIVERSAL).
2330 - added tests and docs for this
2331 - subtyping just in name now works correctly by making the
2332 default for where be { 1 }
2333 - added test for this
2335 * Moose::Meta::Method::Accessor
2336 - coerce and lazy now work together correctly, thanks to
2337 merlyn for finding this bug
2338 - tests added for this
2339 - fix reader presedence bug in Moose::Meta::Attribute + tests
2342 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2343 a HASH-ref and missed. This produces better error messages then
2344 having it die cause undef is not a HASH.
2345 - added tests for this
2347 0.21 Thursday, May 2nd, 2007
2349 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2350 - modified unimport to remove super and inner along with the rest
2351 - altered unimport tests to handle this
2354 - altered super export to populate SUPER_SLOT
2356 * Moose::Meta::Class
2357 - altered augment and override modifier application to use *_SLOT
2358 - modified tests for these to unimport one test class each to test
2361 - fixed issue where custom attribute metaclasses
2362 where not handled correctly in roles
2363 - added tests for this
2365 * Moose::Meta::Class
2366 - fixed issue where extending metaclasses with
2367 roles would blow up. Thanks to Aankhen`` for
2368 finding this insidious error, and it's solution.
2370 ~~ lots of spelling and grammer fixes in the docs,
2371 many many thanks to rlb3 and Aankhen for these :)
2373 0.20 Friday, April 6th, 2007
2374 >> I messed up the SKIP logic in one test
2375 so this release is just to fix that.
2378 - 'has' now also accepts an ARRAY ref
2379 to create multiple attrs (see docs)
2380 (thanks to konobi for this)
2381 - added tests and docs
2383 0.19 Thurs. April 5th, 2007
2384 ~~ More documentation updates ~~
2386 * Moose::Util::TypeConstraints
2387 - 'type' now supports messages as well
2388 thanks to phaylon for finding this
2389 - added tests for this
2390 - added &list_all_type_constraints and
2391 &list_all_builtin_type_constraints
2392 functions to facilitate introspection.
2394 * Moose::Meta::Attribute
2395 - fixed regexp 'handles' declarations
2396 to build the list of delegated methods
2397 correctly (and not override important
2398 things like &new) thanks to ashleyb
2400 - added tests and docs for this
2401 - added the 'documentation' attributes
2402 so that you can actually document your
2403 attributes and inspect them through the
2405 - added tests and docs for this
2407 * Moose::Meta::Class
2408 - when loading custom attribute metaclasses
2409 it will first look in for the class in the
2410 Moose::Meta::Attribute::Custom::$name, and
2411 then default to just loading $name.
2412 - added tests and docs for this
2414 * Moose::Meta::TypeConstraint
2415 - type constraints now stringify to their names.
2416 - added test for this
2419 - added tests to assure we work with Module::Refresh
2420 - added stricter test skip logic in the Moose POOP
2421 test, ask Rob Kinyon why.
2422 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2424 0.18 Sat. March 10, 2007
2425 ~~ Many, many documentation updates ~~
2428 - We now use Class::MOP::load_class to
2430 - added tests to show types and subtypes
2431 working with Declare::Constraints::Simple
2432 and Test::Deep as constraint engines.
2435 !! You must have Class::MOP 0.37_001 !!
2436 !! for this developer release to work !!
2438 This release was primarily adding the immutable
2439 feature to Moose. An immutable class is one which
2440 you promise not to alter. When you set the class
2441 as immutable it will perform various bits of
2442 memoization and inline certain part of the code
2443 (constructors, destructors and accessors). This
2444 minimizes (and in some cases totally eliminates)
2445 one of Moose's biggest performance hits. This
2446 feature is not on by default, and is 100% optional.
2447 It has several configurable bits as well, so you
2448 can pick and choose to your specific needs.
2450 The changes involved in this were fairly wide and
2451 highly specific, but 100% backwards compatible, so
2452 I am not going to enumerate them here. If you are
2453 truely interested in what was changed, please do
2456 0.17 Tues. Nov. 14, 2006
2457 * Moose::Meta::Method::Accessor
2458 - bugfix for read-only accessors which
2459 are have a type constraint and lazy.
2460 Thanks to chansen for finding it.
2462 0.16 Tues. Nov. 14, 2006
2464 There are some speed improvements in this release,
2465 but they are only the begining, so stay tuned.
2468 - BUILDALL and DEMOLISHALL no longer get
2469 called unless they actually need to be.
2470 This gave us a signifigant speed boost
2471 for the cases when there is no BUILD or
2472 DEMOLISH method present.
2474 * Moose::Util::TypeConstraints
2475 * Moose::Meta::TypeConstraint
2476 - added an 'optimize_as' option to the
2477 type constraint, which allows for a
2478 hand optimized version of the type
2479 constraint to be used when possible.
2480 - Any internally created type constraints
2481 now provide an optimized version as well.
2483 0.15 Sun. Nov. 5, 2006
2485 This version of Moose *must* have Class::MOP 0.36 in order
2486 to work correctly. A number of small internal tweaks have
2487 been made in order to be compatible with that release.
2489 * Moose::Util::TypeConstraints
2490 - added &unimport so that you can clean out
2491 your class namespace of these exported
2494 * Moose::Meta::Class
2495 - fixed minor issue which occasionally
2496 comes up during global destruction
2498 - moved Moose::Meta::Method::Overriden into
2502 - moved Moose::Meta::Role::Method into
2505 * Moose::Meta::Attribute
2506 - changed how we do type checks so that
2507 we reduce the overall cost, but still
2510 - moved accessor generation methods to
2511 Moose::Meta::Method::Accessor to
2512 conform to the API changes from
2515 * Moose::Meta::TypeConstraint
2516 - changed how constraints are compiled
2517 so that we do less recursion and more
2518 iteration. This makes the type check
2520 - moved Moose::Meta::TypeConstraint::Union
2523 * Moose::Meta::Method::Accessor
2524 - created this from methods formerly found in
2525 Moose::Meta::Attribute
2527 * Moose::Meta::Role::Method
2528 - moved this from Moose::Meta::Role
2530 * Moose::Meta::Method::Overriden
2531 - moved this from Moose::Meta::Class
2533 * Moose::Meta::TypeConstraint::Union
2534 - moved this from Moose::Meta::TypeConstraint
2536 0.14 Mon. Oct. 9, 2006
2538 * Moose::Meta::Attribute
2539 - fixed lazy attributes which were not getting
2540 checked with the type constraint (thanks ashley)
2541 - added tests for this
2542 - removed the over-enthusiastic DWIMery of the
2543 automatic ArrayRef and HashRef defaults, it
2544 broke predicates in an ugly way.
2545 - removed tests for this
2547 0.13 Sat. Sept. 30, 2006
2549 This version of Moose *must* have Class::MOP 0.35 in order
2550 to work correctly. A number of small internal tweaks have
2551 been made in order to be compatible with that release.
2554 - Removed the use of UNIVERSAL::require to be a better
2555 symbol table citizen and remove a dependency
2556 (thanks Adam Kennedy)
2558 **~~ removed experimental & undocumented feature ~~**
2559 - commented out the 'method' and 'self' keywords, see the
2560 comments for more info.
2563 - added a FAQ and WTF files to document frequently
2564 asked questions and common problems
2566 * Moose::Util::TypeConstraints
2567 - added GlobRef and FileHandle type constraint
2568 - added tests for this
2570 * Moose::Meta::Attribute
2571 - if your attribute 'isa' ArrayRef of HashRef, and you have
2572 not explicitly set a default, then make the default DWIM.
2573 This will also work for subtypes of ArrayRef and HashRef
2575 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2576 - new test added for this (thanks to ashley)
2579 - added basic support for runtime role composition
2580 but this is still *highly experimental*, so feedback
2581 is much appreciated :)
2582 - added tests for this
2584 * Moose::Meta::TypeConstraint
2585 - the type constraint now handles the coercion process
2586 through delegation, this is to support the coercion
2589 * Moose::Meta::TypeConstraint::Union
2590 - it is now possible for coercions to be performed
2592 - added tests for this (thanks to konobi)
2594 * Moose::Meta::TypeCoercion
2595 - properly capturing error when type constraint
2599 - Scalar::Util 1.18 is bad on Win32, so temporarily
2600 only require version 1.17 for Win32 and cygwin.
2601 (thanks Adam Kennedy)
2603 0.12 Sat. Sept. 1, 2006
2605 - Recipe5 (subtypes & coercion) has been written
2608 - fixed "bad meta" error message to be more descriptive
2609 - fixed &unimport to not remove the &inner and &super
2610 keywords because we need to localize them.
2611 - fixed number of spelling/grammer issues, thanks Theory :)
2613 **~~ experimental & undocumented feature ~~**
2614 - added the method and self keywords, they are basically
2615 just sugar, and they may not stay around.
2618 - added &dump method to easily Data::Dumper
2621 * Moose::Meta::TypeConstraint
2622 - added the &is_a_type_of method to check both the current
2623 and the subtype of a method (similar to &isa with classes)
2626 - this is now a subclass of Class::MOP::Module, and no longer
2627 creates the _role_meta ugliness of before.
2628 - fixed tests to reflect this change
2630 0.11 Wed. July 12, 2006
2632 - added an &unimport method to remove all the keywords
2633 that Moose will import, simply add 'no Moose' to the
2634 bottom of your class file.
2637 - fixed some test failures caused by a forgotten test
2640 0.10 Thurs. July 6, 2006
2642 - improved error message when loading modules so
2643 it is less confusing when you load a role.
2644 - added &calculate_all_roles method to
2645 Moose::Meta::Class and Moose::Meta::Role
2648 This module has been tested against Class::MOP 0.30
2649 but it does not yet utilize the optimizations
2650 it makes available. Stay tuned for that ;)
2652 0.09_03 Fri. June 23, 2006
2653 ++ DEVELOPER RELEASE ++
2655 - 'use strict' and 'use warnings' are no longer
2656 needed in Moose classes, Moose itself will
2657 turn them on for you.
2658 - added tests for this
2659 - moved code from exported subs to private methods
2660 in Moose::Meta::Class
2663 - as with Moose, strict and warnings are
2664 automatically turned on for you.
2665 - added tests for this
2668 - now handles an edge case for override errors
2669 - added tests for this
2670 - added some more edge case tests
2672 0.09_02 Tues. May 16, 2006
2673 ++ DEVELOPER RELEASE ++
2675 - added prototypes to the exported subs
2679 - added prototypes to the exported subs
2682 * Moose::Util::TypeConstraints
2683 - cleaned up prototypes for the subs
2686 0.09_01 Fri. May 12, 2006
2687 ++ DEVELOPER RELEASE ++
2688 - This release works in combination with
2689 Class::MOP 0.29_01, it is a developer
2690 release because it uses the a new
2691 instance sub-protocol and a fairly
2692 complete Role implementation. It has
2693 not yet been optimized, so it slower
2694 the the previous CPAN version. This
2695 release also lacks good updated docs,
2696 the official release will have updated docs.
2699 - refactored the keyword exports
2700 - 'with' now checks Role validaity and
2701 accepts more than one Role at a time
2702 - 'extends' makes metaclass adjustments as
2703 needed to ensure metaclass compatibility
2706 - refactored the keyword exports
2707 - 'with' now checks Role validaity and
2708 accepts more than one Role at a time
2710 * Moose::Util::TypeConstraints
2711 - added the 'enum' keyword for simple
2712 string enumerations which can be used as
2714 - see example of usage in t/202_example.t
2717 - more careful checking of params to new()
2720 - much work done on the role composition
2721 - many new tests for conflict detection
2722 and composition edge cases
2723 - not enough documentation, I suggest
2724 looking at the tests
2726 * Moose::Meta::Instance
2727 - added new Instance metaclass to support
2728 the new Class::MOP instance protocol
2730 * Moose::Meta::Class
2731 - some small changes to support the new
2733 - some small additions to support Roles
2735 * Moose::Meta::Attribute
2736 - some improvements to the accessor generation code
2738 - some small changes to support the new
2740 - (still somewhat) experimental delegation support
2741 with the 'handles' option
2742 - added several tests for this
2743 - no docs for this yet
2745 0.05 Thurs. April 27, 2006
2747 - keywords are now exported with Sub::Exporter
2748 thanks to chansen for this commit
2749 - has keyword now takes a 'metaclass' option
2750 to support custom attribute meta-classes
2751 on a per-attribute basis
2752 - added tests for this
2753 - the 'has' keyword not accepts inherited slot
2754 specifications (has '+foo'). This is still an
2755 experimental feature and probably not finished
2756 see t/038_attribute_inherited_slot_specs.t for
2757 more details, or ask about it on #moose
2758 - added tests for this
2761 - keywords are now exported with Sub::Exporter
2763 * Moose::Utils::TypeConstraints
2764 - reorganized the type constraint hierarchy, thanks
2765 to nothingmuch and chansen for his help and advice
2767 - added some tests for this
2768 - keywords are now exported with Sub::Exporter
2769 thanks to chansen for this commit
2771 * Moose::Meta::Class
2772 - due to changes in Class::MOP, we had to change
2773 construct_instance (for the better)
2775 * Moose::Meta::Attribute
2776 - due to changes in Class::MOP, we had to add the
2777 initialize_instance_slot method (it's a good thing)
2779 * Moose::Meta::TypeConstraint
2780 - added type constraint unions
2781 - added tests for this
2782 - added the is_subtype_of predicate method
2783 - added tests for this
2785 0.04 Sun. April 16th, 2006
2787 - Roles can now consume other roles
2788 - added tests for this
2789 - Roles can specify required methods now with
2790 the requires() keyword
2791 - added tests for this
2794 - ripped out much of it's guts ,.. much cleaner now
2795 - added required methods and correct handling of
2796 them in apply() for both classes and roles
2797 - added tests for this
2798 - no longer adds a does() method to consuming classes
2799 it relys on the one in Moose::Object
2800 - added roles attribute and some methods to support
2801 roles consuming roles
2803 * Moose::Meta::Attribute
2804 - added support for triggers on attributes
2805 - added tests for this
2806 - added support for does option on an attribute
2807 - added tests for this
2809 * Moose::Meta::Class
2810 - added support for attribute triggers in the
2812 - added tests for this
2815 - Moose no longer creates a subtype for your class
2816 if a subtype of the same name already exists, this
2817 should DWIM in 99.9999% of all cases
2819 * Moose::Util::TypeConstraints
2820 - fixed bug where incorrect subtype conflicts were
2822 - added test for this
2825 - this class can now be extended with 'use base' if
2826 you need it, it properly loads the metaclass class now
2827 - added test for this
2829 0.03_02 Wed. April 12, 2006
2831 - you must now explictly use Moose::Util::TypeConstraints
2832 it no longer gets exported for you automatically
2835 - new() now accepts hash-refs as well as key/value lists
2836 - added does() method to check for Roles
2837 - added tests for this
2839 * Moose::Meta::Class
2840 - added roles attribute along with the add_role() and
2842 - added tests for this
2845 - now adds a does() method to consuming classes
2846 which tests the class's hierarchy for roles
2847 - added tests for this
2849 0.03_01 Mon. April 10, 2006
2851 - added new Role recipe (no content yet, only code)
2854 - added 'with' keyword for Role support
2855 - added test and docs for this
2856 - fixed subtype quoting bug
2857 - added test for this
2861 - added test and docs
2863 * Moose::Util::TypeConstraints
2864 - added the message keyword to add custom
2865 error messages to type constraints
2868 - the meta role to support Moose::Role
2869 - added tests and docs
2871 * Moose::Meta::Class
2872 - moved a number of things from Moose.pm
2873 to here, they should have been here
2876 * Moose::Meta::Attribute
2877 - moved the attribute option macros here
2878 instead of putting them in Moose.pm
2880 * Moose::Meta::TypeConstraint
2881 - added the message attributes and the
2883 - added tests and docs for this
2885 0.03 Thurs. March 30, 2006
2887 - added the Moose::Cookbook with 5 recipes,
2888 describing all the stuff Moose can do.
2891 - fixed an issue with &extends super class loading
2892 it now captures errors and deals with inline
2893 packages correctly (bug found by mst, solution
2895 - added super/override & inner/augment features
2896 - added tests and docs for these
2899 - BUILDALL now takes a reference of the %params
2900 that are passed to &new, and passes that to
2903 * Moose::Util::TypeConstraints
2904 - Type constraints now survive runtime reloading
2905 - added test for this
2907 * Moose::Meta::Class
2908 - fixed the way attribute defaults are handled
2909 during instance construction (bug found by chansen)
2911 * Moose::Meta::Attribute
2912 - read-only attributes now actually enforce their
2913 read-only-ness (this corrected in Class::MOP as
2916 0.02 Tues. March 21, 2006
2918 - many more tests, fixing some bugs and
2920 - &extends now loads the base module with
2922 - added UNIVERSAL::require to the
2925 - each new Moose class will also create
2926 and register a subtype of Object which
2927 correspond to the new Moose class.
2928 - the 'isa' option in &has now only
2929 accepts strings, and will DWIM in
2932 * Moose::Util::TypeConstraints
2933 - added type coercion features
2934 - added tests for this
2935 - added support for this in attributes
2936 and instance construction
2938 - type construction no longer creates a
2939 function, it registers the type instead.
2940 - added several functions to get the
2944 - BUILDALL and DEMOLISHALL were broken
2945 because of a mis-named hash key, Whoops :)
2947 * Moose::Meta::Attribute
2948 - adding support for coercion in the
2949 autogenerated accessors
2951 * Moose::Meta::Class
2952 - adding support for coercion in the
2953 instance construction
2955 * Moose::Meta::TypeConstraint
2956 * Moose::Meta::TypeCoercion
2957 - type constraints and coercions are now
2958 full fledges meta-objects
2960 0.01 Wed. March 15, 2006
2961 - Moooooooooooooooooose!!!