1 Revision history for Perl extension Moose
5 - Passing "-traits" when loading Moose caused the Moose.pm
6 exports to be broken. Reported by t0m. (Dave Rolsky)
7 - Tests for this bug. (t0m)
10 - Change resolve_metaclass alias to use the new
11 load_first_existing_class function. This makes it a lot
12 simpler, and also around 5 times faster. (t0m)
13 - Add caching to resolve_metaclass_alias, which gives an order
14 of magnitude speedup to things which repeatedly call the
15 Moose::Meta::Attribute->does method, notably MooseX::Storage
18 * Moose::Util::TypeConstraints
19 - Put back the changes for parameterized constraints that
20 shouldn't have been removed in 0.59. We still cannot parse
21 them, but MooseX modules can create them in some other
22 way. See the 0.58 changes for more details. (jnapiorkowski)
25 - Passing "-traits" when loading Moose caused the Moose.pm
26 exports to be broken. Reported by t0m. (Dave Rolsky)
27 - Tests for this bug. (t0m)
29 * Moose::Util::TypeConstraint
30 - Put back the changes for parameterized constraints that
31 shouldn't have been removed in 0.59. We still cannot parse
32 them, but MooseX modules can create them in some other
33 way. See the 0.58 changes for more details. (jnapiorkowski)
34 - changed the way subtypes are created so that the job is delegated to a
35 type constraint parent. This clears up some hardcoded checking and
36 should allow correct subtypes of Moose::Meta::Type::Constraint
38 * Moose::Meta::TypeConstraint::Union
39 - more careful sorting of the type constraints that make up a name string
40 - support for create_childtype customization
42 * Moose::Meta::TypeConstraint::Parameterized
43 - support for create_childtype customization
45 * Moose::Meta::TypeConstraint::Parameterizable
46 - new parameterize method which is a type of factory method to make a new
47 type constraint with a given parameterized type.
49 * /t/040_type_constraints/027_parameterize_from.t
50 - test to make sure the new parameterize method works.
52 * /t/040_type_constraints/030-class_subtypes.t
53 - test to make sure we can properly subclass Moose::Meta::TypeConstraint
55 0.59 Tue October 14, 2008
57 - Add abridged documentation for builder/default/initializer/
58 predicate, and link to more details sections in
59 Class::MOP::Attribute. (t0m)
61 * Moose::Util::TypeConstraints
62 - removed prototypes from all but the &-based stuff (mst)
64 * Moose::Util::TypeConstraints
65 - Creating a anonymous subtype with both a constraint and a
66 message failed with a very unhelpful error, but should just
67 work. Reported by t0m. (Dave Rolsky)
70 - Some tests that used Test::Warn if it was available failed
71 with older versions of Test::Warn. Reported by Fayland. (Dave
73 - Test firing behavior of triggers in relation to builder/default/
75 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
76 kinds of supported type. (t0m)
79 - In create(), do not pass "roles" option to the superclass
80 - added related test that creates an anon metaclass with
83 * Moose::Meta::TypeConstraint::Class
84 * Moose::Meta::TypeConstraint::Role
85 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
86 other types (as per change in 0.55_02). (t0m)
88 * Moose::Meta::TypeConstraint::Registry
89 - Fix warning when dealing with unknown type names (t0m)
91 * Moose::Util::TypeConstraints
92 - Reverted changes from 0.58 related to handle parameterized
93 types. This caused random failures on BSD and Win32 systems,
94 apparently related to the regex engine. This means that Moose
95 can no longer parse structured type constraints like
96 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
97 supported in a slightly different way via MooseX::Types some
98 time in the future. (Dave Rolsky)
100 0.58 Sat September 20, 2008
101 !! This release has an incompatible change regarding !!
102 !! how roles add methods to a class !!
104 * Roles and role application
105 ! Roles now add methods by calling add_method, not
106 alias_method. They make sure to always provide a method
107 object, which will be cloned internally. This means that it is
108 now possible to track the source of a method provided by a
109 role, and even follow its history through intermediate roles.
111 This means that methods added by a role now show up when
112 looking at a class's method list/map. (Dave Rolsky)
115 - From this release on, we'll try to maintain a list of
116 conflicting modules, and warn you if you have one
117 installed. For example, this release conflicts with ...
118 - MooseX::Singleton <= 0.11
119 - MooseX::Params::Validate <= 0.05
122 In general, we try to not break backwards compatibility for
123 most Moose users, but MooseX modules and other code which
124 extends Moose's metaclasses is often affected by very small
125 changes in the Moose internals.
127 * Moose::Meta::Method::Delegation
128 * Moose::Meta::Attribute
129 - Delegation methods now have their own method class. (Dave
132 * Moose::Meta::TypeConstraint::Parameterizable
133 - Added a new method 'parameterize' which is basically a factory
134 for the containing constraint. This makes it easier to create
135 new types of parameterized constraints. (jnapiorkowski)
137 * Moose::Meta::TypeConstraint::Union
138 - Changed the way Union types canonicalize their names to follow
139 the normalized TC naming rules, which means we strip all
140 whitespace. (jnapiorkowski)
142 * Moose::Util::TypeConstraints
143 - Parameter and Union args are now sorted, this makes Int|Str
144 the same constraint as Str|Int. (jnapiorkowski)
145 - Changes to the way Union types are parsed to more correctly
146 stringify their names. (jnapiorkowski)
147 - When creating a parameterized type, we now use the new
148 parameterize method. (jnapiorkowski)
149 - Incoming type constraint strings are now normalized to remove
150 all whitespace differences. (jnapiorkowski)
151 - Changed the way we parse type constraint strings so that we now
152 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
153 constraints. This lays the foundation for more flexible type
154 constraint implementations.
156 * Tests and docs for all the above. (jnapiorkowski)
160 - Moose::Exporter will no longer remove a subroutine that the
161 exporting package re-exports. Moose re-exports the
162 Carp::confess function, among others. The reasoning is that we
163 cannot know whether you have also explicitly imported those
164 functions for your own use, so we err on the safe side and
165 always keep them. (Dave Rolsky)
166 - added tests for this (rafl)
169 - Changes to how we fix metaclass compatibility that are much
170 too complicated to go into. The summary is that Moose is much
171 less likely to complain about metaclass incompatibility
172 now. In particular, if two metaclasses differ because
173 Moose::Util::MetaRole was used on the two corresponding
174 classes, then the difference in roles is reconciled for the
175 subclass's metaclass. (Dave Rolsky)
176 - Squashed an warning in _process_attribute (thepler)
179 - throw exceptions (sooner) for invalid attribute names (thepler)
180 - added tests for this (thepler)
182 * Moose::Util::MetaRole
183 - If you explicitly set a constructor or destructor class for a
184 metaclass object, and then applied roles to the metaclass,
185 that explicitly set class would be lost and replaced with the
189 * Moose::Meta::Attribute
190 * Moose::Meta::Method
193 * Moose::Error::Default
194 * Moose::Error::Croak
195 * Moose::Error::Confess
196 - All instances of confess() changed to use overridable
197 C<throw_error> method. This method ultimately calls a class
198 constructor, and you can change the class being called. In
199 addition, errors now pass more information than just a string.
200 The default C<error_class> behaves like C<Carp::confess>, so
201 the behavior is not visibly different for end users.
203 0.57 Wed September 3, 2008
205 - A new bit of doc intended to introduce folks familiar with
206 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
209 - Shows examples of two classes, each done first with and then
210 without Moose. This makes a nice parallel to
211 Moose::Intro. (Dave Rolsky)
213 * Moose::Util::TypeConstraints
214 - Fixed a bug in find_or_parse_type_constraint so that it
215 accepts a Moose::Meta::TypeConstraint object as the parent
216 type, not just a name (jnapiorkowski)
217 - added tests (jnapiorkowski)
220 - If Sub::Name was not present, unimporting failed to actually
221 remove some sugar subs, causing test failures (Dave Rolsky)
223 0.56 Mon September 1, 2008
224 For those not following the series of dev releases, there are
225 several major changes in this release of Moose.
226 ! Moose::init_meta should now be called as a method. See the
229 - Major performance improvements by nothingmuch.
231 - New modules for extension writers, Moose::Exporter and
232 Moose::Util::MetaRole by Dave Rolsky.
234 - Lots of doc improvements and additions, especially in the
239 * Removed all references to the experimental-but-no-longer-needed
240 Moose::Meta::Role::Application::ToMetaclassInstance.
242 * Require Class::MOP 0.65.
244 0.55_04 Sat August 30, 2008
245 * Moose::Util::MetaRole
246 * Moose::Cookbook::Extending::Recipe2
247 - This simplifies the application of roles to any meta class, as
248 well as the base object class. Reimplemented metaclass traits
249 using this module. (Dave Rolsky)
251 * Moose::Cookbook::Extending::Recipe1
252 - This a new recipe, an overview of various ways to write Moose
253 extensions (Dave Rolsky)
255 * Moose::Cookbook::Extending::Recipe3
256 * Moose::Cookbook::Extending::Recipe4
257 - These used to be Extending::Recipe1 and Extending::Recipe2,
260 0.55_03 Fri August 29, 2008
261 * No changes from 0.55_02 except increasing the Class::MOP
262 dependency to 0.64_07.
264 0.55_02 Fri August 29, 2008
265 * Makefile.PL and Moose.pm
266 - explicitly require Perl 5.8.0+ (Dave Rolsky)
268 * Moose::Util::TypeConstraints
269 - Fix warnings from find_type_constraint if the type is not
272 * Moose::Meta::TypeConstraint
273 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
274 return false if the type you specify cannot be found in the
275 type registry, rather than throwing an unhelpful and
276 coincidental exception. (t0m).
277 - added docs & test for this (t0m)
279 * Moose::Meta::TypeConstraint::Registry
280 - add_type_constraint now throws an exception if a parameter is
282 - added docs & test for this (t0m)
284 * Moose::Cookbook::FAQ
285 - Added a faq entry on the difference between "role" and "trait"
289 - Fixed a bug that caused role composition to not see a required
290 method when that method was provided by another role being
291 composed at the same time. (Dave Rolsky)
292 - test and bug finding (tokuhirom)
294 0.55_01 Wed August 20, 2008
296 !! Calling Moose::init_meta as a function is now !!
297 !! deprecated. Please see the Moose.pm docs for details. !!
299 * Moose::Meta::Method::Constructor
300 - Fix inlined constructor so that values produced by default
301 or builder methods are coerced as required. (t0m)
302 - added test for this (t0m)
304 * Moose::Meta::Attribute
305 - A lazy attribute with a default or builder did not attempt to
306 coerce the default value. The immutable code _did_
308 - added test for this (t0m)
311 - This is a new helper module for writing "Moose-alike"
312 modules. This should make the lives of MooseX module authors
313 much easier. (Dave Rolsky)
316 * Moose::Cookbook::Meta::Recipe5
317 - Implemented metaclass traits (and wrote a recipe for it):
319 use Moose -traits => 'Foo'
321 This should make writing small Moose extensions a little
324 * Moose::Cookbook::Basics::Recipe1
325 - Removed any examples of direct hashref access, and applied an
326 editorial axe to reduce verbosity. (Dave Rolsky)
328 * Moose::Cookbook::Basics::Recipe1
329 - Also applied an editorial axe here. (Dave Rolsky)
332 * Moose::Cookbook::Extending::Recipe1
333 * Moose::Cookbook::Extending::Recipe2
334 - Rewrote extending and embedding moose documentation and
335 recipes to use Moose::Exporter (Dave Rolsky)
339 - These two modules now warn when you load them from the main
340 package "main" package, because we will not export sugar to
341 main. Previously it just did nothing. (Dave Rolsky)
344 - Now provide an init_meta method just like Moose.pm, and you
345 can call this to provide an alternate role metaclass. (Dave
346 Rolsky and nothingmuch)
347 - get_method_map now respects the package cache flag (nothingmuch)
350 - Two new methods - add_method and wrap_method_body
354 - Optimizations including allowing constructors to accept hash
355 refs, making many more classes immutable, and making
356 constructors immutable. (nothingmuch)
358 0.55 Sun August 3, 2008
359 * Moose::Meta::Attribute
360 - breaking down the way 'handles' methods are
361 created so that the process can be more easily
362 overridden by subclasses (stevan)
364 * Moose::Meta::TypeConstraint
365 - fixing what is passed into a ->message with
366 the type constraints (RT #37569)
367 - added tests for this (Charles Alderman)
369 * Moose::Util::TypeConstraints
370 - fix coerce to accept anon types like subtype can (mst)
373 - reorganized the recipes into sections - Basics, Roles, Meta,
374 Extending - and wrote abstracts for each section (Dave Rolsky)
376 * Moose::Cookbook::Basics::Recipe10
377 - A new recipe that demonstrates operator overloading
378 in combination with Moose. (bluefeet)
380 * Moose::Cookbook::Meta::Recipe1
381 - an introduction to what meta is and why you'd want to make
382 your own metaclass extensions (Dave Rolsky)
384 * Moose::Cookbook::Meta::Recipe4
385 - a very simple metaclass example (Dave Rolsky)
387 * Moose::Cookbook::Extending::Recipe1
388 - how to write a Moose-alike module to use your own object base
391 * Moose::Cookbook::Extending::Recipe2
392 - how to write modules with an API just like C<Moose.pm> (Dave
396 - Tons of fixes, both syntactical and grammatical (Dave
397 Rolsky, Paul Fenwick)
399 0.54 Thurs. July 3, 2008
400 ... this is not my day today ...
402 * Moose::Meta::Attribute
403 - fixed legal_options_for_inheritance such that
404 clone_and_inherit options still works for
405 Class::MOP::Attribute objects and therefore
406 does not break MooseX::AttributeHelpers
409 0.53 Thurs. July 3, 2008
410 * Whoops, I guess I should run 'make manifest' before
411 actually releasing the module. No actual changes
412 in this release, except the fact that it includes
413 the changes that I didn't include in the last
416 0.52 Thurs. July 3, 2008
418 - added "FEATURE REQUESTS" section to the Moose docs
419 to properly direct people (stevan) (RT #34333)
420 - making 'extends' croak if it is passed a Role since
421 this is not ever something you want to do
422 (fixed by stevan, found by obra)
423 - added tests for this (stevan)
426 - adding support for DOES (as in UNIVERSAL::DOES)
428 - added test for this
430 * Moose::Meta::Attribute
431 - added legal_options_for_inheritance (wreis)
432 - added tests for this (wreis)
434 * Moose::Cookbook::Snacks::*
435 - removed some of the unfinished snacks that should
436 not have been released yet. Added some more examples
437 to the 'Keywords' snack. (stevan)
439 * Moose::Cookbook::Style
440 - added general Moose "style guide" of sorts to the
441 cookbook (nothingmuch) (RT #34335)
444 - added more BUILDARGS tests (stevan)
446 0.51 Thurs. Jun 26, 2008
448 - add unimport so "no Moose::Role" actually does
451 * Moose::Meta::Role::Application::ToRole
452 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
453 order to provide its own implementation, that method still got
454 added to the list of required methods for consumers of
455 RoleB. Now an aliased method is only added to the list of
456 required methods if the role doing the aliasing does not
457 provide its own implementation. See Recipe 11 for an example
458 of all this. (Dave Rolsky)
459 - added tests for this
461 * Moose::Meta::Method::Constructor
462 - when a single argument that wasn't a hashref was provided to
463 an immutabilized constructor, the error message was very
464 unhelpful, as opposed to the non-immutable error. Reported by
466 - added test for this (Dave Rolsky)
468 * Moose::Meta::Attribute
469 - added support for meta_attr->does("ShortAlias") (sartak)
470 - added tests for this (sartak)
471 - moved the bulk of the `handles` handling to the new
472 install_delegation method (Stevan)
475 - Added BUILDARGS, a new step in new()
477 * Moose::Meta::Role::Application::RoleSummation
478 - fix typos no one ever sees (sartak)
480 * Moose::Util::TypeConstraints
481 * Moose::Meta::TypeConstraint
482 * Moose::Meta::TypeCoercion
483 - Attempt to work around the ??{ } vs. threads issue
485 - Some null_constraint optimizations
487 0.50 Thurs. Jun 11, 2008
488 - Fixed a version number issue by bumping all modules
491 0.49 Thurs. Jun 11, 2008
492 !! This version now approx. 20-25% !!
493 !! faster with new Class::MOP 0.59 !!
495 * Moose::Meta::Attribute
496 - fixed how the is => (ro|rw) works with
497 custom defined reader, writer and accessor
499 - added docs for this (TODO).
500 - added tests for this (Thanks to Penfold)
501 - added the custom attribute alias for regular
502 Moose attributes which is "Moose"
503 - fix builder and default both being used
508 Moose::Meta::Attribute
510 Moose::Meta::Role::Composite
511 Moose::Util::TypeConstraints
512 - switched usage of reftype to ref because
516 - changing add_package_symbol to use the new
520 - fixed how DEMOLISHALL is called so that it
521 can be overrided in subclasses (thanks to Sartak)
522 - added test for this (thanks to Sartak)
524 * Moose::Util::TypeConstraints
525 - move the ClassName type check code to
526 Class::MOP::is_class_loaded (thanks to Sartak)
528 * Moose::Cookbook::Recipe11
529 - add tests for this (thanks to tokuhirom)
531 0.48 Thurs. May 29, 2008
532 (early morning release engineering)--
534 - fixing the version in Moose::Meta::Method::Destructor
535 which was causing the indexer to choke
537 0.47 Thurs. May 29, 2008
538 (late night release engineering)--
540 - fixing the version is META.yml, no functional
541 changes in this release
543 0.46 Wed. May 28, 2008
544 !! This version now approx. 20-25% !!
545 !! faster with new Class::MOP 0.57 !!
548 - some optimizations of the &initialize method
549 since it is called so often by &meta
553 - now use the get_all_package_symbols from the
554 updated Class::MOP, test suite is now 10 seconds
557 * Moose::Meta::Method::Destructor
558 - is_needed can now also be called as a class
559 method for immutablization to check if the
560 destructor object even needs to be created
563 * Moose::Meta::Method::Destructor
564 Moose::Meta::Method::Constructor
565 - added more descriptive error message to help
566 keep people from wasting time tracking an error
567 that is easily fixed by upgrading.
569 0.45 Saturday, May 24, 2008
571 - Because of work in Class::MOP 0.57, all
572 XS based functionality is now optional
573 and a Pure Perl version is supplied
574 - the CLASS_MOP_NO_XS environment variable
575 can now be used to force non-XS versions
577 - several of the packages have been tweaked
578 to take care of this, mostly we added
579 support for the package_name and name
580 variables in all the Method metaclasses
581 - before/around/after method modifiers now
582 support regexp matching of names
583 (thanks to Takatoshi Kitano)
584 - tests added for this
585 - NOTE: this only works for classes, it
586 is currently not supported in roles,
587 but, ... patches welcome
588 - All usage of Carp::confess have been replaced
589 by Carp::croak in the "keyword" functions since
590 the stack trace is usually not helpful
593 - All usage of Carp::confess have been replaced
594 by Carp::croak in the "keyword" functions since
595 the stack trace is usually not helpful
596 - The 'has' keyword for roles now accepts the
597 same array ref form that Moose.pm does
598 (has [qw/foo bar/] => (is => 'rw', ...))
599 - added test for this
601 * Moose::Meta::Attribute
602 - trigger on a ro-attribute is no longer an
603 error, as it's useful to trigger off of the
607 - added same 'add_package_symbol' fix as in
611 - does_role now handles non-Moose classes
613 - added tests for this
614 - added the 'add_method_modifier' function
615 (thanks to Takatoshi Kitano)
617 * Moose::Util::TypeConstraints
618 - subtypes of parameterizable types now are
619 themselves parameterizable types
621 * Moose::Meta::Method::Constructor
622 - fixed bug where trigger was not being
623 called by the inlined immutable
625 - added test for this (thanks to Caelum)
627 * Moose::Meta::Role::Application::ToInstance
628 - now uses the metaclass of the instance
629 (if possible) to create the anon-class
630 (thanks Jonathan Rockway)
632 * Moose::Cookbook::Recipe22
633 - added the meta-attribute trait recipe
637 - fixed hash-ordering test bug that was
638 causing occasional cpantester failures
639 - renamed the t/000_recipe/*.t tests to be
640 more descriptive (thanks to Sartak)
642 0.44 Sat. May 10, 2008
644 - made make_immutable warning cluck to
645 show where the error is (thanks mst)
648 - BUILDALL and DEMOLISHALL now call
649 ->body when looping through the
650 methods, to avoid the overloaded
652 - fixed issue where DEMOLISHALL was
653 eating the $@ values, and so not
654 working correctly, it still kind of
655 eats them, but so does vanilla perl
656 - added tests for this
658 * Moose::Cookbook::Recipe7
659 - added new recipe for immutable
660 functionality (thanks Dave Rolsky)
662 * Moose::Cookbook::Recipe9
663 - added new recipe for builder and
664 lazy_build (thanks Dave Rolsky)
666 * Moose::Cookbook::Recipe11
667 - added new recipe for method aliasing
668 and exclusion with Roles (thanks Dave Rolsky)
671 - fixed Win32 test failure (thanks spicyjack)
673 ~ removed Build.PL and Module::Build compat
674 since Module::Install has done that.
676 0.43 Wed. April, 30, 2008
678 drink more coffee before
679 doing release engineering
681 - whoops, forgot to do the smolder tests,
682 and we broke some of the custom meta-attr
683 modules. This fixes that.
685 0.42 Mon. April 28, 2008
686 - some bad tests slipped by, nothing else
687 changed in this release (cpantesters++)
689 - upped the Class::MOP dependency to 0.55
690 since we have tests which need the C3
693 0.41 Mon. April 28, 2008
694 ~~ numerous documentation updates ~~
696 - Changed all usage of die to Carp::croak for better
697 error reporting (initial patch by Tod Hagan)
700 - the make_immutable keyword is now deprecated, don't
701 use it in any new code and please fix your old code
702 as well. There will be 2 releases, and then it will
708 - refactored the way inner and super work to avoid
709 any method/@ISA cache penalty (nothingmuch)
712 - fixing &new_object to make sure trigger gets the
713 coerced value (spotted by Charles Alderman on the
715 - added test for this
717 * Moose::Meta::Method::Constructor
718 - immutable classes which had non-lazy attributes were calling
719 the default generating sub twice in the constructor. (bug
720 found by Jesse Luehrs, fixed by Dave Rolsky)
721 - added tests for this (Dave Rolsky)
722 - fix typo in initialize_body method (nothingmuch)
724 * Moose::Meta::Method::Destructor
725 - fix typo in initialize_body method (nothingmuch)
727 * Moose::Meta::Method::Overriden
728 Moose::Meta::Method::Augmented
729 - moved the logic for these into their own
730 classes (nothingmuch)
732 * Moose::Meta::Attribute
733 - inherited attributes may now be extended without
734 restriction on the type ('isa', 'does') (Sartak)
735 - added tests for this (Sartak)
736 - when an attribute property is malformed (such as lazy without
737 a default), give the name of the attribute in the error
739 - added the &applied_traits and &has_applied_traits methods
740 to allow introspection of traits
741 - added tests for this
742 - moved 'trait' and 'metaclass' argument handling to here from
744 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
745 '+foo' syntax) (nothingmuch)
746 - added tests for this (t0m)
749 - localize $@ inside DEMOLISHALL to avoid it
750 eating $@ (found by Ernesto)
751 - added test for this (thanks to Ernesto)
753 * Moose::Util::TypeConstraints
754 - &find_type_constraint now DWIMs when given an
755 type constraint object or name (nothingmuch)
756 - &find_or_create_type_constraint superseded with a number of more
758 - find_or_create_{isa,does}_type_constraint
759 - find_or_parse_type_constraint
761 * Moose::Meta::TypeConstraint
762 Moose::Meta::TypeConstraint::Class
763 Moose::Meta::TypeConstraint::Role
764 Moose::Meta::TypeConstraint::Enum
765 Moose::Meta::TypeConstraint::Union
766 Moose::Meta::TypeConstraint::Parameterized
767 - added the &equals method for comparing two type
768 constraints (nothingmuch)
769 - added tests for this (nothingmuch)
771 * Moose::Meta::TypeConstraint
772 - add the &parents method, which is just an alias to &parent.
773 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
775 * Moose::Meta::TypeConstraint::Class
776 - added the class attribute for introspection purposes
778 - added tests for this
780 * Moose::Meta::TypeConstraint::Enum
781 Moose::Meta::TypeConstraint::Role
782 - broke these out into their own classes (nothingmuch)
784 * Moose::Cookbook::Recipe*
785 - fixed references to test file locations in the POD
786 and updated up some text for new Moose features
790 - Added &resolve_metaclass_alias, a helper function for finding an actual
791 class for a short name (e.g. in the traits list)
793 0.40 Fri. March 14, 2008
794 - I hate Pod::Coverage
796 0.39 Fri. March 14, 2008
798 - documenting the use of '+name' with attributes
799 that come from recently composed roles. It makes
800 sense, people are using it, and so why not just
801 officially support it.
802 - fixing the 'extends' keyword so that it will not
803 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
806 - added the perl -Moose=+Class::Name feature to allow
807 monkeypatching of classes in one liners
810 - fixing the 'apply_all_roles' keyword so that it will not
811 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
814 - added ->create method which now supports roles (thanks to jrockway)
815 - added tests for this
816 - added ->create_anon_class which now supports roles and caching of
817 the results (thanks to jrockway)
818 - added tests for this
819 - made ->does_role a little more forgiving when it is
820 checking a Class::MOP era metaclasses.
822 * Moose::Meta::Role::Application::ToInstance
823 - it is now possible to pass extra params to be used when
824 a role is applied to an the instance (rebless_params)
825 - added tests for this
827 * Moose::Util::TypeConstraints
828 - class_type now accepts an optional second argument for a
829 custom message. POD anotated accordingly (groditi)
830 - added tests for this
831 - it is now possible to make anon-enums by passing 'enum' an
832 ARRAY ref instead of the $name => @values. Everything else
834 - added tests for this
837 - making test for using '+name' on attributes consumed
838 from a role, it works and makes sense too.
840 * Moose::Meta::Attribute
841 - fix handles so that it doesn't return nothing
842 when the method cannot be found, not sure why
843 it ever did this originally, this means we now
844 have slightly better support for AUTOLOADed
846 - added more delegation tests
847 - adding ->does method to this so as to better
848 support traits and their introspection.
849 - added tests for this
852 - localizing the Data::Dumper configurations so
853 that it does not pollute others (RT #33509)
854 - made ->does a little more forgiving when it is
855 passed Class::MOP era metaclasses.
857 0.38 Fri. Feb. 15, 2008
858 * Moose::Meta::Attribute
859 - fixed initializer to correctly do
860 type checking and coercion in the
862 - added tests for this
865 - fixed some finicky tests (thanks to konobi)
867 0.37 Thurs. Feb. 14, 2008
869 - fixed some details in Moose::init_meta
870 and its superclass handling (thanks thepler)
871 - added tests for this (thanks thepler)
872 - 'has' now dies if you don't pass in name
874 - added the 'make_immutable' keyword as a shortcut
878 Moose::Meta::Method::Constructor
879 Moose::Meta::Attribute
880 - making (init_arg => undef) work here too
881 (thanks to nothingmuch)
883 * Moose::Meta::Attribute
884 Moose::Meta::Method::Constructor
885 Moose::Meta::Method::Accessor
886 - make lazy attributes respect attr initializers (rjbs)
887 - added tests for this
889 * Moose::Util::TypeConstraints
890 Moose::Util::TypeConstraints::OptimizedConstraints
891 Moose::Meta::TypeConstraints
892 Moose::Meta::Attribute
893 Moose::Meta::Method::Constructor
894 Moose::Meta::Method::Accessor
895 - making type errors use the
896 assigned message (thanks to Sartak)
897 - added tests for this
899 * Moose::Meta::Method::Destructor
900 - making sure DESTROY gets inlined properly
901 with successive DEMOLISH calls (thanks to manito)
903 * Moose::Meta::Attribute
904 Moose::Meta::Method::Accessor
905 - fixed handling of undef with type constraints
907 - added tests for this
910 - added &get_all_init_args and &get_all_attribute_values
911 (thanks to Sartak and nothingmuch)
913 0.36 Sat. Jan. 26, 2008
915 Moose::Meta::Attribute
916 - role type tests now support when roles are
917 applied to non-Moose classes (found by ash)
918 - added tests for this (thanks to ash)
919 - couple extra tests to boost code coverage
921 * Moose::Meta::Method::Constructor
922 - improved fix for handling Class::MOP attributes
923 - added test for this
926 - handled the add_attribute($attribute_meta_object)
928 - added test for this
930 0.35 Tues. Jan. 22, 2008
931 * Moose::Meta::Method::Constructor
932 - fix to make sure even Class::MOP attributes
933 are handled correctly (Thanks to Dave Rolsky)
934 - added test for this (also Dave Rolsky)
937 - improved error message on _apply_all_roles,
938 you should now use Moose::Util::apply_all_roles
939 and you shouldnt have been using a _ prefixed
940 method in the first place ;)
942 0.34 Mon. Jan. 21, 2008
943 ~~~ more misc. doc. fixes ~~~
944 ~~ updated copyright dates ~~
946 Moose is now a postmodern object system :)
947 - (see the POD for details)
949 * <<Role System Refactoring>>
950 - this release contains a major reworking and
951 cleanup of the role system
952 - 100% backwards compat.
953 - Role application now restructured into seperate
954 classes based on type of applicants
955 - Role summation (combining of more than one role)
956 is much cleaner and anon-classes are no longer
958 - new Composite role metaclass
959 - runtime application of roles to instances
960 is now more efficient and re-uses generated
961 classes when applicable
963 * <<New Role composition features>>
964 - methods can now be excluded from a given role
966 - methods can now be aliased to another name (and
967 still retain the original as well)
969 * Moose::Util::TypeConstraints::OptimizedConstraints
970 - added this module (see above)
973 - fixed the &_process_attribute method to be called
974 by &add_attribute, so that the API is now correct
976 * Moose::Meta::Method::Accessor
977 - fixed bug when passing a list of values to
978 an accessor would get (incorrectly) ignored.
979 Thanks to Sartak for finding this ;)
980 - added tests for this (Sartak again)
982 * Moose::Meta::Method::Accessor
983 Moose::Meta::Method::Constructor
984 Moose::Meta::Attribute
985 Moose::Meta::TypeConstraint
986 Moose::Meta::TypeCoercion
987 - lots of cleanup of such things as:
989 - type constraint handling
990 - error handling/messages
991 (thanks to nothingmuch)
993 * Moose::Meta::TypeConstraint::Parameterizable
994 - added this module to support the refactor
995 in Moose::Meta::TypeConstraint::Parameterized
997 * Moose::Meta::TypeConstraint::Parameterized
998 - refactored how these types are handled so they
999 are more generic and not confined to ArrayRef
1003 - shortened some file names for better VMS support (RT #32381)
1005 0.33 Fri. Dec. 14, 2007
1006 !! Moose now loads 2 x faster !!
1007 !! with new Class::MOP 0.49 !!
1009 ++ new oose.pm module to make command line
1010 Moose-ness easier (see POD docs for more)
1012 * Moose::Meta::Class
1014 - several tweaks to take advantage of the
1015 new method map caching in Class::MOP
1017 * Moose::Meta::TypeConstraint::Parameterized
1018 - allow subtypes of ArrayRef and HashRef to
1019 be used as a container (sartak)
1020 - added tests for this
1021 - basic support for coercion to ArrayRef and
1022 HashRef for containers (sartak)
1023 - added tests for this
1025 * Moose::Meta::TypeCoercion
1026 - coercions will now create subtypes as needed
1027 so you can now add coercions to parameterized
1028 types without having to explictly define them
1029 - added tests for this
1031 * Moose::Meta::Method::Accessor
1032 - allow subclasses to decide whether we need
1033 to copy the value into a new variable (sartak)
1035 0.32 Tues. Dec. 4, 2007
1036 * Moose::Util::TypeConstraints
1037 - fixing how subtype aliases of unions work
1038 they should inherit the parent's coercion
1039 - added tests for this
1040 - you can now define multiple coercions on
1041 a single type at different times instead of
1042 having to do it all in one place
1043 - added tests for this
1045 * Moose::Meta::TypeConstraint
1046 - there is now a default constraint of sub { 1 }
1047 instead of Moose::Util::TypeConstraints setting
1050 * Moose::Meta::TypeCoercion
1051 * Moose::Meta::TypeCoercion::Union
1052 - added the &has_coercion_for_type and
1053 &add_type_coercions methods to support the
1054 new features above (although you cannot add
1055 more type coercions for Union types)
1057 0.31 Mon. Nov. 26, 2007
1058 * Moose::Meta::Attribute
1059 - made the +attr syntax handle extending types with
1060 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1061 now works if the original foo is an ArrayRef.
1062 - added tests for this.
1063 - delegation now works even if the attribute does not
1064 have a reader method using the get_read_method_ref
1065 method from Class::MOP::Attribute.
1066 - added tests for this
1067 - added docs for this
1069 * Moose::Util::TypeConstraints
1070 - passing no "additional attribute info" to
1071 &find_or_create_type_constraint will no longer
1072 attempt to create an __ANON__ type for you,
1073 instead it will just return undef.
1074 - added docs for this
1076 0.30 Fri. Nov. 23, 2007
1077 * Moose::Meta::Method::Constructor
1078 -builder related bug in inlined constructor. (groditi)
1080 * Moose::Meta::Method::Accessor
1081 - genereate unnecessary calls to predicates and refactor
1082 code generation for runtime speed (groditi)
1084 * Moose::Util::TypeConstraints
1085 - fix ClassName constraint to introspect symbol table (mst)
1086 - added more tests for this (mst)
1087 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1088 with work correctly.
1089 - added tests for this
1092 - adding the link to Recipie 11 (written by Sartak)
1093 - adding test for SYNOPSIS code
1096 - New tests for builder bug. Upon instantiation, if an
1097 attribute had a builder, no value and was not lazy the
1098 builder default was not getting run, oops. (groditi)
1100 0.29 Tues. Nov. 13, 2007
1101 * Moose::Meta::Attribute
1102 - Fix error message on missing builder method (groditi)
1104 * Moose::Meta::Method::Accessor
1105 - Fix error message on missing builder method (groditi)
1108 - Add test to check for the correct error message when
1109 builder method is missing (groditi)
1111 0.28 Tues. Nov. 13, 2007
1112 - 0.27 packaged incorrectly (groditi)
1114 0.27 Tues. Nov. 13, 2007
1115 * Moose::Meta::Attribute
1116 - Added support for the new builder option (groditi)
1117 - Added support for lazy_build option (groditi)
1118 - Changed slot initialization for predicate changes (groditi)
1120 * Moose::Meta::Method::Accessor
1121 - Added support for lazy_build option (groditi)
1122 - Fix inline methods to work with corrected predicate
1125 * Moose::Meta::Method::Constructor
1126 - Added support for lazy_build option (groditi)
1129 - tests for builder and lazy_build (groditi)
1131 * fixing some misc. bits in the docs that
1132 got mentioned on CPAN Forum & perlmonks
1135 - fixed how required methods are handled
1136 when they encounter overriden or modified
1137 methods from a class (thanks to confound).
1138 - added tests for this
1140 * Moose::Util::TypeConstraint
1141 - fixed the type notation parser so that
1142 the | always creates a union and so is
1143 no longer a valid type char (thanks to
1144 konobi, mugwump and #moose for working
1146 - added more tests for this
1148 0.26 Thurs. Sept. 27, 2007
1151 * Parameterized Types
1152 We now support parameterized collection types, such as:
1153 ArrayRef[Int] # array or integers
1154 HashRef[Object] # a hash with object values
1155 They can also be nested:
1156 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1157 And work with the type unions as well:
1158 ArrayRef[Int | Str] # array of integers of strings
1160 * Better Framework Extendability
1161 Moose.pm is now "extendable" such that it is now much
1162 easier to extend the framework and add your own keywords
1163 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1164 section of the Moose.pm docs.
1167 In an effort to begin documenting some of the various
1168 details of Moose as well as some common idioms, we have
1169 created Moose::Cookbook::Snacks as a place to find
1170 small (easily digestable) nuggets of Moose code.
1173 ~ Several doc updates/cleanup thanks to castaway ~
1175 - converted build system to use Module::Install instead of
1176 Module::Build (thanks to jrockway)
1179 - added all the meta classes to the immutable list and
1180 set it to inline the accessors
1181 - fix import to allow Sub::Exporter like { into => }
1182 and { into_level => } (perigrin)
1183 - exposed and documented init_meta() to allow better
1184 embedding and extending of Moose (perigrin)
1187 - complete re-organization of the test suite
1188 - added some new tests as well
1189 - finally re-enabled the Moose::POOP test since
1190 the new version of DBM::Deep now works again
1193 * Moose::Meta::Class
1194 - fixed very odd and very nasty recursion bug with
1196 - added tests for this (eilara)
1198 * Moose::Meta::Attribute
1199 Moose::Meta::Method::Constructor
1200 Moose::Meta::Method::Accessor
1201 - fixed issue with overload::Overloaded getting called
1202 on non-blessed items. (RT #29269)
1203 - added tests for this
1205 * Moose::Meta::Method::Accessor
1206 - fixed issue with generated accessor code making
1207 assumptions about hash based classes (thanks to dexter)
1209 * Moose::Coookbook::Snacks
1210 - these are bits of documentation, not quite as big as
1211 Recipes but which have no clear place in the module docs.
1212 So they are Snacks! (horray for castaway++)
1214 * Moose::Cookbook::Recipe4
1215 - updated it to use the new ArrayRef[MyType] construct
1216 - updated the accompanying test as well
1218 +++ Major Refactor of the Type Constraint system +++
1219 +++ with new features added as well +++
1221 * Moose::Util::TypeConstraint
1222 - no longer uses package variable to keep track of
1223 the type constraints, now uses the an instance of
1224 Moose::Meta::TypeConstraint::Registry to do it
1225 - added more sophisticated type notation parsing
1227 - added tests for this
1229 * Moose::Meta::TypeConstraint
1230 - some minor adjustments to make subclassing easier
1231 - added the package_defined_in attribute so that we
1232 can track where the type constraints are created
1234 * Moose::Meta::TypeConstraint::Union
1235 - this is now been refactored to be a subclass of
1236 Moose::Meta::TypeConstraint
1238 * Moose::Meta::TypeCoercion::Union
1239 - this has been added to service the newly refactored
1240 Moose::Meta::TypeConstraint::Union and is itself
1241 a subclass of Moose::Meta::TypeCoercion
1243 * Moose::Meta::TypeConstraint::Parameterized
1244 - added this module (taken from MooseX::AttributeHelpers)
1245 to help construct nested collection types
1246 - added tests for this
1248 * Moose::Meta::TypeConstraint::Registry
1249 - added this class to keep track of type constraints
1251 0.25 Mon. Aug. 13, 2007
1253 - Documentation update to reference Moose::Util::TypeConstraints
1254 under 'isa' in 'has' for how to define a new type
1255 (thanks to shlomif).
1257 * Moose::Meta::Attribute
1258 - required attributes now will no longer accept undef
1259 from the constructor, even if there is a default and lazy
1260 - added tests for this
1261 - default subroutines must return a value which passes the
1263 - added tests for this
1265 * Moose::Meta::Attribute
1266 * Moose::Meta::Method::Constructor
1267 * Moose::Meta::Method::Accessor
1268 - type-constraint tests now handle overloaded objects correctly
1269 in the error message
1270 - added tests for this (thanks to EvanCarroll)
1272 * Moose::Meta::TypeConstraint::Union
1273 - added (has_)hand_optimized_constraint to this class so that
1274 it behaves as the regular Moose::Meta::TypeConstraint does.
1277 - large refactoring of this code
1278 - added several more tests
1279 - tests for subtle conflict resolition issues
1280 added, but not currently running
1283 * Moose::Cookbook::Recipe7
1284 - added new recipe for augment/inner functionality
1286 - added test for this
1289 - a formal definition of roles (still in progress)
1292 - utilities for easier working with Moose classes
1293 - added tests for these
1296 - This contains Moose specific test functions
1297 - added tests for these
1299 0.24 Tues. July 3, 2007
1300 ~ Some doc updates/cleanup ~
1302 * Moose::Meta::Attribute
1303 - added support for roles to be given as parameters
1304 to the 'handles' option.
1305 - added tests and docs for this
1306 - the has '+foo' attribute form now accepts changes to
1307 the lazy option, and the addition of a handles option
1308 (but not changing the handles option)
1309 - added tests and docs for this
1312 - required methods are now fetched using find_method_by_name
1313 so that required methods can come from superclasses
1314 - adjusted tests for this
1316 0.23 Mon. June 18, 2007
1317 * Moose::Meta::Method::Constructor
1318 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1319 * Moose::Meta::Class
1320 - Modify make_immutable to work with the new Class::MOP immutable
1321 mechanism + POD + very basic test (groditi)
1322 * Moose::Meta::Attribute
1323 - Fix handles to use goto() so that caller() comes out properly on
1324 the other side (perigrin)
1326 0.22 Thurs. May 31, 2007
1327 * Moose::Util::TypeConstraints
1328 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1329 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1330 prototypes for functions
1331 - added the ClassName type constraint, this checks for strings
1332 which will respond true to ->isa(UNIVERSAL).
1333 - added tests and docs for this
1334 - subtyping just in name now works correctly by making the
1335 default for where be { 1 }
1336 - added test for this
1338 * Moose::Meta::Method::Accessor
1339 - coerce and lazy now work together correctly, thanks to
1340 merlyn for finding this bug
1341 - tests added for this
1342 - fix reader presedence bug in Moose::Meta::Attribute + tests
1345 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1346 a HASH-ref and missed. This produces better error messages then
1347 having it die cause undef is not a HASH.
1348 - added tests for this
1350 0.21 Thursday, May 2nd, 2007
1352 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1353 - modified unimport to remove super and inner along with the rest
1354 - altered unimport tests to handle this
1357 - altered super export to populate SUPER_SLOT
1359 * Moose::Meta::Class
1360 - altered augment and override modifier application to use *_SLOT
1361 - modified tests for these to unimport one test class each to test
1364 - fixed issue where custom attribute metaclasses
1365 where not handled correctly in roles
1366 - added tests for this
1368 * Moose::Meta::Class
1369 - fixed issue where extending metaclasses with
1370 roles would blow up. Thanks to Aankhen`` for
1371 finding this insidious error, and it's solution.
1373 ~~ lots of spelling and grammer fixes in the docs,
1374 many many thanks to rlb3 and Aankhen for these :)
1376 0.20 Friday, April 6th, 2007
1377 >> I messed up the SKIP logic in one test
1378 so this release is just to fix that.
1381 - 'has' now also accepts an ARRAY ref
1382 to create multiple attrs (see docs)
1383 (thanks to konobi for this)
1384 - added tests and docs
1386 0.19 Thurs. April 5th, 2007
1387 ~~ More documentation updates ~~
1389 * Moose::Util::TypeConstraints
1390 - 'type' now supports messages as well
1391 thanks to phaylon for finding this
1392 - added tests for this
1393 - added &list_all_type_constraints and
1394 &list_all_builtin_type_constraints
1395 functions to facilitate introspection.
1397 * Moose::Meta::Attribute
1398 - fixed regexp 'handles' declarations
1399 to build the list of delegated methods
1400 correctly (and not override important
1401 things like &new) thanks to ashleyb
1403 - added tests and docs for this
1404 - added the 'documentation' attributes
1405 so that you can actually document your
1406 attributes and inspect them through the
1408 - added tests and docs for this
1410 * Moose::Meta::Class
1411 - when loading custom attribute metaclasses
1412 it will first look in for the class in the
1413 Moose::Meta::Attribute::Custom::$name, and
1414 then default to just loading $name.
1415 - added tests and docs for this
1417 * Moose::Meta::TypeConstraint
1418 - type constraints now stringify to their names.
1419 - added test for this
1422 - added tests to assure we work with Module::Refresh
1423 - added stricter test skip logic in the Moose POOP
1424 test, ask Rob Kinyon why.
1425 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1427 0.18 Sat. March 10, 2007
1428 ~~ Many, many documentation updates ~~
1431 - We now use Class::MOP::load_class to
1433 - added tests to show types and subtypes
1434 working with Declare::Constraints::Simple
1435 and Test::Deep as constraint engines.
1438 !! You must have Class::MOP 0.37_001 !!
1439 !! for this developer release to work !!
1441 This release was primarily adding the immutable
1442 feature to Moose. An immutable class is one which
1443 you promise not to alter. When you set the class
1444 as immutable it will perform various bits of
1445 memoization and inline certain part of the code
1446 (constructors, destructors and accessors). This
1447 minimizes (and in some cases totally eliminates)
1448 one of Moose's biggest performance hits. This
1449 feature is not on by default, and is 100% optional.
1450 It has several configurable bits as well, so you
1451 can pick and choose to your specific needs.
1453 The changes involved in this were fairly wide and
1454 highly specific, but 100% backwards compatible, so
1455 I am not going to enumerate them here. If you are
1456 truely interested in what was changed, please do
1459 0.17 Tues. Nov. 14, 2006
1460 * Moose::Meta::Method::Accessor
1461 - bugfix for read-only accessors which
1462 are have a type constraint and lazy.
1463 Thanks to chansen for finding it.
1465 0.16 Tues. Nov. 14, 2006
1467 There are some speed improvements in this release,
1468 but they are only the begining, so stay tuned.
1471 - BUILDALL and DEMOLISHALL no longer get
1472 called unless they actually need to be.
1473 This gave us a signifigant speed boost
1474 for the cases when there is no BUILD or
1475 DEMOLISH method present.
1477 * Moose::Util::TypeConstraints
1478 * Moose::Meta::TypeConstraint
1479 - added an 'optimize_as' option to the
1480 type constraint, which allows for a
1481 hand optimized version of the type
1482 constraint to be used when possible.
1483 - Any internally created type constraints
1484 now provide an optimized version as well.
1486 0.15 Sun. Nov. 5, 2006
1488 This version of Moose *must* have Class::MOP 0.36 in order
1489 to work correctly. A number of small internal tweaks have
1490 been made in order to be compatible with that release.
1492 * Moose::Util::TypeConstraints
1493 - added &unimport so that you can clean out
1494 your class namespace of these exported
1497 * Moose::Meta::Class
1498 - fixed minor issue which occasionally
1499 comes up during global destruction
1501 - moved Moose::Meta::Method::Overriden into
1505 - moved Moose::Meta::Role::Method into
1508 * Moose::Meta::Attribute
1509 - changed how we do type checks so that
1510 we reduce the overall cost, but still
1513 - moved accessor generation methods to
1514 Moose::Meta::Method::Accessor to
1515 conform to the API changes from
1518 * Moose::Meta::TypeConstraint
1519 - changed how constraints are compiled
1520 so that we do less recursion and more
1521 iteration. This makes the type check
1523 - moved Moose::Meta::TypeConstraint::Union
1526 * Moose::Meta::Method::Accessor
1527 - created this from methods formerly found in
1528 Moose::Meta::Attribute
1530 * Moose::Meta::Role::Method
1531 - moved this from Moose::Meta::Role
1533 * Moose::Meta::Method::Overriden
1534 - moved this from Moose::Meta::Class
1536 * Moose::Meta::TypeConstraint::Union
1537 - moved this from Moose::Meta::TypeConstraint
1539 0.14 Mon. Oct. 9, 2006
1541 * Moose::Meta::Attribute
1542 - fixed lazy attributes which were not getting
1543 checked with the type constraint (thanks ashley)
1544 - added tests for this
1545 - removed the over-enthusiastic DWIMery of the
1546 automatic ArrayRef and HashRef defaults, it
1547 broke predicates in an ugly way.
1548 - removed tests for this
1550 0.13 Sat. Sept. 30, 2006
1552 This version of Moose *must* have Class::MOP 0.35 in order
1553 to work correctly. A number of small internal tweaks have
1554 been made in order to be compatible with that release.
1557 - Removed the use of UNIVERSAL::require to be a better
1558 symbol table citizen and remove a dependency
1559 (thanks Adam Kennedy)
1561 **~~ removed experimental & undocumented feature ~~**
1562 - commented out the 'method' and 'self' keywords, see the
1563 comments for more info.
1566 - added a FAQ and WTF files to document frequently
1567 asked questions and common problems
1569 * Moose::Util::TypeConstraints
1570 - added GlobRef and FileHandle type constraint
1571 - added tests for this
1573 * Moose::Meta::Attribute
1574 - if your attribute 'isa' ArrayRef of HashRef, and you have
1575 not explicitly set a default, then make the default DWIM.
1576 This will also work for subtypes of ArrayRef and HashRef
1578 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1579 - new test added for this (thanks to ashley)
1582 - added basic support for runtime role composition
1583 but this is still *highly experimental*, so feedback
1584 is much appreciated :)
1585 - added tests for this
1587 * Moose::Meta::TypeConstraint
1588 - the type constraint now handles the coercion process
1589 through delegation, this is to support the coercion
1592 * Moose::Meta::TypeConstraint::Union
1593 - it is now possible for coercions to be performed
1595 - added tests for this (thanks to konobi)
1597 * Moose::Meta::TypeCoercion
1598 - properly capturing error when type constraint
1602 - Scalar::Util 1.18 is bad on Win32, so temporarily
1603 only require version 1.17 for Win32 and cygwin.
1604 (thanks Adam Kennedy)
1606 0.12 Sat. Sept. 1, 2006
1608 - Recipe5 (subtypes & coercion) has been written
1611 - fixed "bad meta" error message to be more descriptive
1612 - fixed &unimport to not remove the &inner and &super
1613 keywords because we need to localize them.
1614 - fixed number of spelling/grammer issues, thanks Theory :)
1616 **~~ experimental & undocumented feature ~~**
1617 - added the method and self keywords, they are basically
1618 just sugar, and they may not stay around.
1621 - added &dump method to easily Data::Dumper
1624 * Moose::Meta::TypeConstraint
1625 - added the &is_a_type_of method to check both the current
1626 and the subtype of a method (similar to &isa with classes)
1629 - this is now a subclass of Class::MOP::Module, and no longer
1630 creates the _role_meta ugliness of before.
1631 - fixed tests to reflect this change
1633 0.11 Wed. July 12, 2006
1635 - added an &unimport method to remove all the keywords
1636 that Moose will import, simply add 'no Moose' to the
1637 bottom of your class file.
1640 - fixed some test failures caused by a forgotten test
1643 0.10 Thurs. July 6, 2006
1645 - improved error message when loading modules so
1646 it is less confusing when you load a role.
1647 - added &calculate_all_roles method to
1648 Moose::Meta::Class and Moose::Meta::Role
1651 This module has been tested against Class::MOP 0.30
1652 but it does not yet utilize the optimizations
1653 it makes available. Stay tuned for that ;)
1655 0.09_03 Fri. June 23, 2006
1656 ++ DEVELOPER RELEASE ++
1658 - 'use strict' and 'use warnings' are no longer
1659 needed in Moose classes, Moose itself will
1660 turn them on for you.
1661 - added tests for this
1662 - moved code from exported subs to private methods
1663 in Moose::Meta::Class
1666 - as with Moose, strict and warnings are
1667 automatically turned on for you.
1668 - added tests for this
1671 - now handles an edge case for override errors
1672 - added tests for this
1673 - added some more edge case tests
1675 0.09_02 Tues. May 16, 2006
1676 ++ DEVELOPER RELEASE ++
1678 - added prototypes to the exported subs
1682 - added prototypes to the exported subs
1685 * Moose::Util::TypeConstraints
1686 - cleaned up prototypes for the subs
1689 0.09_01 Fri. May 12, 2006
1690 ++ DEVELOPER RELEASE ++
1691 - This release works in combination with
1692 Class::MOP 0.29_01, it is a developer
1693 release because it uses the a new
1694 instance sub-protocol and a fairly
1695 complete Role implementation. It has
1696 not yet been optimized, so it slower
1697 the the previous CPAN version. This
1698 release also lacks good updated docs,
1699 the official release will have updated docs.
1702 - refactored the keyword exports
1703 - 'with' now checks Role validaity and
1704 accepts more than one Role at a time
1705 - 'extends' makes metaclass adjustments as
1706 needed to ensure metaclass compatibility
1709 - refactored the keyword exports
1710 - 'with' now checks Role validaity and
1711 accepts more than one Role at a time
1713 * Moose::Util::TypeConstraints
1714 - added the 'enum' keyword for simple
1715 string enumerations which can be used as
1717 - see example of usage in t/202_example.t
1720 - more careful checking of params to new()
1723 - much work done on the role composition
1724 - many new tests for conflict detection
1725 and composition edge cases
1726 - not enough documentation, I suggest
1727 looking at the tests
1729 * Moose::Meta::Instance
1730 - added new Instance metaclass to support
1731 the new Class::MOP instance protocol
1733 * Moose::Meta::Class
1734 - some small changes to support the new
1736 - some small additions to support Roles
1738 * Moose::Meta::Attribute
1739 - some improvements to the accessor generation code
1741 - some small changes to support the new
1743 - (still somewhat) experimental delegation support
1744 with the 'handles' option
1745 - added several tests for this
1746 - no docs for this yet
1748 0.05 Thurs. April 27, 2006
1750 - keywords are now exported with Sub::Exporter
1751 thanks to chansen for this commit
1752 - has keyword now takes a 'metaclass' option
1753 to support custom attribute meta-classes
1754 on a per-attribute basis
1755 - added tests for this
1756 - the 'has' keyword not accepts inherited slot
1757 specifications (has '+foo'). This is still an
1758 experimental feature and probably not finished
1759 see t/038_attribute_inherited_slot_specs.t for
1760 more details, or ask about it on #moose
1761 - added tests for this
1764 - keywords are now exported with Sub::Exporter
1766 * Moose::Utils::TypeConstraints
1767 - reorganized the type constraint hierarchy, thanks
1768 to nothingmuch and chansen for his help and advice
1770 - added some tests for this
1771 - keywords are now exported with Sub::Exporter
1772 thanks to chansen for this commit
1774 * Moose::Meta::Class
1775 - due to changes in Class::MOP, we had to change
1776 construct_instance (for the better)
1778 * Moose::Meta::Attribute
1779 - due to changes in Class::MOP, we had to add the
1780 initialize_instance_slot method (it's a good thing)
1782 * Moose::Meta::TypeConstraint
1783 - added type constraint unions
1784 - added tests for this
1785 - added the is_subtype_of predicate method
1786 - added tests for this
1788 0.04 Sun. April 16th, 2006
1790 - Roles can now consume other roles
1791 - added tests for this
1792 - Roles can specify required methods now with
1793 the requires() keyword
1794 - added tests for this
1797 - ripped out much of it's guts ,.. much cleaner now
1798 - added required methods and correct handling of
1799 them in apply() for both classes and roles
1800 - added tests for this
1801 - no longer adds a does() method to consuming classes
1802 it relys on the one in Moose::Object
1803 - added roles attribute and some methods to support
1804 roles consuming roles
1806 * Moose::Meta::Attribute
1807 - added support for triggers on attributes
1808 - added tests for this
1809 - added support for does option on an attribute
1810 - added tests for this
1812 * Moose::Meta::Class
1813 - added support for attribute triggers in the
1815 - added tests for this
1818 - Moose no longer creates a subtype for your class
1819 if a subtype of the same name already exists, this
1820 should DWIM in 99.9999% of all cases
1822 * Moose::Util::TypeConstraints
1823 - fixed bug where incorrect subtype conflicts were
1825 - added test for this
1828 - this class can now be extended with 'use base' if
1829 you need it, it properly loads the metaclass class now
1830 - added test for this
1832 0.03_02 Wed. April 12, 2006
1834 - you must now explictly use Moose::Util::TypeConstraints
1835 it no longer gets exported for you automatically
1838 - new() now accepts hash-refs as well as key/value lists
1839 - added does() method to check for Roles
1840 - added tests for this
1842 * Moose::Meta::Class
1843 - added roles attribute along with the add_role() and
1845 - added tests for this
1848 - now adds a does() method to consuming classes
1849 which tests the class's hierarchy for roles
1850 - added tests for this
1852 0.03_01 Mon. April 10, 2006
1854 - added new Role recipe (no content yet, only code)
1857 - added 'with' keyword for Role support
1858 - added test and docs for this
1859 - fixed subtype quoting bug
1860 - added test for this
1864 - added test and docs
1866 * Moose::Util::TypeConstraints
1867 - added the message keyword to add custom
1868 error messages to type constraints
1871 - the meta role to support Moose::Role
1872 - added tests and docs
1874 * Moose::Meta::Class
1875 - moved a number of things from Moose.pm
1876 to here, they should have been here
1879 * Moose::Meta::Attribute
1880 - moved the attribute option macros here
1881 instead of putting them in Moose.pm
1883 * Moose::Meta::TypeConstraint
1884 - added the message attributes and the
1886 - added tests and docs for this
1888 0.03 Thurs. March 30, 2006
1890 - added the Moose::Cookbook with 5 recipes,
1891 describing all the stuff Moose can do.
1894 - fixed an issue with &extends super class loading
1895 it now captures errors and deals with inline
1896 packages correctly (bug found by mst, solution
1898 - added super/override & inner/augment features
1899 - added tests and docs for these
1902 - BUILDALL now takes a reference of the %params
1903 that are passed to &new, and passes that to
1906 * Moose::Util::TypeConstraints
1907 - Type constraints now survive runtime reloading
1908 - added test for this
1910 * Moose::Meta::Class
1911 - fixed the way attribute defaults are handled
1912 during instance construction (bug found by chansen)
1914 * Moose::Meta::Attribute
1915 - read-only attributes now actually enforce their
1916 read-only-ness (this corrected in Class::MOP as
1919 0.02 Tues. March 21, 2006
1921 - many more tests, fixing some bugs and
1923 - &extends now loads the base module with
1925 - added UNIVERSAL::require to the
1928 - each new Moose class will also create
1929 and register a subtype of Object which
1930 correspond to the new Moose class.
1931 - the 'isa' option in &has now only
1932 accepts strings, and will DWIM in
1935 * Moose::Util::TypeConstraints
1936 - added type coercion features
1937 - added tests for this
1938 - added support for this in attributes
1939 and instance construction
1941 - type construction no longer creates a
1942 function, it registers the type instead.
1943 - added several functions to get the
1947 - BUILDALL and DEMOLISHALL were broken
1948 because of a mis-named hash key, Whoops :)
1950 * Moose::Meta::Attribute
1951 - adding support for coercion in the
1952 autogenerated accessors
1954 * Moose::Meta::Class
1955 - adding support for coercion in the
1956 instance construction
1958 * Moose::Meta::TypeConstraint
1959 * Moose::Meta::TypeCoercion
1960 - type constraints and coercions are now
1961 full fledges meta-objects
1963 0.01 Wed. March 15, 2006
1964 - Moooooooooooooooooose!!!