1 Revision history for Perl extension Moose
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"
15 Moose::Meta::Attribute
17 Moose::Meta::Role::Composite
18 Moose::Util::TypeConstraints
19 - switched usage of reftype to ref because
23 - changing add_package_symbol to use the new
27 - fixed how DEMOLISHALL is called so that it
28 can be overrided in subclasses (thanks to Sartak)
29 - added test for this (thanks to Sartak)
31 * Moose::Util::TypeConstraints
32 - move the ClassName type check code to
33 Class::MOP::is_class_loaded (thanks to Sartak)
35 0.48 Thurs. May 29, 2008
36 (early morning release engineering)--
38 - fixing the version in Moose::Meta::Method::Destructor
39 which was causing the indexer to choke
41 0.47 Thurs. May 29, 2008
42 (late night release engineering)--
44 - fixing the version is META.yml, no functional
45 changes in this release
47 0.46 Wed. May 28, 2008
48 !! This version now approx. 20-25% !!
49 !! faster with new Class::MOP 0.57 !!
52 - some optimizations of the &initialize method
53 since it is called so often by &meta
57 - now use the get_all_package_symbols from the
58 updated Class::MOP, test suite is now 10 seconds
61 * Moose::Meta::Method::Destructor
62 - is_needed can now also be called as a class
63 method for immutablization to check if the
64 destructor object even needs to be created
67 * Moose::Meta::Method::Destructor
68 Moose::Meta::Method::Constructor
69 - added more descriptive error message to help
70 keep people from wasting time tracking an error
71 that is easily fixed by upgrading.
73 0.45 Saturday, May 24, 2008
75 - Because of work in Class::MOP 0.56, all
76 XS based functionality is now optional
77 and a Pure Perl version is supplied
78 - the CLASS_MOP_NO_XS environment variable
79 can now be used to force non-XS versions
81 - several of the packages have been tweaked
82 to take care of this, mostly we added
83 support for the package_name and name
84 variables in all the Method metaclasses
85 - before/around/after method modifiers now
86 support regexp matching of names
87 (thanks to Takatoshi Kitano)
88 - tests added for this
89 - NOTE: this only works for classes, it
90 is currently not supported in roles,
91 but, ... patches welcome
92 - All usage of Carp::confess have been replaced
93 by Carp::croak in the "keyword" functions since
94 the stack trace is usually not helpful
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
100 - The 'has' keyword for roles now accepts the
101 same array ref form that Moose.pm does
102 (has [qw/foo bar/] => (is => 'rw', ...))
103 - added test for this
105 * Moose::Meta::Attribute
106 - trigger on a ro-attribute is no longer an
107 error, as it's useful to trigger off of the
111 - added same 'add_package_symbol' fix as in
115 - does_role now handles non-Moose classes
117 - added tests for this
118 - added the 'add_method_modifier' function
119 (thanks to Takatoshi Kitano)
121 * Moose::Util::TypeConstraints
122 - subtypes of parameterizable types now are
123 themselves parameterizable types
125 * Moose::Meta::Method::Constructor
126 - fixed bug where trigger was not being
127 called by the inlined immutable
129 - added test for this (thanks to Caelum)
131 * Moose::Meta::Role::Application::ToInstance
132 - now uses the metaclass of the instance
133 (if possible) to create the anon-class
134 (thanks Jonathan Rockway)
136 * Moose::Cookbook::Recipe22
137 - added the meta-attribute trait recipe
141 - fixed hash-ordering test bug that was
142 causing occasional cpantester failures
143 - renamed the t/000_recipe/*.t tests to be
144 more descriptive (thanks to Sartak)
146 0.44 Sat. May 10, 2008
148 - made make_immutable warning cluck to
149 show where the error is (thanks mst)
152 - BUILDALL and DEMOLISHALL now call
153 ->body when looping through the
154 methods, to avoid the overloaded
156 - fixed issue where DEMOLISHALL was
157 eating the $@ values, and so not
158 working correctly, it still kind of
159 eats them, but so does vanilla perl
160 - added tests for this
162 * Moose::Cookbook::Recipe7
163 - added new recipe for immutable
164 functionality (thanks Dave Rolsky)
166 * Moose::Cookbook::Recipe9
167 - added new recipe for builder and
168 lazy_build (thanks Dave Rolsky)
170 * Moose::Cookbook::Recipe11
171 - added new recipe for method aliasing
172 and exclusion with Roles (thanks Dave Rolsky)
175 - fixed Win32 test failure (thanks spicyjack)
177 ~ removed Build.PL and Module::Build compat
178 since Module::Install has done that.
180 0.43 Wed. April, 30, 2008
182 drink more coffee before
183 doing release engineering
185 - whoops, forgot to do the smolder tests,
186 and we broke some of the custom meta-attr
187 modules. This fixes that.
189 0.42 Mon. April 28, 2008
190 - some bad tests slipped by, nothing else
191 changed in this release (cpantesters++)
193 - upped the Class::MOP dependency to 0.55
194 since we have tests which need the C3
197 0.41 Mon. April 28, 2008
198 ~~ numerous documentation updates ~~
200 - Changed all usage of die to Carp::croak for better
201 error reporting (initial patch by Tod Hagan)
204 - the make_immutable keyword is now deprecated, don't
205 use it in any new code and please fix your old code
206 as well. There will be 2 releases, and then it will
212 - refactored the way inner and super work to avoid
213 any method/@ISA cache penalty (nothingmuch)
216 - fixing &new_object to make sure trigger gets the
217 coerced value (spotted by Charles Alderman on the
219 - added test for this
221 * Moose::Meta::Method::Constructor
222 - immutable classes which had non-lazy attributes were calling
223 the default generating sub twice in the constructor. (bug
224 found by Jesse Luehrs, fixed by Dave Rolsky)
225 - added tests for this (Dave Rolsky)
226 - fix typo in initialize_body method (nothingmuch)
228 * Moose::Meta::Method::Destructor
229 - fix typo in initialize_body method (nothingmuch)
231 * Moose::Meta::Method::Overriden
232 Moose::Meta::Method::Augmented
233 - moved the logic for these into their own
234 classes (nothingmuch)
236 * Moose::Meta::Attribute
237 - inherited attributes may now be extended without
238 restriction on the type ('isa', 'does') (Sartak)
239 - added tests for this (Sartak)
240 - when an attribute property is malformed (such as lazy without
241 a default), give the name of the attribute in the error
243 - added the &applied_traits and &has_applied_traits methods
244 to allow introspection of traits
245 - added tests for this
246 - moved 'trait' and 'metaclass' argument handling to here from
248 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
249 '+foo' syntax) (nothingmuch)
250 - added tests for this (t0m)
253 - localize $@ inside DEMOLISHALL to avoid it
254 eating $@ (found by Ernesto)
255 - added test for this (thanks to Ernesto)
257 * Moose::Util::TypeConstraints
258 - &find_type_constraint now DWIMs when given an
259 type constraint object or name (nothingmuch)
260 - &find_or_create_type_constraint superseded with a number of more
262 - find_or_create_{isa,does}_type_constraint
263 - find_or_parse_type_constraint
265 * Moose::Meta::TypeConstraint
266 Moose::Meta::TypeConstraint::Class
267 Moose::Meta::TypeConstraint::Role
268 Moose::Meta::TypeConstraint::Enum
269 Moose::Meta::TypeConstraint::Union
270 Moose::Meta::TypeConstraint::Parameterized
271 - added the &equals method for comparing two type
272 constraints (nothingmuch)
273 - added tests for this (nothingmuch)
275 * Moose::Meta::TypeConstraint
276 - add the &parents method, which is just an alias to &parent.
277 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
279 * Moose::Meta::TypeConstraint::Class
280 - added the class attribute for introspection purposes
282 - added tests for this
284 * Moose::Meta::TypeConstraint::Enum
285 Moose::Meta::TypeConstraint::Role
286 - broke these out into their own classes (nothingmuch)
288 * Moose::Cookbook::Recipe*
289 - fixed references to test file locations in the POD
290 and updated up some text for new Moose features
294 - Added &resolve_metaclass_alias, a helper function for finding an actual
295 class for a short name (e.g. in the traits list)
297 0.40 Fri. March 14, 2008
298 - I hate Pod::Coverage
300 0.39 Fri. March 14, 2008
302 - documenting the use of '+name' with attributes
303 that come from recently composed roles. It makes
304 sense, people are using it, and so why not just
305 officially support it.
306 - fixing the 'extends' keyword so that it will not
307 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
310 - added the perl -Moose=+Class::Name feature to allow
311 monkeypatching of classes in one liners
314 - fixing the 'apply_all_roles' keyword so that it will not
315 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
318 - added ->create method which now supports roles (thanks to jrockway)
319 - added tests for this
320 - added ->create_anon_class which now supports roles and caching of
321 the results (thanks to jrockway)
322 - added tests for this
323 - made ->does_role a little more forgiving when it is
324 checking a Class::MOP era metaclasses.
326 * Moose::Meta::Role::Application::ToInstance
327 - it is now possible to pass extra params to be used when
328 a role is applied to an the instance (rebless_params)
329 - added tests for this
331 * Moose::Util::TypeConstraints
332 - class_type now accepts an optional second argument for a
333 custom message. POD anotated accordingly (groditi)
334 - added tests for this
335 - it is now possible to make anon-enums by passing 'enum' an
336 ARRAY ref instead of the $name => @values. Everything else
338 - added tests for this
341 - making test for using '+name' on attributes consumed
342 from a role, it works and makes sense too.
344 * Moose::Meta::Attribute
345 - fix handles so that it doesn't return nothing
346 when the method cannot be found, not sure why
347 it ever did this originally, this means we now
348 have slightly better support for AUTOLOADed
350 - added more delegation tests
351 - adding ->does method to this so as to better
352 support traits and their introspection.
353 - added tests for this
356 - localizing the Data::Dumper configurations so
357 that it does not pollute others (RT #33509)
358 - made ->does a little more forgiving when it is
359 passed Class::MOP era metaclasses.
361 0.38 Fri. Feb. 15, 2008
362 * Moose::Meta::Attribute
363 - fixed initializer to correctly do
364 type checking and coercion in the
366 - added tests for this
369 - fixed some finicky tests (thanks to konobi)
371 0.37 Thurs. Feb. 14, 2008
373 - fixed some details in Moose::init_meta
374 and its superclass handling (thanks thepler)
375 - added tests for this (thanks thepler)
376 - 'has' now dies if you don't pass in name
378 - added the 'make_immutable' keyword as a shortcut
382 Moose::Meta::Method::Constructor
383 Moose::Meta::Attribute
384 - making (init_arg => undef) work here too
385 (thanks to nothingmuch)
387 * Moose::Meta::Attribute
388 Moose::Meta::Method::Constructor
389 Moose::Meta::Method::Accessor
390 - make lazy attributes respect attr initializers (rjbs)
391 - added tests for this
393 * Moose::Util::TypeConstraints
394 Moose::Util::TypeConstraints::OptimizedConstraints
395 Moose::Meta::TypeConstraints
396 Moose::Meta::Attribute
397 Moose::Meta::Method::Constructor
398 Moose::Meta::Method::Accessor
399 - making type errors use the
400 assigned message (thanks to Sartak)
401 - added tests for this
403 * Moose::Meta::Method::Destructor
404 - making sure DESTROY gets inlined properly
405 with successive DEMOLISH calls (thanks to manito)
407 * Moose::Meta::Attribute
408 Moose::Meta::Method::Accessor
409 - fixed handling of undef with type constraints
411 - added tests for this
414 - added &get_all_init_args and &get_all_attribute_values
415 (thanks to Sartak and nothingmuch)
417 0.36 Sat. Jan. 26, 2008
419 Moose::Meta::Attribute
420 - role type tests now support when roles are
421 applied to non-Moose classes (found by ash)
422 - added tests for this (thanks to ash)
423 - couple extra tests to boost code coverage
425 * Moose::Meta::Method::Constructor
426 - improved fix for handling Class::MOP attributes
427 - added test for this
430 - handled the add_attribute($attribute_meta_object)
432 - added test for this
434 0.35 Tues. Jan. 22, 2008
435 * Moose::Meta::Method::Constructor
436 - fix to make sure even Class::MOP attributes
437 are handled correctly (Thanks to Dave Rolsky)
438 - added test for this (also Dave Rolsky)
441 - improved error message on _apply_all_roles,
442 you should now use Moose::Util::apply_all_roles
443 and you shouldnt have been using a _ prefixed
444 method in the first place ;)
446 0.34 Mon. Jan. 21, 2008
447 ~~~ more misc. doc. fixes ~~~
448 ~~ updated copyright dates ~~
450 Moose is now a postmodern object system :)
451 - (see the POD for details)
453 * <<Role System Refactoring>>
454 - this release contains a major reworking and
455 cleanup of the role system
456 - 100% backwards compat.
457 - Role application now restructured into seperate
458 classes based on type of applicants
459 - Role summation (combining of more than one role)
460 is much cleaner and anon-classes are no longer
462 - new Composite role metaclass
463 - runtime application of roles to instances
464 is now more efficient and re-uses generated
465 classes when applicable
467 * <<New Role composition features>>
468 - methods can now be excluded from a given role
470 - methods can now be aliased to another name (and
471 still retain the original as well)
473 * Moose::Util::TypeConstraints::OptimizedConstraints
474 - added this module (see above)
477 - fixed the &_process_attribute method to be called
478 by &add_attribute, so that the API is now correct
480 * Moose::Meta::Method::Accessor
481 - fixed bug when passing a list of values to
482 an accessor would get (incorrectly) ignored.
483 Thanks to Sartak for finding this ;)
484 - added tests for this (Sartak again)
486 * Moose::Meta::Method::Accessor
487 Moose::Meta::Method::Constructor
488 Moose::Meta::Attribute
489 Moose::Meta::TypeConstraint
490 Moose::Meta::TypeCoercion
491 - lots of cleanup of such things as:
493 - type constraint handling
494 - error handling/messages
495 (thanks to nothingmuch)
497 * Moose::Meta::TypeConstraint::Parameterizable
498 - added this module to support the refactor
499 in Moose::Meta::TypeConstraint::Parameterized
501 * Moose::Meta::TypeConstraint::Parameterized
502 - refactored how these types are handled so they
503 are more generic and not confined to ArrayRef
507 - shortened some file names for better VMS support (RT #32381)
509 0.33 Fri. Dec. 14, 2007
510 !! Moose now loads 2 x faster !!
511 !! with new Class::MOP 0.49 !!
513 ++ new oose.pm module to make command line
514 Moose-ness easier (see POD docs for more)
518 - several tweaks to take advantage of the
519 new method map caching in Class::MOP
521 * Moose::Meta::TypeConstraint::Parameterized
522 - allow subtypes of ArrayRef and HashRef to
523 be used as a container (sartak)
524 - added tests for this
525 - basic support for coercion to ArrayRef and
526 HashRef for containers (sartak)
527 - added tests for this
529 * Moose::Meta::TypeCoercion
530 - coercions will now create subtypes as needed
531 so you can now add coercions to parameterized
532 types without having to explictly define them
533 - added tests for this
535 * Moose::Meta::Method::Accessor
536 - allow subclasses to decide whether we need
537 to copy the value into a new variable (sartak)
539 0.32 Tues. Dec. 4, 2007
540 * Moose::Util::TypeConstraints
541 - fixing how subtype aliases of unions work
542 they should inherit the parent's coercion
543 - added tests for this
544 - you can now define multiple coercions on
545 a single type at different times instead of
546 having to do it all in one place
547 - added tests for this
549 * Moose::Meta::TypeConstraint
550 - there is now a default constraint of sub { 1 }
551 instead of Moose::Util::TypeConstraints setting
554 * Moose::Meta::TypeCoercion
555 * Moose::Meta::TypeCoercion::Union
556 - added the &has_coercion_for_type and
557 &add_type_coercions methods to support the
558 new features above (although you cannot add
559 more type coercions for Union types)
561 0.31 Mon. Nov. 26, 2007
562 * Moose::Meta::Attribute
563 - made the +attr syntax handle extending types with
564 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
565 now works if the original foo is an ArrayRef.
566 - added tests for this.
567 - delegation now works even if the attribute does not
568 have a reader method using the get_read_method_ref
569 method from Class::MOP::Attribute.
570 - added tests for this
571 - added docs for this
573 * Moose::Util::TypeConstraints
574 - passing no "additional attribute info" to
575 &find_or_create_type_constraint will no longer
576 attempt to create an __ANON__ type for you,
577 instead it will just return undef.
578 - added docs for this
580 0.30 Fri. Nov. 23, 2007
581 * Moose::Meta::Method::Constructor
582 -builder related bug in inlined constructor. (groditi)
584 * Moose::Meta::Method::Accessor
585 - genereate unnecessary calls to predicates and refactor
586 code generation for runtime speed (groditi)
588 * Moose::Util::TypeConstraints
589 - fix ClassName constraint to introspect symbol table (mst)
590 - added more tests for this (mst)
591 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
593 - added tests for this
596 - adding the link to Recipie 11 (written by Sartak)
597 - adding test for SYNOPSIS code
600 - New tests for builder bug. Upon instantiation, if an
601 attribute had a builder, no value and was not lazy the
602 builder default was not getting run, oops. (groditi)
604 0.29 Tues. Nov. 13, 2007
605 * Moose::Meta::Attribute
606 - Fix error message on missing builder method (groditi)
608 * Moose::Meta::Method::Accessor
609 - Fix error message on missing builder method (groditi)
612 - Add test to check for the correct error message when
613 builder method is missing (groditi)
615 0.28 Tues. Nov. 13, 2007
616 - 0.27 packaged incorrectly (groditi)
618 0.27 Tues. Nov. 13, 2007
619 * Moose::Meta::Attribute
620 - Added support for the new builder option (groditi)
621 - Added support for lazy_build option (groditi)
622 - Changed slot initialization for predicate changes (groditi)
624 * Moose::Meta::Method::Accessor
625 - Added support for lazy_build option (groditi)
626 - Fix inline methods to work with corrected predicate
629 * Moose::Meta::Method::Constructor
630 - Added support for lazy_build option (groditi)
633 - tests for builder and lazy_build (groditi)
635 * fixing some misc. bits in the docs that
636 got mentioned on CPAN Forum & perlmonks
639 - fixed how required methods are handled
640 when they encounter overriden or modified
641 methods from a class (thanks to confound).
642 - added tests for this
644 * Moose::Util::TypeConstraint
645 - fixed the type notation parser so that
646 the | always creates a union and so is
647 no longer a valid type char (thanks to
648 konobi, mugwump and #moose for working
650 - added more tests for this
652 0.26 Thurs. Sept. 27, 2007
655 * Parameterized Types
656 We now support parameterized collection types, such as:
657 ArrayRef[Int] # array or integers
658 HashRef[Object] # a hash with object values
659 They can also be nested:
660 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
661 And work with the type unions as well:
662 ArrayRef[Int | Str] # array of integers of strings
664 * Better Framework Extendability
665 Moose.pm is now "extendable" such that it is now much
666 easier to extend the framework and add your own keywords
667 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
668 section of the Moose.pm docs.
671 In an effort to begin documenting some of the various
672 details of Moose as well as some common idioms, we have
673 created Moose::Cookbook::Snacks as a place to find
674 small (easily digestable) nuggets of Moose code.
677 ~ Several doc updates/cleanup thanks to castaway ~
679 - converted build system to use Module::Install instead of
680 Module::Build (thanks to jrockway)
683 - added all the meta classes to the immutable list and
684 set it to inline the accessors
685 - fix import to allow Sub::Exporter like { into => }
686 and { into_level => } (perigrin)
687 - exposed and documented init_meta() to allow better
688 embedding and extending of Moose (perigrin)
691 - complete re-organization of the test suite
692 - added some new tests as well
693 - finally re-enabled the Moose::POOP test since
694 the new version of DBM::Deep now works again
698 - fixed very odd and very nasty recursion bug with
700 - added tests for this (eilara)
702 * Moose::Meta::Attribute
703 Moose::Meta::Method::Constructor
704 Moose::Meta::Method::Accessor
705 - fixed issue with overload::Overloaded getting called
706 on non-blessed items. (RT #29269)
707 - added tests for this
709 * Moose::Meta::Method::Accessor
710 - fixed issue with generated accessor code making
711 assumptions about hash based classes (thanks to dexter)
713 * Moose::Coookbook::Snacks
714 - these are bits of documentation, not quite as big as
715 Recipes but which have no clear place in the module docs.
716 So they are Snacks! (horray for castaway++)
718 * Moose::Cookbook::Recipe4
719 - updated it to use the new ArrayRef[MyType] construct
720 - updated the accompanying test as well
722 +++ Major Refactor of the Type Constraint system +++
723 +++ with new features added as well +++
725 * Moose::Util::TypeConstraint
726 - no longer uses package variable to keep track of
727 the type constraints, now uses the an instance of
728 Moose::Meta::TypeConstraint::Registry to do it
729 - added more sophisticated type notation parsing
731 - added tests for this
733 * Moose::Meta::TypeConstraint
734 - some minor adjustments to make subclassing easier
735 - added the package_defined_in attribute so that we
736 can track where the type constraints are created
738 * Moose::Meta::TypeConstraint::Union
739 - this is now been refactored to be a subclass of
740 Moose::Meta::TypeConstraint
742 * Moose::Meta::TypeCoercion::Union
743 - this has been added to service the newly refactored
744 Moose::Meta::TypeConstraint::Union and is itself
745 a subclass of Moose::Meta::TypeCoercion
747 * Moose::Meta::TypeConstraint::Parameterized
748 - added this module (taken from MooseX::AttributeHelpers)
749 to help construct nested collection types
750 - added tests for this
752 * Moose::Meta::TypeConstraint::Registry
753 - added this class to keep track of type constraints
755 0.25 Mon. Aug. 13, 2007
757 - Documentation update to reference Moose::Util::TypeConstraints
758 under 'isa' in 'has' for how to define a new type
761 * Moose::Meta::Attribute
762 - required attributes now will no longer accept undef
763 from the constructor, even if there is a default and lazy
764 - added tests for this
765 - default subroutines must return a value which passes the
767 - added tests for this
769 * Moose::Meta::Attribute
770 * Moose::Meta::Method::Constructor
771 * Moose::Meta::Method::Accessor
772 - type-constraint tests now handle overloaded objects correctly
774 - added tests for this (thanks to EvanCarroll)
776 * Moose::Meta::TypeConstraint::Union
777 - added (has_)hand_optimized_constraint to this class so that
778 it behaves as the regular Moose::Meta::TypeConstraint does.
781 - large refactoring of this code
782 - added several more tests
783 - tests for subtle conflict resolition issues
784 added, but not currently running
787 * Moose::Cookbook::Recipe7
788 - added new recipe for augment/inner functionality
790 - added test for this
793 - a formal definition of roles (still in progress)
796 - utilities for easier working with Moose classes
797 - added tests for these
800 - This contains Moose specific test functions
801 - added tests for these
803 0.24 Tues. July 3, 2007
804 ~ Some doc updates/cleanup ~
806 * Moose::Meta::Attribute
807 - added support for roles to be given as parameters
808 to the 'handles' option.
809 - added tests and docs for this
810 - the has '+foo' attribute form now accepts changes to
811 the lazy option, and the addition of a handles option
812 (but not changing the handles option)
813 - added tests and docs for this
816 - required methods are now fetched using find_method_by_name
817 so that required methods can come from superclasses
818 - adjusted tests for this
820 0.23 Mon. June 18, 2007
821 * Moose::Meta::Method::Constructor
822 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
824 - Modify make_immutable to work with the new Class::MOP immutable
825 mechanism + POD + very basic test (groditi)
826 * Moose::Meta::Attribute
827 - Fix handles to use goto() so that caller() comes out properly on
828 the other side (perigrin)
830 0.22 Thurs. May 31, 2007
831 * Moose::Util::TypeConstraints
832 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
833 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
834 prototypes for functions
835 - added the ClassName type constraint, this checks for strings
836 which will respond true to ->isa(UNIVERSAL).
837 - added tests and docs for this
838 - subtyping just in name now works correctly by making the
839 default for where be { 1 }
840 - added test for this
842 * Moose::Meta::Method::Accessor
843 - coerce and lazy now work together correctly, thanks to
844 merlyn for finding this bug
845 - tests added for this
846 - fix reader presedence bug in Moose::Meta::Attribute + tests
849 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
850 a HASH-ref and missed. This produces better error messages then
851 having it die cause undef is not a HASH.
852 - added tests for this
854 0.21 Thursday, May 2nd, 2007
856 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
857 - modified unimport to remove super and inner along with the rest
858 - altered unimport tests to handle this
861 - altered super export to populate SUPER_SLOT
864 - altered augment and override modifier application to use *_SLOT
865 - modified tests for these to unimport one test class each to test
868 - fixed issue where custom attribute metaclasses
869 where not handled correctly in roles
870 - added tests for this
873 - fixed issue where extending metaclasses with
874 roles would blow up. Thanks to Aankhen`` for
875 finding this insidious error, and it's solution.
877 ~~ lots of spelling and grammer fixes in the docs,
878 many many thanks to rlb3 and Aankhen for these :)
880 0.20 Friday, April 6th, 2007
881 >> I messed up the SKIP logic in one test
882 so this release is just to fix that.
885 - 'has' now also accepts an ARRAY ref
886 to create multiple attrs (see docs)
887 (thanks to konobi for this)
888 - added tests and docs
890 0.19 Thurs. April 5th, 2007
891 ~~ More documentation updates ~~
893 * Moose::Util::TypeConstraints
894 - 'type' now supports messages as well
895 thanks to phaylon for finding this
896 - added tests for this
897 - added &list_all_type_constraints and
898 &list_all_builtin_type_constraints
899 functions to facilitate introspection.
901 * Moose::Meta::Attribute
902 - fixed regexp 'handles' declarations
903 to build the list of delegated methods
904 correctly (and not override important
905 things like &new) thanks to ashleyb
907 - added tests and docs for this
908 - added the 'documentation' attributes
909 so that you can actually document your
910 attributes and inspect them through the
912 - added tests and docs for this
915 - when loading custom attribute metaclasses
916 it will first look in for the class in the
917 Moose::Meta::Attribute::Custom::$name, and
918 then default to just loading $name.
919 - added tests and docs for this
921 * Moose::Meta::TypeConstraint
922 - type constraints now stringify to their names.
923 - added test for this
926 - added tests to assure we work with Module::Refresh
927 - added stricter test skip logic in the Moose POOP
928 test, ask Rob Kinyon why.
929 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
931 0.18 Sat. March 10, 2007
932 ~~ Many, many documentation updates ~~
935 - We now use Class::MOP::load_class to
937 - added tests to show types and subtypes
938 working with Declare::Constraints::Simple
939 and Test::Deep as constraint engines.
942 !! You must have Class::MOP 0.37_001 !!
943 !! for this developer release to work !!
945 This release was primarily adding the immutable
946 feature to Moose. An immutable class is one which
947 you promise not to alter. When you set the class
948 as immutable it will perform various bits of
949 memoization and inline certain part of the code
950 (constructors, destructors and accessors). This
951 minimizes (and in some cases totally eliminates)
952 one of Moose's biggest performance hits. This
953 feature is not on by default, and is 100% optional.
954 It has several configurable bits as well, so you
955 can pick and choose to your specific needs.
957 The changes involved in this were fairly wide and
958 highly specific, but 100% backwards compatible, so
959 I am not going to enumerate them here. If you are
960 truely interested in what was changed, please do
963 0.17 Tues. Nov. 14, 2006
964 * Moose::Meta::Method::Accessor
965 - bugfix for read-only accessors which
966 are have a type constraint and lazy.
967 Thanks to chansen for finding it.
969 0.16 Tues. Nov. 14, 2006
971 There are some speed improvements in this release,
972 but they are only the begining, so stay tuned.
975 - BUILDALL and DEMOLISHALL no longer get
976 called unless they actually need to be.
977 This gave us a signifigant speed boost
978 for the cases when there is no BUILD or
979 DEMOLISH method present.
981 * Moose::Util::TypeConstraints
982 * Moose::Meta::TypeConstraint
983 - added an 'optimize_as' option to the
984 type constraint, which allows for a
985 hand optimized version of the type
986 constraint to be used when possible.
987 - Any internally created type constraints
988 now provide an optimized version as well.
990 0.15 Sun. Nov. 5, 2006
992 This version of Moose *must* have Class::MOP 0.36 in order
993 to work correctly. A number of small internal tweaks have
994 been made in order to be compatible with that release.
996 * Moose::Util::TypeConstraints
997 - added &unimport so that you can clean out
998 your class namespace of these exported
1001 * Moose::Meta::Class
1002 - fixed minor issue which occasionally
1003 comes up during global destruction
1005 - moved Moose::Meta::Method::Overriden into
1009 - moved Moose::Meta::Role::Method into
1012 * Moose::Meta::Attribute
1013 - changed how we do type checks so that
1014 we reduce the overall cost, but still
1017 - moved accessor generation methods to
1018 Moose::Meta::Method::Accessor to
1019 conform to the API changes from
1022 * Moose::Meta::TypeConstraint
1023 - changed how constraints are compiled
1024 so that we do less recursion and more
1025 iteration. This makes the type check
1027 - moved Moose::Meta::TypeConstraint::Union
1030 * Moose::Meta::Method::Accessor
1031 - created this from methods formerly found in
1032 Moose::Meta::Attribute
1034 * Moose::Meta::Role::Method
1035 - moved this from Moose::Meta::Role
1037 * Moose::Meta::Method::Overriden
1038 - moved this from Moose::Meta::Class
1040 * Moose::Meta::TypeConstraint::Union
1041 - moved this from Moose::Meta::TypeConstraint
1043 0.14 Mon. Oct. 9, 2006
1045 * Moose::Meta::Attribute
1046 - fixed lazy attributes which were not getting
1047 checked with the type constraint (thanks ashley)
1048 - added tests for this
1049 - removed the over-enthusiastic DWIMery of the
1050 automatic ArrayRef and HashRef defaults, it
1051 broke predicates in an ugly way.
1052 - removed tests for this
1054 0.13 Sat. Sept. 30, 2006
1056 This version of Moose *must* have Class::MOP 0.35 in order
1057 to work correctly. A number of small internal tweaks have
1058 been made in order to be compatible with that release.
1061 - Removed the use of UNIVERSAL::require to be a better
1062 symbol table citizen and remove a dependency
1063 (thanks Adam Kennedy)
1065 **~~ removed experimental & undocumented feature ~~**
1066 - commented out the 'method' and 'self' keywords, see the
1067 comments for more info.
1070 - added a FAQ and WTF files to document frequently
1071 asked questions and common problems
1073 * Moose::Util::TypeConstraints
1074 - added GlobRef and FileHandle type constraint
1075 - added tests for this
1077 * Moose::Meta::Attribute
1078 - if your attribute 'isa' ArrayRef of HashRef, and you have
1079 not explicitly set a default, then make the default DWIM.
1080 This will also work for subtypes of ArrayRef and HashRef
1082 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1083 - new test added for this (thanks to ashley)
1086 - added basic support for runtime role composition
1087 but this is still *highly experimental*, so feedback
1088 is much appreciated :)
1089 - added tests for this
1091 * Moose::Meta::TypeConstraint
1092 - the type constraint now handles the coercion process
1093 through delegation, this is to support the coercion
1096 * Moose::Meta::TypeConstraint::Union
1097 - it is now possible for coercions to be performed
1099 - added tests for this (thanks to konobi)
1101 * Moose::Meta::TypeCoercion
1102 - properly capturing error when type constraint
1106 - Scalar::Util 1.18 is bad on Win32, so temporarily
1107 only require version 1.17 for Win32 and cygwin.
1108 (thanks Adam Kennedy)
1110 0.12 Sat. Sept. 1, 2006
1112 - Recipe5 (subtypes & coercion) has been written
1115 - fixed "bad meta" error message to be more descriptive
1116 - fixed &unimport to not remove the &inner and &super
1117 keywords because we need to localize them.
1118 - fixed number of spelling/grammer issues, thanks Theory :)
1120 **~~ experimental & undocumented feature ~~**
1121 - added the method and self keywords, they are basically
1122 just sugar, and they may not stay around.
1125 - added &dump method to easily Data::Dumper
1128 * Moose::Meta::TypeConstraint
1129 - added the &is_a_type_of method to check both the current
1130 and the subtype of a method (similar to &isa with classes)
1133 - this is now a subclass of Class::MOP::Module, and no longer
1134 creates the _role_meta ugliness of before.
1135 - fixed tests to reflect this change
1137 0.11 Wed. July 12, 2006
1139 - added an &unimport method to remove all the keywords
1140 that Moose will import, simply add 'no Moose' to the
1141 bottom of your class file.
1144 - fixed some test failures caused by a forgotten test
1147 0.10 Thurs. July 6, 2006
1149 - improved error message when loading modules so
1150 it is less confusing when you load a role.
1151 - added &calculate_all_roles method to
1152 Moose::Meta::Class and Moose::Meta::Role
1155 This module has been tested against Class::MOP 0.30
1156 but it does not yet utilize the optimizations
1157 it makes available. Stay tuned for that ;)
1159 0.09_03 Fri. June 23, 2006
1160 ++ DEVELOPER RELEASE ++
1162 - 'use strict' and 'use warnings' are no longer
1163 needed in Moose classes, Moose itself will
1164 turn them on for you.
1165 - added tests for this
1166 - moved code from exported subs to private methods
1167 in Moose::Meta::Class
1170 - as with Moose, strict and warnings are
1171 automatically turned on for you.
1172 - added tests for this
1175 - now handles an edge case for override errors
1176 - added tests for this
1177 - added some more edge case tests
1179 0.09_02 Tues. May 16, 2006
1180 ++ DEVELOPER RELEASE ++
1182 - added prototypes to the exported subs
1186 - added prototypes to the exported subs
1189 * Moose::Util::TypeConstraints
1190 - cleaned up prototypes for the subs
1193 0.09_01 Fri. May 12, 2006
1194 ++ DEVELOPER RELEASE ++
1195 - This release works in combination with
1196 Class::MOP 0.29_01, it is a developer
1197 release because it uses the a new
1198 instance sub-protocol and a fairly
1199 complete Role implementation. It has
1200 not yet been optimized, so it slower
1201 the the previous CPAN version. This
1202 release also lacks good updated docs,
1203 the official release will have updated docs.
1206 - refactored the keyword exports
1207 - 'with' now checks Role validaity and
1208 accepts more than one Role at a time
1209 - 'extends' makes metaclass adjustments as
1210 needed to ensure metaclass compatability
1213 - refactored the keyword exports
1214 - 'with' now checks Role validaity and
1215 accepts more than one Role at a time
1217 * Moose::Util::TypeConstraints
1218 - added the 'enum' keyword for simple
1219 string enumerations which can be used as
1221 - see example of usage in t/202_example.t
1224 - more careful checking of params to new()
1227 - much work done on the role composition
1228 - many new tests for conflict detection
1229 and composition edge cases
1230 - not enough documentation, I suggest
1231 looking at the tests
1233 * Moose::Meta::Instance
1234 - added new Instance metaclass to support
1235 the new Class::MOP instance protocol
1237 * Moose::Meta::Class
1238 - some small changes to support the new
1240 - some small additions to support Roles
1242 * Moose::Meta::Attribute
1243 - some improvements to the accessor generation code
1245 - some small changes to support the new
1247 - (still somewhat) experimental delegation support
1248 with the 'handles' option
1249 - added several tests for this
1250 - no docs for this yet
1252 0.05 Thurs. April 27, 2006
1254 - keywords are now exported with Sub::Exporter
1255 thanks to chansen for this commit
1256 - has keyword now takes a 'metaclass' option
1257 to support custom attribute meta-classes
1258 on a per-attribute basis
1259 - added tests for this
1260 - the 'has' keyword not accepts inherited slot
1261 specifications (has '+foo'). This is still an
1262 experimental feature and probably not finished
1263 see t/038_attribute_inherited_slot_specs.t for
1264 more details, or ask about it on #moose
1265 - added tests for this
1268 - keywords are now exported with Sub::Exporter
1270 * Moose::Utils::TypeConstraints
1271 - reorganized the type constraint hierarchy, thanks
1272 to nothingmuch and chansen for his help and advice
1274 - added some tests for this
1275 - keywords are now exported with Sub::Exporter
1276 thanks to chansen for this commit
1278 * Moose::Meta::Class
1279 - due to changes in Class::MOP, we had to change
1280 construct_instance (for the better)
1282 * Moose::Meta::Attribute
1283 - due to changes in Class::MOP, we had to add the
1284 initialize_instance_slot method (it's a good thing)
1286 * Moose::Meta::TypeConstraint
1287 - added type constraint unions
1288 - added tests for this
1289 - added the is_subtype_of predicate method
1290 - added tests for this
1292 0.04 Sun. April 16th, 2006
1294 - Roles can now consume other roles
1295 - added tests for this
1296 - Roles can specify required methods now with
1297 the requires() keyword
1298 - added tests for this
1301 - ripped out much of it's guts ,.. much cleaner now
1302 - added required methods and correct handling of
1303 them in apply() for both classes and roles
1304 - added tests for this
1305 - no longer adds a does() method to consuming classes
1306 it relys on the one in Moose::Object
1307 - added roles attribute and some methods to support
1308 roles consuming roles
1310 * Moose::Meta::Attribute
1311 - added support for triggers on attributes
1312 - added tests for this
1313 - added support for does option on an attribute
1314 - added tests for this
1316 * Moose::Meta::Class
1317 - added support for attribute triggers in the
1319 - added tests for this
1322 - Moose no longer creates a subtype for your class
1323 if a subtype of the same name already exists, this
1324 should DWIM in 99.9999% of all cases
1326 * Moose::Util::TypeConstraints
1327 - fixed bug where incorrect subtype conflicts were
1329 - added test for this
1332 - this class can now be extended with 'use base' if
1333 you need it, it properly loads the metaclass class now
1334 - added test for this
1336 0.03_02 Wed. April 12, 2006
1338 - you must now explictly use Moose::Util::TypeConstraints
1339 it no longer gets exported for you automatically
1342 - new() now accepts hash-refs as well as key/value lists
1343 - added does() method to check for Roles
1344 - added tests for this
1346 * Moose::Meta::Class
1347 - added roles attribute along with the add_role() and
1349 - added tests for this
1352 - now adds a does() method to consuming classes
1353 which tests the class's hierarchy for roles
1354 - added tests for this
1356 0.03_01 Mon. April 10, 2006
1358 - added new Role recipe (no content yet, only code)
1361 - added 'with' keyword for Role support
1362 - added test and docs for this
1363 - fixed subtype quoting bug
1364 - added test for this
1368 - added test and docs
1370 * Moose::Util::TypeConstraints
1371 - added the message keyword to add custom
1372 error messages to type constraints
1375 - the meta role to support Moose::Role
1376 - added tests and docs
1378 * Moose::Meta::Class
1379 - moved a number of things from Moose.pm
1380 to here, they should have been here
1383 * Moose::Meta::Attribute
1384 - moved the attribute option macros here
1385 instead of putting them in Moose.pm
1387 * Moose::Meta::TypeConstraint
1388 - added the message attributes and the
1390 - added tests and docs for this
1392 0.03 Thurs. March 30, 2006
1394 - added the Moose::Cookbook with 5 recipes,
1395 describing all the stuff Moose can do.
1398 - fixed an issue with &extends super class loading
1399 it now captures errors and deals with inline
1400 packages correctly (bug found by mst, solution
1402 - added super/override & inner/augment features
1403 - added tests and docs for these
1406 - BUILDALL now takes a reference of the %params
1407 that are passed to &new, and passes that to
1410 * Moose::Util::TypeConstraints
1411 - Type constraints now survive runtime reloading
1412 - added test for this
1414 * Moose::Meta::Class
1415 - fixed the way attribute defaults are handled
1416 during instance construction (bug found by chansen)
1418 * Moose::Meta::Attribute
1419 - read-only attributes now actually enforce their
1420 read-only-ness (this corrected in Class::MOP as
1423 0.02 Tues. March 21, 2006
1425 - many more tests, fixing some bugs and
1427 - &extends now loads the base module with
1429 - added UNIVERSAL::require to the
1432 - each new Moose class will also create
1433 and register a subtype of Object which
1434 correspond to the new Moose class.
1435 - the 'isa' option in &has now only
1436 accepts strings, and will DWIM in
1439 * Moose::Util::TypeConstraints
1440 - added type coercion features
1441 - added tests for this
1442 - added support for this in attributes
1443 and instance construction
1445 - type construction no longer creates a
1446 function, it registers the type instead.
1447 - added several functions to get the
1451 - BUILDALL and DEMOLISHALL were broken
1452 because of a mis-named hash key, Whoops :)
1454 * Moose::Meta::Attribute
1455 - adding support for coercion in the
1456 autogenerated accessors
1458 * Moose::Meta::Class
1459 - adding support for coercion in the
1460 instance construction
1462 * Moose::Meta::TypeConstraint
1463 * Moose::Meta::TypeCoercion
1464 - type constraints and coercions are now
1465 full fledges meta-objects
1467 0.01 Wed. March 15, 2006
1468 - Moooooooooooooooooose!!!