1 Revision history for Perl extension Moose
4 * Moose::Meta::Method::Constructor
5 - Fix inlined constructor so that values produced by default
6 or builder methods are coerced as required + test (t0m)
8 * Moose::Meta::Attribute
9 - Fix lazy built attributes so that type coercion always
10 occurs on them when accessed with get_value method + test (t0m)
13 - This is a new helper module for writing "Moose-alike"
14 modules. This should make the lives of MooseX module authors
15 much easier. (Dave Rolsky)
18 * Moose::Cookbook::Meta::Recipe5
19 - Implemented metaclass traits (and wrote a recipe for it):
21 use Moose -traits => 'Foo'
23 This should make writing small Moose extensions a little
27 * Moose::Cookbook::Extending::Recipe1
28 * Moose::Cookbook::Extending::Recipe2
29 - Rewrote extending and embedding moose documentation and
30 recipes to use Moose::Exporter (Dave Rolsky)
34 - These two modules now warn when you load them from the main
35 package "main" package, because we will not export sugar to
36 main. Previously it just did nothing. (Dave Rolsky)
38 0.55 Sun August 3, 2008
39 * Moose::Meta::Attribute
40 - breaking down the way 'handles' methods are
41 created so that the process can be more easily
42 overridden by subclasses (stevan)
44 * Moose::Meta::TypeConstraint
45 - fixing what is passed into a ->message with
46 the type constraints (RT #37569)
47 - added tests for this (Charles Alderman)
49 * Moose::Util::TypeConstraints
50 - fix coerce to accept anon types like subtype can (mst)
53 - reorganized the recipes into sections - Basics, Roles, Meta,
54 Extending - and wrote abstracts for each section (Dave Rolsky)
56 * Moose::Cookbook::Basics::Recipe10
57 - A new recipe that demonstrates operator overloading
58 in combination with Moose. (bluefeet)
60 * Moose::Cookbook::Meta::Recipe1
61 - an introduction to what meta is and why you'd want to make
62 your own metaclass extensions (Dave Rolsky)
64 * Moose::Cookbook::Meta::Recipe4
65 - a very simple metaclass example (Dave Rolsky)
67 * Moose::Cookbook::Extending::Recipe1
68 - how to write a Moose-alike module to use your own object base
71 * Moose::Cookbook::Extending::Recipe2
72 - how to write modules with an API just like C<Moose.pm> (Dave
76 - Tons of fixes, both syntactical and grammatical (Dave
79 0.54 Thurs. July 3, 2008
80 ... this is not my day today ...
82 * Moose::Meta::Attribute
83 - fixed legal_options_for_inheritance such that
84 clone_and_inherit options still works for
85 Class::MOP::Attribute objects and therefore
86 does not break MooseX::AttributeHelpers
89 0.53 Thurs. July 3, 2008
90 * Whoops, I guess I should run 'make manifest' before
91 actually releasing the module. No actual changes
92 in this release, except the fact that it includes
93 the changes that I didn't include in the last
96 0.52 Thurs. July 3, 2008
98 - added "FEATURE REQUESTS" section to the Moose docs
99 to properly direct people (stevan) (RT #34333)
100 - making 'extends' croak if it is passed a Role since
101 this is not ever something you want to do
102 (fixed by stevan, found by obra)
103 - added tests for this (stevan)
106 - adding support for DOES (as in UNIVERSAL::DOES)
108 - added test for this
110 * Moose::Meta::Attribute
111 - added legal_options_for_inheritance (wreis)
112 - added tests for this (wreis)
114 * Moose::Cookbook::Snacks::*
115 - removed some of the unfinished snacks that should
116 not have been released yet. Added some more examples
117 to the 'Keywords' snack. (stevan)
119 * Moose::Cookbook::Style
120 - added general Moose "style guide" of sorts to the
121 cookbook (nothingmuch) (RT #34335)
124 - added more BUILDARGS tests (stevan)
126 0.51 Thurs. Jun 26, 2008
128 - add unimport so "no Moose::Role" actually does
131 * Moose::Meta::Role::Application::ToRole
132 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
133 order to provide its own implementation, that method still got
134 added to the list of required methods for consumers of
135 RoleB. Now an aliased method is only added to the list of
136 required methods if the role doing the aliasing does not
137 provide its own implementation. See Recipe 11 for an example
138 of all this. (Dave Rolsky)
139 - added tests for this
141 * Moose::Meta::Method::Constructor
142 - when a single argument that wasn't a hashref was provided to
143 an immutabilized constructor, the error message was very
144 unhelpful, as opposed to the non-immutable error. Reported by
146 - added test for this (Dave Rolsky)
148 * Moose::Meta::Attribute
149 - added support for meta_attr->does("ShortAlias") (sartak)
150 - added tests for this (sartak)
151 - moved the bulk of the `handles` handling to the new
152 install_delegation method (Stevan)
155 - Added BUILDARGS, a new step in new()
157 * Moose::Meta::Role::Application::RoleSummation
158 - fix typos no one ever sees (sartak)
160 * Moose::Util::TypeConstraints
161 * Moose::Meta::TypeConstraint
162 * Moose::Meta::TypeCoercion
163 - Attempt to work around the ??{ } vs. threads issue
165 - Some null_constraint optimizations
167 0.50 Thurs. Jun 11, 2008
168 - Fixed a version number issue by bumping all modules
171 0.49 Thurs. Jun 11, 2008
172 !! This version now approx. 20-25% !!
173 !! faster with new Class::MOP 0.59 !!
175 * Moose::Meta::Attribute
176 - fixed how the is => (ro|rw) works with
177 custom defined reader, writer and accessor
179 - added docs for this (TODO).
180 - added tests for this (Thanks to Penfold)
181 - added the custom attribute alias for regular
182 Moose attributes which is "Moose"
183 - fix builder and default both being used
188 Moose::Meta::Attribute
190 Moose::Meta::Role::Composite
191 Moose::Util::TypeConstraints
192 - switched usage of reftype to ref because
196 - changing add_package_symbol to use the new
200 - fixed how DEMOLISHALL is called so that it
201 can be overrided in subclasses (thanks to Sartak)
202 - added test for this (thanks to Sartak)
204 * Moose::Util::TypeConstraints
205 - move the ClassName type check code to
206 Class::MOP::is_class_loaded (thanks to Sartak)
208 * Moose::Cookbook::Recipe11
209 - add tests for this (thanks to tokuhirom)
211 0.48 Thurs. May 29, 2008
212 (early morning release engineering)--
214 - fixing the version in Moose::Meta::Method::Destructor
215 which was causing the indexer to choke
217 0.47 Thurs. May 29, 2008
218 (late night release engineering)--
220 - fixing the version is META.yml, no functional
221 changes in this release
223 0.46 Wed. May 28, 2008
224 !! This version now approx. 20-25% !!
225 !! faster with new Class::MOP 0.57 !!
228 - some optimizations of the &initialize method
229 since it is called so often by &meta
233 - now use the get_all_package_symbols from the
234 updated Class::MOP, test suite is now 10 seconds
237 * Moose::Meta::Method::Destructor
238 - is_needed can now also be called as a class
239 method for immutablization to check if the
240 destructor object even needs to be created
243 * Moose::Meta::Method::Destructor
244 Moose::Meta::Method::Constructor
245 - added more descriptive error message to help
246 keep people from wasting time tracking an error
247 that is easily fixed by upgrading.
249 0.45 Saturday, May 24, 2008
251 - Because of work in Class::MOP 0.56, all
252 XS based functionality is now optional
253 and a Pure Perl version is supplied
254 - the CLASS_MOP_NO_XS environment variable
255 can now be used to force non-XS versions
257 - several of the packages have been tweaked
258 to take care of this, mostly we added
259 support for the package_name and name
260 variables in all the Method metaclasses
261 - before/around/after method modifiers now
262 support regexp matching of names
263 (thanks to Takatoshi Kitano)
264 - tests added for this
265 - NOTE: this only works for classes, it
266 is currently not supported in roles,
267 but, ... patches welcome
268 - All usage of Carp::confess have been replaced
269 by Carp::croak in the "keyword" functions since
270 the stack trace is usually not helpful
273 - All usage of Carp::confess have been replaced
274 by Carp::croak in the "keyword" functions since
275 the stack trace is usually not helpful
276 - The 'has' keyword for roles now accepts the
277 same array ref form that Moose.pm does
278 (has [qw/foo bar/] => (is => 'rw', ...))
279 - added test for this
281 * Moose::Meta::Attribute
282 - trigger on a ro-attribute is no longer an
283 error, as it's useful to trigger off of the
287 - added same 'add_package_symbol' fix as in
291 - does_role now handles non-Moose classes
293 - added tests for this
294 - added the 'add_method_modifier' function
295 (thanks to Takatoshi Kitano)
297 * Moose::Util::TypeConstraints
298 - subtypes of parameterizable types now are
299 themselves parameterizable types
301 * Moose::Meta::Method::Constructor
302 - fixed bug where trigger was not being
303 called by the inlined immutable
305 - added test for this (thanks to Caelum)
307 * Moose::Meta::Role::Application::ToInstance
308 - now uses the metaclass of the instance
309 (if possible) to create the anon-class
310 (thanks Jonathan Rockway)
312 * Moose::Cookbook::Recipe22
313 - added the meta-attribute trait recipe
317 - fixed hash-ordering test bug that was
318 causing occasional cpantester failures
319 - renamed the t/000_recipe/*.t tests to be
320 more descriptive (thanks to Sartak)
322 0.44 Sat. May 10, 2008
324 - made make_immutable warning cluck to
325 show where the error is (thanks mst)
328 - BUILDALL and DEMOLISHALL now call
329 ->body when looping through the
330 methods, to avoid the overloaded
332 - fixed issue where DEMOLISHALL was
333 eating the $@ values, and so not
334 working correctly, it still kind of
335 eats them, but so does vanilla perl
336 - added tests for this
338 * Moose::Cookbook::Recipe7
339 - added new recipe for immutable
340 functionality (thanks Dave Rolsky)
342 * Moose::Cookbook::Recipe9
343 - added new recipe for builder and
344 lazy_build (thanks Dave Rolsky)
346 * Moose::Cookbook::Recipe11
347 - added new recipe for method aliasing
348 and exclusion with Roles (thanks Dave Rolsky)
351 - fixed Win32 test failure (thanks spicyjack)
353 ~ removed Build.PL and Module::Build compat
354 since Module::Install has done that.
356 0.43 Wed. April, 30, 2008
358 drink more coffee before
359 doing release engineering
361 - whoops, forgot to do the smolder tests,
362 and we broke some of the custom meta-attr
363 modules. This fixes that.
365 0.42 Mon. April 28, 2008
366 - some bad tests slipped by, nothing else
367 changed in this release (cpantesters++)
369 - upped the Class::MOP dependency to 0.55
370 since we have tests which need the C3
373 0.41 Mon. April 28, 2008
374 ~~ numerous documentation updates ~~
376 - Changed all usage of die to Carp::croak for better
377 error reporting (initial patch by Tod Hagan)
380 - the make_immutable keyword is now deprecated, don't
381 use it in any new code and please fix your old code
382 as well. There will be 2 releases, and then it will
388 - refactored the way inner and super work to avoid
389 any method/@ISA cache penalty (nothingmuch)
392 - fixing &new_object to make sure trigger gets the
393 coerced value (spotted by Charles Alderman on the
395 - added test for this
397 * Moose::Meta::Method::Constructor
398 - immutable classes which had non-lazy attributes were calling
399 the default generating sub twice in the constructor. (bug
400 found by Jesse Luehrs, fixed by Dave Rolsky)
401 - added tests for this (Dave Rolsky)
402 - fix typo in initialize_body method (nothingmuch)
404 * Moose::Meta::Method::Destructor
405 - fix typo in initialize_body method (nothingmuch)
407 * Moose::Meta::Method::Overriden
408 Moose::Meta::Method::Augmented
409 - moved the logic for these into their own
410 classes (nothingmuch)
412 * Moose::Meta::Attribute
413 - inherited attributes may now be extended without
414 restriction on the type ('isa', 'does') (Sartak)
415 - added tests for this (Sartak)
416 - when an attribute property is malformed (such as lazy without
417 a default), give the name of the attribute in the error
419 - added the &applied_traits and &has_applied_traits methods
420 to allow introspection of traits
421 - added tests for this
422 - moved 'trait' and 'metaclass' argument handling to here from
424 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
425 '+foo' syntax) (nothingmuch)
426 - added tests for this (t0m)
429 - localize $@ inside DEMOLISHALL to avoid it
430 eating $@ (found by Ernesto)
431 - added test for this (thanks to Ernesto)
433 * Moose::Util::TypeConstraints
434 - &find_type_constraint now DWIMs when given an
435 type constraint object or name (nothingmuch)
436 - &find_or_create_type_constraint superseded with a number of more
438 - find_or_create_{isa,does}_type_constraint
439 - find_or_parse_type_constraint
441 * Moose::Meta::TypeConstraint
442 Moose::Meta::TypeConstraint::Class
443 Moose::Meta::TypeConstraint::Role
444 Moose::Meta::TypeConstraint::Enum
445 Moose::Meta::TypeConstraint::Union
446 Moose::Meta::TypeConstraint::Parameterized
447 - added the &equals method for comparing two type
448 constraints (nothingmuch)
449 - added tests for this (nothingmuch)
451 * Moose::Meta::TypeConstraint
452 - add the &parents method, which is just an alias to &parent.
453 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
455 * Moose::Meta::TypeConstraint::Class
456 - added the class attribute for introspection purposes
458 - added tests for this
460 * Moose::Meta::TypeConstraint::Enum
461 Moose::Meta::TypeConstraint::Role
462 - broke these out into their own classes (nothingmuch)
464 * Moose::Cookbook::Recipe*
465 - fixed references to test file locations in the POD
466 and updated up some text for new Moose features
470 - Added &resolve_metaclass_alias, a helper function for finding an actual
471 class for a short name (e.g. in the traits list)
473 0.40 Fri. March 14, 2008
474 - I hate Pod::Coverage
476 0.39 Fri. March 14, 2008
478 - documenting the use of '+name' with attributes
479 that come from recently composed roles. It makes
480 sense, people are using it, and so why not just
481 officially support it.
482 - fixing the 'extends' keyword so that it will not
483 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
486 - added the perl -Moose=+Class::Name feature to allow
487 monkeypatching of classes in one liners
490 - fixing the 'apply_all_roles' keyword so that it will not
491 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
494 - added ->create method which now supports roles (thanks to jrockway)
495 - added tests for this
496 - added ->create_anon_class which now supports roles and caching of
497 the results (thanks to jrockway)
498 - added tests for this
499 - made ->does_role a little more forgiving when it is
500 checking a Class::MOP era metaclasses.
502 * Moose::Meta::Role::Application::ToInstance
503 - it is now possible to pass extra params to be used when
504 a role is applied to an the instance (rebless_params)
505 - added tests for this
507 * Moose::Util::TypeConstraints
508 - class_type now accepts an optional second argument for a
509 custom message. POD anotated accordingly (groditi)
510 - added tests for this
511 - it is now possible to make anon-enums by passing 'enum' an
512 ARRAY ref instead of the $name => @values. Everything else
514 - added tests for this
517 - making test for using '+name' on attributes consumed
518 from a role, it works and makes sense too.
520 * Moose::Meta::Attribute
521 - fix handles so that it doesn't return nothing
522 when the method cannot be found, not sure why
523 it ever did this originally, this means we now
524 have slightly better support for AUTOLOADed
526 - added more delegation tests
527 - adding ->does method to this so as to better
528 support traits and their introspection.
529 - added tests for this
532 - localizing the Data::Dumper configurations so
533 that it does not pollute others (RT #33509)
534 - made ->does a little more forgiving when it is
535 passed Class::MOP era metaclasses.
537 0.38 Fri. Feb. 15, 2008
538 * Moose::Meta::Attribute
539 - fixed initializer to correctly do
540 type checking and coercion in the
542 - added tests for this
545 - fixed some finicky tests (thanks to konobi)
547 0.37 Thurs. Feb. 14, 2008
549 - fixed some details in Moose::init_meta
550 and its superclass handling (thanks thepler)
551 - added tests for this (thanks thepler)
552 - 'has' now dies if you don't pass in name
554 - added the 'make_immutable' keyword as a shortcut
558 Moose::Meta::Method::Constructor
559 Moose::Meta::Attribute
560 - making (init_arg => undef) work here too
561 (thanks to nothingmuch)
563 * Moose::Meta::Attribute
564 Moose::Meta::Method::Constructor
565 Moose::Meta::Method::Accessor
566 - make lazy attributes respect attr initializers (rjbs)
567 - added tests for this
569 * Moose::Util::TypeConstraints
570 Moose::Util::TypeConstraints::OptimizedConstraints
571 Moose::Meta::TypeConstraints
572 Moose::Meta::Attribute
573 Moose::Meta::Method::Constructor
574 Moose::Meta::Method::Accessor
575 - making type errors use the
576 assigned message (thanks to Sartak)
577 - added tests for this
579 * Moose::Meta::Method::Destructor
580 - making sure DESTROY gets inlined properly
581 with successive DEMOLISH calls (thanks to manito)
583 * Moose::Meta::Attribute
584 Moose::Meta::Method::Accessor
585 - fixed handling of undef with type constraints
587 - added tests for this
590 - added &get_all_init_args and &get_all_attribute_values
591 (thanks to Sartak and nothingmuch)
593 0.36 Sat. Jan. 26, 2008
595 Moose::Meta::Attribute
596 - role type tests now support when roles are
597 applied to non-Moose classes (found by ash)
598 - added tests for this (thanks to ash)
599 - couple extra tests to boost code coverage
601 * Moose::Meta::Method::Constructor
602 - improved fix for handling Class::MOP attributes
603 - added test for this
606 - handled the add_attribute($attribute_meta_object)
608 - added test for this
610 0.35 Tues. Jan. 22, 2008
611 * Moose::Meta::Method::Constructor
612 - fix to make sure even Class::MOP attributes
613 are handled correctly (Thanks to Dave Rolsky)
614 - added test for this (also Dave Rolsky)
617 - improved error message on _apply_all_roles,
618 you should now use Moose::Util::apply_all_roles
619 and you shouldnt have been using a _ prefixed
620 method in the first place ;)
622 0.34 Mon. Jan. 21, 2008
623 ~~~ more misc. doc. fixes ~~~
624 ~~ updated copyright dates ~~
626 Moose is now a postmodern object system :)
627 - (see the POD for details)
629 * <<Role System Refactoring>>
630 - this release contains a major reworking and
631 cleanup of the role system
632 - 100% backwards compat.
633 - Role application now restructured into seperate
634 classes based on type of applicants
635 - Role summation (combining of more than one role)
636 is much cleaner and anon-classes are no longer
638 - new Composite role metaclass
639 - runtime application of roles to instances
640 is now more efficient and re-uses generated
641 classes when applicable
643 * <<New Role composition features>>
644 - methods can now be excluded from a given role
646 - methods can now be aliased to another name (and
647 still retain the original as well)
649 * Moose::Util::TypeConstraints::OptimizedConstraints
650 - added this module (see above)
653 - fixed the &_process_attribute method to be called
654 by &add_attribute, so that the API is now correct
656 * Moose::Meta::Method::Accessor
657 - fixed bug when passing a list of values to
658 an accessor would get (incorrectly) ignored.
659 Thanks to Sartak for finding this ;)
660 - added tests for this (Sartak again)
662 * Moose::Meta::Method::Accessor
663 Moose::Meta::Method::Constructor
664 Moose::Meta::Attribute
665 Moose::Meta::TypeConstraint
666 Moose::Meta::TypeCoercion
667 - lots of cleanup of such things as:
669 - type constraint handling
670 - error handling/messages
671 (thanks to nothingmuch)
673 * Moose::Meta::TypeConstraint::Parameterizable
674 - added this module to support the refactor
675 in Moose::Meta::TypeConstraint::Parameterized
677 * Moose::Meta::TypeConstraint::Parameterized
678 - refactored how these types are handled so they
679 are more generic and not confined to ArrayRef
683 - shortened some file names for better VMS support (RT #32381)
685 0.33 Fri. Dec. 14, 2007
686 !! Moose now loads 2 x faster !!
687 !! with new Class::MOP 0.49 !!
689 ++ new oose.pm module to make command line
690 Moose-ness easier (see POD docs for more)
694 - several tweaks to take advantage of the
695 new method map caching in Class::MOP
697 * Moose::Meta::TypeConstraint::Parameterized
698 - allow subtypes of ArrayRef and HashRef to
699 be used as a container (sartak)
700 - added tests for this
701 - basic support for coercion to ArrayRef and
702 HashRef for containers (sartak)
703 - added tests for this
705 * Moose::Meta::TypeCoercion
706 - coercions will now create subtypes as needed
707 so you can now add coercions to parameterized
708 types without having to explictly define them
709 - added tests for this
711 * Moose::Meta::Method::Accessor
712 - allow subclasses to decide whether we need
713 to copy the value into a new variable (sartak)
715 0.32 Tues. Dec. 4, 2007
716 * Moose::Util::TypeConstraints
717 - fixing how subtype aliases of unions work
718 they should inherit the parent's coercion
719 - added tests for this
720 - you can now define multiple coercions on
721 a single type at different times instead of
722 having to do it all in one place
723 - added tests for this
725 * Moose::Meta::TypeConstraint
726 - there is now a default constraint of sub { 1 }
727 instead of Moose::Util::TypeConstraints setting
730 * Moose::Meta::TypeCoercion
731 * Moose::Meta::TypeCoercion::Union
732 - added the &has_coercion_for_type and
733 &add_type_coercions methods to support the
734 new features above (although you cannot add
735 more type coercions for Union types)
737 0.31 Mon. Nov. 26, 2007
738 * Moose::Meta::Attribute
739 - made the +attr syntax handle extending types with
740 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
741 now works if the original foo is an ArrayRef.
742 - added tests for this.
743 - delegation now works even if the attribute does not
744 have a reader method using the get_read_method_ref
745 method from Class::MOP::Attribute.
746 - added tests for this
747 - added docs for this
749 * Moose::Util::TypeConstraints
750 - passing no "additional attribute info" to
751 &find_or_create_type_constraint will no longer
752 attempt to create an __ANON__ type for you,
753 instead it will just return undef.
754 - added docs for this
756 0.30 Fri. Nov. 23, 2007
757 * Moose::Meta::Method::Constructor
758 -builder related bug in inlined constructor. (groditi)
760 * Moose::Meta::Method::Accessor
761 - genereate unnecessary calls to predicates and refactor
762 code generation for runtime speed (groditi)
764 * Moose::Util::TypeConstraints
765 - fix ClassName constraint to introspect symbol table (mst)
766 - added more tests for this (mst)
767 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
769 - added tests for this
772 - adding the link to Recipie 11 (written by Sartak)
773 - adding test for SYNOPSIS code
776 - New tests for builder bug. Upon instantiation, if an
777 attribute had a builder, no value and was not lazy the
778 builder default was not getting run, oops. (groditi)
780 0.29 Tues. Nov. 13, 2007
781 * Moose::Meta::Attribute
782 - Fix error message on missing builder method (groditi)
784 * Moose::Meta::Method::Accessor
785 - Fix error message on missing builder method (groditi)
788 - Add test to check for the correct error message when
789 builder method is missing (groditi)
791 0.28 Tues. Nov. 13, 2007
792 - 0.27 packaged incorrectly (groditi)
794 0.27 Tues. Nov. 13, 2007
795 * Moose::Meta::Attribute
796 - Added support for the new builder option (groditi)
797 - Added support for lazy_build option (groditi)
798 - Changed slot initialization for predicate changes (groditi)
800 * Moose::Meta::Method::Accessor
801 - Added support for lazy_build option (groditi)
802 - Fix inline methods to work with corrected predicate
805 * Moose::Meta::Method::Constructor
806 - Added support for lazy_build option (groditi)
809 - tests for builder and lazy_build (groditi)
811 * fixing some misc. bits in the docs that
812 got mentioned on CPAN Forum & perlmonks
815 - fixed how required methods are handled
816 when they encounter overriden or modified
817 methods from a class (thanks to confound).
818 - added tests for this
820 * Moose::Util::TypeConstraint
821 - fixed the type notation parser so that
822 the | always creates a union and so is
823 no longer a valid type char (thanks to
824 konobi, mugwump and #moose for working
826 - added more tests for this
828 0.26 Thurs. Sept. 27, 2007
831 * Parameterized Types
832 We now support parameterized collection types, such as:
833 ArrayRef[Int] # array or integers
834 HashRef[Object] # a hash with object values
835 They can also be nested:
836 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
837 And work with the type unions as well:
838 ArrayRef[Int | Str] # array of integers of strings
840 * Better Framework Extendability
841 Moose.pm is now "extendable" such that it is now much
842 easier to extend the framework and add your own keywords
843 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
844 section of the Moose.pm docs.
847 In an effort to begin documenting some of the various
848 details of Moose as well as some common idioms, we have
849 created Moose::Cookbook::Snacks as a place to find
850 small (easily digestable) nuggets of Moose code.
853 ~ Several doc updates/cleanup thanks to castaway ~
855 - converted build system to use Module::Install instead of
856 Module::Build (thanks to jrockway)
859 - added all the meta classes to the immutable list and
860 set it to inline the accessors
861 - fix import to allow Sub::Exporter like { into => }
862 and { into_level => } (perigrin)
863 - exposed and documented init_meta() to allow better
864 embedding and extending of Moose (perigrin)
867 - complete re-organization of the test suite
868 - added some new tests as well
869 - finally re-enabled the Moose::POOP test since
870 the new version of DBM::Deep now works again
874 - fixed very odd and very nasty recursion bug with
876 - added tests for this (eilara)
878 * Moose::Meta::Attribute
879 Moose::Meta::Method::Constructor
880 Moose::Meta::Method::Accessor
881 - fixed issue with overload::Overloaded getting called
882 on non-blessed items. (RT #29269)
883 - added tests for this
885 * Moose::Meta::Method::Accessor
886 - fixed issue with generated accessor code making
887 assumptions about hash based classes (thanks to dexter)
889 * Moose::Coookbook::Snacks
890 - these are bits of documentation, not quite as big as
891 Recipes but which have no clear place in the module docs.
892 So they are Snacks! (horray for castaway++)
894 * Moose::Cookbook::Recipe4
895 - updated it to use the new ArrayRef[MyType] construct
896 - updated the accompanying test as well
898 +++ Major Refactor of the Type Constraint system +++
899 +++ with new features added as well +++
901 * Moose::Util::TypeConstraint
902 - no longer uses package variable to keep track of
903 the type constraints, now uses the an instance of
904 Moose::Meta::TypeConstraint::Registry to do it
905 - added more sophisticated type notation parsing
907 - added tests for this
909 * Moose::Meta::TypeConstraint
910 - some minor adjustments to make subclassing easier
911 - added the package_defined_in attribute so that we
912 can track where the type constraints are created
914 * Moose::Meta::TypeConstraint::Union
915 - this is now been refactored to be a subclass of
916 Moose::Meta::TypeConstraint
918 * Moose::Meta::TypeCoercion::Union
919 - this has been added to service the newly refactored
920 Moose::Meta::TypeConstraint::Union and is itself
921 a subclass of Moose::Meta::TypeCoercion
923 * Moose::Meta::TypeConstraint::Parameterized
924 - added this module (taken from MooseX::AttributeHelpers)
925 to help construct nested collection types
926 - added tests for this
928 * Moose::Meta::TypeConstraint::Registry
929 - added this class to keep track of type constraints
931 0.25 Mon. Aug. 13, 2007
933 - Documentation update to reference Moose::Util::TypeConstraints
934 under 'isa' in 'has' for how to define a new type
937 * Moose::Meta::Attribute
938 - required attributes now will no longer accept undef
939 from the constructor, even if there is a default and lazy
940 - added tests for this
941 - default subroutines must return a value which passes the
943 - added tests for this
945 * Moose::Meta::Attribute
946 * Moose::Meta::Method::Constructor
947 * Moose::Meta::Method::Accessor
948 - type-constraint tests now handle overloaded objects correctly
950 - added tests for this (thanks to EvanCarroll)
952 * Moose::Meta::TypeConstraint::Union
953 - added (has_)hand_optimized_constraint to this class so that
954 it behaves as the regular Moose::Meta::TypeConstraint does.
957 - large refactoring of this code
958 - added several more tests
959 - tests for subtle conflict resolition issues
960 added, but not currently running
963 * Moose::Cookbook::Recipe7
964 - added new recipe for augment/inner functionality
966 - added test for this
969 - a formal definition of roles (still in progress)
972 - utilities for easier working with Moose classes
973 - added tests for these
976 - This contains Moose specific test functions
977 - added tests for these
979 0.24 Tues. July 3, 2007
980 ~ Some doc updates/cleanup ~
982 * Moose::Meta::Attribute
983 - added support for roles to be given as parameters
984 to the 'handles' option.
985 - added tests and docs for this
986 - the has '+foo' attribute form now accepts changes to
987 the lazy option, and the addition of a handles option
988 (but not changing the handles option)
989 - added tests and docs for this
992 - required methods are now fetched using find_method_by_name
993 so that required methods can come from superclasses
994 - adjusted tests for this
996 0.23 Mon. June 18, 2007
997 * Moose::Meta::Method::Constructor
998 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1000 - Modify make_immutable to work with the new Class::MOP immutable
1001 mechanism + POD + very basic test (groditi)
1002 * Moose::Meta::Attribute
1003 - Fix handles to use goto() so that caller() comes out properly on
1004 the other side (perigrin)
1006 0.22 Thurs. May 31, 2007
1007 * Moose::Util::TypeConstraints
1008 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1009 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1010 prototypes for functions
1011 - added the ClassName type constraint, this checks for strings
1012 which will respond true to ->isa(UNIVERSAL).
1013 - added tests and docs for this
1014 - subtyping just in name now works correctly by making the
1015 default for where be { 1 }
1016 - added test for this
1018 * Moose::Meta::Method::Accessor
1019 - coerce and lazy now work together correctly, thanks to
1020 merlyn for finding this bug
1021 - tests added for this
1022 - fix reader presedence bug in Moose::Meta::Attribute + tests
1025 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1026 a HASH-ref and missed. This produces better error messages then
1027 having it die cause undef is not a HASH.
1028 - added tests for this
1030 0.21 Thursday, May 2nd, 2007
1032 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1033 - modified unimport to remove super and inner along with the rest
1034 - altered unimport tests to handle this
1037 - altered super export to populate SUPER_SLOT
1039 * Moose::Meta::Class
1040 - altered augment and override modifier application to use *_SLOT
1041 - modified tests for these to unimport one test class each to test
1044 - fixed issue where custom attribute metaclasses
1045 where not handled correctly in roles
1046 - added tests for this
1048 * Moose::Meta::Class
1049 - fixed issue where extending metaclasses with
1050 roles would blow up. Thanks to Aankhen`` for
1051 finding this insidious error, and it's solution.
1053 ~~ lots of spelling and grammer fixes in the docs,
1054 many many thanks to rlb3 and Aankhen for these :)
1056 0.20 Friday, April 6th, 2007
1057 >> I messed up the SKIP logic in one test
1058 so this release is just to fix that.
1061 - 'has' now also accepts an ARRAY ref
1062 to create multiple attrs (see docs)
1063 (thanks to konobi for this)
1064 - added tests and docs
1066 0.19 Thurs. April 5th, 2007
1067 ~~ More documentation updates ~~
1069 * Moose::Util::TypeConstraints
1070 - 'type' now supports messages as well
1071 thanks to phaylon for finding this
1072 - added tests for this
1073 - added &list_all_type_constraints and
1074 &list_all_builtin_type_constraints
1075 functions to facilitate introspection.
1077 * Moose::Meta::Attribute
1078 - fixed regexp 'handles' declarations
1079 to build the list of delegated methods
1080 correctly (and not override important
1081 things like &new) thanks to ashleyb
1083 - added tests and docs for this
1084 - added the 'documentation' attributes
1085 so that you can actually document your
1086 attributes and inspect them through the
1088 - added tests and docs for this
1090 * Moose::Meta::Class
1091 - when loading custom attribute metaclasses
1092 it will first look in for the class in the
1093 Moose::Meta::Attribute::Custom::$name, and
1094 then default to just loading $name.
1095 - added tests and docs for this
1097 * Moose::Meta::TypeConstraint
1098 - type constraints now stringify to their names.
1099 - added test for this
1102 - added tests to assure we work with Module::Refresh
1103 - added stricter test skip logic in the Moose POOP
1104 test, ask Rob Kinyon why.
1105 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1107 0.18 Sat. March 10, 2007
1108 ~~ Many, many documentation updates ~~
1111 - We now use Class::MOP::load_class to
1113 - added tests to show types and subtypes
1114 working with Declare::Constraints::Simple
1115 and Test::Deep as constraint engines.
1118 !! You must have Class::MOP 0.37_001 !!
1119 !! for this developer release to work !!
1121 This release was primarily adding the immutable
1122 feature to Moose. An immutable class is one which
1123 you promise not to alter. When you set the class
1124 as immutable it will perform various bits of
1125 memoization and inline certain part of the code
1126 (constructors, destructors and accessors). This
1127 minimizes (and in some cases totally eliminates)
1128 one of Moose's biggest performance hits. This
1129 feature is not on by default, and is 100% optional.
1130 It has several configurable bits as well, so you
1131 can pick and choose to your specific needs.
1133 The changes involved in this were fairly wide and
1134 highly specific, but 100% backwards compatible, so
1135 I am not going to enumerate them here. If you are
1136 truely interested in what was changed, please do
1139 0.17 Tues. Nov. 14, 2006
1140 * Moose::Meta::Method::Accessor
1141 - bugfix for read-only accessors which
1142 are have a type constraint and lazy.
1143 Thanks to chansen for finding it.
1145 0.16 Tues. Nov. 14, 2006
1147 There are some speed improvements in this release,
1148 but they are only the begining, so stay tuned.
1151 - BUILDALL and DEMOLISHALL no longer get
1152 called unless they actually need to be.
1153 This gave us a signifigant speed boost
1154 for the cases when there is no BUILD or
1155 DEMOLISH method present.
1157 * Moose::Util::TypeConstraints
1158 * Moose::Meta::TypeConstraint
1159 - added an 'optimize_as' option to the
1160 type constraint, which allows for a
1161 hand optimized version of the type
1162 constraint to be used when possible.
1163 - Any internally created type constraints
1164 now provide an optimized version as well.
1166 0.15 Sun. Nov. 5, 2006
1168 This version of Moose *must* have Class::MOP 0.36 in order
1169 to work correctly. A number of small internal tweaks have
1170 been made in order to be compatible with that release.
1172 * Moose::Util::TypeConstraints
1173 - added &unimport so that you can clean out
1174 your class namespace of these exported
1177 * Moose::Meta::Class
1178 - fixed minor issue which occasionally
1179 comes up during global destruction
1181 - moved Moose::Meta::Method::Overriden into
1185 - moved Moose::Meta::Role::Method into
1188 * Moose::Meta::Attribute
1189 - changed how we do type checks so that
1190 we reduce the overall cost, but still
1193 - moved accessor generation methods to
1194 Moose::Meta::Method::Accessor to
1195 conform to the API changes from
1198 * Moose::Meta::TypeConstraint
1199 - changed how constraints are compiled
1200 so that we do less recursion and more
1201 iteration. This makes the type check
1203 - moved Moose::Meta::TypeConstraint::Union
1206 * Moose::Meta::Method::Accessor
1207 - created this from methods formerly found in
1208 Moose::Meta::Attribute
1210 * Moose::Meta::Role::Method
1211 - moved this from Moose::Meta::Role
1213 * Moose::Meta::Method::Overriden
1214 - moved this from Moose::Meta::Class
1216 * Moose::Meta::TypeConstraint::Union
1217 - moved this from Moose::Meta::TypeConstraint
1219 0.14 Mon. Oct. 9, 2006
1221 * Moose::Meta::Attribute
1222 - fixed lazy attributes which were not getting
1223 checked with the type constraint (thanks ashley)
1224 - added tests for this
1225 - removed the over-enthusiastic DWIMery of the
1226 automatic ArrayRef and HashRef defaults, it
1227 broke predicates in an ugly way.
1228 - removed tests for this
1230 0.13 Sat. Sept. 30, 2006
1232 This version of Moose *must* have Class::MOP 0.35 in order
1233 to work correctly. A number of small internal tweaks have
1234 been made in order to be compatible with that release.
1237 - Removed the use of UNIVERSAL::require to be a better
1238 symbol table citizen and remove a dependency
1239 (thanks Adam Kennedy)
1241 **~~ removed experimental & undocumented feature ~~**
1242 - commented out the 'method' and 'self' keywords, see the
1243 comments for more info.
1246 - added a FAQ and WTF files to document frequently
1247 asked questions and common problems
1249 * Moose::Util::TypeConstraints
1250 - added GlobRef and FileHandle type constraint
1251 - added tests for this
1253 * Moose::Meta::Attribute
1254 - if your attribute 'isa' ArrayRef of HashRef, and you have
1255 not explicitly set a default, then make the default DWIM.
1256 This will also work for subtypes of ArrayRef and HashRef
1258 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1259 - new test added for this (thanks to ashley)
1262 - added basic support for runtime role composition
1263 but this is still *highly experimental*, so feedback
1264 is much appreciated :)
1265 - added tests for this
1267 * Moose::Meta::TypeConstraint
1268 - the type constraint now handles the coercion process
1269 through delegation, this is to support the coercion
1272 * Moose::Meta::TypeConstraint::Union
1273 - it is now possible for coercions to be performed
1275 - added tests for this (thanks to konobi)
1277 * Moose::Meta::TypeCoercion
1278 - properly capturing error when type constraint
1282 - Scalar::Util 1.18 is bad on Win32, so temporarily
1283 only require version 1.17 for Win32 and cygwin.
1284 (thanks Adam Kennedy)
1286 0.12 Sat. Sept. 1, 2006
1288 - Recipe5 (subtypes & coercion) has been written
1291 - fixed "bad meta" error message to be more descriptive
1292 - fixed &unimport to not remove the &inner and &super
1293 keywords because we need to localize them.
1294 - fixed number of spelling/grammer issues, thanks Theory :)
1296 **~~ experimental & undocumented feature ~~**
1297 - added the method and self keywords, they are basically
1298 just sugar, and they may not stay around.
1301 - added &dump method to easily Data::Dumper
1304 * Moose::Meta::TypeConstraint
1305 - added the &is_a_type_of method to check both the current
1306 and the subtype of a method (similar to &isa with classes)
1309 - this is now a subclass of Class::MOP::Module, and no longer
1310 creates the _role_meta ugliness of before.
1311 - fixed tests to reflect this change
1313 0.11 Wed. July 12, 2006
1315 - added an &unimport method to remove all the keywords
1316 that Moose will import, simply add 'no Moose' to the
1317 bottom of your class file.
1320 - fixed some test failures caused by a forgotten test
1323 0.10 Thurs. July 6, 2006
1325 - improved error message when loading modules so
1326 it is less confusing when you load a role.
1327 - added &calculate_all_roles method to
1328 Moose::Meta::Class and Moose::Meta::Role
1331 This module has been tested against Class::MOP 0.30
1332 but it does not yet utilize the optimizations
1333 it makes available. Stay tuned for that ;)
1335 0.09_03 Fri. June 23, 2006
1336 ++ DEVELOPER RELEASE ++
1338 - 'use strict' and 'use warnings' are no longer
1339 needed in Moose classes, Moose itself will
1340 turn them on for you.
1341 - added tests for this
1342 - moved code from exported subs to private methods
1343 in Moose::Meta::Class
1346 - as with Moose, strict and warnings are
1347 automatically turned on for you.
1348 - added tests for this
1351 - now handles an edge case for override errors
1352 - added tests for this
1353 - added some more edge case tests
1355 0.09_02 Tues. May 16, 2006
1356 ++ DEVELOPER RELEASE ++
1358 - added prototypes to the exported subs
1362 - added prototypes to the exported subs
1365 * Moose::Util::TypeConstraints
1366 - cleaned up prototypes for the subs
1369 0.09_01 Fri. May 12, 2006
1370 ++ DEVELOPER RELEASE ++
1371 - This release works in combination with
1372 Class::MOP 0.29_01, it is a developer
1373 release because it uses the a new
1374 instance sub-protocol and a fairly
1375 complete Role implementation. It has
1376 not yet been optimized, so it slower
1377 the the previous CPAN version. This
1378 release also lacks good updated docs,
1379 the official release will have updated docs.
1382 - refactored the keyword exports
1383 - 'with' now checks Role validaity and
1384 accepts more than one Role at a time
1385 - 'extends' makes metaclass adjustments as
1386 needed to ensure metaclass compatability
1389 - refactored the keyword exports
1390 - 'with' now checks Role validaity and
1391 accepts more than one Role at a time
1393 * Moose::Util::TypeConstraints
1394 - added the 'enum' keyword for simple
1395 string enumerations which can be used as
1397 - see example of usage in t/202_example.t
1400 - more careful checking of params to new()
1403 - much work done on the role composition
1404 - many new tests for conflict detection
1405 and composition edge cases
1406 - not enough documentation, I suggest
1407 looking at the tests
1409 * Moose::Meta::Instance
1410 - added new Instance metaclass to support
1411 the new Class::MOP instance protocol
1413 * Moose::Meta::Class
1414 - some small changes to support the new
1416 - some small additions to support Roles
1418 * Moose::Meta::Attribute
1419 - some improvements to the accessor generation code
1421 - some small changes to support the new
1423 - (still somewhat) experimental delegation support
1424 with the 'handles' option
1425 - added several tests for this
1426 - no docs for this yet
1428 0.05 Thurs. April 27, 2006
1430 - keywords are now exported with Sub::Exporter
1431 thanks to chansen for this commit
1432 - has keyword now takes a 'metaclass' option
1433 to support custom attribute meta-classes
1434 on a per-attribute basis
1435 - added tests for this
1436 - the 'has' keyword not accepts inherited slot
1437 specifications (has '+foo'). This is still an
1438 experimental feature and probably not finished
1439 see t/038_attribute_inherited_slot_specs.t for
1440 more details, or ask about it on #moose
1441 - added tests for this
1444 - keywords are now exported with Sub::Exporter
1446 * Moose::Utils::TypeConstraints
1447 - reorganized the type constraint hierarchy, thanks
1448 to nothingmuch and chansen for his help and advice
1450 - added some tests for this
1451 - keywords are now exported with Sub::Exporter
1452 thanks to chansen for this commit
1454 * Moose::Meta::Class
1455 - due to changes in Class::MOP, we had to change
1456 construct_instance (for the better)
1458 * Moose::Meta::Attribute
1459 - due to changes in Class::MOP, we had to add the
1460 initialize_instance_slot method (it's a good thing)
1462 * Moose::Meta::TypeConstraint
1463 - added type constraint unions
1464 - added tests for this
1465 - added the is_subtype_of predicate method
1466 - added tests for this
1468 0.04 Sun. April 16th, 2006
1470 - Roles can now consume other roles
1471 - added tests for this
1472 - Roles can specify required methods now with
1473 the requires() keyword
1474 - added tests for this
1477 - ripped out much of it's guts ,.. much cleaner now
1478 - added required methods and correct handling of
1479 them in apply() for both classes and roles
1480 - added tests for this
1481 - no longer adds a does() method to consuming classes
1482 it relys on the one in Moose::Object
1483 - added roles attribute and some methods to support
1484 roles consuming roles
1486 * Moose::Meta::Attribute
1487 - added support for triggers on attributes
1488 - added tests for this
1489 - added support for does option on an attribute
1490 - added tests for this
1492 * Moose::Meta::Class
1493 - added support for attribute triggers in the
1495 - added tests for this
1498 - Moose no longer creates a subtype for your class
1499 if a subtype of the same name already exists, this
1500 should DWIM in 99.9999% of all cases
1502 * Moose::Util::TypeConstraints
1503 - fixed bug where incorrect subtype conflicts were
1505 - added test for this
1508 - this class can now be extended with 'use base' if
1509 you need it, it properly loads the metaclass class now
1510 - added test for this
1512 0.03_02 Wed. April 12, 2006
1514 - you must now explictly use Moose::Util::TypeConstraints
1515 it no longer gets exported for you automatically
1518 - new() now accepts hash-refs as well as key/value lists
1519 - added does() method to check for Roles
1520 - added tests for this
1522 * Moose::Meta::Class
1523 - added roles attribute along with the add_role() and
1525 - added tests for this
1528 - now adds a does() method to consuming classes
1529 which tests the class's hierarchy for roles
1530 - added tests for this
1532 0.03_01 Mon. April 10, 2006
1534 - added new Role recipe (no content yet, only code)
1537 - added 'with' keyword for Role support
1538 - added test and docs for this
1539 - fixed subtype quoting bug
1540 - added test for this
1544 - added test and docs
1546 * Moose::Util::TypeConstraints
1547 - added the message keyword to add custom
1548 error messages to type constraints
1551 - the meta role to support Moose::Role
1552 - added tests and docs
1554 * Moose::Meta::Class
1555 - moved a number of things from Moose.pm
1556 to here, they should have been here
1559 * Moose::Meta::Attribute
1560 - moved the attribute option macros here
1561 instead of putting them in Moose.pm
1563 * Moose::Meta::TypeConstraint
1564 - added the message attributes and the
1566 - added tests and docs for this
1568 0.03 Thurs. March 30, 2006
1570 - added the Moose::Cookbook with 5 recipes,
1571 describing all the stuff Moose can do.
1574 - fixed an issue with &extends super class loading
1575 it now captures errors and deals with inline
1576 packages correctly (bug found by mst, solution
1578 - added super/override & inner/augment features
1579 - added tests and docs for these
1582 - BUILDALL now takes a reference of the %params
1583 that are passed to &new, and passes that to
1586 * Moose::Util::TypeConstraints
1587 - Type constraints now survive runtime reloading
1588 - added test for this
1590 * Moose::Meta::Class
1591 - fixed the way attribute defaults are handled
1592 during instance construction (bug found by chansen)
1594 * Moose::Meta::Attribute
1595 - read-only attributes now actually enforce their
1596 read-only-ness (this corrected in Class::MOP as
1599 0.02 Tues. March 21, 2006
1601 - many more tests, fixing some bugs and
1603 - &extends now loads the base module with
1605 - added UNIVERSAL::require to the
1608 - each new Moose class will also create
1609 and register a subtype of Object which
1610 correspond to the new Moose class.
1611 - the 'isa' option in &has now only
1612 accepts strings, and will DWIM in
1615 * Moose::Util::TypeConstraints
1616 - added type coercion features
1617 - added tests for this
1618 - added support for this in attributes
1619 and instance construction
1621 - type construction no longer creates a
1622 function, it registers the type instead.
1623 - added several functions to get the
1627 - BUILDALL and DEMOLISHALL were broken
1628 because of a mis-named hash key, Whoops :)
1630 * Moose::Meta::Attribute
1631 - adding support for coercion in the
1632 autogenerated accessors
1634 * Moose::Meta::Class
1635 - adding support for coercion in the
1636 instance construction
1638 * Moose::Meta::TypeConstraint
1639 * Moose::Meta::TypeCoercion
1640 - type constraints and coercions are now
1641 full fledges meta-objects
1643 0.01 Wed. March 15, 2006
1644 - Moooooooooooooooooose!!!