1 Revision history for Perl extension Moose
3 0.55 Sun August 3, 2008
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)
14 * Moose::Util::TypeConstraints
15 - fix coerce to accept anon types like subtype can (mst)
18 - reorganized the recipes into sections - Basics, Roles, Meta,
19 Extending - and wrote abstracts for each section (Dave Rolsky)
21 * Moose::Cookbook::Basics::Recipe10
22 - A new recipe that demonstrates operator overloading
23 in combination with Moose. (bluefeet)
25 * Moose::Cookbook::Meta::Recipe1
26 - an introduction to what meta is and why you'd want to make
27 your own metaclass extensions (Dave Rolsky)
29 * Moose::Cookbook::Meta::Recipe4
30 - a very simple metaclass example (Dave Rolsky)
32 * Moose::Cookbook::Extending::Recipe1
33 - how to write a Moose-alike module to use your own object base
36 * Moose::Cookbook::Extending::Recipe2
37 - how to write modules with an API just like C<Moose.pm> (Dave
41 - Tons of fixes, both syntactical and grammatical (Dave
44 0.54 Thurs. July 3, 2008
45 ... this is not my day today ...
47 * Moose::Meta::Attribute
48 - fixed legal_options_for_inheritance such that
49 clone_and_inherit options still works for
50 Class::MOP::Attribute objects and therefore
51 does not break MooseX::AttributeHelpers
54 0.53 Thurs. July 3, 2008
55 * Whoops, I guess I should run 'make manifest' before
56 actually releasing the module. No actual changes
57 in this release, except the fact that it includes
58 the changes that I didn't include in the last
61 0.52 Thurs. July 3, 2008
63 - added "FEATURE REQUESTS" section to the Moose docs
64 to properly direct people (stevan) (RT #34333)
65 - making 'extends' croak if it is passed a Role since
66 this is not ever something you want to do
67 (fixed by stevan, found by obra)
68 - added tests for this (stevan)
71 - adding support for DOES (as in UNIVERSAL::DOES)
75 * Moose::Meta::Attribute
76 - added legal_options_for_inheritance (wreis)
77 - added tests for this (wreis)
79 * Moose::Cookbook::Snacks::*
80 - removed some of the unfinished snacks that should
81 not have been released yet. Added some more examples
82 to the 'Keywords' snack. (stevan)
84 * Moose::Cookbook::Style
85 - added general Moose "style guide" of sorts to the
86 cookbook (nothingmuch) (RT #34335)
89 - added more BUILDARGS tests (stevan)
91 0.51 Thurs. Jun 26, 2008
93 - add unimport so "no Moose::Role" actually does
96 * Moose::Meta::Role::Application::ToRole
97 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
98 order to provide its own implementation, that method still got
99 added to the list of required methods for consumers of
100 RoleB. Now an aliased method is only added to the list of
101 required methods if the role doing the aliasing does not
102 provide its own implementation. See Recipe 11 for an example
103 of all this. (Dave Rolsky)
104 - added tests for this
106 * Moose::Meta::Method::Constructor
107 - when a single argument that wasn't a hashref was provided to
108 an immutabilized constructor, the error message was very
109 unhelpful, as opposed to the non-immutable error. Reported by
111 - added test for this (Dave Rolsky)
113 * Moose::Meta::Attribute
114 - added support for meta_attr->does("ShortAlias") (sartak)
115 - added tests for this (sartak)
116 - moved the bulk of the `handles` handling to the new
117 install_delegation method (Stevan)
120 - Added BUILDARGS, a new step in new()
122 * Moose::Meta::Role::Application::RoleSummation
123 - fix typos no one ever sees (sartak)
125 * Moose::Util::TypeConstraints
126 * Moose::Meta::TypeConstraint
127 * Moose::Meta::TypeCoercion
128 - Attempt to work around the ??{ } vs. threads issue
130 - Some null_constraint optimizations
132 0.50 Thurs. Jun 11, 2008
133 - Fixed a version number issue by bumping all modules
136 0.49 Thurs. Jun 11, 2008
137 !! This version now approx. 20-25% !!
138 !! faster with new Class::MOP 0.59 !!
140 * Moose::Meta::Attribute
141 - fixed how the is => (ro|rw) works with
142 custom defined reader, writer and accessor
144 - added docs for this (TODO).
145 - added tests for this (Thanks to Penfold)
146 - added the custom attribute alias for regular
147 Moose attributes which is "Moose"
148 - fix builder and default both being used
153 Moose::Meta::Attribute
155 Moose::Meta::Role::Composite
156 Moose::Util::TypeConstraints
157 - switched usage of reftype to ref because
161 - changing add_package_symbol to use the new
165 - fixed how DEMOLISHALL is called so that it
166 can be overrided in subclasses (thanks to Sartak)
167 - added test for this (thanks to Sartak)
169 * Moose::Util::TypeConstraints
170 - move the ClassName type check code to
171 Class::MOP::is_class_loaded (thanks to Sartak)
173 * Moose::Cookbook::Recipe11
174 - add tests for this (thanks to tokuhirom)
176 0.48 Thurs. May 29, 2008
177 (early morning release engineering)--
179 - fixing the version in Moose::Meta::Method::Destructor
180 which was causing the indexer to choke
182 0.47 Thurs. May 29, 2008
183 (late night release engineering)--
185 - fixing the version is META.yml, no functional
186 changes in this release
188 0.46 Wed. May 28, 2008
189 !! This version now approx. 20-25% !!
190 !! faster with new Class::MOP 0.57 !!
193 - some optimizations of the &initialize method
194 since it is called so often by &meta
198 - now use the get_all_package_symbols from the
199 updated Class::MOP, test suite is now 10 seconds
202 * Moose::Meta::Method::Destructor
203 - is_needed can now also be called as a class
204 method for immutablization to check if the
205 destructor object even needs to be created
208 * Moose::Meta::Method::Destructor
209 Moose::Meta::Method::Constructor
210 - added more descriptive error message to help
211 keep people from wasting time tracking an error
212 that is easily fixed by upgrading.
214 0.45 Saturday, May 24, 2008
216 - Because of work in Class::MOP 0.56, all
217 XS based functionality is now optional
218 and a Pure Perl version is supplied
219 - the CLASS_MOP_NO_XS environment variable
220 can now be used to force non-XS versions
222 - several of the packages have been tweaked
223 to take care of this, mostly we added
224 support for the package_name and name
225 variables in all the Method metaclasses
226 - before/around/after method modifiers now
227 support regexp matching of names
228 (thanks to Takatoshi Kitano)
229 - tests added for this
230 - NOTE: this only works for classes, it
231 is currently not supported in roles,
232 but, ... patches welcome
233 - All usage of Carp::confess have been replaced
234 by Carp::croak in the "keyword" functions since
235 the stack trace is usually not helpful
238 - All usage of Carp::confess have been replaced
239 by Carp::croak in the "keyword" functions since
240 the stack trace is usually not helpful
241 - The 'has' keyword for roles now accepts the
242 same array ref form that Moose.pm does
243 (has [qw/foo bar/] => (is => 'rw', ...))
244 - added test for this
246 * Moose::Meta::Attribute
247 - trigger on a ro-attribute is no longer an
248 error, as it's useful to trigger off of the
252 - added same 'add_package_symbol' fix as in
256 - does_role now handles non-Moose classes
258 - added tests for this
259 - added the 'add_method_modifier' function
260 (thanks to Takatoshi Kitano)
262 * Moose::Util::TypeConstraints
263 - subtypes of parameterizable types now are
264 themselves parameterizable types
266 * Moose::Meta::Method::Constructor
267 - fixed bug where trigger was not being
268 called by the inlined immutable
270 - added test for this (thanks to Caelum)
272 * Moose::Meta::Role::Application::ToInstance
273 - now uses the metaclass of the instance
274 (if possible) to create the anon-class
275 (thanks Jonathan Rockway)
277 * Moose::Cookbook::Recipe22
278 - added the meta-attribute trait recipe
282 - fixed hash-ordering test bug that was
283 causing occasional cpantester failures
284 - renamed the t/000_recipe/*.t tests to be
285 more descriptive (thanks to Sartak)
287 0.44 Sat. May 10, 2008
289 - made make_immutable warning cluck to
290 show where the error is (thanks mst)
293 - BUILDALL and DEMOLISHALL now call
294 ->body when looping through the
295 methods, to avoid the overloaded
297 - fixed issue where DEMOLISHALL was
298 eating the $@ values, and so not
299 working correctly, it still kind of
300 eats them, but so does vanilla perl
301 - added tests for this
303 * Moose::Cookbook::Recipe7
304 - added new recipe for immutable
305 functionality (thanks Dave Rolsky)
307 * Moose::Cookbook::Recipe9
308 - added new recipe for builder and
309 lazy_build (thanks Dave Rolsky)
311 * Moose::Cookbook::Recipe11
312 - added new recipe for method aliasing
313 and exclusion with Roles (thanks Dave Rolsky)
316 - fixed Win32 test failure (thanks spicyjack)
318 ~ removed Build.PL and Module::Build compat
319 since Module::Install has done that.
321 0.43 Wed. April, 30, 2008
323 drink more coffee before
324 doing release engineering
326 - whoops, forgot to do the smolder tests,
327 and we broke some of the custom meta-attr
328 modules. This fixes that.
330 0.42 Mon. April 28, 2008
331 - some bad tests slipped by, nothing else
332 changed in this release (cpantesters++)
334 - upped the Class::MOP dependency to 0.55
335 since we have tests which need the C3
338 0.41 Mon. April 28, 2008
339 ~~ numerous documentation updates ~~
341 - Changed all usage of die to Carp::croak for better
342 error reporting (initial patch by Tod Hagan)
345 - the make_immutable keyword is now deprecated, don't
346 use it in any new code and please fix your old code
347 as well. There will be 2 releases, and then it will
353 - refactored the way inner and super work to avoid
354 any method/@ISA cache penalty (nothingmuch)
357 - fixing &new_object to make sure trigger gets the
358 coerced value (spotted by Charles Alderman on the
360 - added test for this
362 * Moose::Meta::Method::Constructor
363 - immutable classes which had non-lazy attributes were calling
364 the default generating sub twice in the constructor. (bug
365 found by Jesse Luehrs, fixed by Dave Rolsky)
366 - added tests for this (Dave Rolsky)
367 - fix typo in initialize_body method (nothingmuch)
369 * Moose::Meta::Method::Destructor
370 - fix typo in initialize_body method (nothingmuch)
372 * Moose::Meta::Method::Overriden
373 Moose::Meta::Method::Augmented
374 - moved the logic for these into their own
375 classes (nothingmuch)
377 * Moose::Meta::Attribute
378 - inherited attributes may now be extended without
379 restriction on the type ('isa', 'does') (Sartak)
380 - added tests for this (Sartak)
381 - when an attribute property is malformed (such as lazy without
382 a default), give the name of the attribute in the error
384 - added the &applied_traits and &has_applied_traits methods
385 to allow introspection of traits
386 - added tests for this
387 - moved 'trait' and 'metaclass' argument handling to here from
389 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
390 '+foo' syntax) (nothingmuch)
391 - added tests for this (t0m)
394 - localize $@ inside DEMOLISHALL to avoid it
395 eating $@ (found by Ernesto)
396 - added test for this (thanks to Ernesto)
398 * Moose::Util::TypeConstraints
399 - &find_type_constraint now DWIMs when given an
400 type constraint object or name (nothingmuch)
401 - &find_or_create_type_constraint superseded with a number of more
403 - find_or_create_{isa,does}_type_constraint
404 - find_or_parse_type_constraint
406 * Moose::Meta::TypeConstraint
407 Moose::Meta::TypeConstraint::Class
408 Moose::Meta::TypeConstraint::Role
409 Moose::Meta::TypeConstraint::Enum
410 Moose::Meta::TypeConstraint::Union
411 Moose::Meta::TypeConstraint::Parameterized
412 - added the &equals method for comparing two type
413 constraints (nothingmuch)
414 - added tests for this (nothingmuch)
416 * Moose::Meta::TypeConstraint
417 - add the &parents method, which is just an alias to &parent.
418 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
420 * Moose::Meta::TypeConstraint::Class
421 - added the class attribute for introspection purposes
423 - added tests for this
425 * Moose::Meta::TypeConstraint::Enum
426 Moose::Meta::TypeConstraint::Role
427 - broke these out into their own classes (nothingmuch)
429 * Moose::Cookbook::Recipe*
430 - fixed references to test file locations in the POD
431 and updated up some text for new Moose features
435 - Added &resolve_metaclass_alias, a helper function for finding an actual
436 class for a short name (e.g. in the traits list)
438 0.40 Fri. March 14, 2008
439 - I hate Pod::Coverage
441 0.39 Fri. March 14, 2008
443 - documenting the use of '+name' with attributes
444 that come from recently composed roles. It makes
445 sense, people are using it, and so why not just
446 officially support it.
447 - fixing the 'extends' keyword so that it will not
448 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
451 - added the perl -Moose=+Class::Name feature to allow
452 monkeypatching of classes in one liners
455 - fixing the 'apply_all_roles' keyword so that it will not
456 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
459 - added ->create method which now supports roles (thanks to jrockway)
460 - added tests for this
461 - added ->create_anon_class which now supports roles and caching of
462 the results (thanks to jrockway)
463 - added tests for this
464 - made ->does_role a little more forgiving when it is
465 checking a Class::MOP era metaclasses.
467 * Moose::Meta::Role::Application::ToInstance
468 - it is now possible to pass extra params to be used when
469 a role is applied to an the instance (rebless_params)
470 - added tests for this
472 * Moose::Util::TypeConstraints
473 - class_type now accepts an optional second argument for a
474 custom message. POD anotated accordingly (groditi)
475 - added tests for this
476 - it is now possible to make anon-enums by passing 'enum' an
477 ARRAY ref instead of the $name => @values. Everything else
479 - added tests for this
482 - making test for using '+name' on attributes consumed
483 from a role, it works and makes sense too.
485 * Moose::Meta::Attribute
486 - fix handles so that it doesn't return nothing
487 when the method cannot be found, not sure why
488 it ever did this originally, this means we now
489 have slightly better support for AUTOLOADed
491 - added more delegation tests
492 - adding ->does method to this so as to better
493 support traits and their introspection.
494 - added tests for this
497 - localizing the Data::Dumper configurations so
498 that it does not pollute others (RT #33509)
499 - made ->does a little more forgiving when it is
500 passed Class::MOP era metaclasses.
502 0.38 Fri. Feb. 15, 2008
503 * Moose::Meta::Attribute
504 - fixed initializer to correctly do
505 type checking and coercion in the
507 - added tests for this
510 - fixed some finicky tests (thanks to konobi)
512 0.37 Thurs. Feb. 14, 2008
514 - fixed some details in Moose::init_meta
515 and its superclass handling (thanks thepler)
516 - added tests for this (thanks thepler)
517 - 'has' now dies if you don't pass in name
519 - added the 'make_immutable' keyword as a shortcut
523 Moose::Meta::Method::Constructor
524 Moose::Meta::Attribute
525 - making (init_arg => undef) work here too
526 (thanks to nothingmuch)
528 * Moose::Meta::Attribute
529 Moose::Meta::Method::Constructor
530 Moose::Meta::Method::Accessor
531 - make lazy attributes respect attr initializers (rjbs)
532 - added tests for this
534 * Moose::Util::TypeConstraints
535 Moose::Util::TypeConstraints::OptimizedConstraints
536 Moose::Meta::TypeConstraints
537 Moose::Meta::Attribute
538 Moose::Meta::Method::Constructor
539 Moose::Meta::Method::Accessor
540 - making type errors use the
541 assigned message (thanks to Sartak)
542 - added tests for this
544 * Moose::Meta::Method::Destructor
545 - making sure DESTROY gets inlined properly
546 with successive DEMOLISH calls (thanks to manito)
548 * Moose::Meta::Attribute
549 Moose::Meta::Method::Accessor
550 - fixed handling of undef with type constraints
552 - added tests for this
555 - added &get_all_init_args and &get_all_attribute_values
556 (thanks to Sartak and nothingmuch)
558 0.36 Sat. Jan. 26, 2008
560 Moose::Meta::Attribute
561 - role type tests now support when roles are
562 applied to non-Moose classes (found by ash)
563 - added tests for this (thanks to ash)
564 - couple extra tests to boost code coverage
566 * Moose::Meta::Method::Constructor
567 - improved fix for handling Class::MOP attributes
568 - added test for this
571 - handled the add_attribute($attribute_meta_object)
573 - added test for this
575 0.35 Tues. Jan. 22, 2008
576 * Moose::Meta::Method::Constructor
577 - fix to make sure even Class::MOP attributes
578 are handled correctly (Thanks to Dave Rolsky)
579 - added test for this (also Dave Rolsky)
582 - improved error message on _apply_all_roles,
583 you should now use Moose::Util::apply_all_roles
584 and you shouldnt have been using a _ prefixed
585 method in the first place ;)
587 0.34 Mon. Jan. 21, 2008
588 ~~~ more misc. doc. fixes ~~~
589 ~~ updated copyright dates ~~
591 Moose is now a postmodern object system :)
592 - (see the POD for details)
594 * <<Role System Refactoring>>
595 - this release contains a major reworking and
596 cleanup of the role system
597 - 100% backwards compat.
598 - Role application now restructured into seperate
599 classes based on type of applicants
600 - Role summation (combining of more than one role)
601 is much cleaner and anon-classes are no longer
603 - new Composite role metaclass
604 - runtime application of roles to instances
605 is now more efficient and re-uses generated
606 classes when applicable
608 * <<New Role composition features>>
609 - methods can now be excluded from a given role
611 - methods can now be aliased to another name (and
612 still retain the original as well)
614 * Moose::Util::TypeConstraints::OptimizedConstraints
615 - added this module (see above)
618 - fixed the &_process_attribute method to be called
619 by &add_attribute, so that the API is now correct
621 * Moose::Meta::Method::Accessor
622 - fixed bug when passing a list of values to
623 an accessor would get (incorrectly) ignored.
624 Thanks to Sartak for finding this ;)
625 - added tests for this (Sartak again)
627 * Moose::Meta::Method::Accessor
628 Moose::Meta::Method::Constructor
629 Moose::Meta::Attribute
630 Moose::Meta::TypeConstraint
631 Moose::Meta::TypeCoercion
632 - lots of cleanup of such things as:
634 - type constraint handling
635 - error handling/messages
636 (thanks to nothingmuch)
638 * Moose::Meta::TypeConstraint::Parameterizable
639 - added this module to support the refactor
640 in Moose::Meta::TypeConstraint::Parameterized
642 * Moose::Meta::TypeConstraint::Parameterized
643 - refactored how these types are handled so they
644 are more generic and not confined to ArrayRef
648 - shortened some file names for better VMS support (RT #32381)
650 0.33 Fri. Dec. 14, 2007
651 !! Moose now loads 2 x faster !!
652 !! with new Class::MOP 0.49 !!
654 ++ new oose.pm module to make command line
655 Moose-ness easier (see POD docs for more)
659 - several tweaks to take advantage of the
660 new method map caching in Class::MOP
662 * Moose::Meta::TypeConstraint::Parameterized
663 - allow subtypes of ArrayRef and HashRef to
664 be used as a container (sartak)
665 - added tests for this
666 - basic support for coercion to ArrayRef and
667 HashRef for containers (sartak)
668 - added tests for this
670 * Moose::Meta::TypeCoercion
671 - coercions will now create subtypes as needed
672 so you can now add coercions to parameterized
673 types without having to explictly define them
674 - added tests for this
676 * Moose::Meta::Method::Accessor
677 - allow subclasses to decide whether we need
678 to copy the value into a new variable (sartak)
680 0.32 Tues. Dec. 4, 2007
681 * Moose::Util::TypeConstraints
682 - fixing how subtype aliases of unions work
683 they should inherit the parent's coercion
684 - added tests for this
685 - you can now define multiple coercions on
686 a single type at different times instead of
687 having to do it all in one place
688 - added tests for this
690 * Moose::Meta::TypeConstraint
691 - there is now a default constraint of sub { 1 }
692 instead of Moose::Util::TypeConstraints setting
695 * Moose::Meta::TypeCoercion
696 * Moose::Meta::TypeCoercion::Union
697 - added the &has_coercion_for_type and
698 &add_type_coercions methods to support the
699 new features above (although you cannot add
700 more type coercions for Union types)
702 0.31 Mon. Nov. 26, 2007
703 * Moose::Meta::Attribute
704 - made the +attr syntax handle extending types with
705 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
706 now works if the original foo is an ArrayRef.
707 - added tests for this.
708 - delegation now works even if the attribute does not
709 have a reader method using the get_read_method_ref
710 method from Class::MOP::Attribute.
711 - added tests for this
712 - added docs for this
714 * Moose::Util::TypeConstraints
715 - passing no "additional attribute info" to
716 &find_or_create_type_constraint will no longer
717 attempt to create an __ANON__ type for you,
718 instead it will just return undef.
719 - added docs for this
721 0.30 Fri. Nov. 23, 2007
722 * Moose::Meta::Method::Constructor
723 -builder related bug in inlined constructor. (groditi)
725 * Moose::Meta::Method::Accessor
726 - genereate unnecessary calls to predicates and refactor
727 code generation for runtime speed (groditi)
729 * Moose::Util::TypeConstraints
730 - fix ClassName constraint to introspect symbol table (mst)
731 - added more tests for this (mst)
732 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
734 - added tests for this
737 - adding the link to Recipie 11 (written by Sartak)
738 - adding test for SYNOPSIS code
741 - New tests for builder bug. Upon instantiation, if an
742 attribute had a builder, no value and was not lazy the
743 builder default was not getting run, oops. (groditi)
745 0.29 Tues. Nov. 13, 2007
746 * Moose::Meta::Attribute
747 - Fix error message on missing builder method (groditi)
749 * Moose::Meta::Method::Accessor
750 - Fix error message on missing builder method (groditi)
753 - Add test to check for the correct error message when
754 builder method is missing (groditi)
756 0.28 Tues. Nov. 13, 2007
757 - 0.27 packaged incorrectly (groditi)
759 0.27 Tues. Nov. 13, 2007
760 * Moose::Meta::Attribute
761 - Added support for the new builder option (groditi)
762 - Added support for lazy_build option (groditi)
763 - Changed slot initialization for predicate changes (groditi)
765 * Moose::Meta::Method::Accessor
766 - Added support for lazy_build option (groditi)
767 - Fix inline methods to work with corrected predicate
770 * Moose::Meta::Method::Constructor
771 - Added support for lazy_build option (groditi)
774 - tests for builder and lazy_build (groditi)
776 * fixing some misc. bits in the docs that
777 got mentioned on CPAN Forum & perlmonks
780 - fixed how required methods are handled
781 when they encounter overriden or modified
782 methods from a class (thanks to confound).
783 - added tests for this
785 * Moose::Util::TypeConstraint
786 - fixed the type notation parser so that
787 the | always creates a union and so is
788 no longer a valid type char (thanks to
789 konobi, mugwump and #moose for working
791 - added more tests for this
793 0.26 Thurs. Sept. 27, 2007
796 * Parameterized Types
797 We now support parameterized collection types, such as:
798 ArrayRef[Int] # array or integers
799 HashRef[Object] # a hash with object values
800 They can also be nested:
801 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
802 And work with the type unions as well:
803 ArrayRef[Int | Str] # array of integers of strings
805 * Better Framework Extendability
806 Moose.pm is now "extendable" such that it is now much
807 easier to extend the framework and add your own keywords
808 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
809 section of the Moose.pm docs.
812 In an effort to begin documenting some of the various
813 details of Moose as well as some common idioms, we have
814 created Moose::Cookbook::Snacks as a place to find
815 small (easily digestable) nuggets of Moose code.
818 ~ Several doc updates/cleanup thanks to castaway ~
820 - converted build system to use Module::Install instead of
821 Module::Build (thanks to jrockway)
824 - added all the meta classes to the immutable list and
825 set it to inline the accessors
826 - fix import to allow Sub::Exporter like { into => }
827 and { into_level => } (perigrin)
828 - exposed and documented init_meta() to allow better
829 embedding and extending of Moose (perigrin)
832 - complete re-organization of the test suite
833 - added some new tests as well
834 - finally re-enabled the Moose::POOP test since
835 the new version of DBM::Deep now works again
839 - fixed very odd and very nasty recursion bug with
841 - added tests for this (eilara)
843 * Moose::Meta::Attribute
844 Moose::Meta::Method::Constructor
845 Moose::Meta::Method::Accessor
846 - fixed issue with overload::Overloaded getting called
847 on non-blessed items. (RT #29269)
848 - added tests for this
850 * Moose::Meta::Method::Accessor
851 - fixed issue with generated accessor code making
852 assumptions about hash based classes (thanks to dexter)
854 * Moose::Coookbook::Snacks
855 - these are bits of documentation, not quite as big as
856 Recipes but which have no clear place in the module docs.
857 So they are Snacks! (horray for castaway++)
859 * Moose::Cookbook::Recipe4
860 - updated it to use the new ArrayRef[MyType] construct
861 - updated the accompanying test as well
863 +++ Major Refactor of the Type Constraint system +++
864 +++ with new features added as well +++
866 * Moose::Util::TypeConstraint
867 - no longer uses package variable to keep track of
868 the type constraints, now uses the an instance of
869 Moose::Meta::TypeConstraint::Registry to do it
870 - added more sophisticated type notation parsing
872 - added tests for this
874 * Moose::Meta::TypeConstraint
875 - some minor adjustments to make subclassing easier
876 - added the package_defined_in attribute so that we
877 can track where the type constraints are created
879 * Moose::Meta::TypeConstraint::Union
880 - this is now been refactored to be a subclass of
881 Moose::Meta::TypeConstraint
883 * Moose::Meta::TypeCoercion::Union
884 - this has been added to service the newly refactored
885 Moose::Meta::TypeConstraint::Union and is itself
886 a subclass of Moose::Meta::TypeCoercion
888 * Moose::Meta::TypeConstraint::Parameterized
889 - added this module (taken from MooseX::AttributeHelpers)
890 to help construct nested collection types
891 - added tests for this
893 * Moose::Meta::TypeConstraint::Registry
894 - added this class to keep track of type constraints
896 0.25 Mon. Aug. 13, 2007
898 - Documentation update to reference Moose::Util::TypeConstraints
899 under 'isa' in 'has' for how to define a new type
902 * Moose::Meta::Attribute
903 - required attributes now will no longer accept undef
904 from the constructor, even if there is a default and lazy
905 - added tests for this
906 - default subroutines must return a value which passes the
908 - added tests for this
910 * Moose::Meta::Attribute
911 * Moose::Meta::Method::Constructor
912 * Moose::Meta::Method::Accessor
913 - type-constraint tests now handle overloaded objects correctly
915 - added tests for this (thanks to EvanCarroll)
917 * Moose::Meta::TypeConstraint::Union
918 - added (has_)hand_optimized_constraint to this class so that
919 it behaves as the regular Moose::Meta::TypeConstraint does.
922 - large refactoring of this code
923 - added several more tests
924 - tests for subtle conflict resolition issues
925 added, but not currently running
928 * Moose::Cookbook::Recipe7
929 - added new recipe for augment/inner functionality
931 - added test for this
934 - a formal definition of roles (still in progress)
937 - utilities for easier working with Moose classes
938 - added tests for these
941 - This contains Moose specific test functions
942 - added tests for these
944 0.24 Tues. July 3, 2007
945 ~ Some doc updates/cleanup ~
947 * Moose::Meta::Attribute
948 - added support for roles to be given as parameters
949 to the 'handles' option.
950 - added tests and docs for this
951 - the has '+foo' attribute form now accepts changes to
952 the lazy option, and the addition of a handles option
953 (but not changing the handles option)
954 - added tests and docs for this
957 - required methods are now fetched using find_method_by_name
958 so that required methods can come from superclasses
959 - adjusted tests for this
961 0.23 Mon. June 18, 2007
962 * Moose::Meta::Method::Constructor
963 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
965 - Modify make_immutable to work with the new Class::MOP immutable
966 mechanism + POD + very basic test (groditi)
967 * Moose::Meta::Attribute
968 - Fix handles to use goto() so that caller() comes out properly on
969 the other side (perigrin)
971 0.22 Thurs. May 31, 2007
972 * Moose::Util::TypeConstraints
973 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
974 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
975 prototypes for functions
976 - added the ClassName type constraint, this checks for strings
977 which will respond true to ->isa(UNIVERSAL).
978 - added tests and docs for this
979 - subtyping just in name now works correctly by making the
980 default for where be { 1 }
981 - added test for this
983 * Moose::Meta::Method::Accessor
984 - coerce and lazy now work together correctly, thanks to
985 merlyn for finding this bug
986 - tests added for this
987 - fix reader presedence bug in Moose::Meta::Attribute + tests
990 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
991 a HASH-ref and missed. This produces better error messages then
992 having it die cause undef is not a HASH.
993 - added tests for this
995 0.21 Thursday, May 2nd, 2007
997 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
998 - modified unimport to remove super and inner along with the rest
999 - altered unimport tests to handle this
1002 - altered super export to populate SUPER_SLOT
1004 * Moose::Meta::Class
1005 - altered augment and override modifier application to use *_SLOT
1006 - modified tests for these to unimport one test class each to test
1009 - fixed issue where custom attribute metaclasses
1010 where not handled correctly in roles
1011 - added tests for this
1013 * Moose::Meta::Class
1014 - fixed issue where extending metaclasses with
1015 roles would blow up. Thanks to Aankhen`` for
1016 finding this insidious error, and it's solution.
1018 ~~ lots of spelling and grammer fixes in the docs,
1019 many many thanks to rlb3 and Aankhen for these :)
1021 0.20 Friday, April 6th, 2007
1022 >> I messed up the SKIP logic in one test
1023 so this release is just to fix that.
1026 - 'has' now also accepts an ARRAY ref
1027 to create multiple attrs (see docs)
1028 (thanks to konobi for this)
1029 - added tests and docs
1031 0.19 Thurs. April 5th, 2007
1032 ~~ More documentation updates ~~
1034 * Moose::Util::TypeConstraints
1035 - 'type' now supports messages as well
1036 thanks to phaylon for finding this
1037 - added tests for this
1038 - added &list_all_type_constraints and
1039 &list_all_builtin_type_constraints
1040 functions to facilitate introspection.
1042 * Moose::Meta::Attribute
1043 - fixed regexp 'handles' declarations
1044 to build the list of delegated methods
1045 correctly (and not override important
1046 things like &new) thanks to ashleyb
1048 - added tests and docs for this
1049 - added the 'documentation' attributes
1050 so that you can actually document your
1051 attributes and inspect them through the
1053 - added tests and docs for this
1055 * Moose::Meta::Class
1056 - when loading custom attribute metaclasses
1057 it will first look in for the class in the
1058 Moose::Meta::Attribute::Custom::$name, and
1059 then default to just loading $name.
1060 - added tests and docs for this
1062 * Moose::Meta::TypeConstraint
1063 - type constraints now stringify to their names.
1064 - added test for this
1067 - added tests to assure we work with Module::Refresh
1068 - added stricter test skip logic in the Moose POOP
1069 test, ask Rob Kinyon why.
1070 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1072 0.18 Sat. March 10, 2007
1073 ~~ Many, many documentation updates ~~
1076 - We now use Class::MOP::load_class to
1078 - added tests to show types and subtypes
1079 working with Declare::Constraints::Simple
1080 and Test::Deep as constraint engines.
1083 !! You must have Class::MOP 0.37_001 !!
1084 !! for this developer release to work !!
1086 This release was primarily adding the immutable
1087 feature to Moose. An immutable class is one which
1088 you promise not to alter. When you set the class
1089 as immutable it will perform various bits of
1090 memoization and inline certain part of the code
1091 (constructors, destructors and accessors). This
1092 minimizes (and in some cases totally eliminates)
1093 one of Moose's biggest performance hits. This
1094 feature is not on by default, and is 100% optional.
1095 It has several configurable bits as well, so you
1096 can pick and choose to your specific needs.
1098 The changes involved in this were fairly wide and
1099 highly specific, but 100% backwards compatible, so
1100 I am not going to enumerate them here. If you are
1101 truely interested in what was changed, please do
1104 0.17 Tues. Nov. 14, 2006
1105 * Moose::Meta::Method::Accessor
1106 - bugfix for read-only accessors which
1107 are have a type constraint and lazy.
1108 Thanks to chansen for finding it.
1110 0.16 Tues. Nov. 14, 2006
1112 There are some speed improvements in this release,
1113 but they are only the begining, so stay tuned.
1116 - BUILDALL and DEMOLISHALL no longer get
1117 called unless they actually need to be.
1118 This gave us a signifigant speed boost
1119 for the cases when there is no BUILD or
1120 DEMOLISH method present.
1122 * Moose::Util::TypeConstraints
1123 * Moose::Meta::TypeConstraint
1124 - added an 'optimize_as' option to the
1125 type constraint, which allows for a
1126 hand optimized version of the type
1127 constraint to be used when possible.
1128 - Any internally created type constraints
1129 now provide an optimized version as well.
1131 0.15 Sun. Nov. 5, 2006
1133 This version of Moose *must* have Class::MOP 0.36 in order
1134 to work correctly. A number of small internal tweaks have
1135 been made in order to be compatible with that release.
1137 * Moose::Util::TypeConstraints
1138 - added &unimport so that you can clean out
1139 your class namespace of these exported
1142 * Moose::Meta::Class
1143 - fixed minor issue which occasionally
1144 comes up during global destruction
1146 - moved Moose::Meta::Method::Overriden into
1150 - moved Moose::Meta::Role::Method into
1153 * Moose::Meta::Attribute
1154 - changed how we do type checks so that
1155 we reduce the overall cost, but still
1158 - moved accessor generation methods to
1159 Moose::Meta::Method::Accessor to
1160 conform to the API changes from
1163 * Moose::Meta::TypeConstraint
1164 - changed how constraints are compiled
1165 so that we do less recursion and more
1166 iteration. This makes the type check
1168 - moved Moose::Meta::TypeConstraint::Union
1171 * Moose::Meta::Method::Accessor
1172 - created this from methods formerly found in
1173 Moose::Meta::Attribute
1175 * Moose::Meta::Role::Method
1176 - moved this from Moose::Meta::Role
1178 * Moose::Meta::Method::Overriden
1179 - moved this from Moose::Meta::Class
1181 * Moose::Meta::TypeConstraint::Union
1182 - moved this from Moose::Meta::TypeConstraint
1184 0.14 Mon. Oct. 9, 2006
1186 * Moose::Meta::Attribute
1187 - fixed lazy attributes which were not getting
1188 checked with the type constraint (thanks ashley)
1189 - added tests for this
1190 - removed the over-enthusiastic DWIMery of the
1191 automatic ArrayRef and HashRef defaults, it
1192 broke predicates in an ugly way.
1193 - removed tests for this
1195 0.13 Sat. Sept. 30, 2006
1197 This version of Moose *must* have Class::MOP 0.35 in order
1198 to work correctly. A number of small internal tweaks have
1199 been made in order to be compatible with that release.
1202 - Removed the use of UNIVERSAL::require to be a better
1203 symbol table citizen and remove a dependency
1204 (thanks Adam Kennedy)
1206 **~~ removed experimental & undocumented feature ~~**
1207 - commented out the 'method' and 'self' keywords, see the
1208 comments for more info.
1211 - added a FAQ and WTF files to document frequently
1212 asked questions and common problems
1214 * Moose::Util::TypeConstraints
1215 - added GlobRef and FileHandle type constraint
1216 - added tests for this
1218 * Moose::Meta::Attribute
1219 - if your attribute 'isa' ArrayRef of HashRef, and you have
1220 not explicitly set a default, then make the default DWIM.
1221 This will also work for subtypes of ArrayRef and HashRef
1223 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1224 - new test added for this (thanks to ashley)
1227 - added basic support for runtime role composition
1228 but this is still *highly experimental*, so feedback
1229 is much appreciated :)
1230 - added tests for this
1232 * Moose::Meta::TypeConstraint
1233 - the type constraint now handles the coercion process
1234 through delegation, this is to support the coercion
1237 * Moose::Meta::TypeConstraint::Union
1238 - it is now possible for coercions to be performed
1240 - added tests for this (thanks to konobi)
1242 * Moose::Meta::TypeCoercion
1243 - properly capturing error when type constraint
1247 - Scalar::Util 1.18 is bad on Win32, so temporarily
1248 only require version 1.17 for Win32 and cygwin.
1249 (thanks Adam Kennedy)
1251 0.12 Sat. Sept. 1, 2006
1253 - Recipe5 (subtypes & coercion) has been written
1256 - fixed "bad meta" error message to be more descriptive
1257 - fixed &unimport to not remove the &inner and &super
1258 keywords because we need to localize them.
1259 - fixed number of spelling/grammer issues, thanks Theory :)
1261 **~~ experimental & undocumented feature ~~**
1262 - added the method and self keywords, they are basically
1263 just sugar, and they may not stay around.
1266 - added &dump method to easily Data::Dumper
1269 * Moose::Meta::TypeConstraint
1270 - added the &is_a_type_of method to check both the current
1271 and the subtype of a method (similar to &isa with classes)
1274 - this is now a subclass of Class::MOP::Module, and no longer
1275 creates the _role_meta ugliness of before.
1276 - fixed tests to reflect this change
1278 0.11 Wed. July 12, 2006
1280 - added an &unimport method to remove all the keywords
1281 that Moose will import, simply add 'no Moose' to the
1282 bottom of your class file.
1285 - fixed some test failures caused by a forgotten test
1288 0.10 Thurs. July 6, 2006
1290 - improved error message when loading modules so
1291 it is less confusing when you load a role.
1292 - added &calculate_all_roles method to
1293 Moose::Meta::Class and Moose::Meta::Role
1296 This module has been tested against Class::MOP 0.30
1297 but it does not yet utilize the optimizations
1298 it makes available. Stay tuned for that ;)
1300 0.09_03 Fri. June 23, 2006
1301 ++ DEVELOPER RELEASE ++
1303 - 'use strict' and 'use warnings' are no longer
1304 needed in Moose classes, Moose itself will
1305 turn them on for you.
1306 - added tests for this
1307 - moved code from exported subs to private methods
1308 in Moose::Meta::Class
1311 - as with Moose, strict and warnings are
1312 automatically turned on for you.
1313 - added tests for this
1316 - now handles an edge case for override errors
1317 - added tests for this
1318 - added some more edge case tests
1320 0.09_02 Tues. May 16, 2006
1321 ++ DEVELOPER RELEASE ++
1323 - added prototypes to the exported subs
1327 - added prototypes to the exported subs
1330 * Moose::Util::TypeConstraints
1331 - cleaned up prototypes for the subs
1334 0.09_01 Fri. May 12, 2006
1335 ++ DEVELOPER RELEASE ++
1336 - This release works in combination with
1337 Class::MOP 0.29_01, it is a developer
1338 release because it uses the a new
1339 instance sub-protocol and a fairly
1340 complete Role implementation. It has
1341 not yet been optimized, so it slower
1342 the the previous CPAN version. This
1343 release also lacks good updated docs,
1344 the official release will have updated docs.
1347 - refactored the keyword exports
1348 - 'with' now checks Role validaity and
1349 accepts more than one Role at a time
1350 - 'extends' makes metaclass adjustments as
1351 needed to ensure metaclass compatability
1354 - refactored the keyword exports
1355 - 'with' now checks Role validaity and
1356 accepts more than one Role at a time
1358 * Moose::Util::TypeConstraints
1359 - added the 'enum' keyword for simple
1360 string enumerations which can be used as
1362 - see example of usage in t/202_example.t
1365 - more careful checking of params to new()
1368 - much work done on the role composition
1369 - many new tests for conflict detection
1370 and composition edge cases
1371 - not enough documentation, I suggest
1372 looking at the tests
1374 * Moose::Meta::Instance
1375 - added new Instance metaclass to support
1376 the new Class::MOP instance protocol
1378 * Moose::Meta::Class
1379 - some small changes to support the new
1381 - some small additions to support Roles
1383 * Moose::Meta::Attribute
1384 - some improvements to the accessor generation code
1386 - some small changes to support the new
1388 - (still somewhat) experimental delegation support
1389 with the 'handles' option
1390 - added several tests for this
1391 - no docs for this yet
1393 0.05 Thurs. April 27, 2006
1395 - keywords are now exported with Sub::Exporter
1396 thanks to chansen for this commit
1397 - has keyword now takes a 'metaclass' option
1398 to support custom attribute meta-classes
1399 on a per-attribute basis
1400 - added tests for this
1401 - the 'has' keyword not accepts inherited slot
1402 specifications (has '+foo'). This is still an
1403 experimental feature and probably not finished
1404 see t/038_attribute_inherited_slot_specs.t for
1405 more details, or ask about it on #moose
1406 - added tests for this
1409 - keywords are now exported with Sub::Exporter
1411 * Moose::Utils::TypeConstraints
1412 - reorganized the type constraint hierarchy, thanks
1413 to nothingmuch and chansen for his help and advice
1415 - added some tests for this
1416 - keywords are now exported with Sub::Exporter
1417 thanks to chansen for this commit
1419 * Moose::Meta::Class
1420 - due to changes in Class::MOP, we had to change
1421 construct_instance (for the better)
1423 * Moose::Meta::Attribute
1424 - due to changes in Class::MOP, we had to add the
1425 initialize_instance_slot method (it's a good thing)
1427 * Moose::Meta::TypeConstraint
1428 - added type constraint unions
1429 - added tests for this
1430 - added the is_subtype_of predicate method
1431 - added tests for this
1433 0.04 Sun. April 16th, 2006
1435 - Roles can now consume other roles
1436 - added tests for this
1437 - Roles can specify required methods now with
1438 the requires() keyword
1439 - added tests for this
1442 - ripped out much of it's guts ,.. much cleaner now
1443 - added required methods and correct handling of
1444 them in apply() for both classes and roles
1445 - added tests for this
1446 - no longer adds a does() method to consuming classes
1447 it relys on the one in Moose::Object
1448 - added roles attribute and some methods to support
1449 roles consuming roles
1451 * Moose::Meta::Attribute
1452 - added support for triggers on attributes
1453 - added tests for this
1454 - added support for does option on an attribute
1455 - added tests for this
1457 * Moose::Meta::Class
1458 - added support for attribute triggers in the
1460 - added tests for this
1463 - Moose no longer creates a subtype for your class
1464 if a subtype of the same name already exists, this
1465 should DWIM in 99.9999% of all cases
1467 * Moose::Util::TypeConstraints
1468 - fixed bug where incorrect subtype conflicts were
1470 - added test for this
1473 - this class can now be extended with 'use base' if
1474 you need it, it properly loads the metaclass class now
1475 - added test for this
1477 0.03_02 Wed. April 12, 2006
1479 - you must now explictly use Moose::Util::TypeConstraints
1480 it no longer gets exported for you automatically
1483 - new() now accepts hash-refs as well as key/value lists
1484 - added does() method to check for Roles
1485 - added tests for this
1487 * Moose::Meta::Class
1488 - added roles attribute along with the add_role() and
1490 - added tests for this
1493 - now adds a does() method to consuming classes
1494 which tests the class's hierarchy for roles
1495 - added tests for this
1497 0.03_01 Mon. April 10, 2006
1499 - added new Role recipe (no content yet, only code)
1502 - added 'with' keyword for Role support
1503 - added test and docs for this
1504 - fixed subtype quoting bug
1505 - added test for this
1509 - added test and docs
1511 * Moose::Util::TypeConstraints
1512 - added the message keyword to add custom
1513 error messages to type constraints
1516 - the meta role to support Moose::Role
1517 - added tests and docs
1519 * Moose::Meta::Class
1520 - moved a number of things from Moose.pm
1521 to here, they should have been here
1524 * Moose::Meta::Attribute
1525 - moved the attribute option macros here
1526 instead of putting them in Moose.pm
1528 * Moose::Meta::TypeConstraint
1529 - added the message attributes and the
1531 - added tests and docs for this
1533 0.03 Thurs. March 30, 2006
1535 - added the Moose::Cookbook with 5 recipes,
1536 describing all the stuff Moose can do.
1539 - fixed an issue with &extends super class loading
1540 it now captures errors and deals with inline
1541 packages correctly (bug found by mst, solution
1543 - added super/override & inner/augment features
1544 - added tests and docs for these
1547 - BUILDALL now takes a reference of the %params
1548 that are passed to &new, and passes that to
1551 * Moose::Util::TypeConstraints
1552 - Type constraints now survive runtime reloading
1553 - added test for this
1555 * Moose::Meta::Class
1556 - fixed the way attribute defaults are handled
1557 during instance construction (bug found by chansen)
1559 * Moose::Meta::Attribute
1560 - read-only attributes now actually enforce their
1561 read-only-ness (this corrected in Class::MOP as
1564 0.02 Tues. March 21, 2006
1566 - many more tests, fixing some bugs and
1568 - &extends now loads the base module with
1570 - added UNIVERSAL::require to the
1573 - each new Moose class will also create
1574 and register a subtype of Object which
1575 correspond to the new Moose class.
1576 - the 'isa' option in &has now only
1577 accepts strings, and will DWIM in
1580 * Moose::Util::TypeConstraints
1581 - added type coercion features
1582 - added tests for this
1583 - added support for this in attributes
1584 and instance construction
1586 - type construction no longer creates a
1587 function, it registers the type instead.
1588 - added several functions to get the
1592 - BUILDALL and DEMOLISHALL were broken
1593 because of a mis-named hash key, Whoops :)
1595 * Moose::Meta::Attribute
1596 - adding support for coercion in the
1597 autogenerated accessors
1599 * Moose::Meta::Class
1600 - adding support for coercion in the
1601 instance construction
1603 * Moose::Meta::TypeConstraint
1604 * Moose::Meta::TypeCoercion
1605 - type constraints and coercions are now
1606 full fledges meta-objects
1608 0.01 Wed. March 15, 2006
1609 - Moooooooooooooooooose!!!