1 Revision history for Perl extension Moose
4 !! This version now approx. 20-25% !!
5 !! faster with new Class::MOP 0.57 !!
8 - some optimizations of the &initialize method
9 since it is called so often by &meta
13 - now use the get_all_package_symbols from the
14 updated Class::MOP, test suite is now 10 seconds
17 * Moose::Meta::Method::Destructor
18 - is_needed can now also be called as a class
19 method for immutablization to check if the
20 destructor object even needs to be created
23 * Moose::Meta::Method::Destructor
24 Moose::Meta::Method::Constructor
25 - added more descriptive error message to help
26 keep people from wasting time tracking an error
27 that is easily fixed by upgrading.
29 0.45 Saturday, May 24, 2008
31 - Because of work in Class::MOP 0.56, all
32 XS based functionality is now optional
33 and a Pure Perl version is supplied
34 - the CLASS_MOP_NO_XS environment variable
35 can now be used to force non-XS versions
37 - several of the packages have been tweaked
38 to take care of this, mostly we added
39 support for the package_name and name
40 variables in all the Method metaclasses
41 - before/around/after method modifiers now
42 support regexp matching of names
43 (thanks to Takatoshi Kitano)
44 - tests added for this
45 - NOTE: this only works for classes, it
46 is currently not supported in roles,
47 but, ... patches welcome
48 - All usage of Carp::confess have been replaced
49 by Carp::croak in the "keyword" functions since
50 the stack trace is usually not helpful
53 - All usage of Carp::confess have been replaced
54 by Carp::croak in the "keyword" functions since
55 the stack trace is usually not helpful
56 - The 'has' keyword for roles now accepts the
57 same array ref form that Moose.pm does
58 (has [qw/foo bar/] => (is => 'rw', ...))
61 * Moose::Meta::Attribute
62 - trigger on a ro-attribute is no longer an
63 error, as it's useful to trigger off of the
67 - added same 'add_package_symbol' fix as in
71 - does_role now handles non-Moose classes
73 - added tests for this
74 - added the 'add_method_modifier' function
75 (thanks to Takatoshi Kitano)
77 * Moose::Util::TypeConstraints
78 - subtypes of parameterizable types now are
79 themselves parameterizable types
81 * Moose::Meta::Method::Constructor
82 - fixed bug where trigger was not being
83 called by the inlined immutable
85 - added test for this (thanks to Caelum)
87 * Moose::Meta::Role::Application::ToInstance
88 - now uses the metaclass of the instance
89 (if possible) to create the anon-class
90 (thanks Jonathan Rockway)
92 * Moose::Cookbook::Recipe22
93 - added the meta-attribute trait recipe
97 - fixed hash-ordering test bug that was
98 causing occasional cpantester failures
99 - renamed the t/000_recipe/*.t tests to be
100 more descriptive (thanks to Sartak)
102 0.44 Sat. May 10, 2008
104 - made make_immutable warning cluck to
105 show where the error is (thanks mst)
108 - BUILDALL and DEMOLISHALL now call
109 ->body when looping through the
110 methods, to avoid the overloaded
112 - fixed issue where DEMOLISHALL was
113 eating the $@ values, and so not
114 working correctly, it still kind of
115 eats them, but so does vanilla perl
116 - added tests for this
118 * Moose::Cookbook::Recipe7
119 - added new recipe for immutable
120 functionality (thanks Dave Rolsky)
122 * Moose::Cookbook::Recipe9
123 - added new recipe for builder and
124 lazy_build (thanks Dave Rolsky)
126 * Moose::Cookbook::Recipe11
127 - added new recipe for method aliasing
128 and exclusion with Roles (thanks Dave Rolsky)
131 - fixed Win32 test failure (thanks spicyjack)
133 ~ removed Build.PL and Module::Build compat
134 since Module::Install has done that.
136 0.43 Wed. April, 30, 2008
138 drink more coffee before
139 doing release engineering
141 - whoops, forgot to do the smolder tests,
142 and we broke some of the custom meta-attr
143 modules. This fixes that.
145 0.42 Mon. April 28, 2008
146 - some bad tests slipped by, nothing else
147 changed in this release (cpantesters++)
149 - upped the Class::MOP dependency to 0.55
150 since we have tests which need the C3
153 0.41 Mon. April 28, 2008
154 ~~ numerous documentation updates ~~
156 - Changed all usage of die to Carp::croak for better
157 error reporting (initial patch by Tod Hagan)
160 - the make_immutable keyword is now deprecated, don't
161 use it in any new code and please fix your old code
162 as well. There will be 2 releases, and then it will
168 - refactored the way inner and super work to avoid
169 any method/@ISA cache penalty (nothingmuch)
172 - fixing &new_object to make sure trigger gets the
173 coerced value (spotted by Charles Alderman on the
175 - added test for this
177 * Moose::Meta::Method::Constructor
178 - immutable classes which had non-lazy attributes were calling
179 the default generating sub twice in the constructor. (bug
180 found by Jesse Luehrs, fixed by Dave Rolsky)
181 - added tests for this (Dave Rolsky)
182 - fix typo in initialize_body method (nothingmuch)
184 * Moose::Meta::Method::Destructor
185 - fix typo in initialize_body method (nothingmuch)
187 * Moose::Meta::Method::Overriden
188 Moose::Meta::Method::Augmented
189 - moved the logic for these into their own
190 classes (nothingmuch)
192 * Moose::Meta::Attribute
193 - inherited attributes may now be extended without
194 restriction on the type ('isa', 'does') (Sartak)
195 - added tests for this (Sartak)
196 - when an attribute property is malformed (such as lazy without
197 a default), give the name of the attribute in the error
199 - added the &applied_traits and &has_applied_traits methods
200 to allow introspection of traits
201 - added tests for this
202 - moved 'trait' and 'metaclass' argument handling to here from
204 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
205 '+foo' syntax) (nothingmuch)
206 - added tests for this (t0m)
209 - localize $@ inside DEMOLISHALL to avoid it
210 eating $@ (found by Ernesto)
211 - added test for this (thanks to Ernesto)
213 * Moose::Util::TypeConstraints
214 - &find_type_constraint now DWIMs when given an
215 type constraint object or name (nothingmuch)
216 - &find_or_create_type_constraint superseded with a number of more
218 - find_or_create_{isa,does}_type_constraint
219 - find_or_parse_type_constraint
221 * Moose::Meta::TypeConstraint
222 Moose::Meta::TypeConstraint::Class
223 Moose::Meta::TypeConstraint::Role
224 Moose::Meta::TypeConstraint::Enum
225 Moose::Meta::TypeConstraint::Union
226 Moose::Meta::TypeConstraint::Parameterized
227 - added the &equals method for comparing two type
228 constraints (nothingmuch)
229 - added tests for this (nothingmuch)
231 * Moose::Meta::TypeConstraint
232 - add the &parents method, which is just an alias to &parent.
233 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
235 * Moose::Meta::TypeConstraint::Class
236 - added the class attribute for introspection purposes
238 - added tests for this
240 * Moose::Meta::TypeConstraint::Enum
241 Moose::Meta::TypeConstraint::Role
242 - broke these out into their own classes (nothingmuch)
244 * Moose::Cookbook::Recipe*
245 - fixed references to test file locations in the POD
246 and updated up some text for new Moose features
250 - Added &resolve_metaclass_alias, a helper function for finding an actual
251 class for a short name (e.g. in the traits list)
253 0.40 Fri. March 14, 2008
254 - I hate Pod::Coverage
256 0.39 Fri. March 14, 2008
258 - documenting the use of '+name' with attributes
259 that come from recently composed roles. It makes
260 sense, people are using it, and so why not just
261 officially support it.
262 - fixing the 'extends' keyword so that it will not
263 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
266 - added the perl -Moose=+Class::Name feature to allow
267 monkeypatching of classes in one liners
270 - fixing the 'apply_all_roles' keyword so that it will not
271 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
274 - added ->create method which now supports roles (thanks to jrockway)
275 - added tests for this
276 - added ->create_anon_class which now supports roles and caching of
277 the results (thanks to jrockway)
278 - added tests for this
279 - made ->does_role a little more forgiving when it is
280 checking a Class::MOP era metaclasses.
282 * Moose::Meta::Role::Application::ToInstance
283 - it is now possible to pass extra params to be used when
284 a role is applied to an the instance (rebless_params)
285 - added tests for this
287 * Moose::Util::TypeConstraints
288 - class_type now accepts an optional second argument for a
289 custom message. POD anotated accordingly (groditi)
290 - added tests for this
291 - it is now possible to make anon-enums by passing 'enum' an
292 ARRAY ref instead of the $name => @values. Everything else
294 - added tests for this
297 - making test for using '+name' on attributes consumed
298 from a role, it works and makes sense too.
300 * Moose::Meta::Attribute
301 - fix handles so that it doesn't return nothing
302 when the method cannot be found, not sure why
303 it ever did this originally, this means we now
304 have slightly better support for AUTOLOADed
306 - added more delegation tests
307 - adding ->does method to this so as to better
308 support traits and their introspection.
309 - added tests for this
312 - localizing the Data::Dumper configurations so
313 that it does not pollute others (RT #33509)
314 - made ->does a little more forgiving when it is
315 passed Class::MOP era metaclasses.
317 0.38 Fri. Feb. 15, 2008
318 * Moose::Meta::Attribute
319 - fixed initializer to correctly do
320 type checking and coercion in the
322 - added tests for this
325 - fixed some finicky tests (thanks to konobi)
327 0.37 Thurs. Feb. 14, 2008
329 - fixed some details in Moose::init_meta
330 and its superclass handling (thanks thepler)
331 - added tests for this (thanks thepler)
332 - 'has' now dies if you don't pass in name
334 - added the 'make_immutable' keyword as a shortcut
338 Moose::Meta::Method::Constructor
339 Moose::Meta::Attribute
340 - making (init_arg => undef) work here too
341 (thanks to nothingmuch)
343 * Moose::Meta::Attribute
344 Moose::Meta::Method::Constructor
345 Moose::Meta::Method::Accessor
346 - make lazy attributes respect attr initializers (rjbs)
347 - added tests for this
349 * Moose::Util::TypeConstraints
350 Moose::Util::TypeConstraints::OptimizedConstraints
351 Moose::Meta::TypeConstraints
352 Moose::Meta::Attribute
353 Moose::Meta::Method::Constructor
354 Moose::Meta::Method::Accessor
355 - making type errors use the
356 assigned message (thanks to Sartak)
357 - added tests for this
359 * Moose::Meta::Method::Destructor
360 - making sure DESTROY gets inlined properly
361 with successive DEMOLISH calls (thanks to manito)
363 * Moose::Meta::Attribute
364 Moose::Meta::Method::Accessor
365 - fixed handling of undef with type constraints
367 - added tests for this
370 - added &get_all_init_args and &get_all_attribute_values
371 (thanks to Sartak and nothingmuch)
373 0.36 Sat. Jan. 26, 2008
375 Moose::Meta::Attribute
376 - role type tests now support when roles are
377 applied to non-Moose classes (found by ash)
378 - added tests for this (thanks to ash)
379 - couple extra tests to boost code coverage
381 * Moose::Meta::Method::Constructor
382 - improved fix for handling Class::MOP attributes
383 - added test for this
386 - handled the add_attribute($attribute_meta_object)
388 - added test for this
390 0.35 Tues. Jan. 22, 2008
391 * Moose::Meta::Method::Constructor
392 - fix to make sure even Class::MOP attributes
393 are handled correctly (Thanks to Dave Rolsky)
394 - added test for this (also Dave Rolsky)
397 - improved error message on _apply_all_roles,
398 you should now use Moose::Util::apply_all_roles
399 and you shouldnt have been using a _ prefixed
400 method in the first place ;)
402 0.34 Mon. Jan. 21, 2008
403 ~~~ more misc. doc. fixes ~~~
404 ~~ updated copyright dates ~~
406 Moose is now a postmodern object system :)
407 - (see the POD for details)
409 * <<Role System Refactoring>>
410 - this release contains a major reworking and
411 cleanup of the role system
412 - 100% backwards compat.
413 - Role application now restructured into seperate
414 classes based on type of applicants
415 - Role summation (combining of more than one role)
416 is much cleaner and anon-classes are no longer
418 - new Composite role metaclass
419 - runtime application of roles to instances
420 is now more efficient and re-uses generated
421 classes when applicable
423 * <<New Role composition features>>
424 - methods can now be excluded from a given role
426 - methods can now be aliased to another name (and
427 still retain the original as well)
429 * Moose::Util::TypeConstraints::OptimizedConstraints
430 - added this module (see above)
433 - fixed the &_process_attribute method to be called
434 by &add_attribute, so that the API is now correct
436 * Moose::Meta::Method::Accessor
437 - fixed bug when passing a list of values to
438 an accessor would get (incorrectly) ignored.
439 Thanks to Sartak for finding this ;)
440 - added tests for this (Sartak again)
442 * Moose::Meta::Method::Accessor
443 Moose::Meta::Method::Constructor
444 Moose::Meta::Attribute
445 Moose::Meta::TypeConstraint
446 Moose::Meta::TypeCoercion
447 - lots of cleanup of such things as:
449 - type constraint handling
450 - error handling/messages
451 (thanks to nothingmuch)
453 * Moose::Meta::TypeConstraint::Parameterizable
454 - added this module to support the refactor
455 in Moose::Meta::TypeConstraint::Parameterized
457 * Moose::Meta::TypeConstraint::Parameterized
458 - refactored how these types are handled so they
459 are more generic and not confined to ArrayRef
463 - shortened some file names for better VMS support (RT #32381)
465 0.33 Fri. Dec. 14, 2007
466 !! Moose now loads 2 x faster !!
467 !! with new Class::MOP 0.49 !!
469 ++ new oose.pm module to make command line
470 Moose-ness easier (see POD docs for more)
474 - several tweaks to take advantage of the
475 new method map caching in Class::MOP
477 * Moose::Meta::TypeConstraint::Parameterized
478 - allow subtypes of ArrayRef and HashRef to
479 be used as a container (sartak)
480 - added tests for this
481 - basic support for coercion to ArrayRef and
482 HashRef for containers (sartak)
483 - added tests for this
485 * Moose::Meta::TypeCoercion
486 - coercions will now create subtypes as needed
487 so you can now add coercions to parameterized
488 types without having to explictly define them
489 - added tests for this
491 * Moose::Meta::Method::Accessor
492 - allow subclasses to decide whether we need
493 to copy the value into a new variable (sartak)
495 0.32 Tues. Dec. 4, 2007
496 * Moose::Util::TypeConstraints
497 - fixing how subtype aliases of unions work
498 they should inherit the parent's coercion
499 - added tests for this
500 - you can now define multiple coercions on
501 a single type at different times instead of
502 having to do it all in one place
503 - added tests for this
505 * Moose::Meta::TypeConstraint
506 - there is now a default constraint of sub { 1 }
507 instead of Moose::Util::TypeConstraints setting
510 * Moose::Meta::TypeCoercion
511 * Moose::Meta::TypeCoercion::Union
512 - added the &has_coercion_for_type and
513 &add_type_coercions methods to support the
514 new features above (although you cannot add
515 more type coercions for Union types)
517 0.31 Mon. Nov. 26, 2007
518 * Moose::Meta::Attribute
519 - made the +attr syntax handle extending types with
520 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
521 now works if the original foo is an ArrayRef.
522 - added tests for this.
523 - delegation now works even if the attribute does not
524 have a reader method using the get_read_method_ref
525 method from Class::MOP::Attribute.
526 - added tests for this
527 - added docs for this
529 * Moose::Util::TypeConstraints
530 - passing no "additional attribute info" to
531 &find_or_create_type_constraint will no longer
532 attempt to create an __ANON__ type for you,
533 instead it will just return undef.
534 - added docs for this
536 0.30 Fri. Nov. 23, 2007
537 * Moose::Meta::Method::Constructor
538 -builder related bug in inlined constructor. (groditi)
540 * Moose::Meta::Method::Accessor
541 - genereate unnecessary calls to predicates and refactor
542 code generation for runtime speed (groditi)
544 * Moose::Util::TypeConstraints
545 - fix ClassName constraint to introspect symbol table (mst)
546 - added more tests for this (mst)
547 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
549 - added tests for this
552 - adding the link to Recipie 11 (written by Sartak)
553 - adding test for SYNOPSIS code
556 - New tests for builder bug. Upon instantiation, if an
557 attribute had a builder, no value and was not lazy the
558 builder default was not getting run, oops. (groditi)
560 0.29 Tues. Nov. 13, 2007
561 * Moose::Meta::Attribute
562 - Fix error message on missing builder method (groditi)
564 * Moose::Meta::Method::Accessor
565 - Fix error message on missing builder method (groditi)
568 - Add test to check for the correct error message when
569 builder method is missing (groditi)
571 0.28 Tues. Nov. 13, 2007
572 - 0.27 packaged incorrectly (groditi)
574 0.27 Tues. Nov. 13, 2007
575 * Moose::Meta::Attribute
576 - Added support for the new builder option (groditi)
577 - Added support for lazy_build option (groditi)
578 - Changed slot initialization for predicate changes (groditi)
580 * Moose::Meta::Method::Accessor
581 - Added support for lazy_build option (groditi)
582 - Fix inline methods to work with corrected predicate
585 * Moose::Meta::Method::Constructor
586 - Added support for lazy_build option (groditi)
589 - tests for builder and lazy_build (groditi)
591 * fixing some misc. bits in the docs that
592 got mentioned on CPAN Forum & perlmonks
595 - fixed how required methods are handled
596 when they encounter overriden or modified
597 methods from a class (thanks to confound).
598 - added tests for this
600 * Moose::Util::TypeConstraint
601 - fixed the type notation parser so that
602 the | always creates a union and so is
603 no longer a valid type char (thanks to
604 konobi, mugwump and #moose for working
606 - added more tests for this
608 0.26 Thurs. Sept. 27, 2007
611 * Parameterized Types
612 We now support parameterized collection types, such as:
613 ArrayRef[Int] # array or integers
614 HashRef[Object] # a hash with object values
615 They can also be nested:
616 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
617 And work with the type unions as well:
618 ArrayRef[Int | Str] # array of integers of strings
620 * Better Framework Extendability
621 Moose.pm is now "extendable" such that it is now much
622 easier to extend the framework and add your own keywords
623 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
624 section of the Moose.pm docs.
627 In an effort to begin documenting some of the various
628 details of Moose as well as some common idioms, we have
629 created Moose::Cookbook::Snacks as a place to find
630 small (easily digestable) nuggets of Moose code.
633 ~ Several doc updates/cleanup thanks to castaway ~
635 - converted build system to use Module::Install instead of
636 Module::Build (thanks to jrockway)
639 - added all the meta classes to the immutable list and
640 set it to inline the accessors
641 - fix import to allow Sub::Exporter like { into => }
642 and { into_level => } (perigrin)
643 - exposed and documented init_meta() to allow better
644 embedding and extending of Moose (perigrin)
647 - complete re-organization of the test suite
648 - added some new tests as well
649 - finally re-enabled the Moose::POOP test since
650 the new version of DBM::Deep now works again
654 - fixed very odd and very nasty recursion bug with
656 - added tests for this (eilara)
658 * Moose::Meta::Attribute
659 Moose::Meta::Method::Constructor
660 Moose::Meta::Method::Accessor
661 - fixed issue with overload::Overloaded getting called
662 on non-blessed items. (RT #29269)
663 - added tests for this
665 * Moose::Meta::Method::Accessor
666 - fixed issue with generated accessor code making
667 assumptions about hash based classes (thanks to dexter)
669 * Moose::Coookbook::Snacks
670 - these are bits of documentation, not quite as big as
671 Recipes but which have no clear place in the module docs.
672 So they are Snacks! (horray for castaway++)
674 * Moose::Cookbook::Recipe4
675 - updated it to use the new ArrayRef[MyType] construct
676 - updated the accompanying test as well
678 +++ Major Refactor of the Type Constraint system +++
679 +++ with new features added as well +++
681 * Moose::Util::TypeConstraint
682 - no longer uses package variable to keep track of
683 the type constraints, now uses the an instance of
684 Moose::Meta::TypeConstraint::Registry to do it
685 - added more sophisticated type notation parsing
687 - added tests for this
689 * Moose::Meta::TypeConstraint
690 - some minor adjustments to make subclassing easier
691 - added the package_defined_in attribute so that we
692 can track where the type constraints are created
694 * Moose::Meta::TypeConstraint::Union
695 - this is now been refactored to be a subclass of
696 Moose::Meta::TypeConstraint
698 * Moose::Meta::TypeCoercion::Union
699 - this has been added to service the newly refactored
700 Moose::Meta::TypeConstraint::Union and is itself
701 a subclass of Moose::Meta::TypeCoercion
703 * Moose::Meta::TypeConstraint::Parameterized
704 - added this module (taken from MooseX::AttributeHelpers)
705 to help construct nested collection types
706 - added tests for this
708 * Moose::Meta::TypeConstraint::Registry
709 - added this class to keep track of type constraints
711 0.25 Mon. Aug. 13, 2007
713 - Documentation update to reference Moose::Util::TypeConstraints
714 under 'isa' in 'has' for how to define a new type
717 * Moose::Meta::Attribute
718 - required attributes now will no longer accept undef
719 from the constructor, even if there is a default and lazy
720 - added tests for this
721 - default subroutines must return a value which passes the
723 - added tests for this
725 * Moose::Meta::Attribute
726 * Moose::Meta::Method::Constructor
727 * Moose::Meta::Method::Accessor
728 - type-constraint tests now handle overloaded objects correctly
730 - added tests for this (thanks to EvanCarroll)
732 * Moose::Meta::TypeConstraint::Union
733 - added (has_)hand_optimized_constraint to this class so that
734 it behaves as the regular Moose::Meta::TypeConstraint does.
737 - large refactoring of this code
738 - added several more tests
739 - tests for subtle conflict resolition issues
740 added, but not currently running
743 * Moose::Cookbook::Recipe7
744 - added new recipe for augment/inner functionality
746 - added test for this
749 - a formal definition of roles (still in progress)
752 - utilities for easier working with Moose classes
753 - added tests for these
756 - This contains Moose specific test functions
757 - added tests for these
759 0.24 Tues. July 3, 2007
760 ~ Some doc updates/cleanup ~
762 * Moose::Meta::Attribute
763 - added support for roles to be given as parameters
764 to the 'handles' option.
765 - added tests and docs for this
766 - the has '+foo' attribute form now accepts changes to
767 the lazy option, and the addition of a handles option
768 (but not changing the handles option)
769 - added tests and docs for this
772 - required methods are now fetched using find_method_by_name
773 so that required methods can come from superclasses
774 - adjusted tests for this
776 0.23 Mon. June 18, 2007
777 * Moose::Meta::Method::Constructor
778 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
780 - Modify make_immutable to work with the new Class::MOP immutable
781 mechanism + POD + very basic test (groditi)
782 * Moose::Meta::Attribute
783 - Fix handles to use goto() so that caller() comes out properly on
784 the other side (perigrin)
786 0.22 Thurs. May 31, 2007
787 * Moose::Util::TypeConstraints
788 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
789 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
790 prototypes for functions
791 - added the ClassName type constraint, this checks for strings
792 which will respond true to ->isa(UNIVERSAL).
793 - added tests and docs for this
794 - subtyping just in name now works correctly by making the
795 default for where be { 1 }
796 - added test for this
798 * Moose::Meta::Method::Accessor
799 - coerce and lazy now work together correctly, thanks to
800 merlyn for finding this bug
801 - tests added for this
802 - fix reader presedence bug in Moose::Meta::Attribute + tests
805 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
806 a HASH-ref and missed. This produces better error messages then
807 having it die cause undef is not a HASH.
808 - added tests for this
810 0.21 Thursday, May 2nd, 2007
812 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
813 - modified unimport to remove super and inner along with the rest
814 - altered unimport tests to handle this
817 - altered super export to populate SUPER_SLOT
820 - altered augment and override modifier application to use *_SLOT
821 - modified tests for these to unimport one test class each to test
824 - fixed issue where custom attribute metaclasses
825 where not handled correctly in roles
826 - added tests for this
829 - fixed issue where extending metaclasses with
830 roles would blow up. Thanks to Aankhen`` for
831 finding this insidious error, and it's solution.
833 ~~ lots of spelling and grammer fixes in the docs,
834 many many thanks to rlb3 and Aankhen for these :)
836 0.20 Friday, April 6th, 2007
837 >> I messed up the SKIP logic in one test
838 so this release is just to fix that.
841 - 'has' now also accepts an ARRAY ref
842 to create multiple attrs (see docs)
843 (thanks to konobi for this)
844 - added tests and docs
846 0.19 Thurs. April 5th, 2007
847 ~~ More documentation updates ~~
849 * Moose::Util::TypeConstraints
850 - 'type' now supports messages as well
851 thanks to phaylon for finding this
852 - added tests for this
853 - added &list_all_type_constraints and
854 &list_all_builtin_type_constraints
855 functions to facilitate introspection.
857 * Moose::Meta::Attribute
858 - fixed regexp 'handles' declarations
859 to build the list of delegated methods
860 correctly (and not override important
861 things like &new) thanks to ashleyb
863 - added tests and docs for this
864 - added the 'documentation' attributes
865 so that you can actually document your
866 attributes and inspect them through the
868 - added tests and docs for this
871 - when loading custom attribute metaclasses
872 it will first look in for the class in the
873 Moose::Meta::Attribute::Custom::$name, and
874 then default to just loading $name.
875 - added tests and docs for this
877 * Moose::Meta::TypeConstraint
878 - type constraints now stringify to their names.
879 - added test for this
882 - added tests to assure we work with Module::Refresh
883 - added stricter test skip logic in the Moose POOP
884 test, ask Rob Kinyon why.
885 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
887 0.18 Sat. March 10, 2007
888 ~~ Many, many documentation updates ~~
891 - We now use Class::MOP::load_class to
893 - added tests to show types and subtypes
894 working with Declare::Constraints::Simple
895 and Test::Deep as constraint engines.
898 !! You must have Class::MOP 0.37_001 !!
899 !! for this developer release to work !!
901 This release was primarily adding the immutable
902 feature to Moose. An immutable class is one which
903 you promise not to alter. When you set the class
904 as immutable it will perform various bits of
905 memoization and inline certain part of the code
906 (constructors, destructors and accessors). This
907 minimizes (and in some cases totally eliminates)
908 one of Moose's biggest performance hits. This
909 feature is not on by default, and is 100% optional.
910 It has several configurable bits as well, so you
911 can pick and choose to your specific needs.
913 The changes involved in this were fairly wide and
914 highly specific, but 100% backwards compatible, so
915 I am not going to enumerate them here. If you are
916 truely interested in what was changed, please do
919 0.17 Tues. Nov. 14, 2006
920 * Moose::Meta::Method::Accessor
921 - bugfix for read-only accessors which
922 are have a type constraint and lazy.
923 Thanks to chansen for finding it.
925 0.16 Tues. Nov. 14, 2006
927 There are some speed improvements in this release,
928 but they are only the begining, so stay tuned.
931 - BUILDALL and DEMOLISHALL no longer get
932 called unless they actually need to be.
933 This gave us a signifigant speed boost
934 for the cases when there is no BUILD or
935 DEMOLISH method present.
937 * Moose::Util::TypeConstraints
938 * Moose::Meta::TypeConstraint
939 - added an 'optimize_as' option to the
940 type constraint, which allows for a
941 hand optimized version of the type
942 constraint to be used when possible.
943 - Any internally created type constraints
944 now provide an optimized version as well.
946 0.15 Sun. Nov. 5, 2006
948 This version of Moose *must* have Class::MOP 0.36 in order
949 to work correctly. A number of small internal tweaks have
950 been made in order to be compatible with that release.
952 * Moose::Util::TypeConstraints
953 - added &unimport so that you can clean out
954 your class namespace of these exported
958 - fixed minor issue which occasionally
959 comes up during global destruction
961 - moved Moose::Meta::Method::Overriden into
965 - moved Moose::Meta::Role::Method into
968 * Moose::Meta::Attribute
969 - changed how we do type checks so that
970 we reduce the overall cost, but still
973 - moved accessor generation methods to
974 Moose::Meta::Method::Accessor to
975 conform to the API changes from
978 * Moose::Meta::TypeConstraint
979 - changed how constraints are compiled
980 so that we do less recursion and more
981 iteration. This makes the type check
983 - moved Moose::Meta::TypeConstraint::Union
986 * Moose::Meta::Method::Accessor
987 - created this from methods formerly found in
988 Moose::Meta::Attribute
990 * Moose::Meta::Role::Method
991 - moved this from Moose::Meta::Role
993 * Moose::Meta::Method::Overriden
994 - moved this from Moose::Meta::Class
996 * Moose::Meta::TypeConstraint::Union
997 - moved this from Moose::Meta::TypeConstraint
999 0.14 Mon. Oct. 9, 2006
1001 * Moose::Meta::Attribute
1002 - fixed lazy attributes which were not getting
1003 checked with the type constraint (thanks ashley)
1004 - added tests for this
1005 - removed the over-enthusiastic DWIMery of the
1006 automatic ArrayRef and HashRef defaults, it
1007 broke predicates in an ugly way.
1008 - removed tests for this
1010 0.13 Sat. Sept. 30, 2006
1012 This version of Moose *must* have Class::MOP 0.35 in order
1013 to work correctly. A number of small internal tweaks have
1014 been made in order to be compatible with that release.
1017 - Removed the use of UNIVERSAL::require to be a better
1018 symbol table citizen and remove a dependency
1019 (thanks Adam Kennedy)
1021 **~~ removed experimental & undocumented feature ~~**
1022 - commented out the 'method' and 'self' keywords, see the
1023 comments for more info.
1026 - added a FAQ and WTF files to document frequently
1027 asked questions and common problems
1029 * Moose::Util::TypeConstraints
1030 - added GlobRef and FileHandle type constraint
1031 - added tests for this
1033 * Moose::Meta::Attribute
1034 - if your attribute 'isa' ArrayRef of HashRef, and you have
1035 not explicitly set a default, then make the default DWIM.
1036 This will also work for subtypes of ArrayRef and HashRef
1038 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1039 - new test added for this (thanks to ashley)
1042 - added basic support for runtime role composition
1043 but this is still *highly experimental*, so feedback
1044 is much appreciated :)
1045 - added tests for this
1047 * Moose::Meta::TypeConstraint
1048 - the type constraint now handles the coercion process
1049 through delegation, this is to support the coercion
1052 * Moose::Meta::TypeConstraint::Union
1053 - it is now possible for coercions to be performed
1055 - added tests for this (thanks to konobi)
1057 * Moose::Meta::TypeCoercion
1058 - properly capturing error when type constraint
1062 - Scalar::Util 1.18 is bad on Win32, so temporarily
1063 only require version 1.17 for Win32 and cygwin.
1064 (thanks Adam Kennedy)
1066 0.12 Sat. Sept. 1, 2006
1068 - Recipe5 (subtypes & coercion) has been written
1071 - fixed "bad meta" error message to be more descriptive
1072 - fixed &unimport to not remove the &inner and &super
1073 keywords because we need to localize them.
1074 - fixed number of spelling/grammer issues, thanks Theory :)
1076 **~~ experimental & undocumented feature ~~**
1077 - added the method and self keywords, they are basically
1078 just sugar, and they may not stay around.
1081 - added &dump method to easily Data::Dumper
1084 * Moose::Meta::TypeConstraint
1085 - added the &is_a_type_of method to check both the current
1086 and the subtype of a method (similar to &isa with classes)
1089 - this is now a subclass of Class::MOP::Module, and no longer
1090 creates the _role_meta ugliness of before.
1091 - fixed tests to reflect this change
1093 0.11 Wed. July 12, 2006
1095 - added an &unimport method to remove all the keywords
1096 that Moose will import, simply add 'no Moose' to the
1097 bottom of your class file.
1100 - fixed some test failures caused by a forgotten test
1103 0.10 Thurs. July 6, 2006
1105 - improved error message when loading modules so
1106 it is less confusing when you load a role.
1107 - added &calculate_all_roles method to
1108 Moose::Meta::Class and Moose::Meta::Role
1111 This module has been tested against Class::MOP 0.30
1112 but it does not yet utilize the optimizations
1113 it makes available. Stay tuned for that ;)
1115 0.09_03 Fri. June 23, 2006
1116 ++ DEVELOPER RELEASE ++
1118 - 'use strict' and 'use warnings' are no longer
1119 needed in Moose classes, Moose itself will
1120 turn them on for you.
1121 - added tests for this
1122 - moved code from exported subs to private methods
1123 in Moose::Meta::Class
1126 - as with Moose, strict and warnings are
1127 automatically turned on for you.
1128 - added tests for this
1131 - now handles an edge case for override errors
1132 - added tests for this
1133 - added some more edge case tests
1135 0.09_02 Tues. May 16, 2006
1136 ++ DEVELOPER RELEASE ++
1138 - added prototypes to the exported subs
1142 - added prototypes to the exported subs
1145 * Moose::Util::TypeConstraints
1146 - cleaned up prototypes for the subs
1149 0.09_01 Fri. May 12, 2006
1150 ++ DEVELOPER RELEASE ++
1151 - This release works in combination with
1152 Class::MOP 0.29_01, it is a developer
1153 release because it uses the a new
1154 instance sub-protocol and a fairly
1155 complete Role implementation. It has
1156 not yet been optimized, so it slower
1157 the the previous CPAN version. This
1158 release also lacks good updated docs,
1159 the official release will have updated docs.
1162 - refactored the keyword exports
1163 - 'with' now checks Role validaity and
1164 accepts more than one Role at a time
1165 - 'extends' makes metaclass adjustments as
1166 needed to ensure metaclass compatability
1169 - refactored the keyword exports
1170 - 'with' now checks Role validaity and
1171 accepts more than one Role at a time
1173 * Moose::Util::TypeConstraints
1174 - added the 'enum' keyword for simple
1175 string enumerations which can be used as
1177 - see example of usage in t/202_example.t
1180 - more careful checking of params to new()
1183 - much work done on the role composition
1184 - many new tests for conflict detection
1185 and composition edge cases
1186 - not enough documentation, I suggest
1187 looking at the tests
1189 * Moose::Meta::Instance
1190 - added new Instance metaclass to support
1191 the new Class::MOP instance protocol
1193 * Moose::Meta::Class
1194 - some small changes to support the new
1196 - some small additions to support Roles
1198 * Moose::Meta::Attribute
1199 - some improvements to the accessor generation code
1201 - some small changes to support the new
1203 - (still somewhat) experimental delegation support
1204 with the 'handles' option
1205 - added several tests for this
1206 - no docs for this yet
1208 0.05 Thurs. April 27, 2006
1210 - keywords are now exported with Sub::Exporter
1211 thanks to chansen for this commit
1212 - has keyword now takes a 'metaclass' option
1213 to support custom attribute meta-classes
1214 on a per-attribute basis
1215 - added tests for this
1216 - the 'has' keyword not accepts inherited slot
1217 specifications (has '+foo'). This is still an
1218 experimental feature and probably not finished
1219 see t/038_attribute_inherited_slot_specs.t for
1220 more details, or ask about it on #moose
1221 - added tests for this
1224 - keywords are now exported with Sub::Exporter
1226 * Moose::Utils::TypeConstraints
1227 - reorganized the type constraint hierarchy, thanks
1228 to nothingmuch and chansen for his help and advice
1230 - added some tests for this
1231 - keywords are now exported with Sub::Exporter
1232 thanks to chansen for this commit
1234 * Moose::Meta::Class
1235 - due to changes in Class::MOP, we had to change
1236 construct_instance (for the better)
1238 * Moose::Meta::Attribute
1239 - due to changes in Class::MOP, we had to add the
1240 initialize_instance_slot method (it's a good thing)
1242 * Moose::Meta::TypeConstraint
1243 - added type constraint unions
1244 - added tests for this
1245 - added the is_subtype_of predicate method
1246 - added tests for this
1248 0.04 Sun. April 16th, 2006
1250 - Roles can now consume other roles
1251 - added tests for this
1252 - Roles can specify required methods now with
1253 the requires() keyword
1254 - added tests for this
1257 - ripped out much of it's guts ,.. much cleaner now
1258 - added required methods and correct handling of
1259 them in apply() for both classes and roles
1260 - added tests for this
1261 - no longer adds a does() method to consuming classes
1262 it relys on the one in Moose::Object
1263 - added roles attribute and some methods to support
1264 roles consuming roles
1266 * Moose::Meta::Attribute
1267 - added support for triggers on attributes
1268 - added tests for this
1269 - added support for does option on an attribute
1270 - added tests for this
1272 * Moose::Meta::Class
1273 - added support for attribute triggers in the
1275 - added tests for this
1278 - Moose no longer creates a subtype for your class
1279 if a subtype of the same name already exists, this
1280 should DWIM in 99.9999% of all cases
1282 * Moose::Util::TypeConstraints
1283 - fixed bug where incorrect subtype conflicts were
1285 - added test for this
1288 - this class can now be extended with 'use base' if
1289 you need it, it properly loads the metaclass class now
1290 - added test for this
1292 0.03_02 Wed. April 12, 2006
1294 - you must now explictly use Moose::Util::TypeConstraints
1295 it no longer gets exported for you automatically
1298 - new() now accepts hash-refs as well as key/value lists
1299 - added does() method to check for Roles
1300 - added tests for this
1302 * Moose::Meta::Class
1303 - added roles attribute along with the add_role() and
1305 - added tests for this
1308 - now adds a does() method to consuming classes
1309 which tests the class's hierarchy for roles
1310 - added tests for this
1312 0.03_01 Mon. April 10, 2006
1314 - added new Role recipe (no content yet, only code)
1317 - added 'with' keyword for Role support
1318 - added test and docs for this
1319 - fixed subtype quoting bug
1320 - added test for this
1324 - added test and docs
1326 * Moose::Util::TypeConstraints
1327 - added the message keyword to add custom
1328 error messages to type constraints
1331 - the meta role to support Moose::Role
1332 - added tests and docs
1334 * Moose::Meta::Class
1335 - moved a number of things from Moose.pm
1336 to here, they should have been here
1339 * Moose::Meta::Attribute
1340 - moved the attribute option macros here
1341 instead of putting them in Moose.pm
1343 * Moose::Meta::TypeConstraint
1344 - added the message attributes and the
1346 - added tests and docs for this
1348 0.03 Thurs. March 30, 2006
1350 - added the Moose::Cookbook with 5 recipes,
1351 describing all the stuff Moose can do.
1354 - fixed an issue with &extends super class loading
1355 it now captures errors and deals with inline
1356 packages correctly (bug found by mst, solution
1358 - added super/override & inner/augment features
1359 - added tests and docs for these
1362 - BUILDALL now takes a reference of the %params
1363 that are passed to &new, and passes that to
1366 * Moose::Util::TypeConstraints
1367 - Type constraints now survive runtime reloading
1368 - added test for this
1370 * Moose::Meta::Class
1371 - fixed the way attribute defaults are handled
1372 during instance construction (bug found by chansen)
1374 * Moose::Meta::Attribute
1375 - read-only attributes now actually enforce their
1376 read-only-ness (this corrected in Class::MOP as
1379 0.02 Tues. March 21, 2006
1381 - many more tests, fixing some bugs and
1383 - &extends now loads the base module with
1385 - added UNIVERSAL::require to the
1388 - each new Moose class will also create
1389 and register a subtype of Object which
1390 correspond to the new Moose class.
1391 - the 'isa' option in &has now only
1392 accepts strings, and will DWIM in
1395 * Moose::Util::TypeConstraints
1396 - added type coercion features
1397 - added tests for this
1398 - added support for this in attributes
1399 and instance construction
1401 - type construction no longer creates a
1402 function, it registers the type instead.
1403 - added several functions to get the
1407 - BUILDALL and DEMOLISHALL were broken
1408 because of a mis-named hash key, Whoops :)
1410 * Moose::Meta::Attribute
1411 - adding support for coercion in the
1412 autogenerated accessors
1414 * Moose::Meta::Class
1415 - adding support for coercion in the
1416 instance construction
1418 * Moose::Meta::TypeConstraint
1419 * Moose::Meta::TypeCoercion
1420 - type constraints and coercions are now
1421 full fledges meta-objects
1423 0.01 Wed. March 15, 2006
1424 - Moooooooooooooooooose!!!