1 Revision history for Perl extension Moose
5 * Moose::Meta::Attribute
6 - breaking down the way 'handles' methods are
7 created so that the process can be more easily
8 overridden by subclasses (stevan)
10 * Moose::Meta::TypeConstraint
11 - fixing what is passed into a ->message with
12 the type constraints (RT #37569)
13 - added tests for this (Charles Alderman)
15 0.54 Thurs. July 3, 2008
16 ... this is not my day today ...
18 * Moose::Meta::Attribute
19 - fixed legal_options_for_inheritance such that
20 clone_and_inherit options still works for
21 Class::MOP::Attribute objects and therefore
22 does not break MooseX::AttributeHelpers
25 0.53 Thurs. July 3, 2008
26 * Whoops, I guess I should run 'make manifest' before
27 actually releasing the module. No actual changes
28 in this release, except the fact that it includes
29 the changes that I didn't include in the last
32 0.52 Thurs. July 3, 2008
34 - added "FEATURE REQUESTS" section to the Moose docs
35 to properly direct people (stevan) (RT #34333)
36 - making 'extends' croak if it is passed a Role since
37 this is not ever something you want to do
38 (fixed by stevan, found by obra)
39 - added tests for this (stevan)
42 - adding support for DOES (as in UNIVERSAL::DOES)
46 * Moose::Meta::Attribute
47 - added legal_options_for_inheritance (wreis)
48 - added tests for this (wreis)
50 * Moose::Cookbook::Snacks::*
51 - removed some of the unfinished snacks that should
52 not have been released yet. Added some more examples
53 to the 'Keywords' snack. (stevan)
55 * Moose::Cookbook::Style
56 - added general Moose "style guide" of sorts to the
57 cookbook (nothingmuch) (RT #34335)
60 - added more BUILDARGS tests (stevan)
62 0.51 Thurs. Jun 26, 2008
64 - add unimport so "no Moose::Role" actually does
67 * Moose::Meta::Role::Application::ToRole
68 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
69 order to provide its own implementation, that method still got
70 added to the list of required methods for consumers of
71 RoleB. Now an aliased method is only added to the list of
72 required methods if the role doing the aliasing does not
73 provide its own implementation. See Recipe 11 for an example
74 of all this. (Dave Rolsky)
75 - added tests for this
77 * Moose::Meta::Method::Constructor
78 - when a single argument that wasn't a hashref was provided to
79 an immutabilized constructor, the error message was very
80 unhelpful, as opposed to the non-immutable error. Reported by
82 - added test for this (Dave Rolsky)
84 * Moose::Meta::Attribute
85 - added support for meta_attr->does("ShortAlias") (sartak)
86 - added tests for this (sartak)
87 - moved the bulk of the `handles` handling to the new
88 install_delegation method (Stevan)
91 - Added BUILDARGS, a new step in new()
93 * Moose::Meta::Role::Application::RoleSummation
94 - fix typos no one ever sees (sartak)
96 * Moose::Util::TypeConstraints
97 * Moose::Meta::TypeConstraint
98 * Moose::Meta::TypeCoercion
99 - Attempt to work around the ??{ } vs. threads issue
101 - Some null_constraint optimizations
103 0.50 Thurs. Jun 11, 2008
104 - Fixed a version number issue by bumping all modules
107 0.49 Thurs. Jun 11, 2008
108 !! This version now approx. 20-25% !!
109 !! faster with new Class::MOP 0.59 !!
111 * Moose::Meta::Attribute
112 - fixed how the is => (ro|rw) works with
113 custom defined reader, writer and accessor
115 - added docs for this (TODO).
116 - added tests for this (Thanks to Penfold)
117 - added the custom attribute alias for regular
118 Moose attributes which is "Moose"
119 - fix builder and default both being used
124 Moose::Meta::Attribute
126 Moose::Meta::Role::Composite
127 Moose::Util::TypeConstraints
128 - switched usage of reftype to ref because
132 - changing add_package_symbol to use the new
136 - fixed how DEMOLISHALL is called so that it
137 can be overrided in subclasses (thanks to Sartak)
138 - added test for this (thanks to Sartak)
140 * Moose::Util::TypeConstraints
141 - move the ClassName type check code to
142 Class::MOP::is_class_loaded (thanks to Sartak)
144 * Moose::Cookbook::Recipe11
145 - add tests for this (thanks to tokuhirom)
147 0.48 Thurs. May 29, 2008
148 (early morning release engineering)--
150 - fixing the version in Moose::Meta::Method::Destructor
151 which was causing the indexer to choke
153 0.47 Thurs. May 29, 2008
154 (late night release engineering)--
156 - fixing the version is META.yml, no functional
157 changes in this release
159 0.46 Wed. May 28, 2008
160 !! This version now approx. 20-25% !!
161 !! faster with new Class::MOP 0.57 !!
164 - some optimizations of the &initialize method
165 since it is called so often by &meta
169 - now use the get_all_package_symbols from the
170 updated Class::MOP, test suite is now 10 seconds
173 * Moose::Meta::Method::Destructor
174 - is_needed can now also be called as a class
175 method for immutablization to check if the
176 destructor object even needs to be created
179 * Moose::Meta::Method::Destructor
180 Moose::Meta::Method::Constructor
181 - added more descriptive error message to help
182 keep people from wasting time tracking an error
183 that is easily fixed by upgrading.
185 0.45 Saturday, May 24, 2008
187 - Because of work in Class::MOP 0.56, all
188 XS based functionality is now optional
189 and a Pure Perl version is supplied
190 - the CLASS_MOP_NO_XS environment variable
191 can now be used to force non-XS versions
193 - several of the packages have been tweaked
194 to take care of this, mostly we added
195 support for the package_name and name
196 variables in all the Method metaclasses
197 - before/around/after method modifiers now
198 support regexp matching of names
199 (thanks to Takatoshi Kitano)
200 - tests added for this
201 - NOTE: this only works for classes, it
202 is currently not supported in roles,
203 but, ... patches welcome
204 - All usage of Carp::confess have been replaced
205 by Carp::croak in the "keyword" functions since
206 the stack trace is usually not helpful
209 - All usage of Carp::confess have been replaced
210 by Carp::croak in the "keyword" functions since
211 the stack trace is usually not helpful
212 - The 'has' keyword for roles now accepts the
213 same array ref form that Moose.pm does
214 (has [qw/foo bar/] => (is => 'rw', ...))
215 - added test for this
217 * Moose::Meta::Attribute
218 - trigger on a ro-attribute is no longer an
219 error, as it's useful to trigger off of the
223 - added same 'add_package_symbol' fix as in
227 - does_role now handles non-Moose classes
229 - added tests for this
230 - added the 'add_method_modifier' function
231 (thanks to Takatoshi Kitano)
233 * Moose::Util::TypeConstraints
234 - subtypes of parameterizable types now are
235 themselves parameterizable types
237 * Moose::Meta::Method::Constructor
238 - fixed bug where trigger was not being
239 called by the inlined immutable
241 - added test for this (thanks to Caelum)
243 * Moose::Meta::Role::Application::ToInstance
244 - now uses the metaclass of the instance
245 (if possible) to create the anon-class
246 (thanks Jonathan Rockway)
248 * Moose::Cookbook::Recipe22
249 - added the meta-attribute trait recipe
253 - fixed hash-ordering test bug that was
254 causing occasional cpantester failures
255 - renamed the t/000_recipe/*.t tests to be
256 more descriptive (thanks to Sartak)
258 0.44 Sat. May 10, 2008
260 - made make_immutable warning cluck to
261 show where the error is (thanks mst)
264 - BUILDALL and DEMOLISHALL now call
265 ->body when looping through the
266 methods, to avoid the overloaded
268 - fixed issue where DEMOLISHALL was
269 eating the $@ values, and so not
270 working correctly, it still kind of
271 eats them, but so does vanilla perl
272 - added tests for this
274 * Moose::Cookbook::Recipe7
275 - added new recipe for immutable
276 functionality (thanks Dave Rolsky)
278 * Moose::Cookbook::Recipe9
279 - added new recipe for builder and
280 lazy_build (thanks Dave Rolsky)
282 * Moose::Cookbook::Recipe11
283 - added new recipe for method aliasing
284 and exclusion with Roles (thanks Dave Rolsky)
287 - fixed Win32 test failure (thanks spicyjack)
289 ~ removed Build.PL and Module::Build compat
290 since Module::Install has done that.
292 0.43 Wed. April, 30, 2008
294 drink more coffee before
295 doing release engineering
297 - whoops, forgot to do the smolder tests,
298 and we broke some of the custom meta-attr
299 modules. This fixes that.
301 0.42 Mon. April 28, 2008
302 - some bad tests slipped by, nothing else
303 changed in this release (cpantesters++)
305 - upped the Class::MOP dependency to 0.55
306 since we have tests which need the C3
309 0.41 Mon. April 28, 2008
310 ~~ numerous documentation updates ~~
312 - Changed all usage of die to Carp::croak for better
313 error reporting (initial patch by Tod Hagan)
316 - the make_immutable keyword is now deprecated, don't
317 use it in any new code and please fix your old code
318 as well. There will be 2 releases, and then it will
324 - refactored the way inner and super work to avoid
325 any method/@ISA cache penalty (nothingmuch)
328 - fixing &new_object to make sure trigger gets the
329 coerced value (spotted by Charles Alderman on the
331 - added test for this
333 * Moose::Meta::Method::Constructor
334 - immutable classes which had non-lazy attributes were calling
335 the default generating sub twice in the constructor. (bug
336 found by Jesse Luehrs, fixed by Dave Rolsky)
337 - added tests for this (Dave Rolsky)
338 - fix typo in initialize_body method (nothingmuch)
340 * Moose::Meta::Method::Destructor
341 - fix typo in initialize_body method (nothingmuch)
343 * Moose::Meta::Method::Overriden
344 Moose::Meta::Method::Augmented
345 - moved the logic for these into their own
346 classes (nothingmuch)
348 * Moose::Meta::Attribute
349 - inherited attributes may now be extended without
350 restriction on the type ('isa', 'does') (Sartak)
351 - added tests for this (Sartak)
352 - when an attribute property is malformed (such as lazy without
353 a default), give the name of the attribute in the error
355 - added the &applied_traits and &has_applied_traits methods
356 to allow introspection of traits
357 - added tests for this
358 - moved 'trait' and 'metaclass' argument handling to here from
360 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
361 '+foo' syntax) (nothingmuch)
362 - added tests for this (t0m)
365 - localize $@ inside DEMOLISHALL to avoid it
366 eating $@ (found by Ernesto)
367 - added test for this (thanks to Ernesto)
369 * Moose::Util::TypeConstraints
370 - &find_type_constraint now DWIMs when given an
371 type constraint object or name (nothingmuch)
372 - &find_or_create_type_constraint superseded with a number of more
374 - find_or_create_{isa,does}_type_constraint
375 - find_or_parse_type_constraint
377 * Moose::Meta::TypeConstraint
378 Moose::Meta::TypeConstraint::Class
379 Moose::Meta::TypeConstraint::Role
380 Moose::Meta::TypeConstraint::Enum
381 Moose::Meta::TypeConstraint::Union
382 Moose::Meta::TypeConstraint::Parameterized
383 - added the &equals method for comparing two type
384 constraints (nothingmuch)
385 - added tests for this (nothingmuch)
387 * Moose::Meta::TypeConstraint
388 - add the &parents method, which is just an alias to &parent.
389 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
391 * Moose::Meta::TypeConstraint::Class
392 - added the class attribute for introspection purposes
394 - added tests for this
396 * Moose::Meta::TypeConstraint::Enum
397 Moose::Meta::TypeConstraint::Role
398 - broke these out into their own classes (nothingmuch)
400 * Moose::Cookbook::Recipe*
401 - fixed references to test file locations in the POD
402 and updated up some text for new Moose features
406 - Added &resolve_metaclass_alias, a helper function for finding an actual
407 class for a short name (e.g. in the traits list)
409 0.40 Fri. March 14, 2008
410 - I hate Pod::Coverage
412 0.39 Fri. March 14, 2008
414 - documenting the use of '+name' with attributes
415 that come from recently composed roles. It makes
416 sense, people are using it, and so why not just
417 officially support it.
418 - fixing the 'extends' keyword so that it will not
419 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
422 - added the perl -Moose=+Class::Name feature to allow
423 monkeypatching of classes in one liners
426 - fixing the 'apply_all_roles' keyword so that it will not
427 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
430 - added ->create method which now supports roles (thanks to jrockway)
431 - added tests for this
432 - added ->create_anon_class which now supports roles and caching of
433 the results (thanks to jrockway)
434 - added tests for this
435 - made ->does_role a little more forgiving when it is
436 checking a Class::MOP era metaclasses.
438 * Moose::Meta::Role::Application::ToInstance
439 - it is now possible to pass extra params to be used when
440 a role is applied to an the instance (rebless_params)
441 - added tests for this
443 * Moose::Util::TypeConstraints
444 - class_type now accepts an optional second argument for a
445 custom message. POD anotated accordingly (groditi)
446 - added tests for this
447 - it is now possible to make anon-enums by passing 'enum' an
448 ARRAY ref instead of the $name => @values. Everything else
450 - added tests for this
453 - making test for using '+name' on attributes consumed
454 from a role, it works and makes sense too.
456 * Moose::Meta::Attribute
457 - fix handles so that it doesn't return nothing
458 when the method cannot be found, not sure why
459 it ever did this originally, this means we now
460 have slightly better support for AUTOLOADed
462 - added more delegation tests
463 - adding ->does method to this so as to better
464 support traits and their introspection.
465 - added tests for this
468 - localizing the Data::Dumper configurations so
469 that it does not pollute others (RT #33509)
470 - made ->does a little more forgiving when it is
471 passed Class::MOP era metaclasses.
473 0.38 Fri. Feb. 15, 2008
474 * Moose::Meta::Attribute
475 - fixed initializer to correctly do
476 type checking and coercion in the
478 - added tests for this
481 - fixed some finicky tests (thanks to konobi)
483 0.37 Thurs. Feb. 14, 2008
485 - fixed some details in Moose::init_meta
486 and its superclass handling (thanks thepler)
487 - added tests for this (thanks thepler)
488 - 'has' now dies if you don't pass in name
490 - added the 'make_immutable' keyword as a shortcut
494 Moose::Meta::Method::Constructor
495 Moose::Meta::Attribute
496 - making (init_arg => undef) work here too
497 (thanks to nothingmuch)
499 * Moose::Meta::Attribute
500 Moose::Meta::Method::Constructor
501 Moose::Meta::Method::Accessor
502 - make lazy attributes respect attr initializers (rjbs)
503 - added tests for this
505 * Moose::Util::TypeConstraints
506 Moose::Util::TypeConstraints::OptimizedConstraints
507 Moose::Meta::TypeConstraints
508 Moose::Meta::Attribute
509 Moose::Meta::Method::Constructor
510 Moose::Meta::Method::Accessor
511 - making type errors use the
512 assigned message (thanks to Sartak)
513 - added tests for this
515 * Moose::Meta::Method::Destructor
516 - making sure DESTROY gets inlined properly
517 with successive DEMOLISH calls (thanks to manito)
519 * Moose::Meta::Attribute
520 Moose::Meta::Method::Accessor
521 - fixed handling of undef with type constraints
523 - added tests for this
526 - added &get_all_init_args and &get_all_attribute_values
527 (thanks to Sartak and nothingmuch)
529 0.36 Sat. Jan. 26, 2008
531 Moose::Meta::Attribute
532 - role type tests now support when roles are
533 applied to non-Moose classes (found by ash)
534 - added tests for this (thanks to ash)
535 - couple extra tests to boost code coverage
537 * Moose::Meta::Method::Constructor
538 - improved fix for handling Class::MOP attributes
539 - added test for this
542 - handled the add_attribute($attribute_meta_object)
544 - added test for this
546 0.35 Tues. Jan. 22, 2008
547 * Moose::Meta::Method::Constructor
548 - fix to make sure even Class::MOP attributes
549 are handled correctly (Thanks to Dave Rolsky)
550 - added test for this (also Dave Rolsky)
553 - improved error message on _apply_all_roles,
554 you should now use Moose::Util::apply_all_roles
555 and you shouldnt have been using a _ prefixed
556 method in the first place ;)
558 0.34 Mon. Jan. 21, 2008
559 ~~~ more misc. doc. fixes ~~~
560 ~~ updated copyright dates ~~
562 Moose is now a postmodern object system :)
563 - (see the POD for details)
565 * <<Role System Refactoring>>
566 - this release contains a major reworking and
567 cleanup of the role system
568 - 100% backwards compat.
569 - Role application now restructured into seperate
570 classes based on type of applicants
571 - Role summation (combining of more than one role)
572 is much cleaner and anon-classes are no longer
574 - new Composite role metaclass
575 - runtime application of roles to instances
576 is now more efficient and re-uses generated
577 classes when applicable
579 * <<New Role composition features>>
580 - methods can now be excluded from a given role
582 - methods can now be aliased to another name (and
583 still retain the original as well)
585 * Moose::Util::TypeConstraints::OptimizedConstraints
586 - added this module (see above)
589 - fixed the &_process_attribute method to be called
590 by &add_attribute, so that the API is now correct
592 * Moose::Meta::Method::Accessor
593 - fixed bug when passing a list of values to
594 an accessor would get (incorrectly) ignored.
595 Thanks to Sartak for finding this ;)
596 - added tests for this (Sartak again)
598 * Moose::Meta::Method::Accessor
599 Moose::Meta::Method::Constructor
600 Moose::Meta::Attribute
601 Moose::Meta::TypeConstraint
602 Moose::Meta::TypeCoercion
603 - lots of cleanup of such things as:
605 - type constraint handling
606 - error handling/messages
607 (thanks to nothingmuch)
609 * Moose::Meta::TypeConstraint::Parameterizable
610 - added this module to support the refactor
611 in Moose::Meta::TypeConstraint::Parameterized
613 * Moose::Meta::TypeConstraint::Parameterized
614 - refactored how these types are handled so they
615 are more generic and not confined to ArrayRef
619 - shortened some file names for better VMS support (RT #32381)
621 0.33 Fri. Dec. 14, 2007
622 !! Moose now loads 2 x faster !!
623 !! with new Class::MOP 0.49 !!
625 ++ new oose.pm module to make command line
626 Moose-ness easier (see POD docs for more)
630 - several tweaks to take advantage of the
631 new method map caching in Class::MOP
633 * Moose::Meta::TypeConstraint::Parameterized
634 - allow subtypes of ArrayRef and HashRef to
635 be used as a container (sartak)
636 - added tests for this
637 - basic support for coercion to ArrayRef and
638 HashRef for containers (sartak)
639 - added tests for this
641 * Moose::Meta::TypeCoercion
642 - coercions will now create subtypes as needed
643 so you can now add coercions to parameterized
644 types without having to explictly define them
645 - added tests for this
647 * Moose::Meta::Method::Accessor
648 - allow subclasses to decide whether we need
649 to copy the value into a new variable (sartak)
651 0.32 Tues. Dec. 4, 2007
652 * Moose::Util::TypeConstraints
653 - fixing how subtype aliases of unions work
654 they should inherit the parent's coercion
655 - added tests for this
656 - you can now define multiple coercions on
657 a single type at different times instead of
658 having to do it all in one place
659 - added tests for this
661 * Moose::Meta::TypeConstraint
662 - there is now a default constraint of sub { 1 }
663 instead of Moose::Util::TypeConstraints setting
666 * Moose::Meta::TypeCoercion
667 * Moose::Meta::TypeCoercion::Union
668 - added the &has_coercion_for_type and
669 &add_type_coercions methods to support the
670 new features above (although you cannot add
671 more type coercions for Union types)
673 0.31 Mon. Nov. 26, 2007
674 * Moose::Meta::Attribute
675 - made the +attr syntax handle extending types with
676 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
677 now works if the original foo is an ArrayRef.
678 - added tests for this.
679 - delegation now works even if the attribute does not
680 have a reader method using the get_read_method_ref
681 method from Class::MOP::Attribute.
682 - added tests for this
683 - added docs for this
685 * Moose::Util::TypeConstraints
686 - passing no "additional attribute info" to
687 &find_or_create_type_constraint will no longer
688 attempt to create an __ANON__ type for you,
689 instead it will just return undef.
690 - added docs for this
692 0.30 Fri. Nov. 23, 2007
693 * Moose::Meta::Method::Constructor
694 -builder related bug in inlined constructor. (groditi)
696 * Moose::Meta::Method::Accessor
697 - genereate unnecessary calls to predicates and refactor
698 code generation for runtime speed (groditi)
700 * Moose::Util::TypeConstraints
701 - fix ClassName constraint to introspect symbol table (mst)
702 - added more tests for this (mst)
703 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
705 - added tests for this
708 - adding the link to Recipie 11 (written by Sartak)
709 - adding test for SYNOPSIS code
712 - New tests for builder bug. Upon instantiation, if an
713 attribute had a builder, no value and was not lazy the
714 builder default was not getting run, oops. (groditi)
716 0.29 Tues. Nov. 13, 2007
717 * Moose::Meta::Attribute
718 - Fix error message on missing builder method (groditi)
720 * Moose::Meta::Method::Accessor
721 - Fix error message on missing builder method (groditi)
724 - Add test to check for the correct error message when
725 builder method is missing (groditi)
727 0.28 Tues. Nov. 13, 2007
728 - 0.27 packaged incorrectly (groditi)
730 0.27 Tues. Nov. 13, 2007
731 * Moose::Meta::Attribute
732 - Added support for the new builder option (groditi)
733 - Added support for lazy_build option (groditi)
734 - Changed slot initialization for predicate changes (groditi)
736 * Moose::Meta::Method::Accessor
737 - Added support for lazy_build option (groditi)
738 - Fix inline methods to work with corrected predicate
741 * Moose::Meta::Method::Constructor
742 - Added support for lazy_build option (groditi)
745 - tests for builder and lazy_build (groditi)
747 * fixing some misc. bits in the docs that
748 got mentioned on CPAN Forum & perlmonks
751 - fixed how required methods are handled
752 when they encounter overriden or modified
753 methods from a class (thanks to confound).
754 - added tests for this
756 * Moose::Util::TypeConstraint
757 - fixed the type notation parser so that
758 the | always creates a union and so is
759 no longer a valid type char (thanks to
760 konobi, mugwump and #moose for working
762 - added more tests for this
764 0.26 Thurs. Sept. 27, 2007
767 * Parameterized Types
768 We now support parameterized collection types, such as:
769 ArrayRef[Int] # array or integers
770 HashRef[Object] # a hash with object values
771 They can also be nested:
772 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
773 And work with the type unions as well:
774 ArrayRef[Int | Str] # array of integers of strings
776 * Better Framework Extendability
777 Moose.pm is now "extendable" such that it is now much
778 easier to extend the framework and add your own keywords
779 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
780 section of the Moose.pm docs.
783 In an effort to begin documenting some of the various
784 details of Moose as well as some common idioms, we have
785 created Moose::Cookbook::Snacks as a place to find
786 small (easily digestable) nuggets of Moose code.
789 ~ Several doc updates/cleanup thanks to castaway ~
791 - converted build system to use Module::Install instead of
792 Module::Build (thanks to jrockway)
795 - added all the meta classes to the immutable list and
796 set it to inline the accessors
797 - fix import to allow Sub::Exporter like { into => }
798 and { into_level => } (perigrin)
799 - exposed and documented init_meta() to allow better
800 embedding and extending of Moose (perigrin)
803 - complete re-organization of the test suite
804 - added some new tests as well
805 - finally re-enabled the Moose::POOP test since
806 the new version of DBM::Deep now works again
810 - fixed very odd and very nasty recursion bug with
812 - added tests for this (eilara)
814 * Moose::Meta::Attribute
815 Moose::Meta::Method::Constructor
816 Moose::Meta::Method::Accessor
817 - fixed issue with overload::Overloaded getting called
818 on non-blessed items. (RT #29269)
819 - added tests for this
821 * Moose::Meta::Method::Accessor
822 - fixed issue with generated accessor code making
823 assumptions about hash based classes (thanks to dexter)
825 * Moose::Coookbook::Snacks
826 - these are bits of documentation, not quite as big as
827 Recipes but which have no clear place in the module docs.
828 So they are Snacks! (horray for castaway++)
830 * Moose::Cookbook::Recipe4
831 - updated it to use the new ArrayRef[MyType] construct
832 - updated the accompanying test as well
834 +++ Major Refactor of the Type Constraint system +++
835 +++ with new features added as well +++
837 * Moose::Util::TypeConstraint
838 - no longer uses package variable to keep track of
839 the type constraints, now uses the an instance of
840 Moose::Meta::TypeConstraint::Registry to do it
841 - added more sophisticated type notation parsing
843 - added tests for this
845 * Moose::Meta::TypeConstraint
846 - some minor adjustments to make subclassing easier
847 - added the package_defined_in attribute so that we
848 can track where the type constraints are created
850 * Moose::Meta::TypeConstraint::Union
851 - this is now been refactored to be a subclass of
852 Moose::Meta::TypeConstraint
854 * Moose::Meta::TypeCoercion::Union
855 - this has been added to service the newly refactored
856 Moose::Meta::TypeConstraint::Union and is itself
857 a subclass of Moose::Meta::TypeCoercion
859 * Moose::Meta::TypeConstraint::Parameterized
860 - added this module (taken from MooseX::AttributeHelpers)
861 to help construct nested collection types
862 - added tests for this
864 * Moose::Meta::TypeConstraint::Registry
865 - added this class to keep track of type constraints
867 0.25 Mon. Aug. 13, 2007
869 - Documentation update to reference Moose::Util::TypeConstraints
870 under 'isa' in 'has' for how to define a new type
873 * Moose::Meta::Attribute
874 - required attributes now will no longer accept undef
875 from the constructor, even if there is a default and lazy
876 - added tests for this
877 - default subroutines must return a value which passes the
879 - added tests for this
881 * Moose::Meta::Attribute
882 * Moose::Meta::Method::Constructor
883 * Moose::Meta::Method::Accessor
884 - type-constraint tests now handle overloaded objects correctly
886 - added tests for this (thanks to EvanCarroll)
888 * Moose::Meta::TypeConstraint::Union
889 - added (has_)hand_optimized_constraint to this class so that
890 it behaves as the regular Moose::Meta::TypeConstraint does.
893 - large refactoring of this code
894 - added several more tests
895 - tests for subtle conflict resolition issues
896 added, but not currently running
899 * Moose::Cookbook::Recipe7
900 - added new recipe for augment/inner functionality
902 - added test for this
905 - a formal definition of roles (still in progress)
908 - utilities for easier working with Moose classes
909 - added tests for these
912 - This contains Moose specific test functions
913 - added tests for these
915 0.24 Tues. July 3, 2007
916 ~ Some doc updates/cleanup ~
918 * Moose::Meta::Attribute
919 - added support for roles to be given as parameters
920 to the 'handles' option.
921 - added tests and docs for this
922 - the has '+foo' attribute form now accepts changes to
923 the lazy option, and the addition of a handles option
924 (but not changing the handles option)
925 - added tests and docs for this
928 - required methods are now fetched using find_method_by_name
929 so that required methods can come from superclasses
930 - adjusted tests for this
932 0.23 Mon. June 18, 2007
933 * Moose::Meta::Method::Constructor
934 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
936 - Modify make_immutable to work with the new Class::MOP immutable
937 mechanism + POD + very basic test (groditi)
938 * Moose::Meta::Attribute
939 - Fix handles to use goto() so that caller() comes out properly on
940 the other side (perigrin)
942 0.22 Thurs. May 31, 2007
943 * Moose::Util::TypeConstraints
944 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
945 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
946 prototypes for functions
947 - added the ClassName type constraint, this checks for strings
948 which will respond true to ->isa(UNIVERSAL).
949 - added tests and docs for this
950 - subtyping just in name now works correctly by making the
951 default for where be { 1 }
952 - added test for this
954 * Moose::Meta::Method::Accessor
955 - coerce and lazy now work together correctly, thanks to
956 merlyn for finding this bug
957 - tests added for this
958 - fix reader presedence bug in Moose::Meta::Attribute + tests
961 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
962 a HASH-ref and missed. This produces better error messages then
963 having it die cause undef is not a HASH.
964 - added tests for this
966 0.21 Thursday, May 2nd, 2007
968 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
969 - modified unimport to remove super and inner along with the rest
970 - altered unimport tests to handle this
973 - altered super export to populate SUPER_SLOT
976 - altered augment and override modifier application to use *_SLOT
977 - modified tests for these to unimport one test class each to test
980 - fixed issue where custom attribute metaclasses
981 where not handled correctly in roles
982 - added tests for this
985 - fixed issue where extending metaclasses with
986 roles would blow up. Thanks to Aankhen`` for
987 finding this insidious error, and it's solution.
989 ~~ lots of spelling and grammer fixes in the docs,
990 many many thanks to rlb3 and Aankhen for these :)
992 0.20 Friday, April 6th, 2007
993 >> I messed up the SKIP logic in one test
994 so this release is just to fix that.
997 - 'has' now also accepts an ARRAY ref
998 to create multiple attrs (see docs)
999 (thanks to konobi for this)
1000 - added tests and docs
1002 0.19 Thurs. April 5th, 2007
1003 ~~ More documentation updates ~~
1005 * Moose::Util::TypeConstraints
1006 - 'type' now supports messages as well
1007 thanks to phaylon for finding this
1008 - added tests for this
1009 - added &list_all_type_constraints and
1010 &list_all_builtin_type_constraints
1011 functions to facilitate introspection.
1013 * Moose::Meta::Attribute
1014 - fixed regexp 'handles' declarations
1015 to build the list of delegated methods
1016 correctly (and not override important
1017 things like &new) thanks to ashleyb
1019 - added tests and docs for this
1020 - added the 'documentation' attributes
1021 so that you can actually document your
1022 attributes and inspect them through the
1024 - added tests and docs for this
1026 * Moose::Meta::Class
1027 - when loading custom attribute metaclasses
1028 it will first look in for the class in the
1029 Moose::Meta::Attribute::Custom::$name, and
1030 then default to just loading $name.
1031 - added tests and docs for this
1033 * Moose::Meta::TypeConstraint
1034 - type constraints now stringify to their names.
1035 - added test for this
1038 - added tests to assure we work with Module::Refresh
1039 - added stricter test skip logic in the Moose POOP
1040 test, ask Rob Kinyon why.
1041 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1043 0.18 Sat. March 10, 2007
1044 ~~ Many, many documentation updates ~~
1047 - We now use Class::MOP::load_class to
1049 - added tests to show types and subtypes
1050 working with Declare::Constraints::Simple
1051 and Test::Deep as constraint engines.
1054 !! You must have Class::MOP 0.37_001 !!
1055 !! for this developer release to work !!
1057 This release was primarily adding the immutable
1058 feature to Moose. An immutable class is one which
1059 you promise not to alter. When you set the class
1060 as immutable it will perform various bits of
1061 memoization and inline certain part of the code
1062 (constructors, destructors and accessors). This
1063 minimizes (and in some cases totally eliminates)
1064 one of Moose's biggest performance hits. This
1065 feature is not on by default, and is 100% optional.
1066 It has several configurable bits as well, so you
1067 can pick and choose to your specific needs.
1069 The changes involved in this were fairly wide and
1070 highly specific, but 100% backwards compatible, so
1071 I am not going to enumerate them here. If you are
1072 truely interested in what was changed, please do
1075 0.17 Tues. Nov. 14, 2006
1076 * Moose::Meta::Method::Accessor
1077 - bugfix for read-only accessors which
1078 are have a type constraint and lazy.
1079 Thanks to chansen for finding it.
1081 0.16 Tues. Nov. 14, 2006
1083 There are some speed improvements in this release,
1084 but they are only the begining, so stay tuned.
1087 - BUILDALL and DEMOLISHALL no longer get
1088 called unless they actually need to be.
1089 This gave us a signifigant speed boost
1090 for the cases when there is no BUILD or
1091 DEMOLISH method present.
1093 * Moose::Util::TypeConstraints
1094 * Moose::Meta::TypeConstraint
1095 - added an 'optimize_as' option to the
1096 type constraint, which allows for a
1097 hand optimized version of the type
1098 constraint to be used when possible.
1099 - Any internally created type constraints
1100 now provide an optimized version as well.
1102 0.15 Sun. Nov. 5, 2006
1104 This version of Moose *must* have Class::MOP 0.36 in order
1105 to work correctly. A number of small internal tweaks have
1106 been made in order to be compatible with that release.
1108 * Moose::Util::TypeConstraints
1109 - added &unimport so that you can clean out
1110 your class namespace of these exported
1113 * Moose::Meta::Class
1114 - fixed minor issue which occasionally
1115 comes up during global destruction
1117 - moved Moose::Meta::Method::Overriden into
1121 - moved Moose::Meta::Role::Method into
1124 * Moose::Meta::Attribute
1125 - changed how we do type checks so that
1126 we reduce the overall cost, but still
1129 - moved accessor generation methods to
1130 Moose::Meta::Method::Accessor to
1131 conform to the API changes from
1134 * Moose::Meta::TypeConstraint
1135 - changed how constraints are compiled
1136 so that we do less recursion and more
1137 iteration. This makes the type check
1139 - moved Moose::Meta::TypeConstraint::Union
1142 * Moose::Meta::Method::Accessor
1143 - created this from methods formerly found in
1144 Moose::Meta::Attribute
1146 * Moose::Meta::Role::Method
1147 - moved this from Moose::Meta::Role
1149 * Moose::Meta::Method::Overriden
1150 - moved this from Moose::Meta::Class
1152 * Moose::Meta::TypeConstraint::Union
1153 - moved this from Moose::Meta::TypeConstraint
1155 0.14 Mon. Oct. 9, 2006
1157 * Moose::Meta::Attribute
1158 - fixed lazy attributes which were not getting
1159 checked with the type constraint (thanks ashley)
1160 - added tests for this
1161 - removed the over-enthusiastic DWIMery of the
1162 automatic ArrayRef and HashRef defaults, it
1163 broke predicates in an ugly way.
1164 - removed tests for this
1166 0.13 Sat. Sept. 30, 2006
1168 This version of Moose *must* have Class::MOP 0.35 in order
1169 to work correctly. A number of small internal tweaks have
1170 been made in order to be compatible with that release.
1173 - Removed the use of UNIVERSAL::require to be a better
1174 symbol table citizen and remove a dependency
1175 (thanks Adam Kennedy)
1177 **~~ removed experimental & undocumented feature ~~**
1178 - commented out the 'method' and 'self' keywords, see the
1179 comments for more info.
1182 - added a FAQ and WTF files to document frequently
1183 asked questions and common problems
1185 * Moose::Util::TypeConstraints
1186 - added GlobRef and FileHandle type constraint
1187 - added tests for this
1189 * Moose::Meta::Attribute
1190 - if your attribute 'isa' ArrayRef of HashRef, and you have
1191 not explicitly set a default, then make the default DWIM.
1192 This will also work for subtypes of ArrayRef and HashRef
1194 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1195 - new test added for this (thanks to ashley)
1198 - added basic support for runtime role composition
1199 but this is still *highly experimental*, so feedback
1200 is much appreciated :)
1201 - added tests for this
1203 * Moose::Meta::TypeConstraint
1204 - the type constraint now handles the coercion process
1205 through delegation, this is to support the coercion
1208 * Moose::Meta::TypeConstraint::Union
1209 - it is now possible for coercions to be performed
1211 - added tests for this (thanks to konobi)
1213 * Moose::Meta::TypeCoercion
1214 - properly capturing error when type constraint
1218 - Scalar::Util 1.18 is bad on Win32, so temporarily
1219 only require version 1.17 for Win32 and cygwin.
1220 (thanks Adam Kennedy)
1222 0.12 Sat. Sept. 1, 2006
1224 - Recipe5 (subtypes & coercion) has been written
1227 - fixed "bad meta" error message to be more descriptive
1228 - fixed &unimport to not remove the &inner and &super
1229 keywords because we need to localize them.
1230 - fixed number of spelling/grammer issues, thanks Theory :)
1232 **~~ experimental & undocumented feature ~~**
1233 - added the method and self keywords, they are basically
1234 just sugar, and they may not stay around.
1237 - added &dump method to easily Data::Dumper
1240 * Moose::Meta::TypeConstraint
1241 - added the &is_a_type_of method to check both the current
1242 and the subtype of a method (similar to &isa with classes)
1245 - this is now a subclass of Class::MOP::Module, and no longer
1246 creates the _role_meta ugliness of before.
1247 - fixed tests to reflect this change
1249 0.11 Wed. July 12, 2006
1251 - added an &unimport method to remove all the keywords
1252 that Moose will import, simply add 'no Moose' to the
1253 bottom of your class file.
1256 - fixed some test failures caused by a forgotten test
1259 0.10 Thurs. July 6, 2006
1261 - improved error message when loading modules so
1262 it is less confusing when you load a role.
1263 - added &calculate_all_roles method to
1264 Moose::Meta::Class and Moose::Meta::Role
1267 This module has been tested against Class::MOP 0.30
1268 but it does not yet utilize the optimizations
1269 it makes available. Stay tuned for that ;)
1271 0.09_03 Fri. June 23, 2006
1272 ++ DEVELOPER RELEASE ++
1274 - 'use strict' and 'use warnings' are no longer
1275 needed in Moose classes, Moose itself will
1276 turn them on for you.
1277 - added tests for this
1278 - moved code from exported subs to private methods
1279 in Moose::Meta::Class
1282 - as with Moose, strict and warnings are
1283 automatically turned on for you.
1284 - added tests for this
1287 - now handles an edge case for override errors
1288 - added tests for this
1289 - added some more edge case tests
1291 0.09_02 Tues. May 16, 2006
1292 ++ DEVELOPER RELEASE ++
1294 - added prototypes to the exported subs
1298 - added prototypes to the exported subs
1301 * Moose::Util::TypeConstraints
1302 - cleaned up prototypes for the subs
1305 0.09_01 Fri. May 12, 2006
1306 ++ DEVELOPER RELEASE ++
1307 - This release works in combination with
1308 Class::MOP 0.29_01, it is a developer
1309 release because it uses the a new
1310 instance sub-protocol and a fairly
1311 complete Role implementation. It has
1312 not yet been optimized, so it slower
1313 the the previous CPAN version. This
1314 release also lacks good updated docs,
1315 the official release will have updated docs.
1318 - refactored the keyword exports
1319 - 'with' now checks Role validaity and
1320 accepts more than one Role at a time
1321 - 'extends' makes metaclass adjustments as
1322 needed to ensure metaclass compatability
1325 - refactored the keyword exports
1326 - 'with' now checks Role validaity and
1327 accepts more than one Role at a time
1329 * Moose::Util::TypeConstraints
1330 - added the 'enum' keyword for simple
1331 string enumerations which can be used as
1333 - see example of usage in t/202_example.t
1336 - more careful checking of params to new()
1339 - much work done on the role composition
1340 - many new tests for conflict detection
1341 and composition edge cases
1342 - not enough documentation, I suggest
1343 looking at the tests
1345 * Moose::Meta::Instance
1346 - added new Instance metaclass to support
1347 the new Class::MOP instance protocol
1349 * Moose::Meta::Class
1350 - some small changes to support the new
1352 - some small additions to support Roles
1354 * Moose::Meta::Attribute
1355 - some improvements to the accessor generation code
1357 - some small changes to support the new
1359 - (still somewhat) experimental delegation support
1360 with the 'handles' option
1361 - added several tests for this
1362 - no docs for this yet
1364 0.05 Thurs. April 27, 2006
1366 - keywords are now exported with Sub::Exporter
1367 thanks to chansen for this commit
1368 - has keyword now takes a 'metaclass' option
1369 to support custom attribute meta-classes
1370 on a per-attribute basis
1371 - added tests for this
1372 - the 'has' keyword not accepts inherited slot
1373 specifications (has '+foo'). This is still an
1374 experimental feature and probably not finished
1375 see t/038_attribute_inherited_slot_specs.t for
1376 more details, or ask about it on #moose
1377 - added tests for this
1380 - keywords are now exported with Sub::Exporter
1382 * Moose::Utils::TypeConstraints
1383 - reorganized the type constraint hierarchy, thanks
1384 to nothingmuch and chansen for his help and advice
1386 - added some tests for this
1387 - keywords are now exported with Sub::Exporter
1388 thanks to chansen for this commit
1390 * Moose::Meta::Class
1391 - due to changes in Class::MOP, we had to change
1392 construct_instance (for the better)
1394 * Moose::Meta::Attribute
1395 - due to changes in Class::MOP, we had to add the
1396 initialize_instance_slot method (it's a good thing)
1398 * Moose::Meta::TypeConstraint
1399 - added type constraint unions
1400 - added tests for this
1401 - added the is_subtype_of predicate method
1402 - added tests for this
1404 0.04 Sun. April 16th, 2006
1406 - Roles can now consume other roles
1407 - added tests for this
1408 - Roles can specify required methods now with
1409 the requires() keyword
1410 - added tests for this
1413 - ripped out much of it's guts ,.. much cleaner now
1414 - added required methods and correct handling of
1415 them in apply() for both classes and roles
1416 - added tests for this
1417 - no longer adds a does() method to consuming classes
1418 it relys on the one in Moose::Object
1419 - added roles attribute and some methods to support
1420 roles consuming roles
1422 * Moose::Meta::Attribute
1423 - added support for triggers on attributes
1424 - added tests for this
1425 - added support for does option on an attribute
1426 - added tests for this
1428 * Moose::Meta::Class
1429 - added support for attribute triggers in the
1431 - added tests for this
1434 - Moose no longer creates a subtype for your class
1435 if a subtype of the same name already exists, this
1436 should DWIM in 99.9999% of all cases
1438 * Moose::Util::TypeConstraints
1439 - fixed bug where incorrect subtype conflicts were
1441 - added test for this
1444 - this class can now be extended with 'use base' if
1445 you need it, it properly loads the metaclass class now
1446 - added test for this
1448 0.03_02 Wed. April 12, 2006
1450 - you must now explictly use Moose::Util::TypeConstraints
1451 it no longer gets exported for you automatically
1454 - new() now accepts hash-refs as well as key/value lists
1455 - added does() method to check for Roles
1456 - added tests for this
1458 * Moose::Meta::Class
1459 - added roles attribute along with the add_role() and
1461 - added tests for this
1464 - now adds a does() method to consuming classes
1465 which tests the class's hierarchy for roles
1466 - added tests for this
1468 0.03_01 Mon. April 10, 2006
1470 - added new Role recipe (no content yet, only code)
1473 - added 'with' keyword for Role support
1474 - added test and docs for this
1475 - fixed subtype quoting bug
1476 - added test for this
1480 - added test and docs
1482 * Moose::Util::TypeConstraints
1483 - added the message keyword to add custom
1484 error messages to type constraints
1487 - the meta role to support Moose::Role
1488 - added tests and docs
1490 * Moose::Meta::Class
1491 - moved a number of things from Moose.pm
1492 to here, they should have been here
1495 * Moose::Meta::Attribute
1496 - moved the attribute option macros here
1497 instead of putting them in Moose.pm
1499 * Moose::Meta::TypeConstraint
1500 - added the message attributes and the
1502 - added tests and docs for this
1504 0.03 Thurs. March 30, 2006
1506 - added the Moose::Cookbook with 5 recipes,
1507 describing all the stuff Moose can do.
1510 - fixed an issue with &extends super class loading
1511 it now captures errors and deals with inline
1512 packages correctly (bug found by mst, solution
1514 - added super/override & inner/augment features
1515 - added tests and docs for these
1518 - BUILDALL now takes a reference of the %params
1519 that are passed to &new, and passes that to
1522 * Moose::Util::TypeConstraints
1523 - Type constraints now survive runtime reloading
1524 - added test for this
1526 * Moose::Meta::Class
1527 - fixed the way attribute defaults are handled
1528 during instance construction (bug found by chansen)
1530 * Moose::Meta::Attribute
1531 - read-only attributes now actually enforce their
1532 read-only-ness (this corrected in Class::MOP as
1535 0.02 Tues. March 21, 2006
1537 - many more tests, fixing some bugs and
1539 - &extends now loads the base module with
1541 - added UNIVERSAL::require to the
1544 - each new Moose class will also create
1545 and register a subtype of Object which
1546 correspond to the new Moose class.
1547 - the 'isa' option in &has now only
1548 accepts strings, and will DWIM in
1551 * Moose::Util::TypeConstraints
1552 - added type coercion features
1553 - added tests for this
1554 - added support for this in attributes
1555 and instance construction
1557 - type construction no longer creates a
1558 function, it registers the type instead.
1559 - added several functions to get the
1563 - BUILDALL and DEMOLISHALL were broken
1564 because of a mis-named hash key, Whoops :)
1566 * Moose::Meta::Attribute
1567 - adding support for coercion in the
1568 autogenerated accessors
1570 * Moose::Meta::Class
1571 - adding support for coercion in the
1572 instance construction
1574 * Moose::Meta::TypeConstraint
1575 * Moose::Meta::TypeCoercion
1576 - type constraints and coercions are now
1577 full fledges meta-objects
1579 0.01 Wed. March 15, 2006
1580 - Moooooooooooooooooose!!!