1 Revision history for Perl extension Moose
4 * Moose::Util::TypeConstraints
5 - Calling subtype with a name as the only argument is now an
6 exception. If you want an anonymous subtype do:
8 my $subtype = subtype as 'Foo';
10 * Moose::Cookbook::Meta::Recipe7
11 - A new recipe, creating a custom meta-instance class.
13 * Moose::Cookbook::Basics::Recipe5
14 - Fix various typos and mistakes. Includes a patch from Radu
17 * Moose::Cookbook::Basics::Recipe9
18 - Link to this recipe from Moose.pm's builder blurb
21 - When wrapping a function with a prototype, Moose::Exporter now
22 makes sure the wrapped function still has the same
23 prototype. Patch by Daisuke Maki.
25 * Moose::Meta::Attribute
26 - Allow a subclass to set lazy_build for an inherited
27 attribute. (Dieter Pearcey).
30 - Explicitly depend on Data::OptList. We already had this dependency
31 via Sub::Exporter, but since we're using it directly we're
32 better off with it listed. (Sartak)
34 * Moose::Meta::Method::Constructor
35 - Make it easier to subclass the inlining behaviour
37 0.72 Mon, February 23, 2009
39 * Moose::Meta::Method::Constructor
40 - A mutable class accepted Foo->new(undef) without complaint,
41 while an immutable class would blow up with an unhelpful
42 error. Now, in both cases we throw a helpful error
43 instead. Reported by doy.
45 0.71_01 Sun, February 22, 2009
47 - Hopefully fixed some POD errors in a few recipes that caused
48 them to display weird on search.cpan.org.
50 * Moose::Util::TypeConstraints
51 - Calling type or subtype without the sugar helpers (as, where,
52 message) is now deprecated.
53 - The subtype function tried hard to guess what you meant, but
54 often got it wrong. For example:
56 my $subtype = subtype as 'ArrayRef[Object]';
58 This caused an error in the past, but now works as you'd
62 - Make sure Moose.pm is loaded before calling
63 Moose->throw_error. This wasn't normally an issue, but could
64 bite you in weird cases.
66 0.71 Thu, February 19, 2009
67 * Moose::Cookbook::Basics::Recipe11
68 - A new recipe which demonstrates the use of BUILDARGS and
71 * Moose::Cookbook::Roles::Recipe3
72 - A new recipe, applying a role to an object instance. (Dave
76 - Allow overriding specific keywords from "also" packages. (doy)
79 - Replace hardcoded cookbook tests with Test::Inline to ensure
80 the tests match the actual code in the recipes. (Dave Rolsky)
83 - Working on the above turned up a number of little bugs in the
84 recipe code. (Dave Rolsky)
86 * Moose::Util::TypeConstraints::Optimized
87 - Just use Class::MOP for the optimized ClassName check. (Dave
90 0.70 Sat, February 14, 2009
91 * Moose::Util::TypeConstraints
92 - Added the RoleName type (stevan)
93 - added tests for this (stevan)
95 * Moose::Cookbook::Basics::Recipe3
96 - Updated the before qw[left right] sub to be a little more
97 defensive about what it accepts (stevan)
98 - added more tests to t/000_recipies/basics/003_binary_tree.t
102 - We now always call DEMOLISHALL, even if a class does not
103 define DEMOLISH. This makes sure that method modifiers on
104 DEMOLISHALL work as expected. (doy)
105 - added tests for this (EvanCarroll)
107 * Moose::Util::MetaRole
108 - Accept roles for the wrapped_method_metaclass (rafl)
109 - added tests for this (rafl)
111 * Moose::Meta::Attribute
112 - We no longer pass the meta-attribute object as a final
113 argument to triggers. This actually changed for inlined code a
114 while back, but the non-inlined version and the docs were
118 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
119 they require 0.11. (Dave Rolsky)
122 - Lots of small changes to the manual, cookbook, and
123 elsewhere. These were based on feedback from various
124 users, too many to list here. (Dave Rolsky)
126 0.69 Thu, February 12, 2009
128 - Make some keyword errors use throw_error instead of croak
129 since Moose::Exporter wraps keywords now (Sartak)
132 - Revised every recipe for style and clarity. Also moved some
133 documentation out of cookbook recipes and into Moose::Manual
134 pages. This work was funded as part of the Moose docs grant
135 from TPF. (Dave Rolsky)
137 * Moose::Meta::Method::Delegation
138 - If the attribute doing the delegation was not populated, the
139 error message did not specify the attribute name
142 0.68 Wed, February 4, 2009
144 - Many spelling, typo, and formatting fixes by daxim.
146 * Moose::Manual::Attributes
147 - The NAME section in the POD used "Attribute" so search.cpan
148 didn't resolve links from other documents properly.
150 * Moose::Meta::Method::Overriden
151 - Now properly spelled as Overridden. Thanks to daxim for
154 0.67 Tue, February 3, 2009
156 - Lots of little typo fixes and a few clarifications. Several
157 pages didn't have proper titles, and so weren't actually
158 visible on search.cpan.org. Thanks to hanekomu for a variety
159 of fixes and formatting improvements.
161 0.66 Tue, February 3, 2009
163 - This is a brand new, extensive manual for Moose. This aims to
164 provide a complete introduction to all of Moose's
165 features. This work was funded as part of the Moose docs grant
166 from TPF. (Dave Rolsky)
168 * Moose::Meta::Attribute
169 - Added a delegation_metaclass method to replace a hard-coded
170 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
172 * Moose::Util::TypeConstraints
173 - If you created a subtype and passed a parent that Moose didn't
174 know about, it simply ignored the parent. Now it automatically
175 creates the parent as a class type. This may not be what you
176 want, but is less broken than before. (Dave Rolsky)
178 * Moose::Util::TypeConstraints
179 - This module tried throw errors by calling Moose->throw_error,
180 but it did not ensure that Moose was loaded first. This could
181 cause very unhelpful errors when it tried to throw an error
182 before Moose was loaded. (Dave Rolsky)
184 * Moose::Util::TypeConstraints
185 - You could declare a name with subtype such as "Foo!Bar" that
186 would be allowed, but if you used it in a parameterized type
187 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
188 vetting on names created via the sugar functions, so that they
189 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
191 0.65 Thu, January 22, 2008
192 * Moose and Moose::Meta::Method::Overridden
193 - If an overridden method called super(), and then the
194 superclass's method (not overridden) _also_ called super(),
195 Moose went into an endless recursion loop. Test provided by
196 Chris Prather. (Dave Rolsky)
198 * Moose::Meta::TypeConstraint
199 - All methods are now documented. (gphat)
201 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
202 - Fixed some bogus failures that occurred because we tried to
203 validate filesystem paths in a very ad-hoc and
204 not-quite-correct way. (Dave Rolsky)
206 * Moose::Util::TypeConstraints
207 - Added maybe_type to exports. See docs for details. (rjbs)
210 - Added Moose::Util::TypeConstraints to the SEE ALSO
214 - Methods created via an attribute can now fulfill a "requires"
215 declaration for a role. (nothingmuch)
217 * Moose::Meta::Method::*
218 - Stack traces from inlined code will now report its line and
219 file as being in your class, as opposed to in Moose
222 0.64 Wed, December 31, 2008
223 * Moose::Meta::Method::Accessor
224 - Always inline predicate and clearer methods (Sartak)
226 * Moose::Meta::Attribute
227 - Support for parameterized traits (Sartak)
228 - verify_against_type_constraint method to avoid duplication
229 and enhance extensibility (Sartak)
232 - Tests (but no support yet) for parameterized traits (Sartak)
235 - Require Class::MOP 0.75+, which has the side effect of making
236 sure we work on Win32. (Dave Rolsky)
238 0.63 Mon, December 8, 2008
240 - Some small grammar tweaks and bug fixes in non-Moose example
243 0.62_02 Fri, December 5, 2008
244 * Moose::Meta::Role::Application::ToClass
245 - When a class does not provide all of a role's required
246 methods, the error thrown now mentions all of the missing
247 methods, as opposed to just the first one found. Requested by
248 Curtis Poe (RT #41119). (Dave Rolsky)
250 * Moose::Meta::Method::Constructor
251 - Moose will no longer inline a constructor for your class
252 unless it inherits its constructor from Moose::Object, and
253 will warn when it doesn't inline. If you want to force
254 inlining anyway, pass "replace_constructor => 1" to
255 make_immutable. Addresses RT #40968, reported by Jon
256 Swartz. (Dave Rolsky)
257 - The quoting of default values could be broken if the default
258 contained a single quote ('). Now we use quotemeta to escape
259 anything potentially dangerous in the defaults. (Dave Rolsky)
261 0.62_01 Wed, December 3, 2008
263 - use the method->execute API for BUILDALL
264 and DEMOLISHALL (Sartak)
266 * Moose::Util::TypeConstraints
267 - We now make all the type constraint meta classes immutable
268 before creating the default types provided by Moose. This
269 should make loading Moose a little faster. (Dave Rolsky)
271 0.62 Wed November 26, 2008
272 * Moose::Meta::Role::Application::ToClass
273 Moose::Meta::Role::Application::ToRole
274 - fixed issues where excluding and aliasing the
275 same methods for a single role did not work
276 right (worked just fine with multiple
278 - added test for this (stevan)
280 * Moose::Meta::Role::Application::RoleSummation
281 - fixed the error message when trying to compose
282 a role with a role it excludes (Sartak)
285 - Catch another case where recursion caused the value
286 of $CALLER to be stamped on (t0m)
287 - added test for this (t0m)
290 - Remove the make_immutable keyword, which has been
291 deprecated since April. It breaks metaclasses that
292 use Moose without no Moose (Sartak)
294 * Moose::Meta::Attribute
295 - Removing an attribute from a class now also removes delegation
296 (handles) methods installed for that attribute (t0m)
297 - added test for this (t0m)
299 * Moose::Meta::Method::Constructor
300 - An attribute with a default that looked like a number (but was
301 really a string) would accidentally be treated as a number
302 when the constructor was made immutable (perigrin)
303 - added test for this (perigrin)
306 - create method for constructing a role
308 - added test for this (Sartak)
309 - anonymous roles! (Sartak)
310 - added test for this (Sartak)
313 - more consistent error messages (Sartak)
315 * Moose::Cookbook::Roles::Recipe1
316 - attempt to explain why a role that just requires
317 methods is useful (Sartak)
319 0.61 Fri November 7, 2008
320 * Moose::Meta::Attribute
321 - When passing a role to handles, it will be loaded if necessary
325 - Method objects returned by get_method (and other methods)
326 Could end up being returned without an associated_metaclass
327 attribute. Removing get_method_map, which is provided by
328 Class::MOP::Class, fixed this. The Moose version did nothing
329 different from its parent except introduce a bug. (Dave Rolsky)
330 - added tests for this (jdv79)
333 - Added a $VERSION to all .pm files which didn't have one. Fixes
334 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
336 * Moose::Cookbook::Basics::Recipe4
337 * Moose::Cookbook::Basics::Recipe6
338 - These files had spaces on the first line of the SYNOPSIS, as
339 opposed to a totally empty line. According to RT #40432, this
340 confuses POD parsers. (Dave Rolsky)
342 0.60 Fri October 24, 2008
344 - Passing "-traits" when loading Moose caused the Moose.pm
345 exports to be broken. Reported by t0m. (Dave Rolsky)
346 - Tests for this bug. (t0m)
349 - Change resolve_metaclass alias to use the new
350 load_first_existing_class function. This makes it a lot
351 simpler, and also around 5 times faster. (t0m)
352 - Add caching to resolve_metaclass_alias, which gives an order
353 of magnitude speedup to things which repeatedly call the
354 Moose::Meta::Attribute->does method, notably MooseX::Storage
357 * Moose::Util::TypeConstraint
358 - Put back the changes for parameterized constraints that
359 shouldn't have been removed in 0.59. We still cannot parse
360 them, but MooseX modules can create them in some other
361 way. See the 0.58 changes for more details. (jnapiorkowski)
362 - Changed the way subtypes are created so that the job is
363 delegated to a type constraint parent. This clears up some
364 hardcoded checking and should allow correct subtypes of
365 Moose::Meta::Type::Constraint. Don't rely on this new API too
366 much (create_child_type) because it may go away in the
367 future. (jnapiorkowski)
369 * Moose::Meta::TypeConstraint::Union
370 - Type constraint names are sorted as strings, not numbers.
373 * Moose::Meta::TypeConstraint::Parameterizable
374 - New parameterize method. This can be used as a factory method
375 to make a new type constraint with a given parameterized
376 type. (jnapiorkowski)
377 - added tests (jnapiorkowski)
379 0.59 Tue October 14, 2008
381 - Add abridged documentation for builder/default/initializer/
382 predicate, and link to more details sections in
383 Class::MOP::Attribute. (t0m)
385 * Moose::Util::TypeConstraints
386 - removed prototypes from all but the &-based stuff (mst)
388 * Moose::Util::TypeConstraints
389 - Creating a anonymous subtype with both a constraint and a
390 message failed with a very unhelpful error, but should just
391 work. Reported by t0m. (Dave Rolsky)
394 - Some tests that used Test::Warn if it was available failed
395 with older versions of Test::Warn. Reported by Fayland. (Dave
397 - Test firing behavior of triggers in relation to builder/default/
399 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
400 kinds of supported type. (t0m)
403 - In create(), do not pass "roles" option to the superclass
404 - added related test that creates an anon metaclass with
407 * Moose::Meta::TypeConstraint::Class
408 * Moose::Meta::TypeConstraint::Role
409 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
410 other types (as per change in 0.55_02). (t0m)
412 * Moose::Meta::TypeConstraint::Registry
413 - Fix warning when dealing with unknown type names (t0m)
415 * Moose::Util::TypeConstraints
416 - Reverted changes from 0.58 related to handle parameterized
417 types. This caused random failures on BSD and Win32 systems,
418 apparently related to the regex engine. This means that Moose
419 can no longer parse structured type constraints like
420 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
421 supported in a slightly different way via MooseX::Types some
422 time in the future. (Dave Rolsky)
424 0.58 Sat September 20, 2008
425 !! This release has an incompatible change regarding !!
426 !! how roles add methods to a class !!
428 * Roles and role application
429 ! Roles now add methods by calling add_method, not
430 alias_method. They make sure to always provide a method
431 object, which will be cloned internally. This means that it is
432 now possible to track the source of a method provided by a
433 role, and even follow its history through intermediate roles.
435 This means that methods added by a role now show up when
436 looking at a class's method list/map. (Dave Rolsky)
439 - From this release on, we'll try to maintain a list of
440 conflicting modules, and warn you if you have one
441 installed. For example, this release conflicts with ...
442 - MooseX::Singleton <= 0.11
443 - MooseX::Params::Validate <= 0.05
446 In general, we try to not break backwards compatibility for
447 most Moose users, but MooseX modules and other code which
448 extends Moose's metaclasses is often affected by very small
449 changes in the Moose internals.
451 * Moose::Meta::Method::Delegation
452 * Moose::Meta::Attribute
453 - Delegation methods now have their own method class. (Dave
456 * Moose::Meta::TypeConstraint::Parameterizable
457 - Added a new method 'parameterize' which is basically a factory
458 for the containing constraint. This makes it easier to create
459 new types of parameterized constraints. (jnapiorkowski)
461 * Moose::Meta::TypeConstraint::Union
462 - Changed the way Union types canonicalize their names to follow
463 the normalized TC naming rules, which means we strip all
464 whitespace. (jnapiorkowski)
466 * Moose::Util::TypeConstraints
467 - Parameter and Union args are now sorted, this makes Int|Str
468 the same constraint as Str|Int. (jnapiorkowski)
469 - Changes to the way Union types are parsed to more correctly
470 stringify their names. (jnapiorkowski)
471 - When creating a parameterized type, we now use the new
472 parameterize method. (jnapiorkowski)
473 - Incoming type constraint strings are now normalized to remove
474 all whitespace differences. (jnapiorkowski)
475 - Changed the way we parse type constraint strings so that we now
476 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
477 constraints. This lays the foundation for more flexible type
478 constraint implementations.
480 * Tests and docs for all the above. (jnapiorkowski)
484 - Moose::Exporter will no longer remove a subroutine that the
485 exporting package re-exports. Moose re-exports the
486 Carp::confess function, among others. The reasoning is that we
487 cannot know whether you have also explicitly imported those
488 functions for your own use, so we err on the safe side and
489 always keep them. (Dave Rolsky)
490 - added tests for this (rafl)
493 - Changes to how we fix metaclass compatibility that are much
494 too complicated to go into. The summary is that Moose is much
495 less likely to complain about metaclass incompatibility
496 now. In particular, if two metaclasses differ because
497 Moose::Util::MetaRole was used on the two corresponding
498 classes, then the difference in roles is reconciled for the
499 subclass's metaclass. (Dave Rolsky)
500 - Squashed an warning in _process_attribute (thepler)
503 - throw exceptions (sooner) for invalid attribute names (thepler)
504 - added tests for this (thepler)
506 * Moose::Util::MetaRole
507 - If you explicitly set a constructor or destructor class for a
508 metaclass object, and then applied roles to the metaclass,
509 that explicitly set class would be lost and replaced with the
513 * Moose::Meta::Attribute
514 * Moose::Meta::Method
517 * Moose::Error::Default
518 * Moose::Error::Croak
519 * Moose::Error::Confess
520 - All instances of confess() changed to use overridable
521 C<throw_error> method. This method ultimately calls a class
522 constructor, and you can change the class being called. In
523 addition, errors now pass more information than just a string.
524 The default C<error_class> behaves like C<Carp::confess>, so
525 the behavior is not visibly different for end users.
527 0.57 Wed September 3, 2008
529 - A new bit of doc intended to introduce folks familiar with
530 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
533 - Shows examples of two classes, each done first with and then
534 without Moose. This makes a nice parallel to
535 Moose::Intro. (Dave Rolsky)
537 * Moose::Util::TypeConstraints
538 - Fixed a bug in find_or_parse_type_constraint so that it
539 accepts a Moose::Meta::TypeConstraint object as the parent
540 type, not just a name (jnapiorkowski)
541 - added tests (jnapiorkowski)
544 - If Sub::Name was not present, unimporting failed to actually
545 remove some sugar subs, causing test failures (Dave Rolsky)
547 0.56 Mon September 1, 2008
548 For those not following the series of dev releases, there are
549 several major changes in this release of Moose.
550 ! Moose::init_meta should now be called as a method. See the
553 - Major performance improvements by nothingmuch.
555 - New modules for extension writers, Moose::Exporter and
556 Moose::Util::MetaRole by Dave Rolsky.
558 - Lots of doc improvements and additions, especially in the
563 * Removed all references to the experimental-but-no-longer-needed
564 Moose::Meta::Role::Application::ToMetaclassInstance.
566 * Require Class::MOP 0.65.
568 0.55_04 Sat August 30, 2008
569 * Moose::Util::MetaRole
570 * Moose::Cookbook::Extending::Recipe2
571 - This simplifies the application of roles to any meta class, as
572 well as the base object class. Reimplemented metaclass traits
573 using this module. (Dave Rolsky)
575 * Moose::Cookbook::Extending::Recipe1
576 - This a new recipe, an overview of various ways to write Moose
577 extensions (Dave Rolsky)
579 * Moose::Cookbook::Extending::Recipe3
580 * Moose::Cookbook::Extending::Recipe4
581 - These used to be Extending::Recipe1 and Extending::Recipe2,
584 0.55_03 Fri August 29, 2008
585 * No changes from 0.55_02 except increasing the Class::MOP
586 dependency to 0.64_07.
588 0.55_02 Fri August 29, 2008
589 * Makefile.PL and Moose.pm
590 - explicitly require Perl 5.8.0+ (Dave Rolsky)
592 * Moose::Util::TypeConstraints
593 - Fix warnings from find_type_constraint if the type is not
596 * Moose::Meta::TypeConstraint
597 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
598 return false if the type you specify cannot be found in the
599 type registry, rather than throwing an unhelpful and
600 coincidental exception. (t0m).
601 - added docs & test for this (t0m)
603 * Moose::Meta::TypeConstraint::Registry
604 - add_type_constraint now throws an exception if a parameter is
606 - added docs & test for this (t0m)
608 * Moose::Cookbook::FAQ
609 - Added a faq entry on the difference between "role" and "trait"
613 - Fixed a bug that caused role composition to not see a required
614 method when that method was provided by another role being
615 composed at the same time. (Dave Rolsky)
616 - test and bug finding (tokuhirom)
618 0.55_01 Wed August 20, 2008
620 !! Calling Moose::init_meta as a function is now !!
621 !! deprecated. Please see the Moose.pm docs for details. !!
623 * Moose::Meta::Method::Constructor
624 - Fix inlined constructor so that values produced by default
625 or builder methods are coerced as required. (t0m)
626 - added test for this (t0m)
628 * Moose::Meta::Attribute
629 - A lazy attribute with a default or builder did not attempt to
630 coerce the default value. The immutable code _did_
632 - added test for this (t0m)
635 - This is a new helper module for writing "Moose-alike"
636 modules. This should make the lives of MooseX module authors
637 much easier. (Dave Rolsky)
640 * Moose::Cookbook::Meta::Recipe5
641 - Implemented metaclass traits (and wrote a recipe for it):
643 use Moose -traits => 'Foo'
645 This should make writing small Moose extensions a little
648 * Moose::Cookbook::Basics::Recipe1
649 - Removed any examples of direct hashref access, and applied an
650 editorial axe to reduce verbosity. (Dave Rolsky)
652 * Moose::Cookbook::Basics::Recipe1
653 - Also applied an editorial axe here. (Dave Rolsky)
656 * Moose::Cookbook::Extending::Recipe1
657 * Moose::Cookbook::Extending::Recipe2
658 - Rewrote extending and embedding moose documentation and
659 recipes to use Moose::Exporter (Dave Rolsky)
663 - These two modules now warn when you load them from the main
664 package "main" package, because we will not export sugar to
665 main. Previously it just did nothing. (Dave Rolsky)
668 - Now provide an init_meta method just like Moose.pm, and you
669 can call this to provide an alternate role metaclass. (Dave
670 Rolsky and nothingmuch)
671 - get_method_map now respects the package cache flag (nothingmuch)
674 - Two new methods - add_method and wrap_method_body
678 - Optimizations including allowing constructors to accept hash
679 refs, making many more classes immutable, and making
680 constructors immutable. (nothingmuch)
682 0.55 Sun August 3, 2008
683 * Moose::Meta::Attribute
684 - breaking down the way 'handles' methods are
685 created so that the process can be more easily
686 overridden by subclasses (stevan)
688 * Moose::Meta::TypeConstraint
689 - fixing what is passed into a ->message with
690 the type constraints (RT #37569)
691 - added tests for this (Charles Alderman)
693 * Moose::Util::TypeConstraints
694 - fix coerce to accept anon types like subtype can (mst)
697 - reorganized the recipes into sections - Basics, Roles, Meta,
698 Extending - and wrote abstracts for each section (Dave Rolsky)
700 * Moose::Cookbook::Basics::Recipe10
701 - A new recipe that demonstrates operator overloading
702 in combination with Moose. (bluefeet)
704 * Moose::Cookbook::Meta::Recipe1
705 - an introduction to what meta is and why you'd want to make
706 your own metaclass extensions (Dave Rolsky)
708 * Moose::Cookbook::Meta::Recipe4
709 - a very simple metaclass example (Dave Rolsky)
711 * Moose::Cookbook::Extending::Recipe1
712 - how to write a Moose-alike module to use your own object base
715 * Moose::Cookbook::Extending::Recipe2
716 - how to write modules with an API just like C<Moose.pm> (Dave
720 - Tons of fixes, both syntactical and grammatical (Dave
721 Rolsky, Paul Fenwick)
723 0.54 Thurs. July 3, 2008
724 ... this is not my day today ...
726 * Moose::Meta::Attribute
727 - fixed legal_options_for_inheritance such that
728 clone_and_inherit options still works for
729 Class::MOP::Attribute objects and therefore
730 does not break MooseX::AttributeHelpers
733 0.53 Thurs. July 3, 2008
734 * Whoops, I guess I should run 'make manifest' before
735 actually releasing the module. No actual changes
736 in this release, except the fact that it includes
737 the changes that I didn't include in the last
740 0.52 Thurs. July 3, 2008
742 - added "FEATURE REQUESTS" section to the Moose docs
743 to properly direct people (stevan) (RT #34333)
744 - making 'extends' croak if it is passed a Role since
745 this is not ever something you want to do
746 (fixed by stevan, found by obra)
747 - added tests for this (stevan)
750 - adding support for DOES (as in UNIVERSAL::DOES)
752 - added test for this
754 * Moose::Meta::Attribute
755 - added legal_options_for_inheritance (wreis)
756 - added tests for this (wreis)
758 * Moose::Cookbook::Snacks::*
759 - removed some of the unfinished snacks that should
760 not have been released yet. Added some more examples
761 to the 'Keywords' snack. (stevan)
763 * Moose::Cookbook::Style
764 - added general Moose "style guide" of sorts to the
765 cookbook (nothingmuch) (RT #34335)
768 - added more BUILDARGS tests (stevan)
770 0.51 Thurs. Jun 26, 2008
772 - add unimport so "no Moose::Role" actually does
775 * Moose::Meta::Role::Application::ToRole
776 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
777 order to provide its own implementation, that method still got
778 added to the list of required methods for consumers of
779 RoleB. Now an aliased method is only added to the list of
780 required methods if the role doing the aliasing does not
781 provide its own implementation. See Recipe 11 for an example
782 of all this. (Dave Rolsky)
783 - added tests for this
785 * Moose::Meta::Method::Constructor
786 - when a single argument that wasn't a hashref was provided to
787 an immutabilized constructor, the error message was very
788 unhelpful, as opposed to the non-immutable error. Reported by
790 - added test for this (Dave Rolsky)
792 * Moose::Meta::Attribute
793 - added support for meta_attr->does("ShortAlias") (sartak)
794 - added tests for this (sartak)
795 - moved the bulk of the `handles` handling to the new
796 install_delegation method (Stevan)
799 - Added BUILDARGS, a new step in new()
801 * Moose::Meta::Role::Application::RoleSummation
802 - fix typos no one ever sees (sartak)
804 * Moose::Util::TypeConstraints
805 * Moose::Meta::TypeConstraint
806 * Moose::Meta::TypeCoercion
807 - Attempt to work around the ??{ } vs. threads issue
809 - Some null_constraint optimizations
811 0.50 Thurs. Jun 11, 2008
812 - Fixed a version number issue by bumping all modules
815 0.49 Thurs. Jun 11, 2008
816 !! This version now approx. 20-25% !!
817 !! faster with new Class::MOP 0.59 !!
819 * Moose::Meta::Attribute
820 - fixed how the is => (ro|rw) works with
821 custom defined reader, writer and accessor
823 - added docs for this (TODO).
824 - added tests for this (Thanks to Penfold)
825 - added the custom attribute alias for regular
826 Moose attributes which is "Moose"
827 - fix builder and default both being used
832 Moose::Meta::Attribute
834 Moose::Meta::Role::Composite
835 Moose::Util::TypeConstraints
836 - switched usage of reftype to ref because
840 - changing add_package_symbol to use the new
844 - fixed how DEMOLISHALL is called so that it
845 can be overrided in subclasses (thanks to Sartak)
846 - added test for this (thanks to Sartak)
848 * Moose::Util::TypeConstraints
849 - move the ClassName type check code to
850 Class::MOP::is_class_loaded (thanks to Sartak)
852 * Moose::Cookbook::Recipe11
853 - add tests for this (thanks to tokuhirom)
855 0.48 Thurs. May 29, 2008
856 (early morning release engineering)--
858 - fixing the version in Moose::Meta::Method::Destructor
859 which was causing the indexer to choke
861 0.47 Thurs. May 29, 2008
862 (late night release engineering)--
864 - fixing the version is META.yml, no functional
865 changes in this release
867 0.46 Wed. May 28, 2008
868 !! This version now approx. 20-25% !!
869 !! faster with new Class::MOP 0.57 !!
872 - some optimizations of the &initialize method
873 since it is called so often by &meta
877 - now use the get_all_package_symbols from the
878 updated Class::MOP, test suite is now 10 seconds
881 * Moose::Meta::Method::Destructor
882 - is_needed can now also be called as a class
883 method for immutablization to check if the
884 destructor object even needs to be created
887 * Moose::Meta::Method::Destructor
888 Moose::Meta::Method::Constructor
889 - added more descriptive error message to help
890 keep people from wasting time tracking an error
891 that is easily fixed by upgrading.
893 0.45 Saturday, May 24, 2008
895 - Because of work in Class::MOP 0.57, all
896 XS based functionality is now optional
897 and a Pure Perl version is supplied
898 - the CLASS_MOP_NO_XS environment variable
899 can now be used to force non-XS versions
901 - several of the packages have been tweaked
902 to take care of this, mostly we added
903 support for the package_name and name
904 variables in all the Method metaclasses
905 - before/around/after method modifiers now
906 support regexp matching of names
907 (thanks to Takatoshi Kitano)
908 - tests added for this
909 - NOTE: this only works for classes, it
910 is currently not supported in roles,
911 but, ... patches welcome
912 - All usage of Carp::confess have been replaced
913 by Carp::croak in the "keyword" functions since
914 the stack trace is usually not helpful
917 - All usage of Carp::confess have been replaced
918 by Carp::croak in the "keyword" functions since
919 the stack trace is usually not helpful
920 - The 'has' keyword for roles now accepts the
921 same array ref form that Moose.pm does
922 (has [qw/foo bar/] => (is => 'rw', ...))
923 - added test for this
925 * Moose::Meta::Attribute
926 - trigger on a ro-attribute is no longer an
927 error, as it's useful to trigger off of the
931 - added same 'add_package_symbol' fix as in
935 - does_role now handles non-Moose classes
937 - added tests for this
938 - added the 'add_method_modifier' function
939 (thanks to Takatoshi Kitano)
941 * Moose::Util::TypeConstraints
942 - subtypes of parameterizable types now are
943 themselves parameterizable types
945 * Moose::Meta::Method::Constructor
946 - fixed bug where trigger was not being
947 called by the inlined immutable
949 - added test for this (thanks to Caelum)
951 * Moose::Meta::Role::Application::ToInstance
952 - now uses the metaclass of the instance
953 (if possible) to create the anon-class
954 (thanks Jonathan Rockway)
956 * Moose::Cookbook::Recipe22
957 - added the meta-attribute trait recipe
961 - fixed hash-ordering test bug that was
962 causing occasional cpantester failures
963 - renamed the t/000_recipe/*.t tests to be
964 more descriptive (thanks to Sartak)
966 0.44 Sat. May 10, 2008
968 - made make_immutable warning cluck to
969 show where the error is (thanks mst)
972 - BUILDALL and DEMOLISHALL now call
973 ->body when looping through the
974 methods, to avoid the overloaded
976 - fixed issue where DEMOLISHALL was
977 eating the $@ values, and so not
978 working correctly, it still kind of
979 eats them, but so does vanilla perl
980 - added tests for this
982 * Moose::Cookbook::Recipe7
983 - added new recipe for immutable
984 functionality (thanks Dave Rolsky)
986 * Moose::Cookbook::Recipe9
987 - added new recipe for builder and
988 lazy_build (thanks Dave Rolsky)
990 * Moose::Cookbook::Recipe11
991 - added new recipe for method aliasing
992 and exclusion with Roles (thanks Dave Rolsky)
995 - fixed Win32 test failure (thanks spicyjack)
997 ~ removed Build.PL and Module::Build compat
998 since Module::Install has done that.
1000 0.43 Wed. April, 30, 2008
1002 drink more coffee before
1003 doing release engineering
1005 - whoops, forgot to do the smolder tests,
1006 and we broke some of the custom meta-attr
1007 modules. This fixes that.
1009 0.42 Mon. April 28, 2008
1010 - some bad tests slipped by, nothing else
1011 changed in this release (cpantesters++)
1013 - upped the Class::MOP dependency to 0.55
1014 since we have tests which need the C3
1017 0.41 Mon. April 28, 2008
1018 ~~ numerous documentation updates ~~
1020 - Changed all usage of die to Carp::croak for better
1021 error reporting (initial patch by Tod Hagan)
1023 ** IMPORTANT NOTE **
1024 - the make_immutable keyword is now deprecated, don't
1025 use it in any new code and please fix your old code
1026 as well. There will be 2 releases, and then it will
1032 - refactored the way inner and super work to avoid
1033 any method/@ISA cache penalty (nothingmuch)
1035 * Moose::Meta::Class
1036 - fixing &new_object to make sure trigger gets the
1037 coerced value (spotted by Charles Alderman on the
1039 - added test for this
1041 * Moose::Meta::Method::Constructor
1042 - immutable classes which had non-lazy attributes were calling
1043 the default generating sub twice in the constructor. (bug
1044 found by Jesse Luehrs, fixed by Dave Rolsky)
1045 - added tests for this (Dave Rolsky)
1046 - fix typo in initialize_body method (nothingmuch)
1048 * Moose::Meta::Method::Destructor
1049 - fix typo in initialize_body method (nothingmuch)
1051 * Moose::Meta::Method::Overriden
1052 Moose::Meta::Method::Augmented
1053 - moved the logic for these into their own
1054 classes (nothingmuch)
1056 * Moose::Meta::Attribute
1057 - inherited attributes may now be extended without
1058 restriction on the type ('isa', 'does') (Sartak)
1059 - added tests for this (Sartak)
1060 - when an attribute property is malformed (such as lazy without
1061 a default), give the name of the attribute in the error
1063 - added the &applied_traits and &has_applied_traits methods
1064 to allow introspection of traits
1065 - added tests for this
1066 - moved 'trait' and 'metaclass' argument handling to here from
1068 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
1069 '+foo' syntax) (nothingmuch)
1070 - added tests for this (t0m)
1073 - localize $@ inside DEMOLISHALL to avoid it
1074 eating $@ (found by Ernesto)
1075 - added test for this (thanks to Ernesto)
1077 * Moose::Util::TypeConstraints
1078 - &find_type_constraint now DWIMs when given an
1079 type constraint object or name (nothingmuch)
1080 - &find_or_create_type_constraint superseded with a number of more
1082 - find_or_create_{isa,does}_type_constraint
1083 - find_or_parse_type_constraint
1085 * Moose::Meta::TypeConstraint
1086 Moose::Meta::TypeConstraint::Class
1087 Moose::Meta::TypeConstraint::Role
1088 Moose::Meta::TypeConstraint::Enum
1089 Moose::Meta::TypeConstraint::Union
1090 Moose::Meta::TypeConstraint::Parameterized
1091 - added the &equals method for comparing two type
1092 constraints (nothingmuch)
1093 - added tests for this (nothingmuch)
1095 * Moose::Meta::TypeConstraint
1096 - add the &parents method, which is just an alias to &parent.
1097 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1099 * Moose::Meta::TypeConstraint::Class
1100 - added the class attribute for introspection purposes
1102 - added tests for this
1104 * Moose::Meta::TypeConstraint::Enum
1105 Moose::Meta::TypeConstraint::Role
1106 - broke these out into their own classes (nothingmuch)
1108 * Moose::Cookbook::Recipe*
1109 - fixed references to test file locations in the POD
1110 and updated up some text for new Moose features
1114 - Added &resolve_metaclass_alias, a helper function for finding an actual
1115 class for a short name (e.g. in the traits list)
1117 0.40 Fri. March 14, 2008
1118 - I hate Pod::Coverage
1120 0.39 Fri. March 14, 2008
1122 - documenting the use of '+name' with attributes
1123 that come from recently composed roles. It makes
1124 sense, people are using it, and so why not just
1125 officially support it.
1126 - fixing the 'extends' keyword so that it will not
1127 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1130 - added the perl -Moose=+Class::Name feature to allow
1131 monkeypatching of classes in one liners
1134 - fixing the 'apply_all_roles' keyword so that it will not
1135 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1137 * Moose::Meta::Class
1138 - added ->create method which now supports roles (thanks to jrockway)
1139 - added tests for this
1140 - added ->create_anon_class which now supports roles and caching of
1141 the results (thanks to jrockway)
1142 - added tests for this
1143 - made ->does_role a little more forgiving when it is
1144 checking a Class::MOP era metaclasses.
1146 * Moose::Meta::Role::Application::ToInstance
1147 - it is now possible to pass extra params to be used when
1148 a role is applied to an the instance (rebless_params)
1149 - added tests for this
1151 * Moose::Util::TypeConstraints
1152 - class_type now accepts an optional second argument for a
1153 custom message. POD anotated accordingly (groditi)
1154 - added tests for this
1155 - it is now possible to make anon-enums by passing 'enum' an
1156 ARRAY ref instead of the $name => @values. Everything else
1158 - added tests for this
1161 - making test for using '+name' on attributes consumed
1162 from a role, it works and makes sense too.
1164 * Moose::Meta::Attribute
1165 - fix handles so that it doesn't return nothing
1166 when the method cannot be found, not sure why
1167 it ever did this originally, this means we now
1168 have slightly better support for AUTOLOADed
1170 - added more delegation tests
1171 - adding ->does method to this so as to better
1172 support traits and their introspection.
1173 - added tests for this
1176 - localizing the Data::Dumper configurations so
1177 that it does not pollute others (RT #33509)
1178 - made ->does a little more forgiving when it is
1179 passed Class::MOP era metaclasses.
1181 0.38 Fri. Feb. 15, 2008
1182 * Moose::Meta::Attribute
1183 - fixed initializer to correctly do
1184 type checking and coercion in the
1186 - added tests for this
1189 - fixed some finicky tests (thanks to konobi)
1191 0.37 Thurs. Feb. 14, 2008
1193 - fixed some details in Moose::init_meta
1194 and its superclass handling (thanks thepler)
1195 - added tests for this (thanks thepler)
1196 - 'has' now dies if you don't pass in name
1198 - added the 'make_immutable' keyword as a shortcut
1201 * Moose::Meta::Class
1202 Moose::Meta::Method::Constructor
1203 Moose::Meta::Attribute
1204 - making (init_arg => undef) work here too
1205 (thanks to nothingmuch)
1207 * Moose::Meta::Attribute
1208 Moose::Meta::Method::Constructor
1209 Moose::Meta::Method::Accessor
1210 - make lazy attributes respect attr initializers (rjbs)
1211 - added tests for this
1213 * Moose::Util::TypeConstraints
1214 Moose::Util::TypeConstraints::OptimizedConstraints
1215 Moose::Meta::TypeConstraints
1216 Moose::Meta::Attribute
1217 Moose::Meta::Method::Constructor
1218 Moose::Meta::Method::Accessor
1219 - making type errors use the
1220 assigned message (thanks to Sartak)
1221 - added tests for this
1223 * Moose::Meta::Method::Destructor
1224 - making sure DESTROY gets inlined properly
1225 with successive DEMOLISH calls (thanks to manito)
1227 * Moose::Meta::Attribute
1228 Moose::Meta::Method::Accessor
1229 - fixed handling of undef with type constraints
1231 - added tests for this
1234 - added &get_all_init_args and &get_all_attribute_values
1235 (thanks to Sartak and nothingmuch)
1237 0.36 Sat. Jan. 26, 2008
1239 Moose::Meta::Attribute
1240 - role type tests now support when roles are
1241 applied to non-Moose classes (found by ash)
1242 - added tests for this (thanks to ash)
1243 - couple extra tests to boost code coverage
1245 * Moose::Meta::Method::Constructor
1246 - improved fix for handling Class::MOP attributes
1247 - added test for this
1249 * Moose::Meta::Class
1250 - handled the add_attribute($attribute_meta_object)
1252 - added test for this
1254 0.35 Tues. Jan. 22, 2008
1255 * Moose::Meta::Method::Constructor
1256 - fix to make sure even Class::MOP attributes
1257 are handled correctly (Thanks to Dave Rolsky)
1258 - added test for this (also Dave Rolsky)
1260 * Moose::Meta::Class
1261 - improved error message on _apply_all_roles,
1262 you should now use Moose::Util::apply_all_roles
1263 and you shouldnt have been using a _ prefixed
1264 method in the first place ;)
1266 0.34 Mon. Jan. 21, 2008
1267 ~~~ more misc. doc. fixes ~~~
1268 ~~ updated copyright dates ~~
1270 Moose is now a postmodern object system :)
1271 - (see the POD for details)
1273 * <<Role System Refactoring>>
1274 - this release contains a major reworking and
1275 cleanup of the role system
1276 - 100% backwards compat.
1277 - Role application now restructured into seperate
1278 classes based on type of applicants
1279 - Role summation (combining of more than one role)
1280 is much cleaner and anon-classes are no longer
1281 used in this process
1282 - new Composite role metaclass
1283 - runtime application of roles to instances
1284 is now more efficient and re-uses generated
1285 classes when applicable
1287 * <<New Role composition features>>
1288 - methods can now be excluded from a given role
1290 - methods can now be aliased to another name (and
1291 still retain the original as well)
1293 * Moose::Util::TypeConstraints::OptimizedConstraints
1294 - added this module (see above)
1296 * Moose::Meta::Class
1297 - fixed the &_process_attribute method to be called
1298 by &add_attribute, so that the API is now correct
1300 * Moose::Meta::Method::Accessor
1301 - fixed bug when passing a list of values to
1302 an accessor would get (incorrectly) ignored.
1303 Thanks to Sartak for finding this ;)
1304 - added tests for this (Sartak again)
1306 * Moose::Meta::Method::Accessor
1307 Moose::Meta::Method::Constructor
1308 Moose::Meta::Attribute
1309 Moose::Meta::TypeConstraint
1310 Moose::Meta::TypeCoercion
1311 - lots of cleanup of such things as:
1313 - type constraint handling
1314 - error handling/messages
1315 (thanks to nothingmuch)
1317 * Moose::Meta::TypeConstraint::Parameterizable
1318 - added this module to support the refactor
1319 in Moose::Meta::TypeConstraint::Parameterized
1321 * Moose::Meta::TypeConstraint::Parameterized
1322 - refactored how these types are handled so they
1323 are more generic and not confined to ArrayRef
1327 - shortened some file names for better VMS support (RT #32381)
1329 0.33 Fri. Dec. 14, 2007
1330 !! Moose now loads 2 x faster !!
1331 !! with new Class::MOP 0.49 !!
1333 ++ new oose.pm module to make command line
1334 Moose-ness easier (see POD docs for more)
1336 * Moose::Meta::Class
1338 - several tweaks to take advantage of the
1339 new method map caching in Class::MOP
1341 * Moose::Meta::TypeConstraint::Parameterized
1342 - allow subtypes of ArrayRef and HashRef to
1343 be used as a container (sartak)
1344 - added tests for this
1345 - basic support for coercion to ArrayRef and
1346 HashRef for containers (sartak)
1347 - added tests for this
1349 * Moose::Meta::TypeCoercion
1350 - coercions will now create subtypes as needed
1351 so you can now add coercions to parameterized
1352 types without having to explictly define them
1353 - added tests for this
1355 * Moose::Meta::Method::Accessor
1356 - allow subclasses to decide whether we need
1357 to copy the value into a new variable (sartak)
1359 0.32 Tues. Dec. 4, 2007
1360 * Moose::Util::TypeConstraints
1361 - fixing how subtype aliases of unions work
1362 they should inherit the parent's coercion
1363 - added tests for this
1364 - you can now define multiple coercions on
1365 a single type at different times instead of
1366 having to do it all in one place
1367 - added tests for this
1369 * Moose::Meta::TypeConstraint
1370 - there is now a default constraint of sub { 1 }
1371 instead of Moose::Util::TypeConstraints setting
1374 * Moose::Meta::TypeCoercion
1375 * Moose::Meta::TypeCoercion::Union
1376 - added the &has_coercion_for_type and
1377 &add_type_coercions methods to support the
1378 new features above (although you cannot add
1379 more type coercions for Union types)
1381 0.31 Mon. Nov. 26, 2007
1382 * Moose::Meta::Attribute
1383 - made the +attr syntax handle extending types with
1384 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1385 now works if the original foo is an ArrayRef.
1386 - added tests for this.
1387 - delegation now works even if the attribute does not
1388 have a reader method using the get_read_method_ref
1389 method from Class::MOP::Attribute.
1390 - added tests for this
1391 - added docs for this
1393 * Moose::Util::TypeConstraints
1394 - passing no "additional attribute info" to
1395 &find_or_create_type_constraint will no longer
1396 attempt to create an __ANON__ type for you,
1397 instead it will just return undef.
1398 - added docs for this
1400 0.30 Fri. Nov. 23, 2007
1401 * Moose::Meta::Method::Constructor
1402 -builder related bug in inlined constructor. (groditi)
1404 * Moose::Meta::Method::Accessor
1405 - genereate unnecessary calls to predicates and refactor
1406 code generation for runtime speed (groditi)
1408 * Moose::Util::TypeConstraints
1409 - fix ClassName constraint to introspect symbol table (mst)
1410 - added more tests for this (mst)
1411 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1412 with work correctly.
1413 - added tests for this
1416 - adding the link to Recipie 11 (written by Sartak)
1417 - adding test for SYNOPSIS code
1420 - New tests for builder bug. Upon instantiation, if an
1421 attribute had a builder, no value and was not lazy the
1422 builder default was not getting run, oops. (groditi)
1424 0.29 Tues. Nov. 13, 2007
1425 * Moose::Meta::Attribute
1426 - Fix error message on missing builder method (groditi)
1428 * Moose::Meta::Method::Accessor
1429 - Fix error message on missing builder method (groditi)
1432 - Add test to check for the correct error message when
1433 builder method is missing (groditi)
1435 0.28 Tues. Nov. 13, 2007
1436 - 0.27 packaged incorrectly (groditi)
1438 0.27 Tues. Nov. 13, 2007
1439 * Moose::Meta::Attribute
1440 - Added support for the new builder option (groditi)
1441 - Added support for lazy_build option (groditi)
1442 - Changed slot initialization for predicate changes (groditi)
1444 * Moose::Meta::Method::Accessor
1445 - Added support for lazy_build option (groditi)
1446 - Fix inline methods to work with corrected predicate
1449 * Moose::Meta::Method::Constructor
1450 - Added support for lazy_build option (groditi)
1453 - tests for builder and lazy_build (groditi)
1455 * fixing some misc. bits in the docs that
1456 got mentioned on CPAN Forum & perlmonks
1459 - fixed how required methods are handled
1460 when they encounter overriden or modified
1461 methods from a class (thanks to confound).
1462 - added tests for this
1464 * Moose::Util::TypeConstraint
1465 - fixed the type notation parser so that
1466 the | always creates a union and so is
1467 no longer a valid type char (thanks to
1468 konobi, mugwump and #moose for working
1470 - added more tests for this
1472 0.26 Thurs. Sept. 27, 2007
1475 * Parameterized Types
1476 We now support parameterized collection types, such as:
1477 ArrayRef[Int] # array or integers
1478 HashRef[Object] # a hash with object values
1479 They can also be nested:
1480 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1481 And work with the type unions as well:
1482 ArrayRef[Int | Str] # array of integers of strings
1484 * Better Framework Extendability
1485 Moose.pm is now "extendable" such that it is now much
1486 easier to extend the framework and add your own keywords
1487 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1488 section of the Moose.pm docs.
1491 In an effort to begin documenting some of the various
1492 details of Moose as well as some common idioms, we have
1493 created Moose::Cookbook::Snacks as a place to find
1494 small (easily digestable) nuggets of Moose code.
1497 ~ Several doc updates/cleanup thanks to castaway ~
1499 - converted build system to use Module::Install instead of
1500 Module::Build (thanks to jrockway)
1503 - added all the meta classes to the immutable list and
1504 set it to inline the accessors
1505 - fix import to allow Sub::Exporter like { into => }
1506 and { into_level => } (perigrin)
1507 - exposed and documented init_meta() to allow better
1508 embedding and extending of Moose (perigrin)
1511 - complete re-organization of the test suite
1512 - added some new tests as well
1513 - finally re-enabled the Moose::POOP test since
1514 the new version of DBM::Deep now works again
1517 * Moose::Meta::Class
1518 - fixed very odd and very nasty recursion bug with
1520 - added tests for this (eilara)
1522 * Moose::Meta::Attribute
1523 Moose::Meta::Method::Constructor
1524 Moose::Meta::Method::Accessor
1525 - fixed issue with overload::Overloaded getting called
1526 on non-blessed items. (RT #29269)
1527 - added tests for this
1529 * Moose::Meta::Method::Accessor
1530 - fixed issue with generated accessor code making
1531 assumptions about hash based classes (thanks to dexter)
1533 * Moose::Coookbook::Snacks
1534 - these are bits of documentation, not quite as big as
1535 Recipes but which have no clear place in the module docs.
1536 So they are Snacks! (horray for castaway++)
1538 * Moose::Cookbook::Recipe4
1539 - updated it to use the new ArrayRef[MyType] construct
1540 - updated the accompanying test as well
1542 +++ Major Refactor of the Type Constraint system +++
1543 +++ with new features added as well +++
1545 * Moose::Util::TypeConstraint
1546 - no longer uses package variable to keep track of
1547 the type constraints, now uses the an instance of
1548 Moose::Meta::TypeConstraint::Registry to do it
1549 - added more sophisticated type notation parsing
1551 - added tests for this
1553 * Moose::Meta::TypeConstraint
1554 - some minor adjustments to make subclassing easier
1555 - added the package_defined_in attribute so that we
1556 can track where the type constraints are created
1558 * Moose::Meta::TypeConstraint::Union
1559 - this is now been refactored to be a subclass of
1560 Moose::Meta::TypeConstraint
1562 * Moose::Meta::TypeCoercion::Union
1563 - this has been added to service the newly refactored
1564 Moose::Meta::TypeConstraint::Union and is itself
1565 a subclass of Moose::Meta::TypeCoercion
1567 * Moose::Meta::TypeConstraint::Parameterized
1568 - added this module (taken from MooseX::AttributeHelpers)
1569 to help construct nested collection types
1570 - added tests for this
1572 * Moose::Meta::TypeConstraint::Registry
1573 - added this class to keep track of type constraints
1575 0.25 Mon. Aug. 13, 2007
1577 - Documentation update to reference Moose::Util::TypeConstraints
1578 under 'isa' in 'has' for how to define a new type
1579 (thanks to shlomif).
1581 * Moose::Meta::Attribute
1582 - required attributes now will no longer accept undef
1583 from the constructor, even if there is a default and lazy
1584 - added tests for this
1585 - default subroutines must return a value which passes the
1587 - added tests for this
1589 * Moose::Meta::Attribute
1590 * Moose::Meta::Method::Constructor
1591 * Moose::Meta::Method::Accessor
1592 - type-constraint tests now handle overloaded objects correctly
1593 in the error message
1594 - added tests for this (thanks to EvanCarroll)
1596 * Moose::Meta::TypeConstraint::Union
1597 - added (has_)hand_optimized_constraint to this class so that
1598 it behaves as the regular Moose::Meta::TypeConstraint does.
1601 - large refactoring of this code
1602 - added several more tests
1603 - tests for subtle conflict resolition issues
1604 added, but not currently running
1607 * Moose::Cookbook::Recipe7
1608 - added new recipe for augment/inner functionality
1610 - added test for this
1613 - a formal definition of roles (still in progress)
1616 - utilities for easier working with Moose classes
1617 - added tests for these
1620 - This contains Moose specific test functions
1621 - added tests for these
1623 0.24 Tues. July 3, 2007
1624 ~ Some doc updates/cleanup ~
1626 * Moose::Meta::Attribute
1627 - added support for roles to be given as parameters
1628 to the 'handles' option.
1629 - added tests and docs for this
1630 - the has '+foo' attribute form now accepts changes to
1631 the lazy option, and the addition of a handles option
1632 (but not changing the handles option)
1633 - added tests and docs for this
1636 - required methods are now fetched using find_method_by_name
1637 so that required methods can come from superclasses
1638 - adjusted tests for this
1640 0.23 Mon. June 18, 2007
1641 * Moose::Meta::Method::Constructor
1642 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1643 * Moose::Meta::Class
1644 - Modify make_immutable to work with the new Class::MOP immutable
1645 mechanism + POD + very basic test (groditi)
1646 * Moose::Meta::Attribute
1647 - Fix handles to use goto() so that caller() comes out properly on
1648 the other side (perigrin)
1650 0.22 Thurs. May 31, 2007
1651 * Moose::Util::TypeConstraints
1652 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1653 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1654 prototypes for functions
1655 - added the ClassName type constraint, this checks for strings
1656 which will respond true to ->isa(UNIVERSAL).
1657 - added tests and docs for this
1658 - subtyping just in name now works correctly by making the
1659 default for where be { 1 }
1660 - added test for this
1662 * Moose::Meta::Method::Accessor
1663 - coerce and lazy now work together correctly, thanks to
1664 merlyn for finding this bug
1665 - tests added for this
1666 - fix reader presedence bug in Moose::Meta::Attribute + tests
1669 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1670 a HASH-ref and missed. This produces better error messages then
1671 having it die cause undef is not a HASH.
1672 - added tests for this
1674 0.21 Thursday, May 2nd, 2007
1676 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1677 - modified unimport to remove super and inner along with the rest
1678 - altered unimport tests to handle this
1681 - altered super export to populate SUPER_SLOT
1683 * Moose::Meta::Class
1684 - altered augment and override modifier application to use *_SLOT
1685 - modified tests for these to unimport one test class each to test
1688 - fixed issue where custom attribute metaclasses
1689 where not handled correctly in roles
1690 - added tests for this
1692 * Moose::Meta::Class
1693 - fixed issue where extending metaclasses with
1694 roles would blow up. Thanks to Aankhen`` for
1695 finding this insidious error, and it's solution.
1697 ~~ lots of spelling and grammer fixes in the docs,
1698 many many thanks to rlb3 and Aankhen for these :)
1700 0.20 Friday, April 6th, 2007
1701 >> I messed up the SKIP logic in one test
1702 so this release is just to fix that.
1705 - 'has' now also accepts an ARRAY ref
1706 to create multiple attrs (see docs)
1707 (thanks to konobi for this)
1708 - added tests and docs
1710 0.19 Thurs. April 5th, 2007
1711 ~~ More documentation updates ~~
1713 * Moose::Util::TypeConstraints
1714 - 'type' now supports messages as well
1715 thanks to phaylon for finding this
1716 - added tests for this
1717 - added &list_all_type_constraints and
1718 &list_all_builtin_type_constraints
1719 functions to facilitate introspection.
1721 * Moose::Meta::Attribute
1722 - fixed regexp 'handles' declarations
1723 to build the list of delegated methods
1724 correctly (and not override important
1725 things like &new) thanks to ashleyb
1727 - added tests and docs for this
1728 - added the 'documentation' attributes
1729 so that you can actually document your
1730 attributes and inspect them through the
1732 - added tests and docs for this
1734 * Moose::Meta::Class
1735 - when loading custom attribute metaclasses
1736 it will first look in for the class in the
1737 Moose::Meta::Attribute::Custom::$name, and
1738 then default to just loading $name.
1739 - added tests and docs for this
1741 * Moose::Meta::TypeConstraint
1742 - type constraints now stringify to their names.
1743 - added test for this
1746 - added tests to assure we work with Module::Refresh
1747 - added stricter test skip logic in the Moose POOP
1748 test, ask Rob Kinyon why.
1749 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1751 0.18 Sat. March 10, 2007
1752 ~~ Many, many documentation updates ~~
1755 - We now use Class::MOP::load_class to
1757 - added tests to show types and subtypes
1758 working with Declare::Constraints::Simple
1759 and Test::Deep as constraint engines.
1762 !! You must have Class::MOP 0.37_001 !!
1763 !! for this developer release to work !!
1765 This release was primarily adding the immutable
1766 feature to Moose. An immutable class is one which
1767 you promise not to alter. When you set the class
1768 as immutable it will perform various bits of
1769 memoization and inline certain part of the code
1770 (constructors, destructors and accessors). This
1771 minimizes (and in some cases totally eliminates)
1772 one of Moose's biggest performance hits. This
1773 feature is not on by default, and is 100% optional.
1774 It has several configurable bits as well, so you
1775 can pick and choose to your specific needs.
1777 The changes involved in this were fairly wide and
1778 highly specific, but 100% backwards compatible, so
1779 I am not going to enumerate them here. If you are
1780 truely interested in what was changed, please do
1783 0.17 Tues. Nov. 14, 2006
1784 * Moose::Meta::Method::Accessor
1785 - bugfix for read-only accessors which
1786 are have a type constraint and lazy.
1787 Thanks to chansen for finding it.
1789 0.16 Tues. Nov. 14, 2006
1791 There are some speed improvements in this release,
1792 but they are only the begining, so stay tuned.
1795 - BUILDALL and DEMOLISHALL no longer get
1796 called unless they actually need to be.
1797 This gave us a signifigant speed boost
1798 for the cases when there is no BUILD or
1799 DEMOLISH method present.
1801 * Moose::Util::TypeConstraints
1802 * Moose::Meta::TypeConstraint
1803 - added an 'optimize_as' option to the
1804 type constraint, which allows for a
1805 hand optimized version of the type
1806 constraint to be used when possible.
1807 - Any internally created type constraints
1808 now provide an optimized version as well.
1810 0.15 Sun. Nov. 5, 2006
1812 This version of Moose *must* have Class::MOP 0.36 in order
1813 to work correctly. A number of small internal tweaks have
1814 been made in order to be compatible with that release.
1816 * Moose::Util::TypeConstraints
1817 - added &unimport so that you can clean out
1818 your class namespace of these exported
1821 * Moose::Meta::Class
1822 - fixed minor issue which occasionally
1823 comes up during global destruction
1825 - moved Moose::Meta::Method::Overriden into
1829 - moved Moose::Meta::Role::Method into
1832 * Moose::Meta::Attribute
1833 - changed how we do type checks so that
1834 we reduce the overall cost, but still
1837 - moved accessor generation methods to
1838 Moose::Meta::Method::Accessor to
1839 conform to the API changes from
1842 * Moose::Meta::TypeConstraint
1843 - changed how constraints are compiled
1844 so that we do less recursion and more
1845 iteration. This makes the type check
1847 - moved Moose::Meta::TypeConstraint::Union
1850 * Moose::Meta::Method::Accessor
1851 - created this from methods formerly found in
1852 Moose::Meta::Attribute
1854 * Moose::Meta::Role::Method
1855 - moved this from Moose::Meta::Role
1857 * Moose::Meta::Method::Overriden
1858 - moved this from Moose::Meta::Class
1860 * Moose::Meta::TypeConstraint::Union
1861 - moved this from Moose::Meta::TypeConstraint
1863 0.14 Mon. Oct. 9, 2006
1865 * Moose::Meta::Attribute
1866 - fixed lazy attributes which were not getting
1867 checked with the type constraint (thanks ashley)
1868 - added tests for this
1869 - removed the over-enthusiastic DWIMery of the
1870 automatic ArrayRef and HashRef defaults, it
1871 broke predicates in an ugly way.
1872 - removed tests for this
1874 0.13 Sat. Sept. 30, 2006
1876 This version of Moose *must* have Class::MOP 0.35 in order
1877 to work correctly. A number of small internal tweaks have
1878 been made in order to be compatible with that release.
1881 - Removed the use of UNIVERSAL::require to be a better
1882 symbol table citizen and remove a dependency
1883 (thanks Adam Kennedy)
1885 **~~ removed experimental & undocumented feature ~~**
1886 - commented out the 'method' and 'self' keywords, see the
1887 comments for more info.
1890 - added a FAQ and WTF files to document frequently
1891 asked questions and common problems
1893 * Moose::Util::TypeConstraints
1894 - added GlobRef and FileHandle type constraint
1895 - added tests for this
1897 * Moose::Meta::Attribute
1898 - if your attribute 'isa' ArrayRef of HashRef, and you have
1899 not explicitly set a default, then make the default DWIM.
1900 This will also work for subtypes of ArrayRef and HashRef
1902 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1903 - new test added for this (thanks to ashley)
1906 - added basic support for runtime role composition
1907 but this is still *highly experimental*, so feedback
1908 is much appreciated :)
1909 - added tests for this
1911 * Moose::Meta::TypeConstraint
1912 - the type constraint now handles the coercion process
1913 through delegation, this is to support the coercion
1916 * Moose::Meta::TypeConstraint::Union
1917 - it is now possible for coercions to be performed
1919 - added tests for this (thanks to konobi)
1921 * Moose::Meta::TypeCoercion
1922 - properly capturing error when type constraint
1926 - Scalar::Util 1.18 is bad on Win32, so temporarily
1927 only require version 1.17 for Win32 and cygwin.
1928 (thanks Adam Kennedy)
1930 0.12 Sat. Sept. 1, 2006
1932 - Recipe5 (subtypes & coercion) has been written
1935 - fixed "bad meta" error message to be more descriptive
1936 - fixed &unimport to not remove the &inner and &super
1937 keywords because we need to localize them.
1938 - fixed number of spelling/grammer issues, thanks Theory :)
1940 **~~ experimental & undocumented feature ~~**
1941 - added the method and self keywords, they are basically
1942 just sugar, and they may not stay around.
1945 - added &dump method to easily Data::Dumper
1948 * Moose::Meta::TypeConstraint
1949 - added the &is_a_type_of method to check both the current
1950 and the subtype of a method (similar to &isa with classes)
1953 - this is now a subclass of Class::MOP::Module, and no longer
1954 creates the _role_meta ugliness of before.
1955 - fixed tests to reflect this change
1957 0.11 Wed. July 12, 2006
1959 - added an &unimport method to remove all the keywords
1960 that Moose will import, simply add 'no Moose' to the
1961 bottom of your class file.
1964 - fixed some test failures caused by a forgotten test
1967 0.10 Thurs. July 6, 2006
1969 - improved error message when loading modules so
1970 it is less confusing when you load a role.
1971 - added &calculate_all_roles method to
1972 Moose::Meta::Class and Moose::Meta::Role
1975 This module has been tested against Class::MOP 0.30
1976 but it does not yet utilize the optimizations
1977 it makes available. Stay tuned for that ;)
1979 0.09_03 Fri. June 23, 2006
1980 ++ DEVELOPER RELEASE ++
1982 - 'use strict' and 'use warnings' are no longer
1983 needed in Moose classes, Moose itself will
1984 turn them on for you.
1985 - added tests for this
1986 - moved code from exported subs to private methods
1987 in Moose::Meta::Class
1990 - as with Moose, strict and warnings are
1991 automatically turned on for you.
1992 - added tests for this
1995 - now handles an edge case for override errors
1996 - added tests for this
1997 - added some more edge case tests
1999 0.09_02 Tues. May 16, 2006
2000 ++ DEVELOPER RELEASE ++
2002 - added prototypes to the exported subs
2006 - added prototypes to the exported subs
2009 * Moose::Util::TypeConstraints
2010 - cleaned up prototypes for the subs
2013 0.09_01 Fri. May 12, 2006
2014 ++ DEVELOPER RELEASE ++
2015 - This release works in combination with
2016 Class::MOP 0.29_01, it is a developer
2017 release because it uses the a new
2018 instance sub-protocol and a fairly
2019 complete Role implementation. It has
2020 not yet been optimized, so it slower
2021 the the previous CPAN version. This
2022 release also lacks good updated docs,
2023 the official release will have updated docs.
2026 - refactored the keyword exports
2027 - 'with' now checks Role validaity and
2028 accepts more than one Role at a time
2029 - 'extends' makes metaclass adjustments as
2030 needed to ensure metaclass compatibility
2033 - refactored the keyword exports
2034 - 'with' now checks Role validaity and
2035 accepts more than one Role at a time
2037 * Moose::Util::TypeConstraints
2038 - added the 'enum' keyword for simple
2039 string enumerations which can be used as
2041 - see example of usage in t/202_example.t
2044 - more careful checking of params to new()
2047 - much work done on the role composition
2048 - many new tests for conflict detection
2049 and composition edge cases
2050 - not enough documentation, I suggest
2051 looking at the tests
2053 * Moose::Meta::Instance
2054 - added new Instance metaclass to support
2055 the new Class::MOP instance protocol
2057 * Moose::Meta::Class
2058 - some small changes to support the new
2060 - some small additions to support Roles
2062 * Moose::Meta::Attribute
2063 - some improvements to the accessor generation code
2065 - some small changes to support the new
2067 - (still somewhat) experimental delegation support
2068 with the 'handles' option
2069 - added several tests for this
2070 - no docs for this yet
2072 0.05 Thurs. April 27, 2006
2074 - keywords are now exported with Sub::Exporter
2075 thanks to chansen for this commit
2076 - has keyword now takes a 'metaclass' option
2077 to support custom attribute meta-classes
2078 on a per-attribute basis
2079 - added tests for this
2080 - the 'has' keyword not accepts inherited slot
2081 specifications (has '+foo'). This is still an
2082 experimental feature and probably not finished
2083 see t/038_attribute_inherited_slot_specs.t for
2084 more details, or ask about it on #moose
2085 - added tests for this
2088 - keywords are now exported with Sub::Exporter
2090 * Moose::Utils::TypeConstraints
2091 - reorganized the type constraint hierarchy, thanks
2092 to nothingmuch and chansen for his help and advice
2094 - added some tests for this
2095 - keywords are now exported with Sub::Exporter
2096 thanks to chansen for this commit
2098 * Moose::Meta::Class
2099 - due to changes in Class::MOP, we had to change
2100 construct_instance (for the better)
2102 * Moose::Meta::Attribute
2103 - due to changes in Class::MOP, we had to add the
2104 initialize_instance_slot method (it's a good thing)
2106 * Moose::Meta::TypeConstraint
2107 - added type constraint unions
2108 - added tests for this
2109 - added the is_subtype_of predicate method
2110 - added tests for this
2112 0.04 Sun. April 16th, 2006
2114 - Roles can now consume other roles
2115 - added tests for this
2116 - Roles can specify required methods now with
2117 the requires() keyword
2118 - added tests for this
2121 - ripped out much of it's guts ,.. much cleaner now
2122 - added required methods and correct handling of
2123 them in apply() for both classes and roles
2124 - added tests for this
2125 - no longer adds a does() method to consuming classes
2126 it relys on the one in Moose::Object
2127 - added roles attribute and some methods to support
2128 roles consuming roles
2130 * Moose::Meta::Attribute
2131 - added support for triggers on attributes
2132 - added tests for this
2133 - added support for does option on an attribute
2134 - added tests for this
2136 * Moose::Meta::Class
2137 - added support for attribute triggers in the
2139 - added tests for this
2142 - Moose no longer creates a subtype for your class
2143 if a subtype of the same name already exists, this
2144 should DWIM in 99.9999% of all cases
2146 * Moose::Util::TypeConstraints
2147 - fixed bug where incorrect subtype conflicts were
2149 - added test for this
2152 - this class can now be extended with 'use base' if
2153 you need it, it properly loads the metaclass class now
2154 - added test for this
2156 0.03_02 Wed. April 12, 2006
2158 - you must now explictly use Moose::Util::TypeConstraints
2159 it no longer gets exported for you automatically
2162 - new() now accepts hash-refs as well as key/value lists
2163 - added does() method to check for Roles
2164 - added tests for this
2166 * Moose::Meta::Class
2167 - added roles attribute along with the add_role() and
2169 - added tests for this
2172 - now adds a does() method to consuming classes
2173 which tests the class's hierarchy for roles
2174 - added tests for this
2176 0.03_01 Mon. April 10, 2006
2178 - added new Role recipe (no content yet, only code)
2181 - added 'with' keyword for Role support
2182 - added test and docs for this
2183 - fixed subtype quoting bug
2184 - added test for this
2188 - added test and docs
2190 * Moose::Util::TypeConstraints
2191 - added the message keyword to add custom
2192 error messages to type constraints
2195 - the meta role to support Moose::Role
2196 - added tests and docs
2198 * Moose::Meta::Class
2199 - moved a number of things from Moose.pm
2200 to here, they should have been here
2203 * Moose::Meta::Attribute
2204 - moved the attribute option macros here
2205 instead of putting them in Moose.pm
2207 * Moose::Meta::TypeConstraint
2208 - added the message attributes and the
2210 - added tests and docs for this
2212 0.03 Thurs. March 30, 2006
2214 - added the Moose::Cookbook with 5 recipes,
2215 describing all the stuff Moose can do.
2218 - fixed an issue with &extends super class loading
2219 it now captures errors and deals with inline
2220 packages correctly (bug found by mst, solution
2222 - added super/override & inner/augment features
2223 - added tests and docs for these
2226 - BUILDALL now takes a reference of the %params
2227 that are passed to &new, and passes that to
2230 * Moose::Util::TypeConstraints
2231 - Type constraints now survive runtime reloading
2232 - added test for this
2234 * Moose::Meta::Class
2235 - fixed the way attribute defaults are handled
2236 during instance construction (bug found by chansen)
2238 * Moose::Meta::Attribute
2239 - read-only attributes now actually enforce their
2240 read-only-ness (this corrected in Class::MOP as
2243 0.02 Tues. March 21, 2006
2245 - many more tests, fixing some bugs and
2247 - &extends now loads the base module with
2249 - added UNIVERSAL::require to the
2252 - each new Moose class will also create
2253 and register a subtype of Object which
2254 correspond to the new Moose class.
2255 - the 'isa' option in &has now only
2256 accepts strings, and will DWIM in
2259 * Moose::Util::TypeConstraints
2260 - added type coercion features
2261 - added tests for this
2262 - added support for this in attributes
2263 and instance construction
2265 - type construction no longer creates a
2266 function, it registers the type instead.
2267 - added several functions to get the
2271 - BUILDALL and DEMOLISHALL were broken
2272 because of a mis-named hash key, Whoops :)
2274 * Moose::Meta::Attribute
2275 - adding support for coercion in the
2276 autogenerated accessors
2278 * Moose::Meta::Class
2279 - adding support for coercion in the
2280 instance construction
2282 * Moose::Meta::TypeConstraint
2283 * Moose::Meta::TypeCoercion
2284 - type constraints and coercions are now
2285 full fledges meta-objects
2287 0.01 Wed. March 15, 2006
2288 - Moooooooooooooooooose!!!