1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
5 - Fix metaclass incompatibility errors when extending a vanilla perl
6 class which isa Moose class with a metaclass role applied (t0m)
9 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
10 - Merged these documents into what is now Moose::Manual::FAQ
13 - Moved to Moose::Manual::Unsweetened
15 * Moose::Cookbook::Basics::Recipes 9-12
16 - Renamed to be 8-11, since recipe 8 did not exist
19 - Make Moose::Exporter import strict and warnings into packages
23 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
24 methods during global destruction (doy)
27 * Moose::Meta::Role::Application::ToClass
28 - Track the Role::Application objects created during class-role
33 - Add explicit use of Devel::GlobalDestruction and Sub::Name
37 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
38 or not we are currently in global destruction (doy)
39 - Add explicit use of Devel::GlobalDestruction and Sub::Name
42 * Moose::Cookbook::FAQ
43 - Reworked much of the existing content to be more useful to
44 modern Moose hackers (Sartak)
47 - Depend on Class::MOP 0.83 instead of 0.82_01. It seems that if
48 we use a dev version number there CPAN.pm will not follow the
51 0.76 Mon, April 27, 2009
52 * Moose::Meta::TypeConstraint
53 - Do not run coercions in coerce() if the value already passes the type
56 * Moose::Meta::TypeConstraint::Class
57 - In validation error messages, specifically say that the value is not
58 an instance of the class. This should alleviate some frustrating
59 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
61 * Moose::Meta::Role::Application::ToClass
62 - Revert the class-overrides-role warning in favor of a solution outside
63 of the Moose core (Sartak)
66 - Make Test::Output optional again, since it's only used in a few files
69 0.75_01 Thu, April 23, 2009
70 * Moose::Meta::Role::Application::ToClass
71 - Moose now warns about each class overriding methods from roles it
75 - Warnings tests have standardized on Test::Output which is now an
76 unconditionally dependency (Sartak)
79 - Changes to immutabilization to work with Class::MOP 0.82_01+.
81 0.75 Mon, April 20, 2009
84 - Move validation of not inheriting from roles from Moose::extends to
85 Moose::Meta::Class::superclasses (doy)
88 - add ensure_all_roles() function to encapsulate the common "apply this
89 role unless the object already does it" pattern (hdp)
92 - Users can now select a different metaclass with the "-metaclass"
93 option to import, for classes and roles (Sartak)
96 - Make method_metaclass an attr so that it can accept a metarole
99 0.74 Tue, April 7, 2009
101 * Moose::Meta::Method::Destructor
102 - Include stack traces in the deprecation warnings.
106 - Removed the long-deprecated _apply_all_roles method.
108 * Moose::Meta::TypeConstraint
109 - Removed the long-deprecated union method.
112 0.73_02 Mon, April 6, 2009
113 * More deprecations and renamings
114 - Moose::Meta::Method::Constructor
115 - initialize_body => _initialize_body (this is always called
116 when an object is constructed)
119 - The DEMOLISHALL method could throw an exception during global
120 destruction, meaning that your class's DEMOLISH methods would
121 not be properly called. Reported by t0m.
123 * Moose::Meta::Method::Destructor
124 - Destructor inlining was totally broken by the change to the
125 is_needed method in 0.72_01. Now there is a test for this
126 feature, and it works again.
129 - Bold the word 'not' in the POD for find_meta (t0m)
131 0.73_01 Sun, April 5, 2009
133 - Call user_class->meta in fewer places, with the eventual goal
134 of allowing the user to rename or exclude ->meta
135 altogether. Instead uses Class::MOP::class_of. (Sartak)
137 * Moose::Meta::Method::Accessor
138 - If an attribute had a lazy default, and that value did not
139 pass the attribute's type constraint, it did not get the
140 message from the type constraint, instead using a generic
141 message. Test provided by perigrin.
143 * Moose::Util::TypeConstraints
144 - Add duck_type keyword. It's sugar over making sure an object
145 can() a list of methods. This is easier than jrockway's
146 suggestion to fork all of CPAN. (perigrin)
147 - add tests and documentation (perigrin)
150 - Document the fact that init_meta() returns the target class's
151 metaclass object. (hdp)
153 * Moose::Cookbook::Extending::Recipe1
154 * Moose::Cookbook::Extending::Recipe2
155 * Moose::Cookbook::Extending::Recipe3
156 * Moose::Cookbook::Extending::Recipe4
157 - Make init_meta() examples explicitly return the metaclass and
158 point out this fact. (hdp)
160 * Moose::Cookbook::Basics::Recipe12
161 - A new recipe, creating a custom meta-method class.
163 * Moose::Cookbook::Meta::Recipe6
164 - A new recipe, creating a custom meta-method class.
167 * Moose::Meta::Method::Constructor
168 - Attribute triggers no longer receive the meta-attribute object
169 as an argument in any circumstance. Previously, triggers
170 called during instance construction were passed the
171 meta-attribute, but triggers called by normal accessors were
172 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
174 * Moose::Manual::Attributes
175 - Remove references to triggers receving the meta-attribute object as an
178 * Moose::Cookbook::FAQ
179 - Remove recommendation for deprecated Moose::Policy and
180 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
183 * Many methods have been renamed with a leading underscore, and a
184 few have been deprecated entirely. The methods with a leading
185 underscore are consider "internals only". People writing
186 subclasses or extensions to Moose should feel free to override
187 them, but they are not for "public" use.
190 - check_metaclass_compatibility => _check_metaclass_compatibility
192 - Moose::Meta::Method::Accessor
193 - initialize_body => _initialize_body (this is always called
194 when an object is constructed)
195 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
197 - Moose::Meta::Method::Constructor
198 - initialize_body => _initialize_body (this is always called
199 when an object is constructed)
200 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
201 - attributes => _attributes (now inherited from parent)
202 - meta_instance => _meta_instance (now inherited from parent)
205 - alias_method is deprecated. Use add_method
207 0.73 Fri, March 29, 2009
208 * No changes from 0.72_01.
210 0.72_01 Thu, March 26, 2009
212 - Almost every module has complete API documentation. A few
213 methods (and even whole classes) have been intentionally
214 excluded pending some rethinking of their APIs.
216 * Moose::Util::TypeConstraints
217 - Calling subtype with a name as the only argument is now an
218 exception. If you want an anonymous subtype do:
220 my $subtype = subtype as 'Foo';
222 * Moose::Cookbook::Meta::Recipe7
223 - A new recipe, creating a custom meta-instance class.
225 * Moose::Cookbook::Basics::Recipe5
226 - Fix various typos and mistakes. Includes a patch from Radu
229 * Moose::Cookbook::Basics::Recipe9
230 - Link to this recipe from Moose.pm's builder blurb
233 - When wrapping a function with a prototype, Moose::Exporter now
234 makes sure the wrapped function still has the same
235 prototype. (Daisuke Maki)
237 * Moose::Meta::Attribute
238 - Allow a subclass to set lazy_build for an inherited
242 - Explicitly depend on Data::OptList. We already had this dependency
243 via Sub::Exporter, but since we're using it directly we're
244 better off with it listed. (Sartak)
246 * Moose::Meta::Method::Constructor
247 - Make it easier to subclass the inlining behaviour. (Ash
250 * Moose::Manual::Delta
251 - Details significant changes in the history of Moose, along
252 with recommended workarounds.
254 * Moose::Manual::Contributing
255 - Contributor's guide to Moose.
257 * Moose::Meta::Method::Constructor
258 - The long-deprecated intialize_body method has been removed
259 (yes, spelled like that).
261 * Moose::Meta::Method::Destructor
262 - This is_needed method is now always a class method.
265 - Changes to the internals of how make_immutable works to match
266 changes in latest Class::MOP.
268 0.72 Mon, February 23, 2009
270 * Moose::Meta::Method::Constructor
271 - A mutable class accepted Foo->new(undef) without complaint,
272 while an immutable class would blow up with an unhelpful
273 error. Now, in both cases we throw a helpful error
274 instead. Reported by doy.
276 0.71_01 Sun, February 22, 2009
278 - Hopefully fixed some POD errors in a few recipes that caused
279 them to display weird on search.cpan.org.
281 * Moose::Util::TypeConstraints
282 - Calling type or subtype without the sugar helpers (as, where,
283 message) is now deprecated.
284 - The subtype function tried hard to guess what you meant, but
285 often got it wrong. For example:
287 my $subtype = subtype as 'ArrayRef[Object]';
289 This caused an error in the past, but now works as you'd
293 - Make sure Moose.pm is loaded before calling
294 Moose->throw_error. This wasn't normally an issue, but could
295 bite you in weird cases.
297 0.71 Thu, February 19, 2009
298 * Moose::Cookbook::Basics::Recipe11
299 - A new recipe which demonstrates the use of BUILDARGS and
302 * Moose::Cookbook::Roles::Recipe3
303 - A new recipe, applying a role to an object instance. (Dave
307 - Allow overriding specific keywords from "also" packages. (doy)
310 - Replace hardcoded cookbook tests with Test::Inline to ensure
311 the tests match the actual code in the recipes. (Dave Rolsky)
314 - Working on the above turned up a number of little bugs in the
315 recipe code. (Dave Rolsky)
317 * Moose::Util::TypeConstraints::Optimized
318 - Just use Class::MOP for the optimized ClassName check. (Dave
321 0.70 Sat, February 14, 2009
322 * Moose::Util::TypeConstraints
323 - Added the RoleName type (stevan)
324 - added tests for this (stevan)
326 * Moose::Cookbook::Basics::Recipe3
327 - Updated the before qw[left right] sub to be a little more
328 defensive about what it accepts (stevan)
329 - added more tests to t/000_recipies/basics/003_binary_tree.t
333 - We now always call DEMOLISHALL, even if a class does not
334 define DEMOLISH. This makes sure that method modifiers on
335 DEMOLISHALL work as expected. (doy)
336 - added tests for this (EvanCarroll)
338 * Moose::Util::MetaRole
339 - Accept roles for the wrapped_method_metaclass (rafl)
340 - added tests for this (rafl)
342 * Moose::Meta::Attribute
343 - We no longer pass the meta-attribute object as a final
344 argument to triggers. This actually changed for inlined code a
345 while back, but the non-inlined version and the docs were
349 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
350 they require 0.11. (Dave Rolsky)
353 - Lots of small changes to the manual, cookbook, and
354 elsewhere. These were based on feedback from various
355 users, too many to list here. (Dave Rolsky)
357 0.69 Thu, February 12, 2009
359 - Make some keyword errors use throw_error instead of croak
360 since Moose::Exporter wraps keywords now (Sartak)
363 - Revised every recipe for style and clarity. Also moved some
364 documentation out of cookbook recipes and into Moose::Manual
365 pages. This work was funded as part of the Moose docs grant
366 from TPF. (Dave Rolsky)
368 * Moose::Meta::Method::Delegation
369 - If the attribute doing the delegation was not populated, the
370 error message did not specify the attribute name
373 0.68 Wed, February 4, 2009
375 - Many spelling, typo, and formatting fixes by daxim.
377 * Moose::Manual::Attributes
378 - The NAME section in the POD used "Attribute" so search.cpan
379 didn't resolve links from other documents properly.
381 * Moose::Meta::Method::Overriden
382 - Now properly spelled as Overridden. Thanks to daxim for
385 0.67 Tue, February 3, 2009
387 - Lots of little typo fixes and a few clarifications. Several
388 pages didn't have proper titles, and so weren't actually
389 visible on search.cpan.org. Thanks to hanekomu for a variety
390 of fixes and formatting improvements.
392 0.66 Tue, February 3, 2009
394 - This is a brand new, extensive manual for Moose. This aims to
395 provide a complete introduction to all of Moose's
396 features. This work was funded as part of the Moose docs grant
397 from TPF. (Dave Rolsky)
399 * Moose::Meta::Attribute
400 - Added a delegation_metaclass method to replace a hard-coded
401 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
403 * Moose::Util::TypeConstraints
404 - If you created a subtype and passed a parent that Moose didn't
405 know about, it simply ignored the parent. Now it automatically
406 creates the parent as a class type. This may not be what you
407 want, but is less broken than before. (Dave Rolsky)
409 * Moose::Util::TypeConstraints
410 - This module tried throw errors by calling Moose->throw_error,
411 but it did not ensure that Moose was loaded first. This could
412 cause very unhelpful errors when it tried to throw an error
413 before Moose was loaded. (Dave Rolsky)
415 * Moose::Util::TypeConstraints
416 - You could declare a name with subtype such as "Foo!Bar" that
417 would be allowed, but if you used it in a parameterized type
418 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
419 vetting on names created via the sugar functions, so that they
420 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
422 0.65 Thu, January 22, 2008
423 * Moose and Moose::Meta::Method::Overridden
424 - If an overridden method called super(), and then the
425 superclass's method (not overridden) _also_ called super(),
426 Moose went into an endless recursion loop. Test provided by
427 Chris Prather. (Dave Rolsky)
429 * Moose::Meta::TypeConstraint
430 - All methods are now documented. (gphat)
432 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
433 - Fixed some bogus failures that occurred because we tried to
434 validate filesystem paths in a very ad-hoc and
435 not-quite-correct way. (Dave Rolsky)
437 * Moose::Util::TypeConstraints
438 - Added maybe_type to exports. See docs for details. (rjbs)
441 - Added Moose::Util::TypeConstraints to the SEE ALSO
445 - Methods created via an attribute can now fulfill a "requires"
446 declaration for a role. (nothingmuch)
448 * Moose::Meta::Method::*
449 - Stack traces from inlined code will now report its line and
450 file as being in your class, as opposed to in Moose
453 0.64 Wed, December 31, 2008
454 * Moose::Meta::Method::Accessor
455 - Always inline predicate and clearer methods (Sartak)
457 * Moose::Meta::Attribute
458 - Support for parameterized traits (Sartak)
459 - verify_against_type_constraint method to avoid duplication
460 and enhance extensibility (Sartak)
463 - Tests (but no support yet) for parameterized traits (Sartak)
466 - Require Class::MOP 0.75+, which has the side effect of making
467 sure we work on Win32. (Dave Rolsky)
469 0.63 Mon, December 8, 2008
471 - Some small grammar tweaks and bug fixes in non-Moose example
474 0.62_02 Fri, December 5, 2008
475 * Moose::Meta::Role::Application::ToClass
476 - When a class does not provide all of a role's required
477 methods, the error thrown now mentions all of the missing
478 methods, as opposed to just the first one found. Requested by
479 Curtis Poe (RT #41119). (Dave Rolsky)
481 * Moose::Meta::Method::Constructor
482 - Moose will no longer inline a constructor for your class
483 unless it inherits its constructor from Moose::Object, and
484 will warn when it doesn't inline. If you want to force
485 inlining anyway, pass "replace_constructor => 1" to
486 make_immutable. Addresses RT #40968, reported by Jon
487 Swartz. (Dave Rolsky)
488 - The quoting of default values could be broken if the default
489 contained a single quote ('). Now we use quotemeta to escape
490 anything potentially dangerous in the defaults. (Dave Rolsky)
492 0.62_01 Wed, December 3, 2008
494 - use the method->execute API for BUILDALL
495 and DEMOLISHALL (Sartak)
497 * Moose::Util::TypeConstraints
498 - We now make all the type constraint meta classes immutable
499 before creating the default types provided by Moose. This
500 should make loading Moose a little faster. (Dave Rolsky)
502 0.62 Wed November 26, 2008
503 * Moose::Meta::Role::Application::ToClass
504 Moose::Meta::Role::Application::ToRole
505 - fixed issues where excluding and aliasing the
506 same methods for a single role did not work
507 right (worked just fine with multiple
509 - added test for this (stevan)
511 * Moose::Meta::Role::Application::RoleSummation
512 - fixed the error message when trying to compose
513 a role with a role it excludes (Sartak)
516 - Catch another case where recursion caused the value
517 of $CALLER to be stamped on (t0m)
518 - added test for this (t0m)
521 - Remove the make_immutable keyword, which has been
522 deprecated since April. It breaks metaclasses that
523 use Moose without no Moose (Sartak)
525 * Moose::Meta::Attribute
526 - Removing an attribute from a class now also removes delegation
527 (handles) methods installed for that attribute (t0m)
528 - added test for this (t0m)
530 * Moose::Meta::Method::Constructor
531 - An attribute with a default that looked like a number (but was
532 really a string) would accidentally be treated as a number
533 when the constructor was made immutable (perigrin)
534 - added test for this (perigrin)
537 - create method for constructing a role
539 - added test for this (Sartak)
540 - anonymous roles! (Sartak)
541 - added test for this (Sartak)
544 - more consistent error messages (Sartak)
546 * Moose::Cookbook::Roles::Recipe1
547 - attempt to explain why a role that just requires
548 methods is useful (Sartak)
550 0.61 Fri November 7, 2008
551 * Moose::Meta::Attribute
552 - When passing a role to handles, it will be loaded if necessary
556 - Method objects returned by get_method (and other methods)
557 Could end up being returned without an associated_metaclass
558 attribute. Removing get_method_map, which is provided by
559 Class::MOP::Class, fixed this. The Moose version did nothing
560 different from its parent except introduce a bug. (Dave Rolsky)
561 - added tests for this (jdv79)
564 - Added a $VERSION to all .pm files which didn't have one. Fixes
565 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
567 * Moose::Cookbook::Basics::Recipe4
568 * Moose::Cookbook::Basics::Recipe6
569 - These files had spaces on the first line of the SYNOPSIS, as
570 opposed to a totally empty line. According to RT #40432, this
571 confuses POD parsers. (Dave Rolsky)
573 0.60 Fri October 24, 2008
575 - Passing "-traits" when loading Moose caused the Moose.pm
576 exports to be broken. Reported by t0m. (Dave Rolsky)
577 - Tests for this bug. (t0m)
580 - Change resolve_metaclass alias to use the new
581 load_first_existing_class function. This makes it a lot
582 simpler, and also around 5 times faster. (t0m)
583 - Add caching to resolve_metaclass_alias, which gives an order
584 of magnitude speedup to things which repeatedly call the
585 Moose::Meta::Attribute->does method, notably MooseX::Storage
588 * Moose::Util::TypeConstraint
589 - Put back the changes for parameterized constraints that
590 shouldn't have been removed in 0.59. We still cannot parse
591 them, but MooseX modules can create them in some other
592 way. See the 0.58 changes for more details. (jnapiorkowski)
593 - Changed the way subtypes are created so that the job is
594 delegated to a type constraint parent. This clears up some
595 hardcoded checking and should allow correct subtypes of
596 Moose::Meta::Type::Constraint. Don't rely on this new API too
597 much (create_child_type) because it may go away in the
598 future. (jnapiorkowski)
600 * Moose::Meta::TypeConstraint::Union
601 - Type constraint names are sorted as strings, not numbers.
604 * Moose::Meta::TypeConstraint::Parameterizable
605 - New parameterize method. This can be used as a factory method
606 to make a new type constraint with a given parameterized
607 type. (jnapiorkowski)
608 - added tests (jnapiorkowski)
610 0.59 Tue October 14, 2008
612 - Add abridged documentation for builder/default/initializer/
613 predicate, and link to more details sections in
614 Class::MOP::Attribute. (t0m)
616 * Moose::Util::TypeConstraints
617 - removed prototypes from all but the &-based stuff (mst)
619 * Moose::Util::TypeConstraints
620 - Creating a anonymous subtype with both a constraint and a
621 message failed with a very unhelpful error, but should just
622 work. Reported by t0m. (Dave Rolsky)
625 - Some tests that used Test::Warn if it was available failed
626 with older versions of Test::Warn. Reported by Fayland. (Dave
628 - Test firing behavior of triggers in relation to builder/default/
630 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
631 kinds of supported type. (t0m)
634 - In create(), do not pass "roles" option to the superclass
635 - added related test that creates an anon metaclass with
638 * Moose::Meta::TypeConstraint::Class
639 * Moose::Meta::TypeConstraint::Role
640 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
641 other types (as per change in 0.55_02). (t0m)
643 * Moose::Meta::TypeConstraint::Registry
644 - Fix warning when dealing with unknown type names (t0m)
646 * Moose::Util::TypeConstraints
647 - Reverted changes from 0.58 related to handle parameterized
648 types. This caused random failures on BSD and Win32 systems,
649 apparently related to the regex engine. This means that Moose
650 can no longer parse structured type constraints like
651 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
652 supported in a slightly different way via MooseX::Types some
653 time in the future. (Dave Rolsky)
655 0.58 Sat September 20, 2008
656 !! This release has an incompatible change regarding !!
657 !! how roles add methods to a class !!
659 * Roles and role application
660 ! Roles now add methods by calling add_method, not
661 alias_method. They make sure to always provide a method
662 object, which will be cloned internally. This means that it is
663 now possible to track the source of a method provided by a
664 role, and even follow its history through intermediate roles.
666 This means that methods added by a role now show up when
667 looking at a class's method list/map. (Dave Rolsky)
670 - From this release on, we'll try to maintain a list of
671 conflicting modules, and warn you if you have one
672 installed. For example, this release conflicts with ...
673 - MooseX::Singleton <= 0.11
674 - MooseX::Params::Validate <= 0.05
677 In general, we try to not break backwards compatibility for
678 most Moose users, but MooseX modules and other code which
679 extends Moose's metaclasses is often affected by very small
680 changes in the Moose internals.
682 * Moose::Meta::Method::Delegation
683 * Moose::Meta::Attribute
684 - Delegation methods now have their own method class. (Dave
687 * Moose::Meta::TypeConstraint::Parameterizable
688 - Added a new method 'parameterize' which is basically a factory
689 for the containing constraint. This makes it easier to create
690 new types of parameterized constraints. (jnapiorkowski)
692 * Moose::Meta::TypeConstraint::Union
693 - Changed the way Union types canonicalize their names to follow
694 the normalized TC naming rules, which means we strip all
695 whitespace. (jnapiorkowski)
697 * Moose::Util::TypeConstraints
698 - Parameter and Union args are now sorted, this makes Int|Str
699 the same constraint as Str|Int. (jnapiorkowski)
700 - Changes to the way Union types are parsed to more correctly
701 stringify their names. (jnapiorkowski)
702 - When creating a parameterized type, we now use the new
703 parameterize method. (jnapiorkowski)
704 - Incoming type constraint strings are now normalized to remove
705 all whitespace differences. (jnapiorkowski)
706 - Changed the way we parse type constraint strings so that we now
707 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
708 constraints. This lays the foundation for more flexible type
709 constraint implementations.
711 * Tests and docs for all the above. (jnapiorkowski)
715 - Moose::Exporter will no longer remove a subroutine that the
716 exporting package re-exports. Moose re-exports the
717 Carp::confess function, among others. The reasoning is that we
718 cannot know whether you have also explicitly imported those
719 functions for your own use, so we err on the safe side and
720 always keep them. (Dave Rolsky)
721 - added tests for this (rafl)
724 - Changes to how we fix metaclass compatibility that are much
725 too complicated to go into. The summary is that Moose is much
726 less likely to complain about metaclass incompatibility
727 now. In particular, if two metaclasses differ because
728 Moose::Util::MetaRole was used on the two corresponding
729 classes, then the difference in roles is reconciled for the
730 subclass's metaclass. (Dave Rolsky)
731 - Squashed an warning in _process_attribute (thepler)
734 - throw exceptions (sooner) for invalid attribute names (thepler)
735 - added tests for this (thepler)
737 * Moose::Util::MetaRole
738 - If you explicitly set a constructor or destructor class for a
739 metaclass object, and then applied roles to the metaclass,
740 that explicitly set class would be lost and replaced with the
744 * Moose::Meta::Attribute
745 * Moose::Meta::Method
748 * Moose::Error::Default
749 * Moose::Error::Croak
750 * Moose::Error::Confess
751 - All instances of confess() changed to use overridable
752 C<throw_error> method. This method ultimately calls a class
753 constructor, and you can change the class being called. In
754 addition, errors now pass more information than just a string.
755 The default C<error_class> behaves like C<Carp::confess>, so
756 the behavior is not visibly different for end users.
758 0.57 Wed September 3, 2008
760 - A new bit of doc intended to introduce folks familiar with
761 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
764 - Shows examples of two classes, each done first with and then
765 without Moose. This makes a nice parallel to
766 Moose::Intro. (Dave Rolsky)
768 * Moose::Util::TypeConstraints
769 - Fixed a bug in find_or_parse_type_constraint so that it
770 accepts a Moose::Meta::TypeConstraint object as the parent
771 type, not just a name (jnapiorkowski)
772 - added tests (jnapiorkowski)
775 - If Sub::Name was not present, unimporting failed to actually
776 remove some sugar subs, causing test failures (Dave Rolsky)
778 0.56 Mon September 1, 2008
779 For those not following the series of dev releases, there are
780 several major changes in this release of Moose.
781 ! Moose::init_meta should now be called as a method. See the
784 - Major performance improvements by nothingmuch.
786 - New modules for extension writers, Moose::Exporter and
787 Moose::Util::MetaRole by Dave Rolsky.
789 - Lots of doc improvements and additions, especially in the
794 * Removed all references to the experimental-but-no-longer-needed
795 Moose::Meta::Role::Application::ToMetaclassInstance.
797 * Require Class::MOP 0.65.
799 0.55_04 Sat August 30, 2008
800 * Moose::Util::MetaRole
801 * Moose::Cookbook::Extending::Recipe2
802 - This simplifies the application of roles to any meta class, as
803 well as the base object class. Reimplemented metaclass traits
804 using this module. (Dave Rolsky)
806 * Moose::Cookbook::Extending::Recipe1
807 - This a new recipe, an overview of various ways to write Moose
808 extensions (Dave Rolsky)
810 * Moose::Cookbook::Extending::Recipe3
811 * Moose::Cookbook::Extending::Recipe4
812 - These used to be Extending::Recipe1 and Extending::Recipe2,
815 0.55_03 Fri August 29, 2008
816 * No changes from 0.55_02 except increasing the Class::MOP
817 dependency to 0.64_07.
819 0.55_02 Fri August 29, 2008
820 * Makefile.PL and Moose.pm
821 - explicitly require Perl 5.8.0+ (Dave Rolsky)
823 * Moose::Util::TypeConstraints
824 - Fix warnings from find_type_constraint if the type is not
827 * Moose::Meta::TypeConstraint
828 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
829 return false if the type you specify cannot be found in the
830 type registry, rather than throwing an unhelpful and
831 coincidental exception. (t0m).
832 - added docs & test for this (t0m)
834 * Moose::Meta::TypeConstraint::Registry
835 - add_type_constraint now throws an exception if a parameter is
837 - added docs & test for this (t0m)
839 * Moose::Cookbook::FAQ
840 - Added a faq entry on the difference between "role" and "trait"
844 - Fixed a bug that caused role composition to not see a required
845 method when that method was provided by another role being
846 composed at the same time. (Dave Rolsky)
847 - test and bug finding (tokuhirom)
849 0.55_01 Wed August 20, 2008
851 !! Calling Moose::init_meta as a function is now !!
852 !! deprecated. Please see the Moose.pm docs for details. !!
854 * Moose::Meta::Method::Constructor
855 - Fix inlined constructor so that values produced by default
856 or builder methods are coerced as required. (t0m)
857 - added test for this (t0m)
859 * Moose::Meta::Attribute
860 - A lazy attribute with a default or builder did not attempt to
861 coerce the default value. The immutable code _did_
863 - added test for this (t0m)
866 - This is a new helper module for writing "Moose-alike"
867 modules. This should make the lives of MooseX module authors
868 much easier. (Dave Rolsky)
871 * Moose::Cookbook::Meta::Recipe5
872 - Implemented metaclass traits (and wrote a recipe for it):
874 use Moose -traits => 'Foo'
876 This should make writing small Moose extensions a little
879 * Moose::Cookbook::Basics::Recipe1
880 - Removed any examples of direct hashref access, and applied an
881 editorial axe to reduce verbosity. (Dave Rolsky)
883 * Moose::Cookbook::Basics::Recipe1
884 - Also applied an editorial axe here. (Dave Rolsky)
887 * Moose::Cookbook::Extending::Recipe1
888 * Moose::Cookbook::Extending::Recipe2
889 - Rewrote extending and embedding moose documentation and
890 recipes to use Moose::Exporter (Dave Rolsky)
894 - These two modules now warn when you load them from the main
895 package "main" package, because we will not export sugar to
896 main. Previously it just did nothing. (Dave Rolsky)
899 - Now provide an init_meta method just like Moose.pm, and you
900 can call this to provide an alternate role metaclass. (Dave
901 Rolsky and nothingmuch)
902 - get_method_map now respects the package cache flag (nothingmuch)
905 - Two new methods - add_method and wrap_method_body
909 - Optimizations including allowing constructors to accept hash
910 refs, making many more classes immutable, and making
911 constructors immutable. (nothingmuch)
913 0.55 Sun August 3, 2008
914 * Moose::Meta::Attribute
915 - breaking down the way 'handles' methods are
916 created so that the process can be more easily
917 overridden by subclasses (stevan)
919 * Moose::Meta::TypeConstraint
920 - fixing what is passed into a ->message with
921 the type constraints (RT #37569)
922 - added tests for this (Charles Alderman)
924 * Moose::Util::TypeConstraints
925 - fix coerce to accept anon types like subtype can (mst)
928 - reorganized the recipes into sections - Basics, Roles, Meta,
929 Extending - and wrote abstracts for each section (Dave Rolsky)
931 * Moose::Cookbook::Basics::Recipe10
932 - A new recipe that demonstrates operator overloading
933 in combination with Moose. (bluefeet)
935 * Moose::Cookbook::Meta::Recipe1
936 - an introduction to what meta is and why you'd want to make
937 your own metaclass extensions (Dave Rolsky)
939 * Moose::Cookbook::Meta::Recipe4
940 - a very simple metaclass example (Dave Rolsky)
942 * Moose::Cookbook::Extending::Recipe1
943 - how to write a Moose-alike module to use your own object base
946 * Moose::Cookbook::Extending::Recipe2
947 - how to write modules with an API just like C<Moose.pm> (Dave
951 - Tons of fixes, both syntactical and grammatical (Dave
952 Rolsky, Paul Fenwick)
954 0.54 Thurs. July 3, 2008
955 ... this is not my day today ...
957 * Moose::Meta::Attribute
958 - fixed legal_options_for_inheritance such that
959 clone_and_inherit options still works for
960 Class::MOP::Attribute objects and therefore
961 does not break MooseX::AttributeHelpers
964 0.53 Thurs. July 3, 2008
965 * Whoops, I guess I should run 'make manifest' before
966 actually releasing the module. No actual changes
967 in this release, except the fact that it includes
968 the changes that I didn't include in the last
971 0.52 Thurs. July 3, 2008
973 - added "FEATURE REQUESTS" section to the Moose docs
974 to properly direct people (stevan) (RT #34333)
975 - making 'extends' croak if it is passed a Role since
976 this is not ever something you want to do
977 (fixed by stevan, found by obra)
978 - added tests for this (stevan)
981 - adding support for DOES (as in UNIVERSAL::DOES)
983 - added test for this
985 * Moose::Meta::Attribute
986 - added legal_options_for_inheritance (wreis)
987 - added tests for this (wreis)
989 * Moose::Cookbook::Snacks::*
990 - removed some of the unfinished snacks that should
991 not have been released yet. Added some more examples
992 to the 'Keywords' snack. (stevan)
994 * Moose::Cookbook::Style
995 - added general Moose "style guide" of sorts to the
996 cookbook (nothingmuch) (RT #34335)
999 - added more BUILDARGS tests (stevan)
1001 0.51 Thurs. Jun 26, 2008
1003 - add unimport so "no Moose::Role" actually does
1006 * Moose::Meta::Role::Application::ToRole
1007 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1008 order to provide its own implementation, that method still got
1009 added to the list of required methods for consumers of
1010 RoleB. Now an aliased method is only added to the list of
1011 required methods if the role doing the aliasing does not
1012 provide its own implementation. See Recipe 11 for an example
1013 of all this. (Dave Rolsky)
1014 - added tests for this
1016 * Moose::Meta::Method::Constructor
1017 - when a single argument that wasn't a hashref was provided to
1018 an immutabilized constructor, the error message was very
1019 unhelpful, as opposed to the non-immutable error. Reported by
1021 - added test for this (Dave Rolsky)
1023 * Moose::Meta::Attribute
1024 - added support for meta_attr->does("ShortAlias") (sartak)
1025 - added tests for this (sartak)
1026 - moved the bulk of the `handles` handling to the new
1027 install_delegation method (Stevan)
1030 - Added BUILDARGS, a new step in new()
1032 * Moose::Meta::Role::Application::RoleSummation
1033 - fix typos no one ever sees (sartak)
1035 * Moose::Util::TypeConstraints
1036 * Moose::Meta::TypeConstraint
1037 * Moose::Meta::TypeCoercion
1038 - Attempt to work around the ??{ } vs. threads issue
1040 - Some null_constraint optimizations
1042 0.50 Thurs. Jun 11, 2008
1043 - Fixed a version number issue by bumping all modules
1046 0.49 Thurs. Jun 11, 2008
1047 !! This version now approx. 20-25% !!
1048 !! faster with new Class::MOP 0.59 !!
1050 * Moose::Meta::Attribute
1051 - fixed how the is => (ro|rw) works with
1052 custom defined reader, writer and accessor
1054 - added docs for this (TODO).
1055 - added tests for this (Thanks to Penfold)
1056 - added the custom attribute alias for regular
1057 Moose attributes which is "Moose"
1058 - fix builder and default both being used
1063 Moose::Meta::Attribute
1065 Moose::Meta::Role::Composite
1066 Moose::Util::TypeConstraints
1067 - switched usage of reftype to ref because
1071 - changing add_package_symbol to use the new
1075 - fixed how DEMOLISHALL is called so that it
1076 can be overrided in subclasses (thanks to Sartak)
1077 - added test for this (thanks to Sartak)
1079 * Moose::Util::TypeConstraints
1080 - move the ClassName type check code to
1081 Class::MOP::is_class_loaded (thanks to Sartak)
1083 * Moose::Cookbook::Recipe11
1084 - add tests for this (thanks to tokuhirom)
1086 0.48 Thurs. May 29, 2008
1087 (early morning release engineering)--
1089 - fixing the version in Moose::Meta::Method::Destructor
1090 which was causing the indexer to choke
1092 0.47 Thurs. May 29, 2008
1093 (late night release engineering)--
1095 - fixing the version is META.yml, no functional
1096 changes in this release
1098 0.46 Wed. May 28, 2008
1099 !! This version now approx. 20-25% !!
1100 !! faster with new Class::MOP 0.57 !!
1102 * Moose::Meta::Class
1103 - some optimizations of the &initialize method
1104 since it is called so often by &meta
1106 * Moose::Meta::Class
1108 - now use the get_all_package_symbols from the
1109 updated Class::MOP, test suite is now 10 seconds
1112 * Moose::Meta::Method::Destructor
1113 - is_needed can now also be called as a class
1114 method for immutablization to check if the
1115 destructor object even needs to be created
1118 * Moose::Meta::Method::Destructor
1119 Moose::Meta::Method::Constructor
1120 - added more descriptive error message to help
1121 keep people from wasting time tracking an error
1122 that is easily fixed by upgrading.
1124 0.45 Saturday, May 24, 2008
1126 - Because of work in Class::MOP 0.57, all
1127 XS based functionality is now optional
1128 and a Pure Perl version is supplied
1129 - the CLASS_MOP_NO_XS environment variable
1130 can now be used to force non-XS versions
1132 - several of the packages have been tweaked
1133 to take care of this, mostly we added
1134 support for the package_name and name
1135 variables in all the Method metaclasses
1136 - before/around/after method modifiers now
1137 support regexp matching of names
1138 (thanks to Takatoshi Kitano)
1139 - tests added for this
1140 - NOTE: this only works for classes, it
1141 is currently not supported in roles,
1142 but, ... patches welcome
1143 - All usage of Carp::confess have been replaced
1144 by Carp::croak in the "keyword" functions since
1145 the stack trace is usually not helpful
1148 - All usage of Carp::confess have been replaced
1149 by Carp::croak in the "keyword" functions since
1150 the stack trace is usually not helpful
1151 - The 'has' keyword for roles now accepts the
1152 same array ref form that Moose.pm does
1153 (has [qw/foo bar/] => (is => 'rw', ...))
1154 - added test for this
1156 * Moose::Meta::Attribute
1157 - trigger on a ro-attribute is no longer an
1158 error, as it's useful to trigger off of the
1161 * Moose::Meta::Class
1162 - added same 'add_package_symbol' fix as in
1166 - does_role now handles non-Moose classes
1168 - added tests for this
1169 - added the 'add_method_modifier' function
1170 (thanks to Takatoshi Kitano)
1172 * Moose::Util::TypeConstraints
1173 - subtypes of parameterizable types now are
1174 themselves parameterizable types
1176 * Moose::Meta::Method::Constructor
1177 - fixed bug where trigger was not being
1178 called by the inlined immutable
1180 - added test for this (thanks to Caelum)
1182 * Moose::Meta::Role::Application::ToInstance
1183 - now uses the metaclass of the instance
1184 (if possible) to create the anon-class
1185 (thanks Jonathan Rockway)
1187 * Moose::Cookbook::Recipe22
1188 - added the meta-attribute trait recipe
1192 - fixed hash-ordering test bug that was
1193 causing occasional cpantester failures
1194 - renamed the t/000_recipe/*.t tests to be
1195 more descriptive (thanks to Sartak)
1197 0.44 Sat. May 10, 2008
1199 - made make_immutable warning cluck to
1200 show where the error is (thanks mst)
1203 - BUILDALL and DEMOLISHALL now call
1204 ->body when looping through the
1205 methods, to avoid the overloaded
1207 - fixed issue where DEMOLISHALL was
1208 eating the $@ values, and so not
1209 working correctly, it still kind of
1210 eats them, but so does vanilla perl
1211 - added tests for this
1213 * Moose::Cookbook::Recipe7
1214 - added new recipe for immutable
1215 functionality (thanks Dave Rolsky)
1217 * Moose::Cookbook::Recipe9
1218 - added new recipe for builder and
1219 lazy_build (thanks Dave Rolsky)
1221 * Moose::Cookbook::Recipe11
1222 - added new recipe for method aliasing
1223 and exclusion with Roles (thanks Dave Rolsky)
1226 - fixed Win32 test failure (thanks spicyjack)
1228 ~ removed Build.PL and Module::Build compat
1229 since Module::Install has done that.
1231 0.43 Wed. April, 30, 2008
1233 drink more coffee before
1234 doing release engineering
1236 - whoops, forgot to do the smolder tests,
1237 and we broke some of the custom meta-attr
1238 modules. This fixes that.
1240 0.42 Mon. April 28, 2008
1241 - some bad tests slipped by, nothing else
1242 changed in this release (cpantesters++)
1244 - upped the Class::MOP dependency to 0.55
1245 since we have tests which need the C3
1248 0.41 Mon. April 28, 2008
1249 ~~ numerous documentation updates ~~
1251 - Changed all usage of die to Carp::croak for better
1252 error reporting (initial patch by Tod Hagan)
1254 ** IMPORTANT NOTE **
1255 - the make_immutable keyword is now deprecated, don't
1256 use it in any new code and please fix your old code
1257 as well. There will be 2 releases, and then it will
1263 - refactored the way inner and super work to avoid
1264 any method/@ISA cache penalty (nothingmuch)
1266 * Moose::Meta::Class
1267 - fixing &new_object to make sure trigger gets the
1268 coerced value (spotted by Charles Alderman on the
1270 - added test for this
1272 * Moose::Meta::Method::Constructor
1273 - immutable classes which had non-lazy attributes were calling
1274 the default generating sub twice in the constructor. (bug
1275 found by Jesse Luehrs, fixed by Dave Rolsky)
1276 - added tests for this (Dave Rolsky)
1277 - fix typo in initialize_body method (nothingmuch)
1279 * Moose::Meta::Method::Destructor
1280 - fix typo in initialize_body method (nothingmuch)
1282 * Moose::Meta::Method::Overriden
1283 Moose::Meta::Method::Augmented
1284 - moved the logic for these into their own
1285 classes (nothingmuch)
1287 * Moose::Meta::Attribute
1288 - inherited attributes may now be extended without
1289 restriction on the type ('isa', 'does') (Sartak)
1290 - added tests for this (Sartak)
1291 - when an attribute property is malformed (such as lazy without
1292 a default), give the name of the attribute in the error
1294 - added the &applied_traits and &has_applied_traits methods
1295 to allow introspection of traits
1296 - added tests for this
1297 - moved 'trait' and 'metaclass' argument handling to here from
1299 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1300 '+foo' syntax) (nothingmuch)
1301 - added tests for this (t0m)
1304 - localize $@ inside DEMOLISHALL to avoid it
1305 eating $@ (found by Ernesto)
1306 - added test for this (thanks to Ernesto)
1308 * Moose::Util::TypeConstraints
1309 - &find_type_constraint now DWIMs when given an
1310 type constraint object or name (nothingmuch)
1311 - &find_or_create_type_constraint superseded with a number of more
1313 - find_or_create_{isa,does}_type_constraint
1314 - find_or_parse_type_constraint
1316 * Moose::Meta::TypeConstraint
1317 Moose::Meta::TypeConstraint::Class
1318 Moose::Meta::TypeConstraint::Role
1319 Moose::Meta::TypeConstraint::Enum
1320 Moose::Meta::TypeConstraint::Union
1321 Moose::Meta::TypeConstraint::Parameterized
1322 - added the &equals method for comparing two type
1323 constraints (nothingmuch)
1324 - added tests for this (nothingmuch)
1326 * Moose::Meta::TypeConstraint
1327 - add the &parents method, which is just an alias to &parent.
1328 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1330 * Moose::Meta::TypeConstraint::Class
1331 - added the class attribute for introspection purposes
1333 - added tests for this
1335 * Moose::Meta::TypeConstraint::Enum
1336 Moose::Meta::TypeConstraint::Role
1337 - broke these out into their own classes (nothingmuch)
1339 * Moose::Cookbook::Recipe*
1340 - fixed references to test file locations in the POD
1341 and updated up some text for new Moose features
1345 - Added &resolve_metaclass_alias, a helper function for finding an actual
1346 class for a short name (e.g. in the traits list)
1348 0.40 Fri. March 14, 2008
1349 - I hate Pod::Coverage
1351 0.39 Fri. March 14, 2008
1353 - documenting the use of '+name' with attributes
1354 that come from recently composed roles. It makes
1355 sense, people are using it, and so why not just
1356 officially support it.
1357 - fixing the 'extends' keyword so that it will not
1358 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1361 - added the perl -Moose=+Class::Name feature to allow
1362 monkeypatching of classes in one liners
1365 - fixing the 'apply_all_roles' keyword so that it will not
1366 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1368 * Moose::Meta::Class
1369 - added ->create method which now supports roles (thanks to jrockway)
1370 - added tests for this
1371 - added ->create_anon_class which now supports roles and caching of
1372 the results (thanks to jrockway)
1373 - added tests for this
1374 - made ->does_role a little more forgiving when it is
1375 checking a Class::MOP era metaclasses.
1377 * Moose::Meta::Role::Application::ToInstance
1378 - it is now possible to pass extra params to be used when
1379 a role is applied to an the instance (rebless_params)
1380 - added tests for this
1382 * Moose::Util::TypeConstraints
1383 - class_type now accepts an optional second argument for a
1384 custom message. POD anotated accordingly (groditi)
1385 - added tests for this
1386 - it is now possible to make anon-enums by passing 'enum' an
1387 ARRAY ref instead of the $name => @values. Everything else
1389 - added tests for this
1392 - making test for using '+name' on attributes consumed
1393 from a role, it works and makes sense too.
1395 * Moose::Meta::Attribute
1396 - fix handles so that it doesn't return nothing
1397 when the method cannot be found, not sure why
1398 it ever did this originally, this means we now
1399 have slightly better support for AUTOLOADed
1401 - added more delegation tests
1402 - adding ->does method to this so as to better
1403 support traits and their introspection.
1404 - added tests for this
1407 - localizing the Data::Dumper configurations so
1408 that it does not pollute others (RT #33509)
1409 - made ->does a little more forgiving when it is
1410 passed Class::MOP era metaclasses.
1412 0.38 Fri. Feb. 15, 2008
1413 * Moose::Meta::Attribute
1414 - fixed initializer to correctly do
1415 type checking and coercion in the
1417 - added tests for this
1420 - fixed some finicky tests (thanks to konobi)
1422 0.37 Thurs. Feb. 14, 2008
1424 - fixed some details in Moose::init_meta
1425 and its superclass handling (thanks thepler)
1426 - added tests for this (thanks thepler)
1427 - 'has' now dies if you don't pass in name
1429 - added the 'make_immutable' keyword as a shortcut
1432 * Moose::Meta::Class
1433 Moose::Meta::Method::Constructor
1434 Moose::Meta::Attribute
1435 - making (init_arg => undef) work here too
1436 (thanks to nothingmuch)
1438 * Moose::Meta::Attribute
1439 Moose::Meta::Method::Constructor
1440 Moose::Meta::Method::Accessor
1441 - make lazy attributes respect attr initializers (rjbs)
1442 - added tests for this
1444 * Moose::Util::TypeConstraints
1445 Moose::Util::TypeConstraints::OptimizedConstraints
1446 Moose::Meta::TypeConstraints
1447 Moose::Meta::Attribute
1448 Moose::Meta::Method::Constructor
1449 Moose::Meta::Method::Accessor
1450 - making type errors use the
1451 assigned message (thanks to Sartak)
1452 - added tests for this
1454 * Moose::Meta::Method::Destructor
1455 - making sure DESTROY gets inlined properly
1456 with successive DEMOLISH calls (thanks to manito)
1458 * Moose::Meta::Attribute
1459 Moose::Meta::Method::Accessor
1460 - fixed handling of undef with type constraints
1462 - added tests for this
1465 - added &get_all_init_args and &get_all_attribute_values
1466 (thanks to Sartak and nothingmuch)
1468 0.36 Sat. Jan. 26, 2008
1470 Moose::Meta::Attribute
1471 - role type tests now support when roles are
1472 applied to non-Moose classes (found by ash)
1473 - added tests for this (thanks to ash)
1474 - couple extra tests to boost code coverage
1476 * Moose::Meta::Method::Constructor
1477 - improved fix for handling Class::MOP attributes
1478 - added test for this
1480 * Moose::Meta::Class
1481 - handled the add_attribute($attribute_meta_object)
1483 - added test for this
1485 0.35 Tues. Jan. 22, 2008
1486 * Moose::Meta::Method::Constructor
1487 - fix to make sure even Class::MOP attributes
1488 are handled correctly (Thanks to Dave Rolsky)
1489 - added test for this (also Dave Rolsky)
1491 * Moose::Meta::Class
1492 - improved error message on _apply_all_roles,
1493 you should now use Moose::Util::apply_all_roles
1494 and you shouldnt have been using a _ prefixed
1495 method in the first place ;)
1497 0.34 Mon. Jan. 21, 2008
1498 ~~~ more misc. doc. fixes ~~~
1499 ~~ updated copyright dates ~~
1501 Moose is now a postmodern object system :)
1502 - (see the POD for details)
1504 * <<Role System Refactoring>>
1505 - this release contains a major reworking and
1506 cleanup of the role system
1507 - 100% backwards compat.
1508 - Role application now restructured into seperate
1509 classes based on type of applicants
1510 - Role summation (combining of more than one role)
1511 is much cleaner and anon-classes are no longer
1512 used in this process
1513 - new Composite role metaclass
1514 - runtime application of roles to instances
1515 is now more efficient and re-uses generated
1516 classes when applicable
1518 * <<New Role composition features>>
1519 - methods can now be excluded from a given role
1521 - methods can now be aliased to another name (and
1522 still retain the original as well)
1524 * Moose::Util::TypeConstraints::OptimizedConstraints
1525 - added this module (see above)
1527 * Moose::Meta::Class
1528 - fixed the &_process_attribute method to be called
1529 by &add_attribute, so that the API is now correct
1531 * Moose::Meta::Method::Accessor
1532 - fixed bug when passing a list of values to
1533 an accessor would get (incorrectly) ignored.
1534 Thanks to Sartak for finding this ;)
1535 - added tests for this (Sartak again)
1537 * Moose::Meta::Method::Accessor
1538 Moose::Meta::Method::Constructor
1539 Moose::Meta::Attribute
1540 Moose::Meta::TypeConstraint
1541 Moose::Meta::TypeCoercion
1542 - lots of cleanup of such things as:
1544 - type constraint handling
1545 - error handling/messages
1546 (thanks to nothingmuch)
1548 * Moose::Meta::TypeConstraint::Parameterizable
1549 - added this module to support the refactor
1550 in Moose::Meta::TypeConstraint::Parameterized
1552 * Moose::Meta::TypeConstraint::Parameterized
1553 - refactored how these types are handled so they
1554 are more generic and not confined to ArrayRef
1558 - shortened some file names for better VMS support (RT #32381)
1560 0.33 Fri. Dec. 14, 2007
1561 !! Moose now loads 2 x faster !!
1562 !! with new Class::MOP 0.49 !!
1564 ++ new oose.pm module to make command line
1565 Moose-ness easier (see POD docs for more)
1567 * Moose::Meta::Class
1569 - several tweaks to take advantage of the
1570 new method map caching in Class::MOP
1572 * Moose::Meta::TypeConstraint::Parameterized
1573 - allow subtypes of ArrayRef and HashRef to
1574 be used as a container (sartak)
1575 - added tests for this
1576 - basic support for coercion to ArrayRef and
1577 HashRef for containers (sartak)
1578 - added tests for this
1580 * Moose::Meta::TypeCoercion
1581 - coercions will now create subtypes as needed
1582 so you can now add coercions to parameterized
1583 types without having to explictly define them
1584 - added tests for this
1586 * Moose::Meta::Method::Accessor
1587 - allow subclasses to decide whether we need
1588 to copy the value into a new variable (sartak)
1590 0.32 Tues. Dec. 4, 2007
1591 * Moose::Util::TypeConstraints
1592 - fixing how subtype aliases of unions work
1593 they should inherit the parent's coercion
1594 - added tests for this
1595 - you can now define multiple coercions on
1596 a single type at different times instead of
1597 having to do it all in one place
1598 - added tests for this
1600 * Moose::Meta::TypeConstraint
1601 - there is now a default constraint of sub { 1 }
1602 instead of Moose::Util::TypeConstraints setting
1605 * Moose::Meta::TypeCoercion
1606 * Moose::Meta::TypeCoercion::Union
1607 - added the &has_coercion_for_type and
1608 &add_type_coercions methods to support the
1609 new features above (although you cannot add
1610 more type coercions for Union types)
1612 0.31 Mon. Nov. 26, 2007
1613 * Moose::Meta::Attribute
1614 - made the +attr syntax handle extending types with
1615 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1616 now works if the original foo is an ArrayRef.
1617 - added tests for this.
1618 - delegation now works even if the attribute does not
1619 have a reader method using the get_read_method_ref
1620 method from Class::MOP::Attribute.
1621 - added tests for this
1622 - added docs for this
1624 * Moose::Util::TypeConstraints
1625 - passing no "additional attribute info" to
1626 &find_or_create_type_constraint will no longer
1627 attempt to create an __ANON__ type for you,
1628 instead it will just return undef.
1629 - added docs for this
1631 0.30 Fri. Nov. 23, 2007
1632 * Moose::Meta::Method::Constructor
1633 -builder related bug in inlined constructor. (groditi)
1635 * Moose::Meta::Method::Accessor
1636 - genereate unnecessary calls to predicates and refactor
1637 code generation for runtime speed (groditi)
1639 * Moose::Util::TypeConstraints
1640 - fix ClassName constraint to introspect symbol table (mst)
1641 - added more tests for this (mst)
1642 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1643 with work correctly.
1644 - added tests for this
1647 - adding the link to Recipie 11 (written by Sartak)
1648 - adding test for SYNOPSIS code
1651 - New tests for builder bug. Upon instantiation, if an
1652 attribute had a builder, no value and was not lazy the
1653 builder default was not getting run, oops. (groditi)
1655 0.29 Tues. Nov. 13, 2007
1656 * Moose::Meta::Attribute
1657 - Fix error message on missing builder method (groditi)
1659 * Moose::Meta::Method::Accessor
1660 - Fix error message on missing builder method (groditi)
1663 - Add test to check for the correct error message when
1664 builder method is missing (groditi)
1666 0.28 Tues. Nov. 13, 2007
1667 - 0.27 packaged incorrectly (groditi)
1669 0.27 Tues. Nov. 13, 2007
1670 * Moose::Meta::Attribute
1671 - Added support for the new builder option (groditi)
1672 - Added support for lazy_build option (groditi)
1673 - Changed slot initialization for predicate changes (groditi)
1675 * Moose::Meta::Method::Accessor
1676 - Added support for lazy_build option (groditi)
1677 - Fix inline methods to work with corrected predicate
1680 * Moose::Meta::Method::Constructor
1681 - Added support for lazy_build option (groditi)
1684 - tests for builder and lazy_build (groditi)
1686 * fixing some misc. bits in the docs that
1687 got mentioned on CPAN Forum & perlmonks
1690 - fixed how required methods are handled
1691 when they encounter overriden or modified
1692 methods from a class (thanks to confound).
1693 - added tests for this
1695 * Moose::Util::TypeConstraint
1696 - fixed the type notation parser so that
1697 the | always creates a union and so is
1698 no longer a valid type char (thanks to
1699 konobi, mugwump and #moose for working
1701 - added more tests for this
1703 0.26 Thurs. Sept. 27, 2007
1706 * Parameterized Types
1707 We now support parameterized collection types, such as:
1708 ArrayRef[Int] # array or integers
1709 HashRef[Object] # a hash with object values
1710 They can also be nested:
1711 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1712 And work with the type unions as well:
1713 ArrayRef[Int | Str] # array of integers of strings
1715 * Better Framework Extendability
1716 Moose.pm is now "extendable" such that it is now much
1717 easier to extend the framework and add your own keywords
1718 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1719 section of the Moose.pm docs.
1722 In an effort to begin documenting some of the various
1723 details of Moose as well as some common idioms, we have
1724 created Moose::Cookbook::Snacks as a place to find
1725 small (easily digestable) nuggets of Moose code.
1728 ~ Several doc updates/cleanup thanks to castaway ~
1730 - converted build system to use Module::Install instead of
1731 Module::Build (thanks to jrockway)
1734 - added all the meta classes to the immutable list and
1735 set it to inline the accessors
1736 - fix import to allow Sub::Exporter like { into => }
1737 and { into_level => } (perigrin)
1738 - exposed and documented init_meta() to allow better
1739 embedding and extending of Moose (perigrin)
1742 - complete re-organization of the test suite
1743 - added some new tests as well
1744 - finally re-enabled the Moose::POOP test since
1745 the new version of DBM::Deep now works again
1748 * Moose::Meta::Class
1749 - fixed very odd and very nasty recursion bug with
1751 - added tests for this (eilara)
1753 * Moose::Meta::Attribute
1754 Moose::Meta::Method::Constructor
1755 Moose::Meta::Method::Accessor
1756 - fixed issue with overload::Overloaded getting called
1757 on non-blessed items. (RT #29269)
1758 - added tests for this
1760 * Moose::Meta::Method::Accessor
1761 - fixed issue with generated accessor code making
1762 assumptions about hash based classes (thanks to dexter)
1764 * Moose::Coookbook::Snacks
1765 - these are bits of documentation, not quite as big as
1766 Recipes but which have no clear place in the module docs.
1767 So they are Snacks! (horray for castaway++)
1769 * Moose::Cookbook::Recipe4
1770 - updated it to use the new ArrayRef[MyType] construct
1771 - updated the accompanying test as well
1773 +++ Major Refactor of the Type Constraint system +++
1774 +++ with new features added as well +++
1776 * Moose::Util::TypeConstraint
1777 - no longer uses package variable to keep track of
1778 the type constraints, now uses the an instance of
1779 Moose::Meta::TypeConstraint::Registry to do it
1780 - added more sophisticated type notation parsing
1782 - added tests for this
1784 * Moose::Meta::TypeConstraint
1785 - some minor adjustments to make subclassing easier
1786 - added the package_defined_in attribute so that we
1787 can track where the type constraints are created
1789 * Moose::Meta::TypeConstraint::Union
1790 - this is now been refactored to be a subclass of
1791 Moose::Meta::TypeConstraint
1793 * Moose::Meta::TypeCoercion::Union
1794 - this has been added to service the newly refactored
1795 Moose::Meta::TypeConstraint::Union and is itself
1796 a subclass of Moose::Meta::TypeCoercion
1798 * Moose::Meta::TypeConstraint::Parameterized
1799 - added this module (taken from MooseX::AttributeHelpers)
1800 to help construct nested collection types
1801 - added tests for this
1803 * Moose::Meta::TypeConstraint::Registry
1804 - added this class to keep track of type constraints
1806 0.25 Mon. Aug. 13, 2007
1808 - Documentation update to reference Moose::Util::TypeConstraints
1809 under 'isa' in 'has' for how to define a new type
1810 (thanks to shlomif).
1812 * Moose::Meta::Attribute
1813 - required attributes now will no longer accept undef
1814 from the constructor, even if there is a default and lazy
1815 - added tests for this
1816 - default subroutines must return a value which passes the
1818 - added tests for this
1820 * Moose::Meta::Attribute
1821 * Moose::Meta::Method::Constructor
1822 * Moose::Meta::Method::Accessor
1823 - type-constraint tests now handle overloaded objects correctly
1824 in the error message
1825 - added tests for this (thanks to EvanCarroll)
1827 * Moose::Meta::TypeConstraint::Union
1828 - added (has_)hand_optimized_constraint to this class so that
1829 it behaves as the regular Moose::Meta::TypeConstraint does.
1832 - large refactoring of this code
1833 - added several more tests
1834 - tests for subtle conflict resolition issues
1835 added, but not currently running
1838 * Moose::Cookbook::Recipe7
1839 - added new recipe for augment/inner functionality
1841 - added test for this
1844 - a formal definition of roles (still in progress)
1847 - utilities for easier working with Moose classes
1848 - added tests for these
1851 - This contains Moose specific test functions
1852 - added tests for these
1854 0.24 Tues. July 3, 2007
1855 ~ Some doc updates/cleanup ~
1857 * Moose::Meta::Attribute
1858 - added support for roles to be given as parameters
1859 to the 'handles' option.
1860 - added tests and docs for this
1861 - the has '+foo' attribute form now accepts changes to
1862 the lazy option, and the addition of a handles option
1863 (but not changing the handles option)
1864 - added tests and docs for this
1867 - required methods are now fetched using find_method_by_name
1868 so that required methods can come from superclasses
1869 - adjusted tests for this
1871 0.23 Mon. June 18, 2007
1872 * Moose::Meta::Method::Constructor
1873 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1874 * Moose::Meta::Class
1875 - Modify make_immutable to work with the new Class::MOP immutable
1876 mechanism + POD + very basic test (groditi)
1877 * Moose::Meta::Attribute
1878 - Fix handles to use goto() so that caller() comes out properly on
1879 the other side (perigrin)
1881 0.22 Thurs. May 31, 2007
1882 * Moose::Util::TypeConstraints
1883 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1884 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1885 prototypes for functions
1886 - added the ClassName type constraint, this checks for strings
1887 which will respond true to ->isa(UNIVERSAL).
1888 - added tests and docs for this
1889 - subtyping just in name now works correctly by making the
1890 default for where be { 1 }
1891 - added test for this
1893 * Moose::Meta::Method::Accessor
1894 - coerce and lazy now work together correctly, thanks to
1895 merlyn for finding this bug
1896 - tests added for this
1897 - fix reader presedence bug in Moose::Meta::Attribute + tests
1900 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1901 a HASH-ref and missed. This produces better error messages then
1902 having it die cause undef is not a HASH.
1903 - added tests for this
1905 0.21 Thursday, May 2nd, 2007
1907 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1908 - modified unimport to remove super and inner along with the rest
1909 - altered unimport tests to handle this
1912 - altered super export to populate SUPER_SLOT
1914 * Moose::Meta::Class
1915 - altered augment and override modifier application to use *_SLOT
1916 - modified tests for these to unimport one test class each to test
1919 - fixed issue where custom attribute metaclasses
1920 where not handled correctly in roles
1921 - added tests for this
1923 * Moose::Meta::Class
1924 - fixed issue where extending metaclasses with
1925 roles would blow up. Thanks to Aankhen`` for
1926 finding this insidious error, and it's solution.
1928 ~~ lots of spelling and grammer fixes in the docs,
1929 many many thanks to rlb3 and Aankhen for these :)
1931 0.20 Friday, April 6th, 2007
1932 >> I messed up the SKIP logic in one test
1933 so this release is just to fix that.
1936 - 'has' now also accepts an ARRAY ref
1937 to create multiple attrs (see docs)
1938 (thanks to konobi for this)
1939 - added tests and docs
1941 0.19 Thurs. April 5th, 2007
1942 ~~ More documentation updates ~~
1944 * Moose::Util::TypeConstraints
1945 - 'type' now supports messages as well
1946 thanks to phaylon for finding this
1947 - added tests for this
1948 - added &list_all_type_constraints and
1949 &list_all_builtin_type_constraints
1950 functions to facilitate introspection.
1952 * Moose::Meta::Attribute
1953 - fixed regexp 'handles' declarations
1954 to build the list of delegated methods
1955 correctly (and not override important
1956 things like &new) thanks to ashleyb
1958 - added tests and docs for this
1959 - added the 'documentation' attributes
1960 so that you can actually document your
1961 attributes and inspect them through the
1963 - added tests and docs for this
1965 * Moose::Meta::Class
1966 - when loading custom attribute metaclasses
1967 it will first look in for the class in the
1968 Moose::Meta::Attribute::Custom::$name, and
1969 then default to just loading $name.
1970 - added tests and docs for this
1972 * Moose::Meta::TypeConstraint
1973 - type constraints now stringify to their names.
1974 - added test for this
1977 - added tests to assure we work with Module::Refresh
1978 - added stricter test skip logic in the Moose POOP
1979 test, ask Rob Kinyon why.
1980 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1982 0.18 Sat. March 10, 2007
1983 ~~ Many, many documentation updates ~~
1986 - We now use Class::MOP::load_class to
1988 - added tests to show types and subtypes
1989 working with Declare::Constraints::Simple
1990 and Test::Deep as constraint engines.
1993 !! You must have Class::MOP 0.37_001 !!
1994 !! for this developer release to work !!
1996 This release was primarily adding the immutable
1997 feature to Moose. An immutable class is one which
1998 you promise not to alter. When you set the class
1999 as immutable it will perform various bits of
2000 memoization and inline certain part of the code
2001 (constructors, destructors and accessors). This
2002 minimizes (and in some cases totally eliminates)
2003 one of Moose's biggest performance hits. This
2004 feature is not on by default, and is 100% optional.
2005 It has several configurable bits as well, so you
2006 can pick and choose to your specific needs.
2008 The changes involved in this were fairly wide and
2009 highly specific, but 100% backwards compatible, so
2010 I am not going to enumerate them here. If you are
2011 truely interested in what was changed, please do
2014 0.17 Tues. Nov. 14, 2006
2015 * Moose::Meta::Method::Accessor
2016 - bugfix for read-only accessors which
2017 are have a type constraint and lazy.
2018 Thanks to chansen for finding it.
2020 0.16 Tues. Nov. 14, 2006
2022 There are some speed improvements in this release,
2023 but they are only the begining, so stay tuned.
2026 - BUILDALL and DEMOLISHALL no longer get
2027 called unless they actually need to be.
2028 This gave us a signifigant speed boost
2029 for the cases when there is no BUILD or
2030 DEMOLISH method present.
2032 * Moose::Util::TypeConstraints
2033 * Moose::Meta::TypeConstraint
2034 - added an 'optimize_as' option to the
2035 type constraint, which allows for a
2036 hand optimized version of the type
2037 constraint to be used when possible.
2038 - Any internally created type constraints
2039 now provide an optimized version as well.
2041 0.15 Sun. Nov. 5, 2006
2043 This version of Moose *must* have Class::MOP 0.36 in order
2044 to work correctly. A number of small internal tweaks have
2045 been made in order to be compatible with that release.
2047 * Moose::Util::TypeConstraints
2048 - added &unimport so that you can clean out
2049 your class namespace of these exported
2052 * Moose::Meta::Class
2053 - fixed minor issue which occasionally
2054 comes up during global destruction
2056 - moved Moose::Meta::Method::Overriden into
2060 - moved Moose::Meta::Role::Method into
2063 * Moose::Meta::Attribute
2064 - changed how we do type checks so that
2065 we reduce the overall cost, but still
2068 - moved accessor generation methods to
2069 Moose::Meta::Method::Accessor to
2070 conform to the API changes from
2073 * Moose::Meta::TypeConstraint
2074 - changed how constraints are compiled
2075 so that we do less recursion and more
2076 iteration. This makes the type check
2078 - moved Moose::Meta::TypeConstraint::Union
2081 * Moose::Meta::Method::Accessor
2082 - created this from methods formerly found in
2083 Moose::Meta::Attribute
2085 * Moose::Meta::Role::Method
2086 - moved this from Moose::Meta::Role
2088 * Moose::Meta::Method::Overriden
2089 - moved this from Moose::Meta::Class
2091 * Moose::Meta::TypeConstraint::Union
2092 - moved this from Moose::Meta::TypeConstraint
2094 0.14 Mon. Oct. 9, 2006
2096 * Moose::Meta::Attribute
2097 - fixed lazy attributes which were not getting
2098 checked with the type constraint (thanks ashley)
2099 - added tests for this
2100 - removed the over-enthusiastic DWIMery of the
2101 automatic ArrayRef and HashRef defaults, it
2102 broke predicates in an ugly way.
2103 - removed tests for this
2105 0.13 Sat. Sept. 30, 2006
2107 This version of Moose *must* have Class::MOP 0.35 in order
2108 to work correctly. A number of small internal tweaks have
2109 been made in order to be compatible with that release.
2112 - Removed the use of UNIVERSAL::require to be a better
2113 symbol table citizen and remove a dependency
2114 (thanks Adam Kennedy)
2116 **~~ removed experimental & undocumented feature ~~**
2117 - commented out the 'method' and 'self' keywords, see the
2118 comments for more info.
2121 - added a FAQ and WTF files to document frequently
2122 asked questions and common problems
2124 * Moose::Util::TypeConstraints
2125 - added GlobRef and FileHandle type constraint
2126 - added tests for this
2128 * Moose::Meta::Attribute
2129 - if your attribute 'isa' ArrayRef of HashRef, and you have
2130 not explicitly set a default, then make the default DWIM.
2131 This will also work for subtypes of ArrayRef and HashRef
2133 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2134 - new test added for this (thanks to ashley)
2137 - added basic support for runtime role composition
2138 but this is still *highly experimental*, so feedback
2139 is much appreciated :)
2140 - added tests for this
2142 * Moose::Meta::TypeConstraint
2143 - the type constraint now handles the coercion process
2144 through delegation, this is to support the coercion
2147 * Moose::Meta::TypeConstraint::Union
2148 - it is now possible for coercions to be performed
2150 - added tests for this (thanks to konobi)
2152 * Moose::Meta::TypeCoercion
2153 - properly capturing error when type constraint
2157 - Scalar::Util 1.18 is bad on Win32, so temporarily
2158 only require version 1.17 for Win32 and cygwin.
2159 (thanks Adam Kennedy)
2161 0.12 Sat. Sept. 1, 2006
2163 - Recipe5 (subtypes & coercion) has been written
2166 - fixed "bad meta" error message to be more descriptive
2167 - fixed &unimport to not remove the &inner and &super
2168 keywords because we need to localize them.
2169 - fixed number of spelling/grammer issues, thanks Theory :)
2171 **~~ experimental & undocumented feature ~~**
2172 - added the method and self keywords, they are basically
2173 just sugar, and they may not stay around.
2176 - added &dump method to easily Data::Dumper
2179 * Moose::Meta::TypeConstraint
2180 - added the &is_a_type_of method to check both the current
2181 and the subtype of a method (similar to &isa with classes)
2184 - this is now a subclass of Class::MOP::Module, and no longer
2185 creates the _role_meta ugliness of before.
2186 - fixed tests to reflect this change
2188 0.11 Wed. July 12, 2006
2190 - added an &unimport method to remove all the keywords
2191 that Moose will import, simply add 'no Moose' to the
2192 bottom of your class file.
2195 - fixed some test failures caused by a forgotten test
2198 0.10 Thurs. July 6, 2006
2200 - improved error message when loading modules so
2201 it is less confusing when you load a role.
2202 - added &calculate_all_roles method to
2203 Moose::Meta::Class and Moose::Meta::Role
2206 This module has been tested against Class::MOP 0.30
2207 but it does not yet utilize the optimizations
2208 it makes available. Stay tuned for that ;)
2210 0.09_03 Fri. June 23, 2006
2211 ++ DEVELOPER RELEASE ++
2213 - 'use strict' and 'use warnings' are no longer
2214 needed in Moose classes, Moose itself will
2215 turn them on for you.
2216 - added tests for this
2217 - moved code from exported subs to private methods
2218 in Moose::Meta::Class
2221 - as with Moose, strict and warnings are
2222 automatically turned on for you.
2223 - added tests for this
2226 - now handles an edge case for override errors
2227 - added tests for this
2228 - added some more edge case tests
2230 0.09_02 Tues. May 16, 2006
2231 ++ DEVELOPER RELEASE ++
2233 - added prototypes to the exported subs
2237 - added prototypes to the exported subs
2240 * Moose::Util::TypeConstraints
2241 - cleaned up prototypes for the subs
2244 0.09_01 Fri. May 12, 2006
2245 ++ DEVELOPER RELEASE ++
2246 - This release works in combination with
2247 Class::MOP 0.29_01, it is a developer
2248 release because it uses the a new
2249 instance sub-protocol and a fairly
2250 complete Role implementation. It has
2251 not yet been optimized, so it slower
2252 the the previous CPAN version. This
2253 release also lacks good updated docs,
2254 the official release will have updated docs.
2257 - refactored the keyword exports
2258 - 'with' now checks Role validaity and
2259 accepts more than one Role at a time
2260 - 'extends' makes metaclass adjustments as
2261 needed to ensure metaclass compatibility
2264 - refactored the keyword exports
2265 - 'with' now checks Role validaity and
2266 accepts more than one Role at a time
2268 * Moose::Util::TypeConstraints
2269 - added the 'enum' keyword for simple
2270 string enumerations which can be used as
2272 - see example of usage in t/202_example.t
2275 - more careful checking of params to new()
2278 - much work done on the role composition
2279 - many new tests for conflict detection
2280 and composition edge cases
2281 - not enough documentation, I suggest
2282 looking at the tests
2284 * Moose::Meta::Instance
2285 - added new Instance metaclass to support
2286 the new Class::MOP instance protocol
2288 * Moose::Meta::Class
2289 - some small changes to support the new
2291 - some small additions to support Roles
2293 * Moose::Meta::Attribute
2294 - some improvements to the accessor generation code
2296 - some small changes to support the new
2298 - (still somewhat) experimental delegation support
2299 with the 'handles' option
2300 - added several tests for this
2301 - no docs for this yet
2303 0.05 Thurs. April 27, 2006
2305 - keywords are now exported with Sub::Exporter
2306 thanks to chansen for this commit
2307 - has keyword now takes a 'metaclass' option
2308 to support custom attribute meta-classes
2309 on a per-attribute basis
2310 - added tests for this
2311 - the 'has' keyword not accepts inherited slot
2312 specifications (has '+foo'). This is still an
2313 experimental feature and probably not finished
2314 see t/038_attribute_inherited_slot_specs.t for
2315 more details, or ask about it on #moose
2316 - added tests for this
2319 - keywords are now exported with Sub::Exporter
2321 * Moose::Utils::TypeConstraints
2322 - reorganized the type constraint hierarchy, thanks
2323 to nothingmuch and chansen for his help and advice
2325 - added some tests for this
2326 - keywords are now exported with Sub::Exporter
2327 thanks to chansen for this commit
2329 * Moose::Meta::Class
2330 - due to changes in Class::MOP, we had to change
2331 construct_instance (for the better)
2333 * Moose::Meta::Attribute
2334 - due to changes in Class::MOP, we had to add the
2335 initialize_instance_slot method (it's a good thing)
2337 * Moose::Meta::TypeConstraint
2338 - added type constraint unions
2339 - added tests for this
2340 - added the is_subtype_of predicate method
2341 - added tests for this
2343 0.04 Sun. April 16th, 2006
2345 - Roles can now consume other roles
2346 - added tests for this
2347 - Roles can specify required methods now with
2348 the requires() keyword
2349 - added tests for this
2352 - ripped out much of it's guts ,.. much cleaner now
2353 - added required methods and correct handling of
2354 them in apply() for both classes and roles
2355 - added tests for this
2356 - no longer adds a does() method to consuming classes
2357 it relys on the one in Moose::Object
2358 - added roles attribute and some methods to support
2359 roles consuming roles
2361 * Moose::Meta::Attribute
2362 - added support for triggers on attributes
2363 - added tests for this
2364 - added support for does option on an attribute
2365 - added tests for this
2367 * Moose::Meta::Class
2368 - added support for attribute triggers in the
2370 - added tests for this
2373 - Moose no longer creates a subtype for your class
2374 if a subtype of the same name already exists, this
2375 should DWIM in 99.9999% of all cases
2377 * Moose::Util::TypeConstraints
2378 - fixed bug where incorrect subtype conflicts were
2380 - added test for this
2383 - this class can now be extended with 'use base' if
2384 you need it, it properly loads the metaclass class now
2385 - added test for this
2387 0.03_02 Wed. April 12, 2006
2389 - you must now explictly use Moose::Util::TypeConstraints
2390 it no longer gets exported for you automatically
2393 - new() now accepts hash-refs as well as key/value lists
2394 - added does() method to check for Roles
2395 - added tests for this
2397 * Moose::Meta::Class
2398 - added roles attribute along with the add_role() and
2400 - added tests for this
2403 - now adds a does() method to consuming classes
2404 which tests the class's hierarchy for roles
2405 - added tests for this
2407 0.03_01 Mon. April 10, 2006
2409 - added new Role recipe (no content yet, only code)
2412 - added 'with' keyword for Role support
2413 - added test and docs for this
2414 - fixed subtype quoting bug
2415 - added test for this
2419 - added test and docs
2421 * Moose::Util::TypeConstraints
2422 - added the message keyword to add custom
2423 error messages to type constraints
2426 - the meta role to support Moose::Role
2427 - added tests and docs
2429 * Moose::Meta::Class
2430 - moved a number of things from Moose.pm
2431 to here, they should have been here
2434 * Moose::Meta::Attribute
2435 - moved the attribute option macros here
2436 instead of putting them in Moose.pm
2438 * Moose::Meta::TypeConstraint
2439 - added the message attributes and the
2441 - added tests and docs for this
2443 0.03 Thurs. March 30, 2006
2445 - added the Moose::Cookbook with 5 recipes,
2446 describing all the stuff Moose can do.
2449 - fixed an issue with &extends super class loading
2450 it now captures errors and deals with inline
2451 packages correctly (bug found by mst, solution
2453 - added super/override & inner/augment features
2454 - added tests and docs for these
2457 - BUILDALL now takes a reference of the %params
2458 that are passed to &new, and passes that to
2461 * Moose::Util::TypeConstraints
2462 - Type constraints now survive runtime reloading
2463 - added test for this
2465 * Moose::Meta::Class
2466 - fixed the way attribute defaults are handled
2467 during instance construction (bug found by chansen)
2469 * Moose::Meta::Attribute
2470 - read-only attributes now actually enforce their
2471 read-only-ness (this corrected in Class::MOP as
2474 0.02 Tues. March 21, 2006
2476 - many more tests, fixing some bugs and
2478 - &extends now loads the base module with
2480 - added UNIVERSAL::require to the
2483 - each new Moose class will also create
2484 and register a subtype of Object which
2485 correspond to the new Moose class.
2486 - the 'isa' option in &has now only
2487 accepts strings, and will DWIM in
2490 * Moose::Util::TypeConstraints
2491 - added type coercion features
2492 - added tests for this
2493 - added support for this in attributes
2494 and instance construction
2496 - type construction no longer creates a
2497 function, it registers the type instead.
2498 - added several functions to get the
2502 - BUILDALL and DEMOLISHALL were broken
2503 because of a mis-named hash key, Whoops :)
2505 * Moose::Meta::Attribute
2506 - adding support for coercion in the
2507 autogenerated accessors
2509 * Moose::Meta::Class
2510 - adding support for coercion in the
2511 instance construction
2513 * Moose::Meta::TypeConstraint
2514 * Moose::Meta::TypeCoercion
2515 - type constraints and coercions are now
2516 full fledges meta-objects
2518 0.01 Wed. March 15, 2006
2519 - Moooooooooooooooooose!!!