1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 - Add FAQ about the coercion change from 0.76 because it came up
7 three times today (perigrin)
8 - Win doy $10 dollars because Sartak didn't think anybody
9 would document this fast enough (perigrin)
11 * Moose::Meta::Method::Destructor
12 - Inline a DESTROY method even if there are no DEMOLISH methods
13 to prevent unnecessary introspection in
14 Moose::Object::DEMOLISHALL
17 - A role's required methods are now represented by
18 Moose::Meta::Role::Method::Required objects. Conflicts are now
19 represented by Moose::Meta::Role::Method::Conflicting
20 objects. The benefit for end-users in that unresolved
21 conflicts generate different, more instructive, errors,
22 resolving Ovid's #44895. (Sartak)
25 - Improve the error message of "extends" as suggested by Adam
26 Kennedy and confound (Sartak)
27 - Link to Moose::Manual::Roles from Moose::Role as we now have
28 excellent documentation (Adam Kennedy)
31 - Update test suite for subname change in Class::MOP
33 - Add test for infinite recursion in Moose::Meta::Class
36 0.79 Wed, May 13, 2009
38 - More fixes for Win32 problems. Reported by Robert Krimen.
41 - The DEMOLISHALL method could still blow up in some cases
42 during global destruction. This method has been made more
43 resilient in the face of global destruction's random garbage
47 - If you "also" a module that isn't loaded, the error message
48 now acknowledges that (Sartak)
51 - When your ->meta method does not return a Moose::Meta::Class,
52 the error message gave the wrong output (Sartak)
54 0.78 Tue, May 12, 2009
55 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
56 - Merged these documents into what is now Moose::Manual::FAQ
59 - Moved to Moose::Manual::Unsweetened
61 * Moose::Cookbook::Basics::Recipes 9-12
62 - Renamed to be 8-11, since recipe 8 did not exist
65 - Make Moose::Exporter import strict and warnings into packages
69 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
70 methods during global destruction (doy)
73 * Moose::Meta::Role::Application::ToClass
74 - Track the Role::Application objects created during class-role
78 - Fix metaclass incompatibility errors when extending a vanilla perl
79 class which isa Moose class with a metaclass role applied (t0m)
82 - Add a role-combination hook, _role_for_combination, for the
83 benefit of MooseX::Role::Parameterized (Sartak)
86 - Some tests were failing on Win32 because they explicit checked
87 warning output for newlines. Reported by Nickolay Platonov.
91 - Add explicit use of Devel::GlobalDestruction and Sub::Name
95 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
96 or not we are currently in global destruction (doy)
97 - Add explicit use of Devel::GlobalDestruction and Sub::Name
100 * Moose::Cookbook::FAQ
101 - Reworked much of the existing content to be more useful to
102 modern Moose hackers (Sartak)
105 - Depend on Class::MOP 0.83 instead of 0.82_01. It seems that if
106 we use a dev version number there CPAN.pm will not follow the
109 0.76 Mon, April 27, 2009
110 * Moose::Meta::TypeConstraint
111 - Do not run coercions in coerce() if the value already passes the type
114 * Moose::Meta::TypeConstraint::Class
115 - In validation error messages, specifically say that the value is not
116 an instance of the class. This should alleviate some frustrating
117 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
119 * Moose::Meta::Role::Application::ToClass
120 - Revert the class-overrides-role warning in favor of a solution outside
121 of the Moose core (Sartak)
124 - Make Test::Output optional again, since it's only used in a few files
127 0.75_01 Thu, April 23, 2009
128 * Moose::Meta::Role::Application::ToClass
129 - Moose now warns about each class overriding methods from roles it
133 - Warnings tests have standardized on Test::Output which is now an
134 unconditionally dependency (Sartak)
137 - Changes to immutabilization to work with Class::MOP 0.82_01+.
139 0.75 Mon, April 20, 2009
142 - Move validation of not inheriting from roles from Moose::extends to
143 Moose::Meta::Class::superclasses (doy)
146 - add ensure_all_roles() function to encapsulate the common "apply this
147 role unless the object already does it" pattern (hdp)
150 - Users can now select a different metaclass with the "-metaclass"
151 option to import, for classes and roles (Sartak)
154 - Make method_metaclass an attr so that it can accept a metarole
157 0.74 Tue, April 7, 2009
159 * Moose::Meta::Method::Destructor
160 - Include stack traces in the deprecation warnings.
164 - Removed the long-deprecated _apply_all_roles method.
166 * Moose::Meta::TypeConstraint
167 - Removed the long-deprecated union method.
170 0.73_02 Mon, April 6, 2009
171 * More deprecations and renamings
172 - Moose::Meta::Method::Constructor
173 - initialize_body => _initialize_body (this is always called
174 when an object is constructed)
177 - The DEMOLISHALL method could throw an exception during global
178 destruction, meaning that your class's DEMOLISH methods would
179 not be properly called. Reported by t0m.
181 * Moose::Meta::Method::Destructor
182 - Destructor inlining was totally broken by the change to the
183 is_needed method in 0.72_01. Now there is a test for this
184 feature, and it works again.
187 - Bold the word 'not' in the POD for find_meta (t0m)
189 0.73_01 Sun, April 5, 2009
191 - Call user_class->meta in fewer places, with the eventual goal
192 of allowing the user to rename or exclude ->meta
193 altogether. Instead uses Class::MOP::class_of. (Sartak)
195 * Moose::Meta::Method::Accessor
196 - If an attribute had a lazy default, and that value did not
197 pass the attribute's type constraint, it did not get the
198 message from the type constraint, instead using a generic
199 message. Test provided by perigrin.
201 * Moose::Util::TypeConstraints
202 - Add duck_type keyword. It's sugar over making sure an object
203 can() a list of methods. This is easier than jrockway's
204 suggestion to fork all of CPAN. (perigrin)
205 - add tests and documentation (perigrin)
208 - Document the fact that init_meta() returns the target class's
209 metaclass object. (hdp)
211 * Moose::Cookbook::Extending::Recipe1
212 * Moose::Cookbook::Extending::Recipe2
213 * Moose::Cookbook::Extending::Recipe3
214 * Moose::Cookbook::Extending::Recipe4
215 - Make init_meta() examples explicitly return the metaclass and
216 point out this fact. (hdp)
218 * Moose::Cookbook::Basics::Recipe12
219 - A new recipe, creating a custom meta-method class.
221 * Moose::Cookbook::Meta::Recipe6
222 - A new recipe, creating a custom meta-method class.
225 * Moose::Meta::Method::Constructor
226 - Attribute triggers no longer receive the meta-attribute object
227 as an argument in any circumstance. Previously, triggers
228 called during instance construction were passed the
229 meta-attribute, but triggers called by normal accessors were
230 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
232 * Moose::Manual::Attributes
233 - Remove references to triggers receving the meta-attribute object as an
236 * Moose::Cookbook::FAQ
237 - Remove recommendation for deprecated Moose::Policy and
238 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
241 * Many methods have been renamed with a leading underscore, and a
242 few have been deprecated entirely. The methods with a leading
243 underscore are consider "internals only". People writing
244 subclasses or extensions to Moose should feel free to override
245 them, but they are not for "public" use.
248 - check_metaclass_compatibility => _check_metaclass_compatibility
250 - Moose::Meta::Method::Accessor
251 - initialize_body => _initialize_body (this is always called
252 when an object is constructed)
253 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
255 - Moose::Meta::Method::Constructor
256 - initialize_body => _initialize_body (this is always called
257 when an object is constructed)
258 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
259 - attributes => _attributes (now inherited from parent)
260 - meta_instance => _meta_instance (now inherited from parent)
263 - alias_method is deprecated. Use add_method
265 0.73 Fri, March 29, 2009
266 * No changes from 0.72_01.
268 0.72_01 Thu, March 26, 2009
270 - Almost every module has complete API documentation. A few
271 methods (and even whole classes) have been intentionally
272 excluded pending some rethinking of their APIs.
274 * Moose::Util::TypeConstraints
275 - Calling subtype with a name as the only argument is now an
276 exception. If you want an anonymous subtype do:
278 my $subtype = subtype as 'Foo';
280 * Moose::Cookbook::Meta::Recipe7
281 - A new recipe, creating a custom meta-instance class.
283 * Moose::Cookbook::Basics::Recipe5
284 - Fix various typos and mistakes. Includes a patch from Radu
287 * Moose::Cookbook::Basics::Recipe9
288 - Link to this recipe from Moose.pm's builder blurb
291 - When wrapping a function with a prototype, Moose::Exporter now
292 makes sure the wrapped function still has the same
293 prototype. (Daisuke Maki)
295 * Moose::Meta::Attribute
296 - Allow a subclass to set lazy_build for an inherited
300 - Explicitly depend on Data::OptList. We already had this dependency
301 via Sub::Exporter, but since we're using it directly we're
302 better off with it listed. (Sartak)
304 * Moose::Meta::Method::Constructor
305 - Make it easier to subclass the inlining behaviour. (Ash
308 * Moose::Manual::Delta
309 - Details significant changes in the history of Moose, along
310 with recommended workarounds.
312 * Moose::Manual::Contributing
313 - Contributor's guide to Moose.
315 * Moose::Meta::Method::Constructor
316 - The long-deprecated intialize_body method has been removed
317 (yes, spelled like that).
319 * Moose::Meta::Method::Destructor
320 - This is_needed method is now always a class method.
323 - Changes to the internals of how make_immutable works to match
324 changes in latest Class::MOP.
326 0.72 Mon, February 23, 2009
328 * Moose::Meta::Method::Constructor
329 - A mutable class accepted Foo->new(undef) without complaint,
330 while an immutable class would blow up with an unhelpful
331 error. Now, in both cases we throw a helpful error
332 instead. Reported by doy.
334 0.71_01 Sun, February 22, 2009
336 - Hopefully fixed some POD errors in a few recipes that caused
337 them to display weird on search.cpan.org.
339 * Moose::Util::TypeConstraints
340 - Calling type or subtype without the sugar helpers (as, where,
341 message) is now deprecated.
342 - The subtype function tried hard to guess what you meant, but
343 often got it wrong. For example:
345 my $subtype = subtype as 'ArrayRef[Object]';
347 This caused an error in the past, but now works as you'd
351 - Make sure Moose.pm is loaded before calling
352 Moose->throw_error. This wasn't normally an issue, but could
353 bite you in weird cases.
355 0.71 Thu, February 19, 2009
356 * Moose::Cookbook::Basics::Recipe11
357 - A new recipe which demonstrates the use of BUILDARGS and
360 * Moose::Cookbook::Roles::Recipe3
361 - A new recipe, applying a role to an object instance. (Dave
365 - Allow overriding specific keywords from "also" packages. (doy)
368 - Replace hardcoded cookbook tests with Test::Inline to ensure
369 the tests match the actual code in the recipes. (Dave Rolsky)
372 - Working on the above turned up a number of little bugs in the
373 recipe code. (Dave Rolsky)
375 * Moose::Util::TypeConstraints::Optimized
376 - Just use Class::MOP for the optimized ClassName check. (Dave
379 0.70 Sat, February 14, 2009
380 * Moose::Util::TypeConstraints
381 - Added the RoleName type (stevan)
382 - added tests for this (stevan)
384 * Moose::Cookbook::Basics::Recipe3
385 - Updated the before qw[left right] sub to be a little more
386 defensive about what it accepts (stevan)
387 - added more tests to t/000_recipies/basics/003_binary_tree.t
391 - We now always call DEMOLISHALL, even if a class does not
392 define DEMOLISH. This makes sure that method modifiers on
393 DEMOLISHALL work as expected. (doy)
394 - added tests for this (EvanCarroll)
396 * Moose::Util::MetaRole
397 - Accept roles for the wrapped_method_metaclass (rafl)
398 - added tests for this (rafl)
400 * Moose::Meta::Attribute
401 - We no longer pass the meta-attribute object as a final
402 argument to triggers. This actually changed for inlined code a
403 while back, but the non-inlined version and the docs were
407 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
408 they require 0.11. (Dave Rolsky)
411 - Lots of small changes to the manual, cookbook, and
412 elsewhere. These were based on feedback from various
413 users, too many to list here. (Dave Rolsky)
415 0.69 Thu, February 12, 2009
417 - Make some keyword errors use throw_error instead of croak
418 since Moose::Exporter wraps keywords now (Sartak)
421 - Revised every recipe for style and clarity. Also moved some
422 documentation out of cookbook recipes and into Moose::Manual
423 pages. This work was funded as part of the Moose docs grant
424 from TPF. (Dave Rolsky)
426 * Moose::Meta::Method::Delegation
427 - If the attribute doing the delegation was not populated, the
428 error message did not specify the attribute name
431 0.68 Wed, February 4, 2009
433 - Many spelling, typo, and formatting fixes by daxim.
435 * Moose::Manual::Attributes
436 - The NAME section in the POD used "Attribute" so search.cpan
437 didn't resolve links from other documents properly.
439 * Moose::Meta::Method::Overriden
440 - Now properly spelled as Overridden. Thanks to daxim for
443 0.67 Tue, February 3, 2009
445 - Lots of little typo fixes and a few clarifications. Several
446 pages didn't have proper titles, and so weren't actually
447 visible on search.cpan.org. Thanks to hanekomu for a variety
448 of fixes and formatting improvements.
450 0.66 Tue, February 3, 2009
452 - This is a brand new, extensive manual for Moose. This aims to
453 provide a complete introduction to all of Moose's
454 features. This work was funded as part of the Moose docs grant
455 from TPF. (Dave Rolsky)
457 * Moose::Meta::Attribute
458 - Added a delegation_metaclass method to replace a hard-coded
459 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
461 * Moose::Util::TypeConstraints
462 - If you created a subtype and passed a parent that Moose didn't
463 know about, it simply ignored the parent. Now it automatically
464 creates the parent as a class type. This may not be what you
465 want, but is less broken than before. (Dave Rolsky)
467 * Moose::Util::TypeConstraints
468 - This module tried throw errors by calling Moose->throw_error,
469 but it did not ensure that Moose was loaded first. This could
470 cause very unhelpful errors when it tried to throw an error
471 before Moose was loaded. (Dave Rolsky)
473 * Moose::Util::TypeConstraints
474 - You could declare a name with subtype such as "Foo!Bar" that
475 would be allowed, but if you used it in a parameterized type
476 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
477 vetting on names created via the sugar functions, so that they
478 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
480 0.65 Thu, January 22, 2008
481 * Moose and Moose::Meta::Method::Overridden
482 - If an overridden method called super(), and then the
483 superclass's method (not overridden) _also_ called super(),
484 Moose went into an endless recursion loop. Test provided by
485 Chris Prather. (Dave Rolsky)
487 * Moose::Meta::TypeConstraint
488 - All methods are now documented. (gphat)
490 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
491 - Fixed some bogus failures that occurred because we tried to
492 validate filesystem paths in a very ad-hoc and
493 not-quite-correct way. (Dave Rolsky)
495 * Moose::Util::TypeConstraints
496 - Added maybe_type to exports. See docs for details. (rjbs)
499 - Added Moose::Util::TypeConstraints to the SEE ALSO
503 - Methods created via an attribute can now fulfill a "requires"
504 declaration for a role. (nothingmuch)
506 * Moose::Meta::Method::*
507 - Stack traces from inlined code will now report its line and
508 file as being in your class, as opposed to in Moose
511 0.64 Wed, December 31, 2008
512 * Moose::Meta::Method::Accessor
513 - Always inline predicate and clearer methods (Sartak)
515 * Moose::Meta::Attribute
516 - Support for parameterized traits (Sartak)
517 - verify_against_type_constraint method to avoid duplication
518 and enhance extensibility (Sartak)
521 - Tests (but no support yet) for parameterized traits (Sartak)
524 - Require Class::MOP 0.75+, which has the side effect of making
525 sure we work on Win32. (Dave Rolsky)
527 0.63 Mon, December 8, 2008
529 - Some small grammar tweaks and bug fixes in non-Moose example
532 0.62_02 Fri, December 5, 2008
533 * Moose::Meta::Role::Application::ToClass
534 - When a class does not provide all of a role's required
535 methods, the error thrown now mentions all of the missing
536 methods, as opposed to just the first one found. Requested by
537 Curtis Poe (RT #41119). (Dave Rolsky)
539 * Moose::Meta::Method::Constructor
540 - Moose will no longer inline a constructor for your class
541 unless it inherits its constructor from Moose::Object, and
542 will warn when it doesn't inline. If you want to force
543 inlining anyway, pass "replace_constructor => 1" to
544 make_immutable. Addresses RT #40968, reported by Jon
545 Swartz. (Dave Rolsky)
546 - The quoting of default values could be broken if the default
547 contained a single quote ('). Now we use quotemeta to escape
548 anything potentially dangerous in the defaults. (Dave Rolsky)
550 0.62_01 Wed, December 3, 2008
552 - use the method->execute API for BUILDALL
553 and DEMOLISHALL (Sartak)
555 * Moose::Util::TypeConstraints
556 - We now make all the type constraint meta classes immutable
557 before creating the default types provided by Moose. This
558 should make loading Moose a little faster. (Dave Rolsky)
560 0.62 Wed November 26, 2008
561 * Moose::Meta::Role::Application::ToClass
562 Moose::Meta::Role::Application::ToRole
563 - fixed issues where excluding and aliasing the
564 same methods for a single role did not work
565 right (worked just fine with multiple
567 - added test for this (stevan)
569 * Moose::Meta::Role::Application::RoleSummation
570 - fixed the error message when trying to compose
571 a role with a role it excludes (Sartak)
574 - Catch another case where recursion caused the value
575 of $CALLER to be stamped on (t0m)
576 - added test for this (t0m)
579 - Remove the make_immutable keyword, which has been
580 deprecated since April. It breaks metaclasses that
581 use Moose without no Moose (Sartak)
583 * Moose::Meta::Attribute
584 - Removing an attribute from a class now also removes delegation
585 (handles) methods installed for that attribute (t0m)
586 - added test for this (t0m)
588 * Moose::Meta::Method::Constructor
589 - An attribute with a default that looked like a number (but was
590 really a string) would accidentally be treated as a number
591 when the constructor was made immutable (perigrin)
592 - added test for this (perigrin)
595 - create method for constructing a role
597 - added test for this (Sartak)
598 - anonymous roles! (Sartak)
599 - added test for this (Sartak)
602 - more consistent error messages (Sartak)
604 * Moose::Cookbook::Roles::Recipe1
605 - attempt to explain why a role that just requires
606 methods is useful (Sartak)
608 0.61 Fri November 7, 2008
609 * Moose::Meta::Attribute
610 - When passing a role to handles, it will be loaded if necessary
614 - Method objects returned by get_method (and other methods)
615 Could end up being returned without an associated_metaclass
616 attribute. Removing get_method_map, which is provided by
617 Class::MOP::Class, fixed this. The Moose version did nothing
618 different from its parent except introduce a bug. (Dave Rolsky)
619 - added tests for this (jdv79)
622 - Added a $VERSION to all .pm files which didn't have one. Fixes
623 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
625 * Moose::Cookbook::Basics::Recipe4
626 * Moose::Cookbook::Basics::Recipe6
627 - These files had spaces on the first line of the SYNOPSIS, as
628 opposed to a totally empty line. According to RT #40432, this
629 confuses POD parsers. (Dave Rolsky)
631 0.60 Fri October 24, 2008
633 - Passing "-traits" when loading Moose caused the Moose.pm
634 exports to be broken. Reported by t0m. (Dave Rolsky)
635 - Tests for this bug. (t0m)
638 - Change resolve_metaclass alias to use the new
639 load_first_existing_class function. This makes it a lot
640 simpler, and also around 5 times faster. (t0m)
641 - Add caching to resolve_metaclass_alias, which gives an order
642 of magnitude speedup to things which repeatedly call the
643 Moose::Meta::Attribute->does method, notably MooseX::Storage
646 * Moose::Util::TypeConstraint
647 - Put back the changes for parameterized constraints that
648 shouldn't have been removed in 0.59. We still cannot parse
649 them, but MooseX modules can create them in some other
650 way. See the 0.58 changes for more details. (jnapiorkowski)
651 - Changed the way subtypes are created so that the job is
652 delegated to a type constraint parent. This clears up some
653 hardcoded checking and should allow correct subtypes of
654 Moose::Meta::Type::Constraint. Don't rely on this new API too
655 much (create_child_type) because it may go away in the
656 future. (jnapiorkowski)
658 * Moose::Meta::TypeConstraint::Union
659 - Type constraint names are sorted as strings, not numbers.
662 * Moose::Meta::TypeConstraint::Parameterizable
663 - New parameterize method. This can be used as a factory method
664 to make a new type constraint with a given parameterized
665 type. (jnapiorkowski)
666 - added tests (jnapiorkowski)
668 0.59 Tue October 14, 2008
670 - Add abridged documentation for builder/default/initializer/
671 predicate, and link to more details sections in
672 Class::MOP::Attribute. (t0m)
674 * Moose::Util::TypeConstraints
675 - removed prototypes from all but the &-based stuff (mst)
677 * Moose::Util::TypeConstraints
678 - Creating a anonymous subtype with both a constraint and a
679 message failed with a very unhelpful error, but should just
680 work. Reported by t0m. (Dave Rolsky)
683 - Some tests that used Test::Warn if it was available failed
684 with older versions of Test::Warn. Reported by Fayland. (Dave
686 - Test firing behavior of triggers in relation to builder/default/
688 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
689 kinds of supported type. (t0m)
692 - In create(), do not pass "roles" option to the superclass
693 - added related test that creates an anon metaclass with
696 * Moose::Meta::TypeConstraint::Class
697 * Moose::Meta::TypeConstraint::Role
698 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
699 other types (as per change in 0.55_02). (t0m)
701 * Moose::Meta::TypeConstraint::Registry
702 - Fix warning when dealing with unknown type names (t0m)
704 * Moose::Util::TypeConstraints
705 - Reverted changes from 0.58 related to handle parameterized
706 types. This caused random failures on BSD and Win32 systems,
707 apparently related to the regex engine. This means that Moose
708 can no longer parse structured type constraints like
709 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
710 supported in a slightly different way via MooseX::Types some
711 time in the future. (Dave Rolsky)
713 0.58 Sat September 20, 2008
714 !! This release has an incompatible change regarding !!
715 !! how roles add methods to a class !!
717 * Roles and role application
718 ! Roles now add methods by calling add_method, not
719 alias_method. They make sure to always provide a method
720 object, which will be cloned internally. This means that it is
721 now possible to track the source of a method provided by a
722 role, and even follow its history through intermediate roles.
724 This means that methods added by a role now show up when
725 looking at a class's method list/map. (Dave Rolsky)
728 - From this release on, we'll try to maintain a list of
729 conflicting modules, and warn you if you have one
730 installed. For example, this release conflicts with ...
731 - MooseX::Singleton <= 0.11
732 - MooseX::Params::Validate <= 0.05
735 In general, we try to not break backwards compatibility for
736 most Moose users, but MooseX modules and other code which
737 extends Moose's metaclasses is often affected by very small
738 changes in the Moose internals.
740 * Moose::Meta::Method::Delegation
741 * Moose::Meta::Attribute
742 - Delegation methods now have their own method class. (Dave
745 * Moose::Meta::TypeConstraint::Parameterizable
746 - Added a new method 'parameterize' which is basically a factory
747 for the containing constraint. This makes it easier to create
748 new types of parameterized constraints. (jnapiorkowski)
750 * Moose::Meta::TypeConstraint::Union
751 - Changed the way Union types canonicalize their names to follow
752 the normalized TC naming rules, which means we strip all
753 whitespace. (jnapiorkowski)
755 * Moose::Util::TypeConstraints
756 - Parameter and Union args are now sorted, this makes Int|Str
757 the same constraint as Str|Int. (jnapiorkowski)
758 - Changes to the way Union types are parsed to more correctly
759 stringify their names. (jnapiorkowski)
760 - When creating a parameterized type, we now use the new
761 parameterize method. (jnapiorkowski)
762 - Incoming type constraint strings are now normalized to remove
763 all whitespace differences. (jnapiorkowski)
764 - Changed the way we parse type constraint strings so that we now
765 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
766 constraints. This lays the foundation for more flexible type
767 constraint implementations.
769 * Tests and docs for all the above. (jnapiorkowski)
773 - Moose::Exporter will no longer remove a subroutine that the
774 exporting package re-exports. Moose re-exports the
775 Carp::confess function, among others. The reasoning is that we
776 cannot know whether you have also explicitly imported those
777 functions for your own use, so we err on the safe side and
778 always keep them. (Dave Rolsky)
779 - added tests for this (rafl)
782 - Changes to how we fix metaclass compatibility that are much
783 too complicated to go into. The summary is that Moose is much
784 less likely to complain about metaclass incompatibility
785 now. In particular, if two metaclasses differ because
786 Moose::Util::MetaRole was used on the two corresponding
787 classes, then the difference in roles is reconciled for the
788 subclass's metaclass. (Dave Rolsky)
789 - Squashed an warning in _process_attribute (thepler)
792 - throw exceptions (sooner) for invalid attribute names (thepler)
793 - added tests for this (thepler)
795 * Moose::Util::MetaRole
796 - If you explicitly set a constructor or destructor class for a
797 metaclass object, and then applied roles to the metaclass,
798 that explicitly set class would be lost and replaced with the
802 * Moose::Meta::Attribute
803 * Moose::Meta::Method
806 * Moose::Error::Default
807 * Moose::Error::Croak
808 * Moose::Error::Confess
809 - All instances of confess() changed to use overridable
810 C<throw_error> method. This method ultimately calls a class
811 constructor, and you can change the class being called. In
812 addition, errors now pass more information than just a string.
813 The default C<error_class> behaves like C<Carp::confess>, so
814 the behavior is not visibly different for end users.
816 0.57 Wed September 3, 2008
818 - A new bit of doc intended to introduce folks familiar with
819 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
822 - Shows examples of two classes, each done first with and then
823 without Moose. This makes a nice parallel to
824 Moose::Intro. (Dave Rolsky)
826 * Moose::Util::TypeConstraints
827 - Fixed a bug in find_or_parse_type_constraint so that it
828 accepts a Moose::Meta::TypeConstraint object as the parent
829 type, not just a name (jnapiorkowski)
830 - added tests (jnapiorkowski)
833 - If Sub::Name was not present, unimporting failed to actually
834 remove some sugar subs, causing test failures (Dave Rolsky)
836 0.56 Mon September 1, 2008
837 For those not following the series of dev releases, there are
838 several major changes in this release of Moose.
839 ! Moose::init_meta should now be called as a method. See the
842 - Major performance improvements by nothingmuch.
844 - New modules for extension writers, Moose::Exporter and
845 Moose::Util::MetaRole by Dave Rolsky.
847 - Lots of doc improvements and additions, especially in the
852 * Removed all references to the experimental-but-no-longer-needed
853 Moose::Meta::Role::Application::ToMetaclassInstance.
855 * Require Class::MOP 0.65.
857 0.55_04 Sat August 30, 2008
858 * Moose::Util::MetaRole
859 * Moose::Cookbook::Extending::Recipe2
860 - This simplifies the application of roles to any meta class, as
861 well as the base object class. Reimplemented metaclass traits
862 using this module. (Dave Rolsky)
864 * Moose::Cookbook::Extending::Recipe1
865 - This a new recipe, an overview of various ways to write Moose
866 extensions (Dave Rolsky)
868 * Moose::Cookbook::Extending::Recipe3
869 * Moose::Cookbook::Extending::Recipe4
870 - These used to be Extending::Recipe1 and Extending::Recipe2,
873 0.55_03 Fri August 29, 2008
874 * No changes from 0.55_02 except increasing the Class::MOP
875 dependency to 0.64_07.
877 0.55_02 Fri August 29, 2008
878 * Makefile.PL and Moose.pm
879 - explicitly require Perl 5.8.0+ (Dave Rolsky)
881 * Moose::Util::TypeConstraints
882 - Fix warnings from find_type_constraint if the type is not
885 * Moose::Meta::TypeConstraint
886 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
887 return false if the type you specify cannot be found in the
888 type registry, rather than throwing an unhelpful and
889 coincidental exception. (t0m).
890 - added docs & test for this (t0m)
892 * Moose::Meta::TypeConstraint::Registry
893 - add_type_constraint now throws an exception if a parameter is
895 - added docs & test for this (t0m)
897 * Moose::Cookbook::FAQ
898 - Added a faq entry on the difference between "role" and "trait"
902 - Fixed a bug that caused role composition to not see a required
903 method when that method was provided by another role being
904 composed at the same time. (Dave Rolsky)
905 - test and bug finding (tokuhirom)
907 0.55_01 Wed August 20, 2008
909 !! Calling Moose::init_meta as a function is now !!
910 !! deprecated. Please see the Moose.pm docs for details. !!
912 * Moose::Meta::Method::Constructor
913 - Fix inlined constructor so that values produced by default
914 or builder methods are coerced as required. (t0m)
915 - added test for this (t0m)
917 * Moose::Meta::Attribute
918 - A lazy attribute with a default or builder did not attempt to
919 coerce the default value. The immutable code _did_
921 - added test for this (t0m)
924 - This is a new helper module for writing "Moose-alike"
925 modules. This should make the lives of MooseX module authors
926 much easier. (Dave Rolsky)
929 * Moose::Cookbook::Meta::Recipe5
930 - Implemented metaclass traits (and wrote a recipe for it):
932 use Moose -traits => 'Foo'
934 This should make writing small Moose extensions a little
937 * Moose::Cookbook::Basics::Recipe1
938 - Removed any examples of direct hashref access, and applied an
939 editorial axe to reduce verbosity. (Dave Rolsky)
941 * Moose::Cookbook::Basics::Recipe1
942 - Also applied an editorial axe here. (Dave Rolsky)
945 * Moose::Cookbook::Extending::Recipe1
946 * Moose::Cookbook::Extending::Recipe2
947 - Rewrote extending and embedding moose documentation and
948 recipes to use Moose::Exporter (Dave Rolsky)
952 - These two modules now warn when you load them from the main
953 package "main" package, because we will not export sugar to
954 main. Previously it just did nothing. (Dave Rolsky)
957 - Now provide an init_meta method just like Moose.pm, and you
958 can call this to provide an alternate role metaclass. (Dave
959 Rolsky and nothingmuch)
960 - get_method_map now respects the package cache flag (nothingmuch)
963 - Two new methods - add_method and wrap_method_body
967 - Optimizations including allowing constructors to accept hash
968 refs, making many more classes immutable, and making
969 constructors immutable. (nothingmuch)
971 0.55 Sun August 3, 2008
972 * Moose::Meta::Attribute
973 - breaking down the way 'handles' methods are
974 created so that the process can be more easily
975 overridden by subclasses (stevan)
977 * Moose::Meta::TypeConstraint
978 - fixing what is passed into a ->message with
979 the type constraints (RT #37569)
980 - added tests for this (Charles Alderman)
982 * Moose::Util::TypeConstraints
983 - fix coerce to accept anon types like subtype can (mst)
986 - reorganized the recipes into sections - Basics, Roles, Meta,
987 Extending - and wrote abstracts for each section (Dave Rolsky)
989 * Moose::Cookbook::Basics::Recipe10
990 - A new recipe that demonstrates operator overloading
991 in combination with Moose. (bluefeet)
993 * Moose::Cookbook::Meta::Recipe1
994 - an introduction to what meta is and why you'd want to make
995 your own metaclass extensions (Dave Rolsky)
997 * Moose::Cookbook::Meta::Recipe4
998 - a very simple metaclass example (Dave Rolsky)
1000 * Moose::Cookbook::Extending::Recipe1
1001 - how to write a Moose-alike module to use your own object base
1004 * Moose::Cookbook::Extending::Recipe2
1005 - how to write modules with an API just like C<Moose.pm> (Dave
1009 - Tons of fixes, both syntactical and grammatical (Dave
1010 Rolsky, Paul Fenwick)
1012 0.54 Thurs. July 3, 2008
1013 ... this is not my day today ...
1015 * Moose::Meta::Attribute
1016 - fixed legal_options_for_inheritance such that
1017 clone_and_inherit options still works for
1018 Class::MOP::Attribute objects and therefore
1019 does not break MooseX::AttributeHelpers
1022 0.53 Thurs. July 3, 2008
1023 * Whoops, I guess I should run 'make manifest' before
1024 actually releasing the module. No actual changes
1025 in this release, except the fact that it includes
1026 the changes that I didn't include in the last
1029 0.52 Thurs. July 3, 2008
1031 - added "FEATURE REQUESTS" section to the Moose docs
1032 to properly direct people (stevan) (RT #34333)
1033 - making 'extends' croak if it is passed a Role since
1034 this is not ever something you want to do
1035 (fixed by stevan, found by obra)
1036 - added tests for this (stevan)
1039 - adding support for DOES (as in UNIVERSAL::DOES)
1041 - added test for this
1043 * Moose::Meta::Attribute
1044 - added legal_options_for_inheritance (wreis)
1045 - added tests for this (wreis)
1047 * Moose::Cookbook::Snacks::*
1048 - removed some of the unfinished snacks that should
1049 not have been released yet. Added some more examples
1050 to the 'Keywords' snack. (stevan)
1052 * Moose::Cookbook::Style
1053 - added general Moose "style guide" of sorts to the
1054 cookbook (nothingmuch) (RT #34335)
1057 - added more BUILDARGS tests (stevan)
1059 0.51 Thurs. Jun 26, 2008
1061 - add unimport so "no Moose::Role" actually does
1064 * Moose::Meta::Role::Application::ToRole
1065 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1066 order to provide its own implementation, that method still got
1067 added to the list of required methods for consumers of
1068 RoleB. Now an aliased method is only added to the list of
1069 required methods if the role doing the aliasing does not
1070 provide its own implementation. See Recipe 11 for an example
1071 of all this. (Dave Rolsky)
1072 - added tests for this
1074 * Moose::Meta::Method::Constructor
1075 - when a single argument that wasn't a hashref was provided to
1076 an immutabilized constructor, the error message was very
1077 unhelpful, as opposed to the non-immutable error. Reported by
1079 - added test for this (Dave Rolsky)
1081 * Moose::Meta::Attribute
1082 - added support for meta_attr->does("ShortAlias") (sartak)
1083 - added tests for this (sartak)
1084 - moved the bulk of the `handles` handling to the new
1085 install_delegation method (Stevan)
1088 - Added BUILDARGS, a new step in new()
1090 * Moose::Meta::Role::Application::RoleSummation
1091 - fix typos no one ever sees (sartak)
1093 * Moose::Util::TypeConstraints
1094 * Moose::Meta::TypeConstraint
1095 * Moose::Meta::TypeCoercion
1096 - Attempt to work around the ??{ } vs. threads issue
1098 - Some null_constraint optimizations
1100 0.50 Thurs. Jun 11, 2008
1101 - Fixed a version number issue by bumping all modules
1104 0.49 Thurs. Jun 11, 2008
1105 !! This version now approx. 20-25% !!
1106 !! faster with new Class::MOP 0.59 !!
1108 * Moose::Meta::Attribute
1109 - fixed how the is => (ro|rw) works with
1110 custom defined reader, writer and accessor
1112 - added docs for this (TODO).
1113 - added tests for this (Thanks to Penfold)
1114 - added the custom attribute alias for regular
1115 Moose attributes which is "Moose"
1116 - fix builder and default both being used
1121 Moose::Meta::Attribute
1123 Moose::Meta::Role::Composite
1124 Moose::Util::TypeConstraints
1125 - switched usage of reftype to ref because
1129 - changing add_package_symbol to use the new
1133 - fixed how DEMOLISHALL is called so that it
1134 can be overrided in subclasses (thanks to Sartak)
1135 - added test for this (thanks to Sartak)
1137 * Moose::Util::TypeConstraints
1138 - move the ClassName type check code to
1139 Class::MOP::is_class_loaded (thanks to Sartak)
1141 * Moose::Cookbook::Recipe11
1142 - add tests for this (thanks to tokuhirom)
1144 0.48 Thurs. May 29, 2008
1145 (early morning release engineering)--
1147 - fixing the version in Moose::Meta::Method::Destructor
1148 which was causing the indexer to choke
1150 0.47 Thurs. May 29, 2008
1151 (late night release engineering)--
1153 - fixing the version is META.yml, no functional
1154 changes in this release
1156 0.46 Wed. May 28, 2008
1157 !! This version now approx. 20-25% !!
1158 !! faster with new Class::MOP 0.57 !!
1160 * Moose::Meta::Class
1161 - some optimizations of the &initialize method
1162 since it is called so often by &meta
1164 * Moose::Meta::Class
1166 - now use the get_all_package_symbols from the
1167 updated Class::MOP, test suite is now 10 seconds
1170 * Moose::Meta::Method::Destructor
1171 - is_needed can now also be called as a class
1172 method for immutablization to check if the
1173 destructor object even needs to be created
1176 * Moose::Meta::Method::Destructor
1177 Moose::Meta::Method::Constructor
1178 - added more descriptive error message to help
1179 keep people from wasting time tracking an error
1180 that is easily fixed by upgrading.
1182 0.45 Saturday, May 24, 2008
1184 - Because of work in Class::MOP 0.57, all
1185 XS based functionality is now optional
1186 and a Pure Perl version is supplied
1187 - the CLASS_MOP_NO_XS environment variable
1188 can now be used to force non-XS versions
1190 - several of the packages have been tweaked
1191 to take care of this, mostly we added
1192 support for the package_name and name
1193 variables in all the Method metaclasses
1194 - before/around/after method modifiers now
1195 support regexp matching of names
1196 (thanks to Takatoshi Kitano)
1197 - tests added for this
1198 - NOTE: this only works for classes, it
1199 is currently not supported in roles,
1200 but, ... patches welcome
1201 - All usage of Carp::confess have been replaced
1202 by Carp::croak in the "keyword" functions since
1203 the stack trace is usually not helpful
1206 - All usage of Carp::confess have been replaced
1207 by Carp::croak in the "keyword" functions since
1208 the stack trace is usually not helpful
1209 - The 'has' keyword for roles now accepts the
1210 same array ref form that Moose.pm does
1211 (has [qw/foo bar/] => (is => 'rw', ...))
1212 - added test for this
1214 * Moose::Meta::Attribute
1215 - trigger on a ro-attribute is no longer an
1216 error, as it's useful to trigger off of the
1219 * Moose::Meta::Class
1220 - added same 'add_package_symbol' fix as in
1224 - does_role now handles non-Moose classes
1226 - added tests for this
1227 - added the 'add_method_modifier' function
1228 (thanks to Takatoshi Kitano)
1230 * Moose::Util::TypeConstraints
1231 - subtypes of parameterizable types now are
1232 themselves parameterizable types
1234 * Moose::Meta::Method::Constructor
1235 - fixed bug where trigger was not being
1236 called by the inlined immutable
1238 - added test for this (thanks to Caelum)
1240 * Moose::Meta::Role::Application::ToInstance
1241 - now uses the metaclass of the instance
1242 (if possible) to create the anon-class
1243 (thanks Jonathan Rockway)
1245 * Moose::Cookbook::Recipe22
1246 - added the meta-attribute trait recipe
1250 - fixed hash-ordering test bug that was
1251 causing occasional cpantester failures
1252 - renamed the t/000_recipe/*.t tests to be
1253 more descriptive (thanks to Sartak)
1255 0.44 Sat. May 10, 2008
1257 - made make_immutable warning cluck to
1258 show where the error is (thanks mst)
1261 - BUILDALL and DEMOLISHALL now call
1262 ->body when looping through the
1263 methods, to avoid the overloaded
1265 - fixed issue where DEMOLISHALL was
1266 eating the $@ values, and so not
1267 working correctly, it still kind of
1268 eats them, but so does vanilla perl
1269 - added tests for this
1271 * Moose::Cookbook::Recipe7
1272 - added new recipe for immutable
1273 functionality (thanks Dave Rolsky)
1275 * Moose::Cookbook::Recipe9
1276 - added new recipe for builder and
1277 lazy_build (thanks Dave Rolsky)
1279 * Moose::Cookbook::Recipe11
1280 - added new recipe for method aliasing
1281 and exclusion with Roles (thanks Dave Rolsky)
1284 - fixed Win32 test failure (thanks spicyjack)
1286 ~ removed Build.PL and Module::Build compat
1287 since Module::Install has done that.
1289 0.43 Wed. April, 30, 2008
1291 drink more coffee before
1292 doing release engineering
1294 - whoops, forgot to do the smolder tests,
1295 and we broke some of the custom meta-attr
1296 modules. This fixes that.
1298 0.42 Mon. April 28, 2008
1299 - some bad tests slipped by, nothing else
1300 changed in this release (cpantesters++)
1302 - upped the Class::MOP dependency to 0.55
1303 since we have tests which need the C3
1306 0.41 Mon. April 28, 2008
1307 ~~ numerous documentation updates ~~
1309 - Changed all usage of die to Carp::croak for better
1310 error reporting (initial patch by Tod Hagan)
1312 ** IMPORTANT NOTE **
1313 - the make_immutable keyword is now deprecated, don't
1314 use it in any new code and please fix your old code
1315 as well. There will be 2 releases, and then it will
1321 - refactored the way inner and super work to avoid
1322 any method/@ISA cache penalty (nothingmuch)
1324 * Moose::Meta::Class
1325 - fixing &new_object to make sure trigger gets the
1326 coerced value (spotted by Charles Alderman on the
1328 - added test for this
1330 * Moose::Meta::Method::Constructor
1331 - immutable classes which had non-lazy attributes were calling
1332 the default generating sub twice in the constructor. (bug
1333 found by Jesse Luehrs, fixed by Dave Rolsky)
1334 - added tests for this (Dave Rolsky)
1335 - fix typo in initialize_body method (nothingmuch)
1337 * Moose::Meta::Method::Destructor
1338 - fix typo in initialize_body method (nothingmuch)
1340 * Moose::Meta::Method::Overriden
1341 Moose::Meta::Method::Augmented
1342 - moved the logic for these into their own
1343 classes (nothingmuch)
1345 * Moose::Meta::Attribute
1346 - inherited attributes may now be extended without
1347 restriction on the type ('isa', 'does') (Sartak)
1348 - added tests for this (Sartak)
1349 - when an attribute property is malformed (such as lazy without
1350 a default), give the name of the attribute in the error
1352 - added the &applied_traits and &has_applied_traits methods
1353 to allow introspection of traits
1354 - added tests for this
1355 - moved 'trait' and 'metaclass' argument handling to here from
1357 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1358 '+foo' syntax) (nothingmuch)
1359 - added tests for this (t0m)
1362 - localize $@ inside DEMOLISHALL to avoid it
1363 eating $@ (found by Ernesto)
1364 - added test for this (thanks to Ernesto)
1366 * Moose::Util::TypeConstraints
1367 - &find_type_constraint now DWIMs when given an
1368 type constraint object or name (nothingmuch)
1369 - &find_or_create_type_constraint superseded with a number of more
1371 - find_or_create_{isa,does}_type_constraint
1372 - find_or_parse_type_constraint
1374 * Moose::Meta::TypeConstraint
1375 Moose::Meta::TypeConstraint::Class
1376 Moose::Meta::TypeConstraint::Role
1377 Moose::Meta::TypeConstraint::Enum
1378 Moose::Meta::TypeConstraint::Union
1379 Moose::Meta::TypeConstraint::Parameterized
1380 - added the &equals method for comparing two type
1381 constraints (nothingmuch)
1382 - added tests for this (nothingmuch)
1384 * Moose::Meta::TypeConstraint
1385 - add the &parents method, which is just an alias to &parent.
1386 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1388 * Moose::Meta::TypeConstraint::Class
1389 - added the class attribute for introspection purposes
1391 - added tests for this
1393 * Moose::Meta::TypeConstraint::Enum
1394 Moose::Meta::TypeConstraint::Role
1395 - broke these out into their own classes (nothingmuch)
1397 * Moose::Cookbook::Recipe*
1398 - fixed references to test file locations in the POD
1399 and updated up some text for new Moose features
1403 - Added &resolve_metaclass_alias, a helper function for finding an actual
1404 class for a short name (e.g. in the traits list)
1406 0.40 Fri. March 14, 2008
1407 - I hate Pod::Coverage
1409 0.39 Fri. March 14, 2008
1411 - documenting the use of '+name' with attributes
1412 that come from recently composed roles. It makes
1413 sense, people are using it, and so why not just
1414 officially support it.
1415 - fixing the 'extends' keyword so that it will not
1416 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1419 - added the perl -Moose=+Class::Name feature to allow
1420 monkeypatching of classes in one liners
1423 - fixing the 'apply_all_roles' keyword so that it will not
1424 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1426 * Moose::Meta::Class
1427 - added ->create method which now supports roles (thanks to jrockway)
1428 - added tests for this
1429 - added ->create_anon_class which now supports roles and caching of
1430 the results (thanks to jrockway)
1431 - added tests for this
1432 - made ->does_role a little more forgiving when it is
1433 checking a Class::MOP era metaclasses.
1435 * Moose::Meta::Role::Application::ToInstance
1436 - it is now possible to pass extra params to be used when
1437 a role is applied to an the instance (rebless_params)
1438 - added tests for this
1440 * Moose::Util::TypeConstraints
1441 - class_type now accepts an optional second argument for a
1442 custom message. POD anotated accordingly (groditi)
1443 - added tests for this
1444 - it is now possible to make anon-enums by passing 'enum' an
1445 ARRAY ref instead of the $name => @values. Everything else
1447 - added tests for this
1450 - making test for using '+name' on attributes consumed
1451 from a role, it works and makes sense too.
1453 * Moose::Meta::Attribute
1454 - fix handles so that it doesn't return nothing
1455 when the method cannot be found, not sure why
1456 it ever did this originally, this means we now
1457 have slightly better support for AUTOLOADed
1459 - added more delegation tests
1460 - adding ->does method to this so as to better
1461 support traits and their introspection.
1462 - added tests for this
1465 - localizing the Data::Dumper configurations so
1466 that it does not pollute others (RT #33509)
1467 - made ->does a little more forgiving when it is
1468 passed Class::MOP era metaclasses.
1470 0.38 Fri. Feb. 15, 2008
1471 * Moose::Meta::Attribute
1472 - fixed initializer to correctly do
1473 type checking and coercion in the
1475 - added tests for this
1478 - fixed some finicky tests (thanks to konobi)
1480 0.37 Thurs. Feb. 14, 2008
1482 - fixed some details in Moose::init_meta
1483 and its superclass handling (thanks thepler)
1484 - added tests for this (thanks thepler)
1485 - 'has' now dies if you don't pass in name
1487 - added the 'make_immutable' keyword as a shortcut
1490 * Moose::Meta::Class
1491 Moose::Meta::Method::Constructor
1492 Moose::Meta::Attribute
1493 - making (init_arg => undef) work here too
1494 (thanks to nothingmuch)
1496 * Moose::Meta::Attribute
1497 Moose::Meta::Method::Constructor
1498 Moose::Meta::Method::Accessor
1499 - make lazy attributes respect attr initializers (rjbs)
1500 - added tests for this
1502 * Moose::Util::TypeConstraints
1503 Moose::Util::TypeConstraints::OptimizedConstraints
1504 Moose::Meta::TypeConstraints
1505 Moose::Meta::Attribute
1506 Moose::Meta::Method::Constructor
1507 Moose::Meta::Method::Accessor
1508 - making type errors use the
1509 assigned message (thanks to Sartak)
1510 - added tests for this
1512 * Moose::Meta::Method::Destructor
1513 - making sure DESTROY gets inlined properly
1514 with successive DEMOLISH calls (thanks to manito)
1516 * Moose::Meta::Attribute
1517 Moose::Meta::Method::Accessor
1518 - fixed handling of undef with type constraints
1520 - added tests for this
1523 - added &get_all_init_args and &get_all_attribute_values
1524 (thanks to Sartak and nothingmuch)
1526 0.36 Sat. Jan. 26, 2008
1528 Moose::Meta::Attribute
1529 - role type tests now support when roles are
1530 applied to non-Moose classes (found by ash)
1531 - added tests for this (thanks to ash)
1532 - couple extra tests to boost code coverage
1534 * Moose::Meta::Method::Constructor
1535 - improved fix for handling Class::MOP attributes
1536 - added test for this
1538 * Moose::Meta::Class
1539 - handled the add_attribute($attribute_meta_object)
1541 - added test for this
1543 0.35 Tues. Jan. 22, 2008
1544 * Moose::Meta::Method::Constructor
1545 - fix to make sure even Class::MOP attributes
1546 are handled correctly (Thanks to Dave Rolsky)
1547 - added test for this (also Dave Rolsky)
1549 * Moose::Meta::Class
1550 - improved error message on _apply_all_roles,
1551 you should now use Moose::Util::apply_all_roles
1552 and you shouldnt have been using a _ prefixed
1553 method in the first place ;)
1555 0.34 Mon. Jan. 21, 2008
1556 ~~~ more misc. doc. fixes ~~~
1557 ~~ updated copyright dates ~~
1559 Moose is now a postmodern object system :)
1560 - (see the POD for details)
1562 * <<Role System Refactoring>>
1563 - this release contains a major reworking and
1564 cleanup of the role system
1565 - 100% backwards compat.
1566 - Role application now restructured into seperate
1567 classes based on type of applicants
1568 - Role summation (combining of more than one role)
1569 is much cleaner and anon-classes are no longer
1570 used in this process
1571 - new Composite role metaclass
1572 - runtime application of roles to instances
1573 is now more efficient and re-uses generated
1574 classes when applicable
1576 * <<New Role composition features>>
1577 - methods can now be excluded from a given role
1579 - methods can now be aliased to another name (and
1580 still retain the original as well)
1582 * Moose::Util::TypeConstraints::OptimizedConstraints
1583 - added this module (see above)
1585 * Moose::Meta::Class
1586 - fixed the &_process_attribute method to be called
1587 by &add_attribute, so that the API is now correct
1589 * Moose::Meta::Method::Accessor
1590 - fixed bug when passing a list of values to
1591 an accessor would get (incorrectly) ignored.
1592 Thanks to Sartak for finding this ;)
1593 - added tests for this (Sartak again)
1595 * Moose::Meta::Method::Accessor
1596 Moose::Meta::Method::Constructor
1597 Moose::Meta::Attribute
1598 Moose::Meta::TypeConstraint
1599 Moose::Meta::TypeCoercion
1600 - lots of cleanup of such things as:
1602 - type constraint handling
1603 - error handling/messages
1604 (thanks to nothingmuch)
1606 * Moose::Meta::TypeConstraint::Parameterizable
1607 - added this module to support the refactor
1608 in Moose::Meta::TypeConstraint::Parameterized
1610 * Moose::Meta::TypeConstraint::Parameterized
1611 - refactored how these types are handled so they
1612 are more generic and not confined to ArrayRef
1616 - shortened some file names for better VMS support (RT #32381)
1618 0.33 Fri. Dec. 14, 2007
1619 !! Moose now loads 2 x faster !!
1620 !! with new Class::MOP 0.49 !!
1622 ++ new oose.pm module to make command line
1623 Moose-ness easier (see POD docs for more)
1625 * Moose::Meta::Class
1627 - several tweaks to take advantage of the
1628 new method map caching in Class::MOP
1630 * Moose::Meta::TypeConstraint::Parameterized
1631 - allow subtypes of ArrayRef and HashRef to
1632 be used as a container (sartak)
1633 - added tests for this
1634 - basic support for coercion to ArrayRef and
1635 HashRef for containers (sartak)
1636 - added tests for this
1638 * Moose::Meta::TypeCoercion
1639 - coercions will now create subtypes as needed
1640 so you can now add coercions to parameterized
1641 types without having to explictly define them
1642 - added tests for this
1644 * Moose::Meta::Method::Accessor
1645 - allow subclasses to decide whether we need
1646 to copy the value into a new variable (sartak)
1648 0.32 Tues. Dec. 4, 2007
1649 * Moose::Util::TypeConstraints
1650 - fixing how subtype aliases of unions work
1651 they should inherit the parent's coercion
1652 - added tests for this
1653 - you can now define multiple coercions on
1654 a single type at different times instead of
1655 having to do it all in one place
1656 - added tests for this
1658 * Moose::Meta::TypeConstraint
1659 - there is now a default constraint of sub { 1 }
1660 instead of Moose::Util::TypeConstraints setting
1663 * Moose::Meta::TypeCoercion
1664 * Moose::Meta::TypeCoercion::Union
1665 - added the &has_coercion_for_type and
1666 &add_type_coercions methods to support the
1667 new features above (although you cannot add
1668 more type coercions for Union types)
1670 0.31 Mon. Nov. 26, 2007
1671 * Moose::Meta::Attribute
1672 - made the +attr syntax handle extending types with
1673 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1674 now works if the original foo is an ArrayRef.
1675 - added tests for this.
1676 - delegation now works even if the attribute does not
1677 have a reader method using the get_read_method_ref
1678 method from Class::MOP::Attribute.
1679 - added tests for this
1680 - added docs for this
1682 * Moose::Util::TypeConstraints
1683 - passing no "additional attribute info" to
1684 &find_or_create_type_constraint will no longer
1685 attempt to create an __ANON__ type for you,
1686 instead it will just return undef.
1687 - added docs for this
1689 0.30 Fri. Nov. 23, 2007
1690 * Moose::Meta::Method::Constructor
1691 -builder related bug in inlined constructor. (groditi)
1693 * Moose::Meta::Method::Accessor
1694 - genereate unnecessary calls to predicates and refactor
1695 code generation for runtime speed (groditi)
1697 * Moose::Util::TypeConstraints
1698 - fix ClassName constraint to introspect symbol table (mst)
1699 - added more tests for this (mst)
1700 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1701 with work correctly.
1702 - added tests for this
1705 - adding the link to Recipie 11 (written by Sartak)
1706 - adding test for SYNOPSIS code
1709 - New tests for builder bug. Upon instantiation, if an
1710 attribute had a builder, no value and was not lazy the
1711 builder default was not getting run, oops. (groditi)
1713 0.29 Tues. Nov. 13, 2007
1714 * Moose::Meta::Attribute
1715 - Fix error message on missing builder method (groditi)
1717 * Moose::Meta::Method::Accessor
1718 - Fix error message on missing builder method (groditi)
1721 - Add test to check for the correct error message when
1722 builder method is missing (groditi)
1724 0.28 Tues. Nov. 13, 2007
1725 - 0.27 packaged incorrectly (groditi)
1727 0.27 Tues. Nov. 13, 2007
1728 * Moose::Meta::Attribute
1729 - Added support for the new builder option (groditi)
1730 - Added support for lazy_build option (groditi)
1731 - Changed slot initialization for predicate changes (groditi)
1733 * Moose::Meta::Method::Accessor
1734 - Added support for lazy_build option (groditi)
1735 - Fix inline methods to work with corrected predicate
1738 * Moose::Meta::Method::Constructor
1739 - Added support for lazy_build option (groditi)
1742 - tests for builder and lazy_build (groditi)
1744 * fixing some misc. bits in the docs that
1745 got mentioned on CPAN Forum & perlmonks
1748 - fixed how required methods are handled
1749 when they encounter overriden or modified
1750 methods from a class (thanks to confound).
1751 - added tests for this
1753 * Moose::Util::TypeConstraint
1754 - fixed the type notation parser so that
1755 the | always creates a union and so is
1756 no longer a valid type char (thanks to
1757 konobi, mugwump and #moose for working
1759 - added more tests for this
1761 0.26 Thurs. Sept. 27, 2007
1764 * Parameterized Types
1765 We now support parameterized collection types, such as:
1766 ArrayRef[Int] # array or integers
1767 HashRef[Object] # a hash with object values
1768 They can also be nested:
1769 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1770 And work with the type unions as well:
1771 ArrayRef[Int | Str] # array of integers of strings
1773 * Better Framework Extendability
1774 Moose.pm is now "extendable" such that it is now much
1775 easier to extend the framework and add your own keywords
1776 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1777 section of the Moose.pm docs.
1780 In an effort to begin documenting some of the various
1781 details of Moose as well as some common idioms, we have
1782 created Moose::Cookbook::Snacks as a place to find
1783 small (easily digestable) nuggets of Moose code.
1786 ~ Several doc updates/cleanup thanks to castaway ~
1788 - converted build system to use Module::Install instead of
1789 Module::Build (thanks to jrockway)
1792 - added all the meta classes to the immutable list and
1793 set it to inline the accessors
1794 - fix import to allow Sub::Exporter like { into => }
1795 and { into_level => } (perigrin)
1796 - exposed and documented init_meta() to allow better
1797 embedding and extending of Moose (perigrin)
1800 - complete re-organization of the test suite
1801 - added some new tests as well
1802 - finally re-enabled the Moose::POOP test since
1803 the new version of DBM::Deep now works again
1806 * Moose::Meta::Class
1807 - fixed very odd and very nasty recursion bug with
1809 - added tests for this (eilara)
1811 * Moose::Meta::Attribute
1812 Moose::Meta::Method::Constructor
1813 Moose::Meta::Method::Accessor
1814 - fixed issue with overload::Overloaded getting called
1815 on non-blessed items. (RT #29269)
1816 - added tests for this
1818 * Moose::Meta::Method::Accessor
1819 - fixed issue with generated accessor code making
1820 assumptions about hash based classes (thanks to dexter)
1822 * Moose::Coookbook::Snacks
1823 - these are bits of documentation, not quite as big as
1824 Recipes but which have no clear place in the module docs.
1825 So they are Snacks! (horray for castaway++)
1827 * Moose::Cookbook::Recipe4
1828 - updated it to use the new ArrayRef[MyType] construct
1829 - updated the accompanying test as well
1831 +++ Major Refactor of the Type Constraint system +++
1832 +++ with new features added as well +++
1834 * Moose::Util::TypeConstraint
1835 - no longer uses package variable to keep track of
1836 the type constraints, now uses the an instance of
1837 Moose::Meta::TypeConstraint::Registry to do it
1838 - added more sophisticated type notation parsing
1840 - added tests for this
1842 * Moose::Meta::TypeConstraint
1843 - some minor adjustments to make subclassing easier
1844 - added the package_defined_in attribute so that we
1845 can track where the type constraints are created
1847 * Moose::Meta::TypeConstraint::Union
1848 - this is now been refactored to be a subclass of
1849 Moose::Meta::TypeConstraint
1851 * Moose::Meta::TypeCoercion::Union
1852 - this has been added to service the newly refactored
1853 Moose::Meta::TypeConstraint::Union and is itself
1854 a subclass of Moose::Meta::TypeCoercion
1856 * Moose::Meta::TypeConstraint::Parameterized
1857 - added this module (taken from MooseX::AttributeHelpers)
1858 to help construct nested collection types
1859 - added tests for this
1861 * Moose::Meta::TypeConstraint::Registry
1862 - added this class to keep track of type constraints
1864 0.25 Mon. Aug. 13, 2007
1866 - Documentation update to reference Moose::Util::TypeConstraints
1867 under 'isa' in 'has' for how to define a new type
1868 (thanks to shlomif).
1870 * Moose::Meta::Attribute
1871 - required attributes now will no longer accept undef
1872 from the constructor, even if there is a default and lazy
1873 - added tests for this
1874 - default subroutines must return a value which passes the
1876 - added tests for this
1878 * Moose::Meta::Attribute
1879 * Moose::Meta::Method::Constructor
1880 * Moose::Meta::Method::Accessor
1881 - type-constraint tests now handle overloaded objects correctly
1882 in the error message
1883 - added tests for this (thanks to EvanCarroll)
1885 * Moose::Meta::TypeConstraint::Union
1886 - added (has_)hand_optimized_constraint to this class so that
1887 it behaves as the regular Moose::Meta::TypeConstraint does.
1890 - large refactoring of this code
1891 - added several more tests
1892 - tests for subtle conflict resolition issues
1893 added, but not currently running
1896 * Moose::Cookbook::Recipe7
1897 - added new recipe for augment/inner functionality
1899 - added test for this
1902 - a formal definition of roles (still in progress)
1905 - utilities for easier working with Moose classes
1906 - added tests for these
1909 - This contains Moose specific test functions
1910 - added tests for these
1912 0.24 Tues. July 3, 2007
1913 ~ Some doc updates/cleanup ~
1915 * Moose::Meta::Attribute
1916 - added support for roles to be given as parameters
1917 to the 'handles' option.
1918 - added tests and docs for this
1919 - the has '+foo' attribute form now accepts changes to
1920 the lazy option, and the addition of a handles option
1921 (but not changing the handles option)
1922 - added tests and docs for this
1925 - required methods are now fetched using find_method_by_name
1926 so that required methods can come from superclasses
1927 - adjusted tests for this
1929 0.23 Mon. June 18, 2007
1930 * Moose::Meta::Method::Constructor
1931 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1932 * Moose::Meta::Class
1933 - Modify make_immutable to work with the new Class::MOP immutable
1934 mechanism + POD + very basic test (groditi)
1935 * Moose::Meta::Attribute
1936 - Fix handles to use goto() so that caller() comes out properly on
1937 the other side (perigrin)
1939 0.22 Thurs. May 31, 2007
1940 * Moose::Util::TypeConstraints
1941 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1942 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1943 prototypes for functions
1944 - added the ClassName type constraint, this checks for strings
1945 which will respond true to ->isa(UNIVERSAL).
1946 - added tests and docs for this
1947 - subtyping just in name now works correctly by making the
1948 default for where be { 1 }
1949 - added test for this
1951 * Moose::Meta::Method::Accessor
1952 - coerce and lazy now work together correctly, thanks to
1953 merlyn for finding this bug
1954 - tests added for this
1955 - fix reader presedence bug in Moose::Meta::Attribute + tests
1958 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1959 a HASH-ref and missed. This produces better error messages then
1960 having it die cause undef is not a HASH.
1961 - added tests for this
1963 0.21 Thursday, May 2nd, 2007
1965 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1966 - modified unimport to remove super and inner along with the rest
1967 - altered unimport tests to handle this
1970 - altered super export to populate SUPER_SLOT
1972 * Moose::Meta::Class
1973 - altered augment and override modifier application to use *_SLOT
1974 - modified tests for these to unimport one test class each to test
1977 - fixed issue where custom attribute metaclasses
1978 where not handled correctly in roles
1979 - added tests for this
1981 * Moose::Meta::Class
1982 - fixed issue where extending metaclasses with
1983 roles would blow up. Thanks to Aankhen`` for
1984 finding this insidious error, and it's solution.
1986 ~~ lots of spelling and grammer fixes in the docs,
1987 many many thanks to rlb3 and Aankhen for these :)
1989 0.20 Friday, April 6th, 2007
1990 >> I messed up the SKIP logic in one test
1991 so this release is just to fix that.
1994 - 'has' now also accepts an ARRAY ref
1995 to create multiple attrs (see docs)
1996 (thanks to konobi for this)
1997 - added tests and docs
1999 0.19 Thurs. April 5th, 2007
2000 ~~ More documentation updates ~~
2002 * Moose::Util::TypeConstraints
2003 - 'type' now supports messages as well
2004 thanks to phaylon for finding this
2005 - added tests for this
2006 - added &list_all_type_constraints and
2007 &list_all_builtin_type_constraints
2008 functions to facilitate introspection.
2010 * Moose::Meta::Attribute
2011 - fixed regexp 'handles' declarations
2012 to build the list of delegated methods
2013 correctly (and not override important
2014 things like &new) thanks to ashleyb
2016 - added tests and docs for this
2017 - added the 'documentation' attributes
2018 so that you can actually document your
2019 attributes and inspect them through the
2021 - added tests and docs for this
2023 * Moose::Meta::Class
2024 - when loading custom attribute metaclasses
2025 it will first look in for the class in the
2026 Moose::Meta::Attribute::Custom::$name, and
2027 then default to just loading $name.
2028 - added tests and docs for this
2030 * Moose::Meta::TypeConstraint
2031 - type constraints now stringify to their names.
2032 - added test for this
2035 - added tests to assure we work with Module::Refresh
2036 - added stricter test skip logic in the Moose POOP
2037 test, ask Rob Kinyon why.
2038 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2040 0.18 Sat. March 10, 2007
2041 ~~ Many, many documentation updates ~~
2044 - We now use Class::MOP::load_class to
2046 - added tests to show types and subtypes
2047 working with Declare::Constraints::Simple
2048 and Test::Deep as constraint engines.
2051 !! You must have Class::MOP 0.37_001 !!
2052 !! for this developer release to work !!
2054 This release was primarily adding the immutable
2055 feature to Moose. An immutable class is one which
2056 you promise not to alter. When you set the class
2057 as immutable it will perform various bits of
2058 memoization and inline certain part of the code
2059 (constructors, destructors and accessors). This
2060 minimizes (and in some cases totally eliminates)
2061 one of Moose's biggest performance hits. This
2062 feature is not on by default, and is 100% optional.
2063 It has several configurable bits as well, so you
2064 can pick and choose to your specific needs.
2066 The changes involved in this were fairly wide and
2067 highly specific, but 100% backwards compatible, so
2068 I am not going to enumerate them here. If you are
2069 truely interested in what was changed, please do
2072 0.17 Tues. Nov. 14, 2006
2073 * Moose::Meta::Method::Accessor
2074 - bugfix for read-only accessors which
2075 are have a type constraint and lazy.
2076 Thanks to chansen for finding it.
2078 0.16 Tues. Nov. 14, 2006
2080 There are some speed improvements in this release,
2081 but they are only the begining, so stay tuned.
2084 - BUILDALL and DEMOLISHALL no longer get
2085 called unless they actually need to be.
2086 This gave us a signifigant speed boost
2087 for the cases when there is no BUILD or
2088 DEMOLISH method present.
2090 * Moose::Util::TypeConstraints
2091 * Moose::Meta::TypeConstraint
2092 - added an 'optimize_as' option to the
2093 type constraint, which allows for a
2094 hand optimized version of the type
2095 constraint to be used when possible.
2096 - Any internally created type constraints
2097 now provide an optimized version as well.
2099 0.15 Sun. Nov. 5, 2006
2101 This version of Moose *must* have Class::MOP 0.36 in order
2102 to work correctly. A number of small internal tweaks have
2103 been made in order to be compatible with that release.
2105 * Moose::Util::TypeConstraints
2106 - added &unimport so that you can clean out
2107 your class namespace of these exported
2110 * Moose::Meta::Class
2111 - fixed minor issue which occasionally
2112 comes up during global destruction
2114 - moved Moose::Meta::Method::Overriden into
2118 - moved Moose::Meta::Role::Method into
2121 * Moose::Meta::Attribute
2122 - changed how we do type checks so that
2123 we reduce the overall cost, but still
2126 - moved accessor generation methods to
2127 Moose::Meta::Method::Accessor to
2128 conform to the API changes from
2131 * Moose::Meta::TypeConstraint
2132 - changed how constraints are compiled
2133 so that we do less recursion and more
2134 iteration. This makes the type check
2136 - moved Moose::Meta::TypeConstraint::Union
2139 * Moose::Meta::Method::Accessor
2140 - created this from methods formerly found in
2141 Moose::Meta::Attribute
2143 * Moose::Meta::Role::Method
2144 - moved this from Moose::Meta::Role
2146 * Moose::Meta::Method::Overriden
2147 - moved this from Moose::Meta::Class
2149 * Moose::Meta::TypeConstraint::Union
2150 - moved this from Moose::Meta::TypeConstraint
2152 0.14 Mon. Oct. 9, 2006
2154 * Moose::Meta::Attribute
2155 - fixed lazy attributes which were not getting
2156 checked with the type constraint (thanks ashley)
2157 - added tests for this
2158 - removed the over-enthusiastic DWIMery of the
2159 automatic ArrayRef and HashRef defaults, it
2160 broke predicates in an ugly way.
2161 - removed tests for this
2163 0.13 Sat. Sept. 30, 2006
2165 This version of Moose *must* have Class::MOP 0.35 in order
2166 to work correctly. A number of small internal tweaks have
2167 been made in order to be compatible with that release.
2170 - Removed the use of UNIVERSAL::require to be a better
2171 symbol table citizen and remove a dependency
2172 (thanks Adam Kennedy)
2174 **~~ removed experimental & undocumented feature ~~**
2175 - commented out the 'method' and 'self' keywords, see the
2176 comments for more info.
2179 - added a FAQ and WTF files to document frequently
2180 asked questions and common problems
2182 * Moose::Util::TypeConstraints
2183 - added GlobRef and FileHandle type constraint
2184 - added tests for this
2186 * Moose::Meta::Attribute
2187 - if your attribute 'isa' ArrayRef of HashRef, and you have
2188 not explicitly set a default, then make the default DWIM.
2189 This will also work for subtypes of ArrayRef and HashRef
2191 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2192 - new test added for this (thanks to ashley)
2195 - added basic support for runtime role composition
2196 but this is still *highly experimental*, so feedback
2197 is much appreciated :)
2198 - added tests for this
2200 * Moose::Meta::TypeConstraint
2201 - the type constraint now handles the coercion process
2202 through delegation, this is to support the coercion
2205 * Moose::Meta::TypeConstraint::Union
2206 - it is now possible for coercions to be performed
2208 - added tests for this (thanks to konobi)
2210 * Moose::Meta::TypeCoercion
2211 - properly capturing error when type constraint
2215 - Scalar::Util 1.18 is bad on Win32, so temporarily
2216 only require version 1.17 for Win32 and cygwin.
2217 (thanks Adam Kennedy)
2219 0.12 Sat. Sept. 1, 2006
2221 - Recipe5 (subtypes & coercion) has been written
2224 - fixed "bad meta" error message to be more descriptive
2225 - fixed &unimport to not remove the &inner and &super
2226 keywords because we need to localize them.
2227 - fixed number of spelling/grammer issues, thanks Theory :)
2229 **~~ experimental & undocumented feature ~~**
2230 - added the method and self keywords, they are basically
2231 just sugar, and they may not stay around.
2234 - added &dump method to easily Data::Dumper
2237 * Moose::Meta::TypeConstraint
2238 - added the &is_a_type_of method to check both the current
2239 and the subtype of a method (similar to &isa with classes)
2242 - this is now a subclass of Class::MOP::Module, and no longer
2243 creates the _role_meta ugliness of before.
2244 - fixed tests to reflect this change
2246 0.11 Wed. July 12, 2006
2248 - added an &unimport method to remove all the keywords
2249 that Moose will import, simply add 'no Moose' to the
2250 bottom of your class file.
2253 - fixed some test failures caused by a forgotten test
2256 0.10 Thurs. July 6, 2006
2258 - improved error message when loading modules so
2259 it is less confusing when you load a role.
2260 - added &calculate_all_roles method to
2261 Moose::Meta::Class and Moose::Meta::Role
2264 This module has been tested against Class::MOP 0.30
2265 but it does not yet utilize the optimizations
2266 it makes available. Stay tuned for that ;)
2268 0.09_03 Fri. June 23, 2006
2269 ++ DEVELOPER RELEASE ++
2271 - 'use strict' and 'use warnings' are no longer
2272 needed in Moose classes, Moose itself will
2273 turn them on for you.
2274 - added tests for this
2275 - moved code from exported subs to private methods
2276 in Moose::Meta::Class
2279 - as with Moose, strict and warnings are
2280 automatically turned on for you.
2281 - added tests for this
2284 - now handles an edge case for override errors
2285 - added tests for this
2286 - added some more edge case tests
2288 0.09_02 Tues. May 16, 2006
2289 ++ DEVELOPER RELEASE ++
2291 - added prototypes to the exported subs
2295 - added prototypes to the exported subs
2298 * Moose::Util::TypeConstraints
2299 - cleaned up prototypes for the subs
2302 0.09_01 Fri. May 12, 2006
2303 ++ DEVELOPER RELEASE ++
2304 - This release works in combination with
2305 Class::MOP 0.29_01, it is a developer
2306 release because it uses the a new
2307 instance sub-protocol and a fairly
2308 complete Role implementation. It has
2309 not yet been optimized, so it slower
2310 the the previous CPAN version. This
2311 release also lacks good updated docs,
2312 the official release will have updated docs.
2315 - refactored the keyword exports
2316 - 'with' now checks Role validaity and
2317 accepts more than one Role at a time
2318 - 'extends' makes metaclass adjustments as
2319 needed to ensure metaclass compatibility
2322 - refactored the keyword exports
2323 - 'with' now checks Role validaity and
2324 accepts more than one Role at a time
2326 * Moose::Util::TypeConstraints
2327 - added the 'enum' keyword for simple
2328 string enumerations which can be used as
2330 - see example of usage in t/202_example.t
2333 - more careful checking of params to new()
2336 - much work done on the role composition
2337 - many new tests for conflict detection
2338 and composition edge cases
2339 - not enough documentation, I suggest
2340 looking at the tests
2342 * Moose::Meta::Instance
2343 - added new Instance metaclass to support
2344 the new Class::MOP instance protocol
2346 * Moose::Meta::Class
2347 - some small changes to support the new
2349 - some small additions to support Roles
2351 * Moose::Meta::Attribute
2352 - some improvements to the accessor generation code
2354 - some small changes to support the new
2356 - (still somewhat) experimental delegation support
2357 with the 'handles' option
2358 - added several tests for this
2359 - no docs for this yet
2361 0.05 Thurs. April 27, 2006
2363 - keywords are now exported with Sub::Exporter
2364 thanks to chansen for this commit
2365 - has keyword now takes a 'metaclass' option
2366 to support custom attribute meta-classes
2367 on a per-attribute basis
2368 - added tests for this
2369 - the 'has' keyword not accepts inherited slot
2370 specifications (has '+foo'). This is still an
2371 experimental feature and probably not finished
2372 see t/038_attribute_inherited_slot_specs.t for
2373 more details, or ask about it on #moose
2374 - added tests for this
2377 - keywords are now exported with Sub::Exporter
2379 * Moose::Utils::TypeConstraints
2380 - reorganized the type constraint hierarchy, thanks
2381 to nothingmuch and chansen for his help and advice
2383 - added some tests for this
2384 - keywords are now exported with Sub::Exporter
2385 thanks to chansen for this commit
2387 * Moose::Meta::Class
2388 - due to changes in Class::MOP, we had to change
2389 construct_instance (for the better)
2391 * Moose::Meta::Attribute
2392 - due to changes in Class::MOP, we had to add the
2393 initialize_instance_slot method (it's a good thing)
2395 * Moose::Meta::TypeConstraint
2396 - added type constraint unions
2397 - added tests for this
2398 - added the is_subtype_of predicate method
2399 - added tests for this
2401 0.04 Sun. April 16th, 2006
2403 - Roles can now consume other roles
2404 - added tests for this
2405 - Roles can specify required methods now with
2406 the requires() keyword
2407 - added tests for this
2410 - ripped out much of it's guts ,.. much cleaner now
2411 - added required methods and correct handling of
2412 them in apply() for both classes and roles
2413 - added tests for this
2414 - no longer adds a does() method to consuming classes
2415 it relys on the one in Moose::Object
2416 - added roles attribute and some methods to support
2417 roles consuming roles
2419 * Moose::Meta::Attribute
2420 - added support for triggers on attributes
2421 - added tests for this
2422 - added support for does option on an attribute
2423 - added tests for this
2425 * Moose::Meta::Class
2426 - added support for attribute triggers in the
2428 - added tests for this
2431 - Moose no longer creates a subtype for your class
2432 if a subtype of the same name already exists, this
2433 should DWIM in 99.9999% of all cases
2435 * Moose::Util::TypeConstraints
2436 - fixed bug where incorrect subtype conflicts were
2438 - added test for this
2441 - this class can now be extended with 'use base' if
2442 you need it, it properly loads the metaclass class now
2443 - added test for this
2445 0.03_02 Wed. April 12, 2006
2447 - you must now explictly use Moose::Util::TypeConstraints
2448 it no longer gets exported for you automatically
2451 - new() now accepts hash-refs as well as key/value lists
2452 - added does() method to check for Roles
2453 - added tests for this
2455 * Moose::Meta::Class
2456 - added roles attribute along with the add_role() and
2458 - added tests for this
2461 - now adds a does() method to consuming classes
2462 which tests the class's hierarchy for roles
2463 - added tests for this
2465 0.03_01 Mon. April 10, 2006
2467 - added new Role recipe (no content yet, only code)
2470 - added 'with' keyword for Role support
2471 - added test and docs for this
2472 - fixed subtype quoting bug
2473 - added test for this
2477 - added test and docs
2479 * Moose::Util::TypeConstraints
2480 - added the message keyword to add custom
2481 error messages to type constraints
2484 - the meta role to support Moose::Role
2485 - added tests and docs
2487 * Moose::Meta::Class
2488 - moved a number of things from Moose.pm
2489 to here, they should have been here
2492 * Moose::Meta::Attribute
2493 - moved the attribute option macros here
2494 instead of putting them in Moose.pm
2496 * Moose::Meta::TypeConstraint
2497 - added the message attributes and the
2499 - added tests and docs for this
2501 0.03 Thurs. March 30, 2006
2503 - added the Moose::Cookbook with 5 recipes,
2504 describing all the stuff Moose can do.
2507 - fixed an issue with &extends super class loading
2508 it now captures errors and deals with inline
2509 packages correctly (bug found by mst, solution
2511 - added super/override & inner/augment features
2512 - added tests and docs for these
2515 - BUILDALL now takes a reference of the %params
2516 that are passed to &new, and passes that to
2519 * Moose::Util::TypeConstraints
2520 - Type constraints now survive runtime reloading
2521 - added test for this
2523 * Moose::Meta::Class
2524 - fixed the way attribute defaults are handled
2525 during instance construction (bug found by chansen)
2527 * Moose::Meta::Attribute
2528 - read-only attributes now actually enforce their
2529 read-only-ness (this corrected in Class::MOP as
2532 0.02 Tues. March 21, 2006
2534 - many more tests, fixing some bugs and
2536 - &extends now loads the base module with
2538 - added UNIVERSAL::require to the
2541 - each new Moose class will also create
2542 and register a subtype of Object which
2543 correspond to the new Moose class.
2544 - the 'isa' option in &has now only
2545 accepts strings, and will DWIM in
2548 * Moose::Util::TypeConstraints
2549 - added type coercion features
2550 - added tests for this
2551 - added support for this in attributes
2552 and instance construction
2554 - type construction no longer creates a
2555 function, it registers the type instead.
2556 - added several functions to get the
2560 - BUILDALL and DEMOLISHALL were broken
2561 because of a mis-named hash key, Whoops :)
2563 * Moose::Meta::Attribute
2564 - adding support for coercion in the
2565 autogenerated accessors
2567 * Moose::Meta::Class
2568 - adding support for coercion in the
2569 instance construction
2571 * Moose::Meta::TypeConstraint
2572 * Moose::Meta::TypeCoercion
2573 - type constraints and coercions are now
2574 full fledges meta-objects
2576 0.01 Wed. March 15, 2006
2577 - Moooooooooooooooooose!!!