1 Revision history for Perl extension Moose
3 0.49 Thurs. Jun 11, 2008
4 * Moose::Meta::Attribute
5 - fixed how the is => (ro|rw) works with
6 custom defined reader, writer and accessor
8 - added docs for this (TODO).
9 - added tests for this (Thanks to Penfold)
10 - added the custom attribute alias for regular
11 Moose attributes which is "Moose"
12 - fix builder and default both being used
17 Moose::Meta::Attribute
19 Moose::Meta::Role::Composite
20 Moose::Util::TypeConstraints
21 - switched usage of reftype to ref because
25 - changing add_package_symbol to use the new
29 - fixed how DEMOLISHALL is called so that it
30 can be overrided in subclasses (thanks to Sartak)
31 - added test for this (thanks to Sartak)
33 * Moose::Util::TypeConstraints
34 - move the ClassName type check code to
35 Class::MOP::is_class_loaded (thanks to Sartak)
37 * Moose::Cookbook::Recipe11
38 - add tests for this (thanks to tokuhirom)
40 0.48 Thurs. May 29, 2008
41 (early morning release engineering)--
43 - fixing the version in Moose::Meta::Method::Destructor
44 which was causing the indexer to choke
46 0.47 Thurs. May 29, 2008
47 (late night release engineering)--
49 - fixing the version is META.yml, no functional
50 changes in this release
52 0.46 Wed. May 28, 2008
53 !! This version now approx. 20-25% !!
54 !! faster with new Class::MOP 0.57 !!
57 - some optimizations of the &initialize method
58 since it is called so often by &meta
62 - now use the get_all_package_symbols from the
63 updated Class::MOP, test suite is now 10 seconds
66 * Moose::Meta::Method::Destructor
67 - is_needed can now also be called as a class
68 method for immutablization to check if the
69 destructor object even needs to be created
72 * Moose::Meta::Method::Destructor
73 Moose::Meta::Method::Constructor
74 - added more descriptive error message to help
75 keep people from wasting time tracking an error
76 that is easily fixed by upgrading.
78 0.45 Saturday, May 24, 2008
80 - Because of work in Class::MOP 0.56, all
81 XS based functionality is now optional
82 and a Pure Perl version is supplied
83 - the CLASS_MOP_NO_XS environment variable
84 can now be used to force non-XS versions
86 - several of the packages have been tweaked
87 to take care of this, mostly we added
88 support for the package_name and name
89 variables in all the Method metaclasses
90 - before/around/after method modifiers now
91 support regexp matching of names
92 (thanks to Takatoshi Kitano)
93 - tests added for this
94 - NOTE: this only works for classes, it
95 is currently not supported in roles,
96 but, ... patches welcome
97 - All usage of Carp::confess have been replaced
98 by Carp::croak in the "keyword" functions since
99 the stack trace is usually not helpful
102 - All usage of Carp::confess have been replaced
103 by Carp::croak in the "keyword" functions since
104 the stack trace is usually not helpful
105 - The 'has' keyword for roles now accepts the
106 same array ref form that Moose.pm does
107 (has [qw/foo bar/] => (is => 'rw', ...))
108 - added test for this
110 * Moose::Meta::Attribute
111 - trigger on a ro-attribute is no longer an
112 error, as it's useful to trigger off of the
116 - added same 'add_package_symbol' fix as in
120 - does_role now handles non-Moose classes
122 - added tests for this
123 - added the 'add_method_modifier' function
124 (thanks to Takatoshi Kitano)
126 * Moose::Util::TypeConstraints
127 - subtypes of parameterizable types now are
128 themselves parameterizable types
130 * Moose::Meta::Method::Constructor
131 - fixed bug where trigger was not being
132 called by the inlined immutable
134 - added test for this (thanks to Caelum)
136 * Moose::Meta::Role::Application::ToInstance
137 - now uses the metaclass of the instance
138 (if possible) to create the anon-class
139 (thanks Jonathan Rockway)
141 * Moose::Cookbook::Recipe22
142 - added the meta-attribute trait recipe
146 - fixed hash-ordering test bug that was
147 causing occasional cpantester failures
148 - renamed the t/000_recipe/*.t tests to be
149 more descriptive (thanks to Sartak)
151 0.44 Sat. May 10, 2008
153 - made make_immutable warning cluck to
154 show where the error is (thanks mst)
157 - BUILDALL and DEMOLISHALL now call
158 ->body when looping through the
159 methods, to avoid the overloaded
161 - fixed issue where DEMOLISHALL was
162 eating the $@ values, and so not
163 working correctly, it still kind of
164 eats them, but so does vanilla perl
165 - added tests for this
167 * Moose::Cookbook::Recipe7
168 - added new recipe for immutable
169 functionality (thanks Dave Rolsky)
171 * Moose::Cookbook::Recipe9
172 - added new recipe for builder and
173 lazy_build (thanks Dave Rolsky)
175 * Moose::Cookbook::Recipe11
176 - added new recipe for method aliasing
177 and exclusion with Roles (thanks Dave Rolsky)
180 - fixed Win32 test failure (thanks spicyjack)
182 ~ removed Build.PL and Module::Build compat
183 since Module::Install has done that.
185 0.43 Wed. April, 30, 2008
187 drink more coffee before
188 doing release engineering
190 - whoops, forgot to do the smolder tests,
191 and we broke some of the custom meta-attr
192 modules. This fixes that.
194 0.42 Mon. April 28, 2008
195 - some bad tests slipped by, nothing else
196 changed in this release (cpantesters++)
198 - upped the Class::MOP dependency to 0.55
199 since we have tests which need the C3
202 0.41 Mon. April 28, 2008
203 ~~ numerous documentation updates ~~
205 - Changed all usage of die to Carp::croak for better
206 error reporting (initial patch by Tod Hagan)
209 - the make_immutable keyword is now deprecated, don't
210 use it in any new code and please fix your old code
211 as well. There will be 2 releases, and then it will
217 - refactored the way inner and super work to avoid
218 any method/@ISA cache penalty (nothingmuch)
221 - fixing &new_object to make sure trigger gets the
222 coerced value (spotted by Charles Alderman on the
224 - added test for this
226 * Moose::Meta::Method::Constructor
227 - immutable classes which had non-lazy attributes were calling
228 the default generating sub twice in the constructor. (bug
229 found by Jesse Luehrs, fixed by Dave Rolsky)
230 - added tests for this (Dave Rolsky)
231 - fix typo in initialize_body method (nothingmuch)
233 * Moose::Meta::Method::Destructor
234 - fix typo in initialize_body method (nothingmuch)
236 * Moose::Meta::Method::Overriden
237 Moose::Meta::Method::Augmented
238 - moved the logic for these into their own
239 classes (nothingmuch)
241 * Moose::Meta::Attribute
242 - inherited attributes may now be extended without
243 restriction on the type ('isa', 'does') (Sartak)
244 - added tests for this (Sartak)
245 - when an attribute property is malformed (such as lazy without
246 a default), give the name of the attribute in the error
248 - added the &applied_traits and &has_applied_traits methods
249 to allow introspection of traits
250 - added tests for this
251 - moved 'trait' and 'metaclass' argument handling to here from
253 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
254 '+foo' syntax) (nothingmuch)
255 - added tests for this (t0m)
258 - localize $@ inside DEMOLISHALL to avoid it
259 eating $@ (found by Ernesto)
260 - added test for this (thanks to Ernesto)
262 * Moose::Util::TypeConstraints
263 - &find_type_constraint now DWIMs when given an
264 type constraint object or name (nothingmuch)
265 - &find_or_create_type_constraint superseded with a number of more
267 - find_or_create_{isa,does}_type_constraint
268 - find_or_parse_type_constraint
270 * Moose::Meta::TypeConstraint
271 Moose::Meta::TypeConstraint::Class
272 Moose::Meta::TypeConstraint::Role
273 Moose::Meta::TypeConstraint::Enum
274 Moose::Meta::TypeConstraint::Union
275 Moose::Meta::TypeConstraint::Parameterized
276 - added the &equals method for comparing two type
277 constraints (nothingmuch)
278 - added tests for this (nothingmuch)
280 * Moose::Meta::TypeConstraint
281 - add the &parents method, which is just an alias to &parent.
282 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
284 * Moose::Meta::TypeConstraint::Class
285 - added the class attribute for introspection purposes
287 - added tests for this
289 * Moose::Meta::TypeConstraint::Enum
290 Moose::Meta::TypeConstraint::Role
291 - broke these out into their own classes (nothingmuch)
293 * Moose::Cookbook::Recipe*
294 - fixed references to test file locations in the POD
295 and updated up some text for new Moose features
299 - Added &resolve_metaclass_alias, a helper function for finding an actual
300 class for a short name (e.g. in the traits list)
302 0.40 Fri. March 14, 2008
303 - I hate Pod::Coverage
305 0.39 Fri. March 14, 2008
307 - documenting the use of '+name' with attributes
308 that come from recently composed roles. It makes
309 sense, people are using it, and so why not just
310 officially support it.
311 - fixing the 'extends' keyword so that it will not
312 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
315 - added the perl -Moose=+Class::Name feature to allow
316 monkeypatching of classes in one liners
319 - fixing the 'apply_all_roles' keyword so that it will not
320 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
323 - added ->create method which now supports roles (thanks to jrockway)
324 - added tests for this
325 - added ->create_anon_class which now supports roles and caching of
326 the results (thanks to jrockway)
327 - added tests for this
328 - made ->does_role a little more forgiving when it is
329 checking a Class::MOP era metaclasses.
331 * Moose::Meta::Role::Application::ToInstance
332 - it is now possible to pass extra params to be used when
333 a role is applied to an the instance (rebless_params)
334 - added tests for this
336 * Moose::Util::TypeConstraints
337 - class_type now accepts an optional second argument for a
338 custom message. POD anotated accordingly (groditi)
339 - added tests for this
340 - it is now possible to make anon-enums by passing 'enum' an
341 ARRAY ref instead of the $name => @values. Everything else
343 - added tests for this
346 - making test for using '+name' on attributes consumed
347 from a role, it works and makes sense too.
349 * Moose::Meta::Attribute
350 - fix handles so that it doesn't return nothing
351 when the method cannot be found, not sure why
352 it ever did this originally, this means we now
353 have slightly better support for AUTOLOADed
355 - added more delegation tests
356 - adding ->does method to this so as to better
357 support traits and their introspection.
358 - added tests for this
361 - localizing the Data::Dumper configurations so
362 that it does not pollute others (RT #33509)
363 - made ->does a little more forgiving when it is
364 passed Class::MOP era metaclasses.
366 0.38 Fri. Feb. 15, 2008
367 * Moose::Meta::Attribute
368 - fixed initializer to correctly do
369 type checking and coercion in the
371 - added tests for this
374 - fixed some finicky tests (thanks to konobi)
376 0.37 Thurs. Feb. 14, 2008
378 - fixed some details in Moose::init_meta
379 and its superclass handling (thanks thepler)
380 - added tests for this (thanks thepler)
381 - 'has' now dies if you don't pass in name
383 - added the 'make_immutable' keyword as a shortcut
387 Moose::Meta::Method::Constructor
388 Moose::Meta::Attribute
389 - making (init_arg => undef) work here too
390 (thanks to nothingmuch)
392 * Moose::Meta::Attribute
393 Moose::Meta::Method::Constructor
394 Moose::Meta::Method::Accessor
395 - make lazy attributes respect attr initializers (rjbs)
396 - added tests for this
398 * Moose::Util::TypeConstraints
399 Moose::Util::TypeConstraints::OptimizedConstraints
400 Moose::Meta::TypeConstraints
401 Moose::Meta::Attribute
402 Moose::Meta::Method::Constructor
403 Moose::Meta::Method::Accessor
404 - making type errors use the
405 assigned message (thanks to Sartak)
406 - added tests for this
408 * Moose::Meta::Method::Destructor
409 - making sure DESTROY gets inlined properly
410 with successive DEMOLISH calls (thanks to manito)
412 * Moose::Meta::Attribute
413 Moose::Meta::Method::Accessor
414 - fixed handling of undef with type constraints
416 - added tests for this
419 - added &get_all_init_args and &get_all_attribute_values
420 (thanks to Sartak and nothingmuch)
422 0.36 Sat. Jan. 26, 2008
424 Moose::Meta::Attribute
425 - role type tests now support when roles are
426 applied to non-Moose classes (found by ash)
427 - added tests for this (thanks to ash)
428 - couple extra tests to boost code coverage
430 * Moose::Meta::Method::Constructor
431 - improved fix for handling Class::MOP attributes
432 - added test for this
435 - handled the add_attribute($attribute_meta_object)
437 - added test for this
439 0.35 Tues. Jan. 22, 2008
440 * Moose::Meta::Method::Constructor
441 - fix to make sure even Class::MOP attributes
442 are handled correctly (Thanks to Dave Rolsky)
443 - added test for this (also Dave Rolsky)
446 - improved error message on _apply_all_roles,
447 you should now use Moose::Util::apply_all_roles
448 and you shouldnt have been using a _ prefixed
449 method in the first place ;)
451 0.34 Mon. Jan. 21, 2008
452 ~~~ more misc. doc. fixes ~~~
453 ~~ updated copyright dates ~~
455 Moose is now a postmodern object system :)
456 - (see the POD for details)
458 * <<Role System Refactoring>>
459 - this release contains a major reworking and
460 cleanup of the role system
461 - 100% backwards compat.
462 - Role application now restructured into seperate
463 classes based on type of applicants
464 - Role summation (combining of more than one role)
465 is much cleaner and anon-classes are no longer
467 - new Composite role metaclass
468 - runtime application of roles to instances
469 is now more efficient and re-uses generated
470 classes when applicable
472 * <<New Role composition features>>
473 - methods can now be excluded from a given role
475 - methods can now be aliased to another name (and
476 still retain the original as well)
478 * Moose::Util::TypeConstraints::OptimizedConstraints
479 - added this module (see above)
482 - fixed the &_process_attribute method to be called
483 by &add_attribute, so that the API is now correct
485 * Moose::Meta::Method::Accessor
486 - fixed bug when passing a list of values to
487 an accessor would get (incorrectly) ignored.
488 Thanks to Sartak for finding this ;)
489 - added tests for this (Sartak again)
491 * Moose::Meta::Method::Accessor
492 Moose::Meta::Method::Constructor
493 Moose::Meta::Attribute
494 Moose::Meta::TypeConstraint
495 Moose::Meta::TypeCoercion
496 - lots of cleanup of such things as:
498 - type constraint handling
499 - error handling/messages
500 (thanks to nothingmuch)
502 * Moose::Meta::TypeConstraint::Parameterizable
503 - added this module to support the refactor
504 in Moose::Meta::TypeConstraint::Parameterized
506 * Moose::Meta::TypeConstraint::Parameterized
507 - refactored how these types are handled so they
508 are more generic and not confined to ArrayRef
512 - shortened some file names for better VMS support (RT #32381)
514 0.33 Fri. Dec. 14, 2007
515 !! Moose now loads 2 x faster !!
516 !! with new Class::MOP 0.49 !!
518 ++ new oose.pm module to make command line
519 Moose-ness easier (see POD docs for more)
523 - several tweaks to take advantage of the
524 new method map caching in Class::MOP
526 * Moose::Meta::TypeConstraint::Parameterized
527 - allow subtypes of ArrayRef and HashRef to
528 be used as a container (sartak)
529 - added tests for this
530 - basic support for coercion to ArrayRef and
531 HashRef for containers (sartak)
532 - added tests for this
534 * Moose::Meta::TypeCoercion
535 - coercions will now create subtypes as needed
536 so you can now add coercions to parameterized
537 types without having to explictly define them
538 - added tests for this
540 * Moose::Meta::Method::Accessor
541 - allow subclasses to decide whether we need
542 to copy the value into a new variable (sartak)
544 0.32 Tues. Dec. 4, 2007
545 * Moose::Util::TypeConstraints
546 - fixing how subtype aliases of unions work
547 they should inherit the parent's coercion
548 - added tests for this
549 - you can now define multiple coercions on
550 a single type at different times instead of
551 having to do it all in one place
552 - added tests for this
554 * Moose::Meta::TypeConstraint
555 - there is now a default constraint of sub { 1 }
556 instead of Moose::Util::TypeConstraints setting
559 * Moose::Meta::TypeCoercion
560 * Moose::Meta::TypeCoercion::Union
561 - added the &has_coercion_for_type and
562 &add_type_coercions methods to support the
563 new features above (although you cannot add
564 more type coercions for Union types)
566 0.31 Mon. Nov. 26, 2007
567 * Moose::Meta::Attribute
568 - made the +attr syntax handle extending types with
569 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
570 now works if the original foo is an ArrayRef.
571 - added tests for this.
572 - delegation now works even if the attribute does not
573 have a reader method using the get_read_method_ref
574 method from Class::MOP::Attribute.
575 - added tests for this
576 - added docs for this
578 * Moose::Util::TypeConstraints
579 - passing no "additional attribute info" to
580 &find_or_create_type_constraint will no longer
581 attempt to create an __ANON__ type for you,
582 instead it will just return undef.
583 - added docs for this
585 0.30 Fri. Nov. 23, 2007
586 * Moose::Meta::Method::Constructor
587 -builder related bug in inlined constructor. (groditi)
589 * Moose::Meta::Method::Accessor
590 - genereate unnecessary calls to predicates and refactor
591 code generation for runtime speed (groditi)
593 * Moose::Util::TypeConstraints
594 - fix ClassName constraint to introspect symbol table (mst)
595 - added more tests for this (mst)
596 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
598 - added tests for this
601 - adding the link to Recipie 11 (written by Sartak)
602 - adding test for SYNOPSIS code
605 - New tests for builder bug. Upon instantiation, if an
606 attribute had a builder, no value and was not lazy the
607 builder default was not getting run, oops. (groditi)
609 0.29 Tues. Nov. 13, 2007
610 * Moose::Meta::Attribute
611 - Fix error message on missing builder method (groditi)
613 * Moose::Meta::Method::Accessor
614 - Fix error message on missing builder method (groditi)
617 - Add test to check for the correct error message when
618 builder method is missing (groditi)
620 0.28 Tues. Nov. 13, 2007
621 - 0.27 packaged incorrectly (groditi)
623 0.27 Tues. Nov. 13, 2007
624 * Moose::Meta::Attribute
625 - Added support for the new builder option (groditi)
626 - Added support for lazy_build option (groditi)
627 - Changed slot initialization for predicate changes (groditi)
629 * Moose::Meta::Method::Accessor
630 - Added support for lazy_build option (groditi)
631 - Fix inline methods to work with corrected predicate
634 * Moose::Meta::Method::Constructor
635 - Added support for lazy_build option (groditi)
638 - tests for builder and lazy_build (groditi)
640 * fixing some misc. bits in the docs that
641 got mentioned on CPAN Forum & perlmonks
644 - fixed how required methods are handled
645 when they encounter overriden or modified
646 methods from a class (thanks to confound).
647 - added tests for this
649 * Moose::Util::TypeConstraint
650 - fixed the type notation parser so that
651 the | always creates a union and so is
652 no longer a valid type char (thanks to
653 konobi, mugwump and #moose for working
655 - added more tests for this
657 0.26 Thurs. Sept. 27, 2007
660 * Parameterized Types
661 We now support parameterized collection types, such as:
662 ArrayRef[Int] # array or integers
663 HashRef[Object] # a hash with object values
664 They can also be nested:
665 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
666 And work with the type unions as well:
667 ArrayRef[Int | Str] # array of integers of strings
669 * Better Framework Extendability
670 Moose.pm is now "extendable" such that it is now much
671 easier to extend the framework and add your own keywords
672 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
673 section of the Moose.pm docs.
676 In an effort to begin documenting some of the various
677 details of Moose as well as some common idioms, we have
678 created Moose::Cookbook::Snacks as a place to find
679 small (easily digestable) nuggets of Moose code.
682 ~ Several doc updates/cleanup thanks to castaway ~
684 - converted build system to use Module::Install instead of
685 Module::Build (thanks to jrockway)
688 - added all the meta classes to the immutable list and
689 set it to inline the accessors
690 - fix import to allow Sub::Exporter like { into => }
691 and { into_level => } (perigrin)
692 - exposed and documented init_meta() to allow better
693 embedding and extending of Moose (perigrin)
696 - complete re-organization of the test suite
697 - added some new tests as well
698 - finally re-enabled the Moose::POOP test since
699 the new version of DBM::Deep now works again
703 - fixed very odd and very nasty recursion bug with
705 - added tests for this (eilara)
707 * Moose::Meta::Attribute
708 Moose::Meta::Method::Constructor
709 Moose::Meta::Method::Accessor
710 - fixed issue with overload::Overloaded getting called
711 on non-blessed items. (RT #29269)
712 - added tests for this
714 * Moose::Meta::Method::Accessor
715 - fixed issue with generated accessor code making
716 assumptions about hash based classes (thanks to dexter)
718 * Moose::Coookbook::Snacks
719 - these are bits of documentation, not quite as big as
720 Recipes but which have no clear place in the module docs.
721 So they are Snacks! (horray for castaway++)
723 * Moose::Cookbook::Recipe4
724 - updated it to use the new ArrayRef[MyType] construct
725 - updated the accompanying test as well
727 +++ Major Refactor of the Type Constraint system +++
728 +++ with new features added as well +++
730 * Moose::Util::TypeConstraint
731 - no longer uses package variable to keep track of
732 the type constraints, now uses the an instance of
733 Moose::Meta::TypeConstraint::Registry to do it
734 - added more sophisticated type notation parsing
736 - added tests for this
738 * Moose::Meta::TypeConstraint
739 - some minor adjustments to make subclassing easier
740 - added the package_defined_in attribute so that we
741 can track where the type constraints are created
743 * Moose::Meta::TypeConstraint::Union
744 - this is now been refactored to be a subclass of
745 Moose::Meta::TypeConstraint
747 * Moose::Meta::TypeCoercion::Union
748 - this has been added to service the newly refactored
749 Moose::Meta::TypeConstraint::Union and is itself
750 a subclass of Moose::Meta::TypeCoercion
752 * Moose::Meta::TypeConstraint::Parameterized
753 - added this module (taken from MooseX::AttributeHelpers)
754 to help construct nested collection types
755 - added tests for this
757 * Moose::Meta::TypeConstraint::Registry
758 - added this class to keep track of type constraints
760 0.25 Mon. Aug. 13, 2007
762 - Documentation update to reference Moose::Util::TypeConstraints
763 under 'isa' in 'has' for how to define a new type
766 * Moose::Meta::Attribute
767 - required attributes now will no longer accept undef
768 from the constructor, even if there is a default and lazy
769 - added tests for this
770 - default subroutines must return a value which passes the
772 - added tests for this
774 * Moose::Meta::Attribute
775 * Moose::Meta::Method::Constructor
776 * Moose::Meta::Method::Accessor
777 - type-constraint tests now handle overloaded objects correctly
779 - added tests for this (thanks to EvanCarroll)
781 * Moose::Meta::TypeConstraint::Union
782 - added (has_)hand_optimized_constraint to this class so that
783 it behaves as the regular Moose::Meta::TypeConstraint does.
786 - large refactoring of this code
787 - added several more tests
788 - tests for subtle conflict resolition issues
789 added, but not currently running
792 * Moose::Cookbook::Recipe7
793 - added new recipe for augment/inner functionality
795 - added test for this
798 - a formal definition of roles (still in progress)
801 - utilities for easier working with Moose classes
802 - added tests for these
805 - This contains Moose specific test functions
806 - added tests for these
808 0.24 Tues. July 3, 2007
809 ~ Some doc updates/cleanup ~
811 * Moose::Meta::Attribute
812 - added support for roles to be given as parameters
813 to the 'handles' option.
814 - added tests and docs for this
815 - the has '+foo' attribute form now accepts changes to
816 the lazy option, and the addition of a handles option
817 (but not changing the handles option)
818 - added tests and docs for this
821 - required methods are now fetched using find_method_by_name
822 so that required methods can come from superclasses
823 - adjusted tests for this
825 0.23 Mon. June 18, 2007
826 * Moose::Meta::Method::Constructor
827 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
829 - Modify make_immutable to work with the new Class::MOP immutable
830 mechanism + POD + very basic test (groditi)
831 * Moose::Meta::Attribute
832 - Fix handles to use goto() so that caller() comes out properly on
833 the other side (perigrin)
835 0.22 Thurs. May 31, 2007
836 * Moose::Util::TypeConstraints
837 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
838 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
839 prototypes for functions
840 - added the ClassName type constraint, this checks for strings
841 which will respond true to ->isa(UNIVERSAL).
842 - added tests and docs for this
843 - subtyping just in name now works correctly by making the
844 default for where be { 1 }
845 - added test for this
847 * Moose::Meta::Method::Accessor
848 - coerce and lazy now work together correctly, thanks to
849 merlyn for finding this bug
850 - tests added for this
851 - fix reader presedence bug in Moose::Meta::Attribute + tests
854 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
855 a HASH-ref and missed. This produces better error messages then
856 having it die cause undef is not a HASH.
857 - added tests for this
859 0.21 Thursday, May 2nd, 2007
861 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
862 - modified unimport to remove super and inner along with the rest
863 - altered unimport tests to handle this
866 - altered super export to populate SUPER_SLOT
869 - altered augment and override modifier application to use *_SLOT
870 - modified tests for these to unimport one test class each to test
873 - fixed issue where custom attribute metaclasses
874 where not handled correctly in roles
875 - added tests for this
878 - fixed issue where extending metaclasses with
879 roles would blow up. Thanks to Aankhen`` for
880 finding this insidious error, and it's solution.
882 ~~ lots of spelling and grammer fixes in the docs,
883 many many thanks to rlb3 and Aankhen for these :)
885 0.20 Friday, April 6th, 2007
886 >> I messed up the SKIP logic in one test
887 so this release is just to fix that.
890 - 'has' now also accepts an ARRAY ref
891 to create multiple attrs (see docs)
892 (thanks to konobi for this)
893 - added tests and docs
895 0.19 Thurs. April 5th, 2007
896 ~~ More documentation updates ~~
898 * Moose::Util::TypeConstraints
899 - 'type' now supports messages as well
900 thanks to phaylon for finding this
901 - added tests for this
902 - added &list_all_type_constraints and
903 &list_all_builtin_type_constraints
904 functions to facilitate introspection.
906 * Moose::Meta::Attribute
907 - fixed regexp 'handles' declarations
908 to build the list of delegated methods
909 correctly (and not override important
910 things like &new) thanks to ashleyb
912 - added tests and docs for this
913 - added the 'documentation' attributes
914 so that you can actually document your
915 attributes and inspect them through the
917 - added tests and docs for this
920 - when loading custom attribute metaclasses
921 it will first look in for the class in the
922 Moose::Meta::Attribute::Custom::$name, and
923 then default to just loading $name.
924 - added tests and docs for this
926 * Moose::Meta::TypeConstraint
927 - type constraints now stringify to their names.
928 - added test for this
931 - added tests to assure we work with Module::Refresh
932 - added stricter test skip logic in the Moose POOP
933 test, ask Rob Kinyon why.
934 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
936 0.18 Sat. March 10, 2007
937 ~~ Many, many documentation updates ~~
940 - We now use Class::MOP::load_class to
942 - added tests to show types and subtypes
943 working with Declare::Constraints::Simple
944 and Test::Deep as constraint engines.
947 !! You must have Class::MOP 0.37_001 !!
948 !! for this developer release to work !!
950 This release was primarily adding the immutable
951 feature to Moose. An immutable class is one which
952 you promise not to alter. When you set the class
953 as immutable it will perform various bits of
954 memoization and inline certain part of the code
955 (constructors, destructors and accessors). This
956 minimizes (and in some cases totally eliminates)
957 one of Moose's biggest performance hits. This
958 feature is not on by default, and is 100% optional.
959 It has several configurable bits as well, so you
960 can pick and choose to your specific needs.
962 The changes involved in this were fairly wide and
963 highly specific, but 100% backwards compatible, so
964 I am not going to enumerate them here. If you are
965 truely interested in what was changed, please do
968 0.17 Tues. Nov. 14, 2006
969 * Moose::Meta::Method::Accessor
970 - bugfix for read-only accessors which
971 are have a type constraint and lazy.
972 Thanks to chansen for finding it.
974 0.16 Tues. Nov. 14, 2006
976 There are some speed improvements in this release,
977 but they are only the begining, so stay tuned.
980 - BUILDALL and DEMOLISHALL no longer get
981 called unless they actually need to be.
982 This gave us a signifigant speed boost
983 for the cases when there is no BUILD or
984 DEMOLISH method present.
986 * Moose::Util::TypeConstraints
987 * Moose::Meta::TypeConstraint
988 - added an 'optimize_as' option to the
989 type constraint, which allows for a
990 hand optimized version of the type
991 constraint to be used when possible.
992 - Any internally created type constraints
993 now provide an optimized version as well.
995 0.15 Sun. Nov. 5, 2006
997 This version of Moose *must* have Class::MOP 0.36 in order
998 to work correctly. A number of small internal tweaks have
999 been made in order to be compatible with that release.
1001 * Moose::Util::TypeConstraints
1002 - added &unimport so that you can clean out
1003 your class namespace of these exported
1006 * Moose::Meta::Class
1007 - fixed minor issue which occasionally
1008 comes up during global destruction
1010 - moved Moose::Meta::Method::Overriden into
1014 - moved Moose::Meta::Role::Method into
1017 * Moose::Meta::Attribute
1018 - changed how we do type checks so that
1019 we reduce the overall cost, but still
1022 - moved accessor generation methods to
1023 Moose::Meta::Method::Accessor to
1024 conform to the API changes from
1027 * Moose::Meta::TypeConstraint
1028 - changed how constraints are compiled
1029 so that we do less recursion and more
1030 iteration. This makes the type check
1032 - moved Moose::Meta::TypeConstraint::Union
1035 * Moose::Meta::Method::Accessor
1036 - created this from methods formerly found in
1037 Moose::Meta::Attribute
1039 * Moose::Meta::Role::Method
1040 - moved this from Moose::Meta::Role
1042 * Moose::Meta::Method::Overriden
1043 - moved this from Moose::Meta::Class
1045 * Moose::Meta::TypeConstraint::Union
1046 - moved this from Moose::Meta::TypeConstraint
1048 0.14 Mon. Oct. 9, 2006
1050 * Moose::Meta::Attribute
1051 - fixed lazy attributes which were not getting
1052 checked with the type constraint (thanks ashley)
1053 - added tests for this
1054 - removed the over-enthusiastic DWIMery of the
1055 automatic ArrayRef and HashRef defaults, it
1056 broke predicates in an ugly way.
1057 - removed tests for this
1059 0.13 Sat. Sept. 30, 2006
1061 This version of Moose *must* have Class::MOP 0.35 in order
1062 to work correctly. A number of small internal tweaks have
1063 been made in order to be compatible with that release.
1066 - Removed the use of UNIVERSAL::require to be a better
1067 symbol table citizen and remove a dependency
1068 (thanks Adam Kennedy)
1070 **~~ removed experimental & undocumented feature ~~**
1071 - commented out the 'method' and 'self' keywords, see the
1072 comments for more info.
1075 - added a FAQ and WTF files to document frequently
1076 asked questions and common problems
1078 * Moose::Util::TypeConstraints
1079 - added GlobRef and FileHandle type constraint
1080 - added tests for this
1082 * Moose::Meta::Attribute
1083 - if your attribute 'isa' ArrayRef of HashRef, and you have
1084 not explicitly set a default, then make the default DWIM.
1085 This will also work for subtypes of ArrayRef and HashRef
1087 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1088 - new test added for this (thanks to ashley)
1091 - added basic support for runtime role composition
1092 but this is still *highly experimental*, so feedback
1093 is much appreciated :)
1094 - added tests for this
1096 * Moose::Meta::TypeConstraint
1097 - the type constraint now handles the coercion process
1098 through delegation, this is to support the coercion
1101 * Moose::Meta::TypeConstraint::Union
1102 - it is now possible for coercions to be performed
1104 - added tests for this (thanks to konobi)
1106 * Moose::Meta::TypeCoercion
1107 - properly capturing error when type constraint
1111 - Scalar::Util 1.18 is bad on Win32, so temporarily
1112 only require version 1.17 for Win32 and cygwin.
1113 (thanks Adam Kennedy)
1115 0.12 Sat. Sept. 1, 2006
1117 - Recipe5 (subtypes & coercion) has been written
1120 - fixed "bad meta" error message to be more descriptive
1121 - fixed &unimport to not remove the &inner and &super
1122 keywords because we need to localize them.
1123 - fixed number of spelling/grammer issues, thanks Theory :)
1125 **~~ experimental & undocumented feature ~~**
1126 - added the method and self keywords, they are basically
1127 just sugar, and they may not stay around.
1130 - added &dump method to easily Data::Dumper
1133 * Moose::Meta::TypeConstraint
1134 - added the &is_a_type_of method to check both the current
1135 and the subtype of a method (similar to &isa with classes)
1138 - this is now a subclass of Class::MOP::Module, and no longer
1139 creates the _role_meta ugliness of before.
1140 - fixed tests to reflect this change
1142 0.11 Wed. July 12, 2006
1144 - added an &unimport method to remove all the keywords
1145 that Moose will import, simply add 'no Moose' to the
1146 bottom of your class file.
1149 - fixed some test failures caused by a forgotten test
1152 0.10 Thurs. July 6, 2006
1154 - improved error message when loading modules so
1155 it is less confusing when you load a role.
1156 - added &calculate_all_roles method to
1157 Moose::Meta::Class and Moose::Meta::Role
1160 This module has been tested against Class::MOP 0.30
1161 but it does not yet utilize the optimizations
1162 it makes available. Stay tuned for that ;)
1164 0.09_03 Fri. June 23, 2006
1165 ++ DEVELOPER RELEASE ++
1167 - 'use strict' and 'use warnings' are no longer
1168 needed in Moose classes, Moose itself will
1169 turn them on for you.
1170 - added tests for this
1171 - moved code from exported subs to private methods
1172 in Moose::Meta::Class
1175 - as with Moose, strict and warnings are
1176 automatically turned on for you.
1177 - added tests for this
1180 - now handles an edge case for override errors
1181 - added tests for this
1182 - added some more edge case tests
1184 0.09_02 Tues. May 16, 2006
1185 ++ DEVELOPER RELEASE ++
1187 - added prototypes to the exported subs
1191 - added prototypes to the exported subs
1194 * Moose::Util::TypeConstraints
1195 - cleaned up prototypes for the subs
1198 0.09_01 Fri. May 12, 2006
1199 ++ DEVELOPER RELEASE ++
1200 - This release works in combination with
1201 Class::MOP 0.29_01, it is a developer
1202 release because it uses the a new
1203 instance sub-protocol and a fairly
1204 complete Role implementation. It has
1205 not yet been optimized, so it slower
1206 the the previous CPAN version. This
1207 release also lacks good updated docs,
1208 the official release will have updated docs.
1211 - refactored the keyword exports
1212 - 'with' now checks Role validaity and
1213 accepts more than one Role at a time
1214 - 'extends' makes metaclass adjustments as
1215 needed to ensure metaclass compatability
1218 - refactored the keyword exports
1219 - 'with' now checks Role validaity and
1220 accepts more than one Role at a time
1222 * Moose::Util::TypeConstraints
1223 - added the 'enum' keyword for simple
1224 string enumerations which can be used as
1226 - see example of usage in t/202_example.t
1229 - more careful checking of params to new()
1232 - much work done on the role composition
1233 - many new tests for conflict detection
1234 and composition edge cases
1235 - not enough documentation, I suggest
1236 looking at the tests
1238 * Moose::Meta::Instance
1239 - added new Instance metaclass to support
1240 the new Class::MOP instance protocol
1242 * Moose::Meta::Class
1243 - some small changes to support the new
1245 - some small additions to support Roles
1247 * Moose::Meta::Attribute
1248 - some improvements to the accessor generation code
1250 - some small changes to support the new
1252 - (still somewhat) experimental delegation support
1253 with the 'handles' option
1254 - added several tests for this
1255 - no docs for this yet
1257 0.05 Thurs. April 27, 2006
1259 - keywords are now exported with Sub::Exporter
1260 thanks to chansen for this commit
1261 - has keyword now takes a 'metaclass' option
1262 to support custom attribute meta-classes
1263 on a per-attribute basis
1264 - added tests for this
1265 - the 'has' keyword not accepts inherited slot
1266 specifications (has '+foo'). This is still an
1267 experimental feature and probably not finished
1268 see t/038_attribute_inherited_slot_specs.t for
1269 more details, or ask about it on #moose
1270 - added tests for this
1273 - keywords are now exported with Sub::Exporter
1275 * Moose::Utils::TypeConstraints
1276 - reorganized the type constraint hierarchy, thanks
1277 to nothingmuch and chansen for his help and advice
1279 - added some tests for this
1280 - keywords are now exported with Sub::Exporter
1281 thanks to chansen for this commit
1283 * Moose::Meta::Class
1284 - due to changes in Class::MOP, we had to change
1285 construct_instance (for the better)
1287 * Moose::Meta::Attribute
1288 - due to changes in Class::MOP, we had to add the
1289 initialize_instance_slot method (it's a good thing)
1291 * Moose::Meta::TypeConstraint
1292 - added type constraint unions
1293 - added tests for this
1294 - added the is_subtype_of predicate method
1295 - added tests for this
1297 0.04 Sun. April 16th, 2006
1299 - Roles can now consume other roles
1300 - added tests for this
1301 - Roles can specify required methods now with
1302 the requires() keyword
1303 - added tests for this
1306 - ripped out much of it's guts ,.. much cleaner now
1307 - added required methods and correct handling of
1308 them in apply() for both classes and roles
1309 - added tests for this
1310 - no longer adds a does() method to consuming classes
1311 it relys on the one in Moose::Object
1312 - added roles attribute and some methods to support
1313 roles consuming roles
1315 * Moose::Meta::Attribute
1316 - added support for triggers on attributes
1317 - added tests for this
1318 - added support for does option on an attribute
1319 - added tests for this
1321 * Moose::Meta::Class
1322 - added support for attribute triggers in the
1324 - added tests for this
1327 - Moose no longer creates a subtype for your class
1328 if a subtype of the same name already exists, this
1329 should DWIM in 99.9999% of all cases
1331 * Moose::Util::TypeConstraints
1332 - fixed bug where incorrect subtype conflicts were
1334 - added test for this
1337 - this class can now be extended with 'use base' if
1338 you need it, it properly loads the metaclass class now
1339 - added test for this
1341 0.03_02 Wed. April 12, 2006
1343 - you must now explictly use Moose::Util::TypeConstraints
1344 it no longer gets exported for you automatically
1347 - new() now accepts hash-refs as well as key/value lists
1348 - added does() method to check for Roles
1349 - added tests for this
1351 * Moose::Meta::Class
1352 - added roles attribute along with the add_role() and
1354 - added tests for this
1357 - now adds a does() method to consuming classes
1358 which tests the class's hierarchy for roles
1359 - added tests for this
1361 0.03_01 Mon. April 10, 2006
1363 - added new Role recipe (no content yet, only code)
1366 - added 'with' keyword for Role support
1367 - added test and docs for this
1368 - fixed subtype quoting bug
1369 - added test for this
1373 - added test and docs
1375 * Moose::Util::TypeConstraints
1376 - added the message keyword to add custom
1377 error messages to type constraints
1380 - the meta role to support Moose::Role
1381 - added tests and docs
1383 * Moose::Meta::Class
1384 - moved a number of things from Moose.pm
1385 to here, they should have been here
1388 * Moose::Meta::Attribute
1389 - moved the attribute option macros here
1390 instead of putting them in Moose.pm
1392 * Moose::Meta::TypeConstraint
1393 - added the message attributes and the
1395 - added tests and docs for this
1397 0.03 Thurs. March 30, 2006
1399 - added the Moose::Cookbook with 5 recipes,
1400 describing all the stuff Moose can do.
1403 - fixed an issue with &extends super class loading
1404 it now captures errors and deals with inline
1405 packages correctly (bug found by mst, solution
1407 - added super/override & inner/augment features
1408 - added tests and docs for these
1411 - BUILDALL now takes a reference of the %params
1412 that are passed to &new, and passes that to
1415 * Moose::Util::TypeConstraints
1416 - Type constraints now survive runtime reloading
1417 - added test for this
1419 * Moose::Meta::Class
1420 - fixed the way attribute defaults are handled
1421 during instance construction (bug found by chansen)
1423 * Moose::Meta::Attribute
1424 - read-only attributes now actually enforce their
1425 read-only-ness (this corrected in Class::MOP as
1428 0.02 Tues. March 21, 2006
1430 - many more tests, fixing some bugs and
1432 - &extends now loads the base module with
1434 - added UNIVERSAL::require to the
1437 - each new Moose class will also create
1438 and register a subtype of Object which
1439 correspond to the new Moose class.
1440 - the 'isa' option in &has now only
1441 accepts strings, and will DWIM in
1444 * Moose::Util::TypeConstraints
1445 - added type coercion features
1446 - added tests for this
1447 - added support for this in attributes
1448 and instance construction
1450 - type construction no longer creates a
1451 function, it registers the type instead.
1452 - added several functions to get the
1456 - BUILDALL and DEMOLISHALL were broken
1457 because of a mis-named hash key, Whoops :)
1459 * Moose::Meta::Attribute
1460 - adding support for coercion in the
1461 autogenerated accessors
1463 * Moose::Meta::Class
1464 - adding support for coercion in the
1465 instance construction
1467 * Moose::Meta::TypeConstraint
1468 * Moose::Meta::TypeCoercion
1469 - type constraints and coercions are now
1470 full fledges meta-objects
1472 0.01 Wed. March 15, 2006
1473 - Moooooooooooooooooose!!!