1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 * Moose::Manual::Attributes
6 - Clarify "is", include discussion of "bare". (Sartak)
8 * Moose::Meta::Role::Method::Conflicting
9 * Moose::Meta::Role::Application::ToClass
10 - For the first set of roles involved in a conflict, report all
11 unresolved method conflicts, not just the first method. Fixes #47210
12 reported by Ovid. (Sartak)
14 * Moose::Meta::TypeConstraint
15 - Add assert_valid method to use a TypeConstraint for assertion (rjbs)
18 - Make "use Moose -metaclass => 'Foo'" do alias resolution, like -traits
22 * Moose::Manual::Contributing
23 - Re-write the Moose::Manual::Contributing document to reflect
24 the new layout and methods of work for the Git repository. All
25 work now should be done in topic branches and reviewed by a
26 core committer before being applied to master. All releases
27 are done by a cabal member and merged from master to
28 stable. This plan was devised by Yuval, blame him. (perigrin)
31 - Create metaclass attributes for the different role application
34 * Moose::Util::MetaRole
35 - Allow applying roles to a meta role's role application
38 * Moose::Meta::Attribute
39 - Add weak_ref to allowed options for "has '+foo'" (mst)
41 * Moose::Meta::Method::Accessor
42 - No longer uses inline_slot_access in accessors, to support
43 non-lvalue-based meta instances. (sorear)
46 * Moose::Meta::Method::Delegation
47 - Once again allow class names as well as objects for
48 delegation. This was changed in 0.86.
51 * Moose::Meta::Class::Immutable::Trait
52 - Fixes to work with the latest Class::MOP.
54 * Moose::Meta::Method::Delegation
55 - Delegation now dies with a more useful error message if the
56 attribute's accessor returns something defined but
59 0.85 Fri, Jun 26, 2009
60 * Moose::Meta::Attribute
61 - The warning for 'no associated methods' is now split out into
62 the _check_associated_methods method, so that extensions can
63 safely call 'after install_accessors => ...'. This fixes a
64 warning from MooseX::AttributeHelpers. (hdp)
66 0.84 Fri, Jun 26, 2009
68 - has now sets definition_context for attributes defined in
71 * Moose::Meta::Attribute
72 - When adding an attribute to a metaclass, if the attribute has
73 no associated methods, it will give a deprecation
75 - Methods generated by delegation were not being added to
76 associated_methods. (hdp)
77 - Attribute accessors (reader, writer, accessor, predicate,
78 clearer) now warn if they overwrite an existing method. (doy)
79 - Attribute constructors now warn very noisily about unknown (or
82 * Moose::Util::TypeConstraints
83 - Deprecated the totally useless Role type name, which just
84 checked if $object->can('does'). Note that this is _not_ the
85 same as a type created by calling role_type('RoleName').
87 * Moose::Util::TypeConstraints
88 * Moose::Meta::TypeConstraint::DuckType
89 - Reify duck type from a regular subtype into an actual class
91 - Document this because Sartak did all my work for me
94 * Moose::Meta::Attribute
95 - Allow Moose::Meta::TypeConstraint::DuckType in handles, since
96 it is just a list of methods (Sartak)
99 - The get_*_method_modifiers methods would die if the role had
100 no modifiers of the given type (Robert Buels).
102 0.83 Tue, Jun 23, 2009
104 - Fix _construct_instance not setting the special __MOP__ object
105 key in instances of anon classes. (doy)
107 0.82 Sun, Jun 21, 2009
108 * Moose::Manual::Types
109 - Mention MooseX::Types early to avoid users falling down the
110 string parsing rathole (mst)
112 * Moose::Manual::MooseX
113 - Add warnings about class-level extensions and mention considering
114 using plain objects instead
116 0.81 Sun, Jun 7, 2009
117 * Bumped our Class::MOP prereq to the latest version (0.85), since
120 0.80 Sat, Jun 6, 2009
122 - Add FAQ about the coercion change from 0.76 because it came up
123 three times today (perigrin)
124 - Win doy $10 dollars because Sartak didn't think anybody
125 would document this fast enough (perigrin)
127 * Moose::Meta::Method::Destructor
128 - Inline a DESTROY method even if there are no DEMOLISH methods
129 to prevent unnecessary introspection in
130 Moose::Object::DEMOLISHALL
133 - A role's required methods are now represented by
134 Moose::Meta::Role::Method::Required objects. Conflicts are now
135 represented by Moose::Meta::Role::Method::Conflicting
136 objects. The benefit for end-users in that unresolved
137 conflicts generate different, more instructive, errors,
138 resolving Ovid's #44895. (Sartak)
141 - Improve the error message of "extends" as suggested by Adam
142 Kennedy and confound (Sartak)
143 - Link to Moose::Manual::Roles from Moose::Role as we now have
144 excellent documentation (Adam Kennedy)
147 - Update test suite for subname change in Class::MOP
149 - Add TODO test for infinite recursion in Moose::Meta::Class
152 0.79 Wed, May 13, 2009
154 - More fixes for Win32 problems. Reported by Robert Krimen.
157 - The DEMOLISHALL method could still blow up in some cases
158 during global destruction. This method has been made more
159 resilient in the face of global destruction's random garbage
163 - If you "also" a module that isn't loaded, the error message
164 now acknowledges that (Sartak)
167 - When your ->meta method does not return a Moose::Meta::Class,
168 the error message gave the wrong output (Sartak)
170 0.78 Tue, May 12, 2009
171 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
172 - Merged these documents into what is now Moose::Manual::FAQ
175 - Moved to Moose::Manual::Unsweetened
177 * Moose::Cookbook::Basics::Recipes 9-12
178 - Renamed to be 8-11, since recipe 8 did not exist
181 - Make Moose::Exporter import strict and warnings into packages
185 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
186 methods during global destruction (doy)
189 * Moose::Meta::Role::Application::ToClass
190 - Track the Role::Application objects created during class-role
194 - Fix metaclass incompatibility errors when extending a vanilla perl
195 class which isa Moose class with a metaclass role applied (t0m)
198 - Add a role-combination hook, _role_for_combination, for the
199 benefit of MooseX::Role::Parameterized (Sartak)
202 - Some tests were failing on Win32 because they explicit checked
203 warning output for newlines. Reported by Nickolay Platonov.
205 0.77 Sat, May 2, 2009
207 - Add explicit use of Devel::GlobalDestruction and Sub::Name
211 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
212 or not we are currently in global destruction (doy)
213 - Add explicit use of Devel::GlobalDestruction and Sub::Name
216 * Moose::Cookbook::FAQ
217 - Reworked much of the existing content to be more useful to
218 modern Moose hackers (Sartak)
221 - Depend on Class::MOP 0.83 instead of 0.82_01.
223 0.76 Mon, April 27, 2009
224 * Moose::Meta::TypeConstraint
225 - Do not run coercions in coerce() if the value already passes the type
228 * Moose::Meta::TypeConstraint::Class
229 - In validation error messages, specifically say that the value is not
230 an instance of the class. This should alleviate some frustrating
231 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
233 * Moose::Meta::Role::Application::ToClass
234 - Revert the class-overrides-role warning in favor of a solution outside
235 of the Moose core (Sartak)
238 - Make Test::Output optional again, since it's only used in a few files
241 0.75_01 Thu, April 23, 2009
242 * Moose::Meta::Role::Application::ToClass
243 - Moose now warns about each class overriding methods from roles it
247 - Warnings tests have standardized on Test::Output which is now an
248 unconditionally dependency (Sartak)
251 - Changes to immutabilization to work with Class::MOP 0.82_01+.
253 0.75 Mon, April 20, 2009
256 - Move validation of not inheriting from roles from Moose::extends to
257 Moose::Meta::Class::superclasses (doy)
260 - add ensure_all_roles() function to encapsulate the common "apply this
261 role unless the object already does it" pattern (hdp)
264 - Users can now select a different metaclass with the "-metaclass"
265 option to import, for classes and roles (Sartak)
268 - Make method_metaclass an attr so that it can accept a metarole
271 0.74 Tue, April 7, 2009
273 * Moose::Meta::Method::Destructor
274 - Include stack traces in the deprecation warnings.
278 - Removed the long-deprecated _apply_all_roles method.
280 * Moose::Meta::TypeConstraint
281 - Removed the long-deprecated union method.
284 0.73_02 Mon, April 6, 2009
285 * More deprecations and renamings
286 - Moose::Meta::Method::Constructor
287 - initialize_body => _initialize_body (this is always called
288 when an object is constructed)
291 - The DEMOLISHALL method could throw an exception during global
292 destruction, meaning that your class's DEMOLISH methods would
293 not be properly called. Reported by t0m.
295 * Moose::Meta::Method::Destructor
296 - Destructor inlining was totally broken by the change to the
297 is_needed method in 0.72_01. Now there is a test for this
298 feature, and it works again.
301 - Bold the word 'not' in the POD for find_meta (t0m)
303 0.73_01 Sun, April 5, 2009
305 - Call user_class->meta in fewer places, with the eventual goal
306 of allowing the user to rename or exclude ->meta
307 altogether. Instead uses Class::MOP::class_of. (Sartak)
309 * Moose::Meta::Method::Accessor
310 - If an attribute had a lazy default, and that value did not
311 pass the attribute's type constraint, it did not get the
312 message from the type constraint, instead using a generic
313 message. Test provided by perigrin.
315 * Moose::Util::TypeConstraints
316 - Add duck_type keyword. It's sugar over making sure an object
317 can() a list of methods. This is easier than jrockway's
318 suggestion to fork all of CPAN. (perigrin)
319 - add tests and documentation (perigrin)
322 - Document the fact that init_meta() returns the target class's
323 metaclass object. (hdp)
325 * Moose::Cookbook::Extending::Recipe1
326 * Moose::Cookbook::Extending::Recipe2
327 * Moose::Cookbook::Extending::Recipe3
328 * Moose::Cookbook::Extending::Recipe4
329 - Make init_meta() examples explicitly return the metaclass and
330 point out this fact. (hdp)
332 * Moose::Cookbook::Basics::Recipe12
333 - A new recipe, creating a custom meta-method class.
335 * Moose::Cookbook::Meta::Recipe6
336 - A new recipe, creating a custom meta-method class.
339 * Moose::Meta::Method::Constructor
340 - Attribute triggers no longer receive the meta-attribute object
341 as an argument in any circumstance. Previously, triggers
342 called during instance construction were passed the
343 meta-attribute, but triggers called by normal accessors were
344 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
346 * Moose::Manual::Attributes
347 - Remove references to triggers receving the meta-attribute object as an
350 * Moose::Cookbook::FAQ
351 - Remove recommendation for deprecated Moose::Policy and
352 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
355 * Many methods have been renamed with a leading underscore, and a
356 few have been deprecated entirely. The methods with a leading
357 underscore are consider "internals only". People writing
358 subclasses or extensions to Moose should feel free to override
359 them, but they are not for "public" use.
362 - check_metaclass_compatibility => _check_metaclass_compatibility
364 - Moose::Meta::Method::Accessor
365 - initialize_body => _initialize_body (this is always called
366 when an object is constructed)
367 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
369 - Moose::Meta::Method::Constructor
370 - initialize_body => _initialize_body (this is always called
371 when an object is constructed)
372 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
373 - attributes => _attributes (now inherited from parent)
374 - meta_instance => _meta_instance (now inherited from parent)
377 - alias_method is deprecated. Use add_method
379 0.73 Fri, March 29, 2009
380 * No changes from 0.72_01.
382 0.72_01 Thu, March 26, 2009
384 - Almost every module has complete API documentation. A few
385 methods (and even whole classes) have been intentionally
386 excluded pending some rethinking of their APIs.
388 * Moose::Util::TypeConstraints
389 - Calling subtype with a name as the only argument is now an
390 exception. If you want an anonymous subtype do:
392 my $subtype = subtype as 'Foo';
394 * Moose::Cookbook::Meta::Recipe7
395 - A new recipe, creating a custom meta-instance class.
397 * Moose::Cookbook::Basics::Recipe5
398 - Fix various typos and mistakes. Includes a patch from Radu
401 * Moose::Cookbook::Basics::Recipe9
402 - Link to this recipe from Moose.pm's builder blurb
405 - When wrapping a function with a prototype, Moose::Exporter now
406 makes sure the wrapped function still has the same
407 prototype. (Daisuke Maki)
409 * Moose::Meta::Attribute
410 - Allow a subclass to set lazy_build for an inherited
414 - Explicitly depend on Data::OptList. We already had this dependency
415 via Sub::Exporter, but since we're using it directly we're
416 better off with it listed. (Sartak)
418 * Moose::Meta::Method::Constructor
419 - Make it easier to subclass the inlining behaviour. (Ash
422 * Moose::Manual::Delta
423 - Details significant changes in the history of Moose, along
424 with recommended workarounds.
426 * Moose::Manual::Contributing
427 - Contributor's guide to Moose.
429 * Moose::Meta::Method::Constructor
430 - The long-deprecated intialize_body method has been removed
431 (yes, spelled like that).
433 * Moose::Meta::Method::Destructor
434 - This is_needed method is now always a class method.
437 - Changes to the internals of how make_immutable works to match
438 changes in latest Class::MOP.
440 0.72 Mon, February 23, 2009
442 * Moose::Meta::Method::Constructor
443 - A mutable class accepted Foo->new(undef) without complaint,
444 while an immutable class would blow up with an unhelpful
445 error. Now, in both cases we throw a helpful error
446 instead. Reported by doy.
448 0.71_01 Sun, February 22, 2009
450 - Hopefully fixed some POD errors in a few recipes that caused
451 them to display weird on search.cpan.org.
453 * Moose::Util::TypeConstraints
454 - Calling type or subtype without the sugar helpers (as, where,
455 message) is now deprecated.
456 - The subtype function tried hard to guess what you meant, but
457 often got it wrong. For example:
459 my $subtype = subtype as 'ArrayRef[Object]';
461 This caused an error in the past, but now works as you'd
465 - Make sure Moose.pm is loaded before calling
466 Moose->throw_error. This wasn't normally an issue, but could
467 bite you in weird cases.
469 0.71 Thu, February 19, 2009
470 * Moose::Cookbook::Basics::Recipe11
471 - A new recipe which demonstrates the use of BUILDARGS and
474 * Moose::Cookbook::Roles::Recipe3
475 - A new recipe, applying a role to an object instance. (Dave
479 - Allow overriding specific keywords from "also" packages. (doy)
482 - Replace hardcoded cookbook tests with Test::Inline to ensure
483 the tests match the actual code in the recipes. (Dave Rolsky)
486 - Working on the above turned up a number of little bugs in the
487 recipe code. (Dave Rolsky)
489 * Moose::Util::TypeConstraints::Optimized
490 - Just use Class::MOP for the optimized ClassName check. (Dave
493 0.70 Sat, February 14, 2009
494 * Moose::Util::TypeConstraints
495 - Added the RoleName type (stevan)
496 - added tests for this (stevan)
498 * Moose::Cookbook::Basics::Recipe3
499 - Updated the before qw[left right] sub to be a little more
500 defensive about what it accepts (stevan)
501 - added more tests to t/000_recipies/basics/003_binary_tree.t
505 - We now always call DEMOLISHALL, even if a class does not
506 define DEMOLISH. This makes sure that method modifiers on
507 DEMOLISHALL work as expected. (doy)
508 - added tests for this (EvanCarroll)
510 * Moose::Util::MetaRole
511 - Accept roles for the wrapped_method_metaclass (rafl)
512 - added tests for this (rafl)
514 * Moose::Meta::Attribute
515 - We no longer pass the meta-attribute object as a final
516 argument to triggers. This actually changed for inlined code a
517 while back, but the non-inlined version and the docs were
521 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
522 they require 0.11. (Dave Rolsky)
525 - Lots of small changes to the manual, cookbook, and
526 elsewhere. These were based on feedback from various
527 users, too many to list here. (Dave Rolsky)
529 0.69 Thu, February 12, 2009
531 - Make some keyword errors use throw_error instead of croak
532 since Moose::Exporter wraps keywords now (Sartak)
535 - Revised every recipe for style and clarity. Also moved some
536 documentation out of cookbook recipes and into Moose::Manual
537 pages. This work was funded as part of the Moose docs grant
538 from TPF. (Dave Rolsky)
540 * Moose::Meta::Method::Delegation
541 - If the attribute doing the delegation was not populated, the
542 error message did not specify the attribute name
545 0.68 Wed, February 4, 2009
547 - Many spelling, typo, and formatting fixes by daxim.
549 * Moose::Manual::Attributes
550 - The NAME section in the POD used "Attribute" so search.cpan
551 didn't resolve links from other documents properly.
553 * Moose::Meta::Method::Overriden
554 - Now properly spelled as Overridden. Thanks to daxim for
557 0.67 Tue, February 3, 2009
559 - Lots of little typo fixes and a few clarifications. Several
560 pages didn't have proper titles, and so weren't actually
561 visible on search.cpan.org. Thanks to hanekomu for a variety
562 of fixes and formatting improvements.
564 0.66 Tue, February 3, 2009
566 - This is a brand new, extensive manual for Moose. This aims to
567 provide a complete introduction to all of Moose's
568 features. This work was funded as part of the Moose docs grant
569 from TPF. (Dave Rolsky)
571 * Moose::Meta::Attribute
572 - Added a delegation_metaclass method to replace a hard-coded
573 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
575 * Moose::Util::TypeConstraints
576 - If you created a subtype and passed a parent that Moose didn't
577 know about, it simply ignored the parent. Now it automatically
578 creates the parent as a class type. This may not be what you
579 want, but is less broken than before. (Dave Rolsky)
581 * Moose::Util::TypeConstraints
582 - This module tried throw errors by calling Moose->throw_error,
583 but it did not ensure that Moose was loaded first. This could
584 cause very unhelpful errors when it tried to throw an error
585 before Moose was loaded. (Dave Rolsky)
587 * Moose::Util::TypeConstraints
588 - You could declare a name with subtype such as "Foo!Bar" that
589 would be allowed, but if you used it in a parameterized type
590 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
591 vetting on names created via the sugar functions, so that they
592 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
594 0.65 Thu, January 22, 2008
595 * Moose and Moose::Meta::Method::Overridden
596 - If an overridden method called super(), and then the
597 superclass's method (not overridden) _also_ called super(),
598 Moose went into an endless recursion loop. Test provided by
599 Chris Prather. (Dave Rolsky)
601 * Moose::Meta::TypeConstraint
602 - All methods are now documented. (gphat)
604 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
605 - Fixed some bogus failures that occurred because we tried to
606 validate filesystem paths in a very ad-hoc and
607 not-quite-correct way. (Dave Rolsky)
609 * Moose::Util::TypeConstraints
610 - Added maybe_type to exports. See docs for details. (rjbs)
613 - Added Moose::Util::TypeConstraints to the SEE ALSO
617 - Methods created via an attribute can now fulfill a "requires"
618 declaration for a role. (nothingmuch)
620 * Moose::Meta::Method::*
621 - Stack traces from inlined code will now report its line and
622 file as being in your class, as opposed to in Moose
625 0.64 Wed, December 31, 2008
626 * Moose::Meta::Method::Accessor
627 - Always inline predicate and clearer methods (Sartak)
629 * Moose::Meta::Attribute
630 - Support for parameterized traits (Sartak)
631 - verify_against_type_constraint method to avoid duplication
632 and enhance extensibility (Sartak)
635 - Tests (but no support yet) for parameterized traits (Sartak)
638 - Require Class::MOP 0.75+, which has the side effect of making
639 sure we work on Win32. (Dave Rolsky)
641 0.63 Mon, December 8, 2008
643 - Some small grammar tweaks and bug fixes in non-Moose example
646 0.62_02 Fri, December 5, 2008
647 * Moose::Meta::Role::Application::ToClass
648 - When a class does not provide all of a role's required
649 methods, the error thrown now mentions all of the missing
650 methods, as opposed to just the first one found. Requested by
651 Curtis Poe (RT #41119). (Dave Rolsky)
653 * Moose::Meta::Method::Constructor
654 - Moose will no longer inline a constructor for your class
655 unless it inherits its constructor from Moose::Object, and
656 will warn when it doesn't inline. If you want to force
657 inlining anyway, pass "replace_constructor => 1" to
658 make_immutable. Addresses RT #40968, reported by Jon
659 Swartz. (Dave Rolsky)
660 - The quoting of default values could be broken if the default
661 contained a single quote ('). Now we use quotemeta to escape
662 anything potentially dangerous in the defaults. (Dave Rolsky)
664 0.62_01 Wed, December 3, 2008
666 - use the method->execute API for BUILDALL
667 and DEMOLISHALL (Sartak)
669 * Moose::Util::TypeConstraints
670 - We now make all the type constraint meta classes immutable
671 before creating the default types provided by Moose. This
672 should make loading Moose a little faster. (Dave Rolsky)
674 0.62 Wed November 26, 2008
675 * Moose::Meta::Role::Application::ToClass
676 Moose::Meta::Role::Application::ToRole
677 - fixed issues where excluding and aliasing the
678 same methods for a single role did not work
679 right (worked just fine with multiple
681 - added test for this (stevan)
683 * Moose::Meta::Role::Application::RoleSummation
684 - fixed the error message when trying to compose
685 a role with a role it excludes (Sartak)
688 - Catch another case where recursion caused the value
689 of $CALLER to be stamped on (t0m)
690 - added test for this (t0m)
693 - Remove the make_immutable keyword, which has been
694 deprecated since April. It breaks metaclasses that
695 use Moose without no Moose (Sartak)
697 * Moose::Meta::Attribute
698 - Removing an attribute from a class now also removes delegation
699 (handles) methods installed for that attribute (t0m)
700 - added test for this (t0m)
702 * Moose::Meta::Method::Constructor
703 - An attribute with a default that looked like a number (but was
704 really a string) would accidentally be treated as a number
705 when the constructor was made immutable (perigrin)
706 - added test for this (perigrin)
709 - create method for constructing a role
711 - added test for this (Sartak)
712 - anonymous roles! (Sartak)
713 - added test for this (Sartak)
716 - more consistent error messages (Sartak)
718 * Moose::Cookbook::Roles::Recipe1
719 - attempt to explain why a role that just requires
720 methods is useful (Sartak)
722 0.61 Fri November 7, 2008
723 * Moose::Meta::Attribute
724 - When passing a role to handles, it will be loaded if necessary
728 - Method objects returned by get_method (and other methods)
729 Could end up being returned without an associated_metaclass
730 attribute. Removing get_method_map, which is provided by
731 Class::MOP::Class, fixed this. The Moose version did nothing
732 different from its parent except introduce a bug. (Dave Rolsky)
733 - added tests for this (jdv79)
736 - Added a $VERSION to all .pm files which didn't have one. Fixes
737 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
739 * Moose::Cookbook::Basics::Recipe4
740 * Moose::Cookbook::Basics::Recipe6
741 - These files had spaces on the first line of the SYNOPSIS, as
742 opposed to a totally empty line. According to RT #40432, this
743 confuses POD parsers. (Dave Rolsky)
745 0.60 Fri October 24, 2008
747 - Passing "-traits" when loading Moose caused the Moose.pm
748 exports to be broken. Reported by t0m. (Dave Rolsky)
749 - Tests for this bug. (t0m)
752 - Change resolve_metaclass alias to use the new
753 load_first_existing_class function. This makes it a lot
754 simpler, and also around 5 times faster. (t0m)
755 - Add caching to resolve_metaclass_alias, which gives an order
756 of magnitude speedup to things which repeatedly call the
757 Moose::Meta::Attribute->does method, notably MooseX::Storage
760 * Moose::Util::TypeConstraint
761 - Put back the changes for parameterized constraints that
762 shouldn't have been removed in 0.59. We still cannot parse
763 them, but MooseX modules can create them in some other
764 way. See the 0.58 changes for more details. (jnapiorkowski)
765 - Changed the way subtypes are created so that the job is
766 delegated to a type constraint parent. This clears up some
767 hardcoded checking and should allow correct subtypes of
768 Moose::Meta::Type::Constraint. Don't rely on this new API too
769 much (create_child_type) because it may go away in the
770 future. (jnapiorkowski)
772 * Moose::Meta::TypeConstraint::Union
773 - Type constraint names are sorted as strings, not numbers.
776 * Moose::Meta::TypeConstraint::Parameterizable
777 - New parameterize method. This can be used as a factory method
778 to make a new type constraint with a given parameterized
779 type. (jnapiorkowski)
780 - added tests (jnapiorkowski)
782 0.59 Tue October 14, 2008
784 - Add abridged documentation for builder/default/initializer/
785 predicate, and link to more details sections in
786 Class::MOP::Attribute. (t0m)
788 * Moose::Util::TypeConstraints
789 - removed prototypes from all but the &-based stuff (mst)
791 * Moose::Util::TypeConstraints
792 - Creating a anonymous subtype with both a constraint and a
793 message failed with a very unhelpful error, but should just
794 work. Reported by t0m. (Dave Rolsky)
797 - Some tests that used Test::Warn if it was available failed
798 with older versions of Test::Warn. Reported by Fayland. (Dave
800 - Test firing behavior of triggers in relation to builder/default/
802 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
803 kinds of supported type. (t0m)
806 - In create(), do not pass "roles" option to the superclass
807 - added related test that creates an anon metaclass with
810 * Moose::Meta::TypeConstraint::Class
811 * Moose::Meta::TypeConstraint::Role
812 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
813 other types (as per change in 0.55_02). (t0m)
815 * Moose::Meta::TypeConstraint::Registry
816 - Fix warning when dealing with unknown type names (t0m)
818 * Moose::Util::TypeConstraints
819 - Reverted changes from 0.58 related to handle parameterized
820 types. This caused random failures on BSD and Win32 systems,
821 apparently related to the regex engine. This means that Moose
822 can no longer parse structured type constraints like
823 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
824 supported in a slightly different way via MooseX::Types some
825 time in the future. (Dave Rolsky)
827 0.58 Sat September 20, 2008
828 !! This release has an incompatible change regarding !!
829 !! how roles add methods to a class !!
831 * Roles and role application
832 ! Roles now add methods by calling add_method, not
833 alias_method. They make sure to always provide a method
834 object, which will be cloned internally. This means that it is
835 now possible to track the source of a method provided by a
836 role, and even follow its history through intermediate roles.
838 This means that methods added by a role now show up when
839 looking at a class's method list/map. (Dave Rolsky)
842 - From this release on, we'll try to maintain a list of
843 conflicting modules, and warn you if you have one
844 installed. For example, this release conflicts with ...
845 - MooseX::Singleton <= 0.11
846 - MooseX::Params::Validate <= 0.05
849 In general, we try to not break backwards compatibility for
850 most Moose users, but MooseX modules and other code which
851 extends Moose's metaclasses is often affected by very small
852 changes in the Moose internals.
854 * Moose::Meta::Method::Delegation
855 * Moose::Meta::Attribute
856 - Delegation methods now have their own method class. (Dave
859 * Moose::Meta::TypeConstraint::Parameterizable
860 - Added a new method 'parameterize' which is basically a factory
861 for the containing constraint. This makes it easier to create
862 new types of parameterized constraints. (jnapiorkowski)
864 * Moose::Meta::TypeConstraint::Union
865 - Changed the way Union types canonicalize their names to follow
866 the normalized TC naming rules, which means we strip all
867 whitespace. (jnapiorkowski)
869 * Moose::Util::TypeConstraints
870 - Parameter and Union args are now sorted, this makes Int|Str
871 the same constraint as Str|Int. (jnapiorkowski)
872 - Changes to the way Union types are parsed to more correctly
873 stringify their names. (jnapiorkowski)
874 - When creating a parameterized type, we now use the new
875 parameterize method. (jnapiorkowski)
876 - Incoming type constraint strings are now normalized to remove
877 all whitespace differences. (jnapiorkowski)
878 - Changed the way we parse type constraint strings so that we now
879 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
880 constraints. This lays the foundation for more flexible type
881 constraint implementations.
883 * Tests and docs for all the above. (jnapiorkowski)
887 - Moose::Exporter will no longer remove a subroutine that the
888 exporting package re-exports. Moose re-exports the
889 Carp::confess function, among others. The reasoning is that we
890 cannot know whether you have also explicitly imported those
891 functions for your own use, so we err on the safe side and
892 always keep them. (Dave Rolsky)
893 - added tests for this (rafl)
896 - Changes to how we fix metaclass compatibility that are much
897 too complicated to go into. The summary is that Moose is much
898 less likely to complain about metaclass incompatibility
899 now. In particular, if two metaclasses differ because
900 Moose::Util::MetaRole was used on the two corresponding
901 classes, then the difference in roles is reconciled for the
902 subclass's metaclass. (Dave Rolsky)
903 - Squashed an warning in _process_attribute (thepler)
906 - throw exceptions (sooner) for invalid attribute names (thepler)
907 - added tests for this (thepler)
909 * Moose::Util::MetaRole
910 - If you explicitly set a constructor or destructor class for a
911 metaclass object, and then applied roles to the metaclass,
912 that explicitly set class would be lost and replaced with the
916 * Moose::Meta::Attribute
917 * Moose::Meta::Method
920 * Moose::Error::Default
921 * Moose::Error::Croak
922 * Moose::Error::Confess
923 - All instances of confess() changed to use overridable
924 C<throw_error> method. This method ultimately calls a class
925 constructor, and you can change the class being called. In
926 addition, errors now pass more information than just a string.
927 The default C<error_class> behaves like C<Carp::confess>, so
928 the behavior is not visibly different for end users.
930 0.57 Wed September 3, 2008
932 - A new bit of doc intended to introduce folks familiar with
933 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
936 - Shows examples of two classes, each done first with and then
937 without Moose. This makes a nice parallel to
938 Moose::Intro. (Dave Rolsky)
940 * Moose::Util::TypeConstraints
941 - Fixed a bug in find_or_parse_type_constraint so that it
942 accepts a Moose::Meta::TypeConstraint object as the parent
943 type, not just a name (jnapiorkowski)
944 - added tests (jnapiorkowski)
947 - If Sub::Name was not present, unimporting failed to actually
948 remove some sugar subs, causing test failures (Dave Rolsky)
950 0.56 Mon September 1, 2008
951 For those not following the series of dev releases, there are
952 several major changes in this release of Moose.
953 ! Moose::init_meta should now be called as a method. See the
956 - Major performance improvements by nothingmuch.
958 - New modules for extension writers, Moose::Exporter and
959 Moose::Util::MetaRole by Dave Rolsky.
961 - Lots of doc improvements and additions, especially in the
966 * Removed all references to the experimental-but-no-longer-needed
967 Moose::Meta::Role::Application::ToMetaclassInstance.
969 * Require Class::MOP 0.65.
971 0.55_04 Sat August 30, 2008
972 * Moose::Util::MetaRole
973 * Moose::Cookbook::Extending::Recipe2
974 - This simplifies the application of roles to any meta class, as
975 well as the base object class. Reimplemented metaclass traits
976 using this module. (Dave Rolsky)
978 * Moose::Cookbook::Extending::Recipe1
979 - This a new recipe, an overview of various ways to write Moose
980 extensions (Dave Rolsky)
982 * Moose::Cookbook::Extending::Recipe3
983 * Moose::Cookbook::Extending::Recipe4
984 - These used to be Extending::Recipe1 and Extending::Recipe2,
987 0.55_03 Fri August 29, 2008
988 * No changes from 0.55_02 except increasing the Class::MOP
989 dependency to 0.64_07.
991 0.55_02 Fri August 29, 2008
992 * Makefile.PL and Moose.pm
993 - explicitly require Perl 5.8.0+ (Dave Rolsky)
995 * Moose::Util::TypeConstraints
996 - Fix warnings from find_type_constraint if the type is not
999 * Moose::Meta::TypeConstraint
1000 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
1001 return false if the type you specify cannot be found in the
1002 type registry, rather than throwing an unhelpful and
1003 coincidental exception. (t0m).
1004 - added docs & test for this (t0m)
1006 * Moose::Meta::TypeConstraint::Registry
1007 - add_type_constraint now throws an exception if a parameter is
1009 - added docs & test for this (t0m)
1011 * Moose::Cookbook::FAQ
1012 - Added a faq entry on the difference between "role" and "trait"
1016 - Fixed a bug that caused role composition to not see a required
1017 method when that method was provided by another role being
1018 composed at the same time. (Dave Rolsky)
1019 - test and bug finding (tokuhirom)
1021 0.55_01 Wed August 20, 2008
1023 !! Calling Moose::init_meta as a function is now !!
1024 !! deprecated. Please see the Moose.pm docs for details. !!
1026 * Moose::Meta::Method::Constructor
1027 - Fix inlined constructor so that values produced by default
1028 or builder methods are coerced as required. (t0m)
1029 - added test for this (t0m)
1031 * Moose::Meta::Attribute
1032 - A lazy attribute with a default or builder did not attempt to
1033 coerce the default value. The immutable code _did_
1035 - added test for this (t0m)
1038 - This is a new helper module for writing "Moose-alike"
1039 modules. This should make the lives of MooseX module authors
1040 much easier. (Dave Rolsky)
1043 * Moose::Cookbook::Meta::Recipe5
1044 - Implemented metaclass traits (and wrote a recipe for it):
1046 use Moose -traits => 'Foo'
1048 This should make writing small Moose extensions a little
1049 easier (Dave Rolsky)
1051 * Moose::Cookbook::Basics::Recipe1
1052 - Removed any examples of direct hashref access, and applied an
1053 editorial axe to reduce verbosity. (Dave Rolsky)
1055 * Moose::Cookbook::Basics::Recipe1
1056 - Also applied an editorial axe here. (Dave Rolsky)
1059 * Moose::Cookbook::Extending::Recipe1
1060 * Moose::Cookbook::Extending::Recipe2
1061 - Rewrote extending and embedding moose documentation and
1062 recipes to use Moose::Exporter (Dave Rolsky)
1066 - These two modules now warn when you load them from the main
1067 package "main" package, because we will not export sugar to
1068 main. Previously it just did nothing. (Dave Rolsky)
1071 - Now provide an init_meta method just like Moose.pm, and you
1072 can call this to provide an alternate role metaclass. (Dave
1073 Rolsky and nothingmuch)
1074 - get_method_map now respects the package cache flag (nothingmuch)
1077 - Two new methods - add_method and wrap_method_body
1081 - Optimizations including allowing constructors to accept hash
1082 refs, making many more classes immutable, and making
1083 constructors immutable. (nothingmuch)
1085 0.55 Sun August 3, 2008
1086 * Moose::Meta::Attribute
1087 - breaking down the way 'handles' methods are
1088 created so that the process can be more easily
1089 overridden by subclasses (stevan)
1091 * Moose::Meta::TypeConstraint
1092 - fixing what is passed into a ->message with
1093 the type constraints (RT #37569)
1094 - added tests for this (Charles Alderman)
1096 * Moose::Util::TypeConstraints
1097 - fix coerce to accept anon types like subtype can (mst)
1100 - reorganized the recipes into sections - Basics, Roles, Meta,
1101 Extending - and wrote abstracts for each section (Dave Rolsky)
1103 * Moose::Cookbook::Basics::Recipe10
1104 - A new recipe that demonstrates operator overloading
1105 in combination with Moose. (bluefeet)
1107 * Moose::Cookbook::Meta::Recipe1
1108 - an introduction to what meta is and why you'd want to make
1109 your own metaclass extensions (Dave Rolsky)
1111 * Moose::Cookbook::Meta::Recipe4
1112 - a very simple metaclass example (Dave Rolsky)
1114 * Moose::Cookbook::Extending::Recipe1
1115 - how to write a Moose-alike module to use your own object base
1118 * Moose::Cookbook::Extending::Recipe2
1119 - how to write modules with an API just like C<Moose.pm> (Dave
1123 - Tons of fixes, both syntactical and grammatical (Dave
1124 Rolsky, Paul Fenwick)
1126 0.54 Thurs. July 3, 2008
1127 ... this is not my day today ...
1129 * Moose::Meta::Attribute
1130 - fixed legal_options_for_inheritance such that
1131 clone_and_inherit options still works for
1132 Class::MOP::Attribute objects and therefore
1133 does not break MooseX::AttributeHelpers
1136 0.53 Thurs. July 3, 2008
1137 * Whoops, I guess I should run 'make manifest' before
1138 actually releasing the module. No actual changes
1139 in this release, except the fact that it includes
1140 the changes that I didn't include in the last
1143 0.52 Thurs. July 3, 2008
1145 - added "FEATURE REQUESTS" section to the Moose docs
1146 to properly direct people (stevan) (RT #34333)
1147 - making 'extends' croak if it is passed a Role since
1148 this is not ever something you want to do
1149 (fixed by stevan, found by obra)
1150 - added tests for this (stevan)
1153 - adding support for DOES (as in UNIVERSAL::DOES)
1155 - added test for this
1157 * Moose::Meta::Attribute
1158 - added legal_options_for_inheritance (wreis)
1159 - added tests for this (wreis)
1161 * Moose::Cookbook::Snacks::*
1162 - removed some of the unfinished snacks that should
1163 not have been released yet. Added some more examples
1164 to the 'Keywords' snack. (stevan)
1166 * Moose::Cookbook::Style
1167 - added general Moose "style guide" of sorts to the
1168 cookbook (nothingmuch) (RT #34335)
1171 - added more BUILDARGS tests (stevan)
1173 0.51 Thurs. Jun 26, 2008
1175 - add unimport so "no Moose::Role" actually does
1178 * Moose::Meta::Role::Application::ToRole
1179 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1180 order to provide its own implementation, that method still got
1181 added to the list of required methods for consumers of
1182 RoleB. Now an aliased method is only added to the list of
1183 required methods if the role doing the aliasing does not
1184 provide its own implementation. See Recipe 11 for an example
1185 of all this. (Dave Rolsky)
1186 - added tests for this
1188 * Moose::Meta::Method::Constructor
1189 - when a single argument that wasn't a hashref was provided to
1190 an immutabilized constructor, the error message was very
1191 unhelpful, as opposed to the non-immutable error. Reported by
1193 - added test for this (Dave Rolsky)
1195 * Moose::Meta::Attribute
1196 - added support for meta_attr->does("ShortAlias") (sartak)
1197 - added tests for this (sartak)
1198 - moved the bulk of the `handles` handling to the new
1199 install_delegation method (Stevan)
1202 - Added BUILDARGS, a new step in new()
1204 * Moose::Meta::Role::Application::RoleSummation
1205 - fix typos no one ever sees (sartak)
1207 * Moose::Util::TypeConstraints
1208 * Moose::Meta::TypeConstraint
1209 * Moose::Meta::TypeCoercion
1210 - Attempt to work around the ??{ } vs. threads issue
1212 - Some null_constraint optimizations
1214 0.50 Thurs. Jun 11, 2008
1215 - Fixed a version number issue by bumping all modules
1218 0.49 Thurs. Jun 11, 2008
1219 !! This version now approx. 20-25% !!
1220 !! faster with new Class::MOP 0.59 !!
1222 * Moose::Meta::Attribute
1223 - fixed how the is => (ro|rw) works with
1224 custom defined reader, writer and accessor
1226 - added docs for this (TODO).
1227 - added tests for this (Thanks to Penfold)
1228 - added the custom attribute alias for regular
1229 Moose attributes which is "Moose"
1230 - fix builder and default both being used
1235 Moose::Meta::Attribute
1237 Moose::Meta::Role::Composite
1238 Moose::Util::TypeConstraints
1239 - switched usage of reftype to ref because
1243 - changing add_package_symbol to use the new
1247 - fixed how DEMOLISHALL is called so that it
1248 can be overrided in subclasses (thanks to Sartak)
1249 - added test for this (thanks to Sartak)
1251 * Moose::Util::TypeConstraints
1252 - move the ClassName type check code to
1253 Class::MOP::is_class_loaded (thanks to Sartak)
1255 * Moose::Cookbook::Recipe11
1256 - add tests for this (thanks to tokuhirom)
1258 0.48 Thurs. May 29, 2008
1259 (early morning release engineering)--
1261 - fixing the version in Moose::Meta::Method::Destructor
1262 which was causing the indexer to choke
1264 0.47 Thurs. May 29, 2008
1265 (late night release engineering)--
1267 - fixing the version is META.yml, no functional
1268 changes in this release
1270 0.46 Wed. May 28, 2008
1271 !! This version now approx. 20-25% !!
1272 !! faster with new Class::MOP 0.57 !!
1274 * Moose::Meta::Class
1275 - some optimizations of the &initialize method
1276 since it is called so often by &meta
1278 * Moose::Meta::Class
1280 - now use the get_all_package_symbols from the
1281 updated Class::MOP, test suite is now 10 seconds
1284 * Moose::Meta::Method::Destructor
1285 - is_needed can now also be called as a class
1286 method for immutablization to check if the
1287 destructor object even needs to be created
1290 * Moose::Meta::Method::Destructor
1291 Moose::Meta::Method::Constructor
1292 - added more descriptive error message to help
1293 keep people from wasting time tracking an error
1294 that is easily fixed by upgrading.
1296 0.45 Saturday, May 24, 2008
1298 - Because of work in Class::MOP 0.57, all
1299 XS based functionality is now optional
1300 and a Pure Perl version is supplied
1301 - the CLASS_MOP_NO_XS environment variable
1302 can now be used to force non-XS versions
1304 - several of the packages have been tweaked
1305 to take care of this, mostly we added
1306 support for the package_name and name
1307 variables in all the Method metaclasses
1308 - before/around/after method modifiers now
1309 support regexp matching of names
1310 (thanks to Takatoshi Kitano)
1311 - tests added for this
1312 - NOTE: this only works for classes, it
1313 is currently not supported in roles,
1314 but, ... patches welcome
1315 - All usage of Carp::confess have been replaced
1316 by Carp::croak in the "keyword" functions since
1317 the stack trace is usually not helpful
1320 - All usage of Carp::confess have been replaced
1321 by Carp::croak in the "keyword" functions since
1322 the stack trace is usually not helpful
1323 - The 'has' keyword for roles now accepts the
1324 same array ref form that Moose.pm does
1325 (has [qw/foo bar/] => (is => 'rw', ...))
1326 - added test for this
1328 * Moose::Meta::Attribute
1329 - trigger on a ro-attribute is no longer an
1330 error, as it's useful to trigger off of the
1333 * Moose::Meta::Class
1334 - added same 'add_package_symbol' fix as in
1338 - does_role now handles non-Moose classes
1340 - added tests for this
1341 - added the 'add_method_modifier' function
1342 (thanks to Takatoshi Kitano)
1344 * Moose::Util::TypeConstraints
1345 - subtypes of parameterizable types now are
1346 themselves parameterizable types
1348 * Moose::Meta::Method::Constructor
1349 - fixed bug where trigger was not being
1350 called by the inlined immutable
1352 - added test for this (thanks to Caelum)
1354 * Moose::Meta::Role::Application::ToInstance
1355 - now uses the metaclass of the instance
1356 (if possible) to create the anon-class
1357 (thanks Jonathan Rockway)
1359 * Moose::Cookbook::Recipe22
1360 - added the meta-attribute trait recipe
1364 - fixed hash-ordering test bug that was
1365 causing occasional cpantester failures
1366 - renamed the t/000_recipe/*.t tests to be
1367 more descriptive (thanks to Sartak)
1369 0.44 Sat. May 10, 2008
1371 - made make_immutable warning cluck to
1372 show where the error is (thanks mst)
1375 - BUILDALL and DEMOLISHALL now call
1376 ->body when looping through the
1377 methods, to avoid the overloaded
1379 - fixed issue where DEMOLISHALL was
1380 eating the $@ values, and so not
1381 working correctly, it still kind of
1382 eats them, but so does vanilla perl
1383 - added tests for this
1385 * Moose::Cookbook::Recipe7
1386 - added new recipe for immutable
1387 functionality (thanks Dave Rolsky)
1389 * Moose::Cookbook::Recipe9
1390 - added new recipe for builder and
1391 lazy_build (thanks Dave Rolsky)
1393 * Moose::Cookbook::Recipe11
1394 - added new recipe for method aliasing
1395 and exclusion with Roles (thanks Dave Rolsky)
1398 - fixed Win32 test failure (thanks spicyjack)
1400 ~ removed Build.PL and Module::Build compat
1401 since Module::Install has done that.
1403 0.43 Wed. April, 30, 2008
1405 drink more coffee before
1406 doing release engineering
1408 - whoops, forgot to do the smolder tests,
1409 and we broke some of the custom meta-attr
1410 modules. This fixes that.
1412 0.42 Mon. April 28, 2008
1413 - some bad tests slipped by, nothing else
1414 changed in this release (cpantesters++)
1416 - upped the Class::MOP dependency to 0.55
1417 since we have tests which need the C3
1420 0.41 Mon. April 28, 2008
1421 ~~ numerous documentation updates ~~
1423 - Changed all usage of die to Carp::croak for better
1424 error reporting (initial patch by Tod Hagan)
1426 ** IMPORTANT NOTE **
1427 - the make_immutable keyword is now deprecated, don't
1428 use it in any new code and please fix your old code
1429 as well. There will be 2 releases, and then it will
1435 - refactored the way inner and super work to avoid
1436 any method/@ISA cache penalty (nothingmuch)
1438 * Moose::Meta::Class
1439 - fixing &new_object to make sure trigger gets the
1440 coerced value (spotted by Charles Alderman on the
1442 - added test for this
1444 * Moose::Meta::Method::Constructor
1445 - immutable classes which had non-lazy attributes were calling
1446 the default generating sub twice in the constructor. (bug
1447 found by Jesse Luehrs, fixed by Dave Rolsky)
1448 - added tests for this (Dave Rolsky)
1449 - fix typo in initialize_body method (nothingmuch)
1451 * Moose::Meta::Method::Destructor
1452 - fix typo in initialize_body method (nothingmuch)
1454 * Moose::Meta::Method::Overriden
1455 Moose::Meta::Method::Augmented
1456 - moved the logic for these into their own
1457 classes (nothingmuch)
1459 * Moose::Meta::Attribute
1460 - inherited attributes may now be extended without
1461 restriction on the type ('isa', 'does') (Sartak)
1462 - added tests for this (Sartak)
1463 - when an attribute property is malformed (such as lazy without
1464 a default), give the name of the attribute in the error
1466 - added the &applied_traits and &has_applied_traits methods
1467 to allow introspection of traits
1468 - added tests for this
1469 - moved 'trait' and 'metaclass' argument handling to here from
1471 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1472 '+foo' syntax) (nothingmuch)
1473 - added tests for this (t0m)
1476 - localize $@ inside DEMOLISHALL to avoid it
1477 eating $@ (found by Ernesto)
1478 - added test for this (thanks to Ernesto)
1480 * Moose::Util::TypeConstraints
1481 - &find_type_constraint now DWIMs when given an
1482 type constraint object or name (nothingmuch)
1483 - &find_or_create_type_constraint superseded with a number of more
1485 - find_or_create_{isa,does}_type_constraint
1486 - find_or_parse_type_constraint
1488 * Moose::Meta::TypeConstraint
1489 Moose::Meta::TypeConstraint::Class
1490 Moose::Meta::TypeConstraint::Role
1491 Moose::Meta::TypeConstraint::Enum
1492 Moose::Meta::TypeConstraint::Union
1493 Moose::Meta::TypeConstraint::Parameterized
1494 - added the &equals method for comparing two type
1495 constraints (nothingmuch)
1496 - added tests for this (nothingmuch)
1498 * Moose::Meta::TypeConstraint
1499 - add the &parents method, which is just an alias to &parent.
1500 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1502 * Moose::Meta::TypeConstraint::Class
1503 - added the class attribute for introspection purposes
1505 - added tests for this
1507 * Moose::Meta::TypeConstraint::Enum
1508 Moose::Meta::TypeConstraint::Role
1509 - broke these out into their own classes (nothingmuch)
1511 * Moose::Cookbook::Recipe*
1512 - fixed references to test file locations in the POD
1513 and updated up some text for new Moose features
1517 - Added &resolve_metaclass_alias, a helper function for finding an actual
1518 class for a short name (e.g. in the traits list)
1520 0.40 Fri. March 14, 2008
1521 - I hate Pod::Coverage
1523 0.39 Fri. March 14, 2008
1525 - documenting the use of '+name' with attributes
1526 that come from recently composed roles. It makes
1527 sense, people are using it, and so why not just
1528 officially support it.
1529 - fixing the 'extends' keyword so that it will not
1530 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1533 - added the perl -Moose=+Class::Name feature to allow
1534 monkeypatching of classes in one liners
1537 - fixing the 'apply_all_roles' keyword so that it will not
1538 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1540 * Moose::Meta::Class
1541 - added ->create method which now supports roles (thanks to jrockway)
1542 - added tests for this
1543 - added ->create_anon_class which now supports roles and caching of
1544 the results (thanks to jrockway)
1545 - added tests for this
1546 - made ->does_role a little more forgiving when it is
1547 checking a Class::MOP era metaclasses.
1549 * Moose::Meta::Role::Application::ToInstance
1550 - it is now possible to pass extra params to be used when
1551 a role is applied to an the instance (rebless_params)
1552 - added tests for this
1554 * Moose::Util::TypeConstraints
1555 - class_type now accepts an optional second argument for a
1556 custom message. POD anotated accordingly (groditi)
1557 - added tests for this
1558 - it is now possible to make anon-enums by passing 'enum' an
1559 ARRAY ref instead of the $name => @values. Everything else
1561 - added tests for this
1564 - making test for using '+name' on attributes consumed
1565 from a role, it works and makes sense too.
1567 * Moose::Meta::Attribute
1568 - fix handles so that it doesn't return nothing
1569 when the method cannot be found, not sure why
1570 it ever did this originally, this means we now
1571 have slightly better support for AUTOLOADed
1573 - added more delegation tests
1574 - adding ->does method to this so as to better
1575 support traits and their introspection.
1576 - added tests for this
1579 - localizing the Data::Dumper configurations so
1580 that it does not pollute others (RT #33509)
1581 - made ->does a little more forgiving when it is
1582 passed Class::MOP era metaclasses.
1584 0.38 Fri. Feb. 15, 2008
1585 * Moose::Meta::Attribute
1586 - fixed initializer to correctly do
1587 type checking and coercion in the
1589 - added tests for this
1592 - fixed some finicky tests (thanks to konobi)
1594 0.37 Thurs. Feb. 14, 2008
1596 - fixed some details in Moose::init_meta
1597 and its superclass handling (thanks thepler)
1598 - added tests for this (thanks thepler)
1599 - 'has' now dies if you don't pass in name
1601 - added the 'make_immutable' keyword as a shortcut
1604 * Moose::Meta::Class
1605 Moose::Meta::Method::Constructor
1606 Moose::Meta::Attribute
1607 - making (init_arg => undef) work here too
1608 (thanks to nothingmuch)
1610 * Moose::Meta::Attribute
1611 Moose::Meta::Method::Constructor
1612 Moose::Meta::Method::Accessor
1613 - make lazy attributes respect attr initializers (rjbs)
1614 - added tests for this
1616 * Moose::Util::TypeConstraints
1617 Moose::Util::TypeConstraints::OptimizedConstraints
1618 Moose::Meta::TypeConstraints
1619 Moose::Meta::Attribute
1620 Moose::Meta::Method::Constructor
1621 Moose::Meta::Method::Accessor
1622 - making type errors use the
1623 assigned message (thanks to Sartak)
1624 - added tests for this
1626 * Moose::Meta::Method::Destructor
1627 - making sure DESTROY gets inlined properly
1628 with successive DEMOLISH calls (thanks to manito)
1630 * Moose::Meta::Attribute
1631 Moose::Meta::Method::Accessor
1632 - fixed handling of undef with type constraints
1634 - added tests for this
1637 - added &get_all_init_args and &get_all_attribute_values
1638 (thanks to Sartak and nothingmuch)
1640 0.36 Sat. Jan. 26, 2008
1642 Moose::Meta::Attribute
1643 - role type tests now support when roles are
1644 applied to non-Moose classes (found by ash)
1645 - added tests for this (thanks to ash)
1646 - couple extra tests to boost code coverage
1648 * Moose::Meta::Method::Constructor
1649 - improved fix for handling Class::MOP attributes
1650 - added test for this
1652 * Moose::Meta::Class
1653 - handled the add_attribute($attribute_meta_object)
1655 - added test for this
1657 0.35 Tues. Jan. 22, 2008
1658 * Moose::Meta::Method::Constructor
1659 - fix to make sure even Class::MOP attributes
1660 are handled correctly (Thanks to Dave Rolsky)
1661 - added test for this (also Dave Rolsky)
1663 * Moose::Meta::Class
1664 - improved error message on _apply_all_roles,
1665 you should now use Moose::Util::apply_all_roles
1666 and you shouldnt have been using a _ prefixed
1667 method in the first place ;)
1669 0.34 Mon. Jan. 21, 2008
1670 ~~~ more misc. doc. fixes ~~~
1671 ~~ updated copyright dates ~~
1673 Moose is now a postmodern object system :)
1674 - (see the POD for details)
1676 * <<Role System Refactoring>>
1677 - this release contains a major reworking and
1678 cleanup of the role system
1679 - 100% backwards compat.
1680 - Role application now restructured into seperate
1681 classes based on type of applicants
1682 - Role summation (combining of more than one role)
1683 is much cleaner and anon-classes are no longer
1684 used in this process
1685 - new Composite role metaclass
1686 - runtime application of roles to instances
1687 is now more efficient and re-uses generated
1688 classes when applicable
1690 * <<New Role composition features>>
1691 - methods can now be excluded from a given role
1693 - methods can now be aliased to another name (and
1694 still retain the original as well)
1696 * Moose::Util::TypeConstraints::OptimizedConstraints
1697 - added this module (see above)
1699 * Moose::Meta::Class
1700 - fixed the &_process_attribute method to be called
1701 by &add_attribute, so that the API is now correct
1703 * Moose::Meta::Method::Accessor
1704 - fixed bug when passing a list of values to
1705 an accessor would get (incorrectly) ignored.
1706 Thanks to Sartak for finding this ;)
1707 - added tests for this (Sartak again)
1709 * Moose::Meta::Method::Accessor
1710 Moose::Meta::Method::Constructor
1711 Moose::Meta::Attribute
1712 Moose::Meta::TypeConstraint
1713 Moose::Meta::TypeCoercion
1714 - lots of cleanup of such things as:
1716 - type constraint handling
1717 - error handling/messages
1718 (thanks to nothingmuch)
1720 * Moose::Meta::TypeConstraint::Parameterizable
1721 - added this module to support the refactor
1722 in Moose::Meta::TypeConstraint::Parameterized
1724 * Moose::Meta::TypeConstraint::Parameterized
1725 - refactored how these types are handled so they
1726 are more generic and not confined to ArrayRef
1730 - shortened some file names for better VMS support (RT #32381)
1732 0.33 Fri. Dec. 14, 2007
1733 !! Moose now loads 2 x faster !!
1734 !! with new Class::MOP 0.49 !!
1736 ++ new oose.pm module to make command line
1737 Moose-ness easier (see POD docs for more)
1739 * Moose::Meta::Class
1741 - several tweaks to take advantage of the
1742 new method map caching in Class::MOP
1744 * Moose::Meta::TypeConstraint::Parameterized
1745 - allow subtypes of ArrayRef and HashRef to
1746 be used as a container (sartak)
1747 - added tests for this
1748 - basic support for coercion to ArrayRef and
1749 HashRef for containers (sartak)
1750 - added tests for this
1752 * Moose::Meta::TypeCoercion
1753 - coercions will now create subtypes as needed
1754 so you can now add coercions to parameterized
1755 types without having to explictly define them
1756 - added tests for this
1758 * Moose::Meta::Method::Accessor
1759 - allow subclasses to decide whether we need
1760 to copy the value into a new variable (sartak)
1762 0.32 Tues. Dec. 4, 2007
1763 * Moose::Util::TypeConstraints
1764 - fixing how subtype aliases of unions work
1765 they should inherit the parent's coercion
1766 - added tests for this
1767 - you can now define multiple coercions on
1768 a single type at different times instead of
1769 having to do it all in one place
1770 - added tests for this
1772 * Moose::Meta::TypeConstraint
1773 - there is now a default constraint of sub { 1 }
1774 instead of Moose::Util::TypeConstraints setting
1777 * Moose::Meta::TypeCoercion
1778 * Moose::Meta::TypeCoercion::Union
1779 - added the &has_coercion_for_type and
1780 &add_type_coercions methods to support the
1781 new features above (although you cannot add
1782 more type coercions for Union types)
1784 0.31 Mon. Nov. 26, 2007
1785 * Moose::Meta::Attribute
1786 - made the +attr syntax handle extending types with
1787 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1788 now works if the original foo is an ArrayRef.
1789 - added tests for this.
1790 - delegation now works even if the attribute does not
1791 have a reader method using the get_read_method_ref
1792 method from Class::MOP::Attribute.
1793 - added tests for this
1794 - added docs for this
1796 * Moose::Util::TypeConstraints
1797 - passing no "additional attribute info" to
1798 &find_or_create_type_constraint will no longer
1799 attempt to create an __ANON__ type for you,
1800 instead it will just return undef.
1801 - added docs for this
1803 0.30 Fri. Nov. 23, 2007
1804 * Moose::Meta::Method::Constructor
1805 -builder related bug in inlined constructor. (groditi)
1807 * Moose::Meta::Method::Accessor
1808 - genereate unnecessary calls to predicates and refactor
1809 code generation for runtime speed (groditi)
1811 * Moose::Util::TypeConstraints
1812 - fix ClassName constraint to introspect symbol table (mst)
1813 - added more tests for this (mst)
1814 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1815 with work correctly.
1816 - added tests for this
1819 - adding the link to Recipie 11 (written by Sartak)
1820 - adding test for SYNOPSIS code
1823 - New tests for builder bug. Upon instantiation, if an
1824 attribute had a builder, no value and was not lazy the
1825 builder default was not getting run, oops. (groditi)
1827 0.29 Tues. Nov. 13, 2007
1828 * Moose::Meta::Attribute
1829 - Fix error message on missing builder method (groditi)
1831 * Moose::Meta::Method::Accessor
1832 - Fix error message on missing builder method (groditi)
1835 - Add test to check for the correct error message when
1836 builder method is missing (groditi)
1838 0.28 Tues. Nov. 13, 2007
1839 - 0.27 packaged incorrectly (groditi)
1841 0.27 Tues. Nov. 13, 2007
1842 * Moose::Meta::Attribute
1843 - Added support for the new builder option (groditi)
1844 - Added support for lazy_build option (groditi)
1845 - Changed slot initialization for predicate changes (groditi)
1847 * Moose::Meta::Method::Accessor
1848 - Added support for lazy_build option (groditi)
1849 - Fix inline methods to work with corrected predicate
1852 * Moose::Meta::Method::Constructor
1853 - Added support for lazy_build option (groditi)
1856 - tests for builder and lazy_build (groditi)
1858 * fixing some misc. bits in the docs that
1859 got mentioned on CPAN Forum & perlmonks
1862 - fixed how required methods are handled
1863 when they encounter overriden or modified
1864 methods from a class (thanks to confound).
1865 - added tests for this
1867 * Moose::Util::TypeConstraint
1868 - fixed the type notation parser so that
1869 the | always creates a union and so is
1870 no longer a valid type char (thanks to
1871 konobi, mugwump and #moose for working
1873 - added more tests for this
1875 0.26 Thurs. Sept. 27, 2007
1878 * Parameterized Types
1879 We now support parameterized collection types, such as:
1880 ArrayRef[Int] # array or integers
1881 HashRef[Object] # a hash with object values
1882 They can also be nested:
1883 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1884 And work with the type unions as well:
1885 ArrayRef[Int | Str] # array of integers of strings
1887 * Better Framework Extendability
1888 Moose.pm is now "extendable" such that it is now much
1889 easier to extend the framework and add your own keywords
1890 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1891 section of the Moose.pm docs.
1894 In an effort to begin documenting some of the various
1895 details of Moose as well as some common idioms, we have
1896 created Moose::Cookbook::Snacks as a place to find
1897 small (easily digestable) nuggets of Moose code.
1900 ~ Several doc updates/cleanup thanks to castaway ~
1902 - converted build system to use Module::Install instead of
1903 Module::Build (thanks to jrockway)
1906 - added all the meta classes to the immutable list and
1907 set it to inline the accessors
1908 - fix import to allow Sub::Exporter like { into => }
1909 and { into_level => } (perigrin)
1910 - exposed and documented init_meta() to allow better
1911 embedding and extending of Moose (perigrin)
1914 - complete re-organization of the test suite
1915 - added some new tests as well
1916 - finally re-enabled the Moose::POOP test since
1917 the new version of DBM::Deep now works again
1920 * Moose::Meta::Class
1921 - fixed very odd and very nasty recursion bug with
1923 - added tests for this (eilara)
1925 * Moose::Meta::Attribute
1926 Moose::Meta::Method::Constructor
1927 Moose::Meta::Method::Accessor
1928 - fixed issue with overload::Overloaded getting called
1929 on non-blessed items. (RT #29269)
1930 - added tests for this
1932 * Moose::Meta::Method::Accessor
1933 - fixed issue with generated accessor code making
1934 assumptions about hash based classes (thanks to dexter)
1936 * Moose::Coookbook::Snacks
1937 - these are bits of documentation, not quite as big as
1938 Recipes but which have no clear place in the module docs.
1939 So they are Snacks! (horray for castaway++)
1941 * Moose::Cookbook::Recipe4
1942 - updated it to use the new ArrayRef[MyType] construct
1943 - updated the accompanying test as well
1945 +++ Major Refactor of the Type Constraint system +++
1946 +++ with new features added as well +++
1948 * Moose::Util::TypeConstraint
1949 - no longer uses package variable to keep track of
1950 the type constraints, now uses the an instance of
1951 Moose::Meta::TypeConstraint::Registry to do it
1952 - added more sophisticated type notation parsing
1954 - added tests for this
1956 * Moose::Meta::TypeConstraint
1957 - some minor adjustments to make subclassing easier
1958 - added the package_defined_in attribute so that we
1959 can track where the type constraints are created
1961 * Moose::Meta::TypeConstraint::Union
1962 - this is now been refactored to be a subclass of
1963 Moose::Meta::TypeConstraint
1965 * Moose::Meta::TypeCoercion::Union
1966 - this has been added to service the newly refactored
1967 Moose::Meta::TypeConstraint::Union and is itself
1968 a subclass of Moose::Meta::TypeCoercion
1970 * Moose::Meta::TypeConstraint::Parameterized
1971 - added this module (taken from MooseX::AttributeHelpers)
1972 to help construct nested collection types
1973 - added tests for this
1975 * Moose::Meta::TypeConstraint::Registry
1976 - added this class to keep track of type constraints
1978 0.25 Mon. Aug. 13, 2007
1980 - Documentation update to reference Moose::Util::TypeConstraints
1981 under 'isa' in 'has' for how to define a new type
1982 (thanks to shlomif).
1984 * Moose::Meta::Attribute
1985 - required attributes now will no longer accept undef
1986 from the constructor, even if there is a default and lazy
1987 - added tests for this
1988 - default subroutines must return a value which passes the
1990 - added tests for this
1992 * Moose::Meta::Attribute
1993 * Moose::Meta::Method::Constructor
1994 * Moose::Meta::Method::Accessor
1995 - type-constraint tests now handle overloaded objects correctly
1996 in the error message
1997 - added tests for this (thanks to EvanCarroll)
1999 * Moose::Meta::TypeConstraint::Union
2000 - added (has_)hand_optimized_constraint to this class so that
2001 it behaves as the regular Moose::Meta::TypeConstraint does.
2004 - large refactoring of this code
2005 - added several more tests
2006 - tests for subtle conflict resolition issues
2007 added, but not currently running
2010 * Moose::Cookbook::Recipe7
2011 - added new recipe for augment/inner functionality
2013 - added test for this
2016 - a formal definition of roles (still in progress)
2019 - utilities for easier working with Moose classes
2020 - added tests for these
2023 - This contains Moose specific test functions
2024 - added tests for these
2026 0.24 Tues. July 3, 2007
2027 ~ Some doc updates/cleanup ~
2029 * Moose::Meta::Attribute
2030 - added support for roles to be given as parameters
2031 to the 'handles' option.
2032 - added tests and docs for this
2033 - the has '+foo' attribute form now accepts changes to
2034 the lazy option, and the addition of a handles option
2035 (but not changing the handles option)
2036 - added tests and docs for this
2039 - required methods are now fetched using find_method_by_name
2040 so that required methods can come from superclasses
2041 - adjusted tests for this
2043 0.23 Mon. June 18, 2007
2044 * Moose::Meta::Method::Constructor
2045 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
2046 * Moose::Meta::Class
2047 - Modify make_immutable to work with the new Class::MOP immutable
2048 mechanism + POD + very basic test (groditi)
2049 * Moose::Meta::Attribute
2050 - Fix handles to use goto() so that caller() comes out properly on
2051 the other side (perigrin)
2053 0.22 Thurs. May 31, 2007
2054 * Moose::Util::TypeConstraints
2055 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
2056 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
2057 prototypes for functions
2058 - added the ClassName type constraint, this checks for strings
2059 which will respond true to ->isa(UNIVERSAL).
2060 - added tests and docs for this
2061 - subtyping just in name now works correctly by making the
2062 default for where be { 1 }
2063 - added test for this
2065 * Moose::Meta::Method::Accessor
2066 - coerce and lazy now work together correctly, thanks to
2067 merlyn for finding this bug
2068 - tests added for this
2069 - fix reader presedence bug in Moose::Meta::Attribute + tests
2072 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
2073 a HASH-ref and missed. This produces better error messages then
2074 having it die cause undef is not a HASH.
2075 - added tests for this
2077 0.21 Thursday, May 2nd, 2007
2079 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
2080 - modified unimport to remove super and inner along with the rest
2081 - altered unimport tests to handle this
2084 - altered super export to populate SUPER_SLOT
2086 * Moose::Meta::Class
2087 - altered augment and override modifier application to use *_SLOT
2088 - modified tests for these to unimport one test class each to test
2091 - fixed issue where custom attribute metaclasses
2092 where not handled correctly in roles
2093 - added tests for this
2095 * Moose::Meta::Class
2096 - fixed issue where extending metaclasses with
2097 roles would blow up. Thanks to Aankhen`` for
2098 finding this insidious error, and it's solution.
2100 ~~ lots of spelling and grammer fixes in the docs,
2101 many many thanks to rlb3 and Aankhen for these :)
2103 0.20 Friday, April 6th, 2007
2104 >> I messed up the SKIP logic in one test
2105 so this release is just to fix that.
2108 - 'has' now also accepts an ARRAY ref
2109 to create multiple attrs (see docs)
2110 (thanks to konobi for this)
2111 - added tests and docs
2113 0.19 Thurs. April 5th, 2007
2114 ~~ More documentation updates ~~
2116 * Moose::Util::TypeConstraints
2117 - 'type' now supports messages as well
2118 thanks to phaylon for finding this
2119 - added tests for this
2120 - added &list_all_type_constraints and
2121 &list_all_builtin_type_constraints
2122 functions to facilitate introspection.
2124 * Moose::Meta::Attribute
2125 - fixed regexp 'handles' declarations
2126 to build the list of delegated methods
2127 correctly (and not override important
2128 things like &new) thanks to ashleyb
2130 - added tests and docs for this
2131 - added the 'documentation' attributes
2132 so that you can actually document your
2133 attributes and inspect them through the
2135 - added tests and docs for this
2137 * Moose::Meta::Class
2138 - when loading custom attribute metaclasses
2139 it will first look in for the class in the
2140 Moose::Meta::Attribute::Custom::$name, and
2141 then default to just loading $name.
2142 - added tests and docs for this
2144 * Moose::Meta::TypeConstraint
2145 - type constraints now stringify to their names.
2146 - added test for this
2149 - added tests to assure we work with Module::Refresh
2150 - added stricter test skip logic in the Moose POOP
2151 test, ask Rob Kinyon why.
2152 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2154 0.18 Sat. March 10, 2007
2155 ~~ Many, many documentation updates ~~
2158 - We now use Class::MOP::load_class to
2160 - added tests to show types and subtypes
2161 working with Declare::Constraints::Simple
2162 and Test::Deep as constraint engines.
2165 !! You must have Class::MOP 0.37_001 !!
2166 !! for this developer release to work !!
2168 This release was primarily adding the immutable
2169 feature to Moose. An immutable class is one which
2170 you promise not to alter. When you set the class
2171 as immutable it will perform various bits of
2172 memoization and inline certain part of the code
2173 (constructors, destructors and accessors). This
2174 minimizes (and in some cases totally eliminates)
2175 one of Moose's biggest performance hits. This
2176 feature is not on by default, and is 100% optional.
2177 It has several configurable bits as well, so you
2178 can pick and choose to your specific needs.
2180 The changes involved in this were fairly wide and
2181 highly specific, but 100% backwards compatible, so
2182 I am not going to enumerate them here. If you are
2183 truely interested in what was changed, please do
2186 0.17 Tues. Nov. 14, 2006
2187 * Moose::Meta::Method::Accessor
2188 - bugfix for read-only accessors which
2189 are have a type constraint and lazy.
2190 Thanks to chansen for finding it.
2192 0.16 Tues. Nov. 14, 2006
2194 There are some speed improvements in this release,
2195 but they are only the begining, so stay tuned.
2198 - BUILDALL and DEMOLISHALL no longer get
2199 called unless they actually need to be.
2200 This gave us a signifigant speed boost
2201 for the cases when there is no BUILD or
2202 DEMOLISH method present.
2204 * Moose::Util::TypeConstraints
2205 * Moose::Meta::TypeConstraint
2206 - added an 'optimize_as' option to the
2207 type constraint, which allows for a
2208 hand optimized version of the type
2209 constraint to be used when possible.
2210 - Any internally created type constraints
2211 now provide an optimized version as well.
2213 0.15 Sun. Nov. 5, 2006
2215 This version of Moose *must* have Class::MOP 0.36 in order
2216 to work correctly. A number of small internal tweaks have
2217 been made in order to be compatible with that release.
2219 * Moose::Util::TypeConstraints
2220 - added &unimport so that you can clean out
2221 your class namespace of these exported
2224 * Moose::Meta::Class
2225 - fixed minor issue which occasionally
2226 comes up during global destruction
2228 - moved Moose::Meta::Method::Overriden into
2232 - moved Moose::Meta::Role::Method into
2235 * Moose::Meta::Attribute
2236 - changed how we do type checks so that
2237 we reduce the overall cost, but still
2240 - moved accessor generation methods to
2241 Moose::Meta::Method::Accessor to
2242 conform to the API changes from
2245 * Moose::Meta::TypeConstraint
2246 - changed how constraints are compiled
2247 so that we do less recursion and more
2248 iteration. This makes the type check
2250 - moved Moose::Meta::TypeConstraint::Union
2253 * Moose::Meta::Method::Accessor
2254 - created this from methods formerly found in
2255 Moose::Meta::Attribute
2257 * Moose::Meta::Role::Method
2258 - moved this from Moose::Meta::Role
2260 * Moose::Meta::Method::Overriden
2261 - moved this from Moose::Meta::Class
2263 * Moose::Meta::TypeConstraint::Union
2264 - moved this from Moose::Meta::TypeConstraint
2266 0.14 Mon. Oct. 9, 2006
2268 * Moose::Meta::Attribute
2269 - fixed lazy attributes which were not getting
2270 checked with the type constraint (thanks ashley)
2271 - added tests for this
2272 - removed the over-enthusiastic DWIMery of the
2273 automatic ArrayRef and HashRef defaults, it
2274 broke predicates in an ugly way.
2275 - removed tests for this
2277 0.13 Sat. Sept. 30, 2006
2279 This version of Moose *must* have Class::MOP 0.35 in order
2280 to work correctly. A number of small internal tweaks have
2281 been made in order to be compatible with that release.
2284 - Removed the use of UNIVERSAL::require to be a better
2285 symbol table citizen and remove a dependency
2286 (thanks Adam Kennedy)
2288 **~~ removed experimental & undocumented feature ~~**
2289 - commented out the 'method' and 'self' keywords, see the
2290 comments for more info.
2293 - added a FAQ and WTF files to document frequently
2294 asked questions and common problems
2296 * Moose::Util::TypeConstraints
2297 - added GlobRef and FileHandle type constraint
2298 - added tests for this
2300 * Moose::Meta::Attribute
2301 - if your attribute 'isa' ArrayRef of HashRef, and you have
2302 not explicitly set a default, then make the default DWIM.
2303 This will also work for subtypes of ArrayRef and HashRef
2305 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2306 - new test added for this (thanks to ashley)
2309 - added basic support for runtime role composition
2310 but this is still *highly experimental*, so feedback
2311 is much appreciated :)
2312 - added tests for this
2314 * Moose::Meta::TypeConstraint
2315 - the type constraint now handles the coercion process
2316 through delegation, this is to support the coercion
2319 * Moose::Meta::TypeConstraint::Union
2320 - it is now possible for coercions to be performed
2322 - added tests for this (thanks to konobi)
2324 * Moose::Meta::TypeCoercion
2325 - properly capturing error when type constraint
2329 - Scalar::Util 1.18 is bad on Win32, so temporarily
2330 only require version 1.17 for Win32 and cygwin.
2331 (thanks Adam Kennedy)
2333 0.12 Sat. Sept. 1, 2006
2335 - Recipe5 (subtypes & coercion) has been written
2338 - fixed "bad meta" error message to be more descriptive
2339 - fixed &unimport to not remove the &inner and &super
2340 keywords because we need to localize them.
2341 - fixed number of spelling/grammer issues, thanks Theory :)
2343 **~~ experimental & undocumented feature ~~**
2344 - added the method and self keywords, they are basically
2345 just sugar, and they may not stay around.
2348 - added &dump method to easily Data::Dumper
2351 * Moose::Meta::TypeConstraint
2352 - added the &is_a_type_of method to check both the current
2353 and the subtype of a method (similar to &isa with classes)
2356 - this is now a subclass of Class::MOP::Module, and no longer
2357 creates the _role_meta ugliness of before.
2358 - fixed tests to reflect this change
2360 0.11 Wed. July 12, 2006
2362 - added an &unimport method to remove all the keywords
2363 that Moose will import, simply add 'no Moose' to the
2364 bottom of your class file.
2367 - fixed some test failures caused by a forgotten test
2370 0.10 Thurs. July 6, 2006
2372 - improved error message when loading modules so
2373 it is less confusing when you load a role.
2374 - added &calculate_all_roles method to
2375 Moose::Meta::Class and Moose::Meta::Role
2378 This module has been tested against Class::MOP 0.30
2379 but it does not yet utilize the optimizations
2380 it makes available. Stay tuned for that ;)
2382 0.09_03 Fri. June 23, 2006
2383 ++ DEVELOPER RELEASE ++
2385 - 'use strict' and 'use warnings' are no longer
2386 needed in Moose classes, Moose itself will
2387 turn them on for you.
2388 - added tests for this
2389 - moved code from exported subs to private methods
2390 in Moose::Meta::Class
2393 - as with Moose, strict and warnings are
2394 automatically turned on for you.
2395 - added tests for this
2398 - now handles an edge case for override errors
2399 - added tests for this
2400 - added some more edge case tests
2402 0.09_02 Tues. May 16, 2006
2403 ++ DEVELOPER RELEASE ++
2405 - added prototypes to the exported subs
2409 - added prototypes to the exported subs
2412 * Moose::Util::TypeConstraints
2413 - cleaned up prototypes for the subs
2416 0.09_01 Fri. May 12, 2006
2417 ++ DEVELOPER RELEASE ++
2418 - This release works in combination with
2419 Class::MOP 0.29_01, it is a developer
2420 release because it uses the a new
2421 instance sub-protocol and a fairly
2422 complete Role implementation. It has
2423 not yet been optimized, so it slower
2424 the the previous CPAN version. This
2425 release also lacks good updated docs,
2426 the official release will have updated docs.
2429 - refactored the keyword exports
2430 - 'with' now checks Role validaity and
2431 accepts more than one Role at a time
2432 - 'extends' makes metaclass adjustments as
2433 needed to ensure metaclass compatibility
2436 - refactored the keyword exports
2437 - 'with' now checks Role validaity and
2438 accepts more than one Role at a time
2440 * Moose::Util::TypeConstraints
2441 - added the 'enum' keyword for simple
2442 string enumerations which can be used as
2444 - see example of usage in t/202_example.t
2447 - more careful checking of params to new()
2450 - much work done on the role composition
2451 - many new tests for conflict detection
2452 and composition edge cases
2453 - not enough documentation, I suggest
2454 looking at the tests
2456 * Moose::Meta::Instance
2457 - added new Instance metaclass to support
2458 the new Class::MOP instance protocol
2460 * Moose::Meta::Class
2461 - some small changes to support the new
2463 - some small additions to support Roles
2465 * Moose::Meta::Attribute
2466 - some improvements to the accessor generation code
2468 - some small changes to support the new
2470 - (still somewhat) experimental delegation support
2471 with the 'handles' option
2472 - added several tests for this
2473 - no docs for this yet
2475 0.05 Thurs. April 27, 2006
2477 - keywords are now exported with Sub::Exporter
2478 thanks to chansen for this commit
2479 - has keyword now takes a 'metaclass' option
2480 to support custom attribute meta-classes
2481 on a per-attribute basis
2482 - added tests for this
2483 - the 'has' keyword not accepts inherited slot
2484 specifications (has '+foo'). This is still an
2485 experimental feature and probably not finished
2486 see t/038_attribute_inherited_slot_specs.t for
2487 more details, or ask about it on #moose
2488 - added tests for this
2491 - keywords are now exported with Sub::Exporter
2493 * Moose::Utils::TypeConstraints
2494 - reorganized the type constraint hierarchy, thanks
2495 to nothingmuch and chansen for his help and advice
2497 - added some tests for this
2498 - keywords are now exported with Sub::Exporter
2499 thanks to chansen for this commit
2501 * Moose::Meta::Class
2502 - due to changes in Class::MOP, we had to change
2503 construct_instance (for the better)
2505 * Moose::Meta::Attribute
2506 - due to changes in Class::MOP, we had to add the
2507 initialize_instance_slot method (it's a good thing)
2509 * Moose::Meta::TypeConstraint
2510 - added type constraint unions
2511 - added tests for this
2512 - added the is_subtype_of predicate method
2513 - added tests for this
2515 0.04 Sun. April 16th, 2006
2517 - Roles can now consume other roles
2518 - added tests for this
2519 - Roles can specify required methods now with
2520 the requires() keyword
2521 - added tests for this
2524 - ripped out much of it's guts ,.. much cleaner now
2525 - added required methods and correct handling of
2526 them in apply() for both classes and roles
2527 - added tests for this
2528 - no longer adds a does() method to consuming classes
2529 it relys on the one in Moose::Object
2530 - added roles attribute and some methods to support
2531 roles consuming roles
2533 * Moose::Meta::Attribute
2534 - added support for triggers on attributes
2535 - added tests for this
2536 - added support for does option on an attribute
2537 - added tests for this
2539 * Moose::Meta::Class
2540 - added support for attribute triggers in the
2542 - added tests for this
2545 - Moose no longer creates a subtype for your class
2546 if a subtype of the same name already exists, this
2547 should DWIM in 99.9999% of all cases
2549 * Moose::Util::TypeConstraints
2550 - fixed bug where incorrect subtype conflicts were
2552 - added test for this
2555 - this class can now be extended with 'use base' if
2556 you need it, it properly loads the metaclass class now
2557 - added test for this
2559 0.03_02 Wed. April 12, 2006
2561 - you must now explictly use Moose::Util::TypeConstraints
2562 it no longer gets exported for you automatically
2565 - new() now accepts hash-refs as well as key/value lists
2566 - added does() method to check for Roles
2567 - added tests for this
2569 * Moose::Meta::Class
2570 - added roles attribute along with the add_role() and
2572 - added tests for this
2575 - now adds a does() method to consuming classes
2576 which tests the class's hierarchy for roles
2577 - added tests for this
2579 0.03_01 Mon. April 10, 2006
2581 - added new Role recipe (no content yet, only code)
2584 - added 'with' keyword for Role support
2585 - added test and docs for this
2586 - fixed subtype quoting bug
2587 - added test for this
2591 - added test and docs
2593 * Moose::Util::TypeConstraints
2594 - added the message keyword to add custom
2595 error messages to type constraints
2598 - the meta role to support Moose::Role
2599 - added tests and docs
2601 * Moose::Meta::Class
2602 - moved a number of things from Moose.pm
2603 to here, they should have been here
2606 * Moose::Meta::Attribute
2607 - moved the attribute option macros here
2608 instead of putting them in Moose.pm
2610 * Moose::Meta::TypeConstraint
2611 - added the message attributes and the
2613 - added tests and docs for this
2615 0.03 Thurs. March 30, 2006
2617 - added the Moose::Cookbook with 5 recipes,
2618 describing all the stuff Moose can do.
2621 - fixed an issue with &extends super class loading
2622 it now captures errors and deals with inline
2623 packages correctly (bug found by mst, solution
2625 - added super/override & inner/augment features
2626 - added tests and docs for these
2629 - BUILDALL now takes a reference of the %params
2630 that are passed to &new, and passes that to
2633 * Moose::Util::TypeConstraints
2634 - Type constraints now survive runtime reloading
2635 - added test for this
2637 * Moose::Meta::Class
2638 - fixed the way attribute defaults are handled
2639 during instance construction (bug found by chansen)
2641 * Moose::Meta::Attribute
2642 - read-only attributes now actually enforce their
2643 read-only-ness (this corrected in Class::MOP as
2646 0.02 Tues. March 21, 2006
2648 - many more tests, fixing some bugs and
2650 - &extends now loads the base module with
2652 - added UNIVERSAL::require to the
2655 - each new Moose class will also create
2656 and register a subtype of Object which
2657 correspond to the new Moose class.
2658 - the 'isa' option in &has now only
2659 accepts strings, and will DWIM in
2662 * Moose::Util::TypeConstraints
2663 - added type coercion features
2664 - added tests for this
2665 - added support for this in attributes
2666 and instance construction
2668 - type construction no longer creates a
2669 function, it registers the type instead.
2670 - added several functions to get the
2674 - BUILDALL and DEMOLISHALL were broken
2675 because of a mis-named hash key, Whoops :)
2677 * Moose::Meta::Attribute
2678 - adding support for coercion in the
2679 autogenerated accessors
2681 * Moose::Meta::Class
2682 - adding support for coercion in the
2683 instance construction
2685 * Moose::Meta::TypeConstraint
2686 * Moose::Meta::TypeCoercion
2687 - type constraints and coercions are now
2688 full fledges meta-objects
2690 0.01 Wed. March 15, 2006
2691 - Moooooooooooooooooose!!!