1 Also see Moose::Manual::Delta for more details of, and workarounds
2 for, noteworthy changes.
6 - Fix _construct_instance not setting the special __MOP__ object
7 key in instances of anon classes. (doy)
10 * Moose::Manual::Types
11 - Mention MooseX::Types early to avoid users falling down the
12 string parsing rathole (mst)
14 * Moose::Manual::MooseX
15 - Add warnings about class-level extensions and mention considering
16 using plain objects instead
19 * Bumped our Class::MOP prereq to the latest version (0.85), since
24 - Add FAQ about the coercion change from 0.76 because it came up
25 three times today (perigrin)
26 - Win doy $10 dollars because Sartak didn't think anybody
27 would document this fast enough (perigrin)
29 * Moose::Meta::Method::Destructor
30 - Inline a DESTROY method even if there are no DEMOLISH methods
31 to prevent unnecessary introspection in
32 Moose::Object::DEMOLISHALL
35 - A role's required methods are now represented by
36 Moose::Meta::Role::Method::Required objects. Conflicts are now
37 represented by Moose::Meta::Role::Method::Conflicting
38 objects. The benefit for end-users in that unresolved
39 conflicts generate different, more instructive, errors,
40 resolving Ovid's #44895. (Sartak)
43 - Improve the error message of "extends" as suggested by Adam
44 Kennedy and confound (Sartak)
45 - Link to Moose::Manual::Roles from Moose::Role as we now have
46 excellent documentation (Adam Kennedy)
49 - Update test suite for subname change in Class::MOP
51 - Add TODO test for infinite recursion in Moose::Meta::Class
54 0.79 Wed, May 13, 2009
56 - More fixes for Win32 problems. Reported by Robert Krimen.
59 - The DEMOLISHALL method could still blow up in some cases
60 during global destruction. This method has been made more
61 resilient in the face of global destruction's random garbage
65 - If you "also" a module that isn't loaded, the error message
66 now acknowledges that (Sartak)
69 - When your ->meta method does not return a Moose::Meta::Class,
70 the error message gave the wrong output (Sartak)
72 0.78 Tue, May 12, 2009
73 * Moose::Cookbook::FAQ and Moose::Cookbook::WTF
74 - Merged these documents into what is now Moose::Manual::FAQ
77 - Moved to Moose::Manual::Unsweetened
79 * Moose::Cookbook::Basics::Recipes 9-12
80 - Renamed to be 8-11, since recipe 8 did not exist
83 - Make Moose::Exporter import strict and warnings into packages
87 - Fix DEMOLISHALL sometimes not being able to find DEMOLISH
88 methods during global destruction (doy)
91 * Moose::Meta::Role::Application::ToClass
92 - Track the Role::Application objects created during class-role
96 - Fix metaclass incompatibility errors when extending a vanilla perl
97 class which isa Moose class with a metaclass role applied (t0m)
100 - Add a role-combination hook, _role_for_combination, for the
101 benefit of MooseX::Role::Parameterized (Sartak)
104 - Some tests were failing on Win32 because they explicit checked
105 warning output for newlines. Reported by Nickolay Platonov.
107 0.77 Sat, May 2, 2009
109 - Add explicit use of Devel::GlobalDestruction and Sub::Name
113 - Pass a boolean to DEMOLISHALL and DEMOLISH indicating whether
114 or not we are currently in global destruction (doy)
115 - Add explicit use of Devel::GlobalDestruction and Sub::Name
118 * Moose::Cookbook::FAQ
119 - Reworked much of the existing content to be more useful to
120 modern Moose hackers (Sartak)
123 - Depend on Class::MOP 0.83 instead of 0.82_01.
125 0.76 Mon, April 27, 2009
126 * Moose::Meta::TypeConstraint
127 - Do not run coercions in coerce() if the value already passes the type
130 * Moose::Meta::TypeConstraint::Class
131 - In validation error messages, specifically say that the value is not
132 an instance of the class. This should alleviate some frustrating
133 forgot-to-load-my-type bugs. rt.cpan.org #44639 (Sartak)
135 * Moose::Meta::Role::Application::ToClass
136 - Revert the class-overrides-role warning in favor of a solution outside
137 of the Moose core (Sartak)
140 - Make Test::Output optional again, since it's only used in a few files
143 0.75_01 Thu, April 23, 2009
144 * Moose::Meta::Role::Application::ToClass
145 - Moose now warns about each class overriding methods from roles it
149 - Warnings tests have standardized on Test::Output which is now an
150 unconditionally dependency (Sartak)
153 - Changes to immutabilization to work with Class::MOP 0.82_01+.
155 0.75 Mon, April 20, 2009
158 - Move validation of not inheriting from roles from Moose::extends to
159 Moose::Meta::Class::superclasses (doy)
162 - add ensure_all_roles() function to encapsulate the common "apply this
163 role unless the object already does it" pattern (hdp)
166 - Users can now select a different metaclass with the "-metaclass"
167 option to import, for classes and roles (Sartak)
170 - Make method_metaclass an attr so that it can accept a metarole
173 0.74 Tue, April 7, 2009
175 * Moose::Meta::Method::Destructor
176 - Include stack traces in the deprecation warnings.
180 - Removed the long-deprecated _apply_all_roles method.
182 * Moose::Meta::TypeConstraint
183 - Removed the long-deprecated union method.
186 0.73_02 Mon, April 6, 2009
187 * More deprecations and renamings
188 - Moose::Meta::Method::Constructor
189 - initialize_body => _initialize_body (this is always called
190 when an object is constructed)
193 - The DEMOLISHALL method could throw an exception during global
194 destruction, meaning that your class's DEMOLISH methods would
195 not be properly called. Reported by t0m.
197 * Moose::Meta::Method::Destructor
198 - Destructor inlining was totally broken by the change to the
199 is_needed method in 0.72_01. Now there is a test for this
200 feature, and it works again.
203 - Bold the word 'not' in the POD for find_meta (t0m)
205 0.73_01 Sun, April 5, 2009
207 - Call user_class->meta in fewer places, with the eventual goal
208 of allowing the user to rename or exclude ->meta
209 altogether. Instead uses Class::MOP::class_of. (Sartak)
211 * Moose::Meta::Method::Accessor
212 - If an attribute had a lazy default, and that value did not
213 pass the attribute's type constraint, it did not get the
214 message from the type constraint, instead using a generic
215 message. Test provided by perigrin.
217 * Moose::Util::TypeConstraints
218 - Add duck_type keyword. It's sugar over making sure an object
219 can() a list of methods. This is easier than jrockway's
220 suggestion to fork all of CPAN. (perigrin)
221 - add tests and documentation (perigrin)
224 - Document the fact that init_meta() returns the target class's
225 metaclass object. (hdp)
227 * Moose::Cookbook::Extending::Recipe1
228 * Moose::Cookbook::Extending::Recipe2
229 * Moose::Cookbook::Extending::Recipe3
230 * Moose::Cookbook::Extending::Recipe4
231 - Make init_meta() examples explicitly return the metaclass and
232 point out this fact. (hdp)
234 * Moose::Cookbook::Basics::Recipe12
235 - A new recipe, creating a custom meta-method class.
237 * Moose::Cookbook::Meta::Recipe6
238 - A new recipe, creating a custom meta-method class.
241 * Moose::Meta::Method::Constructor
242 - Attribute triggers no longer receive the meta-attribute object
243 as an argument in any circumstance. Previously, triggers
244 called during instance construction were passed the
245 meta-attribute, but triggers called by normal accessors were
246 not. Fixes RT#44429, reported by Mark Swayne. (hdp)
248 * Moose::Manual::Attributes
249 - Remove references to triggers receving the meta-attribute object as an
252 * Moose::Cookbook::FAQ
253 - Remove recommendation for deprecated Moose::Policy and
254 Moose::Policy::FollowPBP; recommend MooseX::FollowPBP
257 * Many methods have been renamed with a leading underscore, and a
258 few have been deprecated entirely. The methods with a leading
259 underscore are consider "internals only". People writing
260 subclasses or extensions to Moose should feel free to override
261 them, but they are not for "public" use.
264 - check_metaclass_compatibility => _check_metaclass_compatibility
266 - Moose::Meta::Method::Accessor
267 - initialize_body => _initialize_body (this is always called
268 when an object is constructed)
269 - /(generate_.*_method(?:_inline)?)/ => '_' . $1
271 - Moose::Meta::Method::Constructor
272 - initialize_body => _initialize_body (this is always called
273 when an object is constructed)
274 - /(generate_constructor_method(?:_inline)?)/ => '_' . $1
275 - attributes => _attributes (now inherited from parent)
276 - meta_instance => _meta_instance (now inherited from parent)
279 - alias_method is deprecated. Use add_method
281 0.73 Fri, March 29, 2009
282 * No changes from 0.72_01.
284 0.72_01 Thu, March 26, 2009
286 - Almost every module has complete API documentation. A few
287 methods (and even whole classes) have been intentionally
288 excluded pending some rethinking of their APIs.
290 * Moose::Util::TypeConstraints
291 - Calling subtype with a name as the only argument is now an
292 exception. If you want an anonymous subtype do:
294 my $subtype = subtype as 'Foo';
296 * Moose::Cookbook::Meta::Recipe7
297 - A new recipe, creating a custom meta-instance class.
299 * Moose::Cookbook::Basics::Recipe5
300 - Fix various typos and mistakes. Includes a patch from Radu
303 * Moose::Cookbook::Basics::Recipe9
304 - Link to this recipe from Moose.pm's builder blurb
307 - When wrapping a function with a prototype, Moose::Exporter now
308 makes sure the wrapped function still has the same
309 prototype. (Daisuke Maki)
311 * Moose::Meta::Attribute
312 - Allow a subclass to set lazy_build for an inherited
316 - Explicitly depend on Data::OptList. We already had this dependency
317 via Sub::Exporter, but since we're using it directly we're
318 better off with it listed. (Sartak)
320 * Moose::Meta::Method::Constructor
321 - Make it easier to subclass the inlining behaviour. (Ash
324 * Moose::Manual::Delta
325 - Details significant changes in the history of Moose, along
326 with recommended workarounds.
328 * Moose::Manual::Contributing
329 - Contributor's guide to Moose.
331 * Moose::Meta::Method::Constructor
332 - The long-deprecated intialize_body method has been removed
333 (yes, spelled like that).
335 * Moose::Meta::Method::Destructor
336 - This is_needed method is now always a class method.
339 - Changes to the internals of how make_immutable works to match
340 changes in latest Class::MOP.
342 0.72 Mon, February 23, 2009
344 * Moose::Meta::Method::Constructor
345 - A mutable class accepted Foo->new(undef) without complaint,
346 while an immutable class would blow up with an unhelpful
347 error. Now, in both cases we throw a helpful error
348 instead. Reported by doy.
350 0.71_01 Sun, February 22, 2009
352 - Hopefully fixed some POD errors in a few recipes that caused
353 them to display weird on search.cpan.org.
355 * Moose::Util::TypeConstraints
356 - Calling type or subtype without the sugar helpers (as, where,
357 message) is now deprecated.
358 - The subtype function tried hard to guess what you meant, but
359 often got it wrong. For example:
361 my $subtype = subtype as 'ArrayRef[Object]';
363 This caused an error in the past, but now works as you'd
367 - Make sure Moose.pm is loaded before calling
368 Moose->throw_error. This wasn't normally an issue, but could
369 bite you in weird cases.
371 0.71 Thu, February 19, 2009
372 * Moose::Cookbook::Basics::Recipe11
373 - A new recipe which demonstrates the use of BUILDARGS and
376 * Moose::Cookbook::Roles::Recipe3
377 - A new recipe, applying a role to an object instance. (Dave
381 - Allow overriding specific keywords from "also" packages. (doy)
384 - Replace hardcoded cookbook tests with Test::Inline to ensure
385 the tests match the actual code in the recipes. (Dave Rolsky)
388 - Working on the above turned up a number of little bugs in the
389 recipe code. (Dave Rolsky)
391 * Moose::Util::TypeConstraints::Optimized
392 - Just use Class::MOP for the optimized ClassName check. (Dave
395 0.70 Sat, February 14, 2009
396 * Moose::Util::TypeConstraints
397 - Added the RoleName type (stevan)
398 - added tests for this (stevan)
400 * Moose::Cookbook::Basics::Recipe3
401 - Updated the before qw[left right] sub to be a little more
402 defensive about what it accepts (stevan)
403 - added more tests to t/000_recipies/basics/003_binary_tree.t
407 - We now always call DEMOLISHALL, even if a class does not
408 define DEMOLISH. This makes sure that method modifiers on
409 DEMOLISHALL work as expected. (doy)
410 - added tests for this (EvanCarroll)
412 * Moose::Util::MetaRole
413 - Accept roles for the wrapped_method_metaclass (rafl)
414 - added tests for this (rafl)
416 * Moose::Meta::Attribute
417 - We no longer pass the meta-attribute object as a final
418 argument to triggers. This actually changed for inlined code a
419 while back, but the non-inlined version and the docs were
423 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
424 they require 0.11. (Dave Rolsky)
427 - Lots of small changes to the manual, cookbook, and
428 elsewhere. These were based on feedback from various
429 users, too many to list here. (Dave Rolsky)
431 0.69 Thu, February 12, 2009
433 - Make some keyword errors use throw_error instead of croak
434 since Moose::Exporter wraps keywords now (Sartak)
437 - Revised every recipe for style and clarity. Also moved some
438 documentation out of cookbook recipes and into Moose::Manual
439 pages. This work was funded as part of the Moose docs grant
440 from TPF. (Dave Rolsky)
442 * Moose::Meta::Method::Delegation
443 - If the attribute doing the delegation was not populated, the
444 error message did not specify the attribute name
447 0.68 Wed, February 4, 2009
449 - Many spelling, typo, and formatting fixes by daxim.
451 * Moose::Manual::Attributes
452 - The NAME section in the POD used "Attribute" so search.cpan
453 didn't resolve links from other documents properly.
455 * Moose::Meta::Method::Overriden
456 - Now properly spelled as Overridden. Thanks to daxim for
459 0.67 Tue, February 3, 2009
461 - Lots of little typo fixes and a few clarifications. Several
462 pages didn't have proper titles, and so weren't actually
463 visible on search.cpan.org. Thanks to hanekomu for a variety
464 of fixes and formatting improvements.
466 0.66 Tue, February 3, 2009
468 - This is a brand new, extensive manual for Moose. This aims to
469 provide a complete introduction to all of Moose's
470 features. This work was funded as part of the Moose docs grant
471 from TPF. (Dave Rolsky)
473 * Moose::Meta::Attribute
474 - Added a delegation_metaclass method to replace a hard-coded
475 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
477 * Moose::Util::TypeConstraints
478 - If you created a subtype and passed a parent that Moose didn't
479 know about, it simply ignored the parent. Now it automatically
480 creates the parent as a class type. This may not be what you
481 want, but is less broken than before. (Dave Rolsky)
483 * Moose::Util::TypeConstraints
484 - This module tried throw errors by calling Moose->throw_error,
485 but it did not ensure that Moose was loaded first. This could
486 cause very unhelpful errors when it tried to throw an error
487 before Moose was loaded. (Dave Rolsky)
489 * Moose::Util::TypeConstraints
490 - You could declare a name with subtype such as "Foo!Bar" that
491 would be allowed, but if you used it in a parameterized type
492 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
493 vetting on names created via the sugar functions, so that they
494 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
496 0.65 Thu, January 22, 2008
497 * Moose and Moose::Meta::Method::Overridden
498 - If an overridden method called super(), and then the
499 superclass's method (not overridden) _also_ called super(),
500 Moose went into an endless recursion loop. Test provided by
501 Chris Prather. (Dave Rolsky)
503 * Moose::Meta::TypeConstraint
504 - All methods are now documented. (gphat)
506 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
507 - Fixed some bogus failures that occurred because we tried to
508 validate filesystem paths in a very ad-hoc and
509 not-quite-correct way. (Dave Rolsky)
511 * Moose::Util::TypeConstraints
512 - Added maybe_type to exports. See docs for details. (rjbs)
515 - Added Moose::Util::TypeConstraints to the SEE ALSO
519 - Methods created via an attribute can now fulfill a "requires"
520 declaration for a role. (nothingmuch)
522 * Moose::Meta::Method::*
523 - Stack traces from inlined code will now report its line and
524 file as being in your class, as opposed to in Moose
527 0.64 Wed, December 31, 2008
528 * Moose::Meta::Method::Accessor
529 - Always inline predicate and clearer methods (Sartak)
531 * Moose::Meta::Attribute
532 - Support for parameterized traits (Sartak)
533 - verify_against_type_constraint method to avoid duplication
534 and enhance extensibility (Sartak)
537 - Tests (but no support yet) for parameterized traits (Sartak)
540 - Require Class::MOP 0.75+, which has the side effect of making
541 sure we work on Win32. (Dave Rolsky)
543 0.63 Mon, December 8, 2008
545 - Some small grammar tweaks and bug fixes in non-Moose example
548 0.62_02 Fri, December 5, 2008
549 * Moose::Meta::Role::Application::ToClass
550 - When a class does not provide all of a role's required
551 methods, the error thrown now mentions all of the missing
552 methods, as opposed to just the first one found. Requested by
553 Curtis Poe (RT #41119). (Dave Rolsky)
555 * Moose::Meta::Method::Constructor
556 - Moose will no longer inline a constructor for your class
557 unless it inherits its constructor from Moose::Object, and
558 will warn when it doesn't inline. If you want to force
559 inlining anyway, pass "replace_constructor => 1" to
560 make_immutable. Addresses RT #40968, reported by Jon
561 Swartz. (Dave Rolsky)
562 - The quoting of default values could be broken if the default
563 contained a single quote ('). Now we use quotemeta to escape
564 anything potentially dangerous in the defaults. (Dave Rolsky)
566 0.62_01 Wed, December 3, 2008
568 - use the method->execute API for BUILDALL
569 and DEMOLISHALL (Sartak)
571 * Moose::Util::TypeConstraints
572 - We now make all the type constraint meta classes immutable
573 before creating the default types provided by Moose. This
574 should make loading Moose a little faster. (Dave Rolsky)
576 0.62 Wed November 26, 2008
577 * Moose::Meta::Role::Application::ToClass
578 Moose::Meta::Role::Application::ToRole
579 - fixed issues where excluding and aliasing the
580 same methods for a single role did not work
581 right (worked just fine with multiple
583 - added test for this (stevan)
585 * Moose::Meta::Role::Application::RoleSummation
586 - fixed the error message when trying to compose
587 a role with a role it excludes (Sartak)
590 - Catch another case where recursion caused the value
591 of $CALLER to be stamped on (t0m)
592 - added test for this (t0m)
595 - Remove the make_immutable keyword, which has been
596 deprecated since April. It breaks metaclasses that
597 use Moose without no Moose (Sartak)
599 * Moose::Meta::Attribute
600 - Removing an attribute from a class now also removes delegation
601 (handles) methods installed for that attribute (t0m)
602 - added test for this (t0m)
604 * Moose::Meta::Method::Constructor
605 - An attribute with a default that looked like a number (but was
606 really a string) would accidentally be treated as a number
607 when the constructor was made immutable (perigrin)
608 - added test for this (perigrin)
611 - create method for constructing a role
613 - added test for this (Sartak)
614 - anonymous roles! (Sartak)
615 - added test for this (Sartak)
618 - more consistent error messages (Sartak)
620 * Moose::Cookbook::Roles::Recipe1
621 - attempt to explain why a role that just requires
622 methods is useful (Sartak)
624 0.61 Fri November 7, 2008
625 * Moose::Meta::Attribute
626 - When passing a role to handles, it will be loaded if necessary
630 - Method objects returned by get_method (and other methods)
631 Could end up being returned without an associated_metaclass
632 attribute. Removing get_method_map, which is provided by
633 Class::MOP::Class, fixed this. The Moose version did nothing
634 different from its parent except introduce a bug. (Dave Rolsky)
635 - added tests for this (jdv79)
638 - Added a $VERSION to all .pm files which didn't have one. Fixes
639 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
641 * Moose::Cookbook::Basics::Recipe4
642 * Moose::Cookbook::Basics::Recipe6
643 - These files had spaces on the first line of the SYNOPSIS, as
644 opposed to a totally empty line. According to RT #40432, this
645 confuses POD parsers. (Dave Rolsky)
647 0.60 Fri October 24, 2008
649 - Passing "-traits" when loading Moose caused the Moose.pm
650 exports to be broken. Reported by t0m. (Dave Rolsky)
651 - Tests for this bug. (t0m)
654 - Change resolve_metaclass alias to use the new
655 load_first_existing_class function. This makes it a lot
656 simpler, and also around 5 times faster. (t0m)
657 - Add caching to resolve_metaclass_alias, which gives an order
658 of magnitude speedup to things which repeatedly call the
659 Moose::Meta::Attribute->does method, notably MooseX::Storage
662 * Moose::Util::TypeConstraint
663 - Put back the changes for parameterized constraints that
664 shouldn't have been removed in 0.59. We still cannot parse
665 them, but MooseX modules can create them in some other
666 way. See the 0.58 changes for more details. (jnapiorkowski)
667 - Changed the way subtypes are created so that the job is
668 delegated to a type constraint parent. This clears up some
669 hardcoded checking and should allow correct subtypes of
670 Moose::Meta::Type::Constraint. Don't rely on this new API too
671 much (create_child_type) because it may go away in the
672 future. (jnapiorkowski)
674 * Moose::Meta::TypeConstraint::Union
675 - Type constraint names are sorted as strings, not numbers.
678 * Moose::Meta::TypeConstraint::Parameterizable
679 - New parameterize method. This can be used as a factory method
680 to make a new type constraint with a given parameterized
681 type. (jnapiorkowski)
682 - added tests (jnapiorkowski)
684 0.59 Tue October 14, 2008
686 - Add abridged documentation for builder/default/initializer/
687 predicate, and link to more details sections in
688 Class::MOP::Attribute. (t0m)
690 * Moose::Util::TypeConstraints
691 - removed prototypes from all but the &-based stuff (mst)
693 * Moose::Util::TypeConstraints
694 - Creating a anonymous subtype with both a constraint and a
695 message failed with a very unhelpful error, but should just
696 work. Reported by t0m. (Dave Rolsky)
699 - Some tests that used Test::Warn if it was available failed
700 with older versions of Test::Warn. Reported by Fayland. (Dave
702 - Test firing behavior of triggers in relation to builder/default/
704 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
705 kinds of supported type. (t0m)
708 - In create(), do not pass "roles" option to the superclass
709 - added related test that creates an anon metaclass with
712 * Moose::Meta::TypeConstraint::Class
713 * Moose::Meta::TypeConstraint::Role
714 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
715 other types (as per change in 0.55_02). (t0m)
717 * Moose::Meta::TypeConstraint::Registry
718 - Fix warning when dealing with unknown type names (t0m)
720 * Moose::Util::TypeConstraints
721 - Reverted changes from 0.58 related to handle parameterized
722 types. This caused random failures on BSD and Win32 systems,
723 apparently related to the regex engine. This means that Moose
724 can no longer parse structured type constraints like
725 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
726 supported in a slightly different way via MooseX::Types some
727 time in the future. (Dave Rolsky)
729 0.58 Sat September 20, 2008
730 !! This release has an incompatible change regarding !!
731 !! how roles add methods to a class !!
733 * Roles and role application
734 ! Roles now add methods by calling add_method, not
735 alias_method. They make sure to always provide a method
736 object, which will be cloned internally. This means that it is
737 now possible to track the source of a method provided by a
738 role, and even follow its history through intermediate roles.
740 This means that methods added by a role now show up when
741 looking at a class's method list/map. (Dave Rolsky)
744 - From this release on, we'll try to maintain a list of
745 conflicting modules, and warn you if you have one
746 installed. For example, this release conflicts with ...
747 - MooseX::Singleton <= 0.11
748 - MooseX::Params::Validate <= 0.05
751 In general, we try to not break backwards compatibility for
752 most Moose users, but MooseX modules and other code which
753 extends Moose's metaclasses is often affected by very small
754 changes in the Moose internals.
756 * Moose::Meta::Method::Delegation
757 * Moose::Meta::Attribute
758 - Delegation methods now have their own method class. (Dave
761 * Moose::Meta::TypeConstraint::Parameterizable
762 - Added a new method 'parameterize' which is basically a factory
763 for the containing constraint. This makes it easier to create
764 new types of parameterized constraints. (jnapiorkowski)
766 * Moose::Meta::TypeConstraint::Union
767 - Changed the way Union types canonicalize their names to follow
768 the normalized TC naming rules, which means we strip all
769 whitespace. (jnapiorkowski)
771 * Moose::Util::TypeConstraints
772 - Parameter and Union args are now sorted, this makes Int|Str
773 the same constraint as Str|Int. (jnapiorkowski)
774 - Changes to the way Union types are parsed to more correctly
775 stringify their names. (jnapiorkowski)
776 - When creating a parameterized type, we now use the new
777 parameterize method. (jnapiorkowski)
778 - Incoming type constraint strings are now normalized to remove
779 all whitespace differences. (jnapiorkowski)
780 - Changed the way we parse type constraint strings so that we now
781 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
782 constraints. This lays the foundation for more flexible type
783 constraint implementations.
785 * Tests and docs for all the above. (jnapiorkowski)
789 - Moose::Exporter will no longer remove a subroutine that the
790 exporting package re-exports. Moose re-exports the
791 Carp::confess function, among others. The reasoning is that we
792 cannot know whether you have also explicitly imported those
793 functions for your own use, so we err on the safe side and
794 always keep them. (Dave Rolsky)
795 - added tests for this (rafl)
798 - Changes to how we fix metaclass compatibility that are much
799 too complicated to go into. The summary is that Moose is much
800 less likely to complain about metaclass incompatibility
801 now. In particular, if two metaclasses differ because
802 Moose::Util::MetaRole was used on the two corresponding
803 classes, then the difference in roles is reconciled for the
804 subclass's metaclass. (Dave Rolsky)
805 - Squashed an warning in _process_attribute (thepler)
808 - throw exceptions (sooner) for invalid attribute names (thepler)
809 - added tests for this (thepler)
811 * Moose::Util::MetaRole
812 - If you explicitly set a constructor or destructor class for a
813 metaclass object, and then applied roles to the metaclass,
814 that explicitly set class would be lost and replaced with the
818 * Moose::Meta::Attribute
819 * Moose::Meta::Method
822 * Moose::Error::Default
823 * Moose::Error::Croak
824 * Moose::Error::Confess
825 - All instances of confess() changed to use overridable
826 C<throw_error> method. This method ultimately calls a class
827 constructor, and you can change the class being called. In
828 addition, errors now pass more information than just a string.
829 The default C<error_class> behaves like C<Carp::confess>, so
830 the behavior is not visibly different for end users.
832 0.57 Wed September 3, 2008
834 - A new bit of doc intended to introduce folks familiar with
835 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
838 - Shows examples of two classes, each done first with and then
839 without Moose. This makes a nice parallel to
840 Moose::Intro. (Dave Rolsky)
842 * Moose::Util::TypeConstraints
843 - Fixed a bug in find_or_parse_type_constraint so that it
844 accepts a Moose::Meta::TypeConstraint object as the parent
845 type, not just a name (jnapiorkowski)
846 - added tests (jnapiorkowski)
849 - If Sub::Name was not present, unimporting failed to actually
850 remove some sugar subs, causing test failures (Dave Rolsky)
852 0.56 Mon September 1, 2008
853 For those not following the series of dev releases, there are
854 several major changes in this release of Moose.
855 ! Moose::init_meta should now be called as a method. See the
858 - Major performance improvements by nothingmuch.
860 - New modules for extension writers, Moose::Exporter and
861 Moose::Util::MetaRole by Dave Rolsky.
863 - Lots of doc improvements and additions, especially in the
868 * Removed all references to the experimental-but-no-longer-needed
869 Moose::Meta::Role::Application::ToMetaclassInstance.
871 * Require Class::MOP 0.65.
873 0.55_04 Sat August 30, 2008
874 * Moose::Util::MetaRole
875 * Moose::Cookbook::Extending::Recipe2
876 - This simplifies the application of roles to any meta class, as
877 well as the base object class. Reimplemented metaclass traits
878 using this module. (Dave Rolsky)
880 * Moose::Cookbook::Extending::Recipe1
881 - This a new recipe, an overview of various ways to write Moose
882 extensions (Dave Rolsky)
884 * Moose::Cookbook::Extending::Recipe3
885 * Moose::Cookbook::Extending::Recipe4
886 - These used to be Extending::Recipe1 and Extending::Recipe2,
889 0.55_03 Fri August 29, 2008
890 * No changes from 0.55_02 except increasing the Class::MOP
891 dependency to 0.64_07.
893 0.55_02 Fri August 29, 2008
894 * Makefile.PL and Moose.pm
895 - explicitly require Perl 5.8.0+ (Dave Rolsky)
897 * Moose::Util::TypeConstraints
898 - Fix warnings from find_type_constraint if the type is not
901 * Moose::Meta::TypeConstraint
902 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
903 return false if the type you specify cannot be found in the
904 type registry, rather than throwing an unhelpful and
905 coincidental exception. (t0m).
906 - added docs & test for this (t0m)
908 * Moose::Meta::TypeConstraint::Registry
909 - add_type_constraint now throws an exception if a parameter is
911 - added docs & test for this (t0m)
913 * Moose::Cookbook::FAQ
914 - Added a faq entry on the difference between "role" and "trait"
918 - Fixed a bug that caused role composition to not see a required
919 method when that method was provided by another role being
920 composed at the same time. (Dave Rolsky)
921 - test and bug finding (tokuhirom)
923 0.55_01 Wed August 20, 2008
925 !! Calling Moose::init_meta as a function is now !!
926 !! deprecated. Please see the Moose.pm docs for details. !!
928 * Moose::Meta::Method::Constructor
929 - Fix inlined constructor so that values produced by default
930 or builder methods are coerced as required. (t0m)
931 - added test for this (t0m)
933 * Moose::Meta::Attribute
934 - A lazy attribute with a default or builder did not attempt to
935 coerce the default value. The immutable code _did_
937 - added test for this (t0m)
940 - This is a new helper module for writing "Moose-alike"
941 modules. This should make the lives of MooseX module authors
942 much easier. (Dave Rolsky)
945 * Moose::Cookbook::Meta::Recipe5
946 - Implemented metaclass traits (and wrote a recipe for it):
948 use Moose -traits => 'Foo'
950 This should make writing small Moose extensions a little
953 * Moose::Cookbook::Basics::Recipe1
954 - Removed any examples of direct hashref access, and applied an
955 editorial axe to reduce verbosity. (Dave Rolsky)
957 * Moose::Cookbook::Basics::Recipe1
958 - Also applied an editorial axe here. (Dave Rolsky)
961 * Moose::Cookbook::Extending::Recipe1
962 * Moose::Cookbook::Extending::Recipe2
963 - Rewrote extending and embedding moose documentation and
964 recipes to use Moose::Exporter (Dave Rolsky)
968 - These two modules now warn when you load them from the main
969 package "main" package, because we will not export sugar to
970 main. Previously it just did nothing. (Dave Rolsky)
973 - Now provide an init_meta method just like Moose.pm, and you
974 can call this to provide an alternate role metaclass. (Dave
975 Rolsky and nothingmuch)
976 - get_method_map now respects the package cache flag (nothingmuch)
979 - Two new methods - add_method and wrap_method_body
983 - Optimizations including allowing constructors to accept hash
984 refs, making many more classes immutable, and making
985 constructors immutable. (nothingmuch)
987 0.55 Sun August 3, 2008
988 * Moose::Meta::Attribute
989 - breaking down the way 'handles' methods are
990 created so that the process can be more easily
991 overridden by subclasses (stevan)
993 * Moose::Meta::TypeConstraint
994 - fixing what is passed into a ->message with
995 the type constraints (RT #37569)
996 - added tests for this (Charles Alderman)
998 * Moose::Util::TypeConstraints
999 - fix coerce to accept anon types like subtype can (mst)
1002 - reorganized the recipes into sections - Basics, Roles, Meta,
1003 Extending - and wrote abstracts for each section (Dave Rolsky)
1005 * Moose::Cookbook::Basics::Recipe10
1006 - A new recipe that demonstrates operator overloading
1007 in combination with Moose. (bluefeet)
1009 * Moose::Cookbook::Meta::Recipe1
1010 - an introduction to what meta is and why you'd want to make
1011 your own metaclass extensions (Dave Rolsky)
1013 * Moose::Cookbook::Meta::Recipe4
1014 - a very simple metaclass example (Dave Rolsky)
1016 * Moose::Cookbook::Extending::Recipe1
1017 - how to write a Moose-alike module to use your own object base
1020 * Moose::Cookbook::Extending::Recipe2
1021 - how to write modules with an API just like C<Moose.pm> (Dave
1025 - Tons of fixes, both syntactical and grammatical (Dave
1026 Rolsky, Paul Fenwick)
1028 0.54 Thurs. July 3, 2008
1029 ... this is not my day today ...
1031 * Moose::Meta::Attribute
1032 - fixed legal_options_for_inheritance such that
1033 clone_and_inherit options still works for
1034 Class::MOP::Attribute objects and therefore
1035 does not break MooseX::AttributeHelpers
1038 0.53 Thurs. July 3, 2008
1039 * Whoops, I guess I should run 'make manifest' before
1040 actually releasing the module. No actual changes
1041 in this release, except the fact that it includes
1042 the changes that I didn't include in the last
1045 0.52 Thurs. July 3, 2008
1047 - added "FEATURE REQUESTS" section to the Moose docs
1048 to properly direct people (stevan) (RT #34333)
1049 - making 'extends' croak if it is passed a Role since
1050 this is not ever something you want to do
1051 (fixed by stevan, found by obra)
1052 - added tests for this (stevan)
1055 - adding support for DOES (as in UNIVERSAL::DOES)
1057 - added test for this
1059 * Moose::Meta::Attribute
1060 - added legal_options_for_inheritance (wreis)
1061 - added tests for this (wreis)
1063 * Moose::Cookbook::Snacks::*
1064 - removed some of the unfinished snacks that should
1065 not have been released yet. Added some more examples
1066 to the 'Keywords' snack. (stevan)
1068 * Moose::Cookbook::Style
1069 - added general Moose "style guide" of sorts to the
1070 cookbook (nothingmuch) (RT #34335)
1073 - added more BUILDARGS tests (stevan)
1075 0.51 Thurs. Jun 26, 2008
1077 - add unimport so "no Moose::Role" actually does
1080 * Moose::Meta::Role::Application::ToRole
1081 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
1082 order to provide its own implementation, that method still got
1083 added to the list of required methods for consumers of
1084 RoleB. Now an aliased method is only added to the list of
1085 required methods if the role doing the aliasing does not
1086 provide its own implementation. See Recipe 11 for an example
1087 of all this. (Dave Rolsky)
1088 - added tests for this
1090 * Moose::Meta::Method::Constructor
1091 - when a single argument that wasn't a hashref was provided to
1092 an immutabilized constructor, the error message was very
1093 unhelpful, as opposed to the non-immutable error. Reported by
1095 - added test for this (Dave Rolsky)
1097 * Moose::Meta::Attribute
1098 - added support for meta_attr->does("ShortAlias") (sartak)
1099 - added tests for this (sartak)
1100 - moved the bulk of the `handles` handling to the new
1101 install_delegation method (Stevan)
1104 - Added BUILDARGS, a new step in new()
1106 * Moose::Meta::Role::Application::RoleSummation
1107 - fix typos no one ever sees (sartak)
1109 * Moose::Util::TypeConstraints
1110 * Moose::Meta::TypeConstraint
1111 * Moose::Meta::TypeCoercion
1112 - Attempt to work around the ??{ } vs. threads issue
1114 - Some null_constraint optimizations
1116 0.50 Thurs. Jun 11, 2008
1117 - Fixed a version number issue by bumping all modules
1120 0.49 Thurs. Jun 11, 2008
1121 !! This version now approx. 20-25% !!
1122 !! faster with new Class::MOP 0.59 !!
1124 * Moose::Meta::Attribute
1125 - fixed how the is => (ro|rw) works with
1126 custom defined reader, writer and accessor
1128 - added docs for this (TODO).
1129 - added tests for this (Thanks to Penfold)
1130 - added the custom attribute alias for regular
1131 Moose attributes which is "Moose"
1132 - fix builder and default both being used
1137 Moose::Meta::Attribute
1139 Moose::Meta::Role::Composite
1140 Moose::Util::TypeConstraints
1141 - switched usage of reftype to ref because
1145 - changing add_package_symbol to use the new
1149 - fixed how DEMOLISHALL is called so that it
1150 can be overrided in subclasses (thanks to Sartak)
1151 - added test for this (thanks to Sartak)
1153 * Moose::Util::TypeConstraints
1154 - move the ClassName type check code to
1155 Class::MOP::is_class_loaded (thanks to Sartak)
1157 * Moose::Cookbook::Recipe11
1158 - add tests for this (thanks to tokuhirom)
1160 0.48 Thurs. May 29, 2008
1161 (early morning release engineering)--
1163 - fixing the version in Moose::Meta::Method::Destructor
1164 which was causing the indexer to choke
1166 0.47 Thurs. May 29, 2008
1167 (late night release engineering)--
1169 - fixing the version is META.yml, no functional
1170 changes in this release
1172 0.46 Wed. May 28, 2008
1173 !! This version now approx. 20-25% !!
1174 !! faster with new Class::MOP 0.57 !!
1176 * Moose::Meta::Class
1177 - some optimizations of the &initialize method
1178 since it is called so often by &meta
1180 * Moose::Meta::Class
1182 - now use the get_all_package_symbols from the
1183 updated Class::MOP, test suite is now 10 seconds
1186 * Moose::Meta::Method::Destructor
1187 - is_needed can now also be called as a class
1188 method for immutablization to check if the
1189 destructor object even needs to be created
1192 * Moose::Meta::Method::Destructor
1193 Moose::Meta::Method::Constructor
1194 - added more descriptive error message to help
1195 keep people from wasting time tracking an error
1196 that is easily fixed by upgrading.
1198 0.45 Saturday, May 24, 2008
1200 - Because of work in Class::MOP 0.57, all
1201 XS based functionality is now optional
1202 and a Pure Perl version is supplied
1203 - the CLASS_MOP_NO_XS environment variable
1204 can now be used to force non-XS versions
1206 - several of the packages have been tweaked
1207 to take care of this, mostly we added
1208 support for the package_name and name
1209 variables in all the Method metaclasses
1210 - before/around/after method modifiers now
1211 support regexp matching of names
1212 (thanks to Takatoshi Kitano)
1213 - tests added for this
1214 - NOTE: this only works for classes, it
1215 is currently not supported in roles,
1216 but, ... patches welcome
1217 - All usage of Carp::confess have been replaced
1218 by Carp::croak in the "keyword" functions since
1219 the stack trace is usually not helpful
1222 - All usage of Carp::confess have been replaced
1223 by Carp::croak in the "keyword" functions since
1224 the stack trace is usually not helpful
1225 - The 'has' keyword for roles now accepts the
1226 same array ref form that Moose.pm does
1227 (has [qw/foo bar/] => (is => 'rw', ...))
1228 - added test for this
1230 * Moose::Meta::Attribute
1231 - trigger on a ro-attribute is no longer an
1232 error, as it's useful to trigger off of the
1235 * Moose::Meta::Class
1236 - added same 'add_package_symbol' fix as in
1240 - does_role now handles non-Moose classes
1242 - added tests for this
1243 - added the 'add_method_modifier' function
1244 (thanks to Takatoshi Kitano)
1246 * Moose::Util::TypeConstraints
1247 - subtypes of parameterizable types now are
1248 themselves parameterizable types
1250 * Moose::Meta::Method::Constructor
1251 - fixed bug where trigger was not being
1252 called by the inlined immutable
1254 - added test for this (thanks to Caelum)
1256 * Moose::Meta::Role::Application::ToInstance
1257 - now uses the metaclass of the instance
1258 (if possible) to create the anon-class
1259 (thanks Jonathan Rockway)
1261 * Moose::Cookbook::Recipe22
1262 - added the meta-attribute trait recipe
1266 - fixed hash-ordering test bug that was
1267 causing occasional cpantester failures
1268 - renamed the t/000_recipe/*.t tests to be
1269 more descriptive (thanks to Sartak)
1271 0.44 Sat. May 10, 2008
1273 - made make_immutable warning cluck to
1274 show where the error is (thanks mst)
1277 - BUILDALL and DEMOLISHALL now call
1278 ->body when looping through the
1279 methods, to avoid the overloaded
1281 - fixed issue where DEMOLISHALL was
1282 eating the $@ values, and so not
1283 working correctly, it still kind of
1284 eats them, but so does vanilla perl
1285 - added tests for this
1287 * Moose::Cookbook::Recipe7
1288 - added new recipe for immutable
1289 functionality (thanks Dave Rolsky)
1291 * Moose::Cookbook::Recipe9
1292 - added new recipe for builder and
1293 lazy_build (thanks Dave Rolsky)
1295 * Moose::Cookbook::Recipe11
1296 - added new recipe for method aliasing
1297 and exclusion with Roles (thanks Dave Rolsky)
1300 - fixed Win32 test failure (thanks spicyjack)
1302 ~ removed Build.PL and Module::Build compat
1303 since Module::Install has done that.
1305 0.43 Wed. April, 30, 2008
1307 drink more coffee before
1308 doing release engineering
1310 - whoops, forgot to do the smolder tests,
1311 and we broke some of the custom meta-attr
1312 modules. This fixes that.
1314 0.42 Mon. April 28, 2008
1315 - some bad tests slipped by, nothing else
1316 changed in this release (cpantesters++)
1318 - upped the Class::MOP dependency to 0.55
1319 since we have tests which need the C3
1322 0.41 Mon. April 28, 2008
1323 ~~ numerous documentation updates ~~
1325 - Changed all usage of die to Carp::croak for better
1326 error reporting (initial patch by Tod Hagan)
1328 ** IMPORTANT NOTE **
1329 - the make_immutable keyword is now deprecated, don't
1330 use it in any new code and please fix your old code
1331 as well. There will be 2 releases, and then it will
1337 - refactored the way inner and super work to avoid
1338 any method/@ISA cache penalty (nothingmuch)
1340 * Moose::Meta::Class
1341 - fixing &new_object to make sure trigger gets the
1342 coerced value (spotted by Charles Alderman on the
1344 - added test for this
1346 * Moose::Meta::Method::Constructor
1347 - immutable classes which had non-lazy attributes were calling
1348 the default generating sub twice in the constructor. (bug
1349 found by Jesse Luehrs, fixed by Dave Rolsky)
1350 - added tests for this (Dave Rolsky)
1351 - fix typo in initialize_body method (nothingmuch)
1353 * Moose::Meta::Method::Destructor
1354 - fix typo in initialize_body method (nothingmuch)
1356 * Moose::Meta::Method::Overriden
1357 Moose::Meta::Method::Augmented
1358 - moved the logic for these into their own
1359 classes (nothingmuch)
1361 * Moose::Meta::Attribute
1362 - inherited attributes may now be extended without
1363 restriction on the type ('isa', 'does') (Sartak)
1364 - added tests for this (Sartak)
1365 - when an attribute property is malformed (such as lazy without
1366 a default), give the name of the attribute in the error
1368 - added the &applied_traits and &has_applied_traits methods
1369 to allow introspection of traits
1370 - added tests for this
1371 - moved 'trait' and 'metaclass' argument handling to here from
1373 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1374 '+foo' syntax) (nothingmuch)
1375 - added tests for this (t0m)
1378 - localize $@ inside DEMOLISHALL to avoid it
1379 eating $@ (found by Ernesto)
1380 - added test for this (thanks to Ernesto)
1382 * Moose::Util::TypeConstraints
1383 - &find_type_constraint now DWIMs when given an
1384 type constraint object or name (nothingmuch)
1385 - &find_or_create_type_constraint superseded with a number of more
1387 - find_or_create_{isa,does}_type_constraint
1388 - find_or_parse_type_constraint
1390 * Moose::Meta::TypeConstraint
1391 Moose::Meta::TypeConstraint::Class
1392 Moose::Meta::TypeConstraint::Role
1393 Moose::Meta::TypeConstraint::Enum
1394 Moose::Meta::TypeConstraint::Union
1395 Moose::Meta::TypeConstraint::Parameterized
1396 - added the &equals method for comparing two type
1397 constraints (nothingmuch)
1398 - added tests for this (nothingmuch)
1400 * Moose::Meta::TypeConstraint
1401 - add the &parents method, which is just an alias to &parent.
1402 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1404 * Moose::Meta::TypeConstraint::Class
1405 - added the class attribute for introspection purposes
1407 - added tests for this
1409 * Moose::Meta::TypeConstraint::Enum
1410 Moose::Meta::TypeConstraint::Role
1411 - broke these out into their own classes (nothingmuch)
1413 * Moose::Cookbook::Recipe*
1414 - fixed references to test file locations in the POD
1415 and updated up some text for new Moose features
1419 - Added &resolve_metaclass_alias, a helper function for finding an actual
1420 class for a short name (e.g. in the traits list)
1422 0.40 Fri. March 14, 2008
1423 - I hate Pod::Coverage
1425 0.39 Fri. March 14, 2008
1427 - documenting the use of '+name' with attributes
1428 that come from recently composed roles. It makes
1429 sense, people are using it, and so why not just
1430 officially support it.
1431 - fixing the 'extends' keyword so that it will not
1432 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1435 - added the perl -Moose=+Class::Name feature to allow
1436 monkeypatching of classes in one liners
1439 - fixing the 'apply_all_roles' keyword so that it will not
1440 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1442 * Moose::Meta::Class
1443 - added ->create method which now supports roles (thanks to jrockway)
1444 - added tests for this
1445 - added ->create_anon_class which now supports roles and caching of
1446 the results (thanks to jrockway)
1447 - added tests for this
1448 - made ->does_role a little more forgiving when it is
1449 checking a Class::MOP era metaclasses.
1451 * Moose::Meta::Role::Application::ToInstance
1452 - it is now possible to pass extra params to be used when
1453 a role is applied to an the instance (rebless_params)
1454 - added tests for this
1456 * Moose::Util::TypeConstraints
1457 - class_type now accepts an optional second argument for a
1458 custom message. POD anotated accordingly (groditi)
1459 - added tests for this
1460 - it is now possible to make anon-enums by passing 'enum' an
1461 ARRAY ref instead of the $name => @values. Everything else
1463 - added tests for this
1466 - making test for using '+name' on attributes consumed
1467 from a role, it works and makes sense too.
1469 * Moose::Meta::Attribute
1470 - fix handles so that it doesn't return nothing
1471 when the method cannot be found, not sure why
1472 it ever did this originally, this means we now
1473 have slightly better support for AUTOLOADed
1475 - added more delegation tests
1476 - adding ->does method to this so as to better
1477 support traits and their introspection.
1478 - added tests for this
1481 - localizing the Data::Dumper configurations so
1482 that it does not pollute others (RT #33509)
1483 - made ->does a little more forgiving when it is
1484 passed Class::MOP era metaclasses.
1486 0.38 Fri. Feb. 15, 2008
1487 * Moose::Meta::Attribute
1488 - fixed initializer to correctly do
1489 type checking and coercion in the
1491 - added tests for this
1494 - fixed some finicky tests (thanks to konobi)
1496 0.37 Thurs. Feb. 14, 2008
1498 - fixed some details in Moose::init_meta
1499 and its superclass handling (thanks thepler)
1500 - added tests for this (thanks thepler)
1501 - 'has' now dies if you don't pass in name
1503 - added the 'make_immutable' keyword as a shortcut
1506 * Moose::Meta::Class
1507 Moose::Meta::Method::Constructor
1508 Moose::Meta::Attribute
1509 - making (init_arg => undef) work here too
1510 (thanks to nothingmuch)
1512 * Moose::Meta::Attribute
1513 Moose::Meta::Method::Constructor
1514 Moose::Meta::Method::Accessor
1515 - make lazy attributes respect attr initializers (rjbs)
1516 - added tests for this
1518 * Moose::Util::TypeConstraints
1519 Moose::Util::TypeConstraints::OptimizedConstraints
1520 Moose::Meta::TypeConstraints
1521 Moose::Meta::Attribute
1522 Moose::Meta::Method::Constructor
1523 Moose::Meta::Method::Accessor
1524 - making type errors use the
1525 assigned message (thanks to Sartak)
1526 - added tests for this
1528 * Moose::Meta::Method::Destructor
1529 - making sure DESTROY gets inlined properly
1530 with successive DEMOLISH calls (thanks to manito)
1532 * Moose::Meta::Attribute
1533 Moose::Meta::Method::Accessor
1534 - fixed handling of undef with type constraints
1536 - added tests for this
1539 - added &get_all_init_args and &get_all_attribute_values
1540 (thanks to Sartak and nothingmuch)
1542 0.36 Sat. Jan. 26, 2008
1544 Moose::Meta::Attribute
1545 - role type tests now support when roles are
1546 applied to non-Moose classes (found by ash)
1547 - added tests for this (thanks to ash)
1548 - couple extra tests to boost code coverage
1550 * Moose::Meta::Method::Constructor
1551 - improved fix for handling Class::MOP attributes
1552 - added test for this
1554 * Moose::Meta::Class
1555 - handled the add_attribute($attribute_meta_object)
1557 - added test for this
1559 0.35 Tues. Jan. 22, 2008
1560 * Moose::Meta::Method::Constructor
1561 - fix to make sure even Class::MOP attributes
1562 are handled correctly (Thanks to Dave Rolsky)
1563 - added test for this (also Dave Rolsky)
1565 * Moose::Meta::Class
1566 - improved error message on _apply_all_roles,
1567 you should now use Moose::Util::apply_all_roles
1568 and you shouldnt have been using a _ prefixed
1569 method in the first place ;)
1571 0.34 Mon. Jan. 21, 2008
1572 ~~~ more misc. doc. fixes ~~~
1573 ~~ updated copyright dates ~~
1575 Moose is now a postmodern object system :)
1576 - (see the POD for details)
1578 * <<Role System Refactoring>>
1579 - this release contains a major reworking and
1580 cleanup of the role system
1581 - 100% backwards compat.
1582 - Role application now restructured into seperate
1583 classes based on type of applicants
1584 - Role summation (combining of more than one role)
1585 is much cleaner and anon-classes are no longer
1586 used in this process
1587 - new Composite role metaclass
1588 - runtime application of roles to instances
1589 is now more efficient and re-uses generated
1590 classes when applicable
1592 * <<New Role composition features>>
1593 - methods can now be excluded from a given role
1595 - methods can now be aliased to another name (and
1596 still retain the original as well)
1598 * Moose::Util::TypeConstraints::OptimizedConstraints
1599 - added this module (see above)
1601 * Moose::Meta::Class
1602 - fixed the &_process_attribute method to be called
1603 by &add_attribute, so that the API is now correct
1605 * Moose::Meta::Method::Accessor
1606 - fixed bug when passing a list of values to
1607 an accessor would get (incorrectly) ignored.
1608 Thanks to Sartak for finding this ;)
1609 - added tests for this (Sartak again)
1611 * Moose::Meta::Method::Accessor
1612 Moose::Meta::Method::Constructor
1613 Moose::Meta::Attribute
1614 Moose::Meta::TypeConstraint
1615 Moose::Meta::TypeCoercion
1616 - lots of cleanup of such things as:
1618 - type constraint handling
1619 - error handling/messages
1620 (thanks to nothingmuch)
1622 * Moose::Meta::TypeConstraint::Parameterizable
1623 - added this module to support the refactor
1624 in Moose::Meta::TypeConstraint::Parameterized
1626 * Moose::Meta::TypeConstraint::Parameterized
1627 - refactored how these types are handled so they
1628 are more generic and not confined to ArrayRef
1632 - shortened some file names for better VMS support (RT #32381)
1634 0.33 Fri. Dec. 14, 2007
1635 !! Moose now loads 2 x faster !!
1636 !! with new Class::MOP 0.49 !!
1638 ++ new oose.pm module to make command line
1639 Moose-ness easier (see POD docs for more)
1641 * Moose::Meta::Class
1643 - several tweaks to take advantage of the
1644 new method map caching in Class::MOP
1646 * Moose::Meta::TypeConstraint::Parameterized
1647 - allow subtypes of ArrayRef and HashRef to
1648 be used as a container (sartak)
1649 - added tests for this
1650 - basic support for coercion to ArrayRef and
1651 HashRef for containers (sartak)
1652 - added tests for this
1654 * Moose::Meta::TypeCoercion
1655 - coercions will now create subtypes as needed
1656 so you can now add coercions to parameterized
1657 types without having to explictly define them
1658 - added tests for this
1660 * Moose::Meta::Method::Accessor
1661 - allow subclasses to decide whether we need
1662 to copy the value into a new variable (sartak)
1664 0.32 Tues. Dec. 4, 2007
1665 * Moose::Util::TypeConstraints
1666 - fixing how subtype aliases of unions work
1667 they should inherit the parent's coercion
1668 - added tests for this
1669 - you can now define multiple coercions on
1670 a single type at different times instead of
1671 having to do it all in one place
1672 - added tests for this
1674 * Moose::Meta::TypeConstraint
1675 - there is now a default constraint of sub { 1 }
1676 instead of Moose::Util::TypeConstraints setting
1679 * Moose::Meta::TypeCoercion
1680 * Moose::Meta::TypeCoercion::Union
1681 - added the &has_coercion_for_type and
1682 &add_type_coercions methods to support the
1683 new features above (although you cannot add
1684 more type coercions for Union types)
1686 0.31 Mon. Nov. 26, 2007
1687 * Moose::Meta::Attribute
1688 - made the +attr syntax handle extending types with
1689 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1690 now works if the original foo is an ArrayRef.
1691 - added tests for this.
1692 - delegation now works even if the attribute does not
1693 have a reader method using the get_read_method_ref
1694 method from Class::MOP::Attribute.
1695 - added tests for this
1696 - added docs for this
1698 * Moose::Util::TypeConstraints
1699 - passing no "additional attribute info" to
1700 &find_or_create_type_constraint will no longer
1701 attempt to create an __ANON__ type for you,
1702 instead it will just return undef.
1703 - added docs for this
1705 0.30 Fri. Nov. 23, 2007
1706 * Moose::Meta::Method::Constructor
1707 -builder related bug in inlined constructor. (groditi)
1709 * Moose::Meta::Method::Accessor
1710 - genereate unnecessary calls to predicates and refactor
1711 code generation for runtime speed (groditi)
1713 * Moose::Util::TypeConstraints
1714 - fix ClassName constraint to introspect symbol table (mst)
1715 - added more tests for this (mst)
1716 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1717 with work correctly.
1718 - added tests for this
1721 - adding the link to Recipie 11 (written by Sartak)
1722 - adding test for SYNOPSIS code
1725 - New tests for builder bug. Upon instantiation, if an
1726 attribute had a builder, no value and was not lazy the
1727 builder default was not getting run, oops. (groditi)
1729 0.29 Tues. Nov. 13, 2007
1730 * Moose::Meta::Attribute
1731 - Fix error message on missing builder method (groditi)
1733 * Moose::Meta::Method::Accessor
1734 - Fix error message on missing builder method (groditi)
1737 - Add test to check for the correct error message when
1738 builder method is missing (groditi)
1740 0.28 Tues. Nov. 13, 2007
1741 - 0.27 packaged incorrectly (groditi)
1743 0.27 Tues. Nov. 13, 2007
1744 * Moose::Meta::Attribute
1745 - Added support for the new builder option (groditi)
1746 - Added support for lazy_build option (groditi)
1747 - Changed slot initialization for predicate changes (groditi)
1749 * Moose::Meta::Method::Accessor
1750 - Added support for lazy_build option (groditi)
1751 - Fix inline methods to work with corrected predicate
1754 * Moose::Meta::Method::Constructor
1755 - Added support for lazy_build option (groditi)
1758 - tests for builder and lazy_build (groditi)
1760 * fixing some misc. bits in the docs that
1761 got mentioned on CPAN Forum & perlmonks
1764 - fixed how required methods are handled
1765 when they encounter overriden or modified
1766 methods from a class (thanks to confound).
1767 - added tests for this
1769 * Moose::Util::TypeConstraint
1770 - fixed the type notation parser so that
1771 the | always creates a union and so is
1772 no longer a valid type char (thanks to
1773 konobi, mugwump and #moose for working
1775 - added more tests for this
1777 0.26 Thurs. Sept. 27, 2007
1780 * Parameterized Types
1781 We now support parameterized collection types, such as:
1782 ArrayRef[Int] # array or integers
1783 HashRef[Object] # a hash with object values
1784 They can also be nested:
1785 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1786 And work with the type unions as well:
1787 ArrayRef[Int | Str] # array of integers of strings
1789 * Better Framework Extendability
1790 Moose.pm is now "extendable" such that it is now much
1791 easier to extend the framework and add your own keywords
1792 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1793 section of the Moose.pm docs.
1796 In an effort to begin documenting some of the various
1797 details of Moose as well as some common idioms, we have
1798 created Moose::Cookbook::Snacks as a place to find
1799 small (easily digestable) nuggets of Moose code.
1802 ~ Several doc updates/cleanup thanks to castaway ~
1804 - converted build system to use Module::Install instead of
1805 Module::Build (thanks to jrockway)
1808 - added all the meta classes to the immutable list and
1809 set it to inline the accessors
1810 - fix import to allow Sub::Exporter like { into => }
1811 and { into_level => } (perigrin)
1812 - exposed and documented init_meta() to allow better
1813 embedding and extending of Moose (perigrin)
1816 - complete re-organization of the test suite
1817 - added some new tests as well
1818 - finally re-enabled the Moose::POOP test since
1819 the new version of DBM::Deep now works again
1822 * Moose::Meta::Class
1823 - fixed very odd and very nasty recursion bug with
1825 - added tests for this (eilara)
1827 * Moose::Meta::Attribute
1828 Moose::Meta::Method::Constructor
1829 Moose::Meta::Method::Accessor
1830 - fixed issue with overload::Overloaded getting called
1831 on non-blessed items. (RT #29269)
1832 - added tests for this
1834 * Moose::Meta::Method::Accessor
1835 - fixed issue with generated accessor code making
1836 assumptions about hash based classes (thanks to dexter)
1838 * Moose::Coookbook::Snacks
1839 - these are bits of documentation, not quite as big as
1840 Recipes but which have no clear place in the module docs.
1841 So they are Snacks! (horray for castaway++)
1843 * Moose::Cookbook::Recipe4
1844 - updated it to use the new ArrayRef[MyType] construct
1845 - updated the accompanying test as well
1847 +++ Major Refactor of the Type Constraint system +++
1848 +++ with new features added as well +++
1850 * Moose::Util::TypeConstraint
1851 - no longer uses package variable to keep track of
1852 the type constraints, now uses the an instance of
1853 Moose::Meta::TypeConstraint::Registry to do it
1854 - added more sophisticated type notation parsing
1856 - added tests for this
1858 * Moose::Meta::TypeConstraint
1859 - some minor adjustments to make subclassing easier
1860 - added the package_defined_in attribute so that we
1861 can track where the type constraints are created
1863 * Moose::Meta::TypeConstraint::Union
1864 - this is now been refactored to be a subclass of
1865 Moose::Meta::TypeConstraint
1867 * Moose::Meta::TypeCoercion::Union
1868 - this has been added to service the newly refactored
1869 Moose::Meta::TypeConstraint::Union and is itself
1870 a subclass of Moose::Meta::TypeCoercion
1872 * Moose::Meta::TypeConstraint::Parameterized
1873 - added this module (taken from MooseX::AttributeHelpers)
1874 to help construct nested collection types
1875 - added tests for this
1877 * Moose::Meta::TypeConstraint::Registry
1878 - added this class to keep track of type constraints
1880 0.25 Mon. Aug. 13, 2007
1882 - Documentation update to reference Moose::Util::TypeConstraints
1883 under 'isa' in 'has' for how to define a new type
1884 (thanks to shlomif).
1886 * Moose::Meta::Attribute
1887 - required attributes now will no longer accept undef
1888 from the constructor, even if there is a default and lazy
1889 - added tests for this
1890 - default subroutines must return a value which passes the
1892 - added tests for this
1894 * Moose::Meta::Attribute
1895 * Moose::Meta::Method::Constructor
1896 * Moose::Meta::Method::Accessor
1897 - type-constraint tests now handle overloaded objects correctly
1898 in the error message
1899 - added tests for this (thanks to EvanCarroll)
1901 * Moose::Meta::TypeConstraint::Union
1902 - added (has_)hand_optimized_constraint to this class so that
1903 it behaves as the regular Moose::Meta::TypeConstraint does.
1906 - large refactoring of this code
1907 - added several more tests
1908 - tests for subtle conflict resolition issues
1909 added, but not currently running
1912 * Moose::Cookbook::Recipe7
1913 - added new recipe for augment/inner functionality
1915 - added test for this
1918 - a formal definition of roles (still in progress)
1921 - utilities for easier working with Moose classes
1922 - added tests for these
1925 - This contains Moose specific test functions
1926 - added tests for these
1928 0.24 Tues. July 3, 2007
1929 ~ Some doc updates/cleanup ~
1931 * Moose::Meta::Attribute
1932 - added support for roles to be given as parameters
1933 to the 'handles' option.
1934 - added tests and docs for this
1935 - the has '+foo' attribute form now accepts changes to
1936 the lazy option, and the addition of a handles option
1937 (but not changing the handles option)
1938 - added tests and docs for this
1941 - required methods are now fetched using find_method_by_name
1942 so that required methods can come from superclasses
1943 - adjusted tests for this
1945 0.23 Mon. June 18, 2007
1946 * Moose::Meta::Method::Constructor
1947 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1948 * Moose::Meta::Class
1949 - Modify make_immutable to work with the new Class::MOP immutable
1950 mechanism + POD + very basic test (groditi)
1951 * Moose::Meta::Attribute
1952 - Fix handles to use goto() so that caller() comes out properly on
1953 the other side (perigrin)
1955 0.22 Thurs. May 31, 2007
1956 * Moose::Util::TypeConstraints
1957 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1958 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1959 prototypes for functions
1960 - added the ClassName type constraint, this checks for strings
1961 which will respond true to ->isa(UNIVERSAL).
1962 - added tests and docs for this
1963 - subtyping just in name now works correctly by making the
1964 default for where be { 1 }
1965 - added test for this
1967 * Moose::Meta::Method::Accessor
1968 - coerce and lazy now work together correctly, thanks to
1969 merlyn for finding this bug
1970 - tests added for this
1971 - fix reader presedence bug in Moose::Meta::Attribute + tests
1974 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1975 a HASH-ref and missed. This produces better error messages then
1976 having it die cause undef is not a HASH.
1977 - added tests for this
1979 0.21 Thursday, May 2nd, 2007
1981 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1982 - modified unimport to remove super and inner along with the rest
1983 - altered unimport tests to handle this
1986 - altered super export to populate SUPER_SLOT
1988 * Moose::Meta::Class
1989 - altered augment and override modifier application to use *_SLOT
1990 - modified tests for these to unimport one test class each to test
1993 - fixed issue where custom attribute metaclasses
1994 where not handled correctly in roles
1995 - added tests for this
1997 * Moose::Meta::Class
1998 - fixed issue where extending metaclasses with
1999 roles would blow up. Thanks to Aankhen`` for
2000 finding this insidious error, and it's solution.
2002 ~~ lots of spelling and grammer fixes in the docs,
2003 many many thanks to rlb3 and Aankhen for these :)
2005 0.20 Friday, April 6th, 2007
2006 >> I messed up the SKIP logic in one test
2007 so this release is just to fix that.
2010 - 'has' now also accepts an ARRAY ref
2011 to create multiple attrs (see docs)
2012 (thanks to konobi for this)
2013 - added tests and docs
2015 0.19 Thurs. April 5th, 2007
2016 ~~ More documentation updates ~~
2018 * Moose::Util::TypeConstraints
2019 - 'type' now supports messages as well
2020 thanks to phaylon for finding this
2021 - added tests for this
2022 - added &list_all_type_constraints and
2023 &list_all_builtin_type_constraints
2024 functions to facilitate introspection.
2026 * Moose::Meta::Attribute
2027 - fixed regexp 'handles' declarations
2028 to build the list of delegated methods
2029 correctly (and not override important
2030 things like &new) thanks to ashleyb
2032 - added tests and docs for this
2033 - added the 'documentation' attributes
2034 so that you can actually document your
2035 attributes and inspect them through the
2037 - added tests and docs for this
2039 * Moose::Meta::Class
2040 - when loading custom attribute metaclasses
2041 it will first look in for the class in the
2042 Moose::Meta::Attribute::Custom::$name, and
2043 then default to just loading $name.
2044 - added tests and docs for this
2046 * Moose::Meta::TypeConstraint
2047 - type constraints now stringify to their names.
2048 - added test for this
2051 - added tests to assure we work with Module::Refresh
2052 - added stricter test skip logic in the Moose POOP
2053 test, ask Rob Kinyon why.
2054 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
2056 0.18 Sat. March 10, 2007
2057 ~~ Many, many documentation updates ~~
2060 - We now use Class::MOP::load_class to
2062 - added tests to show types and subtypes
2063 working with Declare::Constraints::Simple
2064 and Test::Deep as constraint engines.
2067 !! You must have Class::MOP 0.37_001 !!
2068 !! for this developer release to work !!
2070 This release was primarily adding the immutable
2071 feature to Moose. An immutable class is one which
2072 you promise not to alter. When you set the class
2073 as immutable it will perform various bits of
2074 memoization and inline certain part of the code
2075 (constructors, destructors and accessors). This
2076 minimizes (and in some cases totally eliminates)
2077 one of Moose's biggest performance hits. This
2078 feature is not on by default, and is 100% optional.
2079 It has several configurable bits as well, so you
2080 can pick and choose to your specific needs.
2082 The changes involved in this were fairly wide and
2083 highly specific, but 100% backwards compatible, so
2084 I am not going to enumerate them here. If you are
2085 truely interested in what was changed, please do
2088 0.17 Tues. Nov. 14, 2006
2089 * Moose::Meta::Method::Accessor
2090 - bugfix for read-only accessors which
2091 are have a type constraint and lazy.
2092 Thanks to chansen for finding it.
2094 0.16 Tues. Nov. 14, 2006
2096 There are some speed improvements in this release,
2097 but they are only the begining, so stay tuned.
2100 - BUILDALL and DEMOLISHALL no longer get
2101 called unless they actually need to be.
2102 This gave us a signifigant speed boost
2103 for the cases when there is no BUILD or
2104 DEMOLISH method present.
2106 * Moose::Util::TypeConstraints
2107 * Moose::Meta::TypeConstraint
2108 - added an 'optimize_as' option to the
2109 type constraint, which allows for a
2110 hand optimized version of the type
2111 constraint to be used when possible.
2112 - Any internally created type constraints
2113 now provide an optimized version as well.
2115 0.15 Sun. Nov. 5, 2006
2117 This version of Moose *must* have Class::MOP 0.36 in order
2118 to work correctly. A number of small internal tweaks have
2119 been made in order to be compatible with that release.
2121 * Moose::Util::TypeConstraints
2122 - added &unimport so that you can clean out
2123 your class namespace of these exported
2126 * Moose::Meta::Class
2127 - fixed minor issue which occasionally
2128 comes up during global destruction
2130 - moved Moose::Meta::Method::Overriden into
2134 - moved Moose::Meta::Role::Method into
2137 * Moose::Meta::Attribute
2138 - changed how we do type checks so that
2139 we reduce the overall cost, but still
2142 - moved accessor generation methods to
2143 Moose::Meta::Method::Accessor to
2144 conform to the API changes from
2147 * Moose::Meta::TypeConstraint
2148 - changed how constraints are compiled
2149 so that we do less recursion and more
2150 iteration. This makes the type check
2152 - moved Moose::Meta::TypeConstraint::Union
2155 * Moose::Meta::Method::Accessor
2156 - created this from methods formerly found in
2157 Moose::Meta::Attribute
2159 * Moose::Meta::Role::Method
2160 - moved this from Moose::Meta::Role
2162 * Moose::Meta::Method::Overriden
2163 - moved this from Moose::Meta::Class
2165 * Moose::Meta::TypeConstraint::Union
2166 - moved this from Moose::Meta::TypeConstraint
2168 0.14 Mon. Oct. 9, 2006
2170 * Moose::Meta::Attribute
2171 - fixed lazy attributes which were not getting
2172 checked with the type constraint (thanks ashley)
2173 - added tests for this
2174 - removed the over-enthusiastic DWIMery of the
2175 automatic ArrayRef and HashRef defaults, it
2176 broke predicates in an ugly way.
2177 - removed tests for this
2179 0.13 Sat. Sept. 30, 2006
2181 This version of Moose *must* have Class::MOP 0.35 in order
2182 to work correctly. A number of small internal tweaks have
2183 been made in order to be compatible with that release.
2186 - Removed the use of UNIVERSAL::require to be a better
2187 symbol table citizen and remove a dependency
2188 (thanks Adam Kennedy)
2190 **~~ removed experimental & undocumented feature ~~**
2191 - commented out the 'method' and 'self' keywords, see the
2192 comments for more info.
2195 - added a FAQ and WTF files to document frequently
2196 asked questions and common problems
2198 * Moose::Util::TypeConstraints
2199 - added GlobRef and FileHandle type constraint
2200 - added tests for this
2202 * Moose::Meta::Attribute
2203 - if your attribute 'isa' ArrayRef of HashRef, and you have
2204 not explicitly set a default, then make the default DWIM.
2205 This will also work for subtypes of ArrayRef and HashRef
2207 - you can now auto-deref subtypes of ArrayRef or HashRef too.
2208 - new test added for this (thanks to ashley)
2211 - added basic support for runtime role composition
2212 but this is still *highly experimental*, so feedback
2213 is much appreciated :)
2214 - added tests for this
2216 * Moose::Meta::TypeConstraint
2217 - the type constraint now handles the coercion process
2218 through delegation, this is to support the coercion
2221 * Moose::Meta::TypeConstraint::Union
2222 - it is now possible for coercions to be performed
2224 - added tests for this (thanks to konobi)
2226 * Moose::Meta::TypeCoercion
2227 - properly capturing error when type constraint
2231 - Scalar::Util 1.18 is bad on Win32, so temporarily
2232 only require version 1.17 for Win32 and cygwin.
2233 (thanks Adam Kennedy)
2235 0.12 Sat. Sept. 1, 2006
2237 - Recipe5 (subtypes & coercion) has been written
2240 - fixed "bad meta" error message to be more descriptive
2241 - fixed &unimport to not remove the &inner and &super
2242 keywords because we need to localize them.
2243 - fixed number of spelling/grammer issues, thanks Theory :)
2245 **~~ experimental & undocumented feature ~~**
2246 - added the method and self keywords, they are basically
2247 just sugar, and they may not stay around.
2250 - added &dump method to easily Data::Dumper
2253 * Moose::Meta::TypeConstraint
2254 - added the &is_a_type_of method to check both the current
2255 and the subtype of a method (similar to &isa with classes)
2258 - this is now a subclass of Class::MOP::Module, and no longer
2259 creates the _role_meta ugliness of before.
2260 - fixed tests to reflect this change
2262 0.11 Wed. July 12, 2006
2264 - added an &unimport method to remove all the keywords
2265 that Moose will import, simply add 'no Moose' to the
2266 bottom of your class file.
2269 - fixed some test failures caused by a forgotten test
2272 0.10 Thurs. July 6, 2006
2274 - improved error message when loading modules so
2275 it is less confusing when you load a role.
2276 - added &calculate_all_roles method to
2277 Moose::Meta::Class and Moose::Meta::Role
2280 This module has been tested against Class::MOP 0.30
2281 but it does not yet utilize the optimizations
2282 it makes available. Stay tuned for that ;)
2284 0.09_03 Fri. June 23, 2006
2285 ++ DEVELOPER RELEASE ++
2287 - 'use strict' and 'use warnings' are no longer
2288 needed in Moose classes, Moose itself will
2289 turn them on for you.
2290 - added tests for this
2291 - moved code from exported subs to private methods
2292 in Moose::Meta::Class
2295 - as with Moose, strict and warnings are
2296 automatically turned on for you.
2297 - added tests for this
2300 - now handles an edge case for override errors
2301 - added tests for this
2302 - added some more edge case tests
2304 0.09_02 Tues. May 16, 2006
2305 ++ DEVELOPER RELEASE ++
2307 - added prototypes to the exported subs
2311 - added prototypes to the exported subs
2314 * Moose::Util::TypeConstraints
2315 - cleaned up prototypes for the subs
2318 0.09_01 Fri. May 12, 2006
2319 ++ DEVELOPER RELEASE ++
2320 - This release works in combination with
2321 Class::MOP 0.29_01, it is a developer
2322 release because it uses the a new
2323 instance sub-protocol and a fairly
2324 complete Role implementation. It has
2325 not yet been optimized, so it slower
2326 the the previous CPAN version. This
2327 release also lacks good updated docs,
2328 the official release will have updated docs.
2331 - refactored the keyword exports
2332 - 'with' now checks Role validaity and
2333 accepts more than one Role at a time
2334 - 'extends' makes metaclass adjustments as
2335 needed to ensure metaclass compatibility
2338 - refactored the keyword exports
2339 - 'with' now checks Role validaity and
2340 accepts more than one Role at a time
2342 * Moose::Util::TypeConstraints
2343 - added the 'enum' keyword for simple
2344 string enumerations which can be used as
2346 - see example of usage in t/202_example.t
2349 - more careful checking of params to new()
2352 - much work done on the role composition
2353 - many new tests for conflict detection
2354 and composition edge cases
2355 - not enough documentation, I suggest
2356 looking at the tests
2358 * Moose::Meta::Instance
2359 - added new Instance metaclass to support
2360 the new Class::MOP instance protocol
2362 * Moose::Meta::Class
2363 - some small changes to support the new
2365 - some small additions to support Roles
2367 * Moose::Meta::Attribute
2368 - some improvements to the accessor generation code
2370 - some small changes to support the new
2372 - (still somewhat) experimental delegation support
2373 with the 'handles' option
2374 - added several tests for this
2375 - no docs for this yet
2377 0.05 Thurs. April 27, 2006
2379 - keywords are now exported with Sub::Exporter
2380 thanks to chansen for this commit
2381 - has keyword now takes a 'metaclass' option
2382 to support custom attribute meta-classes
2383 on a per-attribute basis
2384 - added tests for this
2385 - the 'has' keyword not accepts inherited slot
2386 specifications (has '+foo'). This is still an
2387 experimental feature and probably not finished
2388 see t/038_attribute_inherited_slot_specs.t for
2389 more details, or ask about it on #moose
2390 - added tests for this
2393 - keywords are now exported with Sub::Exporter
2395 * Moose::Utils::TypeConstraints
2396 - reorganized the type constraint hierarchy, thanks
2397 to nothingmuch and chansen for his help and advice
2399 - added some tests for this
2400 - keywords are now exported with Sub::Exporter
2401 thanks to chansen for this commit
2403 * Moose::Meta::Class
2404 - due to changes in Class::MOP, we had to change
2405 construct_instance (for the better)
2407 * Moose::Meta::Attribute
2408 - due to changes in Class::MOP, we had to add the
2409 initialize_instance_slot method (it's a good thing)
2411 * Moose::Meta::TypeConstraint
2412 - added type constraint unions
2413 - added tests for this
2414 - added the is_subtype_of predicate method
2415 - added tests for this
2417 0.04 Sun. April 16th, 2006
2419 - Roles can now consume other roles
2420 - added tests for this
2421 - Roles can specify required methods now with
2422 the requires() keyword
2423 - added tests for this
2426 - ripped out much of it's guts ,.. much cleaner now
2427 - added required methods and correct handling of
2428 them in apply() for both classes and roles
2429 - added tests for this
2430 - no longer adds a does() method to consuming classes
2431 it relys on the one in Moose::Object
2432 - added roles attribute and some methods to support
2433 roles consuming roles
2435 * Moose::Meta::Attribute
2436 - added support for triggers on attributes
2437 - added tests for this
2438 - added support for does option on an attribute
2439 - added tests for this
2441 * Moose::Meta::Class
2442 - added support for attribute triggers in the
2444 - added tests for this
2447 - Moose no longer creates a subtype for your class
2448 if a subtype of the same name already exists, this
2449 should DWIM in 99.9999% of all cases
2451 * Moose::Util::TypeConstraints
2452 - fixed bug where incorrect subtype conflicts were
2454 - added test for this
2457 - this class can now be extended with 'use base' if
2458 you need it, it properly loads the metaclass class now
2459 - added test for this
2461 0.03_02 Wed. April 12, 2006
2463 - you must now explictly use Moose::Util::TypeConstraints
2464 it no longer gets exported for you automatically
2467 - new() now accepts hash-refs as well as key/value lists
2468 - added does() method to check for Roles
2469 - added tests for this
2471 * Moose::Meta::Class
2472 - added roles attribute along with the add_role() and
2474 - added tests for this
2477 - now adds a does() method to consuming classes
2478 which tests the class's hierarchy for roles
2479 - added tests for this
2481 0.03_01 Mon. April 10, 2006
2483 - added new Role recipe (no content yet, only code)
2486 - added 'with' keyword for Role support
2487 - added test and docs for this
2488 - fixed subtype quoting bug
2489 - added test for this
2493 - added test and docs
2495 * Moose::Util::TypeConstraints
2496 - added the message keyword to add custom
2497 error messages to type constraints
2500 - the meta role to support Moose::Role
2501 - added tests and docs
2503 * Moose::Meta::Class
2504 - moved a number of things from Moose.pm
2505 to here, they should have been here
2508 * Moose::Meta::Attribute
2509 - moved the attribute option macros here
2510 instead of putting them in Moose.pm
2512 * Moose::Meta::TypeConstraint
2513 - added the message attributes and the
2515 - added tests and docs for this
2517 0.03 Thurs. March 30, 2006
2519 - added the Moose::Cookbook with 5 recipes,
2520 describing all the stuff Moose can do.
2523 - fixed an issue with &extends super class loading
2524 it now captures errors and deals with inline
2525 packages correctly (bug found by mst, solution
2527 - added super/override & inner/augment features
2528 - added tests and docs for these
2531 - BUILDALL now takes a reference of the %params
2532 that are passed to &new, and passes that to
2535 * Moose::Util::TypeConstraints
2536 - Type constraints now survive runtime reloading
2537 - added test for this
2539 * Moose::Meta::Class
2540 - fixed the way attribute defaults are handled
2541 during instance construction (bug found by chansen)
2543 * Moose::Meta::Attribute
2544 - read-only attributes now actually enforce their
2545 read-only-ness (this corrected in Class::MOP as
2548 0.02 Tues. March 21, 2006
2550 - many more tests, fixing some bugs and
2552 - &extends now loads the base module with
2554 - added UNIVERSAL::require to the
2557 - each new Moose class will also create
2558 and register a subtype of Object which
2559 correspond to the new Moose class.
2560 - the 'isa' option in &has now only
2561 accepts strings, and will DWIM in
2564 * Moose::Util::TypeConstraints
2565 - added type coercion features
2566 - added tests for this
2567 - added support for this in attributes
2568 and instance construction
2570 - type construction no longer creates a
2571 function, it registers the type instead.
2572 - added several functions to get the
2576 - BUILDALL and DEMOLISHALL were broken
2577 because of a mis-named hash key, Whoops :)
2579 * Moose::Meta::Attribute
2580 - adding support for coercion in the
2581 autogenerated accessors
2583 * Moose::Meta::Class
2584 - adding support for coercion in the
2585 instance construction
2587 * Moose::Meta::TypeConstraint
2588 * Moose::Meta::TypeCoercion
2589 - type constraints and coercions are now
2590 full fledges meta-objects
2592 0.01 Wed. March 15, 2006
2593 - Moooooooooooooooooose!!!