1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - breaking down the way 'handles' methods are
6 created so that the process can be more easily
7 overridden by subclasses (stevan)
9 * Moose::Meta::TypeConstraint
10 - fixing what is passed into a ->message with
11 the type constraints (RT #37569)
12 - added tests for this (Charles Alderman)
14 * Moose::Util::TypeConstraints
15 - fix coerce to accept anon types like subtype can
18 - reorganized the recipes into sections - Basics, Roles, Meta,
19 Extending - and wrote abstracts for each section (Dave Rolsky)
21 * Moose::Cookbook::Basics::Recipe10
22 - A new recipe that demonstrates operator overloading
23 in combination with Moose. (bluefeet)
25 * Moose::Cookbook::Meta::Recipe1
26 - an introduction to what meta is and why you'd want to make
27 your own metaclass extensions (Dave Rolsky)
29 * Moose::Cookbook::Meta::Recipe4
30 - a very simple metaclass example (Dave Rolsky)
32 * Moose::Cookbook::Extending::Recipe1
33 - how to write a Moose-alike module to use your own object base
36 * Moose::Cookbook::Extending::Recipe2
37 - how to write modules with an API just like C<Moose.pm> (Dave
40 0.54 Thurs. July 3, 2008
41 ... this is not my day today ...
43 * Moose::Meta::Attribute
44 - fixed legal_options_for_inheritance such that
45 clone_and_inherit options still works for
46 Class::MOP::Attribute objects and therefore
47 does not break MooseX::AttributeHelpers
50 0.53 Thurs. July 3, 2008
51 * Whoops, I guess I should run 'make manifest' before
52 actually releasing the module. No actual changes
53 in this release, except the fact that it includes
54 the changes that I didn't include in the last
57 0.52 Thurs. July 3, 2008
59 - added "FEATURE REQUESTS" section to the Moose docs
60 to properly direct people (stevan) (RT #34333)
61 - making 'extends' croak if it is passed a Role since
62 this is not ever something you want to do
63 (fixed by stevan, found by obra)
64 - added tests for this (stevan)
67 - adding support for DOES (as in UNIVERSAL::DOES)
71 * Moose::Meta::Attribute
72 - added legal_options_for_inheritance (wreis)
73 - added tests for this (wreis)
75 * Moose::Cookbook::Snacks::*
76 - removed some of the unfinished snacks that should
77 not have been released yet. Added some more examples
78 to the 'Keywords' snack. (stevan)
80 * Moose::Cookbook::Style
81 - added general Moose "style guide" of sorts to the
82 cookbook (nothingmuch) (RT #34335)
85 - added more BUILDARGS tests (stevan)
87 0.51 Thurs. Jun 26, 2008
89 - add unimport so "no Moose::Role" actually does
92 * Moose::Meta::Role::Application::ToRole
93 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
94 order to provide its own implementation, that method still got
95 added to the list of required methods for consumers of
96 RoleB. Now an aliased method is only added to the list of
97 required methods if the role doing the aliasing does not
98 provide its own implementation. See Recipe 11 for an example
99 of all this. (Dave Rolsky)
100 - added tests for this
102 * Moose::Meta::Method::Constructor
103 - when a single argument that wasn't a hashref was provided to
104 an immutabilized constructor, the error message was very
105 unhelpful, as opposed to the non-immutable error. Reported by
107 - added test for this (Dave Rolsky)
109 * Moose::Meta::Attribute
110 - added support for meta_attr->does("ShortAlias") (sartak)
111 - added tests for this (sartak)
112 - moved the bulk of the `handles` handling to the new
113 install_delegation method (Stevan)
116 - Added BUILDARGS, a new step in new()
118 * Moose::Meta::Role::Application::RoleSummation
119 - fix typos no one ever sees (sartak)
121 * Moose::Util::TypeConstraints
122 * Moose::Meta::TypeConstraint
123 * Moose::Meta::TypeCoercion
124 - Attempt to work around the ??{ } vs. threads issue
126 - Some null_constraint optimizations
128 0.50 Thurs. Jun 11, 2008
129 - Fixed a version number issue by bumping all modules
132 0.49 Thurs. Jun 11, 2008
133 !! This version now approx. 20-25% !!
134 !! faster with new Class::MOP 0.59 !!
136 * Moose::Meta::Attribute
137 - fixed how the is => (ro|rw) works with
138 custom defined reader, writer and accessor
140 - added docs for this (TODO).
141 - added tests for this (Thanks to Penfold)
142 - added the custom attribute alias for regular
143 Moose attributes which is "Moose"
144 - fix builder and default both being used
149 Moose::Meta::Attribute
151 Moose::Meta::Role::Composite
152 Moose::Util::TypeConstraints
153 - switched usage of reftype to ref because
157 - changing add_package_symbol to use the new
161 - fixed how DEMOLISHALL is called so that it
162 can be overrided in subclasses (thanks to Sartak)
163 - added test for this (thanks to Sartak)
165 * Moose::Util::TypeConstraints
166 - move the ClassName type check code to
167 Class::MOP::is_class_loaded (thanks to Sartak)
169 * Moose::Cookbook::Recipe11
170 - add tests for this (thanks to tokuhirom)
172 0.48 Thurs. May 29, 2008
173 (early morning release engineering)--
175 - fixing the version in Moose::Meta::Method::Destructor
176 which was causing the indexer to choke
178 0.47 Thurs. May 29, 2008
179 (late night release engineering)--
181 - fixing the version is META.yml, no functional
182 changes in this release
184 0.46 Wed. May 28, 2008
185 !! This version now approx. 20-25% !!
186 !! faster with new Class::MOP 0.57 !!
189 - some optimizations of the &initialize method
190 since it is called so often by &meta
194 - now use the get_all_package_symbols from the
195 updated Class::MOP, test suite is now 10 seconds
198 * Moose::Meta::Method::Destructor
199 - is_needed can now also be called as a class
200 method for immutablization to check if the
201 destructor object even needs to be created
204 * Moose::Meta::Method::Destructor
205 Moose::Meta::Method::Constructor
206 - added more descriptive error message to help
207 keep people from wasting time tracking an error
208 that is easily fixed by upgrading.
210 0.45 Saturday, May 24, 2008
212 - Because of work in Class::MOP 0.56, all
213 XS based functionality is now optional
214 and a Pure Perl version is supplied
215 - the CLASS_MOP_NO_XS environment variable
216 can now be used to force non-XS versions
218 - several of the packages have been tweaked
219 to take care of this, mostly we added
220 support for the package_name and name
221 variables in all the Method metaclasses
222 - before/around/after method modifiers now
223 support regexp matching of names
224 (thanks to Takatoshi Kitano)
225 - tests added for this
226 - NOTE: this only works for classes, it
227 is currently not supported in roles,
228 but, ... patches welcome
229 - All usage of Carp::confess have been replaced
230 by Carp::croak in the "keyword" functions since
231 the stack trace is usually not helpful
234 - All usage of Carp::confess have been replaced
235 by Carp::croak in the "keyword" functions since
236 the stack trace is usually not helpful
237 - The 'has' keyword for roles now accepts the
238 same array ref form that Moose.pm does
239 (has [qw/foo bar/] => (is => 'rw', ...))
240 - added test for this
242 * Moose::Meta::Attribute
243 - trigger on a ro-attribute is no longer an
244 error, as it's useful to trigger off of the
248 - added same 'add_package_symbol' fix as in
252 - does_role now handles non-Moose classes
254 - added tests for this
255 - added the 'add_method_modifier' function
256 (thanks to Takatoshi Kitano)
258 * Moose::Util::TypeConstraints
259 - subtypes of parameterizable types now are
260 themselves parameterizable types
262 * Moose::Meta::Method::Constructor
263 - fixed bug where trigger was not being
264 called by the inlined immutable
266 - added test for this (thanks to Caelum)
268 * Moose::Meta::Role::Application::ToInstance
269 - now uses the metaclass of the instance
270 (if possible) to create the anon-class
271 (thanks Jonathan Rockway)
273 * Moose::Cookbook::Recipe22
274 - added the meta-attribute trait recipe
278 - fixed hash-ordering test bug that was
279 causing occasional cpantester failures
280 - renamed the t/000_recipe/*.t tests to be
281 more descriptive (thanks to Sartak)
283 0.44 Sat. May 10, 2008
285 - made make_immutable warning cluck to
286 show where the error is (thanks mst)
289 - BUILDALL and DEMOLISHALL now call
290 ->body when looping through the
291 methods, to avoid the overloaded
293 - fixed issue where DEMOLISHALL was
294 eating the $@ values, and so not
295 working correctly, it still kind of
296 eats them, but so does vanilla perl
297 - added tests for this
299 * Moose::Cookbook::Recipe7
300 - added new recipe for immutable
301 functionality (thanks Dave Rolsky)
303 * Moose::Cookbook::Recipe9
304 - added new recipe for builder and
305 lazy_build (thanks Dave Rolsky)
307 * Moose::Cookbook::Recipe11
308 - added new recipe for method aliasing
309 and exclusion with Roles (thanks Dave Rolsky)
312 - fixed Win32 test failure (thanks spicyjack)
314 ~ removed Build.PL and Module::Build compat
315 since Module::Install has done that.
317 0.43 Wed. April, 30, 2008
319 drink more coffee before
320 doing release engineering
322 - whoops, forgot to do the smolder tests,
323 and we broke some of the custom meta-attr
324 modules. This fixes that.
326 0.42 Mon. April 28, 2008
327 - some bad tests slipped by, nothing else
328 changed in this release (cpantesters++)
330 - upped the Class::MOP dependency to 0.55
331 since we have tests which need the C3
334 0.41 Mon. April 28, 2008
335 ~~ numerous documentation updates ~~
337 - Changed all usage of die to Carp::croak for better
338 error reporting (initial patch by Tod Hagan)
341 - the make_immutable keyword is now deprecated, don't
342 use it in any new code and please fix your old code
343 as well. There will be 2 releases, and then it will
349 - refactored the way inner and super work to avoid
350 any method/@ISA cache penalty (nothingmuch)
353 - fixing &new_object to make sure trigger gets the
354 coerced value (spotted by Charles Alderman on the
356 - added test for this
358 * Moose::Meta::Method::Constructor
359 - immutable classes which had non-lazy attributes were calling
360 the default generating sub twice in the constructor. (bug
361 found by Jesse Luehrs, fixed by Dave Rolsky)
362 - added tests for this (Dave Rolsky)
363 - fix typo in initialize_body method (nothingmuch)
365 * Moose::Meta::Method::Destructor
366 - fix typo in initialize_body method (nothingmuch)
368 * Moose::Meta::Method::Overriden
369 Moose::Meta::Method::Augmented
370 - moved the logic for these into their own
371 classes (nothingmuch)
373 * Moose::Meta::Attribute
374 - inherited attributes may now be extended without
375 restriction on the type ('isa', 'does') (Sartak)
376 - added tests for this (Sartak)
377 - when an attribute property is malformed (such as lazy without
378 a default), give the name of the attribute in the error
380 - added the &applied_traits and &has_applied_traits methods
381 to allow introspection of traits
382 - added tests for this
383 - moved 'trait' and 'metaclass' argument handling to here from
385 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
386 '+foo' syntax) (nothingmuch)
387 - added tests for this (t0m)
390 - localize $@ inside DEMOLISHALL to avoid it
391 eating $@ (found by Ernesto)
392 - added test for this (thanks to Ernesto)
394 * Moose::Util::TypeConstraints
395 - &find_type_constraint now DWIMs when given an
396 type constraint object or name (nothingmuch)
397 - &find_or_create_type_constraint superseded with a number of more
399 - find_or_create_{isa,does}_type_constraint
400 - find_or_parse_type_constraint
402 * Moose::Meta::TypeConstraint
403 Moose::Meta::TypeConstraint::Class
404 Moose::Meta::TypeConstraint::Role
405 Moose::Meta::TypeConstraint::Enum
406 Moose::Meta::TypeConstraint::Union
407 Moose::Meta::TypeConstraint::Parameterized
408 - added the &equals method for comparing two type
409 constraints (nothingmuch)
410 - added tests for this (nothingmuch)
412 * Moose::Meta::TypeConstraint
413 - add the &parents method, which is just an alias to &parent.
414 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
416 * Moose::Meta::TypeConstraint::Class
417 - added the class attribute for introspection purposes
419 - added tests for this
421 * Moose::Meta::TypeConstraint::Enum
422 Moose::Meta::TypeConstraint::Role
423 - broke these out into their own classes (nothingmuch)
425 * Moose::Cookbook::Recipe*
426 - fixed references to test file locations in the POD
427 and updated up some text for new Moose features
431 - Added &resolve_metaclass_alias, a helper function for finding an actual
432 class for a short name (e.g. in the traits list)
434 0.40 Fri. March 14, 2008
435 - I hate Pod::Coverage
437 0.39 Fri. March 14, 2008
439 - documenting the use of '+name' with attributes
440 that come from recently composed roles. It makes
441 sense, people are using it, and so why not just
442 officially support it.
443 - fixing the 'extends' keyword so that it will not
444 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
447 - added the perl -Moose=+Class::Name feature to allow
448 monkeypatching of classes in one liners
451 - fixing the 'apply_all_roles' keyword so that it will not
452 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
455 - added ->create method which now supports roles (thanks to jrockway)
456 - added tests for this
457 - added ->create_anon_class which now supports roles and caching of
458 the results (thanks to jrockway)
459 - added tests for this
460 - made ->does_role a little more forgiving when it is
461 checking a Class::MOP era metaclasses.
463 * Moose::Meta::Role::Application::ToInstance
464 - it is now possible to pass extra params to be used when
465 a role is applied to an the instance (rebless_params)
466 - added tests for this
468 * Moose::Util::TypeConstraints
469 - class_type now accepts an optional second argument for a
470 custom message. POD anotated accordingly (groditi)
471 - added tests for this
472 - it is now possible to make anon-enums by passing 'enum' an
473 ARRAY ref instead of the $name => @values. Everything else
475 - added tests for this
478 - making test for using '+name' on attributes consumed
479 from a role, it works and makes sense too.
481 * Moose::Meta::Attribute
482 - fix handles so that it doesn't return nothing
483 when the method cannot be found, not sure why
484 it ever did this originally, this means we now
485 have slightly better support for AUTOLOADed
487 - added more delegation tests
488 - adding ->does method to this so as to better
489 support traits and their introspection.
490 - added tests for this
493 - localizing the Data::Dumper configurations so
494 that it does not pollute others (RT #33509)
495 - made ->does a little more forgiving when it is
496 passed Class::MOP era metaclasses.
498 0.38 Fri. Feb. 15, 2008
499 * Moose::Meta::Attribute
500 - fixed initializer to correctly do
501 type checking and coercion in the
503 - added tests for this
506 - fixed some finicky tests (thanks to konobi)
508 0.37 Thurs. Feb. 14, 2008
510 - fixed some details in Moose::init_meta
511 and its superclass handling (thanks thepler)
512 - added tests for this (thanks thepler)
513 - 'has' now dies if you don't pass in name
515 - added the 'make_immutable' keyword as a shortcut
519 Moose::Meta::Method::Constructor
520 Moose::Meta::Attribute
521 - making (init_arg => undef) work here too
522 (thanks to nothingmuch)
524 * Moose::Meta::Attribute
525 Moose::Meta::Method::Constructor
526 Moose::Meta::Method::Accessor
527 - make lazy attributes respect attr initializers (rjbs)
528 - added tests for this
530 * Moose::Util::TypeConstraints
531 Moose::Util::TypeConstraints::OptimizedConstraints
532 Moose::Meta::TypeConstraints
533 Moose::Meta::Attribute
534 Moose::Meta::Method::Constructor
535 Moose::Meta::Method::Accessor
536 - making type errors use the
537 assigned message (thanks to Sartak)
538 - added tests for this
540 * Moose::Meta::Method::Destructor
541 - making sure DESTROY gets inlined properly
542 with successive DEMOLISH calls (thanks to manito)
544 * Moose::Meta::Attribute
545 Moose::Meta::Method::Accessor
546 - fixed handling of undef with type constraints
548 - added tests for this
551 - added &get_all_init_args and &get_all_attribute_values
552 (thanks to Sartak and nothingmuch)
554 0.36 Sat. Jan. 26, 2008
556 Moose::Meta::Attribute
557 - role type tests now support when roles are
558 applied to non-Moose classes (found by ash)
559 - added tests for this (thanks to ash)
560 - couple extra tests to boost code coverage
562 * Moose::Meta::Method::Constructor
563 - improved fix for handling Class::MOP attributes
564 - added test for this
567 - handled the add_attribute($attribute_meta_object)
569 - added test for this
571 0.35 Tues. Jan. 22, 2008
572 * Moose::Meta::Method::Constructor
573 - fix to make sure even Class::MOP attributes
574 are handled correctly (Thanks to Dave Rolsky)
575 - added test for this (also Dave Rolsky)
578 - improved error message on _apply_all_roles,
579 you should now use Moose::Util::apply_all_roles
580 and you shouldnt have been using a _ prefixed
581 method in the first place ;)
583 0.34 Mon. Jan. 21, 2008
584 ~~~ more misc. doc. fixes ~~~
585 ~~ updated copyright dates ~~
587 Moose is now a postmodern object system :)
588 - (see the POD for details)
590 * <<Role System Refactoring>>
591 - this release contains a major reworking and
592 cleanup of the role system
593 - 100% backwards compat.
594 - Role application now restructured into seperate
595 classes based on type of applicants
596 - Role summation (combining of more than one role)
597 is much cleaner and anon-classes are no longer
599 - new Composite role metaclass
600 - runtime application of roles to instances
601 is now more efficient and re-uses generated
602 classes when applicable
604 * <<New Role composition features>>
605 - methods can now be excluded from a given role
607 - methods can now be aliased to another name (and
608 still retain the original as well)
610 * Moose::Util::TypeConstraints::OptimizedConstraints
611 - added this module (see above)
614 - fixed the &_process_attribute method to be called
615 by &add_attribute, so that the API is now correct
617 * Moose::Meta::Method::Accessor
618 - fixed bug when passing a list of values to
619 an accessor would get (incorrectly) ignored.
620 Thanks to Sartak for finding this ;)
621 - added tests for this (Sartak again)
623 * Moose::Meta::Method::Accessor
624 Moose::Meta::Method::Constructor
625 Moose::Meta::Attribute
626 Moose::Meta::TypeConstraint
627 Moose::Meta::TypeCoercion
628 - lots of cleanup of such things as:
630 - type constraint handling
631 - error handling/messages
632 (thanks to nothingmuch)
634 * Moose::Meta::TypeConstraint::Parameterizable
635 - added this module to support the refactor
636 in Moose::Meta::TypeConstraint::Parameterized
638 * Moose::Meta::TypeConstraint::Parameterized
639 - refactored how these types are handled so they
640 are more generic and not confined to ArrayRef
644 - shortened some file names for better VMS support (RT #32381)
646 0.33 Fri. Dec. 14, 2007
647 !! Moose now loads 2 x faster !!
648 !! with new Class::MOP 0.49 !!
650 ++ new oose.pm module to make command line
651 Moose-ness easier (see POD docs for more)
655 - several tweaks to take advantage of the
656 new method map caching in Class::MOP
658 * Moose::Meta::TypeConstraint::Parameterized
659 - allow subtypes of ArrayRef and HashRef to
660 be used as a container (sartak)
661 - added tests for this
662 - basic support for coercion to ArrayRef and
663 HashRef for containers (sartak)
664 - added tests for this
666 * Moose::Meta::TypeCoercion
667 - coercions will now create subtypes as needed
668 so you can now add coercions to parameterized
669 types without having to explictly define them
670 - added tests for this
672 * Moose::Meta::Method::Accessor
673 - allow subclasses to decide whether we need
674 to copy the value into a new variable (sartak)
676 0.32 Tues. Dec. 4, 2007
677 * Moose::Util::TypeConstraints
678 - fixing how subtype aliases of unions work
679 they should inherit the parent's coercion
680 - added tests for this
681 - you can now define multiple coercions on
682 a single type at different times instead of
683 having to do it all in one place
684 - added tests for this
686 * Moose::Meta::TypeConstraint
687 - there is now a default constraint of sub { 1 }
688 instead of Moose::Util::TypeConstraints setting
691 * Moose::Meta::TypeCoercion
692 * Moose::Meta::TypeCoercion::Union
693 - added the &has_coercion_for_type and
694 &add_type_coercions methods to support the
695 new features above (although you cannot add
696 more type coercions for Union types)
698 0.31 Mon. Nov. 26, 2007
699 * Moose::Meta::Attribute
700 - made the +attr syntax handle extending types with
701 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
702 now works if the original foo is an ArrayRef.
703 - added tests for this.
704 - delegation now works even if the attribute does not
705 have a reader method using the get_read_method_ref
706 method from Class::MOP::Attribute.
707 - added tests for this
708 - added docs for this
710 * Moose::Util::TypeConstraints
711 - passing no "additional attribute info" to
712 &find_or_create_type_constraint will no longer
713 attempt to create an __ANON__ type for you,
714 instead it will just return undef.
715 - added docs for this
717 0.30 Fri. Nov. 23, 2007
718 * Moose::Meta::Method::Constructor
719 -builder related bug in inlined constructor. (groditi)
721 * Moose::Meta::Method::Accessor
722 - genereate unnecessary calls to predicates and refactor
723 code generation for runtime speed (groditi)
725 * Moose::Util::TypeConstraints
726 - fix ClassName constraint to introspect symbol table (mst)
727 - added more tests for this (mst)
728 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
730 - added tests for this
733 - adding the link to Recipie 11 (written by Sartak)
734 - adding test for SYNOPSIS code
737 - New tests for builder bug. Upon instantiation, if an
738 attribute had a builder, no value and was not lazy the
739 builder default was not getting run, oops. (groditi)
741 0.29 Tues. Nov. 13, 2007
742 * Moose::Meta::Attribute
743 - Fix error message on missing builder method (groditi)
745 * Moose::Meta::Method::Accessor
746 - Fix error message on missing builder method (groditi)
749 - Add test to check for the correct error message when
750 builder method is missing (groditi)
752 0.28 Tues. Nov. 13, 2007
753 - 0.27 packaged incorrectly (groditi)
755 0.27 Tues. Nov. 13, 2007
756 * Moose::Meta::Attribute
757 - Added support for the new builder option (groditi)
758 - Added support for lazy_build option (groditi)
759 - Changed slot initialization for predicate changes (groditi)
761 * Moose::Meta::Method::Accessor
762 - Added support for lazy_build option (groditi)
763 - Fix inline methods to work with corrected predicate
766 * Moose::Meta::Method::Constructor
767 - Added support for lazy_build option (groditi)
770 - tests for builder and lazy_build (groditi)
772 * fixing some misc. bits in the docs that
773 got mentioned on CPAN Forum & perlmonks
776 - fixed how required methods are handled
777 when they encounter overriden or modified
778 methods from a class (thanks to confound).
779 - added tests for this
781 * Moose::Util::TypeConstraint
782 - fixed the type notation parser so that
783 the | always creates a union and so is
784 no longer a valid type char (thanks to
785 konobi, mugwump and #moose for working
787 - added more tests for this
789 0.26 Thurs. Sept. 27, 2007
792 * Parameterized Types
793 We now support parameterized collection types, such as:
794 ArrayRef[Int] # array or integers
795 HashRef[Object] # a hash with object values
796 They can also be nested:
797 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
798 And work with the type unions as well:
799 ArrayRef[Int | Str] # array of integers of strings
801 * Better Framework Extendability
802 Moose.pm is now "extendable" such that it is now much
803 easier to extend the framework and add your own keywords
804 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
805 section of the Moose.pm docs.
808 In an effort to begin documenting some of the various
809 details of Moose as well as some common idioms, we have
810 created Moose::Cookbook::Snacks as a place to find
811 small (easily digestable) nuggets of Moose code.
814 ~ Several doc updates/cleanup thanks to castaway ~
816 - converted build system to use Module::Install instead of
817 Module::Build (thanks to jrockway)
820 - added all the meta classes to the immutable list and
821 set it to inline the accessors
822 - fix import to allow Sub::Exporter like { into => }
823 and { into_level => } (perigrin)
824 - exposed and documented init_meta() to allow better
825 embedding and extending of Moose (perigrin)
828 - complete re-organization of the test suite
829 - added some new tests as well
830 - finally re-enabled the Moose::POOP test since
831 the new version of DBM::Deep now works again
835 - fixed very odd and very nasty recursion bug with
837 - added tests for this (eilara)
839 * Moose::Meta::Attribute
840 Moose::Meta::Method::Constructor
841 Moose::Meta::Method::Accessor
842 - fixed issue with overload::Overloaded getting called
843 on non-blessed items. (RT #29269)
844 - added tests for this
846 * Moose::Meta::Method::Accessor
847 - fixed issue with generated accessor code making
848 assumptions about hash based classes (thanks to dexter)
850 * Moose::Coookbook::Snacks
851 - these are bits of documentation, not quite as big as
852 Recipes but which have no clear place in the module docs.
853 So they are Snacks! (horray for castaway++)
855 * Moose::Cookbook::Recipe4
856 - updated it to use the new ArrayRef[MyType] construct
857 - updated the accompanying test as well
859 +++ Major Refactor of the Type Constraint system +++
860 +++ with new features added as well +++
862 * Moose::Util::TypeConstraint
863 - no longer uses package variable to keep track of
864 the type constraints, now uses the an instance of
865 Moose::Meta::TypeConstraint::Registry to do it
866 - added more sophisticated type notation parsing
868 - added tests for this
870 * Moose::Meta::TypeConstraint
871 - some minor adjustments to make subclassing easier
872 - added the package_defined_in attribute so that we
873 can track where the type constraints are created
875 * Moose::Meta::TypeConstraint::Union
876 - this is now been refactored to be a subclass of
877 Moose::Meta::TypeConstraint
879 * Moose::Meta::TypeCoercion::Union
880 - this has been added to service the newly refactored
881 Moose::Meta::TypeConstraint::Union and is itself
882 a subclass of Moose::Meta::TypeCoercion
884 * Moose::Meta::TypeConstraint::Parameterized
885 - added this module (taken from MooseX::AttributeHelpers)
886 to help construct nested collection types
887 - added tests for this
889 * Moose::Meta::TypeConstraint::Registry
890 - added this class to keep track of type constraints
892 0.25 Mon. Aug. 13, 2007
894 - Documentation update to reference Moose::Util::TypeConstraints
895 under 'isa' in 'has' for how to define a new type
898 * Moose::Meta::Attribute
899 - required attributes now will no longer accept undef
900 from the constructor, even if there is a default and lazy
901 - added tests for this
902 - default subroutines must return a value which passes the
904 - added tests for this
906 * Moose::Meta::Attribute
907 * Moose::Meta::Method::Constructor
908 * Moose::Meta::Method::Accessor
909 - type-constraint tests now handle overloaded objects correctly
911 - added tests for this (thanks to EvanCarroll)
913 * Moose::Meta::TypeConstraint::Union
914 - added (has_)hand_optimized_constraint to this class so that
915 it behaves as the regular Moose::Meta::TypeConstraint does.
918 - large refactoring of this code
919 - added several more tests
920 - tests for subtle conflict resolition issues
921 added, but not currently running
924 * Moose::Cookbook::Recipe7
925 - added new recipe for augment/inner functionality
927 - added test for this
930 - a formal definition of roles (still in progress)
933 - utilities for easier working with Moose classes
934 - added tests for these
937 - This contains Moose specific test functions
938 - added tests for these
940 0.24 Tues. July 3, 2007
941 ~ Some doc updates/cleanup ~
943 * Moose::Meta::Attribute
944 - added support for roles to be given as parameters
945 to the 'handles' option.
946 - added tests and docs for this
947 - the has '+foo' attribute form now accepts changes to
948 the lazy option, and the addition of a handles option
949 (but not changing the handles option)
950 - added tests and docs for this
953 - required methods are now fetched using find_method_by_name
954 so that required methods can come from superclasses
955 - adjusted tests for this
957 0.23 Mon. June 18, 2007
958 * Moose::Meta::Method::Constructor
959 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
961 - Modify make_immutable to work with the new Class::MOP immutable
962 mechanism + POD + very basic test (groditi)
963 * Moose::Meta::Attribute
964 - Fix handles to use goto() so that caller() comes out properly on
965 the other side (perigrin)
967 0.22 Thurs. May 31, 2007
968 * Moose::Util::TypeConstraints
969 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
970 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
971 prototypes for functions
972 - added the ClassName type constraint, this checks for strings
973 which will respond true to ->isa(UNIVERSAL).
974 - added tests and docs for this
975 - subtyping just in name now works correctly by making the
976 default for where be { 1 }
977 - added test for this
979 * Moose::Meta::Method::Accessor
980 - coerce and lazy now work together correctly, thanks to
981 merlyn for finding this bug
982 - tests added for this
983 - fix reader presedence bug in Moose::Meta::Attribute + tests
986 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
987 a HASH-ref and missed. This produces better error messages then
988 having it die cause undef is not a HASH.
989 - added tests for this
991 0.21 Thursday, May 2nd, 2007
993 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
994 - modified unimport to remove super and inner along with the rest
995 - altered unimport tests to handle this
998 - altered super export to populate SUPER_SLOT
1000 * Moose::Meta::Class
1001 - altered augment and override modifier application to use *_SLOT
1002 - modified tests for these to unimport one test class each to test
1005 - fixed issue where custom attribute metaclasses
1006 where not handled correctly in roles
1007 - added tests for this
1009 * Moose::Meta::Class
1010 - fixed issue where extending metaclasses with
1011 roles would blow up. Thanks to Aankhen`` for
1012 finding this insidious error, and it's solution.
1014 ~~ lots of spelling and grammer fixes in the docs,
1015 many many thanks to rlb3 and Aankhen for these :)
1017 0.20 Friday, April 6th, 2007
1018 >> I messed up the SKIP logic in one test
1019 so this release is just to fix that.
1022 - 'has' now also accepts an ARRAY ref
1023 to create multiple attrs (see docs)
1024 (thanks to konobi for this)
1025 - added tests and docs
1027 0.19 Thurs. April 5th, 2007
1028 ~~ More documentation updates ~~
1030 * Moose::Util::TypeConstraints
1031 - 'type' now supports messages as well
1032 thanks to phaylon for finding this
1033 - added tests for this
1034 - added &list_all_type_constraints and
1035 &list_all_builtin_type_constraints
1036 functions to facilitate introspection.
1038 * Moose::Meta::Attribute
1039 - fixed regexp 'handles' declarations
1040 to build the list of delegated methods
1041 correctly (and not override important
1042 things like &new) thanks to ashleyb
1044 - added tests and docs for this
1045 - added the 'documentation' attributes
1046 so that you can actually document your
1047 attributes and inspect them through the
1049 - added tests and docs for this
1051 * Moose::Meta::Class
1052 - when loading custom attribute metaclasses
1053 it will first look in for the class in the
1054 Moose::Meta::Attribute::Custom::$name, and
1055 then default to just loading $name.
1056 - added tests and docs for this
1058 * Moose::Meta::TypeConstraint
1059 - type constraints now stringify to their names.
1060 - added test for this
1063 - added tests to assure we work with Module::Refresh
1064 - added stricter test skip logic in the Moose POOP
1065 test, ask Rob Kinyon why.
1066 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1068 0.18 Sat. March 10, 2007
1069 ~~ Many, many documentation updates ~~
1072 - We now use Class::MOP::load_class to
1074 - added tests to show types and subtypes
1075 working with Declare::Constraints::Simple
1076 and Test::Deep as constraint engines.
1079 !! You must have Class::MOP 0.37_001 !!
1080 !! for this developer release to work !!
1082 This release was primarily adding the immutable
1083 feature to Moose. An immutable class is one which
1084 you promise not to alter. When you set the class
1085 as immutable it will perform various bits of
1086 memoization and inline certain part of the code
1087 (constructors, destructors and accessors). This
1088 minimizes (and in some cases totally eliminates)
1089 one of Moose's biggest performance hits. This
1090 feature is not on by default, and is 100% optional.
1091 It has several configurable bits as well, so you
1092 can pick and choose to your specific needs.
1094 The changes involved in this were fairly wide and
1095 highly specific, but 100% backwards compatible, so
1096 I am not going to enumerate them here. If you are
1097 truely interested in what was changed, please do
1100 0.17 Tues. Nov. 14, 2006
1101 * Moose::Meta::Method::Accessor
1102 - bugfix for read-only accessors which
1103 are have a type constraint and lazy.
1104 Thanks to chansen for finding it.
1106 0.16 Tues. Nov. 14, 2006
1108 There are some speed improvements in this release,
1109 but they are only the begining, so stay tuned.
1112 - BUILDALL and DEMOLISHALL no longer get
1113 called unless they actually need to be.
1114 This gave us a signifigant speed boost
1115 for the cases when there is no BUILD or
1116 DEMOLISH method present.
1118 * Moose::Util::TypeConstraints
1119 * Moose::Meta::TypeConstraint
1120 - added an 'optimize_as' option to the
1121 type constraint, which allows for a
1122 hand optimized version of the type
1123 constraint to be used when possible.
1124 - Any internally created type constraints
1125 now provide an optimized version as well.
1127 0.15 Sun. Nov. 5, 2006
1129 This version of Moose *must* have Class::MOP 0.36 in order
1130 to work correctly. A number of small internal tweaks have
1131 been made in order to be compatible with that release.
1133 * Moose::Util::TypeConstraints
1134 - added &unimport so that you can clean out
1135 your class namespace of these exported
1138 * Moose::Meta::Class
1139 - fixed minor issue which occasionally
1140 comes up during global destruction
1142 - moved Moose::Meta::Method::Overriden into
1146 - moved Moose::Meta::Role::Method into
1149 * Moose::Meta::Attribute
1150 - changed how we do type checks so that
1151 we reduce the overall cost, but still
1154 - moved accessor generation methods to
1155 Moose::Meta::Method::Accessor to
1156 conform to the API changes from
1159 * Moose::Meta::TypeConstraint
1160 - changed how constraints are compiled
1161 so that we do less recursion and more
1162 iteration. This makes the type check
1164 - moved Moose::Meta::TypeConstraint::Union
1167 * Moose::Meta::Method::Accessor
1168 - created this from methods formerly found in
1169 Moose::Meta::Attribute
1171 * Moose::Meta::Role::Method
1172 - moved this from Moose::Meta::Role
1174 * Moose::Meta::Method::Overriden
1175 - moved this from Moose::Meta::Class
1177 * Moose::Meta::TypeConstraint::Union
1178 - moved this from Moose::Meta::TypeConstraint
1180 0.14 Mon. Oct. 9, 2006
1182 * Moose::Meta::Attribute
1183 - fixed lazy attributes which were not getting
1184 checked with the type constraint (thanks ashley)
1185 - added tests for this
1186 - removed the over-enthusiastic DWIMery of the
1187 automatic ArrayRef and HashRef defaults, it
1188 broke predicates in an ugly way.
1189 - removed tests for this
1191 0.13 Sat. Sept. 30, 2006
1193 This version of Moose *must* have Class::MOP 0.35 in order
1194 to work correctly. A number of small internal tweaks have
1195 been made in order to be compatible with that release.
1198 - Removed the use of UNIVERSAL::require to be a better
1199 symbol table citizen and remove a dependency
1200 (thanks Adam Kennedy)
1202 **~~ removed experimental & undocumented feature ~~**
1203 - commented out the 'method' and 'self' keywords, see the
1204 comments for more info.
1207 - added a FAQ and WTF files to document frequently
1208 asked questions and common problems
1210 * Moose::Util::TypeConstraints
1211 - added GlobRef and FileHandle type constraint
1212 - added tests for this
1214 * Moose::Meta::Attribute
1215 - if your attribute 'isa' ArrayRef of HashRef, and you have
1216 not explicitly set a default, then make the default DWIM.
1217 This will also work for subtypes of ArrayRef and HashRef
1219 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1220 - new test added for this (thanks to ashley)
1223 - added basic support for runtime role composition
1224 but this is still *highly experimental*, so feedback
1225 is much appreciated :)
1226 - added tests for this
1228 * Moose::Meta::TypeConstraint
1229 - the type constraint now handles the coercion process
1230 through delegation, this is to support the coercion
1233 * Moose::Meta::TypeConstraint::Union
1234 - it is now possible for coercions to be performed
1236 - added tests for this (thanks to konobi)
1238 * Moose::Meta::TypeCoercion
1239 - properly capturing error when type constraint
1243 - Scalar::Util 1.18 is bad on Win32, so temporarily
1244 only require version 1.17 for Win32 and cygwin.
1245 (thanks Adam Kennedy)
1247 0.12 Sat. Sept. 1, 2006
1249 - Recipe5 (subtypes & coercion) has been written
1252 - fixed "bad meta" error message to be more descriptive
1253 - fixed &unimport to not remove the &inner and &super
1254 keywords because we need to localize them.
1255 - fixed number of spelling/grammer issues, thanks Theory :)
1257 **~~ experimental & undocumented feature ~~**
1258 - added the method and self keywords, they are basically
1259 just sugar, and they may not stay around.
1262 - added &dump method to easily Data::Dumper
1265 * Moose::Meta::TypeConstraint
1266 - added the &is_a_type_of method to check both the current
1267 and the subtype of a method (similar to &isa with classes)
1270 - this is now a subclass of Class::MOP::Module, and no longer
1271 creates the _role_meta ugliness of before.
1272 - fixed tests to reflect this change
1274 0.11 Wed. July 12, 2006
1276 - added an &unimport method to remove all the keywords
1277 that Moose will import, simply add 'no Moose' to the
1278 bottom of your class file.
1281 - fixed some test failures caused by a forgotten test
1284 0.10 Thurs. July 6, 2006
1286 - improved error message when loading modules so
1287 it is less confusing when you load a role.
1288 - added &calculate_all_roles method to
1289 Moose::Meta::Class and Moose::Meta::Role
1292 This module has been tested against Class::MOP 0.30
1293 but it does not yet utilize the optimizations
1294 it makes available. Stay tuned for that ;)
1296 0.09_03 Fri. June 23, 2006
1297 ++ DEVELOPER RELEASE ++
1299 - 'use strict' and 'use warnings' are no longer
1300 needed in Moose classes, Moose itself will
1301 turn them on for you.
1302 - added tests for this
1303 - moved code from exported subs to private methods
1304 in Moose::Meta::Class
1307 - as with Moose, strict and warnings are
1308 automatically turned on for you.
1309 - added tests for this
1312 - now handles an edge case for override errors
1313 - added tests for this
1314 - added some more edge case tests
1316 0.09_02 Tues. May 16, 2006
1317 ++ DEVELOPER RELEASE ++
1319 - added prototypes to the exported subs
1323 - added prototypes to the exported subs
1326 * Moose::Util::TypeConstraints
1327 - cleaned up prototypes for the subs
1330 0.09_01 Fri. May 12, 2006
1331 ++ DEVELOPER RELEASE ++
1332 - This release works in combination with
1333 Class::MOP 0.29_01, it is a developer
1334 release because it uses the a new
1335 instance sub-protocol and a fairly
1336 complete Role implementation. It has
1337 not yet been optimized, so it slower
1338 the the previous CPAN version. This
1339 release also lacks good updated docs,
1340 the official release will have updated docs.
1343 - refactored the keyword exports
1344 - 'with' now checks Role validaity and
1345 accepts more than one Role at a time
1346 - 'extends' makes metaclass adjustments as
1347 needed to ensure metaclass compatability
1350 - refactored the keyword exports
1351 - 'with' now checks Role validaity and
1352 accepts more than one Role at a time
1354 * Moose::Util::TypeConstraints
1355 - added the 'enum' keyword for simple
1356 string enumerations which can be used as
1358 - see example of usage in t/202_example.t
1361 - more careful checking of params to new()
1364 - much work done on the role composition
1365 - many new tests for conflict detection
1366 and composition edge cases
1367 - not enough documentation, I suggest
1368 looking at the tests
1370 * Moose::Meta::Instance
1371 - added new Instance metaclass to support
1372 the new Class::MOP instance protocol
1374 * Moose::Meta::Class
1375 - some small changes to support the new
1377 - some small additions to support Roles
1379 * Moose::Meta::Attribute
1380 - some improvements to the accessor generation code
1382 - some small changes to support the new
1384 - (still somewhat) experimental delegation support
1385 with the 'handles' option
1386 - added several tests for this
1387 - no docs for this yet
1389 0.05 Thurs. April 27, 2006
1391 - keywords are now exported with Sub::Exporter
1392 thanks to chansen for this commit
1393 - has keyword now takes a 'metaclass' option
1394 to support custom attribute meta-classes
1395 on a per-attribute basis
1396 - added tests for this
1397 - the 'has' keyword not accepts inherited slot
1398 specifications (has '+foo'). This is still an
1399 experimental feature and probably not finished
1400 see t/038_attribute_inherited_slot_specs.t for
1401 more details, or ask about it on #moose
1402 - added tests for this
1405 - keywords are now exported with Sub::Exporter
1407 * Moose::Utils::TypeConstraints
1408 - reorganized the type constraint hierarchy, thanks
1409 to nothingmuch and chansen for his help and advice
1411 - added some tests for this
1412 - keywords are now exported with Sub::Exporter
1413 thanks to chansen for this commit
1415 * Moose::Meta::Class
1416 - due to changes in Class::MOP, we had to change
1417 construct_instance (for the better)
1419 * Moose::Meta::Attribute
1420 - due to changes in Class::MOP, we had to add the
1421 initialize_instance_slot method (it's a good thing)
1423 * Moose::Meta::TypeConstraint
1424 - added type constraint unions
1425 - added tests for this
1426 - added the is_subtype_of predicate method
1427 - added tests for this
1429 0.04 Sun. April 16th, 2006
1431 - Roles can now consume other roles
1432 - added tests for this
1433 - Roles can specify required methods now with
1434 the requires() keyword
1435 - added tests for this
1438 - ripped out much of it's guts ,.. much cleaner now
1439 - added required methods and correct handling of
1440 them in apply() for both classes and roles
1441 - added tests for this
1442 - no longer adds a does() method to consuming classes
1443 it relys on the one in Moose::Object
1444 - added roles attribute and some methods to support
1445 roles consuming roles
1447 * Moose::Meta::Attribute
1448 - added support for triggers on attributes
1449 - added tests for this
1450 - added support for does option on an attribute
1451 - added tests for this
1453 * Moose::Meta::Class
1454 - added support for attribute triggers in the
1456 - added tests for this
1459 - Moose no longer creates a subtype for your class
1460 if a subtype of the same name already exists, this
1461 should DWIM in 99.9999% of all cases
1463 * Moose::Util::TypeConstraints
1464 - fixed bug where incorrect subtype conflicts were
1466 - added test for this
1469 - this class can now be extended with 'use base' if
1470 you need it, it properly loads the metaclass class now
1471 - added test for this
1473 0.03_02 Wed. April 12, 2006
1475 - you must now explictly use Moose::Util::TypeConstraints
1476 it no longer gets exported for you automatically
1479 - new() now accepts hash-refs as well as key/value lists
1480 - added does() method to check for Roles
1481 - added tests for this
1483 * Moose::Meta::Class
1484 - added roles attribute along with the add_role() and
1486 - added tests for this
1489 - now adds a does() method to consuming classes
1490 which tests the class's hierarchy for roles
1491 - added tests for this
1493 0.03_01 Mon. April 10, 2006
1495 - added new Role recipe (no content yet, only code)
1498 - added 'with' keyword for Role support
1499 - added test and docs for this
1500 - fixed subtype quoting bug
1501 - added test for this
1505 - added test and docs
1507 * Moose::Util::TypeConstraints
1508 - added the message keyword to add custom
1509 error messages to type constraints
1512 - the meta role to support Moose::Role
1513 - added tests and docs
1515 * Moose::Meta::Class
1516 - moved a number of things from Moose.pm
1517 to here, they should have been here
1520 * Moose::Meta::Attribute
1521 - moved the attribute option macros here
1522 instead of putting them in Moose.pm
1524 * Moose::Meta::TypeConstraint
1525 - added the message attributes and the
1527 - added tests and docs for this
1529 0.03 Thurs. March 30, 2006
1531 - added the Moose::Cookbook with 5 recipes,
1532 describing all the stuff Moose can do.
1535 - fixed an issue with &extends super class loading
1536 it now captures errors and deals with inline
1537 packages correctly (bug found by mst, solution
1539 - added super/override & inner/augment features
1540 - added tests and docs for these
1543 - BUILDALL now takes a reference of the %params
1544 that are passed to &new, and passes that to
1547 * Moose::Util::TypeConstraints
1548 - Type constraints now survive runtime reloading
1549 - added test for this
1551 * Moose::Meta::Class
1552 - fixed the way attribute defaults are handled
1553 during instance construction (bug found by chansen)
1555 * Moose::Meta::Attribute
1556 - read-only attributes now actually enforce their
1557 read-only-ness (this corrected in Class::MOP as
1560 0.02 Tues. March 21, 2006
1562 - many more tests, fixing some bugs and
1564 - &extends now loads the base module with
1566 - added UNIVERSAL::require to the
1569 - each new Moose class will also create
1570 and register a subtype of Object which
1571 correspond to the new Moose class.
1572 - the 'isa' option in &has now only
1573 accepts strings, and will DWIM in
1576 * Moose::Util::TypeConstraints
1577 - added type coercion features
1578 - added tests for this
1579 - added support for this in attributes
1580 and instance construction
1582 - type construction no longer creates a
1583 function, it registers the type instead.
1584 - added several functions to get the
1588 - BUILDALL and DEMOLISHALL were broken
1589 because of a mis-named hash key, Whoops :)
1591 * Moose::Meta::Attribute
1592 - adding support for coercion in the
1593 autogenerated accessors
1595 * Moose::Meta::Class
1596 - adding support for coercion in the
1597 instance construction
1599 * Moose::Meta::TypeConstraint
1600 * Moose::Meta::TypeCoercion
1601 - type constraints and coercions are now
1602 full fledges meta-objects
1604 0.01 Wed. March 15, 2006
1605 - Moooooooooooooooooose!!!