1 Revision history for Perl extension Moose
3 0.72_01 Thu, March 26, 2009
5 - Almost every module has complete API documentation. A few
6 methods (and even whole classes) have been intentionally
7 excluded pending some rethinking of their APIs.
9 * Moose::Util::TypeConstraints
10 - Calling subtype with a name as the only argument is now an
11 exception. If you want an anonymous subtype do:
13 my $subtype = subtype as 'Foo';
15 * Moose::Cookbook::Meta::Recipe7
16 - A new recipe, creating a custom meta-instance class.
18 * Moose::Cookbook::Basics::Recipe5
19 - Fix various typos and mistakes. Includes a patch from Radu
22 * Moose::Cookbook::Basics::Recipe9
23 - Link to this recipe from Moose.pm's builder blurb
26 - When wrapping a function with a prototype, Moose::Exporter now
27 makes sure the wrapped function still has the same
28 prototype. (Daisuke Maki)
30 * Moose::Meta::Attribute
31 - Allow a subclass to set lazy_build for an inherited
32 attribute. (Dieter Pearcey)
35 - Explicitly depend on Data::OptList. We already had this dependency
36 via Sub::Exporter, but since we're using it directly we're
37 better off with it listed. (Sartak)
39 * Moose::Meta::Method::Constructor
40 - Make it easier to subclass the inlining behaviour. (Ash
43 * Moose::Manual::Delta
44 - Details significant changes in the history of Moose, along
45 with recommended workarounds.
47 * Moose::Manual::Contributing
48 - Contributor's guide to Moose.
50 * Moose::Meta::Method::Constructor
51 - The long-deprecated intialize_body method has been removed
52 (yes, spelled like that).
54 * Moose::Meta::Method::Destructor
55 - This is_needed method is now always a class method.
58 - Changes to the internals of how make_immutable works to match
59 changes in latest Class::MOP.
61 0.72 Mon, February 23, 2009
63 * Moose::Meta::Method::Constructor
64 - A mutable class accepted Foo->new(undef) without complaint,
65 while an immutable class would blow up with an unhelpful
66 error. Now, in both cases we throw a helpful error
67 instead. Reported by doy.
69 0.71_01 Sun, February 22, 2009
71 - Hopefully fixed some POD errors in a few recipes that caused
72 them to display weird on search.cpan.org.
74 * Moose::Util::TypeConstraints
75 - Calling type or subtype without the sugar helpers (as, where,
76 message) is now deprecated.
77 - The subtype function tried hard to guess what you meant, but
78 often got it wrong. For example:
80 my $subtype = subtype as 'ArrayRef[Object]';
82 This caused an error in the past, but now works as you'd
86 - Make sure Moose.pm is loaded before calling
87 Moose->throw_error. This wasn't normally an issue, but could
88 bite you in weird cases.
90 0.71 Thu, February 19, 2009
91 * Moose::Cookbook::Basics::Recipe11
92 - A new recipe which demonstrates the use of BUILDARGS and
95 * Moose::Cookbook::Roles::Recipe3
96 - A new recipe, applying a role to an object instance. (Dave
100 - Allow overriding specific keywords from "also" packages. (doy)
103 - Replace hardcoded cookbook tests with Test::Inline to ensure
104 the tests match the actual code in the recipes. (Dave Rolsky)
107 - Working on the above turned up a number of little bugs in the
108 recipe code. (Dave Rolsky)
110 * Moose::Util::TypeConstraints::Optimized
111 - Just use Class::MOP for the optimized ClassName check. (Dave
114 0.70 Sat, February 14, 2009
115 * Moose::Util::TypeConstraints
116 - Added the RoleName type (stevan)
117 - added tests for this (stevan)
119 * Moose::Cookbook::Basics::Recipe3
120 - Updated the before qw[left right] sub to be a little more
121 defensive about what it accepts (stevan)
122 - added more tests to t/000_recipies/basics/003_binary_tree.t
126 - We now always call DEMOLISHALL, even if a class does not
127 define DEMOLISH. This makes sure that method modifiers on
128 DEMOLISHALL work as expected. (doy)
129 - added tests for this (EvanCarroll)
131 * Moose::Util::MetaRole
132 - Accept roles for the wrapped_method_metaclass (rafl)
133 - added tests for this (rafl)
135 * Moose::Meta::Attribute
136 - We no longer pass the meta-attribute object as a final
137 argument to triggers. This actually changed for inlined code a
138 while back, but the non-inlined version and the docs were
142 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
143 they require 0.11. (Dave Rolsky)
146 - Lots of small changes to the manual, cookbook, and
147 elsewhere. These were based on feedback from various
148 users, too many to list here. (Dave Rolsky)
150 0.69 Thu, February 12, 2009
152 - Make some keyword errors use throw_error instead of croak
153 since Moose::Exporter wraps keywords now (Sartak)
156 - Revised every recipe for style and clarity. Also moved some
157 documentation out of cookbook recipes and into Moose::Manual
158 pages. This work was funded as part of the Moose docs grant
159 from TPF. (Dave Rolsky)
161 * Moose::Meta::Method::Delegation
162 - If the attribute doing the delegation was not populated, the
163 error message did not specify the attribute name
166 0.68 Wed, February 4, 2009
168 - Many spelling, typo, and formatting fixes by daxim.
170 * Moose::Manual::Attributes
171 - The NAME section in the POD used "Attribute" so search.cpan
172 didn't resolve links from other documents properly.
174 * Moose::Meta::Method::Overriden
175 - Now properly spelled as Overridden. Thanks to daxim for
178 0.67 Tue, February 3, 2009
180 - Lots of little typo fixes and a few clarifications. Several
181 pages didn't have proper titles, and so weren't actually
182 visible on search.cpan.org. Thanks to hanekomu for a variety
183 of fixes and formatting improvements.
185 0.66 Tue, February 3, 2009
187 - This is a brand new, extensive manual for Moose. This aims to
188 provide a complete introduction to all of Moose's
189 features. This work was funded as part of the Moose docs grant
190 from TPF. (Dave Rolsky)
192 * Moose::Meta::Attribute
193 - Added a delegation_metaclass method to replace a hard-coded
194 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
196 * Moose::Util::TypeConstraints
197 - If you created a subtype and passed a parent that Moose didn't
198 know about, it simply ignored the parent. Now it automatically
199 creates the parent as a class type. This may not be what you
200 want, but is less broken than before. (Dave Rolsky)
202 * Moose::Util::TypeConstraints
203 - This module tried throw errors by calling Moose->throw_error,
204 but it did not ensure that Moose was loaded first. This could
205 cause very unhelpful errors when it tried to throw an error
206 before Moose was loaded. (Dave Rolsky)
208 * Moose::Util::TypeConstraints
209 - You could declare a name with subtype such as "Foo!Bar" that
210 would be allowed, but if you used it in a parameterized type
211 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
212 vetting on names created via the sugar functions, so that they
213 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
215 0.65 Thu, January 22, 2008
216 * Moose and Moose::Meta::Method::Overridden
217 - If an overridden method called super(), and then the
218 superclass's method (not overridden) _also_ called super(),
219 Moose went into an endless recursion loop. Test provided by
220 Chris Prather. (Dave Rolsky)
222 * Moose::Meta::TypeConstraint
223 - All methods are now documented. (gphat)
225 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
226 - Fixed some bogus failures that occurred because we tried to
227 validate filesystem paths in a very ad-hoc and
228 not-quite-correct way. (Dave Rolsky)
230 * Moose::Util::TypeConstraints
231 - Added maybe_type to exports. See docs for details. (rjbs)
234 - Added Moose::Util::TypeConstraints to the SEE ALSO
238 - Methods created via an attribute can now fulfill a "requires"
239 declaration for a role. (nothingmuch)
241 * Moose::Meta::Method::*
242 - Stack traces from inlined code will now report its line and
243 file as being in your class, as opposed to in Moose
246 0.64 Wed, December 31, 2008
247 * Moose::Meta::Method::Accessor
248 - Always inline predicate and clearer methods (Sartak)
250 * Moose::Meta::Attribute
251 - Support for parameterized traits (Sartak)
252 - verify_against_type_constraint method to avoid duplication
253 and enhance extensibility (Sartak)
256 - Tests (but no support yet) for parameterized traits (Sartak)
259 - Require Class::MOP 0.75+, which has the side effect of making
260 sure we work on Win32. (Dave Rolsky)
262 0.63 Mon, December 8, 2008
264 - Some small grammar tweaks and bug fixes in non-Moose example
267 0.62_02 Fri, December 5, 2008
268 * Moose::Meta::Role::Application::ToClass
269 - When a class does not provide all of a role's required
270 methods, the error thrown now mentions all of the missing
271 methods, as opposed to just the first one found. Requested by
272 Curtis Poe (RT #41119). (Dave Rolsky)
274 * Moose::Meta::Method::Constructor
275 - Moose will no longer inline a constructor for your class
276 unless it inherits its constructor from Moose::Object, and
277 will warn when it doesn't inline. If you want to force
278 inlining anyway, pass "replace_constructor => 1" to
279 make_immutable. Addresses RT #40968, reported by Jon
280 Swartz. (Dave Rolsky)
281 - The quoting of default values could be broken if the default
282 contained a single quote ('). Now we use quotemeta to escape
283 anything potentially dangerous in the defaults. (Dave Rolsky)
285 0.62_01 Wed, December 3, 2008
287 - use the method->execute API for BUILDALL
288 and DEMOLISHALL (Sartak)
290 * Moose::Util::TypeConstraints
291 - We now make all the type constraint meta classes immutable
292 before creating the default types provided by Moose. This
293 should make loading Moose a little faster. (Dave Rolsky)
295 0.62 Wed November 26, 2008
296 * Moose::Meta::Role::Application::ToClass
297 Moose::Meta::Role::Application::ToRole
298 - fixed issues where excluding and aliasing the
299 same methods for a single role did not work
300 right (worked just fine with multiple
302 - added test for this (stevan)
304 * Moose::Meta::Role::Application::RoleSummation
305 - fixed the error message when trying to compose
306 a role with a role it excludes (Sartak)
309 - Catch another case where recursion caused the value
310 of $CALLER to be stamped on (t0m)
311 - added test for this (t0m)
314 - Remove the make_immutable keyword, which has been
315 deprecated since April. It breaks metaclasses that
316 use Moose without no Moose (Sartak)
318 * Moose::Meta::Attribute
319 - Removing an attribute from a class now also removes delegation
320 (handles) methods installed for that attribute (t0m)
321 - added test for this (t0m)
323 * Moose::Meta::Method::Constructor
324 - An attribute with a default that looked like a number (but was
325 really a string) would accidentally be treated as a number
326 when the constructor was made immutable (perigrin)
327 - added test for this (perigrin)
330 - create method for constructing a role
332 - added test for this (Sartak)
333 - anonymous roles! (Sartak)
334 - added test for this (Sartak)
337 - more consistent error messages (Sartak)
339 * Moose::Cookbook::Roles::Recipe1
340 - attempt to explain why a role that just requires
341 methods is useful (Sartak)
343 0.61 Fri November 7, 2008
344 * Moose::Meta::Attribute
345 - When passing a role to handles, it will be loaded if necessary
349 - Method objects returned by get_method (and other methods)
350 Could end up being returned without an associated_metaclass
351 attribute. Removing get_method_map, which is provided by
352 Class::MOP::Class, fixed this. The Moose version did nothing
353 different from its parent except introduce a bug. (Dave Rolsky)
354 - added tests for this (jdv79)
357 - Added a $VERSION to all .pm files which didn't have one. Fixes
358 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
360 * Moose::Cookbook::Basics::Recipe4
361 * Moose::Cookbook::Basics::Recipe6
362 - These files had spaces on the first line of the SYNOPSIS, as
363 opposed to a totally empty line. According to RT #40432, this
364 confuses POD parsers. (Dave Rolsky)
366 0.60 Fri October 24, 2008
368 - Passing "-traits" when loading Moose caused the Moose.pm
369 exports to be broken. Reported by t0m. (Dave Rolsky)
370 - Tests for this bug. (t0m)
373 - Change resolve_metaclass alias to use the new
374 load_first_existing_class function. This makes it a lot
375 simpler, and also around 5 times faster. (t0m)
376 - Add caching to resolve_metaclass_alias, which gives an order
377 of magnitude speedup to things which repeatedly call the
378 Moose::Meta::Attribute->does method, notably MooseX::Storage
381 * Moose::Util::TypeConstraint
382 - Put back the changes for parameterized constraints that
383 shouldn't have been removed in 0.59. We still cannot parse
384 them, but MooseX modules can create them in some other
385 way. See the 0.58 changes for more details. (jnapiorkowski)
386 - Changed the way subtypes are created so that the job is
387 delegated to a type constraint parent. This clears up some
388 hardcoded checking and should allow correct subtypes of
389 Moose::Meta::Type::Constraint. Don't rely on this new API too
390 much (create_child_type) because it may go away in the
391 future. (jnapiorkowski)
393 * Moose::Meta::TypeConstraint::Union
394 - Type constraint names are sorted as strings, not numbers.
397 * Moose::Meta::TypeConstraint::Parameterizable
398 - New parameterize method. This can be used as a factory method
399 to make a new type constraint with a given parameterized
400 type. (jnapiorkowski)
401 - added tests (jnapiorkowski)
403 0.59 Tue October 14, 2008
405 - Add abridged documentation for builder/default/initializer/
406 predicate, and link to more details sections in
407 Class::MOP::Attribute. (t0m)
409 * Moose::Util::TypeConstraints
410 - removed prototypes from all but the &-based stuff (mst)
412 * Moose::Util::TypeConstraints
413 - Creating a anonymous subtype with both a constraint and a
414 message failed with a very unhelpful error, but should just
415 work. Reported by t0m. (Dave Rolsky)
418 - Some tests that used Test::Warn if it was available failed
419 with older versions of Test::Warn. Reported by Fayland. (Dave
421 - Test firing behavior of triggers in relation to builder/default/
423 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
424 kinds of supported type. (t0m)
427 - In create(), do not pass "roles" option to the superclass
428 - added related test that creates an anon metaclass with
431 * Moose::Meta::TypeConstraint::Class
432 * Moose::Meta::TypeConstraint::Role
433 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
434 other types (as per change in 0.55_02). (t0m)
436 * Moose::Meta::TypeConstraint::Registry
437 - Fix warning when dealing with unknown type names (t0m)
439 * Moose::Util::TypeConstraints
440 - Reverted changes from 0.58 related to handle parameterized
441 types. This caused random failures on BSD and Win32 systems,
442 apparently related to the regex engine. This means that Moose
443 can no longer parse structured type constraints like
444 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
445 supported in a slightly different way via MooseX::Types some
446 time in the future. (Dave Rolsky)
448 0.58 Sat September 20, 2008
449 !! This release has an incompatible change regarding !!
450 !! how roles add methods to a class !!
452 * Roles and role application
453 ! Roles now add methods by calling add_method, not
454 alias_method. They make sure to always provide a method
455 object, which will be cloned internally. This means that it is
456 now possible to track the source of a method provided by a
457 role, and even follow its history through intermediate roles.
459 This means that methods added by a role now show up when
460 looking at a class's method list/map. (Dave Rolsky)
463 - From this release on, we'll try to maintain a list of
464 conflicting modules, and warn you if you have one
465 installed. For example, this release conflicts with ...
466 - MooseX::Singleton <= 0.11
467 - MooseX::Params::Validate <= 0.05
470 In general, we try to not break backwards compatibility for
471 most Moose users, but MooseX modules and other code which
472 extends Moose's metaclasses is often affected by very small
473 changes in the Moose internals.
475 * Moose::Meta::Method::Delegation
476 * Moose::Meta::Attribute
477 - Delegation methods now have their own method class. (Dave
480 * Moose::Meta::TypeConstraint::Parameterizable
481 - Added a new method 'parameterize' which is basically a factory
482 for the containing constraint. This makes it easier to create
483 new types of parameterized constraints. (jnapiorkowski)
485 * Moose::Meta::TypeConstraint::Union
486 - Changed the way Union types canonicalize their names to follow
487 the normalized TC naming rules, which means we strip all
488 whitespace. (jnapiorkowski)
490 * Moose::Util::TypeConstraints
491 - Parameter and Union args are now sorted, this makes Int|Str
492 the same constraint as Str|Int. (jnapiorkowski)
493 - Changes to the way Union types are parsed to more correctly
494 stringify their names. (jnapiorkowski)
495 - When creating a parameterized type, we now use the new
496 parameterize method. (jnapiorkowski)
497 - Incoming type constraint strings are now normalized to remove
498 all whitespace differences. (jnapiorkowski)
499 - Changed the way we parse type constraint strings so that we now
500 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
501 constraints. This lays the foundation for more flexible type
502 constraint implementations.
504 * Tests and docs for all the above. (jnapiorkowski)
508 - Moose::Exporter will no longer remove a subroutine that the
509 exporting package re-exports. Moose re-exports the
510 Carp::confess function, among others. The reasoning is that we
511 cannot know whether you have also explicitly imported those
512 functions for your own use, so we err on the safe side and
513 always keep them. (Dave Rolsky)
514 - added tests for this (rafl)
517 - Changes to how we fix metaclass compatibility that are much
518 too complicated to go into. The summary is that Moose is much
519 less likely to complain about metaclass incompatibility
520 now. In particular, if two metaclasses differ because
521 Moose::Util::MetaRole was used on the two corresponding
522 classes, then the difference in roles is reconciled for the
523 subclass's metaclass. (Dave Rolsky)
524 - Squashed an warning in _process_attribute (thepler)
527 - throw exceptions (sooner) for invalid attribute names (thepler)
528 - added tests for this (thepler)
530 * Moose::Util::MetaRole
531 - If you explicitly set a constructor or destructor class for a
532 metaclass object, and then applied roles to the metaclass,
533 that explicitly set class would be lost and replaced with the
537 * Moose::Meta::Attribute
538 * Moose::Meta::Method
541 * Moose::Error::Default
542 * Moose::Error::Croak
543 * Moose::Error::Confess
544 - All instances of confess() changed to use overridable
545 C<throw_error> method. This method ultimately calls a class
546 constructor, and you can change the class being called. In
547 addition, errors now pass more information than just a string.
548 The default C<error_class> behaves like C<Carp::confess>, so
549 the behavior is not visibly different for end users.
551 0.57 Wed September 3, 2008
553 - A new bit of doc intended to introduce folks familiar with
554 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
557 - Shows examples of two classes, each done first with and then
558 without Moose. This makes a nice parallel to
559 Moose::Intro. (Dave Rolsky)
561 * Moose::Util::TypeConstraints
562 - Fixed a bug in find_or_parse_type_constraint so that it
563 accepts a Moose::Meta::TypeConstraint object as the parent
564 type, not just a name (jnapiorkowski)
565 - added tests (jnapiorkowski)
568 - If Sub::Name was not present, unimporting failed to actually
569 remove some sugar subs, causing test failures (Dave Rolsky)
571 0.56 Mon September 1, 2008
572 For those not following the series of dev releases, there are
573 several major changes in this release of Moose.
574 ! Moose::init_meta should now be called as a method. See the
577 - Major performance improvements by nothingmuch.
579 - New modules for extension writers, Moose::Exporter and
580 Moose::Util::MetaRole by Dave Rolsky.
582 - Lots of doc improvements and additions, especially in the
587 * Removed all references to the experimental-but-no-longer-needed
588 Moose::Meta::Role::Application::ToMetaclassInstance.
590 * Require Class::MOP 0.65.
592 0.55_04 Sat August 30, 2008
593 * Moose::Util::MetaRole
594 * Moose::Cookbook::Extending::Recipe2
595 - This simplifies the application of roles to any meta class, as
596 well as the base object class. Reimplemented metaclass traits
597 using this module. (Dave Rolsky)
599 * Moose::Cookbook::Extending::Recipe1
600 - This a new recipe, an overview of various ways to write Moose
601 extensions (Dave Rolsky)
603 * Moose::Cookbook::Extending::Recipe3
604 * Moose::Cookbook::Extending::Recipe4
605 - These used to be Extending::Recipe1 and Extending::Recipe2,
608 0.55_03 Fri August 29, 2008
609 * No changes from 0.55_02 except increasing the Class::MOP
610 dependency to 0.64_07.
612 0.55_02 Fri August 29, 2008
613 * Makefile.PL and Moose.pm
614 - explicitly require Perl 5.8.0+ (Dave Rolsky)
616 * Moose::Util::TypeConstraints
617 - Fix warnings from find_type_constraint if the type is not
620 * Moose::Meta::TypeConstraint
621 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
622 return false if the type you specify cannot be found in the
623 type registry, rather than throwing an unhelpful and
624 coincidental exception. (t0m).
625 - added docs & test for this (t0m)
627 * Moose::Meta::TypeConstraint::Registry
628 - add_type_constraint now throws an exception if a parameter is
630 - added docs & test for this (t0m)
632 * Moose::Cookbook::FAQ
633 - Added a faq entry on the difference between "role" and "trait"
637 - Fixed a bug that caused role composition to not see a required
638 method when that method was provided by another role being
639 composed at the same time. (Dave Rolsky)
640 - test and bug finding (tokuhirom)
642 0.55_01 Wed August 20, 2008
644 !! Calling Moose::init_meta as a function is now !!
645 !! deprecated. Please see the Moose.pm docs for details. !!
647 * Moose::Meta::Method::Constructor
648 - Fix inlined constructor so that values produced by default
649 or builder methods are coerced as required. (t0m)
650 - added test for this (t0m)
652 * Moose::Meta::Attribute
653 - A lazy attribute with a default or builder did not attempt to
654 coerce the default value. The immutable code _did_
656 - added test for this (t0m)
659 - This is a new helper module for writing "Moose-alike"
660 modules. This should make the lives of MooseX module authors
661 much easier. (Dave Rolsky)
664 * Moose::Cookbook::Meta::Recipe5
665 - Implemented metaclass traits (and wrote a recipe for it):
667 use Moose -traits => 'Foo'
669 This should make writing small Moose extensions a little
672 * Moose::Cookbook::Basics::Recipe1
673 - Removed any examples of direct hashref access, and applied an
674 editorial axe to reduce verbosity. (Dave Rolsky)
676 * Moose::Cookbook::Basics::Recipe1
677 - Also applied an editorial axe here. (Dave Rolsky)
680 * Moose::Cookbook::Extending::Recipe1
681 * Moose::Cookbook::Extending::Recipe2
682 - Rewrote extending and embedding moose documentation and
683 recipes to use Moose::Exporter (Dave Rolsky)
687 - These two modules now warn when you load them from the main
688 package "main" package, because we will not export sugar to
689 main. Previously it just did nothing. (Dave Rolsky)
692 - Now provide an init_meta method just like Moose.pm, and you
693 can call this to provide an alternate role metaclass. (Dave
694 Rolsky and nothingmuch)
695 - get_method_map now respects the package cache flag (nothingmuch)
698 - Two new methods - add_method and wrap_method_body
702 - Optimizations including allowing constructors to accept hash
703 refs, making many more classes immutable, and making
704 constructors immutable. (nothingmuch)
706 0.55 Sun August 3, 2008
707 * Moose::Meta::Attribute
708 - breaking down the way 'handles' methods are
709 created so that the process can be more easily
710 overridden by subclasses (stevan)
712 * Moose::Meta::TypeConstraint
713 - fixing what is passed into a ->message with
714 the type constraints (RT #37569)
715 - added tests for this (Charles Alderman)
717 * Moose::Util::TypeConstraints
718 - fix coerce to accept anon types like subtype can (mst)
721 - reorganized the recipes into sections - Basics, Roles, Meta,
722 Extending - and wrote abstracts for each section (Dave Rolsky)
724 * Moose::Cookbook::Basics::Recipe10
725 - A new recipe that demonstrates operator overloading
726 in combination with Moose. (bluefeet)
728 * Moose::Cookbook::Meta::Recipe1
729 - an introduction to what meta is and why you'd want to make
730 your own metaclass extensions (Dave Rolsky)
732 * Moose::Cookbook::Meta::Recipe4
733 - a very simple metaclass example (Dave Rolsky)
735 * Moose::Cookbook::Extending::Recipe1
736 - how to write a Moose-alike module to use your own object base
739 * Moose::Cookbook::Extending::Recipe2
740 - how to write modules with an API just like C<Moose.pm> (Dave
744 - Tons of fixes, both syntactical and grammatical (Dave
745 Rolsky, Paul Fenwick)
747 0.54 Thurs. July 3, 2008
748 ... this is not my day today ...
750 * Moose::Meta::Attribute
751 - fixed legal_options_for_inheritance such that
752 clone_and_inherit options still works for
753 Class::MOP::Attribute objects and therefore
754 does not break MooseX::AttributeHelpers
757 0.53 Thurs. July 3, 2008
758 * Whoops, I guess I should run 'make manifest' before
759 actually releasing the module. No actual changes
760 in this release, except the fact that it includes
761 the changes that I didn't include in the last
764 0.52 Thurs. July 3, 2008
766 - added "FEATURE REQUESTS" section to the Moose docs
767 to properly direct people (stevan) (RT #34333)
768 - making 'extends' croak if it is passed a Role since
769 this is not ever something you want to do
770 (fixed by stevan, found by obra)
771 - added tests for this (stevan)
774 - adding support for DOES (as in UNIVERSAL::DOES)
776 - added test for this
778 * Moose::Meta::Attribute
779 - added legal_options_for_inheritance (wreis)
780 - added tests for this (wreis)
782 * Moose::Cookbook::Snacks::*
783 - removed some of the unfinished snacks that should
784 not have been released yet. Added some more examples
785 to the 'Keywords' snack. (stevan)
787 * Moose::Cookbook::Style
788 - added general Moose "style guide" of sorts to the
789 cookbook (nothingmuch) (RT #34335)
792 - added more BUILDARGS tests (stevan)
794 0.51 Thurs. Jun 26, 2008
796 - add unimport so "no Moose::Role" actually does
799 * Moose::Meta::Role::Application::ToRole
800 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
801 order to provide its own implementation, that method still got
802 added to the list of required methods for consumers of
803 RoleB. Now an aliased method is only added to the list of
804 required methods if the role doing the aliasing does not
805 provide its own implementation. See Recipe 11 for an example
806 of all this. (Dave Rolsky)
807 - added tests for this
809 * Moose::Meta::Method::Constructor
810 - when a single argument that wasn't a hashref was provided to
811 an immutabilized constructor, the error message was very
812 unhelpful, as opposed to the non-immutable error. Reported by
814 - added test for this (Dave Rolsky)
816 * Moose::Meta::Attribute
817 - added support for meta_attr->does("ShortAlias") (sartak)
818 - added tests for this (sartak)
819 - moved the bulk of the `handles` handling to the new
820 install_delegation method (Stevan)
823 - Added BUILDARGS, a new step in new()
825 * Moose::Meta::Role::Application::RoleSummation
826 - fix typos no one ever sees (sartak)
828 * Moose::Util::TypeConstraints
829 * Moose::Meta::TypeConstraint
830 * Moose::Meta::TypeCoercion
831 - Attempt to work around the ??{ } vs. threads issue
833 - Some null_constraint optimizations
835 0.50 Thurs. Jun 11, 2008
836 - Fixed a version number issue by bumping all modules
839 0.49 Thurs. Jun 11, 2008
840 !! This version now approx. 20-25% !!
841 !! faster with new Class::MOP 0.59 !!
843 * Moose::Meta::Attribute
844 - fixed how the is => (ro|rw) works with
845 custom defined reader, writer and accessor
847 - added docs for this (TODO).
848 - added tests for this (Thanks to Penfold)
849 - added the custom attribute alias for regular
850 Moose attributes which is "Moose"
851 - fix builder and default both being used
856 Moose::Meta::Attribute
858 Moose::Meta::Role::Composite
859 Moose::Util::TypeConstraints
860 - switched usage of reftype to ref because
864 - changing add_package_symbol to use the new
868 - fixed how DEMOLISHALL is called so that it
869 can be overrided in subclasses (thanks to Sartak)
870 - added test for this (thanks to Sartak)
872 * Moose::Util::TypeConstraints
873 - move the ClassName type check code to
874 Class::MOP::is_class_loaded (thanks to Sartak)
876 * Moose::Cookbook::Recipe11
877 - add tests for this (thanks to tokuhirom)
879 0.48 Thurs. May 29, 2008
880 (early morning release engineering)--
882 - fixing the version in Moose::Meta::Method::Destructor
883 which was causing the indexer to choke
885 0.47 Thurs. May 29, 2008
886 (late night release engineering)--
888 - fixing the version is META.yml, no functional
889 changes in this release
891 0.46 Wed. May 28, 2008
892 !! This version now approx. 20-25% !!
893 !! faster with new Class::MOP 0.57 !!
896 - some optimizations of the &initialize method
897 since it is called so often by &meta
901 - now use the get_all_package_symbols from the
902 updated Class::MOP, test suite is now 10 seconds
905 * Moose::Meta::Method::Destructor
906 - is_needed can now also be called as a class
907 method for immutablization to check if the
908 destructor object even needs to be created
911 * Moose::Meta::Method::Destructor
912 Moose::Meta::Method::Constructor
913 - added more descriptive error message to help
914 keep people from wasting time tracking an error
915 that is easily fixed by upgrading.
917 0.45 Saturday, May 24, 2008
919 - Because of work in Class::MOP 0.57, all
920 XS based functionality is now optional
921 and a Pure Perl version is supplied
922 - the CLASS_MOP_NO_XS environment variable
923 can now be used to force non-XS versions
925 - several of the packages have been tweaked
926 to take care of this, mostly we added
927 support for the package_name and name
928 variables in all the Method metaclasses
929 - before/around/after method modifiers now
930 support regexp matching of names
931 (thanks to Takatoshi Kitano)
932 - tests added for this
933 - NOTE: this only works for classes, it
934 is currently not supported in roles,
935 but, ... patches welcome
936 - All usage of Carp::confess have been replaced
937 by Carp::croak in the "keyword" functions since
938 the stack trace is usually not helpful
941 - All usage of Carp::confess have been replaced
942 by Carp::croak in the "keyword" functions since
943 the stack trace is usually not helpful
944 - The 'has' keyword for roles now accepts the
945 same array ref form that Moose.pm does
946 (has [qw/foo bar/] => (is => 'rw', ...))
947 - added test for this
949 * Moose::Meta::Attribute
950 - trigger on a ro-attribute is no longer an
951 error, as it's useful to trigger off of the
955 - added same 'add_package_symbol' fix as in
959 - does_role now handles non-Moose classes
961 - added tests for this
962 - added the 'add_method_modifier' function
963 (thanks to Takatoshi Kitano)
965 * Moose::Util::TypeConstraints
966 - subtypes of parameterizable types now are
967 themselves parameterizable types
969 * Moose::Meta::Method::Constructor
970 - fixed bug where trigger was not being
971 called by the inlined immutable
973 - added test for this (thanks to Caelum)
975 * Moose::Meta::Role::Application::ToInstance
976 - now uses the metaclass of the instance
977 (if possible) to create the anon-class
978 (thanks Jonathan Rockway)
980 * Moose::Cookbook::Recipe22
981 - added the meta-attribute trait recipe
985 - fixed hash-ordering test bug that was
986 causing occasional cpantester failures
987 - renamed the t/000_recipe/*.t tests to be
988 more descriptive (thanks to Sartak)
990 0.44 Sat. May 10, 2008
992 - made make_immutable warning cluck to
993 show where the error is (thanks mst)
996 - BUILDALL and DEMOLISHALL now call
997 ->body when looping through the
998 methods, to avoid the overloaded
1000 - fixed issue where DEMOLISHALL was
1001 eating the $@ values, and so not
1002 working correctly, it still kind of
1003 eats them, but so does vanilla perl
1004 - added tests for this
1006 * Moose::Cookbook::Recipe7
1007 - added new recipe for immutable
1008 functionality (thanks Dave Rolsky)
1010 * Moose::Cookbook::Recipe9
1011 - added new recipe for builder and
1012 lazy_build (thanks Dave Rolsky)
1014 * Moose::Cookbook::Recipe11
1015 - added new recipe for method aliasing
1016 and exclusion with Roles (thanks Dave Rolsky)
1019 - fixed Win32 test failure (thanks spicyjack)
1021 ~ removed Build.PL and Module::Build compat
1022 since Module::Install has done that.
1024 0.43 Wed. April, 30, 2008
1026 drink more coffee before
1027 doing release engineering
1029 - whoops, forgot to do the smolder tests,
1030 and we broke some of the custom meta-attr
1031 modules. This fixes that.
1033 0.42 Mon. April 28, 2008
1034 - some bad tests slipped by, nothing else
1035 changed in this release (cpantesters++)
1037 - upped the Class::MOP dependency to 0.55
1038 since we have tests which need the C3
1041 0.41 Mon. April 28, 2008
1042 ~~ numerous documentation updates ~~
1044 - Changed all usage of die to Carp::croak for better
1045 error reporting (initial patch by Tod Hagan)
1047 ** IMPORTANT NOTE **
1048 - the make_immutable keyword is now deprecated, don't
1049 use it in any new code and please fix your old code
1050 as well. There will be 2 releases, and then it will
1056 - refactored the way inner and super work to avoid
1057 any method/@ISA cache penalty (nothingmuch)
1059 * Moose::Meta::Class
1060 - fixing &new_object to make sure trigger gets the
1061 coerced value (spotted by Charles Alderman on the
1063 - added test for this
1065 * Moose::Meta::Method::Constructor
1066 - immutable classes which had non-lazy attributes were calling
1067 the default generating sub twice in the constructor. (bug
1068 found by Jesse Luehrs, fixed by Dave Rolsky)
1069 - added tests for this (Dave Rolsky)
1070 - fix typo in initialize_body method (nothingmuch)
1072 * Moose::Meta::Method::Destructor
1073 - fix typo in initialize_body method (nothingmuch)
1075 * Moose::Meta::Method::Overriden
1076 Moose::Meta::Method::Augmented
1077 - moved the logic for these into their own
1078 classes (nothingmuch)
1080 * Moose::Meta::Attribute
1081 - inherited attributes may now be extended without
1082 restriction on the type ('isa', 'does') (Sartak)
1083 - added tests for this (Sartak)
1084 - when an attribute property is malformed (such as lazy without
1085 a default), give the name of the attribute in the error
1087 - added the &applied_traits and &has_applied_traits methods
1088 to allow introspection of traits
1089 - added tests for this
1090 - moved 'trait' and 'metaclass' argument handling to here from
1092 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1093 '+foo' syntax) (nothingmuch)
1094 - added tests for this (t0m)
1097 - localize $@ inside DEMOLISHALL to avoid it
1098 eating $@ (found by Ernesto)
1099 - added test for this (thanks to Ernesto)
1101 * Moose::Util::TypeConstraints
1102 - &find_type_constraint now DWIMs when given an
1103 type constraint object or name (nothingmuch)
1104 - &find_or_create_type_constraint superseded with a number of more
1106 - find_or_create_{isa,does}_type_constraint
1107 - find_or_parse_type_constraint
1109 * Moose::Meta::TypeConstraint
1110 Moose::Meta::TypeConstraint::Class
1111 Moose::Meta::TypeConstraint::Role
1112 Moose::Meta::TypeConstraint::Enum
1113 Moose::Meta::TypeConstraint::Union
1114 Moose::Meta::TypeConstraint::Parameterized
1115 - added the &equals method for comparing two type
1116 constraints (nothingmuch)
1117 - added tests for this (nothingmuch)
1119 * Moose::Meta::TypeConstraint
1120 - add the &parents method, which is just an alias to &parent.
1121 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1123 * Moose::Meta::TypeConstraint::Class
1124 - added the class attribute for introspection purposes
1126 - added tests for this
1128 * Moose::Meta::TypeConstraint::Enum
1129 Moose::Meta::TypeConstraint::Role
1130 - broke these out into their own classes (nothingmuch)
1132 * Moose::Cookbook::Recipe*
1133 - fixed references to test file locations in the POD
1134 and updated up some text for new Moose features
1138 - Added &resolve_metaclass_alias, a helper function for finding an actual
1139 class for a short name (e.g. in the traits list)
1141 0.40 Fri. March 14, 2008
1142 - I hate Pod::Coverage
1144 0.39 Fri. March 14, 2008
1146 - documenting the use of '+name' with attributes
1147 that come from recently composed roles. It makes
1148 sense, people are using it, and so why not just
1149 officially support it.
1150 - fixing the 'extends' keyword so that it will not
1151 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1154 - added the perl -Moose=+Class::Name feature to allow
1155 monkeypatching of classes in one liners
1158 - fixing the 'apply_all_roles' keyword so that it will not
1159 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1161 * Moose::Meta::Class
1162 - added ->create method which now supports roles (thanks to jrockway)
1163 - added tests for this
1164 - added ->create_anon_class which now supports roles and caching of
1165 the results (thanks to jrockway)
1166 - added tests for this
1167 - made ->does_role a little more forgiving when it is
1168 checking a Class::MOP era metaclasses.
1170 * Moose::Meta::Role::Application::ToInstance
1171 - it is now possible to pass extra params to be used when
1172 a role is applied to an the instance (rebless_params)
1173 - added tests for this
1175 * Moose::Util::TypeConstraints
1176 - class_type now accepts an optional second argument for a
1177 custom message. POD anotated accordingly (groditi)
1178 - added tests for this
1179 - it is now possible to make anon-enums by passing 'enum' an
1180 ARRAY ref instead of the $name => @values. Everything else
1182 - added tests for this
1185 - making test for using '+name' on attributes consumed
1186 from a role, it works and makes sense too.
1188 * Moose::Meta::Attribute
1189 - fix handles so that it doesn't return nothing
1190 when the method cannot be found, not sure why
1191 it ever did this originally, this means we now
1192 have slightly better support for AUTOLOADed
1194 - added more delegation tests
1195 - adding ->does method to this so as to better
1196 support traits and their introspection.
1197 - added tests for this
1200 - localizing the Data::Dumper configurations so
1201 that it does not pollute others (RT #33509)
1202 - made ->does a little more forgiving when it is
1203 passed Class::MOP era metaclasses.
1205 0.38 Fri. Feb. 15, 2008
1206 * Moose::Meta::Attribute
1207 - fixed initializer to correctly do
1208 type checking and coercion in the
1210 - added tests for this
1213 - fixed some finicky tests (thanks to konobi)
1215 0.37 Thurs. Feb. 14, 2008
1217 - fixed some details in Moose::init_meta
1218 and its superclass handling (thanks thepler)
1219 - added tests for this (thanks thepler)
1220 - 'has' now dies if you don't pass in name
1222 - added the 'make_immutable' keyword as a shortcut
1225 * Moose::Meta::Class
1226 Moose::Meta::Method::Constructor
1227 Moose::Meta::Attribute
1228 - making (init_arg => undef) work here too
1229 (thanks to nothingmuch)
1231 * Moose::Meta::Attribute
1232 Moose::Meta::Method::Constructor
1233 Moose::Meta::Method::Accessor
1234 - make lazy attributes respect attr initializers (rjbs)
1235 - added tests for this
1237 * Moose::Util::TypeConstraints
1238 Moose::Util::TypeConstraints::OptimizedConstraints
1239 Moose::Meta::TypeConstraints
1240 Moose::Meta::Attribute
1241 Moose::Meta::Method::Constructor
1242 Moose::Meta::Method::Accessor
1243 - making type errors use the
1244 assigned message (thanks to Sartak)
1245 - added tests for this
1247 * Moose::Meta::Method::Destructor
1248 - making sure DESTROY gets inlined properly
1249 with successive DEMOLISH calls (thanks to manito)
1251 * Moose::Meta::Attribute
1252 Moose::Meta::Method::Accessor
1253 - fixed handling of undef with type constraints
1255 - added tests for this
1258 - added &get_all_init_args and &get_all_attribute_values
1259 (thanks to Sartak and nothingmuch)
1261 0.36 Sat. Jan. 26, 2008
1263 Moose::Meta::Attribute
1264 - role type tests now support when roles are
1265 applied to non-Moose classes (found by ash)
1266 - added tests for this (thanks to ash)
1267 - couple extra tests to boost code coverage
1269 * Moose::Meta::Method::Constructor
1270 - improved fix for handling Class::MOP attributes
1271 - added test for this
1273 * Moose::Meta::Class
1274 - handled the add_attribute($attribute_meta_object)
1276 - added test for this
1278 0.35 Tues. Jan. 22, 2008
1279 * Moose::Meta::Method::Constructor
1280 - fix to make sure even Class::MOP attributes
1281 are handled correctly (Thanks to Dave Rolsky)
1282 - added test for this (also Dave Rolsky)
1284 * Moose::Meta::Class
1285 - improved error message on _apply_all_roles,
1286 you should now use Moose::Util::apply_all_roles
1287 and you shouldnt have been using a _ prefixed
1288 method in the first place ;)
1290 0.34 Mon. Jan. 21, 2008
1291 ~~~ more misc. doc. fixes ~~~
1292 ~~ updated copyright dates ~~
1294 Moose is now a postmodern object system :)
1295 - (see the POD for details)
1297 * <<Role System Refactoring>>
1298 - this release contains a major reworking and
1299 cleanup of the role system
1300 - 100% backwards compat.
1301 - Role application now restructured into seperate
1302 classes based on type of applicants
1303 - Role summation (combining of more than one role)
1304 is much cleaner and anon-classes are no longer
1305 used in this process
1306 - new Composite role metaclass
1307 - runtime application of roles to instances
1308 is now more efficient and re-uses generated
1309 classes when applicable
1311 * <<New Role composition features>>
1312 - methods can now be excluded from a given role
1314 - methods can now be aliased to another name (and
1315 still retain the original as well)
1317 * Moose::Util::TypeConstraints::OptimizedConstraints
1318 - added this module (see above)
1320 * Moose::Meta::Class
1321 - fixed the &_process_attribute method to be called
1322 by &add_attribute, so that the API is now correct
1324 * Moose::Meta::Method::Accessor
1325 - fixed bug when passing a list of values to
1326 an accessor would get (incorrectly) ignored.
1327 Thanks to Sartak for finding this ;)
1328 - added tests for this (Sartak again)
1330 * Moose::Meta::Method::Accessor
1331 Moose::Meta::Method::Constructor
1332 Moose::Meta::Attribute
1333 Moose::Meta::TypeConstraint
1334 Moose::Meta::TypeCoercion
1335 - lots of cleanup of such things as:
1337 - type constraint handling
1338 - error handling/messages
1339 (thanks to nothingmuch)
1341 * Moose::Meta::TypeConstraint::Parameterizable
1342 - added this module to support the refactor
1343 in Moose::Meta::TypeConstraint::Parameterized
1345 * Moose::Meta::TypeConstraint::Parameterized
1346 - refactored how these types are handled so they
1347 are more generic and not confined to ArrayRef
1351 - shortened some file names for better VMS support (RT #32381)
1353 0.33 Fri. Dec. 14, 2007
1354 !! Moose now loads 2 x faster !!
1355 !! with new Class::MOP 0.49 !!
1357 ++ new oose.pm module to make command line
1358 Moose-ness easier (see POD docs for more)
1360 * Moose::Meta::Class
1362 - several tweaks to take advantage of the
1363 new method map caching in Class::MOP
1365 * Moose::Meta::TypeConstraint::Parameterized
1366 - allow subtypes of ArrayRef and HashRef to
1367 be used as a container (sartak)
1368 - added tests for this
1369 - basic support for coercion to ArrayRef and
1370 HashRef for containers (sartak)
1371 - added tests for this
1373 * Moose::Meta::TypeCoercion
1374 - coercions will now create subtypes as needed
1375 so you can now add coercions to parameterized
1376 types without having to explictly define them
1377 - added tests for this
1379 * Moose::Meta::Method::Accessor
1380 - allow subclasses to decide whether we need
1381 to copy the value into a new variable (sartak)
1383 0.32 Tues. Dec. 4, 2007
1384 * Moose::Util::TypeConstraints
1385 - fixing how subtype aliases of unions work
1386 they should inherit the parent's coercion
1387 - added tests for this
1388 - you can now define multiple coercions on
1389 a single type at different times instead of
1390 having to do it all in one place
1391 - added tests for this
1393 * Moose::Meta::TypeConstraint
1394 - there is now a default constraint of sub { 1 }
1395 instead of Moose::Util::TypeConstraints setting
1398 * Moose::Meta::TypeCoercion
1399 * Moose::Meta::TypeCoercion::Union
1400 - added the &has_coercion_for_type and
1401 &add_type_coercions methods to support the
1402 new features above (although you cannot add
1403 more type coercions for Union types)
1405 0.31 Mon. Nov. 26, 2007
1406 * Moose::Meta::Attribute
1407 - made the +attr syntax handle extending types with
1408 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1409 now works if the original foo is an ArrayRef.
1410 - added tests for this.
1411 - delegation now works even if the attribute does not
1412 have a reader method using the get_read_method_ref
1413 method from Class::MOP::Attribute.
1414 - added tests for this
1415 - added docs for this
1417 * Moose::Util::TypeConstraints
1418 - passing no "additional attribute info" to
1419 &find_or_create_type_constraint will no longer
1420 attempt to create an __ANON__ type for you,
1421 instead it will just return undef.
1422 - added docs for this
1424 0.30 Fri. Nov. 23, 2007
1425 * Moose::Meta::Method::Constructor
1426 -builder related bug in inlined constructor. (groditi)
1428 * Moose::Meta::Method::Accessor
1429 - genereate unnecessary calls to predicates and refactor
1430 code generation for runtime speed (groditi)
1432 * Moose::Util::TypeConstraints
1433 - fix ClassName constraint to introspect symbol table (mst)
1434 - added more tests for this (mst)
1435 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1436 with work correctly.
1437 - added tests for this
1440 - adding the link to Recipie 11 (written by Sartak)
1441 - adding test for SYNOPSIS code
1444 - New tests for builder bug. Upon instantiation, if an
1445 attribute had a builder, no value and was not lazy the
1446 builder default was not getting run, oops. (groditi)
1448 0.29 Tues. Nov. 13, 2007
1449 * Moose::Meta::Attribute
1450 - Fix error message on missing builder method (groditi)
1452 * Moose::Meta::Method::Accessor
1453 - Fix error message on missing builder method (groditi)
1456 - Add test to check for the correct error message when
1457 builder method is missing (groditi)
1459 0.28 Tues. Nov. 13, 2007
1460 - 0.27 packaged incorrectly (groditi)
1462 0.27 Tues. Nov. 13, 2007
1463 * Moose::Meta::Attribute
1464 - Added support for the new builder option (groditi)
1465 - Added support for lazy_build option (groditi)
1466 - Changed slot initialization for predicate changes (groditi)
1468 * Moose::Meta::Method::Accessor
1469 - Added support for lazy_build option (groditi)
1470 - Fix inline methods to work with corrected predicate
1473 * Moose::Meta::Method::Constructor
1474 - Added support for lazy_build option (groditi)
1477 - tests for builder and lazy_build (groditi)
1479 * fixing some misc. bits in the docs that
1480 got mentioned on CPAN Forum & perlmonks
1483 - fixed how required methods are handled
1484 when they encounter overriden or modified
1485 methods from a class (thanks to confound).
1486 - added tests for this
1488 * Moose::Util::TypeConstraint
1489 - fixed the type notation parser so that
1490 the | always creates a union and so is
1491 no longer a valid type char (thanks to
1492 konobi, mugwump and #moose for working
1494 - added more tests for this
1496 0.26 Thurs. Sept. 27, 2007
1499 * Parameterized Types
1500 We now support parameterized collection types, such as:
1501 ArrayRef[Int] # array or integers
1502 HashRef[Object] # a hash with object values
1503 They can also be nested:
1504 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1505 And work with the type unions as well:
1506 ArrayRef[Int | Str] # array of integers of strings
1508 * Better Framework Extendability
1509 Moose.pm is now "extendable" such that it is now much
1510 easier to extend the framework and add your own keywords
1511 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1512 section of the Moose.pm docs.
1515 In an effort to begin documenting some of the various
1516 details of Moose as well as some common idioms, we have
1517 created Moose::Cookbook::Snacks as a place to find
1518 small (easily digestable) nuggets of Moose code.
1521 ~ Several doc updates/cleanup thanks to castaway ~
1523 - converted build system to use Module::Install instead of
1524 Module::Build (thanks to jrockway)
1527 - added all the meta classes to the immutable list and
1528 set it to inline the accessors
1529 - fix import to allow Sub::Exporter like { into => }
1530 and { into_level => } (perigrin)
1531 - exposed and documented init_meta() to allow better
1532 embedding and extending of Moose (perigrin)
1535 - complete re-organization of the test suite
1536 - added some new tests as well
1537 - finally re-enabled the Moose::POOP test since
1538 the new version of DBM::Deep now works again
1541 * Moose::Meta::Class
1542 - fixed very odd and very nasty recursion bug with
1544 - added tests for this (eilara)
1546 * Moose::Meta::Attribute
1547 Moose::Meta::Method::Constructor
1548 Moose::Meta::Method::Accessor
1549 - fixed issue with overload::Overloaded getting called
1550 on non-blessed items. (RT #29269)
1551 - added tests for this
1553 * Moose::Meta::Method::Accessor
1554 - fixed issue with generated accessor code making
1555 assumptions about hash based classes (thanks to dexter)
1557 * Moose::Coookbook::Snacks
1558 - these are bits of documentation, not quite as big as
1559 Recipes but which have no clear place in the module docs.
1560 So they are Snacks! (horray for castaway++)
1562 * Moose::Cookbook::Recipe4
1563 - updated it to use the new ArrayRef[MyType] construct
1564 - updated the accompanying test as well
1566 +++ Major Refactor of the Type Constraint system +++
1567 +++ with new features added as well +++
1569 * Moose::Util::TypeConstraint
1570 - no longer uses package variable to keep track of
1571 the type constraints, now uses the an instance of
1572 Moose::Meta::TypeConstraint::Registry to do it
1573 - added more sophisticated type notation parsing
1575 - added tests for this
1577 * Moose::Meta::TypeConstraint
1578 - some minor adjustments to make subclassing easier
1579 - added the package_defined_in attribute so that we
1580 can track where the type constraints are created
1582 * Moose::Meta::TypeConstraint::Union
1583 - this is now been refactored to be a subclass of
1584 Moose::Meta::TypeConstraint
1586 * Moose::Meta::TypeCoercion::Union
1587 - this has been added to service the newly refactored
1588 Moose::Meta::TypeConstraint::Union and is itself
1589 a subclass of Moose::Meta::TypeCoercion
1591 * Moose::Meta::TypeConstraint::Parameterized
1592 - added this module (taken from MooseX::AttributeHelpers)
1593 to help construct nested collection types
1594 - added tests for this
1596 * Moose::Meta::TypeConstraint::Registry
1597 - added this class to keep track of type constraints
1599 0.25 Mon. Aug. 13, 2007
1601 - Documentation update to reference Moose::Util::TypeConstraints
1602 under 'isa' in 'has' for how to define a new type
1603 (thanks to shlomif).
1605 * Moose::Meta::Attribute
1606 - required attributes now will no longer accept undef
1607 from the constructor, even if there is a default and lazy
1608 - added tests for this
1609 - default subroutines must return a value which passes the
1611 - added tests for this
1613 * Moose::Meta::Attribute
1614 * Moose::Meta::Method::Constructor
1615 * Moose::Meta::Method::Accessor
1616 - type-constraint tests now handle overloaded objects correctly
1617 in the error message
1618 - added tests for this (thanks to EvanCarroll)
1620 * Moose::Meta::TypeConstraint::Union
1621 - added (has_)hand_optimized_constraint to this class so that
1622 it behaves as the regular Moose::Meta::TypeConstraint does.
1625 - large refactoring of this code
1626 - added several more tests
1627 - tests for subtle conflict resolition issues
1628 added, but not currently running
1631 * Moose::Cookbook::Recipe7
1632 - added new recipe for augment/inner functionality
1634 - added test for this
1637 - a formal definition of roles (still in progress)
1640 - utilities for easier working with Moose classes
1641 - added tests for these
1644 - This contains Moose specific test functions
1645 - added tests for these
1647 0.24 Tues. July 3, 2007
1648 ~ Some doc updates/cleanup ~
1650 * Moose::Meta::Attribute
1651 - added support for roles to be given as parameters
1652 to the 'handles' option.
1653 - added tests and docs for this
1654 - the has '+foo' attribute form now accepts changes to
1655 the lazy option, and the addition of a handles option
1656 (but not changing the handles option)
1657 - added tests and docs for this
1660 - required methods are now fetched using find_method_by_name
1661 so that required methods can come from superclasses
1662 - adjusted tests for this
1664 0.23 Mon. June 18, 2007
1665 * Moose::Meta::Method::Constructor
1666 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1667 * Moose::Meta::Class
1668 - Modify make_immutable to work with the new Class::MOP immutable
1669 mechanism + POD + very basic test (groditi)
1670 * Moose::Meta::Attribute
1671 - Fix handles to use goto() so that caller() comes out properly on
1672 the other side (perigrin)
1674 0.22 Thurs. May 31, 2007
1675 * Moose::Util::TypeConstraints
1676 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1677 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1678 prototypes for functions
1679 - added the ClassName type constraint, this checks for strings
1680 which will respond true to ->isa(UNIVERSAL).
1681 - added tests and docs for this
1682 - subtyping just in name now works correctly by making the
1683 default for where be { 1 }
1684 - added test for this
1686 * Moose::Meta::Method::Accessor
1687 - coerce and lazy now work together correctly, thanks to
1688 merlyn for finding this bug
1689 - tests added for this
1690 - fix reader presedence bug in Moose::Meta::Attribute + tests
1693 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1694 a HASH-ref and missed. This produces better error messages then
1695 having it die cause undef is not a HASH.
1696 - added tests for this
1698 0.21 Thursday, May 2nd, 2007
1700 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1701 - modified unimport to remove super and inner along with the rest
1702 - altered unimport tests to handle this
1705 - altered super export to populate SUPER_SLOT
1707 * Moose::Meta::Class
1708 - altered augment and override modifier application to use *_SLOT
1709 - modified tests for these to unimport one test class each to test
1712 - fixed issue where custom attribute metaclasses
1713 where not handled correctly in roles
1714 - added tests for this
1716 * Moose::Meta::Class
1717 - fixed issue where extending metaclasses with
1718 roles would blow up. Thanks to Aankhen`` for
1719 finding this insidious error, and it's solution.
1721 ~~ lots of spelling and grammer fixes in the docs,
1722 many many thanks to rlb3 and Aankhen for these :)
1724 0.20 Friday, April 6th, 2007
1725 >> I messed up the SKIP logic in one test
1726 so this release is just to fix that.
1729 - 'has' now also accepts an ARRAY ref
1730 to create multiple attrs (see docs)
1731 (thanks to konobi for this)
1732 - added tests and docs
1734 0.19 Thurs. April 5th, 2007
1735 ~~ More documentation updates ~~
1737 * Moose::Util::TypeConstraints
1738 - 'type' now supports messages as well
1739 thanks to phaylon for finding this
1740 - added tests for this
1741 - added &list_all_type_constraints and
1742 &list_all_builtin_type_constraints
1743 functions to facilitate introspection.
1745 * Moose::Meta::Attribute
1746 - fixed regexp 'handles' declarations
1747 to build the list of delegated methods
1748 correctly (and not override important
1749 things like &new) thanks to ashleyb
1751 - added tests and docs for this
1752 - added the 'documentation' attributes
1753 so that you can actually document your
1754 attributes and inspect them through the
1756 - added tests and docs for this
1758 * Moose::Meta::Class
1759 - when loading custom attribute metaclasses
1760 it will first look in for the class in the
1761 Moose::Meta::Attribute::Custom::$name, and
1762 then default to just loading $name.
1763 - added tests and docs for this
1765 * Moose::Meta::TypeConstraint
1766 - type constraints now stringify to their names.
1767 - added test for this
1770 - added tests to assure we work with Module::Refresh
1771 - added stricter test skip logic in the Moose POOP
1772 test, ask Rob Kinyon why.
1773 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1775 0.18 Sat. March 10, 2007
1776 ~~ Many, many documentation updates ~~
1779 - We now use Class::MOP::load_class to
1781 - added tests to show types and subtypes
1782 working with Declare::Constraints::Simple
1783 and Test::Deep as constraint engines.
1786 !! You must have Class::MOP 0.37_001 !!
1787 !! for this developer release to work !!
1789 This release was primarily adding the immutable
1790 feature to Moose. An immutable class is one which
1791 you promise not to alter. When you set the class
1792 as immutable it will perform various bits of
1793 memoization and inline certain part of the code
1794 (constructors, destructors and accessors). This
1795 minimizes (and in some cases totally eliminates)
1796 one of Moose's biggest performance hits. This
1797 feature is not on by default, and is 100% optional.
1798 It has several configurable bits as well, so you
1799 can pick and choose to your specific needs.
1801 The changes involved in this were fairly wide and
1802 highly specific, but 100% backwards compatible, so
1803 I am not going to enumerate them here. If you are
1804 truely interested in what was changed, please do
1807 0.17 Tues. Nov. 14, 2006
1808 * Moose::Meta::Method::Accessor
1809 - bugfix for read-only accessors which
1810 are have a type constraint and lazy.
1811 Thanks to chansen for finding it.
1813 0.16 Tues. Nov. 14, 2006
1815 There are some speed improvements in this release,
1816 but they are only the begining, so stay tuned.
1819 - BUILDALL and DEMOLISHALL no longer get
1820 called unless they actually need to be.
1821 This gave us a signifigant speed boost
1822 for the cases when there is no BUILD or
1823 DEMOLISH method present.
1825 * Moose::Util::TypeConstraints
1826 * Moose::Meta::TypeConstraint
1827 - added an 'optimize_as' option to the
1828 type constraint, which allows for a
1829 hand optimized version of the type
1830 constraint to be used when possible.
1831 - Any internally created type constraints
1832 now provide an optimized version as well.
1834 0.15 Sun. Nov. 5, 2006
1836 This version of Moose *must* have Class::MOP 0.36 in order
1837 to work correctly. A number of small internal tweaks have
1838 been made in order to be compatible with that release.
1840 * Moose::Util::TypeConstraints
1841 - added &unimport so that you can clean out
1842 your class namespace of these exported
1845 * Moose::Meta::Class
1846 - fixed minor issue which occasionally
1847 comes up during global destruction
1849 - moved Moose::Meta::Method::Overriden into
1853 - moved Moose::Meta::Role::Method into
1856 * Moose::Meta::Attribute
1857 - changed how we do type checks so that
1858 we reduce the overall cost, but still
1861 - moved accessor generation methods to
1862 Moose::Meta::Method::Accessor to
1863 conform to the API changes from
1866 * Moose::Meta::TypeConstraint
1867 - changed how constraints are compiled
1868 so that we do less recursion and more
1869 iteration. This makes the type check
1871 - moved Moose::Meta::TypeConstraint::Union
1874 * Moose::Meta::Method::Accessor
1875 - created this from methods formerly found in
1876 Moose::Meta::Attribute
1878 * Moose::Meta::Role::Method
1879 - moved this from Moose::Meta::Role
1881 * Moose::Meta::Method::Overriden
1882 - moved this from Moose::Meta::Class
1884 * Moose::Meta::TypeConstraint::Union
1885 - moved this from Moose::Meta::TypeConstraint
1887 0.14 Mon. Oct. 9, 2006
1889 * Moose::Meta::Attribute
1890 - fixed lazy attributes which were not getting
1891 checked with the type constraint (thanks ashley)
1892 - added tests for this
1893 - removed the over-enthusiastic DWIMery of the
1894 automatic ArrayRef and HashRef defaults, it
1895 broke predicates in an ugly way.
1896 - removed tests for this
1898 0.13 Sat. Sept. 30, 2006
1900 This version of Moose *must* have Class::MOP 0.35 in order
1901 to work correctly. A number of small internal tweaks have
1902 been made in order to be compatible with that release.
1905 - Removed the use of UNIVERSAL::require to be a better
1906 symbol table citizen and remove a dependency
1907 (thanks Adam Kennedy)
1909 **~~ removed experimental & undocumented feature ~~**
1910 - commented out the 'method' and 'self' keywords, see the
1911 comments for more info.
1914 - added a FAQ and WTF files to document frequently
1915 asked questions and common problems
1917 * Moose::Util::TypeConstraints
1918 - added GlobRef and FileHandle type constraint
1919 - added tests for this
1921 * Moose::Meta::Attribute
1922 - if your attribute 'isa' ArrayRef of HashRef, and you have
1923 not explicitly set a default, then make the default DWIM.
1924 This will also work for subtypes of ArrayRef and HashRef
1926 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1927 - new test added for this (thanks to ashley)
1930 - added basic support for runtime role composition
1931 but this is still *highly experimental*, so feedback
1932 is much appreciated :)
1933 - added tests for this
1935 * Moose::Meta::TypeConstraint
1936 - the type constraint now handles the coercion process
1937 through delegation, this is to support the coercion
1940 * Moose::Meta::TypeConstraint::Union
1941 - it is now possible for coercions to be performed
1943 - added tests for this (thanks to konobi)
1945 * Moose::Meta::TypeCoercion
1946 - properly capturing error when type constraint
1950 - Scalar::Util 1.18 is bad on Win32, so temporarily
1951 only require version 1.17 for Win32 and cygwin.
1952 (thanks Adam Kennedy)
1954 0.12 Sat. Sept. 1, 2006
1956 - Recipe5 (subtypes & coercion) has been written
1959 - fixed "bad meta" error message to be more descriptive
1960 - fixed &unimport to not remove the &inner and &super
1961 keywords because we need to localize them.
1962 - fixed number of spelling/grammer issues, thanks Theory :)
1964 **~~ experimental & undocumented feature ~~**
1965 - added the method and self keywords, they are basically
1966 just sugar, and they may not stay around.
1969 - added &dump method to easily Data::Dumper
1972 * Moose::Meta::TypeConstraint
1973 - added the &is_a_type_of method to check both the current
1974 and the subtype of a method (similar to &isa with classes)
1977 - this is now a subclass of Class::MOP::Module, and no longer
1978 creates the _role_meta ugliness of before.
1979 - fixed tests to reflect this change
1981 0.11 Wed. July 12, 2006
1983 - added an &unimport method to remove all the keywords
1984 that Moose will import, simply add 'no Moose' to the
1985 bottom of your class file.
1988 - fixed some test failures caused by a forgotten test
1991 0.10 Thurs. July 6, 2006
1993 - improved error message when loading modules so
1994 it is less confusing when you load a role.
1995 - added &calculate_all_roles method to
1996 Moose::Meta::Class and Moose::Meta::Role
1999 This module has been tested against Class::MOP 0.30
2000 but it does not yet utilize the optimizations
2001 it makes available. Stay tuned for that ;)
2003 0.09_03 Fri. June 23, 2006
2004 ++ DEVELOPER RELEASE ++
2006 - 'use strict' and 'use warnings' are no longer
2007 needed in Moose classes, Moose itself will
2008 turn them on for you.
2009 - added tests for this
2010 - moved code from exported subs to private methods
2011 in Moose::Meta::Class
2014 - as with Moose, strict and warnings are
2015 automatically turned on for you.
2016 - added tests for this
2019 - now handles an edge case for override errors
2020 - added tests for this
2021 - added some more edge case tests
2023 0.09_02 Tues. May 16, 2006
2024 ++ DEVELOPER RELEASE ++
2026 - added prototypes to the exported subs
2030 - added prototypes to the exported subs
2033 * Moose::Util::TypeConstraints
2034 - cleaned up prototypes for the subs
2037 0.09_01 Fri. May 12, 2006
2038 ++ DEVELOPER RELEASE ++
2039 - This release works in combination with
2040 Class::MOP 0.29_01, it is a developer
2041 release because it uses the a new
2042 instance sub-protocol and a fairly
2043 complete Role implementation. It has
2044 not yet been optimized, so it slower
2045 the the previous CPAN version. This
2046 release also lacks good updated docs,
2047 the official release will have updated docs.
2050 - refactored the keyword exports
2051 - 'with' now checks Role validaity and
2052 accepts more than one Role at a time
2053 - 'extends' makes metaclass adjustments as
2054 needed to ensure metaclass compatibility
2057 - refactored the keyword exports
2058 - 'with' now checks Role validaity and
2059 accepts more than one Role at a time
2061 * Moose::Util::TypeConstraints
2062 - added the 'enum' keyword for simple
2063 string enumerations which can be used as
2065 - see example of usage in t/202_example.t
2068 - more careful checking of params to new()
2071 - much work done on the role composition
2072 - many new tests for conflict detection
2073 and composition edge cases
2074 - not enough documentation, I suggest
2075 looking at the tests
2077 * Moose::Meta::Instance
2078 - added new Instance metaclass to support
2079 the new Class::MOP instance protocol
2081 * Moose::Meta::Class
2082 - some small changes to support the new
2084 - some small additions to support Roles
2086 * Moose::Meta::Attribute
2087 - some improvements to the accessor generation code
2089 - some small changes to support the new
2091 - (still somewhat) experimental delegation support
2092 with the 'handles' option
2093 - added several tests for this
2094 - no docs for this yet
2096 0.05 Thurs. April 27, 2006
2098 - keywords are now exported with Sub::Exporter
2099 thanks to chansen for this commit
2100 - has keyword now takes a 'metaclass' option
2101 to support custom attribute meta-classes
2102 on a per-attribute basis
2103 - added tests for this
2104 - the 'has' keyword not accepts inherited slot
2105 specifications (has '+foo'). This is still an
2106 experimental feature and probably not finished
2107 see t/038_attribute_inherited_slot_specs.t for
2108 more details, or ask about it on #moose
2109 - added tests for this
2112 - keywords are now exported with Sub::Exporter
2114 * Moose::Utils::TypeConstraints
2115 - reorganized the type constraint hierarchy, thanks
2116 to nothingmuch and chansen for his help and advice
2118 - added some tests for this
2119 - keywords are now exported with Sub::Exporter
2120 thanks to chansen for this commit
2122 * Moose::Meta::Class
2123 - due to changes in Class::MOP, we had to change
2124 construct_instance (for the better)
2126 * Moose::Meta::Attribute
2127 - due to changes in Class::MOP, we had to add the
2128 initialize_instance_slot method (it's a good thing)
2130 * Moose::Meta::TypeConstraint
2131 - added type constraint unions
2132 - added tests for this
2133 - added the is_subtype_of predicate method
2134 - added tests for this
2136 0.04 Sun. April 16th, 2006
2138 - Roles can now consume other roles
2139 - added tests for this
2140 - Roles can specify required methods now with
2141 the requires() keyword
2142 - added tests for this
2145 - ripped out much of it's guts ,.. much cleaner now
2146 - added required methods and correct handling of
2147 them in apply() for both classes and roles
2148 - added tests for this
2149 - no longer adds a does() method to consuming classes
2150 it relys on the one in Moose::Object
2151 - added roles attribute and some methods to support
2152 roles consuming roles
2154 * Moose::Meta::Attribute
2155 - added support for triggers on attributes
2156 - added tests for this
2157 - added support for does option on an attribute
2158 - added tests for this
2160 * Moose::Meta::Class
2161 - added support for attribute triggers in the
2163 - added tests for this
2166 - Moose no longer creates a subtype for your class
2167 if a subtype of the same name already exists, this
2168 should DWIM in 99.9999% of all cases
2170 * Moose::Util::TypeConstraints
2171 - fixed bug where incorrect subtype conflicts were
2173 - added test for this
2176 - this class can now be extended with 'use base' if
2177 you need it, it properly loads the metaclass class now
2178 - added test for this
2180 0.03_02 Wed. April 12, 2006
2182 - you must now explictly use Moose::Util::TypeConstraints
2183 it no longer gets exported for you automatically
2186 - new() now accepts hash-refs as well as key/value lists
2187 - added does() method to check for Roles
2188 - added tests for this
2190 * Moose::Meta::Class
2191 - added roles attribute along with the add_role() and
2193 - added tests for this
2196 - now adds a does() method to consuming classes
2197 which tests the class's hierarchy for roles
2198 - added tests for this
2200 0.03_01 Mon. April 10, 2006
2202 - added new Role recipe (no content yet, only code)
2205 - added 'with' keyword for Role support
2206 - added test and docs for this
2207 - fixed subtype quoting bug
2208 - added test for this
2212 - added test and docs
2214 * Moose::Util::TypeConstraints
2215 - added the message keyword to add custom
2216 error messages to type constraints
2219 - the meta role to support Moose::Role
2220 - added tests and docs
2222 * Moose::Meta::Class
2223 - moved a number of things from Moose.pm
2224 to here, they should have been here
2227 * Moose::Meta::Attribute
2228 - moved the attribute option macros here
2229 instead of putting them in Moose.pm
2231 * Moose::Meta::TypeConstraint
2232 - added the message attributes and the
2234 - added tests and docs for this
2236 0.03 Thurs. March 30, 2006
2238 - added the Moose::Cookbook with 5 recipes,
2239 describing all the stuff Moose can do.
2242 - fixed an issue with &extends super class loading
2243 it now captures errors and deals with inline
2244 packages correctly (bug found by mst, solution
2246 - added super/override & inner/augment features
2247 - added tests and docs for these
2250 - BUILDALL now takes a reference of the %params
2251 that are passed to &new, and passes that to
2254 * Moose::Util::TypeConstraints
2255 - Type constraints now survive runtime reloading
2256 - added test for this
2258 * Moose::Meta::Class
2259 - fixed the way attribute defaults are handled
2260 during instance construction (bug found by chansen)
2262 * Moose::Meta::Attribute
2263 - read-only attributes now actually enforce their
2264 read-only-ness (this corrected in Class::MOP as
2267 0.02 Tues. March 21, 2006
2269 - many more tests, fixing some bugs and
2271 - &extends now loads the base module with
2273 - added UNIVERSAL::require to the
2276 - each new Moose class will also create
2277 and register a subtype of Object which
2278 correspond to the new Moose class.
2279 - the 'isa' option in &has now only
2280 accepts strings, and will DWIM in
2283 * Moose::Util::TypeConstraints
2284 - added type coercion features
2285 - added tests for this
2286 - added support for this in attributes
2287 and instance construction
2289 - type construction no longer creates a
2290 function, it registers the type instead.
2291 - added several functions to get the
2295 - BUILDALL and DEMOLISHALL were broken
2296 because of a mis-named hash key, Whoops :)
2298 * Moose::Meta::Attribute
2299 - adding support for coercion in the
2300 autogenerated accessors
2302 * Moose::Meta::Class
2303 - adding support for coercion in the
2304 instance construction
2306 * Moose::Meta::TypeConstraint
2307 * Moose::Meta::TypeCoercion
2308 - type constraints and coercions are now
2309 full fledges meta-objects
2311 0.01 Wed. March 15, 2006
2312 - Moooooooooooooooooose!!!