1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 - Add Explicit use of Devel::GlobalDestruction and Sub::Name (perigrin)
9 - pass a boolean to DEMOLISHALL and DEMOLISH indicating whether or not
10 we are currently in global destruction (doy)
11 - Add Explicit use of Devel::GlobalDestruction and Sub::Name (perigrin)
13 * Moose::Cookbook::FAQ
14 - Reworked much of the existing content to be more useful to modern
15 Moose hackers (Sartak)
17 0.76 Mon, April 27, 2009
18 * Moose::Meta::TypeConstraint
19 - Do not run coercions in coerce() if the value already passes the type
22 * Moose::Meta::TypeConstraint::Class
23 - In validation error messages, specifically say that the value is not
24 an instance of the class. This should alleviate some frustrating
25 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
27 * Moose::Meta::Role::Application::ToClass
28 - Revert the class-overrides-role warning in favor of a solution outside
29 of the Moose core (Sartak)
32 - Make Test::Output optional again, since it's only used in a few files
35 0.75_01 Thu, April 23, 2009
36 * Moose::Meta::Role::Application::ToClass
37 - Moose now warns about each class overriding methods from roles it
41 - Warnings tests have standardized on Test::Output which is now an
42 unconditionally dependency (Sartak)
45 - Changes to immutabilization to work with Class::MOP 0.82_01+.
47 0.75 Mon, April 20, 2009
50 - Move validation of not inheriting from roles from Moose::extends to
51 Moose::Meta::Class::superclasses (doy)
54 - add ensure_all_roles() function to encapsulate the common "apply this
55 role unless the object already does it" pattern (hdp)
58 - Users can now select a different metaclass with the "-metaclass"
59 option to import, for classes and roles (Sartak)
62 - Make method_metaclass an attr so that it can accept a metarole
65 0.74 Tue, April 7, 2009
67 * Moose::Meta::Method::Destructor
68 - Include stack traces in the deprecation warnings.
72 - Removed the long-deprecated _apply_all_roles method.
74 * Moose::Meta::TypeConstraint
75 - Removed the long-deprecated union method.
78 0.73_02 Mon, April 6, 2009
79 * More deprecations and renamings
80 - Moose::Meta::Method::Constructor
81 - initialize_body => _initialize_body (this is always called
82 when an object is constructed)
85 - The DEMOLISHALL method could throw an exception during global
86 destruction, meaning that your class's DEMOLISH methods would
87 not be properly called. Reported by t0m.
89 * Moose::Meta::Method::Destructor
90 - Destructor inlining was totally broken by the change to the
91 is_needed method in 0.72_01. Now there is a test for this
92 feature, and it works again.
95 - Bold the word 'not' in the POD for find_meta (t0m)
97 0.73_01 Sun, April 5, 2009
99 - Call user_class->meta in fewer places, with the eventual goal
100 of allowing the user to rename or exclude ->meta
101 altogether. Instead uses Class::MOP::class_of. (Sartak)
103 * Moose::Meta::Method::Accessor
104 - If an attribute had a lazy default, and that value did not
105 pass the attribute's type constraint, it did not get the
106 message from the type constraint, instead using a generic
107 message. Test provided by perigrin.
109 * Moose::Util::TypeConstraints
110 - Add duck_type keyword. It's sugar over making sure an object
111 can() a list of methods. This is easier than jrockway's
112 suggestion to fork all of CPAN. (perigrin)
113 - add tests and documentation (perigrin)
116 - Document the fact that init_meta() returns the target class's
117 metaclass object. (hdp)
119 * Moose::Cookbook::Extending::Recipe1
120 * Moose::Cookbook::Extending::Recipe2
121 * Moose::Cookbook::Extending::Recipe3
122 * Moose::Cookbook::Extending::Recipe4
123 - Make init_meta() examples explicitly return the metaclass and
124 point out this fact. (hdp)
126 * Moose::Cookbook::Basics::Recipe12
127 - A new recipe, creating a custom meta-method class.
129 * Moose::Cookbook::Meta::Recipe6
130 - A new recipe, creating a custom meta-method class.
133 * Moose::Meta::Method::Constructor
134 - Attribute triggers no longer receive the meta-attribute object
135 as an argument in any circumstance. Previously, triggers
136 called during instance construction were passed the
137 meta-attribute, but triggers called by normal accessors were
138 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
140 * Moose::Manual::Attributes
141 - Remove references to triggers receving the meta-attribute object as an
144 * Moose::Cookbook::FAQ
145 - Remove recommendation for deprecated Moose::Policy and
146 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
149 * Many methods have been renamed with a leading underscore, and a
150 few have been deprecated entirely. The methods with a leading
151 underscore are consider "internals only". People writing
152 subclasses or extensions to Moose should feel free to override
153 them, but they are not for "public" use.
156 - check_metaclass_compatibility => _check_metaclass_compatibility
158 - Moose::Meta::Method::Accessor
159 - initialize_body => _initialize_body (this is always called
160 when an object is constructed)
161 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
163 - Moose::Meta::Method::Constructor
164 - initialize_body => _initialize_body (this is always called
165 when an object is constructed)
166 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
167 - attributes => _attributes (now inherited from parent)
168 - meta_instance => _meta_instance (now inherited from parent)
171 - alias_method is deprecated. Use add_method
173 0.73 Fri, March 29, 2009
174 * No changes from 0.72_01.
176 0.72_01 Thu, March 26, 2009
178 - Almost every module has complete API documentation. A few
179 methods (and even whole classes) have been intentionally
180 excluded pending some rethinking of their APIs.
182 * Moose::Util::TypeConstraints
183 - Calling subtype with a name as the only argument is now an
184 exception. If you want an anonymous subtype do:
186 my $subtype = subtype as 'Foo';
188 * Moose::Cookbook::Meta::Recipe7
189 - A new recipe, creating a custom meta-instance class.
191 * Moose::Cookbook::Basics::Recipe5
192 - Fix various typos and mistakes. Includes a patch from Radu
195 * Moose::Cookbook::Basics::Recipe9
196 - Link to this recipe from Moose.pm's builder blurb
199 - When wrapping a function with a prototype, Moose::Exporter now
200 makes sure the wrapped function still has the same
201 prototype. (Daisuke Maki)
203 * Moose::Meta::Attribute
204 - Allow a subclass to set lazy_build for an inherited
208 - Explicitly depend on Data::OptList. We already had this dependency
209 via Sub::Exporter, but since we're using it directly we're
210 better off with it listed. (Sartak)
212 * Moose::Meta::Method::Constructor
213 - Make it easier to subclass the inlining behaviour. (Ash
216 * Moose::Manual::Delta
217 - Details significant changes in the history of Moose, along
218 with recommended workarounds.
220 * Moose::Manual::Contributing
221 - Contributor's guide to Moose.
223 * Moose::Meta::Method::Constructor
224 - The long-deprecated intialize_body method has been removed
225 (yes, spelled like that).
227 * Moose::Meta::Method::Destructor
228 - This is_needed method is now always a class method.
231 - Changes to the internals of how make_immutable works to match
232 changes in latest Class::MOP.
234 0.72 Mon, February 23, 2009
236 * Moose::Meta::Method::Constructor
237 - A mutable class accepted Foo->new(undef) without complaint,
238 while an immutable class would blow up with an unhelpful
239 error. Now, in both cases we throw a helpful error
240 instead. Reported by doy.
242 0.71_01 Sun, February 22, 2009
244 - Hopefully fixed some POD errors in a few recipes that caused
245 them to display weird on search.cpan.org.
247 * Moose::Util::TypeConstraints
248 - Calling type or subtype without the sugar helpers (as, where,
249 message) is now deprecated.
250 - The subtype function tried hard to guess what you meant, but
251 often got it wrong. For example:
253 my $subtype = subtype as 'ArrayRef[Object]';
255 This caused an error in the past, but now works as you'd
259 - Make sure Moose.pm is loaded before calling
260 Moose->throw_error. This wasn't normally an issue, but could
261 bite you in weird cases.
263 0.71 Thu, February 19, 2009
264 * Moose::Cookbook::Basics::Recipe11
265 - A new recipe which demonstrates the use of BUILDARGS and
268 * Moose::Cookbook::Roles::Recipe3
269 - A new recipe, applying a role to an object instance. (Dave
273 - Allow overriding specific keywords from "also" packages. (doy)
276 - Replace hardcoded cookbook tests with Test::Inline to ensure
277 the tests match the actual code in the recipes. (Dave Rolsky)
280 - Working on the above turned up a number of little bugs in the
281 recipe code. (Dave Rolsky)
283 * Moose::Util::TypeConstraints::Optimized
284 - Just use Class::MOP for the optimized ClassName check. (Dave
287 0.70 Sat, February 14, 2009
288 * Moose::Util::TypeConstraints
289 - Added the RoleName type (stevan)
290 - added tests for this (stevan)
292 * Moose::Cookbook::Basics::Recipe3
293 - Updated the before qw[left right] sub to be a little more
294 defensive about what it accepts (stevan)
295 - added more tests to t/000_recipies/basics/003_binary_tree.t
299 - We now always call DEMOLISHALL, even if a class does not
300 define DEMOLISH. This makes sure that method modifiers on
301 DEMOLISHALL work as expected. (doy)
302 - added tests for this (EvanCarroll)
304 * Moose::Util::MetaRole
305 - Accept roles for the wrapped_method_metaclass (rafl)
306 - added tests for this (rafl)
308 * Moose::Meta::Attribute
309 - We no longer pass the meta-attribute object as a final
310 argument to triggers. This actually changed for inlined code a
311 while back, but the non-inlined version and the docs were
315 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
316 they require 0.11. (Dave Rolsky)
319 - Lots of small changes to the manual, cookbook, and
320 elsewhere. These were based on feedback from various
321 users, too many to list here. (Dave Rolsky)
323 0.69 Thu, February 12, 2009
325 - Make some keyword errors use throw_error instead of croak
326 since Moose::Exporter wraps keywords now (Sartak)
329 - Revised every recipe for style and clarity. Also moved some
330 documentation out of cookbook recipes and into Moose::Manual
331 pages. This work was funded as part of the Moose docs grant
332 from TPF. (Dave Rolsky)
334 * Moose::Meta::Method::Delegation
335 - If the attribute doing the delegation was not populated, the
336 error message did not specify the attribute name
339 0.68 Wed, February 4, 2009
341 - Many spelling, typo, and formatting fixes by daxim.
343 * Moose::Manual::Attributes
344 - The NAME section in the POD used "Attribute" so search.cpan
345 didn't resolve links from other documents properly.
347 * Moose::Meta::Method::Overriden
348 - Now properly spelled as Overridden. Thanks to daxim for
351 0.67 Tue, February 3, 2009
353 - Lots of little typo fixes and a few clarifications. Several
354 pages didn't have proper titles, and so weren't actually
355 visible on search.cpan.org. Thanks to hanekomu for a variety
356 of fixes and formatting improvements.
358 0.66 Tue, February 3, 2009
360 - This is a brand new, extensive manual for Moose. This aims to
361 provide a complete introduction to all of Moose's
362 features. This work was funded as part of the Moose docs grant
363 from TPF. (Dave Rolsky)
365 * Moose::Meta::Attribute
366 - Added a delegation_metaclass method to replace a hard-coded
367 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
369 * Moose::Util::TypeConstraints
370 - If you created a subtype and passed a parent that Moose didn't
371 know about, it simply ignored the parent. Now it automatically
372 creates the parent as a class type. This may not be what you
373 want, but is less broken than before. (Dave Rolsky)
375 * Moose::Util::TypeConstraints
376 - This module tried throw errors by calling Moose->throw_error,
377 but it did not ensure that Moose was loaded first. This could
378 cause very unhelpful errors when it tried to throw an error
379 before Moose was loaded. (Dave Rolsky)
381 * Moose::Util::TypeConstraints
382 - You could declare a name with subtype such as "Foo!Bar" that
383 would be allowed, but if you used it in a parameterized type
384 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
385 vetting on names created via the sugar functions, so that they
386 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
388 0.65 Thu, January 22, 2008
389 * Moose and Moose::Meta::Method::Overridden
390 - If an overridden method called super(), and then the
391 superclass's method (not overridden) _also_ called super(),
392 Moose went into an endless recursion loop. Test provided by
393 Chris Prather. (Dave Rolsky)
395 * Moose::Meta::TypeConstraint
396 - All methods are now documented. (gphat)
398 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
399 - Fixed some bogus failures that occurred because we tried to
400 validate filesystem paths in a very ad-hoc and
401 not-quite-correct way. (Dave Rolsky)
403 * Moose::Util::TypeConstraints
404 - Added maybe_type to exports. See docs for details. (rjbs)
407 - Added Moose::Util::TypeConstraints to the SEE ALSO
411 - Methods created via an attribute can now fulfill a "requires"
412 declaration for a role. (nothingmuch)
414 * Moose::Meta::Method::*
415 - Stack traces from inlined code will now report its line and
416 file as being in your class, as opposed to in Moose
419 0.64 Wed, December 31, 2008
420 * Moose::Meta::Method::Accessor
421 - Always inline predicate and clearer methods (Sartak)
423 * Moose::Meta::Attribute
424 - Support for parameterized traits (Sartak)
425 - verify_against_type_constraint method to avoid duplication
426 and enhance extensibility (Sartak)
429 - Tests (but no support yet) for parameterized traits (Sartak)
432 - Require Class::MOP 0.75+, which has the side effect of making
433 sure we work on Win32. (Dave Rolsky)
435 0.63 Mon, December 8, 2008
437 - Some small grammar tweaks and bug fixes in non-Moose example
440 0.62_02 Fri, December 5, 2008
441 * Moose::Meta::Role::Application::ToClass
442 - When a class does not provide all of a role's required
443 methods, the error thrown now mentions all of the missing
444 methods, as opposed to just the first one found. Requested by
445 Curtis Poe (RT #41119). (Dave Rolsky)
447 * Moose::Meta::Method::Constructor
448 - Moose will no longer inline a constructor for your class
449 unless it inherits its constructor from Moose::Object, and
450 will warn when it doesn't inline. If you want to force
451 inlining anyway, pass "replace_constructor => 1" to
452 make_immutable. Addresses RT #40968, reported by Jon
453 Swartz. (Dave Rolsky)
454 - The quoting of default values could be broken if the default
455 contained a single quote ('). Now we use quotemeta to escape
456 anything potentially dangerous in the defaults. (Dave Rolsky)
458 0.62_01 Wed, December 3, 2008
460 - use the method->execute API for BUILDALL
461 and DEMOLISHALL (Sartak)
463 * Moose::Util::TypeConstraints
464 - We now make all the type constraint meta classes immutable
465 before creating the default types provided by Moose. This
466 should make loading Moose a little faster. (Dave Rolsky)
468 0.62 Wed November 26, 2008
469 * Moose::Meta::Role::Application::ToClass
470 Moose::Meta::Role::Application::ToRole
471 - fixed issues where excluding and aliasing the
472 same methods for a single role did not work
473 right (worked just fine with multiple
475 - added test for this (stevan)
477 * Moose::Meta::Role::Application::RoleSummation
478 - fixed the error message when trying to compose
479 a role with a role it excludes (Sartak)
482 - Catch another case where recursion caused the value
483 of $CALLER to be stamped on (t0m)
484 - added test for this (t0m)
487 - Remove the make_immutable keyword, which has been
488 deprecated since April. It breaks metaclasses that
489 use Moose without no Moose (Sartak)
491 * Moose::Meta::Attribute
492 - Removing an attribute from a class now also removes delegation
493 (handles) methods installed for that attribute (t0m)
494 - added test for this (t0m)
496 * Moose::Meta::Method::Constructor
497 - An attribute with a default that looked like a number (but was
498 really a string) would accidentally be treated as a number
499 when the constructor was made immutable (perigrin)
500 - added test for this (perigrin)
503 - create method for constructing a role
505 - added test for this (Sartak)
506 - anonymous roles! (Sartak)
507 - added test for this (Sartak)
510 - more consistent error messages (Sartak)
512 * Moose::Cookbook::Roles::Recipe1
513 - attempt to explain why a role that just requires
514 methods is useful (Sartak)
516 0.61 Fri November 7, 2008
517 * Moose::Meta::Attribute
518 - When passing a role to handles, it will be loaded if necessary
522 - Method objects returned by get_method (and other methods)
523 Could end up being returned without an associated_metaclass
524 attribute. Removing get_method_map, which is provided by
525 Class::MOP::Class, fixed this. The Moose version did nothing
526 different from its parent except introduce a bug. (Dave Rolsky)
527 - added tests for this (jdv79)
530 - Added a $VERSION to all .pm files which didn't have one. Fixes
531 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
533 * Moose::Cookbook::Basics::Recipe4
534 * Moose::Cookbook::Basics::Recipe6
535 - These files had spaces on the first line of the SYNOPSIS, as
536 opposed to a totally empty line. According to RT #40432, this
537 confuses POD parsers. (Dave Rolsky)
539 0.60 Fri October 24, 2008
541 - Passing "-traits" when loading Moose caused the Moose.pm
542 exports to be broken. Reported by t0m. (Dave Rolsky)
543 - Tests for this bug. (t0m)
546 - Change resolve_metaclass alias to use the new
547 load_first_existing_class function. This makes it a lot
548 simpler, and also around 5 times faster. (t0m)
549 - Add caching to resolve_metaclass_alias, which gives an order
550 of magnitude speedup to things which repeatedly call the
551 Moose::Meta::Attribute->does method, notably MooseX::Storage
554 * Moose::Util::TypeConstraint
555 - Put back the changes for parameterized constraints that
556 shouldn't have been removed in 0.59. We still cannot parse
557 them, but MooseX modules can create them in some other
558 way. See the 0.58 changes for more details. (jnapiorkowski)
559 - Changed the way subtypes are created so that the job is
560 delegated to a type constraint parent. This clears up some
561 hardcoded checking and should allow correct subtypes of
562 Moose::Meta::Type::Constraint. Don't rely on this new API too
563 much (create_child_type) because it may go away in the
564 future. (jnapiorkowski)
566 * Moose::Meta::TypeConstraint::Union
567 - Type constraint names are sorted as strings, not numbers.
570 * Moose::Meta::TypeConstraint::Parameterizable
571 - New parameterize method. This can be used as a factory method
572 to make a new type constraint with a given parameterized
573 type. (jnapiorkowski)
574 - added tests (jnapiorkowski)
576 0.59 Tue October 14, 2008
578 - Add abridged documentation for builder/default/initializer/
579 predicate, and link to more details sections in
580 Class::MOP::Attribute. (t0m)
582 * Moose::Util::TypeConstraints
583 - removed prototypes from all but the &-based stuff (mst)
585 * Moose::Util::TypeConstraints
586 - Creating a anonymous subtype with both a constraint and a
587 message failed with a very unhelpful error, but should just
588 work. Reported by t0m. (Dave Rolsky)
591 - Some tests that used Test::Warn if it was available failed
592 with older versions of Test::Warn. Reported by Fayland. (Dave
594 - Test firing behavior of triggers in relation to builder/default/
596 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
597 kinds of supported type. (t0m)
600 - In create(), do not pass "roles" option to the superclass
601 - added related test that creates an anon metaclass with
604 * Moose::Meta::TypeConstraint::Class
605 * Moose::Meta::TypeConstraint::Role
606 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
607 other types (as per change in 0.55_02). (t0m)
609 * Moose::Meta::TypeConstraint::Registry
610 - Fix warning when dealing with unknown type names (t0m)
612 * Moose::Util::TypeConstraints
613 - Reverted changes from 0.58 related to handle parameterized
614 types. This caused random failures on BSD and Win32 systems,
615 apparently related to the regex engine. This means that Moose
616 can no longer parse structured type constraints like
617 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
618 supported in a slightly different way via MooseX::Types some
619 time in the future. (Dave Rolsky)
621 0.58 Sat September 20, 2008
622 !! This release has an incompatible change regarding !!
623 !! how roles add methods to a class !!
625 * Roles and role application
626 ! Roles now add methods by calling add_method, not
627 alias_method. They make sure to always provide a method
628 object, which will be cloned internally. This means that it is
629 now possible to track the source of a method provided by a
630 role, and even follow its history through intermediate roles.
632 This means that methods added by a role now show up when
633 looking at a class's method list/map. (Dave Rolsky)
636 - From this release on, we'll try to maintain a list of
637 conflicting modules, and warn you if you have one
638 installed. For example, this release conflicts with ...
639 - MooseX::Singleton <= 0.11
640 - MooseX::Params::Validate <= 0.05
643 In general, we try to not break backwards compatibility for
644 most Moose users, but MooseX modules and other code which
645 extends Moose's metaclasses is often affected by very small
646 changes in the Moose internals.
648 * Moose::Meta::Method::Delegation
649 * Moose::Meta::Attribute
650 - Delegation methods now have their own method class. (Dave
653 * Moose::Meta::TypeConstraint::Parameterizable
654 - Added a new method 'parameterize' which is basically a factory
655 for the containing constraint. This makes it easier to create
656 new types of parameterized constraints. (jnapiorkowski)
658 * Moose::Meta::TypeConstraint::Union
659 - Changed the way Union types canonicalize their names to follow
660 the normalized TC naming rules, which means we strip all
661 whitespace. (jnapiorkowski)
663 * Moose::Util::TypeConstraints
664 - Parameter and Union args are now sorted, this makes Int|Str
665 the same constraint as Str|Int. (jnapiorkowski)
666 - Changes to the way Union types are parsed to more correctly
667 stringify their names. (jnapiorkowski)
668 - When creating a parameterized type, we now use the new
669 parameterize method. (jnapiorkowski)
670 - Incoming type constraint strings are now normalized to remove
671 all whitespace differences. (jnapiorkowski)
672 - Changed the way we parse type constraint strings so that we now
673 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
674 constraints. This lays the foundation for more flexible type
675 constraint implementations.
677 * Tests and docs for all the above. (jnapiorkowski)
681 - Moose::Exporter will no longer remove a subroutine that the
682 exporting package re-exports. Moose re-exports the
683 Carp::confess function, among others. The reasoning is that we
684 cannot know whether you have also explicitly imported those
685 functions for your own use, so we err on the safe side and
686 always keep them. (Dave Rolsky)
687 - added tests for this (rafl)
690 - Changes to how we fix metaclass compatibility that are much
691 too complicated to go into. The summary is that Moose is much
692 less likely to complain about metaclass incompatibility
693 now. In particular, if two metaclasses differ because
694 Moose::Util::MetaRole was used on the two corresponding
695 classes, then the difference in roles is reconciled for the
696 subclass's metaclass. (Dave Rolsky)
697 - Squashed an warning in _process_attribute (thepler)
700 - throw exceptions (sooner) for invalid attribute names (thepler)
701 - added tests for this (thepler)
703 * Moose::Util::MetaRole
704 - If you explicitly set a constructor or destructor class for a
705 metaclass object, and then applied roles to the metaclass,
706 that explicitly set class would be lost and replaced with the
710 * Moose::Meta::Attribute
711 * Moose::Meta::Method
714 * Moose::Error::Default
715 * Moose::Error::Croak
716 * Moose::Error::Confess
717 - All instances of confess() changed to use overridable
718 C<throw_error> method. This method ultimately calls a class
719 constructor, and you can change the class being called. In
720 addition, errors now pass more information than just a string.
721 The default C<error_class> behaves like C<Carp::confess>, so
722 the behavior is not visibly different for end users.
724 0.57 Wed September 3, 2008
726 - A new bit of doc intended to introduce folks familiar with
727 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
730 - Shows examples of two classes, each done first with and then
731 without Moose. This makes a nice parallel to
732 Moose::Intro. (Dave Rolsky)
734 * Moose::Util::TypeConstraints
735 - Fixed a bug in find_or_parse_type_constraint so that it
736 accepts a Moose::Meta::TypeConstraint object as the parent
737 type, not just a name (jnapiorkowski)
738 - added tests (jnapiorkowski)
741 - If Sub::Name was not present, unimporting failed to actually
742 remove some sugar subs, causing test failures (Dave Rolsky)
744 0.56 Mon September 1, 2008
745 For those not following the series of dev releases, there are
746 several major changes in this release of Moose.
747 ! Moose::init_meta should now be called as a method. See the
750 - Major performance improvements by nothingmuch.
752 - New modules for extension writers, Moose::Exporter and
753 Moose::Util::MetaRole by Dave Rolsky.
755 - Lots of doc improvements and additions, especially in the
760 * Removed all references to the experimental-but-no-longer-needed
761 Moose::Meta::Role::Application::ToMetaclassInstance.
763 * Require Class::MOP 0.65.
765 0.55_04 Sat August 30, 2008
766 * Moose::Util::MetaRole
767 * Moose::Cookbook::Extending::Recipe2
768 - This simplifies the application of roles to any meta class, as
769 well as the base object class. Reimplemented metaclass traits
770 using this module. (Dave Rolsky)
772 * Moose::Cookbook::Extending::Recipe1
773 - This a new recipe, an overview of various ways to write Moose
774 extensions (Dave Rolsky)
776 * Moose::Cookbook::Extending::Recipe3
777 * Moose::Cookbook::Extending::Recipe4
778 - These used to be Extending::Recipe1 and Extending::Recipe2,
781 0.55_03 Fri August 29, 2008
782 * No changes from 0.55_02 except increasing the Class::MOP
783 dependency to 0.64_07.
785 0.55_02 Fri August 29, 2008
786 * Makefile.PL and Moose.pm
787 - explicitly require Perl 5.8.0+ (Dave Rolsky)
789 * Moose::Util::TypeConstraints
790 - Fix warnings from find_type_constraint if the type is not
793 * Moose::Meta::TypeConstraint
794 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
795 return false if the type you specify cannot be found in the
796 type registry, rather than throwing an unhelpful and
797 coincidental exception. (t0m).
798 - added docs & test for this (t0m)
800 * Moose::Meta::TypeConstraint::Registry
801 - add_type_constraint now throws an exception if a parameter is
803 - added docs & test for this (t0m)
805 * Moose::Cookbook::FAQ
806 - Added a faq entry on the difference between "role" and "trait"
810 - Fixed a bug that caused role composition to not see a required
811 method when that method was provided by another role being
812 composed at the same time. (Dave Rolsky)
813 - test and bug finding (tokuhirom)
815 0.55_01 Wed August 20, 2008
817 !! Calling Moose::init_meta as a function is now !!
818 !! deprecated. Please see the Moose.pm docs for details. !!
820 * Moose::Meta::Method::Constructor
821 - Fix inlined constructor so that values produced by default
822 or builder methods are coerced as required. (t0m)
823 - added test for this (t0m)
825 * Moose::Meta::Attribute
826 - A lazy attribute with a default or builder did not attempt to
827 coerce the default value. The immutable code _did_
829 - added test for this (t0m)
832 - This is a new helper module for writing "Moose-alike"
833 modules. This should make the lives of MooseX module authors
834 much easier. (Dave Rolsky)
837 * Moose::Cookbook::Meta::Recipe5
838 - Implemented metaclass traits (and wrote a recipe for it):
840 use Moose -traits => 'Foo'
842 This should make writing small Moose extensions a little
845 * Moose::Cookbook::Basics::Recipe1
846 - Removed any examples of direct hashref access, and applied an
847 editorial axe to reduce verbosity. (Dave Rolsky)
849 * Moose::Cookbook::Basics::Recipe1
850 - Also applied an editorial axe here. (Dave Rolsky)
853 * Moose::Cookbook::Extending::Recipe1
854 * Moose::Cookbook::Extending::Recipe2
855 - Rewrote extending and embedding moose documentation and
856 recipes to use Moose::Exporter (Dave Rolsky)
860 - These two modules now warn when you load them from the main
861 package "main" package, because we will not export sugar to
862 main. Previously it just did nothing. (Dave Rolsky)
865 - Now provide an init_meta method just like Moose.pm, and you
866 can call this to provide an alternate role metaclass. (Dave
867 Rolsky and nothingmuch)
868 - get_method_map now respects the package cache flag (nothingmuch)
871 - Two new methods - add_method and wrap_method_body
875 - Optimizations including allowing constructors to accept hash
876 refs, making many more classes immutable, and making
877 constructors immutable. (nothingmuch)
879 0.55 Sun August 3, 2008
880 * Moose::Meta::Attribute
881 - breaking down the way 'handles' methods are
882 created so that the process can be more easily
883 overridden by subclasses (stevan)
885 * Moose::Meta::TypeConstraint
886 - fixing what is passed into a ->message with
887 the type constraints (RT #37569)
888 - added tests for this (Charles Alderman)
890 * Moose::Util::TypeConstraints
891 - fix coerce to accept anon types like subtype can (mst)
894 - reorganized the recipes into sections - Basics, Roles, Meta,
895 Extending - and wrote abstracts for each section (Dave Rolsky)
897 * Moose::Cookbook::Basics::Recipe10
898 - A new recipe that demonstrates operator overloading
899 in combination with Moose. (bluefeet)
901 * Moose::Cookbook::Meta::Recipe1
902 - an introduction to what meta is and why you'd want to make
903 your own metaclass extensions (Dave Rolsky)
905 * Moose::Cookbook::Meta::Recipe4
906 - a very simple metaclass example (Dave Rolsky)
908 * Moose::Cookbook::Extending::Recipe1
909 - how to write a Moose-alike module to use your own object base
912 * Moose::Cookbook::Extending::Recipe2
913 - how to write modules with an API just like C<Moose.pm> (Dave
917 - Tons of fixes, both syntactical and grammatical (Dave
918 Rolsky, Paul Fenwick)
920 0.54 Thurs. July 3, 2008
921 ... this is not my day today ...
923 * Moose::Meta::Attribute
924 - fixed legal_options_for_inheritance such that
925 clone_and_inherit options still works for
926 Class::MOP::Attribute objects and therefore
927 does not break MooseX::AttributeHelpers
930 0.53 Thurs. July 3, 2008
931 * Whoops, I guess I should run 'make manifest' before
932 actually releasing the module. No actual changes
933 in this release, except the fact that it includes
934 the changes that I didn't include in the last
937 0.52 Thurs. July 3, 2008
939 - added "FEATURE REQUESTS" section to the Moose docs
940 to properly direct people (stevan) (RT #34333)
941 - making 'extends' croak if it is passed a Role since
942 this is not ever something you want to do
943 (fixed by stevan, found by obra)
944 - added tests for this (stevan)
947 - adding support for DOES (as in UNIVERSAL::DOES)
949 - added test for this
951 * Moose::Meta::Attribute
952 - added legal_options_for_inheritance (wreis)
953 - added tests for this (wreis)
955 * Moose::Cookbook::Snacks::*
956 - removed some of the unfinished snacks that should
957 not have been released yet. Added some more examples
958 to the 'Keywords' snack. (stevan)
960 * Moose::Cookbook::Style
961 - added general Moose "style guide" of sorts to the
962 cookbook (nothingmuch) (RT #34335)
965 - added more BUILDARGS tests (stevan)
967 0.51 Thurs. Jun 26, 2008
969 - add unimport so "no Moose::Role" actually does
972 * Moose::Meta::Role::Application::ToRole
973 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
974 order to provide its own implementation, that method still got
975 added to the list of required methods for consumers of
976 RoleB. Now an aliased method is only added to the list of
977 required methods if the role doing the aliasing does not
978 provide its own implementation. See Recipe 11 for an example
979 of all this. (Dave Rolsky)
980 - added tests for this
982 * Moose::Meta::Method::Constructor
983 - when a single argument that wasn't a hashref was provided to
984 an immutabilized constructor, the error message was very
985 unhelpful, as opposed to the non-immutable error. Reported by
987 - added test for this (Dave Rolsky)
989 * Moose::Meta::Attribute
990 - added support for meta_attr->does("ShortAlias") (sartak)
991 - added tests for this (sartak)
992 - moved the bulk of the `handles` handling to the new
993 install_delegation method (Stevan)
996 - Added BUILDARGS, a new step in new()
998 * Moose::Meta::Role::Application::RoleSummation
999 - fix typos no one ever sees (sartak)
1001 * Moose::Util::TypeConstraints
1002 * Moose::Meta::TypeConstraint
1003 * Moose::Meta::TypeCoercion
1004 - Attempt to work around the ??{ } vs. threads issue
1006 - Some null_constraint optimizations
1008 0.50 Thurs. Jun 11, 2008
1009 - Fixed a version number issue by bumping all modules
1012 0.49 Thurs. Jun 11, 2008
1013 !! This version now approx. 20-25% !!
1014 !! faster with new Class::MOP 0.59 !!
1016 * Moose::Meta::Attribute
1017 - fixed how the is => (ro|rw) works with
1018 custom defined reader, writer and accessor
1020 - added docs for this (TODO).
1021 - added tests for this (Thanks to Penfold)
1022 - added the custom attribute alias for regular
1023 Moose attributes which is "Moose"
1024 - fix builder and default both being used
1029 Moose::Meta::Attribute
1031 Moose::Meta::Role::Composite
1032 Moose::Util::TypeConstraints
1033 - switched usage of reftype to ref because
1037 - changing add_package_symbol to use the new
1041 - fixed how DEMOLISHALL is called so that it
1042 can be overrided in subclasses (thanks to Sartak)
1043 - added test for this (thanks to Sartak)
1045 * Moose::Util::TypeConstraints
1046 - move the ClassName type check code to
1047 Class::MOP::is_class_loaded (thanks to Sartak)
1049 * Moose::Cookbook::Recipe11
1050 - add tests for this (thanks to tokuhirom)
1052 0.48 Thurs. May 29, 2008
1053 (early morning release engineering)--
1055 - fixing the version in Moose::Meta::Method::Destructor
1056 which was causing the indexer to choke
1058 0.47 Thurs. May 29, 2008
1059 (late night release engineering)--
1061 - fixing the version is META.yml, no functional
1062 changes in this release
1064 0.46 Wed. May 28, 2008
1065 !! This version now approx. 20-25% !!
1066 !! faster with new Class::MOP 0.57 !!
1068 * Moose::Meta::Class
1069 - some optimizations of the &initialize method
1070 since it is called so often by &meta
1072 * Moose::Meta::Class
1074 - now use the get_all_package_symbols from the
1075 updated Class::MOP, test suite is now 10 seconds
1078 * Moose::Meta::Method::Destructor
1079 - is_needed can now also be called as a class
1080 method for immutablization to check if the
1081 destructor object even needs to be created
1084 * Moose::Meta::Method::Destructor
1085 Moose::Meta::Method::Constructor
1086 - added more descriptive error message to help
1087 keep people from wasting time tracking an error
1088 that is easily fixed by upgrading.
1090 0.45 Saturday, May 24, 2008
1092 - Because of work in Class::MOP 0.57, all
1093 XS based functionality is now optional
1094 and a Pure Perl version is supplied
1095 - the CLASS_MOP_NO_XS environment variable
1096 can now be used to force non-XS versions
1098 - several of the packages have been tweaked
1099 to take care of this, mostly we added
1100 support for the package_name and name
1101 variables in all the Method metaclasses
1102 - before/around/after method modifiers now
1103 support regexp matching of names
1104 (thanks to Takatoshi Kitano)
1105 - tests added for this
1106 - NOTE: this only works for classes, it
1107 is currently not supported in roles,
1108 but, ... patches welcome
1109 - All usage of Carp::confess have been replaced
1110 by Carp::croak in the "keyword" functions since
1111 the stack trace is usually not helpful
1114 - All usage of Carp::confess have been replaced
1115 by Carp::croak in the "keyword" functions since
1116 the stack trace is usually not helpful
1117 - The 'has' keyword for roles now accepts the
1118 same array ref form that Moose.pm does
1119 (has [qw/foo bar/] => (is => 'rw', ...))
1120 - added test for this
1122 * Moose::Meta::Attribute
1123 - trigger on a ro-attribute is no longer an
1124 error, as it's useful to trigger off of the
1127 * Moose::Meta::Class
1128 - added same 'add_package_symbol' fix as in
1132 - does_role now handles non-Moose classes
1134 - added tests for this
1135 - added the 'add_method_modifier' function
1136 (thanks to Takatoshi Kitano)
1138 * Moose::Util::TypeConstraints
1139 - subtypes of parameterizable types now are
1140 themselves parameterizable types
1142 * Moose::Meta::Method::Constructor
1143 - fixed bug where trigger was not being
1144 called by the inlined immutable
1146 - added test for this (thanks to Caelum)
1148 * Moose::Meta::Role::Application::ToInstance
1149 - now uses the metaclass of the instance
1150 (if possible) to create the anon-class
1151 (thanks Jonathan Rockway)
1153 * Moose::Cookbook::Recipe22
1154 - added the meta-attribute trait recipe
1158 - fixed hash-ordering test bug that was
1159 causing occasional cpantester failures
1160 - renamed the t/000_recipe/*.t tests to be
1161 more descriptive (thanks to Sartak)
1163 0.44 Sat. May 10, 2008
1165 - made make_immutable warning cluck to
1166 show where the error is (thanks mst)
1169 - BUILDALL and DEMOLISHALL now call
1170 ->body when looping through the
1171 methods, to avoid the overloaded
1173 - fixed issue where DEMOLISHALL was
1174 eating the $@ values, and so not
1175 working correctly, it still kind of
1176 eats them, but so does vanilla perl
1177 - added tests for this
1179 * Moose::Cookbook::Recipe7
1180 - added new recipe for immutable
1181 functionality (thanks Dave Rolsky)
1183 * Moose::Cookbook::Recipe9
1184 - added new recipe for builder and
1185 lazy_build (thanks Dave Rolsky)
1187 * Moose::Cookbook::Recipe11
1188 - added new recipe for method aliasing
1189 and exclusion with Roles (thanks Dave Rolsky)
1192 - fixed Win32 test failure (thanks spicyjack)
1194 ~ removed Build.PL and Module::Build compat
1195 since Module::Install has done that.
1197 0.43 Wed. April, 30, 2008
1199 drink more coffee before
1200 doing release engineering
1202 - whoops, forgot to do the smolder tests,
1203 and we broke some of the custom meta-attr
1204 modules. This fixes that.
1206 0.42 Mon. April 28, 2008
1207 - some bad tests slipped by, nothing else
1208 changed in this release (cpantesters++)
1210 - upped the Class::MOP dependency to 0.55
1211 since we have tests which need the C3
1214 0.41 Mon. April 28, 2008
1215 ~~ numerous documentation updates ~~
1217 - Changed all usage of die to Carp::croak for better
1218 error reporting (initial patch by Tod Hagan)
1220 ** IMPORTANT NOTE **
1221 - the make_immutable keyword is now deprecated, don't
1222 use it in any new code and please fix your old code
1223 as well. There will be 2 releases, and then it will
1229 - refactored the way inner and super work to avoid
1230 any method/@ISA cache penalty (nothingmuch)
1232 * Moose::Meta::Class
1233 - fixing &new_object to make sure trigger gets the
1234 coerced value (spotted by Charles Alderman on the
1236 - added test for this
1238 * Moose::Meta::Method::Constructor
1239 - immutable classes which had non-lazy attributes were calling
1240 the default generating sub twice in the constructor. (bug
1241 found by Jesse Luehrs, fixed by Dave Rolsky)
1242 - added tests for this (Dave Rolsky)
1243 - fix typo in initialize_body method (nothingmuch)
1245 * Moose::Meta::Method::Destructor
1246 - fix typo in initialize_body method (nothingmuch)
1248 * Moose::Meta::Method::Overriden
1249 Moose::Meta::Method::Augmented
1250 - moved the logic for these into their own
1251 classes (nothingmuch)
1253 * Moose::Meta::Attribute
1254 - inherited attributes may now be extended without
1255 restriction on the type ('isa', 'does') (Sartak)
1256 - added tests for this (Sartak)
1257 - when an attribute property is malformed (such as lazy without
1258 a default), give the name of the attribute in the error
1260 - added the &applied_traits and &has_applied_traits methods
1261 to allow introspection of traits
1262 - added tests for this
1263 - moved 'trait' and 'metaclass' argument handling to here from
1265 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1266 '+foo' syntax) (nothingmuch)
1267 - added tests for this (t0m)
1270 - localize $@ inside DEMOLISHALL to avoid it
1271 eating $@ (found by Ernesto)
1272 - added test for this (thanks to Ernesto)
1274 * Moose::Util::TypeConstraints
1275 - &find_type_constraint now DWIMs when given an
1276 type constraint object or name (nothingmuch)
1277 - &find_or_create_type_constraint superseded with a number of more
1279 - find_or_create_{isa,does}_type_constraint
1280 - find_or_parse_type_constraint
1282 * Moose::Meta::TypeConstraint
1283 Moose::Meta::TypeConstraint::Class
1284 Moose::Meta::TypeConstraint::Role
1285 Moose::Meta::TypeConstraint::Enum
1286 Moose::Meta::TypeConstraint::Union
1287 Moose::Meta::TypeConstraint::Parameterized
1288 - added the &equals method for comparing two type
1289 constraints (nothingmuch)
1290 - added tests for this (nothingmuch)
1292 * Moose::Meta::TypeConstraint
1293 - add the &parents method, which is just an alias to &parent.
1294 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1296 * Moose::Meta::TypeConstraint::Class
1297 - added the class attribute for introspection purposes
1299 - added tests for this
1301 * Moose::Meta::TypeConstraint::Enum
1302 Moose::Meta::TypeConstraint::Role
1303 - broke these out into their own classes (nothingmuch)
1305 * Moose::Cookbook::Recipe*
1306 - fixed references to test file locations in the POD
1307 and updated up some text for new Moose features
1311 - Added &resolve_metaclass_alias, a helper function for finding an actual
1312 class for a short name (e.g. in the traits list)
1314 0.40 Fri. March 14, 2008
1315 - I hate Pod::Coverage
1317 0.39 Fri. March 14, 2008
1319 - documenting the use of '+name' with attributes
1320 that come from recently composed roles. It makes
1321 sense, people are using it, and so why not just
1322 officially support it.
1323 - fixing the 'extends' keyword so that it will not
1324 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1327 - added the perl -Moose=+Class::Name feature to allow
1328 monkeypatching of classes in one liners
1331 - fixing the 'apply_all_roles' keyword so that it will not
1332 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1334 * Moose::Meta::Class
1335 - added ->create method which now supports roles (thanks to jrockway)
1336 - added tests for this
1337 - added ->create_anon_class which now supports roles and caching of
1338 the results (thanks to jrockway)
1339 - added tests for this
1340 - made ->does_role a little more forgiving when it is
1341 checking a Class::MOP era metaclasses.
1343 * Moose::Meta::Role::Application::ToInstance
1344 - it is now possible to pass extra params to be used when
1345 a role is applied to an the instance (rebless_params)
1346 - added tests for this
1348 * Moose::Util::TypeConstraints
1349 - class_type now accepts an optional second argument for a
1350 custom message. POD anotated accordingly (groditi)
1351 - added tests for this
1352 - it is now possible to make anon-enums by passing 'enum' an
1353 ARRAY ref instead of the $name => @values. Everything else
1355 - added tests for this
1358 - making test for using '+name' on attributes consumed
1359 from a role, it works and makes sense too.
1361 * Moose::Meta::Attribute
1362 - fix handles so that it doesn't return nothing
1363 when the method cannot be found, not sure why
1364 it ever did this originally, this means we now
1365 have slightly better support for AUTOLOADed
1367 - added more delegation tests
1368 - adding ->does method to this so as to better
1369 support traits and their introspection.
1370 - added tests for this
1373 - localizing the Data::Dumper configurations so
1374 that it does not pollute others (RT #33509)
1375 - made ->does a little more forgiving when it is
1376 passed Class::MOP era metaclasses.
1378 0.38 Fri. Feb. 15, 2008
1379 * Moose::Meta::Attribute
1380 - fixed initializer to correctly do
1381 type checking and coercion in the
1383 - added tests for this
1386 - fixed some finicky tests (thanks to konobi)
1388 0.37 Thurs. Feb. 14, 2008
1390 - fixed some details in Moose::init_meta
1391 and its superclass handling (thanks thepler)
1392 - added tests for this (thanks thepler)
1393 - 'has' now dies if you don't pass in name
1395 - added the 'make_immutable' keyword as a shortcut
1398 * Moose::Meta::Class
1399 Moose::Meta::Method::Constructor
1400 Moose::Meta::Attribute
1401 - making (init_arg => undef) work here too
1402 (thanks to nothingmuch)
1404 * Moose::Meta::Attribute
1405 Moose::Meta::Method::Constructor
1406 Moose::Meta::Method::Accessor
1407 - make lazy attributes respect attr initializers (rjbs)
1408 - added tests for this
1410 * Moose::Util::TypeConstraints
1411 Moose::Util::TypeConstraints::OptimizedConstraints
1412 Moose::Meta::TypeConstraints
1413 Moose::Meta::Attribute
1414 Moose::Meta::Method::Constructor
1415 Moose::Meta::Method::Accessor
1416 - making type errors use the
1417 assigned message (thanks to Sartak)
1418 - added tests for this
1420 * Moose::Meta::Method::Destructor
1421 - making sure DESTROY gets inlined properly
1422 with successive DEMOLISH calls (thanks to manito)
1424 * Moose::Meta::Attribute
1425 Moose::Meta::Method::Accessor
1426 - fixed handling of undef with type constraints
1428 - added tests for this
1431 - added &get_all_init_args and &get_all_attribute_values
1432 (thanks to Sartak and nothingmuch)
1434 0.36 Sat. Jan. 26, 2008
1436 Moose::Meta::Attribute
1437 - role type tests now support when roles are
1438 applied to non-Moose classes (found by ash)
1439 - added tests for this (thanks to ash)
1440 - couple extra tests to boost code coverage
1442 * Moose::Meta::Method::Constructor
1443 - improved fix for handling Class::MOP attributes
1444 - added test for this
1446 * Moose::Meta::Class
1447 - handled the add_attribute($attribute_meta_object)
1449 - added test for this
1451 0.35 Tues. Jan. 22, 2008
1452 * Moose::Meta::Method::Constructor
1453 - fix to make sure even Class::MOP attributes
1454 are handled correctly (Thanks to Dave Rolsky)
1455 - added test for this (also Dave Rolsky)
1457 * Moose::Meta::Class
1458 - improved error message on _apply_all_roles,
1459 you should now use Moose::Util::apply_all_roles
1460 and you shouldnt have been using a _ prefixed
1461 method in the first place ;)
1463 0.34 Mon. Jan. 21, 2008
1464 ~~~ more misc. doc. fixes ~~~
1465 ~~ updated copyright dates ~~
1467 Moose is now a postmodern object system :)
1468 - (see the POD for details)
1470 * <<Role System Refactoring>>
1471 - this release contains a major reworking and
1472 cleanup of the role system
1473 - 100% backwards compat.
1474 - Role application now restructured into seperate
1475 classes based on type of applicants
1476 - Role summation (combining of more than one role)
1477 is much cleaner and anon-classes are no longer
1478 used in this process
1479 - new Composite role metaclass
1480 - runtime application of roles to instances
1481 is now more efficient and re-uses generated
1482 classes when applicable
1484 * <<New Role composition features>>
1485 - methods can now be excluded from a given role
1487 - methods can now be aliased to another name (and
1488 still retain the original as well)
1490 * Moose::Util::TypeConstraints::OptimizedConstraints
1491 - added this module (see above)
1493 * Moose::Meta::Class
1494 - fixed the &_process_attribute method to be called
1495 by &add_attribute, so that the API is now correct
1497 * Moose::Meta::Method::Accessor
1498 - fixed bug when passing a list of values to
1499 an accessor would get (incorrectly) ignored.
1500 Thanks to Sartak for finding this ;)
1501 - added tests for this (Sartak again)
1503 * Moose::Meta::Method::Accessor
1504 Moose::Meta::Method::Constructor
1505 Moose::Meta::Attribute
1506 Moose::Meta::TypeConstraint
1507 Moose::Meta::TypeCoercion
1508 - lots of cleanup of such things as:
1510 - type constraint handling
1511 - error handling/messages
1512 (thanks to nothingmuch)
1514 * Moose::Meta::TypeConstraint::Parameterizable
1515 - added this module to support the refactor
1516 in Moose::Meta::TypeConstraint::Parameterized
1518 * Moose::Meta::TypeConstraint::Parameterized
1519 - refactored how these types are handled so they
1520 are more generic and not confined to ArrayRef
1524 - shortened some file names for better VMS support (RT #32381)
1526 0.33 Fri. Dec. 14, 2007
1527 !! Moose now loads 2 x faster !!
1528 !! with new Class::MOP 0.49 !!
1530 ++ new oose.pm module to make command line
1531 Moose-ness easier (see POD docs for more)
1533 * Moose::Meta::Class
1535 - several tweaks to take advantage of the
1536 new method map caching in Class::MOP
1538 * Moose::Meta::TypeConstraint::Parameterized
1539 - allow subtypes of ArrayRef and HashRef to
1540 be used as a container (sartak)
1541 - added tests for this
1542 - basic support for coercion to ArrayRef and
1543 HashRef for containers (sartak)
1544 - added tests for this
1546 * Moose::Meta::TypeCoercion
1547 - coercions will now create subtypes as needed
1548 so you can now add coercions to parameterized
1549 types without having to explictly define them
1550 - added tests for this
1552 * Moose::Meta::Method::Accessor
1553 - allow subclasses to decide whether we need
1554 to copy the value into a new variable (sartak)
1556 0.32 Tues. Dec. 4, 2007
1557 * Moose::Util::TypeConstraints
1558 - fixing how subtype aliases of unions work
1559 they should inherit the parent's coercion
1560 - added tests for this
1561 - you can now define multiple coercions on
1562 a single type at different times instead of
1563 having to do it all in one place
1564 - added tests for this
1566 * Moose::Meta::TypeConstraint
1567 - there is now a default constraint of sub { 1 }
1568 instead of Moose::Util::TypeConstraints setting
1571 * Moose::Meta::TypeCoercion
1572 * Moose::Meta::TypeCoercion::Union
1573 - added the &has_coercion_for_type and
1574 &add_type_coercions methods to support the
1575 new features above (although you cannot add
1576 more type coercions for Union types)
1578 0.31 Mon. Nov. 26, 2007
1579 * Moose::Meta::Attribute
1580 - made the +attr syntax handle extending types with
1581 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1582 now works if the original foo is an ArrayRef.
1583 - added tests for this.
1584 - delegation now works even if the attribute does not
1585 have a reader method using the get_read_method_ref
1586 method from Class::MOP::Attribute.
1587 - added tests for this
1588 - added docs for this
1590 * Moose::Util::TypeConstraints
1591 - passing no "additional attribute info" to
1592 &find_or_create_type_constraint will no longer
1593 attempt to create an __ANON__ type for you,
1594 instead it will just return undef.
1595 - added docs for this
1597 0.30 Fri. Nov. 23, 2007
1598 * Moose::Meta::Method::Constructor
1599 -builder related bug in inlined constructor. (groditi)
1601 * Moose::Meta::Method::Accessor
1602 - genereate unnecessary calls to predicates and refactor
1603 code generation for runtime speed (groditi)
1605 * Moose::Util::TypeConstraints
1606 - fix ClassName constraint to introspect symbol table (mst)
1607 - added more tests for this (mst)
1608 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1609 with work correctly.
1610 - added tests for this
1613 - adding the link to Recipie 11 (written by Sartak)
1614 - adding test for SYNOPSIS code
1617 - New tests for builder bug. Upon instantiation, if an
1618 attribute had a builder, no value and was not lazy the
1619 builder default was not getting run, oops. (groditi)
1621 0.29 Tues. Nov. 13, 2007
1622 * Moose::Meta::Attribute
1623 - Fix error message on missing builder method (groditi)
1625 * Moose::Meta::Method::Accessor
1626 - Fix error message on missing builder method (groditi)
1629 - Add test to check for the correct error message when
1630 builder method is missing (groditi)
1632 0.28 Tues. Nov. 13, 2007
1633 - 0.27 packaged incorrectly (groditi)
1635 0.27 Tues. Nov. 13, 2007
1636 * Moose::Meta::Attribute
1637 - Added support for the new builder option (groditi)
1638 - Added support for lazy_build option (groditi)
1639 - Changed slot initialization for predicate changes (groditi)
1641 * Moose::Meta::Method::Accessor
1642 - Added support for lazy_build option (groditi)
1643 - Fix inline methods to work with corrected predicate
1646 * Moose::Meta::Method::Constructor
1647 - Added support for lazy_build option (groditi)
1650 - tests for builder and lazy_build (groditi)
1652 * fixing some misc. bits in the docs that
1653 got mentioned on CPAN Forum & perlmonks
1656 - fixed how required methods are handled
1657 when they encounter overriden or modified
1658 methods from a class (thanks to confound).
1659 - added tests for this
1661 * Moose::Util::TypeConstraint
1662 - fixed the type notation parser so that
1663 the | always creates a union and so is
1664 no longer a valid type char (thanks to
1665 konobi, mugwump and #moose for working
1667 - added more tests for this
1669 0.26 Thurs. Sept. 27, 2007
1672 * Parameterized Types
1673 We now support parameterized collection types, such as:
1674 ArrayRef[Int] # array or integers
1675 HashRef[Object] # a hash with object values
1676 They can also be nested:
1677 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1678 And work with the type unions as well:
1679 ArrayRef[Int | Str] # array of integers of strings
1681 * Better Framework Extendability
1682 Moose.pm is now "extendable" such that it is now much
1683 easier to extend the framework and add your own keywords
1684 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1685 section of the Moose.pm docs.
1688 In an effort to begin documenting some of the various
1689 details of Moose as well as some common idioms, we have
1690 created Moose::Cookbook::Snacks as a place to find
1691 small (easily digestable) nuggets of Moose code.
1694 ~ Several doc updates/cleanup thanks to castaway ~
1696 - converted build system to use Module::Install instead of
1697 Module::Build (thanks to jrockway)
1700 - added all the meta classes to the immutable list and
1701 set it to inline the accessors
1702 - fix import to allow Sub::Exporter like { into => }
1703 and { into_level => } (perigrin)
1704 - exposed and documented init_meta() to allow better
1705 embedding and extending of Moose (perigrin)
1708 - complete re-organization of the test suite
1709 - added some new tests as well
1710 - finally re-enabled the Moose::POOP test since
1711 the new version of DBM::Deep now works again
1714 * Moose::Meta::Class
1715 - fixed very odd and very nasty recursion bug with
1717 - added tests for this (eilara)
1719 * Moose::Meta::Attribute
1720 Moose::Meta::Method::Constructor
1721 Moose::Meta::Method::Accessor
1722 - fixed issue with overload::Overloaded getting called
1723 on non-blessed items. (RT #29269)
1724 - added tests for this
1726 * Moose::Meta::Method::Accessor
1727 - fixed issue with generated accessor code making
1728 assumptions about hash based classes (thanks to dexter)
1730 * Moose::Coookbook::Snacks
1731 - these are bits of documentation, not quite as big as
1732 Recipes but which have no clear place in the module docs.
1733 So they are Snacks! (horray for castaway++)
1735 * Moose::Cookbook::Recipe4
1736 - updated it to use the new ArrayRef[MyType] construct
1737 - updated the accompanying test as well
1739 +++ Major Refactor of the Type Constraint system +++
1740 +++ with new features added as well +++
1742 * Moose::Util::TypeConstraint
1743 - no longer uses package variable to keep track of
1744 the type constraints, now uses the an instance of
1745 Moose::Meta::TypeConstraint::Registry to do it
1746 - added more sophisticated type notation parsing
1748 - added tests for this
1750 * Moose::Meta::TypeConstraint
1751 - some minor adjustments to make subclassing easier
1752 - added the package_defined_in attribute so that we
1753 can track where the type constraints are created
1755 * Moose::Meta::TypeConstraint::Union
1756 - this is now been refactored to be a subclass of
1757 Moose::Meta::TypeConstraint
1759 * Moose::Meta::TypeCoercion::Union
1760 - this has been added to service the newly refactored
1761 Moose::Meta::TypeConstraint::Union and is itself
1762 a subclass of Moose::Meta::TypeCoercion
1764 * Moose::Meta::TypeConstraint::Parameterized
1765 - added this module (taken from MooseX::AttributeHelpers)
1766 to help construct nested collection types
1767 - added tests for this
1769 * Moose::Meta::TypeConstraint::Registry
1770 - added this class to keep track of type constraints
1772 0.25 Mon. Aug. 13, 2007
1774 - Documentation update to reference Moose::Util::TypeConstraints
1775 under 'isa' in 'has' for how to define a new type
1776 (thanks to shlomif).
1778 * Moose::Meta::Attribute
1779 - required attributes now will no longer accept undef
1780 from the constructor, even if there is a default and lazy
1781 - added tests for this
1782 - default subroutines must return a value which passes the
1784 - added tests for this
1786 * Moose::Meta::Attribute
1787 * Moose::Meta::Method::Constructor
1788 * Moose::Meta::Method::Accessor
1789 - type-constraint tests now handle overloaded objects correctly
1790 in the error message
1791 - added tests for this (thanks to EvanCarroll)
1793 * Moose::Meta::TypeConstraint::Union
1794 - added (has_)hand_optimized_constraint to this class so that
1795 it behaves as the regular Moose::Meta::TypeConstraint does.
1798 - large refactoring of this code
1799 - added several more tests
1800 - tests for subtle conflict resolition issues
1801 added, but not currently running
1804 * Moose::Cookbook::Recipe7
1805 - added new recipe for augment/inner functionality
1807 - added test for this
1810 - a formal definition of roles (still in progress)
1813 - utilities for easier working with Moose classes
1814 - added tests for these
1817 - This contains Moose specific test functions
1818 - added tests for these
1820 0.24 Tues. July 3, 2007
1821 ~ Some doc updates/cleanup ~
1823 * Moose::Meta::Attribute
1824 - added support for roles to be given as parameters
1825 to the 'handles' option.
1826 - added tests and docs for this
1827 - the has '+foo' attribute form now accepts changes to
1828 the lazy option, and the addition of a handles option
1829 (but not changing the handles option)
1830 - added tests and docs for this
1833 - required methods are now fetched using find_method_by_name
1834 so that required methods can come from superclasses
1835 - adjusted tests for this
1837 0.23 Mon. June 18, 2007
1838 * Moose::Meta::Method::Constructor
1839 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1840 * Moose::Meta::Class
1841 - Modify make_immutable to work with the new Class::MOP immutable
1842 mechanism + POD + very basic test (groditi)
1843 * Moose::Meta::Attribute
1844 - Fix handles to use goto() so that caller() comes out properly on
1845 the other side (perigrin)
1847 0.22 Thurs. May 31, 2007
1848 * Moose::Util::TypeConstraints
1849 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1850 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1851 prototypes for functions
1852 - added the ClassName type constraint, this checks for strings
1853 which will respond true to ->isa(UNIVERSAL).
1854 - added tests and docs for this
1855 - subtyping just in name now works correctly by making the
1856 default for where be { 1 }
1857 - added test for this
1859 * Moose::Meta::Method::Accessor
1860 - coerce and lazy now work together correctly, thanks to
1861 merlyn for finding this bug
1862 - tests added for this
1863 - fix reader presedence bug in Moose::Meta::Attribute + tests
1866 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1867 a HASH-ref and missed. This produces better error messages then
1868 having it die cause undef is not a HASH.
1869 - added tests for this
1871 0.21 Thursday, May 2nd, 2007
1873 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1874 - modified unimport to remove super and inner along with the rest
1875 - altered unimport tests to handle this
1878 - altered super export to populate SUPER_SLOT
1880 * Moose::Meta::Class
1881 - altered augment and override modifier application to use *_SLOT
1882 - modified tests for these to unimport one test class each to test
1885 - fixed issue where custom attribute metaclasses
1886 where not handled correctly in roles
1887 - added tests for this
1889 * Moose::Meta::Class
1890 - fixed issue where extending metaclasses with
1891 roles would blow up. Thanks to Aankhen`` for
1892 finding this insidious error, and it's solution.
1894 ~~ lots of spelling and grammer fixes in the docs,
1895 many many thanks to rlb3 and Aankhen for these :)
1897 0.20 Friday, April 6th, 2007
1898 >> I messed up the SKIP logic in one test
1899 so this release is just to fix that.
1902 - 'has' now also accepts an ARRAY ref
1903 to create multiple attrs (see docs)
1904 (thanks to konobi for this)
1905 - added tests and docs
1907 0.19 Thurs. April 5th, 2007
1908 ~~ More documentation updates ~~
1910 * Moose::Util::TypeConstraints
1911 - 'type' now supports messages as well
1912 thanks to phaylon for finding this
1913 - added tests for this
1914 - added &list_all_type_constraints and
1915 &list_all_builtin_type_constraints
1916 functions to facilitate introspection.
1918 * Moose::Meta::Attribute
1919 - fixed regexp 'handles' declarations
1920 to build the list of delegated methods
1921 correctly (and not override important
1922 things like &new) thanks to ashleyb
1924 - added tests and docs for this
1925 - added the 'documentation' attributes
1926 so that you can actually document your
1927 attributes and inspect them through the
1929 - added tests and docs for this
1931 * Moose::Meta::Class
1932 - when loading custom attribute metaclasses
1933 it will first look in for the class in the
1934 Moose::Meta::Attribute::Custom::$name, and
1935 then default to just loading $name.
1936 - added tests and docs for this
1938 * Moose::Meta::TypeConstraint
1939 - type constraints now stringify to their names.
1940 - added test for this
1943 - added tests to assure we work with Module::Refresh
1944 - added stricter test skip logic in the Moose POOP
1945 test, ask Rob Kinyon why.
1946 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1948 0.18 Sat. March 10, 2007
1949 ~~ Many, many documentation updates ~~
1952 - We now use Class::MOP::load_class to
1954 - added tests to show types and subtypes
1955 working with Declare::Constraints::Simple
1956 and Test::Deep as constraint engines.
1959 !! You must have Class::MOP 0.37_001 !!
1960 !! for this developer release to work !!
1962 This release was primarily adding the immutable
1963 feature to Moose. An immutable class is one which
1964 you promise not to alter. When you set the class
1965 as immutable it will perform various bits of
1966 memoization and inline certain part of the code
1967 (constructors, destructors and accessors). This
1968 minimizes (and in some cases totally eliminates)
1969 one of Moose's biggest performance hits. This
1970 feature is not on by default, and is 100% optional.
1971 It has several configurable bits as well, so you
1972 can pick and choose to your specific needs.
1974 The changes involved in this were fairly wide and
1975 highly specific, but 100% backwards compatible, so
1976 I am not going to enumerate them here. If you are
1977 truely interested in what was changed, please do
1980 0.17 Tues. Nov. 14, 2006
1981 * Moose::Meta::Method::Accessor
1982 - bugfix for read-only accessors which
1983 are have a type constraint and lazy.
1984 Thanks to chansen for finding it.
1986 0.16 Tues. Nov. 14, 2006
1988 There are some speed improvements in this release,
1989 but they are only the begining, so stay tuned.
1992 - BUILDALL and DEMOLISHALL no longer get
1993 called unless they actually need to be.
1994 This gave us a signifigant speed boost
1995 for the cases when there is no BUILD or
1996 DEMOLISH method present.
1998 * Moose::Util::TypeConstraints
1999 * Moose::Meta::TypeConstraint
2000 - added an 'optimize_as' option to the
2001 type constraint, which allows for a
2002 hand optimized version of the type
2003 constraint to be used when possible.
2004 - Any internally created type constraints
2005 now provide an optimized version as well.
2007 0.15 Sun. Nov. 5, 2006
2009 This version of Moose *must* have Class::MOP 0.36 in order
2010 to work correctly. A number of small internal tweaks have
2011 been made in order to be compatible with that release.
2013 * Moose::Util::TypeConstraints
2014 - added &unimport so that you can clean out
2015 your class namespace of these exported
2018 * Moose::Meta::Class
2019 - fixed minor issue which occasionally
2020 comes up during global destruction
2022 - moved Moose::Meta::Method::Overriden into
2026 - moved Moose::Meta::Role::Method into
2029 * Moose::Meta::Attribute
2030 - changed how we do type checks so that
2031 we reduce the overall cost, but still
2034 - moved accessor generation methods to
2035 Moose::Meta::Method::Accessor to
2036 conform to the API changes from
2039 * Moose::Meta::TypeConstraint
2040 - changed how constraints are compiled
2041 so that we do less recursion and more
2042 iteration. This makes the type check
2044 - moved Moose::Meta::TypeConstraint::Union
2047 * Moose::Meta::Method::Accessor
2048 - created this from methods formerly found in
2049 Moose::Meta::Attribute
2051 * Moose::Meta::Role::Method
2052 - moved this from Moose::Meta::Role
2054 * Moose::Meta::Method::Overriden
2055 - moved this from Moose::Meta::Class
2057 * Moose::Meta::TypeConstraint::Union
2058 - moved this from Moose::Meta::TypeConstraint
2060 0.14 Mon. Oct. 9, 2006
2062 * Moose::Meta::Attribute
2063 - fixed lazy attributes which were not getting
2064 checked with the type constraint (thanks ashley)
2065 - added tests for this
2066 - removed the over-enthusiastic DWIMery of the
2067 automatic ArrayRef and HashRef defaults, it
2068 broke predicates in an ugly way.
2069 - removed tests for this
2071 0.13 Sat. Sept. 30, 2006
2073 This version of Moose *must* have Class::MOP 0.35 in order
2074 to work correctly. A number of small internal tweaks have
2075 been made in order to be compatible with that release.
2078 - Removed the use of UNIVERSAL::require to be a better
2079 symbol table citizen and remove a dependency
2080 (thanks Adam Kennedy)
2082 **~~ removed experimental & undocumented feature ~~**
2083 - commented out the 'method' and 'self' keywords, see the
2084 comments for more info.
2087 - added a FAQ and WTF files to document frequently
2088 asked questions and common problems
2090 * Moose::Util::TypeConstraints
2091 - added GlobRef and FileHandle type constraint
2092 - added tests for this
2094 * Moose::Meta::Attribute
2095 - if your attribute 'isa' ArrayRef of HashRef, and you have
2096 not explicitly set a default, then make the default DWIM.
2097 This will also work for subtypes of ArrayRef and HashRef
2099 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2100 - new test added for this (thanks to ashley)
2103 - added basic support for runtime role composition
2104 but this is still *highly experimental*, so feedback
2105 is much appreciated :)
2106 - added tests for this
2108 * Moose::Meta::TypeConstraint
2109 - the type constraint now handles the coercion process
2110 through delegation, this is to support the coercion
2113 * Moose::Meta::TypeConstraint::Union
2114 - it is now possible for coercions to be performed
2116 - added tests for this (thanks to konobi)
2118 * Moose::Meta::TypeCoercion
2119 - properly capturing error when type constraint
2123 - Scalar::Util 1.18 is bad on Win32, so temporarily
2124 only require version 1.17 for Win32 and cygwin.
2125 (thanks Adam Kennedy)
2127 0.12 Sat. Sept. 1, 2006
2129 - Recipe5 (subtypes & coercion) has been written
2132 - fixed "bad meta" error message to be more descriptive
2133 - fixed &unimport to not remove the &inner and &super
2134 keywords because we need to localize them.
2135 - fixed number of spelling/grammer issues, thanks Theory :)
2137 **~~ experimental & undocumented feature ~~**
2138 - added the method and self keywords, they are basically
2139 just sugar, and they may not stay around.
2142 - added &dump method to easily Data::Dumper
2145 * Moose::Meta::TypeConstraint
2146 - added the &is_a_type_of method to check both the current
2147 and the subtype of a method (similar to &isa with classes)
2150 - this is now a subclass of Class::MOP::Module, and no longer
2151 creates the _role_meta ugliness of before.
2152 - fixed tests to reflect this change
2154 0.11 Wed. July 12, 2006
2156 - added an &unimport method to remove all the keywords
2157 that Moose will import, simply add 'no Moose' to the
2158 bottom of your class file.
2161 - fixed some test failures caused by a forgotten test
2164 0.10 Thurs. July 6, 2006
2166 - improved error message when loading modules so
2167 it is less confusing when you load a role.
2168 - added &calculate_all_roles method to
2169 Moose::Meta::Class and Moose::Meta::Role
2172 This module has been tested against Class::MOP 0.30
2173 but it does not yet utilize the optimizations
2174 it makes available. Stay tuned for that ;)
2176 0.09_03 Fri. June 23, 2006
2177 ++ DEVELOPER RELEASE ++
2179 - 'use strict' and 'use warnings' are no longer
2180 needed in Moose classes, Moose itself will
2181 turn them on for you.
2182 - added tests for this
2183 - moved code from exported subs to private methods
2184 in Moose::Meta::Class
2187 - as with Moose, strict and warnings are
2188 automatically turned on for you.
2189 - added tests for this
2192 - now handles an edge case for override errors
2193 - added tests for this
2194 - added some more edge case tests
2196 0.09_02 Tues. May 16, 2006
2197 ++ DEVELOPER RELEASE ++
2199 - added prototypes to the exported subs
2203 - added prototypes to the exported subs
2206 * Moose::Util::TypeConstraints
2207 - cleaned up prototypes for the subs
2210 0.09_01 Fri. May 12, 2006
2211 ++ DEVELOPER RELEASE ++
2212 - This release works in combination with
2213 Class::MOP 0.29_01, it is a developer
2214 release because it uses the a new
2215 instance sub-protocol and a fairly
2216 complete Role implementation. It has
2217 not yet been optimized, so it slower
2218 the the previous CPAN version. This
2219 release also lacks good updated docs,
2220 the official release will have updated docs.
2223 - refactored the keyword exports
2224 - 'with' now checks Role validaity and
2225 accepts more than one Role at a time
2226 - 'extends' makes metaclass adjustments as
2227 needed to ensure metaclass compatibility
2230 - refactored the keyword exports
2231 - 'with' now checks Role validaity and
2232 accepts more than one Role at a time
2234 * Moose::Util::TypeConstraints
2235 - added the 'enum' keyword for simple
2236 string enumerations which can be used as
2238 - see example of usage in t/202_example.t
2241 - more careful checking of params to new()
2244 - much work done on the role composition
2245 - many new tests for conflict detection
2246 and composition edge cases
2247 - not enough documentation, I suggest
2248 looking at the tests
2250 * Moose::Meta::Instance
2251 - added new Instance metaclass to support
2252 the new Class::MOP instance protocol
2254 * Moose::Meta::Class
2255 - some small changes to support the new
2257 - some small additions to support Roles
2259 * Moose::Meta::Attribute
2260 - some improvements to the accessor generation code
2262 - some small changes to support the new
2264 - (still somewhat) experimental delegation support
2265 with the 'handles' option
2266 - added several tests for this
2267 - no docs for this yet
2269 0.05 Thurs. April 27, 2006
2271 - keywords are now exported with Sub::Exporter
2272 thanks to chansen for this commit
2273 - has keyword now takes a 'metaclass' option
2274 to support custom attribute meta-classes
2275 on a per-attribute basis
2276 - added tests for this
2277 - the 'has' keyword not accepts inherited slot
2278 specifications (has '+foo'). This is still an
2279 experimental feature and probably not finished
2280 see t/038_attribute_inherited_slot_specs.t for
2281 more details, or ask about it on #moose
2282 - added tests for this
2285 - keywords are now exported with Sub::Exporter
2287 * Moose::Utils::TypeConstraints
2288 - reorganized the type constraint hierarchy, thanks
2289 to nothingmuch and chansen for his help and advice
2291 - added some tests for this
2292 - keywords are now exported with Sub::Exporter
2293 thanks to chansen for this commit
2295 * Moose::Meta::Class
2296 - due to changes in Class::MOP, we had to change
2297 construct_instance (for the better)
2299 * Moose::Meta::Attribute
2300 - due to changes in Class::MOP, we had to add the
2301 initialize_instance_slot method (it's a good thing)
2303 * Moose::Meta::TypeConstraint
2304 - added type constraint unions
2305 - added tests for this
2306 - added the is_subtype_of predicate method
2307 - added tests for this
2309 0.04 Sun. April 16th, 2006
2311 - Roles can now consume other roles
2312 - added tests for this
2313 - Roles can specify required methods now with
2314 the requires() keyword
2315 - added tests for this
2318 - ripped out much of it's guts ,.. much cleaner now
2319 - added required methods and correct handling of
2320 them in apply() for both classes and roles
2321 - added tests for this
2322 - no longer adds a does() method to consuming classes
2323 it relys on the one in Moose::Object
2324 - added roles attribute and some methods to support
2325 roles consuming roles
2327 * Moose::Meta::Attribute
2328 - added support for triggers on attributes
2329 - added tests for this
2330 - added support for does option on an attribute
2331 - added tests for this
2333 * Moose::Meta::Class
2334 - added support for attribute triggers in the
2336 - added tests for this
2339 - Moose no longer creates a subtype for your class
2340 if a subtype of the same name already exists, this
2341 should DWIM in 99.9999% of all cases
2343 * Moose::Util::TypeConstraints
2344 - fixed bug where incorrect subtype conflicts were
2346 - added test for this
2349 - this class can now be extended with 'use base' if
2350 you need it, it properly loads the metaclass class now
2351 - added test for this
2353 0.03_02 Wed. April 12, 2006
2355 - you must now explictly use Moose::Util::TypeConstraints
2356 it no longer gets exported for you automatically
2359 - new() now accepts hash-refs as well as key/value lists
2360 - added does() method to check for Roles
2361 - added tests for this
2363 * Moose::Meta::Class
2364 - added roles attribute along with the add_role() and
2366 - added tests for this
2369 - now adds a does() method to consuming classes
2370 which tests the class's hierarchy for roles
2371 - added tests for this
2373 0.03_01 Mon. April 10, 2006
2375 - added new Role recipe (no content yet, only code)
2378 - added 'with' keyword for Role support
2379 - added test and docs for this
2380 - fixed subtype quoting bug
2381 - added test for this
2385 - added test and docs
2387 * Moose::Util::TypeConstraints
2388 - added the message keyword to add custom
2389 error messages to type constraints
2392 - the meta role to support Moose::Role
2393 - added tests and docs
2395 * Moose::Meta::Class
2396 - moved a number of things from Moose.pm
2397 to here, they should have been here
2400 * Moose::Meta::Attribute
2401 - moved the attribute option macros here
2402 instead of putting them in Moose.pm
2404 * Moose::Meta::TypeConstraint
2405 - added the message attributes and the
2407 - added tests and docs for this
2409 0.03 Thurs. March 30, 2006
2411 - added the Moose::Cookbook with 5 recipes,
2412 describing all the stuff Moose can do.
2415 - fixed an issue with &extends super class loading
2416 it now captures errors and deals with inline
2417 packages correctly (bug found by mst, solution
2419 - added super/override & inner/augment features
2420 - added tests and docs for these
2423 - BUILDALL now takes a reference of the %params
2424 that are passed to &new, and passes that to
2427 * Moose::Util::TypeConstraints
2428 - Type constraints now survive runtime reloading
2429 - added test for this
2431 * Moose::Meta::Class
2432 - fixed the way attribute defaults are handled
2433 during instance construction (bug found by chansen)
2435 * Moose::Meta::Attribute
2436 - read-only attributes now actually enforce their
2437 read-only-ness (this corrected in Class::MOP as
2440 0.02 Tues. March 21, 2006
2442 - many more tests, fixing some bugs and
2444 - &extends now loads the base module with
2446 - added UNIVERSAL::require to the
2449 - each new Moose class will also create
2450 and register a subtype of Object which
2451 correspond to the new Moose class.
2452 - the 'isa' option in &has now only
2453 accepts strings, and will DWIM in
2456 * Moose::Util::TypeConstraints
2457 - added type coercion features
2458 - added tests for this
2459 - added support for this in attributes
2460 and instance construction
2462 - type construction no longer creates a
2463 function, it registers the type instead.
2464 - added several functions to get the
2468 - BUILDALL and DEMOLISHALL were broken
2469 because of a mis-named hash key, Whoops :)
2471 * Moose::Meta::Attribute
2472 - adding support for coercion in the
2473 autogenerated accessors
2475 * Moose::Meta::Class
2476 - adding support for coercion in the
2477 instance construction
2479 * Moose::Meta::TypeConstraint
2480 * Moose::Meta::TypeCoercion
2481 - type constraints and coercions are now
2482 full fledges meta-objects
2484 0.01 Wed. March 15, 2006
2485 - Moooooooooooooooooose!!!