1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - breaking down the way 'handles' methods are
6 created so that the process can be more easily
7 overridden by subclasses (stevan)
9 * Moose::Meta::TypeConstraint
10 - fixing what is passed into a ->message with
11 the type constraints (RT #37569)
12 - added tests for this (Charles Alderman)
15 - reorganized the recipes into sections - Basics, Roles, Meta
18 * Moose::Cookbook::Meta::Recipe1
19 - an introduction to what meta is and why you'd want to make
20 your own metaclass extensions (Dave Rolsky)
22 * Moose::Cookbook::Basics::Recipe10
23 - A new recipe that demonstrates operator overloading
24 in combination with Moose. (bluefeet)
26 0.54 Thurs. July 3, 2008
27 ... this is not my day today ...
29 * Moose::Meta::Attribute
30 - fixed legal_options_for_inheritance such that
31 clone_and_inherit options still works for
32 Class::MOP::Attribute objects and therefore
33 does not break MooseX::AttributeHelpers
36 0.53 Thurs. July 3, 2008
37 * Whoops, I guess I should run 'make manifest' before
38 actually releasing the module. No actual changes
39 in this release, except the fact that it includes
40 the changes that I didn't include in the last
43 0.52 Thurs. July 3, 2008
45 - added "FEATURE REQUESTS" section to the Moose docs
46 to properly direct people (stevan) (RT #34333)
47 - making 'extends' croak if it is passed a Role since
48 this is not ever something you want to do
49 (fixed by stevan, found by obra)
50 - added tests for this (stevan)
53 - adding support for DOES (as in UNIVERSAL::DOES)
57 * Moose::Meta::Attribute
58 - added legal_options_for_inheritance (wreis)
59 - added tests for this (wreis)
61 * Moose::Cookbook::Snacks::*
62 - removed some of the unfinished snacks that should
63 not have been released yet. Added some more examples
64 to the 'Keywords' snack. (stevan)
66 * Moose::Cookbook::Style
67 - added general Moose "style guide" of sorts to the
68 cookbook (nothingmuch) (RT #34335)
71 - added more BUILDARGS tests (stevan)
73 0.51 Thurs. Jun 26, 2008
75 - add unimport so "no Moose::Role" actually does
78 * Moose::Meta::Role::Application::ToRole
79 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
80 order to provide its own implementation, that method still got
81 added to the list of required methods for consumers of
82 RoleB. Now an aliased method is only added to the list of
83 required methods if the role doing the aliasing does not
84 provide its own implementation. See Recipe 11 for an example
85 of all this. (Dave Rolsky)
86 - added tests for this
88 * Moose::Meta::Method::Constructor
89 - when a single argument that wasn't a hashref was provided to
90 an immutabilized constructor, the error message was very
91 unhelpful, as opposed to the non-immutable error. Reported by
93 - added test for this (Dave Rolsky)
95 * Moose::Meta::Attribute
96 - added support for meta_attr->does("ShortAlias") (sartak)
97 - added tests for this (sartak)
98 - moved the bulk of the `handles` handling to the new
99 install_delegation method (Stevan)
102 - Added BUILDARGS, a new step in new()
104 * Moose::Meta::Role::Application::RoleSummation
105 - fix typos no one ever sees (sartak)
107 * Moose::Util::TypeConstraints
108 * Moose::Meta::TypeConstraint
109 * Moose::Meta::TypeCoercion
110 - Attempt to work around the ??{ } vs. threads issue
112 - Some null_constraint optimizations
114 0.50 Thurs. Jun 11, 2008
115 - Fixed a version number issue by bumping all modules
118 0.49 Thurs. Jun 11, 2008
119 !! This version now approx. 20-25% !!
120 !! faster with new Class::MOP 0.59 !!
122 * Moose::Meta::Attribute
123 - fixed how the is => (ro|rw) works with
124 custom defined reader, writer and accessor
126 - added docs for this (TODO).
127 - added tests for this (Thanks to Penfold)
128 - added the custom attribute alias for regular
129 Moose attributes which is "Moose"
130 - fix builder and default both being used
135 Moose::Meta::Attribute
137 Moose::Meta::Role::Composite
138 Moose::Util::TypeConstraints
139 - switched usage of reftype to ref because
143 - changing add_package_symbol to use the new
147 - fixed how DEMOLISHALL is called so that it
148 can be overrided in subclasses (thanks to Sartak)
149 - added test for this (thanks to Sartak)
151 * Moose::Util::TypeConstraints
152 - move the ClassName type check code to
153 Class::MOP::is_class_loaded (thanks to Sartak)
155 * Moose::Cookbook::Recipe11
156 - add tests for this (thanks to tokuhirom)
158 0.48 Thurs. May 29, 2008
159 (early morning release engineering)--
161 - fixing the version in Moose::Meta::Method::Destructor
162 which was causing the indexer to choke
164 0.47 Thurs. May 29, 2008
165 (late night release engineering)--
167 - fixing the version is META.yml, no functional
168 changes in this release
170 0.46 Wed. May 28, 2008
171 !! This version now approx. 20-25% !!
172 !! faster with new Class::MOP 0.57 !!
175 - some optimizations of the &initialize method
176 since it is called so often by &meta
180 - now use the get_all_package_symbols from the
181 updated Class::MOP, test suite is now 10 seconds
184 * Moose::Meta::Method::Destructor
185 - is_needed can now also be called as a class
186 method for immutablization to check if the
187 destructor object even needs to be created
190 * Moose::Meta::Method::Destructor
191 Moose::Meta::Method::Constructor
192 - added more descriptive error message to help
193 keep people from wasting time tracking an error
194 that is easily fixed by upgrading.
196 0.45 Saturday, May 24, 2008
198 - Because of work in Class::MOP 0.56, all
199 XS based functionality is now optional
200 and a Pure Perl version is supplied
201 - the CLASS_MOP_NO_XS environment variable
202 can now be used to force non-XS versions
204 - several of the packages have been tweaked
205 to take care of this, mostly we added
206 support for the package_name and name
207 variables in all the Method metaclasses
208 - before/around/after method modifiers now
209 support regexp matching of names
210 (thanks to Takatoshi Kitano)
211 - tests added for this
212 - NOTE: this only works for classes, it
213 is currently not supported in roles,
214 but, ... patches welcome
215 - All usage of Carp::confess have been replaced
216 by Carp::croak in the "keyword" functions since
217 the stack trace is usually not helpful
220 - All usage of Carp::confess have been replaced
221 by Carp::croak in the "keyword" functions since
222 the stack trace is usually not helpful
223 - The 'has' keyword for roles now accepts the
224 same array ref form that Moose.pm does
225 (has [qw/foo bar/] => (is => 'rw', ...))
226 - added test for this
228 * Moose::Meta::Attribute
229 - trigger on a ro-attribute is no longer an
230 error, as it's useful to trigger off of the
234 - added same 'add_package_symbol' fix as in
238 - does_role now handles non-Moose classes
240 - added tests for this
241 - added the 'add_method_modifier' function
242 (thanks to Takatoshi Kitano)
244 * Moose::Util::TypeConstraints
245 - subtypes of parameterizable types now are
246 themselves parameterizable types
248 * Moose::Meta::Method::Constructor
249 - fixed bug where trigger was not being
250 called by the inlined immutable
252 - added test for this (thanks to Caelum)
254 * Moose::Meta::Role::Application::ToInstance
255 - now uses the metaclass of the instance
256 (if possible) to create the anon-class
257 (thanks Jonathan Rockway)
259 * Moose::Cookbook::Recipe22
260 - added the meta-attribute trait recipe
264 - fixed hash-ordering test bug that was
265 causing occasional cpantester failures
266 - renamed the t/000_recipe/*.t tests to be
267 more descriptive (thanks to Sartak)
269 0.44 Sat. May 10, 2008
271 - made make_immutable warning cluck to
272 show where the error is (thanks mst)
275 - BUILDALL and DEMOLISHALL now call
276 ->body when looping through the
277 methods, to avoid the overloaded
279 - fixed issue where DEMOLISHALL was
280 eating the $@ values, and so not
281 working correctly, it still kind of
282 eats them, but so does vanilla perl
283 - added tests for this
285 * Moose::Cookbook::Recipe7
286 - added new recipe for immutable
287 functionality (thanks Dave Rolsky)
289 * Moose::Cookbook::Recipe9
290 - added new recipe for builder and
291 lazy_build (thanks Dave Rolsky)
293 * Moose::Cookbook::Recipe11
294 - added new recipe for method aliasing
295 and exclusion with Roles (thanks Dave Rolsky)
298 - fixed Win32 test failure (thanks spicyjack)
300 ~ removed Build.PL and Module::Build compat
301 since Module::Install has done that.
303 0.43 Wed. April, 30, 2008
305 drink more coffee before
306 doing release engineering
308 - whoops, forgot to do the smolder tests,
309 and we broke some of the custom meta-attr
310 modules. This fixes that.
312 0.42 Mon. April 28, 2008
313 - some bad tests slipped by, nothing else
314 changed in this release (cpantesters++)
316 - upped the Class::MOP dependency to 0.55
317 since we have tests which need the C3
320 0.41 Mon. April 28, 2008
321 ~~ numerous documentation updates ~~
323 - Changed all usage of die to Carp::croak for better
324 error reporting (initial patch by Tod Hagan)
327 - the make_immutable keyword is now deprecated, don't
328 use it in any new code and please fix your old code
329 as well. There will be 2 releases, and then it will
335 - refactored the way inner and super work to avoid
336 any method/@ISA cache penalty (nothingmuch)
339 - fixing &new_object to make sure trigger gets the
340 coerced value (spotted by Charles Alderman on the
342 - added test for this
344 * Moose::Meta::Method::Constructor
345 - immutable classes which had non-lazy attributes were calling
346 the default generating sub twice in the constructor. (bug
347 found by Jesse Luehrs, fixed by Dave Rolsky)
348 - added tests for this (Dave Rolsky)
349 - fix typo in initialize_body method (nothingmuch)
351 * Moose::Meta::Method::Destructor
352 - fix typo in initialize_body method (nothingmuch)
354 * Moose::Meta::Method::Overriden
355 Moose::Meta::Method::Augmented
356 - moved the logic for these into their own
357 classes (nothingmuch)
359 * Moose::Meta::Attribute
360 - inherited attributes may now be extended without
361 restriction on the type ('isa', 'does') (Sartak)
362 - added tests for this (Sartak)
363 - when an attribute property is malformed (such as lazy without
364 a default), give the name of the attribute in the error
366 - added the &applied_traits and &has_applied_traits methods
367 to allow introspection of traits
368 - added tests for this
369 - moved 'trait' and 'metaclass' argument handling to here from
371 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
372 '+foo' syntax) (nothingmuch)
373 - added tests for this (t0m)
376 - localize $@ inside DEMOLISHALL to avoid it
377 eating $@ (found by Ernesto)
378 - added test for this (thanks to Ernesto)
380 * Moose::Util::TypeConstraints
381 - &find_type_constraint now DWIMs when given an
382 type constraint object or name (nothingmuch)
383 - &find_or_create_type_constraint superseded with a number of more
385 - find_or_create_{isa,does}_type_constraint
386 - find_or_parse_type_constraint
388 * Moose::Meta::TypeConstraint
389 Moose::Meta::TypeConstraint::Class
390 Moose::Meta::TypeConstraint::Role
391 Moose::Meta::TypeConstraint::Enum
392 Moose::Meta::TypeConstraint::Union
393 Moose::Meta::TypeConstraint::Parameterized
394 - added the &equals method for comparing two type
395 constraints (nothingmuch)
396 - added tests for this (nothingmuch)
398 * Moose::Meta::TypeConstraint
399 - add the &parents method, which is just an alias to &parent.
400 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
402 * Moose::Meta::TypeConstraint::Class
403 - added the class attribute for introspection purposes
405 - added tests for this
407 * Moose::Meta::TypeConstraint::Enum
408 Moose::Meta::TypeConstraint::Role
409 - broke these out into their own classes (nothingmuch)
411 * Moose::Cookbook::Recipe*
412 - fixed references to test file locations in the POD
413 and updated up some text for new Moose features
417 - Added &resolve_metaclass_alias, a helper function for finding an actual
418 class for a short name (e.g. in the traits list)
420 0.40 Fri. March 14, 2008
421 - I hate Pod::Coverage
423 0.39 Fri. March 14, 2008
425 - documenting the use of '+name' with attributes
426 that come from recently composed roles. It makes
427 sense, people are using it, and so why not just
428 officially support it.
429 - fixing the 'extends' keyword so that it will not
430 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
433 - added the perl -Moose=+Class::Name feature to allow
434 monkeypatching of classes in one liners
437 - fixing the 'apply_all_roles' keyword so that it will not
438 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
441 - added ->create method which now supports roles (thanks to jrockway)
442 - added tests for this
443 - added ->create_anon_class which now supports roles and caching of
444 the results (thanks to jrockway)
445 - added tests for this
446 - made ->does_role a little more forgiving when it is
447 checking a Class::MOP era metaclasses.
449 * Moose::Meta::Role::Application::ToInstance
450 - it is now possible to pass extra params to be used when
451 a role is applied to an the instance (rebless_params)
452 - added tests for this
454 * Moose::Util::TypeConstraints
455 - class_type now accepts an optional second argument for a
456 custom message. POD anotated accordingly (groditi)
457 - added tests for this
458 - it is now possible to make anon-enums by passing 'enum' an
459 ARRAY ref instead of the $name => @values. Everything else
461 - added tests for this
464 - making test for using '+name' on attributes consumed
465 from a role, it works and makes sense too.
467 * Moose::Meta::Attribute
468 - fix handles so that it doesn't return nothing
469 when the method cannot be found, not sure why
470 it ever did this originally, this means we now
471 have slightly better support for AUTOLOADed
473 - added more delegation tests
474 - adding ->does method to this so as to better
475 support traits and their introspection.
476 - added tests for this
479 - localizing the Data::Dumper configurations so
480 that it does not pollute others (RT #33509)
481 - made ->does a little more forgiving when it is
482 passed Class::MOP era metaclasses.
484 0.38 Fri. Feb. 15, 2008
485 * Moose::Meta::Attribute
486 - fixed initializer to correctly do
487 type checking and coercion in the
489 - added tests for this
492 - fixed some finicky tests (thanks to konobi)
494 0.37 Thurs. Feb. 14, 2008
496 - fixed some details in Moose::init_meta
497 and its superclass handling (thanks thepler)
498 - added tests for this (thanks thepler)
499 - 'has' now dies if you don't pass in name
501 - added the 'make_immutable' keyword as a shortcut
505 Moose::Meta::Method::Constructor
506 Moose::Meta::Attribute
507 - making (init_arg => undef) work here too
508 (thanks to nothingmuch)
510 * Moose::Meta::Attribute
511 Moose::Meta::Method::Constructor
512 Moose::Meta::Method::Accessor
513 - make lazy attributes respect attr initializers (rjbs)
514 - added tests for this
516 * Moose::Util::TypeConstraints
517 Moose::Util::TypeConstraints::OptimizedConstraints
518 Moose::Meta::TypeConstraints
519 Moose::Meta::Attribute
520 Moose::Meta::Method::Constructor
521 Moose::Meta::Method::Accessor
522 - making type errors use the
523 assigned message (thanks to Sartak)
524 - added tests for this
526 * Moose::Meta::Method::Destructor
527 - making sure DESTROY gets inlined properly
528 with successive DEMOLISH calls (thanks to manito)
530 * Moose::Meta::Attribute
531 Moose::Meta::Method::Accessor
532 - fixed handling of undef with type constraints
534 - added tests for this
537 - added &get_all_init_args and &get_all_attribute_values
538 (thanks to Sartak and nothingmuch)
540 0.36 Sat. Jan. 26, 2008
542 Moose::Meta::Attribute
543 - role type tests now support when roles are
544 applied to non-Moose classes (found by ash)
545 - added tests for this (thanks to ash)
546 - couple extra tests to boost code coverage
548 * Moose::Meta::Method::Constructor
549 - improved fix for handling Class::MOP attributes
550 - added test for this
553 - handled the add_attribute($attribute_meta_object)
555 - added test for this
557 0.35 Tues. Jan. 22, 2008
558 * Moose::Meta::Method::Constructor
559 - fix to make sure even Class::MOP attributes
560 are handled correctly (Thanks to Dave Rolsky)
561 - added test for this (also Dave Rolsky)
564 - improved error message on _apply_all_roles,
565 you should now use Moose::Util::apply_all_roles
566 and you shouldnt have been using a _ prefixed
567 method in the first place ;)
569 0.34 Mon. Jan. 21, 2008
570 ~~~ more misc. doc. fixes ~~~
571 ~~ updated copyright dates ~~
573 Moose is now a postmodern object system :)
574 - (see the POD for details)
576 * <<Role System Refactoring>>
577 - this release contains a major reworking and
578 cleanup of the role system
579 - 100% backwards compat.
580 - Role application now restructured into seperate
581 classes based on type of applicants
582 - Role summation (combining of more than one role)
583 is much cleaner and anon-classes are no longer
585 - new Composite role metaclass
586 - runtime application of roles to instances
587 is now more efficient and re-uses generated
588 classes when applicable
590 * <<New Role composition features>>
591 - methods can now be excluded from a given role
593 - methods can now be aliased to another name (and
594 still retain the original as well)
596 * Moose::Util::TypeConstraints::OptimizedConstraints
597 - added this module (see above)
600 - fixed the &_process_attribute method to be called
601 by &add_attribute, so that the API is now correct
603 * Moose::Meta::Method::Accessor
604 - fixed bug when passing a list of values to
605 an accessor would get (incorrectly) ignored.
606 Thanks to Sartak for finding this ;)
607 - added tests for this (Sartak again)
609 * Moose::Meta::Method::Accessor
610 Moose::Meta::Method::Constructor
611 Moose::Meta::Attribute
612 Moose::Meta::TypeConstraint
613 Moose::Meta::TypeCoercion
614 - lots of cleanup of such things as:
616 - type constraint handling
617 - error handling/messages
618 (thanks to nothingmuch)
620 * Moose::Meta::TypeConstraint::Parameterizable
621 - added this module to support the refactor
622 in Moose::Meta::TypeConstraint::Parameterized
624 * Moose::Meta::TypeConstraint::Parameterized
625 - refactored how these types are handled so they
626 are more generic and not confined to ArrayRef
630 - shortened some file names for better VMS support (RT #32381)
632 0.33 Fri. Dec. 14, 2007
633 !! Moose now loads 2 x faster !!
634 !! with new Class::MOP 0.49 !!
636 ++ new oose.pm module to make command line
637 Moose-ness easier (see POD docs for more)
641 - several tweaks to take advantage of the
642 new method map caching in Class::MOP
644 * Moose::Meta::TypeConstraint::Parameterized
645 - allow subtypes of ArrayRef and HashRef to
646 be used as a container (sartak)
647 - added tests for this
648 - basic support for coercion to ArrayRef and
649 HashRef for containers (sartak)
650 - added tests for this
652 * Moose::Meta::TypeCoercion
653 - coercions will now create subtypes as needed
654 so you can now add coercions to parameterized
655 types without having to explictly define them
656 - added tests for this
658 * Moose::Meta::Method::Accessor
659 - allow subclasses to decide whether we need
660 to copy the value into a new variable (sartak)
662 0.32 Tues. Dec. 4, 2007
663 * Moose::Util::TypeConstraints
664 - fixing how subtype aliases of unions work
665 they should inherit the parent's coercion
666 - added tests for this
667 - you can now define multiple coercions on
668 a single type at different times instead of
669 having to do it all in one place
670 - added tests for this
672 * Moose::Meta::TypeConstraint
673 - there is now a default constraint of sub { 1 }
674 instead of Moose::Util::TypeConstraints setting
677 * Moose::Meta::TypeCoercion
678 * Moose::Meta::TypeCoercion::Union
679 - added the &has_coercion_for_type and
680 &add_type_coercions methods to support the
681 new features above (although you cannot add
682 more type coercions for Union types)
684 0.31 Mon. Nov. 26, 2007
685 * Moose::Meta::Attribute
686 - made the +attr syntax handle extending types with
687 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
688 now works if the original foo is an ArrayRef.
689 - added tests for this.
690 - delegation now works even if the attribute does not
691 have a reader method using the get_read_method_ref
692 method from Class::MOP::Attribute.
693 - added tests for this
694 - added docs for this
696 * Moose::Util::TypeConstraints
697 - passing no "additional attribute info" to
698 &find_or_create_type_constraint will no longer
699 attempt to create an __ANON__ type for you,
700 instead it will just return undef.
701 - added docs for this
703 0.30 Fri. Nov. 23, 2007
704 * Moose::Meta::Method::Constructor
705 -builder related bug in inlined constructor. (groditi)
707 * Moose::Meta::Method::Accessor
708 - genereate unnecessary calls to predicates and refactor
709 code generation for runtime speed (groditi)
711 * Moose::Util::TypeConstraints
712 - fix ClassName constraint to introspect symbol table (mst)
713 - added more tests for this (mst)
714 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
716 - added tests for this
719 - adding the link to Recipie 11 (written by Sartak)
720 - adding test for SYNOPSIS code
723 - New tests for builder bug. Upon instantiation, if an
724 attribute had a builder, no value and was not lazy the
725 builder default was not getting run, oops. (groditi)
727 0.29 Tues. Nov. 13, 2007
728 * Moose::Meta::Attribute
729 - Fix error message on missing builder method (groditi)
731 * Moose::Meta::Method::Accessor
732 - Fix error message on missing builder method (groditi)
735 - Add test to check for the correct error message when
736 builder method is missing (groditi)
738 0.28 Tues. Nov. 13, 2007
739 - 0.27 packaged incorrectly (groditi)
741 0.27 Tues. Nov. 13, 2007
742 * Moose::Meta::Attribute
743 - Added support for the new builder option (groditi)
744 - Added support for lazy_build option (groditi)
745 - Changed slot initialization for predicate changes (groditi)
747 * Moose::Meta::Method::Accessor
748 - Added support for lazy_build option (groditi)
749 - Fix inline methods to work with corrected predicate
752 * Moose::Meta::Method::Constructor
753 - Added support for lazy_build option (groditi)
756 - tests for builder and lazy_build (groditi)
758 * fixing some misc. bits in the docs that
759 got mentioned on CPAN Forum & perlmonks
762 - fixed how required methods are handled
763 when they encounter overriden or modified
764 methods from a class (thanks to confound).
765 - added tests for this
767 * Moose::Util::TypeConstraint
768 - fixed the type notation parser so that
769 the | always creates a union and so is
770 no longer a valid type char (thanks to
771 konobi, mugwump and #moose for working
773 - added more tests for this
775 0.26 Thurs. Sept. 27, 2007
778 * Parameterized Types
779 We now support parameterized collection types, such as:
780 ArrayRef[Int] # array or integers
781 HashRef[Object] # a hash with object values
782 They can also be nested:
783 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
784 And work with the type unions as well:
785 ArrayRef[Int | Str] # array of integers of strings
787 * Better Framework Extendability
788 Moose.pm is now "extendable" such that it is now much
789 easier to extend the framework and add your own keywords
790 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
791 section of the Moose.pm docs.
794 In an effort to begin documenting some of the various
795 details of Moose as well as some common idioms, we have
796 created Moose::Cookbook::Snacks as a place to find
797 small (easily digestable) nuggets of Moose code.
800 ~ Several doc updates/cleanup thanks to castaway ~
802 - converted build system to use Module::Install instead of
803 Module::Build (thanks to jrockway)
806 - added all the meta classes to the immutable list and
807 set it to inline the accessors
808 - fix import to allow Sub::Exporter like { into => }
809 and { into_level => } (perigrin)
810 - exposed and documented init_meta() to allow better
811 embedding and extending of Moose (perigrin)
814 - complete re-organization of the test suite
815 - added some new tests as well
816 - finally re-enabled the Moose::POOP test since
817 the new version of DBM::Deep now works again
821 - fixed very odd and very nasty recursion bug with
823 - added tests for this (eilara)
825 * Moose::Meta::Attribute
826 Moose::Meta::Method::Constructor
827 Moose::Meta::Method::Accessor
828 - fixed issue with overload::Overloaded getting called
829 on non-blessed items. (RT #29269)
830 - added tests for this
832 * Moose::Meta::Method::Accessor
833 - fixed issue with generated accessor code making
834 assumptions about hash based classes (thanks to dexter)
836 * Moose::Coookbook::Snacks
837 - these are bits of documentation, not quite as big as
838 Recipes but which have no clear place in the module docs.
839 So they are Snacks! (horray for castaway++)
841 * Moose::Cookbook::Recipe4
842 - updated it to use the new ArrayRef[MyType] construct
843 - updated the accompanying test as well
845 +++ Major Refactor of the Type Constraint system +++
846 +++ with new features added as well +++
848 * Moose::Util::TypeConstraint
849 - no longer uses package variable to keep track of
850 the type constraints, now uses the an instance of
851 Moose::Meta::TypeConstraint::Registry to do it
852 - added more sophisticated type notation parsing
854 - added tests for this
856 * Moose::Meta::TypeConstraint
857 - some minor adjustments to make subclassing easier
858 - added the package_defined_in attribute so that we
859 can track where the type constraints are created
861 * Moose::Meta::TypeConstraint::Union
862 - this is now been refactored to be a subclass of
863 Moose::Meta::TypeConstraint
865 * Moose::Meta::TypeCoercion::Union
866 - this has been added to service the newly refactored
867 Moose::Meta::TypeConstraint::Union and is itself
868 a subclass of Moose::Meta::TypeCoercion
870 * Moose::Meta::TypeConstraint::Parameterized
871 - added this module (taken from MooseX::AttributeHelpers)
872 to help construct nested collection types
873 - added tests for this
875 * Moose::Meta::TypeConstraint::Registry
876 - added this class to keep track of type constraints
878 0.25 Mon. Aug. 13, 2007
880 - Documentation update to reference Moose::Util::TypeConstraints
881 under 'isa' in 'has' for how to define a new type
884 * Moose::Meta::Attribute
885 - required attributes now will no longer accept undef
886 from the constructor, even if there is a default and lazy
887 - added tests for this
888 - default subroutines must return a value which passes the
890 - added tests for this
892 * Moose::Meta::Attribute
893 * Moose::Meta::Method::Constructor
894 * Moose::Meta::Method::Accessor
895 - type-constraint tests now handle overloaded objects correctly
897 - added tests for this (thanks to EvanCarroll)
899 * Moose::Meta::TypeConstraint::Union
900 - added (has_)hand_optimized_constraint to this class so that
901 it behaves as the regular Moose::Meta::TypeConstraint does.
904 - large refactoring of this code
905 - added several more tests
906 - tests for subtle conflict resolition issues
907 added, but not currently running
910 * Moose::Cookbook::Recipe7
911 - added new recipe for augment/inner functionality
913 - added test for this
916 - a formal definition of roles (still in progress)
919 - utilities for easier working with Moose classes
920 - added tests for these
923 - This contains Moose specific test functions
924 - added tests for these
926 0.24 Tues. July 3, 2007
927 ~ Some doc updates/cleanup ~
929 * Moose::Meta::Attribute
930 - added support for roles to be given as parameters
931 to the 'handles' option.
932 - added tests and docs for this
933 - the has '+foo' attribute form now accepts changes to
934 the lazy option, and the addition of a handles option
935 (but not changing the handles option)
936 - added tests and docs for this
939 - required methods are now fetched using find_method_by_name
940 so that required methods can come from superclasses
941 - adjusted tests for this
943 0.23 Mon. June 18, 2007
944 * Moose::Meta::Method::Constructor
945 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
947 - Modify make_immutable to work with the new Class::MOP immutable
948 mechanism + POD + very basic test (groditi)
949 * Moose::Meta::Attribute
950 - Fix handles to use goto() so that caller() comes out properly on
951 the other side (perigrin)
953 0.22 Thurs. May 31, 2007
954 * Moose::Util::TypeConstraints
955 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
956 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
957 prototypes for functions
958 - added the ClassName type constraint, this checks for strings
959 which will respond true to ->isa(UNIVERSAL).
960 - added tests and docs for this
961 - subtyping just in name now works correctly by making the
962 default for where be { 1 }
963 - added test for this
965 * Moose::Meta::Method::Accessor
966 - coerce and lazy now work together correctly, thanks to
967 merlyn for finding this bug
968 - tests added for this
969 - fix reader presedence bug in Moose::Meta::Attribute + tests
972 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
973 a HASH-ref and missed. This produces better error messages then
974 having it die cause undef is not a HASH.
975 - added tests for this
977 0.21 Thursday, May 2nd, 2007
979 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
980 - modified unimport to remove super and inner along with the rest
981 - altered unimport tests to handle this
984 - altered super export to populate SUPER_SLOT
987 - altered augment and override modifier application to use *_SLOT
988 - modified tests for these to unimport one test class each to test
991 - fixed issue where custom attribute metaclasses
992 where not handled correctly in roles
993 - added tests for this
996 - fixed issue where extending metaclasses with
997 roles would blow up. Thanks to Aankhen`` for
998 finding this insidious error, and it's solution.
1000 ~~ lots of spelling and grammer fixes in the docs,
1001 many many thanks to rlb3 and Aankhen for these :)
1003 0.20 Friday, April 6th, 2007
1004 >> I messed up the SKIP logic in one test
1005 so this release is just to fix that.
1008 - 'has' now also accepts an ARRAY ref
1009 to create multiple attrs (see docs)
1010 (thanks to konobi for this)
1011 - added tests and docs
1013 0.19 Thurs. April 5th, 2007
1014 ~~ More documentation updates ~~
1016 * Moose::Util::TypeConstraints
1017 - 'type' now supports messages as well
1018 thanks to phaylon for finding this
1019 - added tests for this
1020 - added &list_all_type_constraints and
1021 &list_all_builtin_type_constraints
1022 functions to facilitate introspection.
1024 * Moose::Meta::Attribute
1025 - fixed regexp 'handles' declarations
1026 to build the list of delegated methods
1027 correctly (and not override important
1028 things like &new) thanks to ashleyb
1030 - added tests and docs for this
1031 - added the 'documentation' attributes
1032 so that you can actually document your
1033 attributes and inspect them through the
1035 - added tests and docs for this
1037 * Moose::Meta::Class
1038 - when loading custom attribute metaclasses
1039 it will first look in for the class in the
1040 Moose::Meta::Attribute::Custom::$name, and
1041 then default to just loading $name.
1042 - added tests and docs for this
1044 * Moose::Meta::TypeConstraint
1045 - type constraints now stringify to their names.
1046 - added test for this
1049 - added tests to assure we work with Module::Refresh
1050 - added stricter test skip logic in the Moose POOP
1051 test, ask Rob Kinyon why.
1052 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1054 0.18 Sat. March 10, 2007
1055 ~~ Many, many documentation updates ~~
1058 - We now use Class::MOP::load_class to
1060 - added tests to show types and subtypes
1061 working with Declare::Constraints::Simple
1062 and Test::Deep as constraint engines.
1065 !! You must have Class::MOP 0.37_001 !!
1066 !! for this developer release to work !!
1068 This release was primarily adding the immutable
1069 feature to Moose. An immutable class is one which
1070 you promise not to alter. When you set the class
1071 as immutable it will perform various bits of
1072 memoization and inline certain part of the code
1073 (constructors, destructors and accessors). This
1074 minimizes (and in some cases totally eliminates)
1075 one of Moose's biggest performance hits. This
1076 feature is not on by default, and is 100% optional.
1077 It has several configurable bits as well, so you
1078 can pick and choose to your specific needs.
1080 The changes involved in this were fairly wide and
1081 highly specific, but 100% backwards compatible, so
1082 I am not going to enumerate them here. If you are
1083 truely interested in what was changed, please do
1086 0.17 Tues. Nov. 14, 2006
1087 * Moose::Meta::Method::Accessor
1088 - bugfix for read-only accessors which
1089 are have a type constraint and lazy.
1090 Thanks to chansen for finding it.
1092 0.16 Tues. Nov. 14, 2006
1094 There are some speed improvements in this release,
1095 but they are only the begining, so stay tuned.
1098 - BUILDALL and DEMOLISHALL no longer get
1099 called unless they actually need to be.
1100 This gave us a signifigant speed boost
1101 for the cases when there is no BUILD or
1102 DEMOLISH method present.
1104 * Moose::Util::TypeConstraints
1105 * Moose::Meta::TypeConstraint
1106 - added an 'optimize_as' option to the
1107 type constraint, which allows for a
1108 hand optimized version of the type
1109 constraint to be used when possible.
1110 - Any internally created type constraints
1111 now provide an optimized version as well.
1113 0.15 Sun. Nov. 5, 2006
1115 This version of Moose *must* have Class::MOP 0.36 in order
1116 to work correctly. A number of small internal tweaks have
1117 been made in order to be compatible with that release.
1119 * Moose::Util::TypeConstraints
1120 - added &unimport so that you can clean out
1121 your class namespace of these exported
1124 * Moose::Meta::Class
1125 - fixed minor issue which occasionally
1126 comes up during global destruction
1128 - moved Moose::Meta::Method::Overriden into
1132 - moved Moose::Meta::Role::Method into
1135 * Moose::Meta::Attribute
1136 - changed how we do type checks so that
1137 we reduce the overall cost, but still
1140 - moved accessor generation methods to
1141 Moose::Meta::Method::Accessor to
1142 conform to the API changes from
1145 * Moose::Meta::TypeConstraint
1146 - changed how constraints are compiled
1147 so that we do less recursion and more
1148 iteration. This makes the type check
1150 - moved Moose::Meta::TypeConstraint::Union
1153 * Moose::Meta::Method::Accessor
1154 - created this from methods formerly found in
1155 Moose::Meta::Attribute
1157 * Moose::Meta::Role::Method
1158 - moved this from Moose::Meta::Role
1160 * Moose::Meta::Method::Overriden
1161 - moved this from Moose::Meta::Class
1163 * Moose::Meta::TypeConstraint::Union
1164 - moved this from Moose::Meta::TypeConstraint
1166 0.14 Mon. Oct. 9, 2006
1168 * Moose::Meta::Attribute
1169 - fixed lazy attributes which were not getting
1170 checked with the type constraint (thanks ashley)
1171 - added tests for this
1172 - removed the over-enthusiastic DWIMery of the
1173 automatic ArrayRef and HashRef defaults, it
1174 broke predicates in an ugly way.
1175 - removed tests for this
1177 0.13 Sat. Sept. 30, 2006
1179 This version of Moose *must* have Class::MOP 0.35 in order
1180 to work correctly. A number of small internal tweaks have
1181 been made in order to be compatible with that release.
1184 - Removed the use of UNIVERSAL::require to be a better
1185 symbol table citizen and remove a dependency
1186 (thanks Adam Kennedy)
1188 **~~ removed experimental & undocumented feature ~~**
1189 - commented out the 'method' and 'self' keywords, see the
1190 comments for more info.
1193 - added a FAQ and WTF files to document frequently
1194 asked questions and common problems
1196 * Moose::Util::TypeConstraints
1197 - added GlobRef and FileHandle type constraint
1198 - added tests for this
1200 * Moose::Meta::Attribute
1201 - if your attribute 'isa' ArrayRef of HashRef, and you have
1202 not explicitly set a default, then make the default DWIM.
1203 This will also work for subtypes of ArrayRef and HashRef
1205 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1206 - new test added for this (thanks to ashley)
1209 - added basic support for runtime role composition
1210 but this is still *highly experimental*, so feedback
1211 is much appreciated :)
1212 - added tests for this
1214 * Moose::Meta::TypeConstraint
1215 - the type constraint now handles the coercion process
1216 through delegation, this is to support the coercion
1219 * Moose::Meta::TypeConstraint::Union
1220 - it is now possible for coercions to be performed
1222 - added tests for this (thanks to konobi)
1224 * Moose::Meta::TypeCoercion
1225 - properly capturing error when type constraint
1229 - Scalar::Util 1.18 is bad on Win32, so temporarily
1230 only require version 1.17 for Win32 and cygwin.
1231 (thanks Adam Kennedy)
1233 0.12 Sat. Sept. 1, 2006
1235 - Recipe5 (subtypes & coercion) has been written
1238 - fixed "bad meta" error message to be more descriptive
1239 - fixed &unimport to not remove the &inner and &super
1240 keywords because we need to localize them.
1241 - fixed number of spelling/grammer issues, thanks Theory :)
1243 **~~ experimental & undocumented feature ~~**
1244 - added the method and self keywords, they are basically
1245 just sugar, and they may not stay around.
1248 - added &dump method to easily Data::Dumper
1251 * Moose::Meta::TypeConstraint
1252 - added the &is_a_type_of method to check both the current
1253 and the subtype of a method (similar to &isa with classes)
1256 - this is now a subclass of Class::MOP::Module, and no longer
1257 creates the _role_meta ugliness of before.
1258 - fixed tests to reflect this change
1260 0.11 Wed. July 12, 2006
1262 - added an &unimport method to remove all the keywords
1263 that Moose will import, simply add 'no Moose' to the
1264 bottom of your class file.
1267 - fixed some test failures caused by a forgotten test
1270 0.10 Thurs. July 6, 2006
1272 - improved error message when loading modules so
1273 it is less confusing when you load a role.
1274 - added &calculate_all_roles method to
1275 Moose::Meta::Class and Moose::Meta::Role
1278 This module has been tested against Class::MOP 0.30
1279 but it does not yet utilize the optimizations
1280 it makes available. Stay tuned for that ;)
1282 0.09_03 Fri. June 23, 2006
1283 ++ DEVELOPER RELEASE ++
1285 - 'use strict' and 'use warnings' are no longer
1286 needed in Moose classes, Moose itself will
1287 turn them on for you.
1288 - added tests for this
1289 - moved code from exported subs to private methods
1290 in Moose::Meta::Class
1293 - as with Moose, strict and warnings are
1294 automatically turned on for you.
1295 - added tests for this
1298 - now handles an edge case for override errors
1299 - added tests for this
1300 - added some more edge case tests
1302 0.09_02 Tues. May 16, 2006
1303 ++ DEVELOPER RELEASE ++
1305 - added prototypes to the exported subs
1309 - added prototypes to the exported subs
1312 * Moose::Util::TypeConstraints
1313 - cleaned up prototypes for the subs
1316 0.09_01 Fri. May 12, 2006
1317 ++ DEVELOPER RELEASE ++
1318 - This release works in combination with
1319 Class::MOP 0.29_01, it is a developer
1320 release because it uses the a new
1321 instance sub-protocol and a fairly
1322 complete Role implementation. It has
1323 not yet been optimized, so it slower
1324 the the previous CPAN version. This
1325 release also lacks good updated docs,
1326 the official release will have updated docs.
1329 - refactored the keyword exports
1330 - 'with' now checks Role validaity and
1331 accepts more than one Role at a time
1332 - 'extends' makes metaclass adjustments as
1333 needed to ensure metaclass compatability
1336 - refactored the keyword exports
1337 - 'with' now checks Role validaity and
1338 accepts more than one Role at a time
1340 * Moose::Util::TypeConstraints
1341 - added the 'enum' keyword for simple
1342 string enumerations which can be used as
1344 - see example of usage in t/202_example.t
1347 - more careful checking of params to new()
1350 - much work done on the role composition
1351 - many new tests for conflict detection
1352 and composition edge cases
1353 - not enough documentation, I suggest
1354 looking at the tests
1356 * Moose::Meta::Instance
1357 - added new Instance metaclass to support
1358 the new Class::MOP instance protocol
1360 * Moose::Meta::Class
1361 - some small changes to support the new
1363 - some small additions to support Roles
1365 * Moose::Meta::Attribute
1366 - some improvements to the accessor generation code
1368 - some small changes to support the new
1370 - (still somewhat) experimental delegation support
1371 with the 'handles' option
1372 - added several tests for this
1373 - no docs for this yet
1375 0.05 Thurs. April 27, 2006
1377 - keywords are now exported with Sub::Exporter
1378 thanks to chansen for this commit
1379 - has keyword now takes a 'metaclass' option
1380 to support custom attribute meta-classes
1381 on a per-attribute basis
1382 - added tests for this
1383 - the 'has' keyword not accepts inherited slot
1384 specifications (has '+foo'). This is still an
1385 experimental feature and probably not finished
1386 see t/038_attribute_inherited_slot_specs.t for
1387 more details, or ask about it on #moose
1388 - added tests for this
1391 - keywords are now exported with Sub::Exporter
1393 * Moose::Utils::TypeConstraints
1394 - reorganized the type constraint hierarchy, thanks
1395 to nothingmuch and chansen for his help and advice
1397 - added some tests for this
1398 - keywords are now exported with Sub::Exporter
1399 thanks to chansen for this commit
1401 * Moose::Meta::Class
1402 - due to changes in Class::MOP, we had to change
1403 construct_instance (for the better)
1405 * Moose::Meta::Attribute
1406 - due to changes in Class::MOP, we had to add the
1407 initialize_instance_slot method (it's a good thing)
1409 * Moose::Meta::TypeConstraint
1410 - added type constraint unions
1411 - added tests for this
1412 - added the is_subtype_of predicate method
1413 - added tests for this
1415 0.04 Sun. April 16th, 2006
1417 - Roles can now consume other roles
1418 - added tests for this
1419 - Roles can specify required methods now with
1420 the requires() keyword
1421 - added tests for this
1424 - ripped out much of it's guts ,.. much cleaner now
1425 - added required methods and correct handling of
1426 them in apply() for both classes and roles
1427 - added tests for this
1428 - no longer adds a does() method to consuming classes
1429 it relys on the one in Moose::Object
1430 - added roles attribute and some methods to support
1431 roles consuming roles
1433 * Moose::Meta::Attribute
1434 - added support for triggers on attributes
1435 - added tests for this
1436 - added support for does option on an attribute
1437 - added tests for this
1439 * Moose::Meta::Class
1440 - added support for attribute triggers in the
1442 - added tests for this
1445 - Moose no longer creates a subtype for your class
1446 if a subtype of the same name already exists, this
1447 should DWIM in 99.9999% of all cases
1449 * Moose::Util::TypeConstraints
1450 - fixed bug where incorrect subtype conflicts were
1452 - added test for this
1455 - this class can now be extended with 'use base' if
1456 you need it, it properly loads the metaclass class now
1457 - added test for this
1459 0.03_02 Wed. April 12, 2006
1461 - you must now explictly use Moose::Util::TypeConstraints
1462 it no longer gets exported for you automatically
1465 - new() now accepts hash-refs as well as key/value lists
1466 - added does() method to check for Roles
1467 - added tests for this
1469 * Moose::Meta::Class
1470 - added roles attribute along with the add_role() and
1472 - added tests for this
1475 - now adds a does() method to consuming classes
1476 which tests the class's hierarchy for roles
1477 - added tests for this
1479 0.03_01 Mon. April 10, 2006
1481 - added new Role recipe (no content yet, only code)
1484 - added 'with' keyword for Role support
1485 - added test and docs for this
1486 - fixed subtype quoting bug
1487 - added test for this
1491 - added test and docs
1493 * Moose::Util::TypeConstraints
1494 - added the message keyword to add custom
1495 error messages to type constraints
1498 - the meta role to support Moose::Role
1499 - added tests and docs
1501 * Moose::Meta::Class
1502 - moved a number of things from Moose.pm
1503 to here, they should have been here
1506 * Moose::Meta::Attribute
1507 - moved the attribute option macros here
1508 instead of putting them in Moose.pm
1510 * Moose::Meta::TypeConstraint
1511 - added the message attributes and the
1513 - added tests and docs for this
1515 0.03 Thurs. March 30, 2006
1517 - added the Moose::Cookbook with 5 recipes,
1518 describing all the stuff Moose can do.
1521 - fixed an issue with &extends super class loading
1522 it now captures errors and deals with inline
1523 packages correctly (bug found by mst, solution
1525 - added super/override & inner/augment features
1526 - added tests and docs for these
1529 - BUILDALL now takes a reference of the %params
1530 that are passed to &new, and passes that to
1533 * Moose::Util::TypeConstraints
1534 - Type constraints now survive runtime reloading
1535 - added test for this
1537 * Moose::Meta::Class
1538 - fixed the way attribute defaults are handled
1539 during instance construction (bug found by chansen)
1541 * Moose::Meta::Attribute
1542 - read-only attributes now actually enforce their
1543 read-only-ness (this corrected in Class::MOP as
1546 0.02 Tues. March 21, 2006
1548 - many more tests, fixing some bugs and
1550 - &extends now loads the base module with
1552 - added UNIVERSAL::require to the
1555 - each new Moose class will also create
1556 and register a subtype of Object which
1557 correspond to the new Moose class.
1558 - the 'isa' option in &has now only
1559 accepts strings, and will DWIM in
1562 * Moose::Util::TypeConstraints
1563 - added type coercion features
1564 - added tests for this
1565 - added support for this in attributes
1566 and instance construction
1568 - type construction no longer creates a
1569 function, it registers the type instead.
1570 - added several functions to get the
1574 - BUILDALL and DEMOLISHALL were broken
1575 because of a mis-named hash key, Whoops :)
1577 * Moose::Meta::Attribute
1578 - adding support for coercion in the
1579 autogenerated accessors
1581 * Moose::Meta::Class
1582 - adding support for coercion in the
1583 instance construction
1585 * Moose::Meta::TypeConstraint
1586 * Moose::Meta::TypeCoercion
1587 - type constraints and coercions are now
1588 full fledges meta-objects
1590 0.01 Wed. March 15, 2006
1591 - Moooooooooooooooooose!!!