1 Revision history for Perl extension Moose
4 * Moose::Meta::Method::Accessor
5 - If an attribute had a lazy default, and that value did not
6 pass the attribute's type constraint, it did not get the
7 message from the type constraint, instead using a generic
8 message. Test provided by perigrin.
10 * Moose::Util::TypeConstraints
11 - Add duck_type keyword. It's sugar over making sure an object
12 can() a list of methods. This is easier than jrockway's suggestion
13 to fork all of CPAN. (perigrin)
14 - add tests and documentation (perigrin)
17 - Document the fact that init_meta() returns the target class' metaclass
18 object. (Dieter Pearcey)
20 * Moose::Cookbook::Extending::Recipe1
21 * Moose::Cookbook::Extending::Recipe2
22 * Moose::Cookbook::Extending::Recipe3
23 * Moose::Cookbook::Extending::Recipe4
24 - Make init_meta() examples explicitly return the metaclass and point out
25 this fact. (Dieter Pearcey)
28 0.73 Fri, March 29, 2009
29 * No changes from 0.72_01.
31 0.72_01 Thu, March 26, 2009
33 - Almost every module has complete API documentation. A few
34 methods (and even whole classes) have been intentionally
35 excluded pending some rethinking of their APIs.
37 * Moose::Util::TypeConstraints
38 - Calling subtype with a name as the only argument is now an
39 exception. If you want an anonymous subtype do:
41 my $subtype = subtype as 'Foo';
43 * Moose::Cookbook::Meta::Recipe7
44 - A new recipe, creating a custom meta-instance class.
46 * Moose::Cookbook::Basics::Recipe5
47 - Fix various typos and mistakes. Includes a patch from Radu
50 * Moose::Cookbook::Basics::Recipe9
51 - Link to this recipe from Moose.pm's builder blurb
54 - When wrapping a function with a prototype, Moose::Exporter now
55 makes sure the wrapped function still has the same
56 prototype. (Daisuke Maki)
58 * Moose::Meta::Attribute
59 - Allow a subclass to set lazy_build for an inherited
60 attribute. (Dieter Pearcey)
63 - Explicitly depend on Data::OptList. We already had this dependency
64 via Sub::Exporter, but since we're using it directly we're
65 better off with it listed. (Sartak)
67 * Moose::Meta::Method::Constructor
68 - Make it easier to subclass the inlining behaviour. (Ash
71 * Moose::Manual::Delta
72 - Details significant changes in the history of Moose, along
73 with recommended workarounds.
75 * Moose::Manual::Contributing
76 - Contributor's guide to Moose.
78 * Moose::Meta::Method::Constructor
79 - The long-deprecated intialize_body method has been removed
80 (yes, spelled like that).
82 * Moose::Meta::Method::Destructor
83 - This is_needed method is now always a class method.
86 - Changes to the internals of how make_immutable works to match
87 changes in latest Class::MOP.
89 0.72 Mon, February 23, 2009
91 * Moose::Meta::Method::Constructor
92 - A mutable class accepted Foo->new(undef) without complaint,
93 while an immutable class would blow up with an unhelpful
94 error. Now, in both cases we throw a helpful error
95 instead. Reported by doy.
97 0.71_01 Sun, February 22, 2009
99 - Hopefully fixed some POD errors in a few recipes that caused
100 them to display weird on search.cpan.org.
102 * Moose::Util::TypeConstraints
103 - Calling type or subtype without the sugar helpers (as, where,
104 message) is now deprecated.
105 - The subtype function tried hard to guess what you meant, but
106 often got it wrong. For example:
108 my $subtype = subtype as 'ArrayRef[Object]';
110 This caused an error in the past, but now works as you'd
114 - Make sure Moose.pm is loaded before calling
115 Moose->throw_error. This wasn't normally an issue, but could
116 bite you in weird cases.
118 0.71 Thu, February 19, 2009
119 * Moose::Cookbook::Basics::Recipe11
120 - A new recipe which demonstrates the use of BUILDARGS and
123 * Moose::Cookbook::Roles::Recipe3
124 - A new recipe, applying a role to an object instance. (Dave
128 - Allow overriding specific keywords from "also" packages. (doy)
131 - Replace hardcoded cookbook tests with Test::Inline to ensure
132 the tests match the actual code in the recipes. (Dave Rolsky)
135 - Working on the above turned up a number of little bugs in the
136 recipe code. (Dave Rolsky)
138 * Moose::Util::TypeConstraints::Optimized
139 - Just use Class::MOP for the optimized ClassName check. (Dave
142 0.70 Sat, February 14, 2009
143 * Moose::Util::TypeConstraints
144 - Added the RoleName type (stevan)
145 - added tests for this (stevan)
147 * Moose::Cookbook::Basics::Recipe3
148 - Updated the before qw[left right] sub to be a little more
149 defensive about what it accepts (stevan)
150 - added more tests to t/000_recipies/basics/003_binary_tree.t
154 - We now always call DEMOLISHALL, even if a class does not
155 define DEMOLISH. This makes sure that method modifiers on
156 DEMOLISHALL work as expected. (doy)
157 - added tests for this (EvanCarroll)
159 * Moose::Util::MetaRole
160 - Accept roles for the wrapped_method_metaclass (rafl)
161 - added tests for this (rafl)
163 * Moose::Meta::Attribute
164 - We no longer pass the meta-attribute object as a final
165 argument to triggers. This actually changed for inlined code a
166 while back, but the non-inlined version and the docs were
170 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
171 they require 0.11. (Dave Rolsky)
174 - Lots of small changes to the manual, cookbook, and
175 elsewhere. These were based on feedback from various
176 users, too many to list here. (Dave Rolsky)
178 0.69 Thu, February 12, 2009
180 - Make some keyword errors use throw_error instead of croak
181 since Moose::Exporter wraps keywords now (Sartak)
184 - Revised every recipe for style and clarity. Also moved some
185 documentation out of cookbook recipes and into Moose::Manual
186 pages. This work was funded as part of the Moose docs grant
187 from TPF. (Dave Rolsky)
189 * Moose::Meta::Method::Delegation
190 - If the attribute doing the delegation was not populated, the
191 error message did not specify the attribute name
194 0.68 Wed, February 4, 2009
196 - Many spelling, typo, and formatting fixes by daxim.
198 * Moose::Manual::Attributes
199 - The NAME section in the POD used "Attribute" so search.cpan
200 didn't resolve links from other documents properly.
202 * Moose::Meta::Method::Overriden
203 - Now properly spelled as Overridden. Thanks to daxim for
206 0.67 Tue, February 3, 2009
208 - Lots of little typo fixes and a few clarifications. Several
209 pages didn't have proper titles, and so weren't actually
210 visible on search.cpan.org. Thanks to hanekomu for a variety
211 of fixes and formatting improvements.
213 0.66 Tue, February 3, 2009
215 - This is a brand new, extensive manual for Moose. This aims to
216 provide a complete introduction to all of Moose's
217 features. This work was funded as part of the Moose docs grant
218 from TPF. (Dave Rolsky)
220 * Moose::Meta::Attribute
221 - Added a delegation_metaclass method to replace a hard-coded
222 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
224 * Moose::Util::TypeConstraints
225 - If you created a subtype and passed a parent that Moose didn't
226 know about, it simply ignored the parent. Now it automatically
227 creates the parent as a class type. This may not be what you
228 want, but is less broken than before. (Dave Rolsky)
230 * Moose::Util::TypeConstraints
231 - This module tried throw errors by calling Moose->throw_error,
232 but it did not ensure that Moose was loaded first. This could
233 cause very unhelpful errors when it tried to throw an error
234 before Moose was loaded. (Dave Rolsky)
236 * Moose::Util::TypeConstraints
237 - You could declare a name with subtype such as "Foo!Bar" that
238 would be allowed, but if you used it in a parameterized type
239 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
240 vetting on names created via the sugar functions, so that they
241 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
243 0.65 Thu, January 22, 2008
244 * Moose and Moose::Meta::Method::Overridden
245 - If an overridden method called super(), and then the
246 superclass's method (not overridden) _also_ called super(),
247 Moose went into an endless recursion loop. Test provided by
248 Chris Prather. (Dave Rolsky)
250 * Moose::Meta::TypeConstraint
251 - All methods are now documented. (gphat)
253 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
254 - Fixed some bogus failures that occurred because we tried to
255 validate filesystem paths in a very ad-hoc and
256 not-quite-correct way. (Dave Rolsky)
258 * Moose::Util::TypeConstraints
259 - Added maybe_type to exports. See docs for details. (rjbs)
262 - Added Moose::Util::TypeConstraints to the SEE ALSO
266 - Methods created via an attribute can now fulfill a "requires"
267 declaration for a role. (nothingmuch)
269 * Moose::Meta::Method::*
270 - Stack traces from inlined code will now report its line and
271 file as being in your class, as opposed to in Moose
274 0.64 Wed, December 31, 2008
275 * Moose::Meta::Method::Accessor
276 - Always inline predicate and clearer methods (Sartak)
278 * Moose::Meta::Attribute
279 - Support for parameterized traits (Sartak)
280 - verify_against_type_constraint method to avoid duplication
281 and enhance extensibility (Sartak)
284 - Tests (but no support yet) for parameterized traits (Sartak)
287 - Require Class::MOP 0.75+, which has the side effect of making
288 sure we work on Win32. (Dave Rolsky)
290 0.63 Mon, December 8, 2008
292 - Some small grammar tweaks and bug fixes in non-Moose example
295 0.62_02 Fri, December 5, 2008
296 * Moose::Meta::Role::Application::ToClass
297 - When a class does not provide all of a role's required
298 methods, the error thrown now mentions all of the missing
299 methods, as opposed to just the first one found. Requested by
300 Curtis Poe (RT #41119). (Dave Rolsky)
302 * Moose::Meta::Method::Constructor
303 - Moose will no longer inline a constructor for your class
304 unless it inherits its constructor from Moose::Object, and
305 will warn when it doesn't inline. If you want to force
306 inlining anyway, pass "replace_constructor => 1" to
307 make_immutable. Addresses RT #40968, reported by Jon
308 Swartz. (Dave Rolsky)
309 - The quoting of default values could be broken if the default
310 contained a single quote ('). Now we use quotemeta to escape
311 anything potentially dangerous in the defaults. (Dave Rolsky)
313 0.62_01 Wed, December 3, 2008
315 - use the method->execute API for BUILDALL
316 and DEMOLISHALL (Sartak)
318 * Moose::Util::TypeConstraints
319 - We now make all the type constraint meta classes immutable
320 before creating the default types provided by Moose. This
321 should make loading Moose a little faster. (Dave Rolsky)
323 0.62 Wed November 26, 2008
324 * Moose::Meta::Role::Application::ToClass
325 Moose::Meta::Role::Application::ToRole
326 - fixed issues where excluding and aliasing the
327 same methods for a single role did not work
328 right (worked just fine with multiple
330 - added test for this (stevan)
332 * Moose::Meta::Role::Application::RoleSummation
333 - fixed the error message when trying to compose
334 a role with a role it excludes (Sartak)
337 - Catch another case where recursion caused the value
338 of $CALLER to be stamped on (t0m)
339 - added test for this (t0m)
342 - Remove the make_immutable keyword, which has been
343 deprecated since April. It breaks metaclasses that
344 use Moose without no Moose (Sartak)
346 * Moose::Meta::Attribute
347 - Removing an attribute from a class now also removes delegation
348 (handles) methods installed for that attribute (t0m)
349 - added test for this (t0m)
351 * Moose::Meta::Method::Constructor
352 - An attribute with a default that looked like a number (but was
353 really a string) would accidentally be treated as a number
354 when the constructor was made immutable (perigrin)
355 - added test for this (perigrin)
358 - create method for constructing a role
360 - added test for this (Sartak)
361 - anonymous roles! (Sartak)
362 - added test for this (Sartak)
365 - more consistent error messages (Sartak)
367 * Moose::Cookbook::Roles::Recipe1
368 - attempt to explain why a role that just requires
369 methods is useful (Sartak)
371 0.61 Fri November 7, 2008
372 * Moose::Meta::Attribute
373 - When passing a role to handles, it will be loaded if necessary
377 - Method objects returned by get_method (and other methods)
378 Could end up being returned without an associated_metaclass
379 attribute. Removing get_method_map, which is provided by
380 Class::MOP::Class, fixed this. The Moose version did nothing
381 different from its parent except introduce a bug. (Dave Rolsky)
382 - added tests for this (jdv79)
385 - Added a $VERSION to all .pm files which didn't have one. Fixes
386 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
388 * Moose::Cookbook::Basics::Recipe4
389 * Moose::Cookbook::Basics::Recipe6
390 - These files had spaces on the first line of the SYNOPSIS, as
391 opposed to a totally empty line. According to RT #40432, this
392 confuses POD parsers. (Dave Rolsky)
394 0.60 Fri October 24, 2008
396 - Passing "-traits" when loading Moose caused the Moose.pm
397 exports to be broken. Reported by t0m. (Dave Rolsky)
398 - Tests for this bug. (t0m)
401 - Change resolve_metaclass alias to use the new
402 load_first_existing_class function. This makes it a lot
403 simpler, and also around 5 times faster. (t0m)
404 - Add caching to resolve_metaclass_alias, which gives an order
405 of magnitude speedup to things which repeatedly call the
406 Moose::Meta::Attribute->does method, notably MooseX::Storage
409 * Moose::Util::TypeConstraint
410 - Put back the changes for parameterized constraints that
411 shouldn't have been removed in 0.59. We still cannot parse
412 them, but MooseX modules can create them in some other
413 way. See the 0.58 changes for more details. (jnapiorkowski)
414 - Changed the way subtypes are created so that the job is
415 delegated to a type constraint parent. This clears up some
416 hardcoded checking and should allow correct subtypes of
417 Moose::Meta::Type::Constraint. Don't rely on this new API too
418 much (create_child_type) because it may go away in the
419 future. (jnapiorkowski)
421 * Moose::Meta::TypeConstraint::Union
422 - Type constraint names are sorted as strings, not numbers.
425 * Moose::Meta::TypeConstraint::Parameterizable
426 - New parameterize method. This can be used as a factory method
427 to make a new type constraint with a given parameterized
428 type. (jnapiorkowski)
429 - added tests (jnapiorkowski)
431 0.59 Tue October 14, 2008
433 - Add abridged documentation for builder/default/initializer/
434 predicate, and link to more details sections in
435 Class::MOP::Attribute. (t0m)
437 * Moose::Util::TypeConstraints
438 - removed prototypes from all but the &-based stuff (mst)
440 * Moose::Util::TypeConstraints
441 - Creating a anonymous subtype with both a constraint and a
442 message failed with a very unhelpful error, but should just
443 work. Reported by t0m. (Dave Rolsky)
446 - Some tests that used Test::Warn if it was available failed
447 with older versions of Test::Warn. Reported by Fayland. (Dave
449 - Test firing behavior of triggers in relation to builder/default/
451 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
452 kinds of supported type. (t0m)
455 - In create(), do not pass "roles" option to the superclass
456 - added related test that creates an anon metaclass with
459 * Moose::Meta::TypeConstraint::Class
460 * Moose::Meta::TypeConstraint::Role
461 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
462 other types (as per change in 0.55_02). (t0m)
464 * Moose::Meta::TypeConstraint::Registry
465 - Fix warning when dealing with unknown type names (t0m)
467 * Moose::Util::TypeConstraints
468 - Reverted changes from 0.58 related to handle parameterized
469 types. This caused random failures on BSD and Win32 systems,
470 apparently related to the regex engine. This means that Moose
471 can no longer parse structured type constraints like
472 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
473 supported in a slightly different way via MooseX::Types some
474 time in the future. (Dave Rolsky)
476 0.58 Sat September 20, 2008
477 !! This release has an incompatible change regarding !!
478 !! how roles add methods to a class !!
480 * Roles and role application
481 ! Roles now add methods by calling add_method, not
482 alias_method. They make sure to always provide a method
483 object, which will be cloned internally. This means that it is
484 now possible to track the source of a method provided by a
485 role, and even follow its history through intermediate roles.
487 This means that methods added by a role now show up when
488 looking at a class's method list/map. (Dave Rolsky)
491 - From this release on, we'll try to maintain a list of
492 conflicting modules, and warn you if you have one
493 installed. For example, this release conflicts with ...
494 - MooseX::Singleton <= 0.11
495 - MooseX::Params::Validate <= 0.05
498 In general, we try to not break backwards compatibility for
499 most Moose users, but MooseX modules and other code which
500 extends Moose's metaclasses is often affected by very small
501 changes in the Moose internals.
503 * Moose::Meta::Method::Delegation
504 * Moose::Meta::Attribute
505 - Delegation methods now have their own method class. (Dave
508 * Moose::Meta::TypeConstraint::Parameterizable
509 - Added a new method 'parameterize' which is basically a factory
510 for the containing constraint. This makes it easier to create
511 new types of parameterized constraints. (jnapiorkowski)
513 * Moose::Meta::TypeConstraint::Union
514 - Changed the way Union types canonicalize their names to follow
515 the normalized TC naming rules, which means we strip all
516 whitespace. (jnapiorkowski)
518 * Moose::Util::TypeConstraints
519 - Parameter and Union args are now sorted, this makes Int|Str
520 the same constraint as Str|Int. (jnapiorkowski)
521 - Changes to the way Union types are parsed to more correctly
522 stringify their names. (jnapiorkowski)
523 - When creating a parameterized type, we now use the new
524 parameterize method. (jnapiorkowski)
525 - Incoming type constraint strings are now normalized to remove
526 all whitespace differences. (jnapiorkowski)
527 - Changed the way we parse type constraint strings so that we now
528 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
529 constraints. This lays the foundation for more flexible type
530 constraint implementations.
532 * Tests and docs for all the above. (jnapiorkowski)
536 - Moose::Exporter will no longer remove a subroutine that the
537 exporting package re-exports. Moose re-exports the
538 Carp::confess function, among others. The reasoning is that we
539 cannot know whether you have also explicitly imported those
540 functions for your own use, so we err on the safe side and
541 always keep them. (Dave Rolsky)
542 - added tests for this (rafl)
545 - Changes to how we fix metaclass compatibility that are much
546 too complicated to go into. The summary is that Moose is much
547 less likely to complain about metaclass incompatibility
548 now. In particular, if two metaclasses differ because
549 Moose::Util::MetaRole was used on the two corresponding
550 classes, then the difference in roles is reconciled for the
551 subclass's metaclass. (Dave Rolsky)
552 - Squashed an warning in _process_attribute (thepler)
555 - throw exceptions (sooner) for invalid attribute names (thepler)
556 - added tests for this (thepler)
558 * Moose::Util::MetaRole
559 - If you explicitly set a constructor or destructor class for a
560 metaclass object, and then applied roles to the metaclass,
561 that explicitly set class would be lost and replaced with the
565 * Moose::Meta::Attribute
566 * Moose::Meta::Method
569 * Moose::Error::Default
570 * Moose::Error::Croak
571 * Moose::Error::Confess
572 - All instances of confess() changed to use overridable
573 C<throw_error> method. This method ultimately calls a class
574 constructor, and you can change the class being called. In
575 addition, errors now pass more information than just a string.
576 The default C<error_class> behaves like C<Carp::confess>, so
577 the behavior is not visibly different for end users.
579 0.57 Wed September 3, 2008
581 - A new bit of doc intended to introduce folks familiar with
582 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
585 - Shows examples of two classes, each done first with and then
586 without Moose. This makes a nice parallel to
587 Moose::Intro. (Dave Rolsky)
589 * Moose::Util::TypeConstraints
590 - Fixed a bug in find_or_parse_type_constraint so that it
591 accepts a Moose::Meta::TypeConstraint object as the parent
592 type, not just a name (jnapiorkowski)
593 - added tests (jnapiorkowski)
596 - If Sub::Name was not present, unimporting failed to actually
597 remove some sugar subs, causing test failures (Dave Rolsky)
599 0.56 Mon September 1, 2008
600 For those not following the series of dev releases, there are
601 several major changes in this release of Moose.
602 ! Moose::init_meta should now be called as a method. See the
605 - Major performance improvements by nothingmuch.
607 - New modules for extension writers, Moose::Exporter and
608 Moose::Util::MetaRole by Dave Rolsky.
610 - Lots of doc improvements and additions, especially in the
615 * Removed all references to the experimental-but-no-longer-needed
616 Moose::Meta::Role::Application::ToMetaclassInstance.
618 * Require Class::MOP 0.65.
620 0.55_04 Sat August 30, 2008
621 * Moose::Util::MetaRole
622 * Moose::Cookbook::Extending::Recipe2
623 - This simplifies the application of roles to any meta class, as
624 well as the base object class. Reimplemented metaclass traits
625 using this module. (Dave Rolsky)
627 * Moose::Cookbook::Extending::Recipe1
628 - This a new recipe, an overview of various ways to write Moose
629 extensions (Dave Rolsky)
631 * Moose::Cookbook::Extending::Recipe3
632 * Moose::Cookbook::Extending::Recipe4
633 - These used to be Extending::Recipe1 and Extending::Recipe2,
636 0.55_03 Fri August 29, 2008
637 * No changes from 0.55_02 except increasing the Class::MOP
638 dependency to 0.64_07.
640 0.55_02 Fri August 29, 2008
641 * Makefile.PL and Moose.pm
642 - explicitly require Perl 5.8.0+ (Dave Rolsky)
644 * Moose::Util::TypeConstraints
645 - Fix warnings from find_type_constraint if the type is not
648 * Moose::Meta::TypeConstraint
649 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
650 return false if the type you specify cannot be found in the
651 type registry, rather than throwing an unhelpful and
652 coincidental exception. (t0m).
653 - added docs & test for this (t0m)
655 * Moose::Meta::TypeConstraint::Registry
656 - add_type_constraint now throws an exception if a parameter is
658 - added docs & test for this (t0m)
660 * Moose::Cookbook::FAQ
661 - Added a faq entry on the difference between "role" and "trait"
665 - Fixed a bug that caused role composition to not see a required
666 method when that method was provided by another role being
667 composed at the same time. (Dave Rolsky)
668 - test and bug finding (tokuhirom)
670 0.55_01 Wed August 20, 2008
672 !! Calling Moose::init_meta as a function is now !!
673 !! deprecated. Please see the Moose.pm docs for details. !!
675 * Moose::Meta::Method::Constructor
676 - Fix inlined constructor so that values produced by default
677 or builder methods are coerced as required. (t0m)
678 - added test for this (t0m)
680 * Moose::Meta::Attribute
681 - A lazy attribute with a default or builder did not attempt to
682 coerce the default value. The immutable code _did_
684 - added test for this (t0m)
687 - This is a new helper module for writing "Moose-alike"
688 modules. This should make the lives of MooseX module authors
689 much easier. (Dave Rolsky)
692 * Moose::Cookbook::Meta::Recipe5
693 - Implemented metaclass traits (and wrote a recipe for it):
695 use Moose -traits => 'Foo'
697 This should make writing small Moose extensions a little
700 * Moose::Cookbook::Basics::Recipe1
701 - Removed any examples of direct hashref access, and applied an
702 editorial axe to reduce verbosity. (Dave Rolsky)
704 * Moose::Cookbook::Basics::Recipe1
705 - Also applied an editorial axe here. (Dave Rolsky)
708 * Moose::Cookbook::Extending::Recipe1
709 * Moose::Cookbook::Extending::Recipe2
710 - Rewrote extending and embedding moose documentation and
711 recipes to use Moose::Exporter (Dave Rolsky)
715 - These two modules now warn when you load them from the main
716 package "main" package, because we will not export sugar to
717 main. Previously it just did nothing. (Dave Rolsky)
720 - Now provide an init_meta method just like Moose.pm, and you
721 can call this to provide an alternate role metaclass. (Dave
722 Rolsky and nothingmuch)
723 - get_method_map now respects the package cache flag (nothingmuch)
726 - Two new methods - add_method and wrap_method_body
730 - Optimizations including allowing constructors to accept hash
731 refs, making many more classes immutable, and making
732 constructors immutable. (nothingmuch)
734 0.55 Sun August 3, 2008
735 * Moose::Meta::Attribute
736 - breaking down the way 'handles' methods are
737 created so that the process can be more easily
738 overridden by subclasses (stevan)
740 * Moose::Meta::TypeConstraint
741 - fixing what is passed into a ->message with
742 the type constraints (RT #37569)
743 - added tests for this (Charles Alderman)
745 * Moose::Util::TypeConstraints
746 - fix coerce to accept anon types like subtype can (mst)
749 - reorganized the recipes into sections - Basics, Roles, Meta,
750 Extending - and wrote abstracts for each section (Dave Rolsky)
752 * Moose::Cookbook::Basics::Recipe10
753 - A new recipe that demonstrates operator overloading
754 in combination with Moose. (bluefeet)
756 * Moose::Cookbook::Meta::Recipe1
757 - an introduction to what meta is and why you'd want to make
758 your own metaclass extensions (Dave Rolsky)
760 * Moose::Cookbook::Meta::Recipe4
761 - a very simple metaclass example (Dave Rolsky)
763 * Moose::Cookbook::Extending::Recipe1
764 - how to write a Moose-alike module to use your own object base
767 * Moose::Cookbook::Extending::Recipe2
768 - how to write modules with an API just like C<Moose.pm> (Dave
772 - Tons of fixes, both syntactical and grammatical (Dave
773 Rolsky, Paul Fenwick)
775 0.54 Thurs. July 3, 2008
776 ... this is not my day today ...
778 * Moose::Meta::Attribute
779 - fixed legal_options_for_inheritance such that
780 clone_and_inherit options still works for
781 Class::MOP::Attribute objects and therefore
782 does not break MooseX::AttributeHelpers
785 0.53 Thurs. July 3, 2008
786 * Whoops, I guess I should run 'make manifest' before
787 actually releasing the module. No actual changes
788 in this release, except the fact that it includes
789 the changes that I didn't include in the last
792 0.52 Thurs. July 3, 2008
794 - added "FEATURE REQUESTS" section to the Moose docs
795 to properly direct people (stevan) (RT #34333)
796 - making 'extends' croak if it is passed a Role since
797 this is not ever something you want to do
798 (fixed by stevan, found by obra)
799 - added tests for this (stevan)
802 - adding support for DOES (as in UNIVERSAL::DOES)
804 - added test for this
806 * Moose::Meta::Attribute
807 - added legal_options_for_inheritance (wreis)
808 - added tests for this (wreis)
810 * Moose::Cookbook::Snacks::*
811 - removed some of the unfinished snacks that should
812 not have been released yet. Added some more examples
813 to the 'Keywords' snack. (stevan)
815 * Moose::Cookbook::Style
816 - added general Moose "style guide" of sorts to the
817 cookbook (nothingmuch) (RT #34335)
820 - added more BUILDARGS tests (stevan)
822 0.51 Thurs. Jun 26, 2008
824 - add unimport so "no Moose::Role" actually does
827 * Moose::Meta::Role::Application::ToRole
828 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
829 order to provide its own implementation, that method still got
830 added to the list of required methods for consumers of
831 RoleB. Now an aliased method is only added to the list of
832 required methods if the role doing the aliasing does not
833 provide its own implementation. See Recipe 11 for an example
834 of all this. (Dave Rolsky)
835 - added tests for this
837 * Moose::Meta::Method::Constructor
838 - when a single argument that wasn't a hashref was provided to
839 an immutabilized constructor, the error message was very
840 unhelpful, as opposed to the non-immutable error. Reported by
842 - added test for this (Dave Rolsky)
844 * Moose::Meta::Attribute
845 - added support for meta_attr->does("ShortAlias") (sartak)
846 - added tests for this (sartak)
847 - moved the bulk of the `handles` handling to the new
848 install_delegation method (Stevan)
851 - Added BUILDARGS, a new step in new()
853 * Moose::Meta::Role::Application::RoleSummation
854 - fix typos no one ever sees (sartak)
856 * Moose::Util::TypeConstraints
857 * Moose::Meta::TypeConstraint
858 * Moose::Meta::TypeCoercion
859 - Attempt to work around the ??{ } vs. threads issue
861 - Some null_constraint optimizations
863 0.50 Thurs. Jun 11, 2008
864 - Fixed a version number issue by bumping all modules
867 0.49 Thurs. Jun 11, 2008
868 !! This version now approx. 20-25% !!
869 !! faster with new Class::MOP 0.59 !!
871 * Moose::Meta::Attribute
872 - fixed how the is => (ro|rw) works with
873 custom defined reader, writer and accessor
875 - added docs for this (TODO).
876 - added tests for this (Thanks to Penfold)
877 - added the custom attribute alias for regular
878 Moose attributes which is "Moose"
879 - fix builder and default both being used
884 Moose::Meta::Attribute
886 Moose::Meta::Role::Composite
887 Moose::Util::TypeConstraints
888 - switched usage of reftype to ref because
892 - changing add_package_symbol to use the new
896 - fixed how DEMOLISHALL is called so that it
897 can be overrided in subclasses (thanks to Sartak)
898 - added test for this (thanks to Sartak)
900 * Moose::Util::TypeConstraints
901 - move the ClassName type check code to
902 Class::MOP::is_class_loaded (thanks to Sartak)
904 * Moose::Cookbook::Recipe11
905 - add tests for this (thanks to tokuhirom)
907 0.48 Thurs. May 29, 2008
908 (early morning release engineering)--
910 - fixing the version in Moose::Meta::Method::Destructor
911 which was causing the indexer to choke
913 0.47 Thurs. May 29, 2008
914 (late night release engineering)--
916 - fixing the version is META.yml, no functional
917 changes in this release
919 0.46 Wed. May 28, 2008
920 !! This version now approx. 20-25% !!
921 !! faster with new Class::MOP 0.57 !!
924 - some optimizations of the &initialize method
925 since it is called so often by &meta
929 - now use the get_all_package_symbols from the
930 updated Class::MOP, test suite is now 10 seconds
933 * Moose::Meta::Method::Destructor
934 - is_needed can now also be called as a class
935 method for immutablization to check if the
936 destructor object even needs to be created
939 * Moose::Meta::Method::Destructor
940 Moose::Meta::Method::Constructor
941 - added more descriptive error message to help
942 keep people from wasting time tracking an error
943 that is easily fixed by upgrading.
945 0.45 Saturday, May 24, 2008
947 - Because of work in Class::MOP 0.57, all
948 XS based functionality is now optional
949 and a Pure Perl version is supplied
950 - the CLASS_MOP_NO_XS environment variable
951 can now be used to force non-XS versions
953 - several of the packages have been tweaked
954 to take care of this, mostly we added
955 support for the package_name and name
956 variables in all the Method metaclasses
957 - before/around/after method modifiers now
958 support regexp matching of names
959 (thanks to Takatoshi Kitano)
960 - tests added for this
961 - NOTE: this only works for classes, it
962 is currently not supported in roles,
963 but, ... patches welcome
964 - All usage of Carp::confess have been replaced
965 by Carp::croak in the "keyword" functions since
966 the stack trace is usually not helpful
969 - All usage of Carp::confess have been replaced
970 by Carp::croak in the "keyword" functions since
971 the stack trace is usually not helpful
972 - The 'has' keyword for roles now accepts the
973 same array ref form that Moose.pm does
974 (has [qw/foo bar/] => (is => 'rw', ...))
975 - added test for this
977 * Moose::Meta::Attribute
978 - trigger on a ro-attribute is no longer an
979 error, as it's useful to trigger off of the
983 - added same 'add_package_symbol' fix as in
987 - does_role now handles non-Moose classes
989 - added tests for this
990 - added the 'add_method_modifier' function
991 (thanks to Takatoshi Kitano)
993 * Moose::Util::TypeConstraints
994 - subtypes of parameterizable types now are
995 themselves parameterizable types
997 * Moose::Meta::Method::Constructor
998 - fixed bug where trigger was not being
999 called by the inlined immutable
1001 - added test for this (thanks to Caelum)
1003 * Moose::Meta::Role::Application::ToInstance
1004 - now uses the metaclass of the instance
1005 (if possible) to create the anon-class
1006 (thanks Jonathan Rockway)
1008 * Moose::Cookbook::Recipe22
1009 - added the meta-attribute trait recipe
1013 - fixed hash-ordering test bug that was
1014 causing occasional cpantester failures
1015 - renamed the t/000_recipe/*.t tests to be
1016 more descriptive (thanks to Sartak)
1018 0.44 Sat. May 10, 2008
1020 - made make_immutable warning cluck to
1021 show where the error is (thanks mst)
1024 - BUILDALL and DEMOLISHALL now call
1025 ->body when looping through the
1026 methods, to avoid the overloaded
1028 - fixed issue where DEMOLISHALL was
1029 eating the $@ values, and so not
1030 working correctly, it still kind of
1031 eats them, but so does vanilla perl
1032 - added tests for this
1034 * Moose::Cookbook::Recipe7
1035 - added new recipe for immutable
1036 functionality (thanks Dave Rolsky)
1038 * Moose::Cookbook::Recipe9
1039 - added new recipe for builder and
1040 lazy_build (thanks Dave Rolsky)
1042 * Moose::Cookbook::Recipe11
1043 - added new recipe for method aliasing
1044 and exclusion with Roles (thanks Dave Rolsky)
1047 - fixed Win32 test failure (thanks spicyjack)
1049 ~ removed Build.PL and Module::Build compat
1050 since Module::Install has done that.
1052 0.43 Wed. April, 30, 2008
1054 drink more coffee before
1055 doing release engineering
1057 - whoops, forgot to do the smolder tests,
1058 and we broke some of the custom meta-attr
1059 modules. This fixes that.
1061 0.42 Mon. April 28, 2008
1062 - some bad tests slipped by, nothing else
1063 changed in this release (cpantesters++)
1065 - upped the Class::MOP dependency to 0.55
1066 since we have tests which need the C3
1069 0.41 Mon. April 28, 2008
1070 ~~ numerous documentation updates ~~
1072 - Changed all usage of die to Carp::croak for better
1073 error reporting (initial patch by Tod Hagan)
1075 ** IMPORTANT NOTE **
1076 - the make_immutable keyword is now deprecated, don't
1077 use it in any new code and please fix your old code
1078 as well. There will be 2 releases, and then it will
1084 - refactored the way inner and super work to avoid
1085 any method/@ISA cache penalty (nothingmuch)
1087 * Moose::Meta::Class
1088 - fixing &new_object to make sure trigger gets the
1089 coerced value (spotted by Charles Alderman on the
1091 - added test for this
1093 * Moose::Meta::Method::Constructor
1094 - immutable classes which had non-lazy attributes were calling
1095 the default generating sub twice in the constructor. (bug
1096 found by Jesse Luehrs, fixed by Dave Rolsky)
1097 - added tests for this (Dave Rolsky)
1098 - fix typo in initialize_body method (nothingmuch)
1100 * Moose::Meta::Method::Destructor
1101 - fix typo in initialize_body method (nothingmuch)
1103 * Moose::Meta::Method::Overriden
1104 Moose::Meta::Method::Augmented
1105 - moved the logic for these into their own
1106 classes (nothingmuch)
1108 * Moose::Meta::Attribute
1109 - inherited attributes may now be extended without
1110 restriction on the type ('isa', 'does') (Sartak)
1111 - added tests for this (Sartak)
1112 - when an attribute property is malformed (such as lazy without
1113 a default), give the name of the attribute in the error
1115 - added the &applied_traits and &has_applied_traits methods
1116 to allow introspection of traits
1117 - added tests for this
1118 - moved 'trait' and 'metaclass' argument handling to here from
1120 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1121 '+foo' syntax) (nothingmuch)
1122 - added tests for this (t0m)
1125 - localize $@ inside DEMOLISHALL to avoid it
1126 eating $@ (found by Ernesto)
1127 - added test for this (thanks to Ernesto)
1129 * Moose::Util::TypeConstraints
1130 - &find_type_constraint now DWIMs when given an
1131 type constraint object or name (nothingmuch)
1132 - &find_or_create_type_constraint superseded with a number of more
1134 - find_or_create_{isa,does}_type_constraint
1135 - find_or_parse_type_constraint
1137 * Moose::Meta::TypeConstraint
1138 Moose::Meta::TypeConstraint::Class
1139 Moose::Meta::TypeConstraint::Role
1140 Moose::Meta::TypeConstraint::Enum
1141 Moose::Meta::TypeConstraint::Union
1142 Moose::Meta::TypeConstraint::Parameterized
1143 - added the &equals method for comparing two type
1144 constraints (nothingmuch)
1145 - added tests for this (nothingmuch)
1147 * Moose::Meta::TypeConstraint
1148 - add the &parents method, which is just an alias to &parent.
1149 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1151 * Moose::Meta::TypeConstraint::Class
1152 - added the class attribute for introspection purposes
1154 - added tests for this
1156 * Moose::Meta::TypeConstraint::Enum
1157 Moose::Meta::TypeConstraint::Role
1158 - broke these out into their own classes (nothingmuch)
1160 * Moose::Cookbook::Recipe*
1161 - fixed references to test file locations in the POD
1162 and updated up some text for new Moose features
1166 - Added &resolve_metaclass_alias, a helper function for finding an actual
1167 class for a short name (e.g. in the traits list)
1169 0.40 Fri. March 14, 2008
1170 - I hate Pod::Coverage
1172 0.39 Fri. March 14, 2008
1174 - documenting the use of '+name' with attributes
1175 that come from recently composed roles. It makes
1176 sense, people are using it, and so why not just
1177 officially support it.
1178 - fixing the 'extends' keyword so that it will not
1179 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1182 - added the perl -Moose=+Class::Name feature to allow
1183 monkeypatching of classes in one liners
1186 - fixing the 'apply_all_roles' keyword so that it will not
1187 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1189 * Moose::Meta::Class
1190 - added ->create method which now supports roles (thanks to jrockway)
1191 - added tests for this
1192 - added ->create_anon_class which now supports roles and caching of
1193 the results (thanks to jrockway)
1194 - added tests for this
1195 - made ->does_role a little more forgiving when it is
1196 checking a Class::MOP era metaclasses.
1198 * Moose::Meta::Role::Application::ToInstance
1199 - it is now possible to pass extra params to be used when
1200 a role is applied to an the instance (rebless_params)
1201 - added tests for this
1203 * Moose::Util::TypeConstraints
1204 - class_type now accepts an optional second argument for a
1205 custom message. POD anotated accordingly (groditi)
1206 - added tests for this
1207 - it is now possible to make anon-enums by passing 'enum' an
1208 ARRAY ref instead of the $name => @values. Everything else
1210 - added tests for this
1213 - making test for using '+name' on attributes consumed
1214 from a role, it works and makes sense too.
1216 * Moose::Meta::Attribute
1217 - fix handles so that it doesn't return nothing
1218 when the method cannot be found, not sure why
1219 it ever did this originally, this means we now
1220 have slightly better support for AUTOLOADed
1222 - added more delegation tests
1223 - adding ->does method to this so as to better
1224 support traits and their introspection.
1225 - added tests for this
1228 - localizing the Data::Dumper configurations so
1229 that it does not pollute others (RT #33509)
1230 - made ->does a little more forgiving when it is
1231 passed Class::MOP era metaclasses.
1233 0.38 Fri. Feb. 15, 2008
1234 * Moose::Meta::Attribute
1235 - fixed initializer to correctly do
1236 type checking and coercion in the
1238 - added tests for this
1241 - fixed some finicky tests (thanks to konobi)
1243 0.37 Thurs. Feb. 14, 2008
1245 - fixed some details in Moose::init_meta
1246 and its superclass handling (thanks thepler)
1247 - added tests for this (thanks thepler)
1248 - 'has' now dies if you don't pass in name
1250 - added the 'make_immutable' keyword as a shortcut
1253 * Moose::Meta::Class
1254 Moose::Meta::Method::Constructor
1255 Moose::Meta::Attribute
1256 - making (init_arg => undef) work here too
1257 (thanks to nothingmuch)
1259 * Moose::Meta::Attribute
1260 Moose::Meta::Method::Constructor
1261 Moose::Meta::Method::Accessor
1262 - make lazy attributes respect attr initializers (rjbs)
1263 - added tests for this
1265 * Moose::Util::TypeConstraints
1266 Moose::Util::TypeConstraints::OptimizedConstraints
1267 Moose::Meta::TypeConstraints
1268 Moose::Meta::Attribute
1269 Moose::Meta::Method::Constructor
1270 Moose::Meta::Method::Accessor
1271 - making type errors use the
1272 assigned message (thanks to Sartak)
1273 - added tests for this
1275 * Moose::Meta::Method::Destructor
1276 - making sure DESTROY gets inlined properly
1277 with successive DEMOLISH calls (thanks to manito)
1279 * Moose::Meta::Attribute
1280 Moose::Meta::Method::Accessor
1281 - fixed handling of undef with type constraints
1283 - added tests for this
1286 - added &get_all_init_args and &get_all_attribute_values
1287 (thanks to Sartak and nothingmuch)
1289 0.36 Sat. Jan. 26, 2008
1291 Moose::Meta::Attribute
1292 - role type tests now support when roles are
1293 applied to non-Moose classes (found by ash)
1294 - added tests for this (thanks to ash)
1295 - couple extra tests to boost code coverage
1297 * Moose::Meta::Method::Constructor
1298 - improved fix for handling Class::MOP attributes
1299 - added test for this
1301 * Moose::Meta::Class
1302 - handled the add_attribute($attribute_meta_object)
1304 - added test for this
1306 0.35 Tues. Jan. 22, 2008
1307 * Moose::Meta::Method::Constructor
1308 - fix to make sure even Class::MOP attributes
1309 are handled correctly (Thanks to Dave Rolsky)
1310 - added test for this (also Dave Rolsky)
1312 * Moose::Meta::Class
1313 - improved error message on _apply_all_roles,
1314 you should now use Moose::Util::apply_all_roles
1315 and you shouldnt have been using a _ prefixed
1316 method in the first place ;)
1318 0.34 Mon. Jan. 21, 2008
1319 ~~~ more misc. doc. fixes ~~~
1320 ~~ updated copyright dates ~~
1322 Moose is now a postmodern object system :)
1323 - (see the POD for details)
1325 * <<Role System Refactoring>>
1326 - this release contains a major reworking and
1327 cleanup of the role system
1328 - 100% backwards compat.
1329 - Role application now restructured into seperate
1330 classes based on type of applicants
1331 - Role summation (combining of more than one role)
1332 is much cleaner and anon-classes are no longer
1333 used in this process
1334 - new Composite role metaclass
1335 - runtime application of roles to instances
1336 is now more efficient and re-uses generated
1337 classes when applicable
1339 * <<New Role composition features>>
1340 - methods can now be excluded from a given role
1342 - methods can now be aliased to another name (and
1343 still retain the original as well)
1345 * Moose::Util::TypeConstraints::OptimizedConstraints
1346 - added this module (see above)
1348 * Moose::Meta::Class
1349 - fixed the &_process_attribute method to be called
1350 by &add_attribute, so that the API is now correct
1352 * Moose::Meta::Method::Accessor
1353 - fixed bug when passing a list of values to
1354 an accessor would get (incorrectly) ignored.
1355 Thanks to Sartak for finding this ;)
1356 - added tests for this (Sartak again)
1358 * Moose::Meta::Method::Accessor
1359 Moose::Meta::Method::Constructor
1360 Moose::Meta::Attribute
1361 Moose::Meta::TypeConstraint
1362 Moose::Meta::TypeCoercion
1363 - lots of cleanup of such things as:
1365 - type constraint handling
1366 - error handling/messages
1367 (thanks to nothingmuch)
1369 * Moose::Meta::TypeConstraint::Parameterizable
1370 - added this module to support the refactor
1371 in Moose::Meta::TypeConstraint::Parameterized
1373 * Moose::Meta::TypeConstraint::Parameterized
1374 - refactored how these types are handled so they
1375 are more generic and not confined to ArrayRef
1379 - shortened some file names for better VMS support (RT #32381)
1381 0.33 Fri. Dec. 14, 2007
1382 !! Moose now loads 2 x faster !!
1383 !! with new Class::MOP 0.49 !!
1385 ++ new oose.pm module to make command line
1386 Moose-ness easier (see POD docs for more)
1388 * Moose::Meta::Class
1390 - several tweaks to take advantage of the
1391 new method map caching in Class::MOP
1393 * Moose::Meta::TypeConstraint::Parameterized
1394 - allow subtypes of ArrayRef and HashRef to
1395 be used as a container (sartak)
1396 - added tests for this
1397 - basic support for coercion to ArrayRef and
1398 HashRef for containers (sartak)
1399 - added tests for this
1401 * Moose::Meta::TypeCoercion
1402 - coercions will now create subtypes as needed
1403 so you can now add coercions to parameterized
1404 types without having to explictly define them
1405 - added tests for this
1407 * Moose::Meta::Method::Accessor
1408 - allow subclasses to decide whether we need
1409 to copy the value into a new variable (sartak)
1411 0.32 Tues. Dec. 4, 2007
1412 * Moose::Util::TypeConstraints
1413 - fixing how subtype aliases of unions work
1414 they should inherit the parent's coercion
1415 - added tests for this
1416 - you can now define multiple coercions on
1417 a single type at different times instead of
1418 having to do it all in one place
1419 - added tests for this
1421 * Moose::Meta::TypeConstraint
1422 - there is now a default constraint of sub { 1 }
1423 instead of Moose::Util::TypeConstraints setting
1426 * Moose::Meta::TypeCoercion
1427 * Moose::Meta::TypeCoercion::Union
1428 - added the &has_coercion_for_type and
1429 &add_type_coercions methods to support the
1430 new features above (although you cannot add
1431 more type coercions for Union types)
1433 0.31 Mon. Nov. 26, 2007
1434 * Moose::Meta::Attribute
1435 - made the +attr syntax handle extending types with
1436 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1437 now works if the original foo is an ArrayRef.
1438 - added tests for this.
1439 - delegation now works even if the attribute does not
1440 have a reader method using the get_read_method_ref
1441 method from Class::MOP::Attribute.
1442 - added tests for this
1443 - added docs for this
1445 * Moose::Util::TypeConstraints
1446 - passing no "additional attribute info" to
1447 &find_or_create_type_constraint will no longer
1448 attempt to create an __ANON__ type for you,
1449 instead it will just return undef.
1450 - added docs for this
1452 0.30 Fri. Nov. 23, 2007
1453 * Moose::Meta::Method::Constructor
1454 -builder related bug in inlined constructor. (groditi)
1456 * Moose::Meta::Method::Accessor
1457 - genereate unnecessary calls to predicates and refactor
1458 code generation for runtime speed (groditi)
1460 * Moose::Util::TypeConstraints
1461 - fix ClassName constraint to introspect symbol table (mst)
1462 - added more tests for this (mst)
1463 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1464 with work correctly.
1465 - added tests for this
1468 - adding the link to Recipie 11 (written by Sartak)
1469 - adding test for SYNOPSIS code
1472 - New tests for builder bug. Upon instantiation, if an
1473 attribute had a builder, no value and was not lazy the
1474 builder default was not getting run, oops. (groditi)
1476 0.29 Tues. Nov. 13, 2007
1477 * Moose::Meta::Attribute
1478 - Fix error message on missing builder method (groditi)
1480 * Moose::Meta::Method::Accessor
1481 - Fix error message on missing builder method (groditi)
1484 - Add test to check for the correct error message when
1485 builder method is missing (groditi)
1487 0.28 Tues. Nov. 13, 2007
1488 - 0.27 packaged incorrectly (groditi)
1490 0.27 Tues. Nov. 13, 2007
1491 * Moose::Meta::Attribute
1492 - Added support for the new builder option (groditi)
1493 - Added support for lazy_build option (groditi)
1494 - Changed slot initialization for predicate changes (groditi)
1496 * Moose::Meta::Method::Accessor
1497 - Added support for lazy_build option (groditi)
1498 - Fix inline methods to work with corrected predicate
1501 * Moose::Meta::Method::Constructor
1502 - Added support for lazy_build option (groditi)
1505 - tests for builder and lazy_build (groditi)
1507 * fixing some misc. bits in the docs that
1508 got mentioned on CPAN Forum & perlmonks
1511 - fixed how required methods are handled
1512 when they encounter overriden or modified
1513 methods from a class (thanks to confound).
1514 - added tests for this
1516 * Moose::Util::TypeConstraint
1517 - fixed the type notation parser so that
1518 the | always creates a union and so is
1519 no longer a valid type char (thanks to
1520 konobi, mugwump and #moose for working
1522 - added more tests for this
1524 0.26 Thurs. Sept. 27, 2007
1527 * Parameterized Types
1528 We now support parameterized collection types, such as:
1529 ArrayRef[Int] # array or integers
1530 HashRef[Object] # a hash with object values
1531 They can also be nested:
1532 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1533 And work with the type unions as well:
1534 ArrayRef[Int | Str] # array of integers of strings
1536 * Better Framework Extendability
1537 Moose.pm is now "extendable" such that it is now much
1538 easier to extend the framework and add your own keywords
1539 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1540 section of the Moose.pm docs.
1543 In an effort to begin documenting some of the various
1544 details of Moose as well as some common idioms, we have
1545 created Moose::Cookbook::Snacks as a place to find
1546 small (easily digestable) nuggets of Moose code.
1549 ~ Several doc updates/cleanup thanks to castaway ~
1551 - converted build system to use Module::Install instead of
1552 Module::Build (thanks to jrockway)
1555 - added all the meta classes to the immutable list and
1556 set it to inline the accessors
1557 - fix import to allow Sub::Exporter like { into => }
1558 and { into_level => } (perigrin)
1559 - exposed and documented init_meta() to allow better
1560 embedding and extending of Moose (perigrin)
1563 - complete re-organization of the test suite
1564 - added some new tests as well
1565 - finally re-enabled the Moose::POOP test since
1566 the new version of DBM::Deep now works again
1569 * Moose::Meta::Class
1570 - fixed very odd and very nasty recursion bug with
1572 - added tests for this (eilara)
1574 * Moose::Meta::Attribute
1575 Moose::Meta::Method::Constructor
1576 Moose::Meta::Method::Accessor
1577 - fixed issue with overload::Overloaded getting called
1578 on non-blessed items. (RT #29269)
1579 - added tests for this
1581 * Moose::Meta::Method::Accessor
1582 - fixed issue with generated accessor code making
1583 assumptions about hash based classes (thanks to dexter)
1585 * Moose::Coookbook::Snacks
1586 - these are bits of documentation, not quite as big as
1587 Recipes but which have no clear place in the module docs.
1588 So they are Snacks! (horray for castaway++)
1590 * Moose::Cookbook::Recipe4
1591 - updated it to use the new ArrayRef[MyType] construct
1592 - updated the accompanying test as well
1594 +++ Major Refactor of the Type Constraint system +++
1595 +++ with new features added as well +++
1597 * Moose::Util::TypeConstraint
1598 - no longer uses package variable to keep track of
1599 the type constraints, now uses the an instance of
1600 Moose::Meta::TypeConstraint::Registry to do it
1601 - added more sophisticated type notation parsing
1603 - added tests for this
1605 * Moose::Meta::TypeConstraint
1606 - some minor adjustments to make subclassing easier
1607 - added the package_defined_in attribute so that we
1608 can track where the type constraints are created
1610 * Moose::Meta::TypeConstraint::Union
1611 - this is now been refactored to be a subclass of
1612 Moose::Meta::TypeConstraint
1614 * Moose::Meta::TypeCoercion::Union
1615 - this has been added to service the newly refactored
1616 Moose::Meta::TypeConstraint::Union and is itself
1617 a subclass of Moose::Meta::TypeCoercion
1619 * Moose::Meta::TypeConstraint::Parameterized
1620 - added this module (taken from MooseX::AttributeHelpers)
1621 to help construct nested collection types
1622 - added tests for this
1624 * Moose::Meta::TypeConstraint::Registry
1625 - added this class to keep track of type constraints
1627 0.25 Mon. Aug. 13, 2007
1629 - Documentation update to reference Moose::Util::TypeConstraints
1630 under 'isa' in 'has' for how to define a new type
1631 (thanks to shlomif).
1633 * Moose::Meta::Attribute
1634 - required attributes now will no longer accept undef
1635 from the constructor, even if there is a default and lazy
1636 - added tests for this
1637 - default subroutines must return a value which passes the
1639 - added tests for this
1641 * Moose::Meta::Attribute
1642 * Moose::Meta::Method::Constructor
1643 * Moose::Meta::Method::Accessor
1644 - type-constraint tests now handle overloaded objects correctly
1645 in the error message
1646 - added tests for this (thanks to EvanCarroll)
1648 * Moose::Meta::TypeConstraint::Union
1649 - added (has_)hand_optimized_constraint to this class so that
1650 it behaves as the regular Moose::Meta::TypeConstraint does.
1653 - large refactoring of this code
1654 - added several more tests
1655 - tests for subtle conflict resolition issues
1656 added, but not currently running
1659 * Moose::Cookbook::Recipe7
1660 - added new recipe for augment/inner functionality
1662 - added test for this
1665 - a formal definition of roles (still in progress)
1668 - utilities for easier working with Moose classes
1669 - added tests for these
1672 - This contains Moose specific test functions
1673 - added tests for these
1675 0.24 Tues. July 3, 2007
1676 ~ Some doc updates/cleanup ~
1678 * Moose::Meta::Attribute
1679 - added support for roles to be given as parameters
1680 to the 'handles' option.
1681 - added tests and docs for this
1682 - the has '+foo' attribute form now accepts changes to
1683 the lazy option, and the addition of a handles option
1684 (but not changing the handles option)
1685 - added tests and docs for this
1688 - required methods are now fetched using find_method_by_name
1689 so that required methods can come from superclasses
1690 - adjusted tests for this
1692 0.23 Mon. June 18, 2007
1693 * Moose::Meta::Method::Constructor
1694 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1695 * Moose::Meta::Class
1696 - Modify make_immutable to work with the new Class::MOP immutable
1697 mechanism + POD + very basic test (groditi)
1698 * Moose::Meta::Attribute
1699 - Fix handles to use goto() so that caller() comes out properly on
1700 the other side (perigrin)
1702 0.22 Thurs. May 31, 2007
1703 * Moose::Util::TypeConstraints
1704 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1705 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1706 prototypes for functions
1707 - added the ClassName type constraint, this checks for strings
1708 which will respond true to ->isa(UNIVERSAL).
1709 - added tests and docs for this
1710 - subtyping just in name now works correctly by making the
1711 default for where be { 1 }
1712 - added test for this
1714 * Moose::Meta::Method::Accessor
1715 - coerce and lazy now work together correctly, thanks to
1716 merlyn for finding this bug
1717 - tests added for this
1718 - fix reader presedence bug in Moose::Meta::Attribute + tests
1721 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1722 a HASH-ref and missed. This produces better error messages then
1723 having it die cause undef is not a HASH.
1724 - added tests for this
1726 0.21 Thursday, May 2nd, 2007
1728 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1729 - modified unimport to remove super and inner along with the rest
1730 - altered unimport tests to handle this
1733 - altered super export to populate SUPER_SLOT
1735 * Moose::Meta::Class
1736 - altered augment and override modifier application to use *_SLOT
1737 - modified tests for these to unimport one test class each to test
1740 - fixed issue where custom attribute metaclasses
1741 where not handled correctly in roles
1742 - added tests for this
1744 * Moose::Meta::Class
1745 - fixed issue where extending metaclasses with
1746 roles would blow up. Thanks to Aankhen`` for
1747 finding this insidious error, and it's solution.
1749 ~~ lots of spelling and grammer fixes in the docs,
1750 many many thanks to rlb3 and Aankhen for these :)
1752 0.20 Friday, April 6th, 2007
1753 >> I messed up the SKIP logic in one test
1754 so this release is just to fix that.
1757 - 'has' now also accepts an ARRAY ref
1758 to create multiple attrs (see docs)
1759 (thanks to konobi for this)
1760 - added tests and docs
1762 0.19 Thurs. April 5th, 2007
1763 ~~ More documentation updates ~~
1765 * Moose::Util::TypeConstraints
1766 - 'type' now supports messages as well
1767 thanks to phaylon for finding this
1768 - added tests for this
1769 - added &list_all_type_constraints and
1770 &list_all_builtin_type_constraints
1771 functions to facilitate introspection.
1773 * Moose::Meta::Attribute
1774 - fixed regexp 'handles' declarations
1775 to build the list of delegated methods
1776 correctly (and not override important
1777 things like &new) thanks to ashleyb
1779 - added tests and docs for this
1780 - added the 'documentation' attributes
1781 so that you can actually document your
1782 attributes and inspect them through the
1784 - added tests and docs for this
1786 * Moose::Meta::Class
1787 - when loading custom attribute metaclasses
1788 it will first look in for the class in the
1789 Moose::Meta::Attribute::Custom::$name, and
1790 then default to just loading $name.
1791 - added tests and docs for this
1793 * Moose::Meta::TypeConstraint
1794 - type constraints now stringify to their names.
1795 - added test for this
1798 - added tests to assure we work with Module::Refresh
1799 - added stricter test skip logic in the Moose POOP
1800 test, ask Rob Kinyon why.
1801 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1803 0.18 Sat. March 10, 2007
1804 ~~ Many, many documentation updates ~~
1807 - We now use Class::MOP::load_class to
1809 - added tests to show types and subtypes
1810 working with Declare::Constraints::Simple
1811 and Test::Deep as constraint engines.
1814 !! You must have Class::MOP 0.37_001 !!
1815 !! for this developer release to work !!
1817 This release was primarily adding the immutable
1818 feature to Moose. An immutable class is one which
1819 you promise not to alter. When you set the class
1820 as immutable it will perform various bits of
1821 memoization and inline certain part of the code
1822 (constructors, destructors and accessors). This
1823 minimizes (and in some cases totally eliminates)
1824 one of Moose's biggest performance hits. This
1825 feature is not on by default, and is 100% optional.
1826 It has several configurable bits as well, so you
1827 can pick and choose to your specific needs.
1829 The changes involved in this were fairly wide and
1830 highly specific, but 100% backwards compatible, so
1831 I am not going to enumerate them here. If you are
1832 truely interested in what was changed, please do
1835 0.17 Tues. Nov. 14, 2006
1836 * Moose::Meta::Method::Accessor
1837 - bugfix for read-only accessors which
1838 are have a type constraint and lazy.
1839 Thanks to chansen for finding it.
1841 0.16 Tues. Nov. 14, 2006
1843 There are some speed improvements in this release,
1844 but they are only the begining, so stay tuned.
1847 - BUILDALL and DEMOLISHALL no longer get
1848 called unless they actually need to be.
1849 This gave us a signifigant speed boost
1850 for the cases when there is no BUILD or
1851 DEMOLISH method present.
1853 * Moose::Util::TypeConstraints
1854 * Moose::Meta::TypeConstraint
1855 - added an 'optimize_as' option to the
1856 type constraint, which allows for a
1857 hand optimized version of the type
1858 constraint to be used when possible.
1859 - Any internally created type constraints
1860 now provide an optimized version as well.
1862 0.15 Sun. Nov. 5, 2006
1864 This version of Moose *must* have Class::MOP 0.36 in order
1865 to work correctly. A number of small internal tweaks have
1866 been made in order to be compatible with that release.
1868 * Moose::Util::TypeConstraints
1869 - added &unimport so that you can clean out
1870 your class namespace of these exported
1873 * Moose::Meta::Class
1874 - fixed minor issue which occasionally
1875 comes up during global destruction
1877 - moved Moose::Meta::Method::Overriden into
1881 - moved Moose::Meta::Role::Method into
1884 * Moose::Meta::Attribute
1885 - changed how we do type checks so that
1886 we reduce the overall cost, but still
1889 - moved accessor generation methods to
1890 Moose::Meta::Method::Accessor to
1891 conform to the API changes from
1894 * Moose::Meta::TypeConstraint
1895 - changed how constraints are compiled
1896 so that we do less recursion and more
1897 iteration. This makes the type check
1899 - moved Moose::Meta::TypeConstraint::Union
1902 * Moose::Meta::Method::Accessor
1903 - created this from methods formerly found in
1904 Moose::Meta::Attribute
1906 * Moose::Meta::Role::Method
1907 - moved this from Moose::Meta::Role
1909 * Moose::Meta::Method::Overriden
1910 - moved this from Moose::Meta::Class
1912 * Moose::Meta::TypeConstraint::Union
1913 - moved this from Moose::Meta::TypeConstraint
1915 0.14 Mon. Oct. 9, 2006
1917 * Moose::Meta::Attribute
1918 - fixed lazy attributes which were not getting
1919 checked with the type constraint (thanks ashley)
1920 - added tests for this
1921 - removed the over-enthusiastic DWIMery of the
1922 automatic ArrayRef and HashRef defaults, it
1923 broke predicates in an ugly way.
1924 - removed tests for this
1926 0.13 Sat. Sept. 30, 2006
1928 This version of Moose *must* have Class::MOP 0.35 in order
1929 to work correctly. A number of small internal tweaks have
1930 been made in order to be compatible with that release.
1933 - Removed the use of UNIVERSAL::require to be a better
1934 symbol table citizen and remove a dependency
1935 (thanks Adam Kennedy)
1937 **~~ removed experimental & undocumented feature ~~**
1938 - commented out the 'method' and 'self' keywords, see the
1939 comments for more info.
1942 - added a FAQ and WTF files to document frequently
1943 asked questions and common problems
1945 * Moose::Util::TypeConstraints
1946 - added GlobRef and FileHandle type constraint
1947 - added tests for this
1949 * Moose::Meta::Attribute
1950 - if your attribute 'isa' ArrayRef of HashRef, and you have
1951 not explicitly set a default, then make the default DWIM.
1952 This will also work for subtypes of ArrayRef and HashRef
1954 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1955 - new test added for this (thanks to ashley)
1958 - added basic support for runtime role composition
1959 but this is still *highly experimental*, so feedback
1960 is much appreciated :)
1961 - added tests for this
1963 * Moose::Meta::TypeConstraint
1964 - the type constraint now handles the coercion process
1965 through delegation, this is to support the coercion
1968 * Moose::Meta::TypeConstraint::Union
1969 - it is now possible for coercions to be performed
1971 - added tests for this (thanks to konobi)
1973 * Moose::Meta::TypeCoercion
1974 - properly capturing error when type constraint
1978 - Scalar::Util 1.18 is bad on Win32, so temporarily
1979 only require version 1.17 for Win32 and cygwin.
1980 (thanks Adam Kennedy)
1982 0.12 Sat. Sept. 1, 2006
1984 - Recipe5 (subtypes & coercion) has been written
1987 - fixed "bad meta" error message to be more descriptive
1988 - fixed &unimport to not remove the &inner and &super
1989 keywords because we need to localize them.
1990 - fixed number of spelling/grammer issues, thanks Theory :)
1992 **~~ experimental & undocumented feature ~~**
1993 - added the method and self keywords, they are basically
1994 just sugar, and they may not stay around.
1997 - added &dump method to easily Data::Dumper
2000 * Moose::Meta::TypeConstraint
2001 - added the &is_a_type_of method to check both the current
2002 and the subtype of a method (similar to &isa with classes)
2005 - this is now a subclass of Class::MOP::Module, and no longer
2006 creates the _role_meta ugliness of before.
2007 - fixed tests to reflect this change
2009 0.11 Wed. July 12, 2006
2011 - added an &unimport method to remove all the keywords
2012 that Moose will import, simply add 'no Moose' to the
2013 bottom of your class file.
2016 - fixed some test failures caused by a forgotten test
2019 0.10 Thurs. July 6, 2006
2021 - improved error message when loading modules so
2022 it is less confusing when you load a role.
2023 - added &calculate_all_roles method to
2024 Moose::Meta::Class and Moose::Meta::Role
2027 This module has been tested against Class::MOP 0.30
2028 but it does not yet utilize the optimizations
2029 it makes available. Stay tuned for that ;)
2031 0.09_03 Fri. June 23, 2006
2032 ++ DEVELOPER RELEASE ++
2034 - 'use strict' and 'use warnings' are no longer
2035 needed in Moose classes, Moose itself will
2036 turn them on for you.
2037 - added tests for this
2038 - moved code from exported subs to private methods
2039 in Moose::Meta::Class
2042 - as with Moose, strict and warnings are
2043 automatically turned on for you.
2044 - added tests for this
2047 - now handles an edge case for override errors
2048 - added tests for this
2049 - added some more edge case tests
2051 0.09_02 Tues. May 16, 2006
2052 ++ DEVELOPER RELEASE ++
2054 - added prototypes to the exported subs
2058 - added prototypes to the exported subs
2061 * Moose::Util::TypeConstraints
2062 - cleaned up prototypes for the subs
2065 0.09_01 Fri. May 12, 2006
2066 ++ DEVELOPER RELEASE ++
2067 - This release works in combination with
2068 Class::MOP 0.29_01, it is a developer
2069 release because it uses the a new
2070 instance sub-protocol and a fairly
2071 complete Role implementation. It has
2072 not yet been optimized, so it slower
2073 the the previous CPAN version. This
2074 release also lacks good updated docs,
2075 the official release will have updated docs.
2078 - refactored the keyword exports
2079 - 'with' now checks Role validaity and
2080 accepts more than one Role at a time
2081 - 'extends' makes metaclass adjustments as
2082 needed to ensure metaclass compatibility
2085 - refactored the keyword exports
2086 - 'with' now checks Role validaity and
2087 accepts more than one Role at a time
2089 * Moose::Util::TypeConstraints
2090 - added the 'enum' keyword for simple
2091 string enumerations which can be used as
2093 - see example of usage in t/202_example.t
2096 - more careful checking of params to new()
2099 - much work done on the role composition
2100 - many new tests for conflict detection
2101 and composition edge cases
2102 - not enough documentation, I suggest
2103 looking at the tests
2105 * Moose::Meta::Instance
2106 - added new Instance metaclass to support
2107 the new Class::MOP instance protocol
2109 * Moose::Meta::Class
2110 - some small changes to support the new
2112 - some small additions to support Roles
2114 * Moose::Meta::Attribute
2115 - some improvements to the accessor generation code
2117 - some small changes to support the new
2119 - (still somewhat) experimental delegation support
2120 with the 'handles' option
2121 - added several tests for this
2122 - no docs for this yet
2124 0.05 Thurs. April 27, 2006
2126 - keywords are now exported with Sub::Exporter
2127 thanks to chansen for this commit
2128 - has keyword now takes a 'metaclass' option
2129 to support custom attribute meta-classes
2130 on a per-attribute basis
2131 - added tests for this
2132 - the 'has' keyword not accepts inherited slot
2133 specifications (has '+foo'). This is still an
2134 experimental feature and probably not finished
2135 see t/038_attribute_inherited_slot_specs.t for
2136 more details, or ask about it on #moose
2137 - added tests for this
2140 - keywords are now exported with Sub::Exporter
2142 * Moose::Utils::TypeConstraints
2143 - reorganized the type constraint hierarchy, thanks
2144 to nothingmuch and chansen for his help and advice
2146 - added some tests for this
2147 - keywords are now exported with Sub::Exporter
2148 thanks to chansen for this commit
2150 * Moose::Meta::Class
2151 - due to changes in Class::MOP, we had to change
2152 construct_instance (for the better)
2154 * Moose::Meta::Attribute
2155 - due to changes in Class::MOP, we had to add the
2156 initialize_instance_slot method (it's a good thing)
2158 * Moose::Meta::TypeConstraint
2159 - added type constraint unions
2160 - added tests for this
2161 - added the is_subtype_of predicate method
2162 - added tests for this
2164 0.04 Sun. April 16th, 2006
2166 - Roles can now consume other roles
2167 - added tests for this
2168 - Roles can specify required methods now with
2169 the requires() keyword
2170 - added tests for this
2173 - ripped out much of it's guts ,.. much cleaner now
2174 - added required methods and correct handling of
2175 them in apply() for both classes and roles
2176 - added tests for this
2177 - no longer adds a does() method to consuming classes
2178 it relys on the one in Moose::Object
2179 - added roles attribute and some methods to support
2180 roles consuming roles
2182 * Moose::Meta::Attribute
2183 - added support for triggers on attributes
2184 - added tests for this
2185 - added support for does option on an attribute
2186 - added tests for this
2188 * Moose::Meta::Class
2189 - added support for attribute triggers in the
2191 - added tests for this
2194 - Moose no longer creates a subtype for your class
2195 if a subtype of the same name already exists, this
2196 should DWIM in 99.9999% of all cases
2198 * Moose::Util::TypeConstraints
2199 - fixed bug where incorrect subtype conflicts were
2201 - added test for this
2204 - this class can now be extended with 'use base' if
2205 you need it, it properly loads the metaclass class now
2206 - added test for this
2208 0.03_02 Wed. April 12, 2006
2210 - you must now explictly use Moose::Util::TypeConstraints
2211 it no longer gets exported for you automatically
2214 - new() now accepts hash-refs as well as key/value lists
2215 - added does() method to check for Roles
2216 - added tests for this
2218 * Moose::Meta::Class
2219 - added roles attribute along with the add_role() and
2221 - added tests for this
2224 - now adds a does() method to consuming classes
2225 which tests the class's hierarchy for roles
2226 - added tests for this
2228 0.03_01 Mon. April 10, 2006
2230 - added new Role recipe (no content yet, only code)
2233 - added 'with' keyword for Role support
2234 - added test and docs for this
2235 - fixed subtype quoting bug
2236 - added test for this
2240 - added test and docs
2242 * Moose::Util::TypeConstraints
2243 - added the message keyword to add custom
2244 error messages to type constraints
2247 - the meta role to support Moose::Role
2248 - added tests and docs
2250 * Moose::Meta::Class
2251 - moved a number of things from Moose.pm
2252 to here, they should have been here
2255 * Moose::Meta::Attribute
2256 - moved the attribute option macros here
2257 instead of putting them in Moose.pm
2259 * Moose::Meta::TypeConstraint
2260 - added the message attributes and the
2262 - added tests and docs for this
2264 0.03 Thurs. March 30, 2006
2266 - added the Moose::Cookbook with 5 recipes,
2267 describing all the stuff Moose can do.
2270 - fixed an issue with &extends super class loading
2271 it now captures errors and deals with inline
2272 packages correctly (bug found by mst, solution
2274 - added super/override & inner/augment features
2275 - added tests and docs for these
2278 - BUILDALL now takes a reference of the %params
2279 that are passed to &new, and passes that to
2282 * Moose::Util::TypeConstraints
2283 - Type constraints now survive runtime reloading
2284 - added test for this
2286 * Moose::Meta::Class
2287 - fixed the way attribute defaults are handled
2288 during instance construction (bug found by chansen)
2290 * Moose::Meta::Attribute
2291 - read-only attributes now actually enforce their
2292 read-only-ness (this corrected in Class::MOP as
2295 0.02 Tues. March 21, 2006
2297 - many more tests, fixing some bugs and
2299 - &extends now loads the base module with
2301 - added UNIVERSAL::require to the
2304 - each new Moose class will also create
2305 and register a subtype of Object which
2306 correspond to the new Moose class.
2307 - the 'isa' option in &has now only
2308 accepts strings, and will DWIM in
2311 * Moose::Util::TypeConstraints
2312 - added type coercion features
2313 - added tests for this
2314 - added support for this in attributes
2315 and instance construction
2317 - type construction no longer creates a
2318 function, it registers the type instead.
2319 - added several functions to get the
2323 - BUILDALL and DEMOLISHALL were broken
2324 because of a mis-named hash key, Whoops :)
2326 * Moose::Meta::Attribute
2327 - adding support for coercion in the
2328 autogenerated accessors
2330 * Moose::Meta::Class
2331 - adding support for coercion in the
2332 instance construction
2334 * Moose::Meta::TypeConstraint
2335 * Moose::Meta::TypeCoercion
2336 - type constraints and coercions are now
2337 full fledges meta-objects
2339 0.01 Wed. March 15, 2006
2340 - Moooooooooooooooooose!!!