1 Revision history for Perl extension Moose
5 - add unimport so "no Moose::Role" actually does
8 * Moose::Meta::Role::Application::ToRole
9 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
10 order to provide its own implementation, that method still got
11 added to the list of required methods for consumers of
12 RoleB. Now an aliased method is only added to the list of
13 required methods if the role doing the aliasing does not
14 provide its own implementation. See Recipe 11 for an example
15 of all this. (Dave Rolsky)
16 - added tests for this
18 * Moose::Meta::Method::Constructor
19 - when a single argument that wasn't a hashref was provided to
20 an immutabilized constructor, the error message was very
21 unhelpful, as opposed to the non-immutable error. Reported by
23 - added test for this (Dave Rolsky)
25 * Moose::Meta::Attribute
26 - added support for meta_attr->does("ShortAlias") (sartak)
27 - added tests for this (sartak)
28 - moved the bulk of the `handles` handling to the new
29 install_delegation method (Stevan)
32 - Added BUILDARGS, a new step in new()
34 * Moose::Meta::Role::Application::RoleSummation
35 - fix typos no one ever sees (sartak)
37 0.50 Thurs. Jun 11, 2008
38 - Fixed a version number issue by bumping all modules
41 0.49 Thurs. Jun 11, 2008
42 !! This version now approx. 20-25% !!
43 !! faster with new Class::MOP 0.59 !!
45 * Moose::Meta::Attribute
46 - fixed how the is => (ro|rw) works with
47 custom defined reader, writer and accessor
49 - added docs for this (TODO).
50 - added tests for this (Thanks to Penfold)
51 - added the custom attribute alias for regular
52 Moose attributes which is "Moose"
53 - fix builder and default both being used
58 Moose::Meta::Attribute
60 Moose::Meta::Role::Composite
61 Moose::Util::TypeConstraints
62 - switched usage of reftype to ref because
66 - changing add_package_symbol to use the new
70 - fixed how DEMOLISHALL is called so that it
71 can be overrided in subclasses (thanks to Sartak)
72 - added test for this (thanks to Sartak)
74 * Moose::Util::TypeConstraints
75 - move the ClassName type check code to
76 Class::MOP::is_class_loaded (thanks to Sartak)
78 * Moose::Cookbook::Recipe11
79 - add tests for this (thanks to tokuhirom)
81 0.48 Thurs. May 29, 2008
82 (early morning release engineering)--
84 - fixing the version in Moose::Meta::Method::Destructor
85 which was causing the indexer to choke
87 0.47 Thurs. May 29, 2008
88 (late night release engineering)--
90 - fixing the version is META.yml, no functional
91 changes in this release
93 0.46 Wed. May 28, 2008
94 !! This version now approx. 20-25% !!
95 !! faster with new Class::MOP 0.57 !!
98 - some optimizations of the &initialize method
99 since it is called so often by &meta
103 - now use the get_all_package_symbols from the
104 updated Class::MOP, test suite is now 10 seconds
107 * Moose::Meta::Method::Destructor
108 - is_needed can now also be called as a class
109 method for immutablization to check if the
110 destructor object even needs to be created
113 * Moose::Meta::Method::Destructor
114 Moose::Meta::Method::Constructor
115 - added more descriptive error message to help
116 keep people from wasting time tracking an error
117 that is easily fixed by upgrading.
119 0.45 Saturday, May 24, 2008
121 - Because of work in Class::MOP 0.56, all
122 XS based functionality is now optional
123 and a Pure Perl version is supplied
124 - the CLASS_MOP_NO_XS environment variable
125 can now be used to force non-XS versions
127 - several of the packages have been tweaked
128 to take care of this, mostly we added
129 support for the package_name and name
130 variables in all the Method metaclasses
131 - before/around/after method modifiers now
132 support regexp matching of names
133 (thanks to Takatoshi Kitano)
134 - tests added for this
135 - NOTE: this only works for classes, it
136 is currently not supported in roles,
137 but, ... patches welcome
138 - All usage of Carp::confess have been replaced
139 by Carp::croak in the "keyword" functions since
140 the stack trace is usually not helpful
143 - All usage of Carp::confess have been replaced
144 by Carp::croak in the "keyword" functions since
145 the stack trace is usually not helpful
146 - The 'has' keyword for roles now accepts the
147 same array ref form that Moose.pm does
148 (has [qw/foo bar/] => (is => 'rw', ...))
149 - added test for this
151 * Moose::Meta::Attribute
152 - trigger on a ro-attribute is no longer an
153 error, as it's useful to trigger off of the
157 - added same 'add_package_symbol' fix as in
161 - does_role now handles non-Moose classes
163 - added tests for this
164 - added the 'add_method_modifier' function
165 (thanks to Takatoshi Kitano)
167 * Moose::Util::TypeConstraints
168 - subtypes of parameterizable types now are
169 themselves parameterizable types
171 * Moose::Meta::Method::Constructor
172 - fixed bug where trigger was not being
173 called by the inlined immutable
175 - added test for this (thanks to Caelum)
177 * Moose::Meta::Role::Application::ToInstance
178 - now uses the metaclass of the instance
179 (if possible) to create the anon-class
180 (thanks Jonathan Rockway)
182 * Moose::Cookbook::Recipe22
183 - added the meta-attribute trait recipe
187 - fixed hash-ordering test bug that was
188 causing occasional cpantester failures
189 - renamed the t/000_recipe/*.t tests to be
190 more descriptive (thanks to Sartak)
192 0.44 Sat. May 10, 2008
194 - made make_immutable warning cluck to
195 show where the error is (thanks mst)
198 - BUILDALL and DEMOLISHALL now call
199 ->body when looping through the
200 methods, to avoid the overloaded
202 - fixed issue where DEMOLISHALL was
203 eating the $@ values, and so not
204 working correctly, it still kind of
205 eats them, but so does vanilla perl
206 - added tests for this
208 * Moose::Cookbook::Recipe7
209 - added new recipe for immutable
210 functionality (thanks Dave Rolsky)
212 * Moose::Cookbook::Recipe9
213 - added new recipe for builder and
214 lazy_build (thanks Dave Rolsky)
216 * Moose::Cookbook::Recipe11
217 - added new recipe for method aliasing
218 and exclusion with Roles (thanks Dave Rolsky)
221 - fixed Win32 test failure (thanks spicyjack)
223 ~ removed Build.PL and Module::Build compat
224 since Module::Install has done that.
226 0.43 Wed. April, 30, 2008
228 drink more coffee before
229 doing release engineering
231 - whoops, forgot to do the smolder tests,
232 and we broke some of the custom meta-attr
233 modules. This fixes that.
235 0.42 Mon. April 28, 2008
236 - some bad tests slipped by, nothing else
237 changed in this release (cpantesters++)
239 - upped the Class::MOP dependency to 0.55
240 since we have tests which need the C3
243 0.41 Mon. April 28, 2008
244 ~~ numerous documentation updates ~~
246 - Changed all usage of die to Carp::croak for better
247 error reporting (initial patch by Tod Hagan)
250 - the make_immutable keyword is now deprecated, don't
251 use it in any new code and please fix your old code
252 as well. There will be 2 releases, and then it will
258 - refactored the way inner and super work to avoid
259 any method/@ISA cache penalty (nothingmuch)
262 - fixing &new_object to make sure trigger gets the
263 coerced value (spotted by Charles Alderman on the
265 - added test for this
267 * Moose::Meta::Method::Constructor
268 - immutable classes which had non-lazy attributes were calling
269 the default generating sub twice in the constructor. (bug
270 found by Jesse Luehrs, fixed by Dave Rolsky)
271 - added tests for this (Dave Rolsky)
272 - fix typo in initialize_body method (nothingmuch)
274 * Moose::Meta::Method::Destructor
275 - fix typo in initialize_body method (nothingmuch)
277 * Moose::Meta::Method::Overriden
278 Moose::Meta::Method::Augmented
279 - moved the logic for these into their own
280 classes (nothingmuch)
282 * Moose::Meta::Attribute
283 - inherited attributes may now be extended without
284 restriction on the type ('isa', 'does') (Sartak)
285 - added tests for this (Sartak)
286 - when an attribute property is malformed (such as lazy without
287 a default), give the name of the attribute in the error
289 - added the &applied_traits and &has_applied_traits methods
290 to allow introspection of traits
291 - added tests for this
292 - moved 'trait' and 'metaclass' argument handling to here from
294 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
295 '+foo' syntax) (nothingmuch)
296 - added tests for this (t0m)
299 - localize $@ inside DEMOLISHALL to avoid it
300 eating $@ (found by Ernesto)
301 - added test for this (thanks to Ernesto)
303 * Moose::Util::TypeConstraints
304 - &find_type_constraint now DWIMs when given an
305 type constraint object or name (nothingmuch)
306 - &find_or_create_type_constraint superseded with a number of more
308 - find_or_create_{isa,does}_type_constraint
309 - find_or_parse_type_constraint
311 * Moose::Meta::TypeConstraint
312 Moose::Meta::TypeConstraint::Class
313 Moose::Meta::TypeConstraint::Role
314 Moose::Meta::TypeConstraint::Enum
315 Moose::Meta::TypeConstraint::Union
316 Moose::Meta::TypeConstraint::Parameterized
317 - added the &equals method for comparing two type
318 constraints (nothingmuch)
319 - added tests for this (nothingmuch)
321 * Moose::Meta::TypeConstraint
322 - add the &parents method, which is just an alias to &parent.
323 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
325 * Moose::Meta::TypeConstraint::Class
326 - added the class attribute for introspection purposes
328 - added tests for this
330 * Moose::Meta::TypeConstraint::Enum
331 Moose::Meta::TypeConstraint::Role
332 - broke these out into their own classes (nothingmuch)
334 * Moose::Cookbook::Recipe*
335 - fixed references to test file locations in the POD
336 and updated up some text for new Moose features
340 - Added &resolve_metaclass_alias, a helper function for finding an actual
341 class for a short name (e.g. in the traits list)
343 0.40 Fri. March 14, 2008
344 - I hate Pod::Coverage
346 0.39 Fri. March 14, 2008
348 - documenting the use of '+name' with attributes
349 that come from recently composed roles. It makes
350 sense, people are using it, and so why not just
351 officially support it.
352 - fixing the 'extends' keyword so that it will not
353 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
356 - added the perl -Moose=+Class::Name feature to allow
357 monkeypatching of classes in one liners
360 - fixing the 'apply_all_roles' keyword so that it will not
361 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
364 - added ->create method which now supports roles (thanks to jrockway)
365 - added tests for this
366 - added ->create_anon_class which now supports roles and caching of
367 the results (thanks to jrockway)
368 - added tests for this
369 - made ->does_role a little more forgiving when it is
370 checking a Class::MOP era metaclasses.
372 * Moose::Meta::Role::Application::ToInstance
373 - it is now possible to pass extra params to be used when
374 a role is applied to an the instance (rebless_params)
375 - added tests for this
377 * Moose::Util::TypeConstraints
378 - class_type now accepts an optional second argument for a
379 custom message. POD anotated accordingly (groditi)
380 - added tests for this
381 - it is now possible to make anon-enums by passing 'enum' an
382 ARRAY ref instead of the $name => @values. Everything else
384 - added tests for this
387 - making test for using '+name' on attributes consumed
388 from a role, it works and makes sense too.
390 * Moose::Meta::Attribute
391 - fix handles so that it doesn't return nothing
392 when the method cannot be found, not sure why
393 it ever did this originally, this means we now
394 have slightly better support for AUTOLOADed
396 - added more delegation tests
397 - adding ->does method to this so as to better
398 support traits and their introspection.
399 - added tests for this
402 - localizing the Data::Dumper configurations so
403 that it does not pollute others (RT #33509)
404 - made ->does a little more forgiving when it is
405 passed Class::MOP era metaclasses.
407 0.38 Fri. Feb. 15, 2008
408 * Moose::Meta::Attribute
409 - fixed initializer to correctly do
410 type checking and coercion in the
412 - added tests for this
415 - fixed some finicky tests (thanks to konobi)
417 0.37 Thurs. Feb. 14, 2008
419 - fixed some details in Moose::init_meta
420 and its superclass handling (thanks thepler)
421 - added tests for this (thanks thepler)
422 - 'has' now dies if you don't pass in name
424 - added the 'make_immutable' keyword as a shortcut
428 Moose::Meta::Method::Constructor
429 Moose::Meta::Attribute
430 - making (init_arg => undef) work here too
431 (thanks to nothingmuch)
433 * Moose::Meta::Attribute
434 Moose::Meta::Method::Constructor
435 Moose::Meta::Method::Accessor
436 - make lazy attributes respect attr initializers (rjbs)
437 - added tests for this
439 * Moose::Util::TypeConstraints
440 Moose::Util::TypeConstraints::OptimizedConstraints
441 Moose::Meta::TypeConstraints
442 Moose::Meta::Attribute
443 Moose::Meta::Method::Constructor
444 Moose::Meta::Method::Accessor
445 - making type errors use the
446 assigned message (thanks to Sartak)
447 - added tests for this
449 * Moose::Meta::Method::Destructor
450 - making sure DESTROY gets inlined properly
451 with successive DEMOLISH calls (thanks to manito)
453 * Moose::Meta::Attribute
454 Moose::Meta::Method::Accessor
455 - fixed handling of undef with type constraints
457 - added tests for this
460 - added &get_all_init_args and &get_all_attribute_values
461 (thanks to Sartak and nothingmuch)
463 0.36 Sat. Jan. 26, 2008
465 Moose::Meta::Attribute
466 - role type tests now support when roles are
467 applied to non-Moose classes (found by ash)
468 - added tests for this (thanks to ash)
469 - couple extra tests to boost code coverage
471 * Moose::Meta::Method::Constructor
472 - improved fix for handling Class::MOP attributes
473 - added test for this
476 - handled the add_attribute($attribute_meta_object)
478 - added test for this
480 0.35 Tues. Jan. 22, 2008
481 * Moose::Meta::Method::Constructor
482 - fix to make sure even Class::MOP attributes
483 are handled correctly (Thanks to Dave Rolsky)
484 - added test for this (also Dave Rolsky)
487 - improved error message on _apply_all_roles,
488 you should now use Moose::Util::apply_all_roles
489 and you shouldnt have been using a _ prefixed
490 method in the first place ;)
492 0.34 Mon. Jan. 21, 2008
493 ~~~ more misc. doc. fixes ~~~
494 ~~ updated copyright dates ~~
496 Moose is now a postmodern object system :)
497 - (see the POD for details)
499 * <<Role System Refactoring>>
500 - this release contains a major reworking and
501 cleanup of the role system
502 - 100% backwards compat.
503 - Role application now restructured into seperate
504 classes based on type of applicants
505 - Role summation (combining of more than one role)
506 is much cleaner and anon-classes are no longer
508 - new Composite role metaclass
509 - runtime application of roles to instances
510 is now more efficient and re-uses generated
511 classes when applicable
513 * <<New Role composition features>>
514 - methods can now be excluded from a given role
516 - methods can now be aliased to another name (and
517 still retain the original as well)
519 * Moose::Util::TypeConstraints::OptimizedConstraints
520 - added this module (see above)
523 - fixed the &_process_attribute method to be called
524 by &add_attribute, so that the API is now correct
526 * Moose::Meta::Method::Accessor
527 - fixed bug when passing a list of values to
528 an accessor would get (incorrectly) ignored.
529 Thanks to Sartak for finding this ;)
530 - added tests for this (Sartak again)
532 * Moose::Meta::Method::Accessor
533 Moose::Meta::Method::Constructor
534 Moose::Meta::Attribute
535 Moose::Meta::TypeConstraint
536 Moose::Meta::TypeCoercion
537 - lots of cleanup of such things as:
539 - type constraint handling
540 - error handling/messages
541 (thanks to nothingmuch)
543 * Moose::Meta::TypeConstraint::Parameterizable
544 - added this module to support the refactor
545 in Moose::Meta::TypeConstraint::Parameterized
547 * Moose::Meta::TypeConstraint::Parameterized
548 - refactored how these types are handled so they
549 are more generic and not confined to ArrayRef
553 - shortened some file names for better VMS support (RT #32381)
555 0.33 Fri. Dec. 14, 2007
556 !! Moose now loads 2 x faster !!
557 !! with new Class::MOP 0.49 !!
559 ++ new oose.pm module to make command line
560 Moose-ness easier (see POD docs for more)
564 - several tweaks to take advantage of the
565 new method map caching in Class::MOP
567 * Moose::Meta::TypeConstraint::Parameterized
568 - allow subtypes of ArrayRef and HashRef to
569 be used as a container (sartak)
570 - added tests for this
571 - basic support for coercion to ArrayRef and
572 HashRef for containers (sartak)
573 - added tests for this
575 * Moose::Meta::TypeCoercion
576 - coercions will now create subtypes as needed
577 so you can now add coercions to parameterized
578 types without having to explictly define them
579 - added tests for this
581 * Moose::Meta::Method::Accessor
582 - allow subclasses to decide whether we need
583 to copy the value into a new variable (sartak)
585 0.32 Tues. Dec. 4, 2007
586 * Moose::Util::TypeConstraints
587 - fixing how subtype aliases of unions work
588 they should inherit the parent's coercion
589 - added tests for this
590 - you can now define multiple coercions on
591 a single type at different times instead of
592 having to do it all in one place
593 - added tests for this
595 * Moose::Meta::TypeConstraint
596 - there is now a default constraint of sub { 1 }
597 instead of Moose::Util::TypeConstraints setting
600 * Moose::Meta::TypeCoercion
601 * Moose::Meta::TypeCoercion::Union
602 - added the &has_coercion_for_type and
603 &add_type_coercions methods to support the
604 new features above (although you cannot add
605 more type coercions for Union types)
607 0.31 Mon. Nov. 26, 2007
608 * Moose::Meta::Attribute
609 - made the +attr syntax handle extending types with
610 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
611 now works if the original foo is an ArrayRef.
612 - added tests for this.
613 - delegation now works even if the attribute does not
614 have a reader method using the get_read_method_ref
615 method from Class::MOP::Attribute.
616 - added tests for this
617 - added docs for this
619 * Moose::Util::TypeConstraints
620 - passing no "additional attribute info" to
621 &find_or_create_type_constraint will no longer
622 attempt to create an __ANON__ type for you,
623 instead it will just return undef.
624 - added docs for this
626 0.30 Fri. Nov. 23, 2007
627 * Moose::Meta::Method::Constructor
628 -builder related bug in inlined constructor. (groditi)
630 * Moose::Meta::Method::Accessor
631 - genereate unnecessary calls to predicates and refactor
632 code generation for runtime speed (groditi)
634 * Moose::Util::TypeConstraints
635 - fix ClassName constraint to introspect symbol table (mst)
636 - added more tests for this (mst)
637 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
639 - added tests for this
642 - adding the link to Recipie 11 (written by Sartak)
643 - adding test for SYNOPSIS code
646 - New tests for builder bug. Upon instantiation, if an
647 attribute had a builder, no value and was not lazy the
648 builder default was not getting run, oops. (groditi)
650 0.29 Tues. Nov. 13, 2007
651 * Moose::Meta::Attribute
652 - Fix error message on missing builder method (groditi)
654 * Moose::Meta::Method::Accessor
655 - Fix error message on missing builder method (groditi)
658 - Add test to check for the correct error message when
659 builder method is missing (groditi)
661 0.28 Tues. Nov. 13, 2007
662 - 0.27 packaged incorrectly (groditi)
664 0.27 Tues. Nov. 13, 2007
665 * Moose::Meta::Attribute
666 - Added support for the new builder option (groditi)
667 - Added support for lazy_build option (groditi)
668 - Changed slot initialization for predicate changes (groditi)
670 * Moose::Meta::Method::Accessor
671 - Added support for lazy_build option (groditi)
672 - Fix inline methods to work with corrected predicate
675 * Moose::Meta::Method::Constructor
676 - Added support for lazy_build option (groditi)
679 - tests for builder and lazy_build (groditi)
681 * fixing some misc. bits in the docs that
682 got mentioned on CPAN Forum & perlmonks
685 - fixed how required methods are handled
686 when they encounter overriden or modified
687 methods from a class (thanks to confound).
688 - added tests for this
690 * Moose::Util::TypeConstraint
691 - fixed the type notation parser so that
692 the | always creates a union and so is
693 no longer a valid type char (thanks to
694 konobi, mugwump and #moose for working
696 - added more tests for this
698 0.26 Thurs. Sept. 27, 2007
701 * Parameterized Types
702 We now support parameterized collection types, such as:
703 ArrayRef[Int] # array or integers
704 HashRef[Object] # a hash with object values
705 They can also be nested:
706 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
707 And work with the type unions as well:
708 ArrayRef[Int | Str] # array of integers of strings
710 * Better Framework Extendability
711 Moose.pm is now "extendable" such that it is now much
712 easier to extend the framework and add your own keywords
713 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
714 section of the Moose.pm docs.
717 In an effort to begin documenting some of the various
718 details of Moose as well as some common idioms, we have
719 created Moose::Cookbook::Snacks as a place to find
720 small (easily digestable) nuggets of Moose code.
723 ~ Several doc updates/cleanup thanks to castaway ~
725 - converted build system to use Module::Install instead of
726 Module::Build (thanks to jrockway)
729 - added all the meta classes to the immutable list and
730 set it to inline the accessors
731 - fix import to allow Sub::Exporter like { into => }
732 and { into_level => } (perigrin)
733 - exposed and documented init_meta() to allow better
734 embedding and extending of Moose (perigrin)
737 - complete re-organization of the test suite
738 - added some new tests as well
739 - finally re-enabled the Moose::POOP test since
740 the new version of DBM::Deep now works again
744 - fixed very odd and very nasty recursion bug with
746 - added tests for this (eilara)
748 * Moose::Meta::Attribute
749 Moose::Meta::Method::Constructor
750 Moose::Meta::Method::Accessor
751 - fixed issue with overload::Overloaded getting called
752 on non-blessed items. (RT #29269)
753 - added tests for this
755 * Moose::Meta::Method::Accessor
756 - fixed issue with generated accessor code making
757 assumptions about hash based classes (thanks to dexter)
759 * Moose::Coookbook::Snacks
760 - these are bits of documentation, not quite as big as
761 Recipes but which have no clear place in the module docs.
762 So they are Snacks! (horray for castaway++)
764 * Moose::Cookbook::Recipe4
765 - updated it to use the new ArrayRef[MyType] construct
766 - updated the accompanying test as well
768 +++ Major Refactor of the Type Constraint system +++
769 +++ with new features added as well +++
771 * Moose::Util::TypeConstraint
772 - no longer uses package variable to keep track of
773 the type constraints, now uses the an instance of
774 Moose::Meta::TypeConstraint::Registry to do it
775 - added more sophisticated type notation parsing
777 - added tests for this
779 * Moose::Meta::TypeConstraint
780 - some minor adjustments to make subclassing easier
781 - added the package_defined_in attribute so that we
782 can track where the type constraints are created
784 * Moose::Meta::TypeConstraint::Union
785 - this is now been refactored to be a subclass of
786 Moose::Meta::TypeConstraint
788 * Moose::Meta::TypeCoercion::Union
789 - this has been added to service the newly refactored
790 Moose::Meta::TypeConstraint::Union and is itself
791 a subclass of Moose::Meta::TypeCoercion
793 * Moose::Meta::TypeConstraint::Parameterized
794 - added this module (taken from MooseX::AttributeHelpers)
795 to help construct nested collection types
796 - added tests for this
798 * Moose::Meta::TypeConstraint::Registry
799 - added this class to keep track of type constraints
801 0.25 Mon. Aug. 13, 2007
803 - Documentation update to reference Moose::Util::TypeConstraints
804 under 'isa' in 'has' for how to define a new type
807 * Moose::Meta::Attribute
808 - required attributes now will no longer accept undef
809 from the constructor, even if there is a default and lazy
810 - added tests for this
811 - default subroutines must return a value which passes the
813 - added tests for this
815 * Moose::Meta::Attribute
816 * Moose::Meta::Method::Constructor
817 * Moose::Meta::Method::Accessor
818 - type-constraint tests now handle overloaded objects correctly
820 - added tests for this (thanks to EvanCarroll)
822 * Moose::Meta::TypeConstraint::Union
823 - added (has_)hand_optimized_constraint to this class so that
824 it behaves as the regular Moose::Meta::TypeConstraint does.
827 - large refactoring of this code
828 - added several more tests
829 - tests for subtle conflict resolition issues
830 added, but not currently running
833 * Moose::Cookbook::Recipe7
834 - added new recipe for augment/inner functionality
836 - added test for this
839 - a formal definition of roles (still in progress)
842 - utilities for easier working with Moose classes
843 - added tests for these
846 - This contains Moose specific test functions
847 - added tests for these
849 0.24 Tues. July 3, 2007
850 ~ Some doc updates/cleanup ~
852 * Moose::Meta::Attribute
853 - added support for roles to be given as parameters
854 to the 'handles' option.
855 - added tests and docs for this
856 - the has '+foo' attribute form now accepts changes to
857 the lazy option, and the addition of a handles option
858 (but not changing the handles option)
859 - added tests and docs for this
862 - required methods are now fetched using find_method_by_name
863 so that required methods can come from superclasses
864 - adjusted tests for this
866 0.23 Mon. June 18, 2007
867 * Moose::Meta::Method::Constructor
868 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
870 - Modify make_immutable to work with the new Class::MOP immutable
871 mechanism + POD + very basic test (groditi)
872 * Moose::Meta::Attribute
873 - Fix handles to use goto() so that caller() comes out properly on
874 the other side (perigrin)
876 0.22 Thurs. May 31, 2007
877 * Moose::Util::TypeConstraints
878 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
879 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
880 prototypes for functions
881 - added the ClassName type constraint, this checks for strings
882 which will respond true to ->isa(UNIVERSAL).
883 - added tests and docs for this
884 - subtyping just in name now works correctly by making the
885 default for where be { 1 }
886 - added test for this
888 * Moose::Meta::Method::Accessor
889 - coerce and lazy now work together correctly, thanks to
890 merlyn for finding this bug
891 - tests added for this
892 - fix reader presedence bug in Moose::Meta::Attribute + tests
895 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
896 a HASH-ref and missed. This produces better error messages then
897 having it die cause undef is not a HASH.
898 - added tests for this
900 0.21 Thursday, May 2nd, 2007
902 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
903 - modified unimport to remove super and inner along with the rest
904 - altered unimport tests to handle this
907 - altered super export to populate SUPER_SLOT
910 - altered augment and override modifier application to use *_SLOT
911 - modified tests for these to unimport one test class each to test
914 - fixed issue where custom attribute metaclasses
915 where not handled correctly in roles
916 - added tests for this
919 - fixed issue where extending metaclasses with
920 roles would blow up. Thanks to Aankhen`` for
921 finding this insidious error, and it's solution.
923 ~~ lots of spelling and grammer fixes in the docs,
924 many many thanks to rlb3 and Aankhen for these :)
926 0.20 Friday, April 6th, 2007
927 >> I messed up the SKIP logic in one test
928 so this release is just to fix that.
931 - 'has' now also accepts an ARRAY ref
932 to create multiple attrs (see docs)
933 (thanks to konobi for this)
934 - added tests and docs
936 0.19 Thurs. April 5th, 2007
937 ~~ More documentation updates ~~
939 * Moose::Util::TypeConstraints
940 - 'type' now supports messages as well
941 thanks to phaylon for finding this
942 - added tests for this
943 - added &list_all_type_constraints and
944 &list_all_builtin_type_constraints
945 functions to facilitate introspection.
947 * Moose::Meta::Attribute
948 - fixed regexp 'handles' declarations
949 to build the list of delegated methods
950 correctly (and not override important
951 things like &new) thanks to ashleyb
953 - added tests and docs for this
954 - added the 'documentation' attributes
955 so that you can actually document your
956 attributes and inspect them through the
958 - added tests and docs for this
961 - when loading custom attribute metaclasses
962 it will first look in for the class in the
963 Moose::Meta::Attribute::Custom::$name, and
964 then default to just loading $name.
965 - added tests and docs for this
967 * Moose::Meta::TypeConstraint
968 - type constraints now stringify to their names.
969 - added test for this
972 - added tests to assure we work with Module::Refresh
973 - added stricter test skip logic in the Moose POOP
974 test, ask Rob Kinyon why.
975 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
977 0.18 Sat. March 10, 2007
978 ~~ Many, many documentation updates ~~
981 - We now use Class::MOP::load_class to
983 - added tests to show types and subtypes
984 working with Declare::Constraints::Simple
985 and Test::Deep as constraint engines.
988 !! You must have Class::MOP 0.37_001 !!
989 !! for this developer release to work !!
991 This release was primarily adding the immutable
992 feature to Moose. An immutable class is one which
993 you promise not to alter. When you set the class
994 as immutable it will perform various bits of
995 memoization and inline certain part of the code
996 (constructors, destructors and accessors). This
997 minimizes (and in some cases totally eliminates)
998 one of Moose's biggest performance hits. This
999 feature is not on by default, and is 100% optional.
1000 It has several configurable bits as well, so you
1001 can pick and choose to your specific needs.
1003 The changes involved in this were fairly wide and
1004 highly specific, but 100% backwards compatible, so
1005 I am not going to enumerate them here. If you are
1006 truely interested in what was changed, please do
1009 0.17 Tues. Nov. 14, 2006
1010 * Moose::Meta::Method::Accessor
1011 - bugfix for read-only accessors which
1012 are have a type constraint and lazy.
1013 Thanks to chansen for finding it.
1015 0.16 Tues. Nov. 14, 2006
1017 There are some speed improvements in this release,
1018 but they are only the begining, so stay tuned.
1021 - BUILDALL and DEMOLISHALL no longer get
1022 called unless they actually need to be.
1023 This gave us a signifigant speed boost
1024 for the cases when there is no BUILD or
1025 DEMOLISH method present.
1027 * Moose::Util::TypeConstraints
1028 * Moose::Meta::TypeConstraint
1029 - added an 'optimize_as' option to the
1030 type constraint, which allows for a
1031 hand optimized version of the type
1032 constraint to be used when possible.
1033 - Any internally created type constraints
1034 now provide an optimized version as well.
1036 0.15 Sun. Nov. 5, 2006
1038 This version of Moose *must* have Class::MOP 0.36 in order
1039 to work correctly. A number of small internal tweaks have
1040 been made in order to be compatible with that release.
1042 * Moose::Util::TypeConstraints
1043 - added &unimport so that you can clean out
1044 your class namespace of these exported
1047 * Moose::Meta::Class
1048 - fixed minor issue which occasionally
1049 comes up during global destruction
1051 - moved Moose::Meta::Method::Overriden into
1055 - moved Moose::Meta::Role::Method into
1058 * Moose::Meta::Attribute
1059 - changed how we do type checks so that
1060 we reduce the overall cost, but still
1063 - moved accessor generation methods to
1064 Moose::Meta::Method::Accessor to
1065 conform to the API changes from
1068 * Moose::Meta::TypeConstraint
1069 - changed how constraints are compiled
1070 so that we do less recursion and more
1071 iteration. This makes the type check
1073 - moved Moose::Meta::TypeConstraint::Union
1076 * Moose::Meta::Method::Accessor
1077 - created this from methods formerly found in
1078 Moose::Meta::Attribute
1080 * Moose::Meta::Role::Method
1081 - moved this from Moose::Meta::Role
1083 * Moose::Meta::Method::Overriden
1084 - moved this from Moose::Meta::Class
1086 * Moose::Meta::TypeConstraint::Union
1087 - moved this from Moose::Meta::TypeConstraint
1089 0.14 Mon. Oct. 9, 2006
1091 * Moose::Meta::Attribute
1092 - fixed lazy attributes which were not getting
1093 checked with the type constraint (thanks ashley)
1094 - added tests for this
1095 - removed the over-enthusiastic DWIMery of the
1096 automatic ArrayRef and HashRef defaults, it
1097 broke predicates in an ugly way.
1098 - removed tests for this
1100 0.13 Sat. Sept. 30, 2006
1102 This version of Moose *must* have Class::MOP 0.35 in order
1103 to work correctly. A number of small internal tweaks have
1104 been made in order to be compatible with that release.
1107 - Removed the use of UNIVERSAL::require to be a better
1108 symbol table citizen and remove a dependency
1109 (thanks Adam Kennedy)
1111 **~~ removed experimental & undocumented feature ~~**
1112 - commented out the 'method' and 'self' keywords, see the
1113 comments for more info.
1116 - added a FAQ and WTF files to document frequently
1117 asked questions and common problems
1119 * Moose::Util::TypeConstraints
1120 - added GlobRef and FileHandle type constraint
1121 - added tests for this
1123 * Moose::Meta::Attribute
1124 - if your attribute 'isa' ArrayRef of HashRef, and you have
1125 not explicitly set a default, then make the default DWIM.
1126 This will also work for subtypes of ArrayRef and HashRef
1128 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1129 - new test added for this (thanks to ashley)
1132 - added basic support for runtime role composition
1133 but this is still *highly experimental*, so feedback
1134 is much appreciated :)
1135 - added tests for this
1137 * Moose::Meta::TypeConstraint
1138 - the type constraint now handles the coercion process
1139 through delegation, this is to support the coercion
1142 * Moose::Meta::TypeConstraint::Union
1143 - it is now possible for coercions to be performed
1145 - added tests for this (thanks to konobi)
1147 * Moose::Meta::TypeCoercion
1148 - properly capturing error when type constraint
1152 - Scalar::Util 1.18 is bad on Win32, so temporarily
1153 only require version 1.17 for Win32 and cygwin.
1154 (thanks Adam Kennedy)
1156 0.12 Sat. Sept. 1, 2006
1158 - Recipe5 (subtypes & coercion) has been written
1161 - fixed "bad meta" error message to be more descriptive
1162 - fixed &unimport to not remove the &inner and &super
1163 keywords because we need to localize them.
1164 - fixed number of spelling/grammer issues, thanks Theory :)
1166 **~~ experimental & undocumented feature ~~**
1167 - added the method and self keywords, they are basically
1168 just sugar, and they may not stay around.
1171 - added &dump method to easily Data::Dumper
1174 * Moose::Meta::TypeConstraint
1175 - added the &is_a_type_of method to check both the current
1176 and the subtype of a method (similar to &isa with classes)
1179 - this is now a subclass of Class::MOP::Module, and no longer
1180 creates the _role_meta ugliness of before.
1181 - fixed tests to reflect this change
1183 0.11 Wed. July 12, 2006
1185 - added an &unimport method to remove all the keywords
1186 that Moose will import, simply add 'no Moose' to the
1187 bottom of your class file.
1190 - fixed some test failures caused by a forgotten test
1193 0.10 Thurs. July 6, 2006
1195 - improved error message when loading modules so
1196 it is less confusing when you load a role.
1197 - added &calculate_all_roles method to
1198 Moose::Meta::Class and Moose::Meta::Role
1201 This module has been tested against Class::MOP 0.30
1202 but it does not yet utilize the optimizations
1203 it makes available. Stay tuned for that ;)
1205 0.09_03 Fri. June 23, 2006
1206 ++ DEVELOPER RELEASE ++
1208 - 'use strict' and 'use warnings' are no longer
1209 needed in Moose classes, Moose itself will
1210 turn them on for you.
1211 - added tests for this
1212 - moved code from exported subs to private methods
1213 in Moose::Meta::Class
1216 - as with Moose, strict and warnings are
1217 automatically turned on for you.
1218 - added tests for this
1221 - now handles an edge case for override errors
1222 - added tests for this
1223 - added some more edge case tests
1225 0.09_02 Tues. May 16, 2006
1226 ++ DEVELOPER RELEASE ++
1228 - added prototypes to the exported subs
1232 - added prototypes to the exported subs
1235 * Moose::Util::TypeConstraints
1236 - cleaned up prototypes for the subs
1239 0.09_01 Fri. May 12, 2006
1240 ++ DEVELOPER RELEASE ++
1241 - This release works in combination with
1242 Class::MOP 0.29_01, it is a developer
1243 release because it uses the a new
1244 instance sub-protocol and a fairly
1245 complete Role implementation. It has
1246 not yet been optimized, so it slower
1247 the the previous CPAN version. This
1248 release also lacks good updated docs,
1249 the official release will have updated docs.
1252 - refactored the keyword exports
1253 - 'with' now checks Role validaity and
1254 accepts more than one Role at a time
1255 - 'extends' makes metaclass adjustments as
1256 needed to ensure metaclass compatability
1259 - refactored the keyword exports
1260 - 'with' now checks Role validaity and
1261 accepts more than one Role at a time
1263 * Moose::Util::TypeConstraints
1264 - added the 'enum' keyword for simple
1265 string enumerations which can be used as
1267 - see example of usage in t/202_example.t
1270 - more careful checking of params to new()
1273 - much work done on the role composition
1274 - many new tests for conflict detection
1275 and composition edge cases
1276 - not enough documentation, I suggest
1277 looking at the tests
1279 * Moose::Meta::Instance
1280 - added new Instance metaclass to support
1281 the new Class::MOP instance protocol
1283 * Moose::Meta::Class
1284 - some small changes to support the new
1286 - some small additions to support Roles
1288 * Moose::Meta::Attribute
1289 - some improvements to the accessor generation code
1291 - some small changes to support the new
1293 - (still somewhat) experimental delegation support
1294 with the 'handles' option
1295 - added several tests for this
1296 - no docs for this yet
1298 0.05 Thurs. April 27, 2006
1300 - keywords are now exported with Sub::Exporter
1301 thanks to chansen for this commit
1302 - has keyword now takes a 'metaclass' option
1303 to support custom attribute meta-classes
1304 on a per-attribute basis
1305 - added tests for this
1306 - the 'has' keyword not accepts inherited slot
1307 specifications (has '+foo'). This is still an
1308 experimental feature and probably not finished
1309 see t/038_attribute_inherited_slot_specs.t for
1310 more details, or ask about it on #moose
1311 - added tests for this
1314 - keywords are now exported with Sub::Exporter
1316 * Moose::Utils::TypeConstraints
1317 - reorganized the type constraint hierarchy, thanks
1318 to nothingmuch and chansen for his help and advice
1320 - added some tests for this
1321 - keywords are now exported with Sub::Exporter
1322 thanks to chansen for this commit
1324 * Moose::Meta::Class
1325 - due to changes in Class::MOP, we had to change
1326 construct_instance (for the better)
1328 * Moose::Meta::Attribute
1329 - due to changes in Class::MOP, we had to add the
1330 initialize_instance_slot method (it's a good thing)
1332 * Moose::Meta::TypeConstraint
1333 - added type constraint unions
1334 - added tests for this
1335 - added the is_subtype_of predicate method
1336 - added tests for this
1338 0.04 Sun. April 16th, 2006
1340 - Roles can now consume other roles
1341 - added tests for this
1342 - Roles can specify required methods now with
1343 the requires() keyword
1344 - added tests for this
1347 - ripped out much of it's guts ,.. much cleaner now
1348 - added required methods and correct handling of
1349 them in apply() for both classes and roles
1350 - added tests for this
1351 - no longer adds a does() method to consuming classes
1352 it relys on the one in Moose::Object
1353 - added roles attribute and some methods to support
1354 roles consuming roles
1356 * Moose::Meta::Attribute
1357 - added support for triggers on attributes
1358 - added tests for this
1359 - added support for does option on an attribute
1360 - added tests for this
1362 * Moose::Meta::Class
1363 - added support for attribute triggers in the
1365 - added tests for this
1368 - Moose no longer creates a subtype for your class
1369 if a subtype of the same name already exists, this
1370 should DWIM in 99.9999% of all cases
1372 * Moose::Util::TypeConstraints
1373 - fixed bug where incorrect subtype conflicts were
1375 - added test for this
1378 - this class can now be extended with 'use base' if
1379 you need it, it properly loads the metaclass class now
1380 - added test for this
1382 0.03_02 Wed. April 12, 2006
1384 - you must now explictly use Moose::Util::TypeConstraints
1385 it no longer gets exported for you automatically
1388 - new() now accepts hash-refs as well as key/value lists
1389 - added does() method to check for Roles
1390 - added tests for this
1392 * Moose::Meta::Class
1393 - added roles attribute along with the add_role() and
1395 - added tests for this
1398 - now adds a does() method to consuming classes
1399 which tests the class's hierarchy for roles
1400 - added tests for this
1402 0.03_01 Mon. April 10, 2006
1404 - added new Role recipe (no content yet, only code)
1407 - added 'with' keyword for Role support
1408 - added test and docs for this
1409 - fixed subtype quoting bug
1410 - added test for this
1414 - added test and docs
1416 * Moose::Util::TypeConstraints
1417 - added the message keyword to add custom
1418 error messages to type constraints
1421 - the meta role to support Moose::Role
1422 - added tests and docs
1424 * Moose::Meta::Class
1425 - moved a number of things from Moose.pm
1426 to here, they should have been here
1429 * Moose::Meta::Attribute
1430 - moved the attribute option macros here
1431 instead of putting them in Moose.pm
1433 * Moose::Meta::TypeConstraint
1434 - added the message attributes and the
1436 - added tests and docs for this
1438 0.03 Thurs. March 30, 2006
1440 - added the Moose::Cookbook with 5 recipes,
1441 describing all the stuff Moose can do.
1444 - fixed an issue with &extends super class loading
1445 it now captures errors and deals with inline
1446 packages correctly (bug found by mst, solution
1448 - added super/override & inner/augment features
1449 - added tests and docs for these
1452 - BUILDALL now takes a reference of the %params
1453 that are passed to &new, and passes that to
1456 * Moose::Util::TypeConstraints
1457 - Type constraints now survive runtime reloading
1458 - added test for this
1460 * Moose::Meta::Class
1461 - fixed the way attribute defaults are handled
1462 during instance construction (bug found by chansen)
1464 * Moose::Meta::Attribute
1465 - read-only attributes now actually enforce their
1466 read-only-ness (this corrected in Class::MOP as
1469 0.02 Tues. March 21, 2006
1471 - many more tests, fixing some bugs and
1473 - &extends now loads the base module with
1475 - added UNIVERSAL::require to the
1478 - each new Moose class will also create
1479 and register a subtype of Object which
1480 correspond to the new Moose class.
1481 - the 'isa' option in &has now only
1482 accepts strings, and will DWIM in
1485 * Moose::Util::TypeConstraints
1486 - added type coercion features
1487 - added tests for this
1488 - added support for this in attributes
1489 and instance construction
1491 - type construction no longer creates a
1492 function, it registers the type instead.
1493 - added several functions to get the
1497 - BUILDALL and DEMOLISHALL were broken
1498 because of a mis-named hash key, Whoops :)
1500 * Moose::Meta::Attribute
1501 - adding support for coercion in the
1502 autogenerated accessors
1504 * Moose::Meta::Class
1505 - adding support for coercion in the
1506 instance construction
1508 * Moose::Meta::TypeConstraint
1509 * Moose::Meta::TypeCoercion
1510 - type constraints and coercions are now
1511 full fledges meta-objects
1513 0.01 Wed. March 15, 2006
1514 - Moooooooooooooooooose!!!