1 Revision history for Perl extension Moose
5 * Moose::Cookbook::Extending::Recipe2
6 - Add a remove_keywords function so if you extend Moose
7 you don't have to cargo cult Moose's unimport (Sartak)
9 0.55 Sun August 3, 2008
10 * Moose::Meta::Attribute
11 - breaking down the way 'handles' methods are
12 created so that the process can be more easily
13 overridden by subclasses (stevan)
15 * Moose::Meta::TypeConstraint
16 - fixing what is passed into a ->message with
17 the type constraints (RT #37569)
18 - added tests for this (Charles Alderman)
20 * Moose::Util::TypeConstraints
21 - fix coerce to accept anon types like subtype can (mst)
24 - reorganized the recipes into sections - Basics, Roles, Meta,
25 Extending - and wrote abstracts for each section (Dave Rolsky)
27 * Moose::Cookbook::Basics::Recipe10
28 - A new recipe that demonstrates operator overloading
29 in combination with Moose. (bluefeet)
31 * Moose::Cookbook::Meta::Recipe1
32 - an introduction to what meta is and why you'd want to make
33 your own metaclass extensions (Dave Rolsky)
35 * Moose::Cookbook::Meta::Recipe4
36 - a very simple metaclass example (Dave Rolsky)
38 * Moose::Cookbook::Extending::Recipe1
39 - how to write a Moose-alike module to use your own object base
42 * Moose::Cookbook::Extending::Recipe2
43 - how to write modules with an API just like C<Moose.pm> (Dave
47 - Tons of fixes, both syntactical and grammatical (Dave
50 0.54 Thurs. July 3, 2008
51 ... this is not my day today ...
53 * Moose::Meta::Attribute
54 - fixed legal_options_for_inheritance such that
55 clone_and_inherit options still works for
56 Class::MOP::Attribute objects and therefore
57 does not break MooseX::AttributeHelpers
60 0.53 Thurs. July 3, 2008
61 * Whoops, I guess I should run 'make manifest' before
62 actually releasing the module. No actual changes
63 in this release, except the fact that it includes
64 the changes that I didn't include in the last
67 0.52 Thurs. July 3, 2008
69 - added "FEATURE REQUESTS" section to the Moose docs
70 to properly direct people (stevan) (RT #34333)
71 - making 'extends' croak if it is passed a Role since
72 this is not ever something you want to do
73 (fixed by stevan, found by obra)
74 - added tests for this (stevan)
77 - adding support for DOES (as in UNIVERSAL::DOES)
81 * Moose::Meta::Attribute
82 - added legal_options_for_inheritance (wreis)
83 - added tests for this (wreis)
85 * Moose::Cookbook::Snacks::*
86 - removed some of the unfinished snacks that should
87 not have been released yet. Added some more examples
88 to the 'Keywords' snack. (stevan)
90 * Moose::Cookbook::Style
91 - added general Moose "style guide" of sorts to the
92 cookbook (nothingmuch) (RT #34335)
95 - added more BUILDARGS tests (stevan)
97 0.51 Thurs. Jun 26, 2008
99 - add unimport so "no Moose::Role" actually does
102 * Moose::Meta::Role::Application::ToRole
103 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
104 order to provide its own implementation, that method still got
105 added to the list of required methods for consumers of
106 RoleB. Now an aliased method is only added to the list of
107 required methods if the role doing the aliasing does not
108 provide its own implementation. See Recipe 11 for an example
109 of all this. (Dave Rolsky)
110 - added tests for this
112 * Moose::Meta::Method::Constructor
113 - when a single argument that wasn't a hashref was provided to
114 an immutabilized constructor, the error message was very
115 unhelpful, as opposed to the non-immutable error. Reported by
117 - added test for this (Dave Rolsky)
119 * Moose::Meta::Attribute
120 - added support for meta_attr->does("ShortAlias") (sartak)
121 - added tests for this (sartak)
122 - moved the bulk of the `handles` handling to the new
123 install_delegation method (Stevan)
126 - Added BUILDARGS, a new step in new()
128 * Moose::Meta::Role::Application::RoleSummation
129 - fix typos no one ever sees (sartak)
131 * Moose::Util::TypeConstraints
132 * Moose::Meta::TypeConstraint
133 * Moose::Meta::TypeCoercion
134 - Attempt to work around the ??{ } vs. threads issue
136 - Some null_constraint optimizations
138 0.50 Thurs. Jun 11, 2008
139 - Fixed a version number issue by bumping all modules
142 0.49 Thurs. Jun 11, 2008
143 !! This version now approx. 20-25% !!
144 !! faster with new Class::MOP 0.59 !!
146 * Moose::Meta::Attribute
147 - fixed how the is => (ro|rw) works with
148 custom defined reader, writer and accessor
150 - added docs for this (TODO).
151 - added tests for this (Thanks to Penfold)
152 - added the custom attribute alias for regular
153 Moose attributes which is "Moose"
154 - fix builder and default both being used
159 Moose::Meta::Attribute
161 Moose::Meta::Role::Composite
162 Moose::Util::TypeConstraints
163 - switched usage of reftype to ref because
167 - changing add_package_symbol to use the new
171 - fixed how DEMOLISHALL is called so that it
172 can be overrided in subclasses (thanks to Sartak)
173 - added test for this (thanks to Sartak)
175 * Moose::Util::TypeConstraints
176 - move the ClassName type check code to
177 Class::MOP::is_class_loaded (thanks to Sartak)
179 * Moose::Cookbook::Recipe11
180 - add tests for this (thanks to tokuhirom)
182 0.48 Thurs. May 29, 2008
183 (early morning release engineering)--
185 - fixing the version in Moose::Meta::Method::Destructor
186 which was causing the indexer to choke
188 0.47 Thurs. May 29, 2008
189 (late night release engineering)--
191 - fixing the version is META.yml, no functional
192 changes in this release
194 0.46 Wed. May 28, 2008
195 !! This version now approx. 20-25% !!
196 !! faster with new Class::MOP 0.57 !!
199 - some optimizations of the &initialize method
200 since it is called so often by &meta
204 - now use the get_all_package_symbols from the
205 updated Class::MOP, test suite is now 10 seconds
208 * Moose::Meta::Method::Destructor
209 - is_needed can now also be called as a class
210 method for immutablization to check if the
211 destructor object even needs to be created
214 * Moose::Meta::Method::Destructor
215 Moose::Meta::Method::Constructor
216 - added more descriptive error message to help
217 keep people from wasting time tracking an error
218 that is easily fixed by upgrading.
220 0.45 Saturday, May 24, 2008
222 - Because of work in Class::MOP 0.56, all
223 XS based functionality is now optional
224 and a Pure Perl version is supplied
225 - the CLASS_MOP_NO_XS environment variable
226 can now be used to force non-XS versions
228 - several of the packages have been tweaked
229 to take care of this, mostly we added
230 support for the package_name and name
231 variables in all the Method metaclasses
232 - before/around/after method modifiers now
233 support regexp matching of names
234 (thanks to Takatoshi Kitano)
235 - tests added for this
236 - NOTE: this only works for classes, it
237 is currently not supported in roles,
238 but, ... patches welcome
239 - All usage of Carp::confess have been replaced
240 by Carp::croak in the "keyword" functions since
241 the stack trace is usually not helpful
244 - All usage of Carp::confess have been replaced
245 by Carp::croak in the "keyword" functions since
246 the stack trace is usually not helpful
247 - The 'has' keyword for roles now accepts the
248 same array ref form that Moose.pm does
249 (has [qw/foo bar/] => (is => 'rw', ...))
250 - added test for this
252 * Moose::Meta::Attribute
253 - trigger on a ro-attribute is no longer an
254 error, as it's useful to trigger off of the
258 - added same 'add_package_symbol' fix as in
262 - does_role now handles non-Moose classes
264 - added tests for this
265 - added the 'add_method_modifier' function
266 (thanks to Takatoshi Kitano)
268 * Moose::Util::TypeConstraints
269 - subtypes of parameterizable types now are
270 themselves parameterizable types
272 * Moose::Meta::Method::Constructor
273 - fixed bug where trigger was not being
274 called by the inlined immutable
276 - added test for this (thanks to Caelum)
278 * Moose::Meta::Role::Application::ToInstance
279 - now uses the metaclass of the instance
280 (if possible) to create the anon-class
281 (thanks Jonathan Rockway)
283 * Moose::Cookbook::Recipe22
284 - added the meta-attribute trait recipe
288 - fixed hash-ordering test bug that was
289 causing occasional cpantester failures
290 - renamed the t/000_recipe/*.t tests to be
291 more descriptive (thanks to Sartak)
293 0.44 Sat. May 10, 2008
295 - made make_immutable warning cluck to
296 show where the error is (thanks mst)
299 - BUILDALL and DEMOLISHALL now call
300 ->body when looping through the
301 methods, to avoid the overloaded
303 - fixed issue where DEMOLISHALL was
304 eating the $@ values, and so not
305 working correctly, it still kind of
306 eats them, but so does vanilla perl
307 - added tests for this
309 * Moose::Cookbook::Recipe7
310 - added new recipe for immutable
311 functionality (thanks Dave Rolsky)
313 * Moose::Cookbook::Recipe9
314 - added new recipe for builder and
315 lazy_build (thanks Dave Rolsky)
317 * Moose::Cookbook::Recipe11
318 - added new recipe for method aliasing
319 and exclusion with Roles (thanks Dave Rolsky)
322 - fixed Win32 test failure (thanks spicyjack)
324 ~ removed Build.PL and Module::Build compat
325 since Module::Install has done that.
327 0.43 Wed. April, 30, 2008
329 drink more coffee before
330 doing release engineering
332 - whoops, forgot to do the smolder tests,
333 and we broke some of the custom meta-attr
334 modules. This fixes that.
336 0.42 Mon. April 28, 2008
337 - some bad tests slipped by, nothing else
338 changed in this release (cpantesters++)
340 - upped the Class::MOP dependency to 0.55
341 since we have tests which need the C3
344 0.41 Mon. April 28, 2008
345 ~~ numerous documentation updates ~~
347 - Changed all usage of die to Carp::croak for better
348 error reporting (initial patch by Tod Hagan)
351 - the make_immutable keyword is now deprecated, don't
352 use it in any new code and please fix your old code
353 as well. There will be 2 releases, and then it will
359 - refactored the way inner and super work to avoid
360 any method/@ISA cache penalty (nothingmuch)
363 - fixing &new_object to make sure trigger gets the
364 coerced value (spotted by Charles Alderman on the
366 - added test for this
368 * Moose::Meta::Method::Constructor
369 - immutable classes which had non-lazy attributes were calling
370 the default generating sub twice in the constructor. (bug
371 found by Jesse Luehrs, fixed by Dave Rolsky)
372 - added tests for this (Dave Rolsky)
373 - fix typo in initialize_body method (nothingmuch)
375 * Moose::Meta::Method::Destructor
376 - fix typo in initialize_body method (nothingmuch)
378 * Moose::Meta::Method::Overriden
379 Moose::Meta::Method::Augmented
380 - moved the logic for these into their own
381 classes (nothingmuch)
383 * Moose::Meta::Attribute
384 - inherited attributes may now be extended without
385 restriction on the type ('isa', 'does') (Sartak)
386 - added tests for this (Sartak)
387 - when an attribute property is malformed (such as lazy without
388 a default), give the name of the attribute in the error
390 - added the &applied_traits and &has_applied_traits methods
391 to allow introspection of traits
392 - added tests for this
393 - moved 'trait' and 'metaclass' argument handling to here from
395 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
396 '+foo' syntax) (nothingmuch)
397 - added tests for this (t0m)
400 - localize $@ inside DEMOLISHALL to avoid it
401 eating $@ (found by Ernesto)
402 - added test for this (thanks to Ernesto)
404 * Moose::Util::TypeConstraints
405 - &find_type_constraint now DWIMs when given an
406 type constraint object or name (nothingmuch)
407 - &find_or_create_type_constraint superseded with a number of more
409 - find_or_create_{isa,does}_type_constraint
410 - find_or_parse_type_constraint
412 * Moose::Meta::TypeConstraint
413 Moose::Meta::TypeConstraint::Class
414 Moose::Meta::TypeConstraint::Role
415 Moose::Meta::TypeConstraint::Enum
416 Moose::Meta::TypeConstraint::Union
417 Moose::Meta::TypeConstraint::Parameterized
418 - added the &equals method for comparing two type
419 constraints (nothingmuch)
420 - added tests for this (nothingmuch)
422 * Moose::Meta::TypeConstraint
423 - add the &parents method, which is just an alias to &parent.
424 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
426 * Moose::Meta::TypeConstraint::Class
427 - added the class attribute for introspection purposes
429 - added tests for this
431 * Moose::Meta::TypeConstraint::Enum
432 Moose::Meta::TypeConstraint::Role
433 - broke these out into their own classes (nothingmuch)
435 * Moose::Cookbook::Recipe*
436 - fixed references to test file locations in the POD
437 and updated up some text for new Moose features
441 - Added &resolve_metaclass_alias, a helper function for finding an actual
442 class for a short name (e.g. in the traits list)
444 0.40 Fri. March 14, 2008
445 - I hate Pod::Coverage
447 0.39 Fri. March 14, 2008
449 - documenting the use of '+name' with attributes
450 that come from recently composed roles. It makes
451 sense, people are using it, and so why not just
452 officially support it.
453 - fixing the 'extends' keyword so that it will not
454 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
457 - added the perl -Moose=+Class::Name feature to allow
458 monkeypatching of classes in one liners
461 - fixing the 'apply_all_roles' keyword so that it will not
462 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
465 - added ->create method which now supports roles (thanks to jrockway)
466 - added tests for this
467 - added ->create_anon_class which now supports roles and caching of
468 the results (thanks to jrockway)
469 - added tests for this
470 - made ->does_role a little more forgiving when it is
471 checking a Class::MOP era metaclasses.
473 * Moose::Meta::Role::Application::ToInstance
474 - it is now possible to pass extra params to be used when
475 a role is applied to an the instance (rebless_params)
476 - added tests for this
478 * Moose::Util::TypeConstraints
479 - class_type now accepts an optional second argument for a
480 custom message. POD anotated accordingly (groditi)
481 - added tests for this
482 - it is now possible to make anon-enums by passing 'enum' an
483 ARRAY ref instead of the $name => @values. Everything else
485 - added tests for this
488 - making test for using '+name' on attributes consumed
489 from a role, it works and makes sense too.
491 * Moose::Meta::Attribute
492 - fix handles so that it doesn't return nothing
493 when the method cannot be found, not sure why
494 it ever did this originally, this means we now
495 have slightly better support for AUTOLOADed
497 - added more delegation tests
498 - adding ->does method to this so as to better
499 support traits and their introspection.
500 - added tests for this
503 - localizing the Data::Dumper configurations so
504 that it does not pollute others (RT #33509)
505 - made ->does a little more forgiving when it is
506 passed Class::MOP era metaclasses.
508 0.38 Fri. Feb. 15, 2008
509 * Moose::Meta::Attribute
510 - fixed initializer to correctly do
511 type checking and coercion in the
513 - added tests for this
516 - fixed some finicky tests (thanks to konobi)
518 0.37 Thurs. Feb. 14, 2008
520 - fixed some details in Moose::init_meta
521 and its superclass handling (thanks thepler)
522 - added tests for this (thanks thepler)
523 - 'has' now dies if you don't pass in name
525 - added the 'make_immutable' keyword as a shortcut
529 Moose::Meta::Method::Constructor
530 Moose::Meta::Attribute
531 - making (init_arg => undef) work here too
532 (thanks to nothingmuch)
534 * Moose::Meta::Attribute
535 Moose::Meta::Method::Constructor
536 Moose::Meta::Method::Accessor
537 - make lazy attributes respect attr initializers (rjbs)
538 - added tests for this
540 * Moose::Util::TypeConstraints
541 Moose::Util::TypeConstraints::OptimizedConstraints
542 Moose::Meta::TypeConstraints
543 Moose::Meta::Attribute
544 Moose::Meta::Method::Constructor
545 Moose::Meta::Method::Accessor
546 - making type errors use the
547 assigned message (thanks to Sartak)
548 - added tests for this
550 * Moose::Meta::Method::Destructor
551 - making sure DESTROY gets inlined properly
552 with successive DEMOLISH calls (thanks to manito)
554 * Moose::Meta::Attribute
555 Moose::Meta::Method::Accessor
556 - fixed handling of undef with type constraints
558 - added tests for this
561 - added &get_all_init_args and &get_all_attribute_values
562 (thanks to Sartak and nothingmuch)
564 0.36 Sat. Jan. 26, 2008
566 Moose::Meta::Attribute
567 - role type tests now support when roles are
568 applied to non-Moose classes (found by ash)
569 - added tests for this (thanks to ash)
570 - couple extra tests to boost code coverage
572 * Moose::Meta::Method::Constructor
573 - improved fix for handling Class::MOP attributes
574 - added test for this
577 - handled the add_attribute($attribute_meta_object)
579 - added test for this
581 0.35 Tues. Jan. 22, 2008
582 * Moose::Meta::Method::Constructor
583 - fix to make sure even Class::MOP attributes
584 are handled correctly (Thanks to Dave Rolsky)
585 - added test for this (also Dave Rolsky)
588 - improved error message on _apply_all_roles,
589 you should now use Moose::Util::apply_all_roles
590 and you shouldnt have been using a _ prefixed
591 method in the first place ;)
593 0.34 Mon. Jan. 21, 2008
594 ~~~ more misc. doc. fixes ~~~
595 ~~ updated copyright dates ~~
597 Moose is now a postmodern object system :)
598 - (see the POD for details)
600 * <<Role System Refactoring>>
601 - this release contains a major reworking and
602 cleanup of the role system
603 - 100% backwards compat.
604 - Role application now restructured into seperate
605 classes based on type of applicants
606 - Role summation (combining of more than one role)
607 is much cleaner and anon-classes are no longer
609 - new Composite role metaclass
610 - runtime application of roles to instances
611 is now more efficient and re-uses generated
612 classes when applicable
614 * <<New Role composition features>>
615 - methods can now be excluded from a given role
617 - methods can now be aliased to another name (and
618 still retain the original as well)
620 * Moose::Util::TypeConstraints::OptimizedConstraints
621 - added this module (see above)
624 - fixed the &_process_attribute method to be called
625 by &add_attribute, so that the API is now correct
627 * Moose::Meta::Method::Accessor
628 - fixed bug when passing a list of values to
629 an accessor would get (incorrectly) ignored.
630 Thanks to Sartak for finding this ;)
631 - added tests for this (Sartak again)
633 * Moose::Meta::Method::Accessor
634 Moose::Meta::Method::Constructor
635 Moose::Meta::Attribute
636 Moose::Meta::TypeConstraint
637 Moose::Meta::TypeCoercion
638 - lots of cleanup of such things as:
640 - type constraint handling
641 - error handling/messages
642 (thanks to nothingmuch)
644 * Moose::Meta::TypeConstraint::Parameterizable
645 - added this module to support the refactor
646 in Moose::Meta::TypeConstraint::Parameterized
648 * Moose::Meta::TypeConstraint::Parameterized
649 - refactored how these types are handled so they
650 are more generic and not confined to ArrayRef
654 - shortened some file names for better VMS support (RT #32381)
656 0.33 Fri. Dec. 14, 2007
657 !! Moose now loads 2 x faster !!
658 !! with new Class::MOP 0.49 !!
660 ++ new oose.pm module to make command line
661 Moose-ness easier (see POD docs for more)
665 - several tweaks to take advantage of the
666 new method map caching in Class::MOP
668 * Moose::Meta::TypeConstraint::Parameterized
669 - allow subtypes of ArrayRef and HashRef to
670 be used as a container (sartak)
671 - added tests for this
672 - basic support for coercion to ArrayRef and
673 HashRef for containers (sartak)
674 - added tests for this
676 * Moose::Meta::TypeCoercion
677 - coercions will now create subtypes as needed
678 so you can now add coercions to parameterized
679 types without having to explictly define them
680 - added tests for this
682 * Moose::Meta::Method::Accessor
683 - allow subclasses to decide whether we need
684 to copy the value into a new variable (sartak)
686 0.32 Tues. Dec. 4, 2007
687 * Moose::Util::TypeConstraints
688 - fixing how subtype aliases of unions work
689 they should inherit the parent's coercion
690 - added tests for this
691 - you can now define multiple coercions on
692 a single type at different times instead of
693 having to do it all in one place
694 - added tests for this
696 * Moose::Meta::TypeConstraint
697 - there is now a default constraint of sub { 1 }
698 instead of Moose::Util::TypeConstraints setting
701 * Moose::Meta::TypeCoercion
702 * Moose::Meta::TypeCoercion::Union
703 - added the &has_coercion_for_type and
704 &add_type_coercions methods to support the
705 new features above (although you cannot add
706 more type coercions for Union types)
708 0.31 Mon. Nov. 26, 2007
709 * Moose::Meta::Attribute
710 - made the +attr syntax handle extending types with
711 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
712 now works if the original foo is an ArrayRef.
713 - added tests for this.
714 - delegation now works even if the attribute does not
715 have a reader method using the get_read_method_ref
716 method from Class::MOP::Attribute.
717 - added tests for this
718 - added docs for this
720 * Moose::Util::TypeConstraints
721 - passing no "additional attribute info" to
722 &find_or_create_type_constraint will no longer
723 attempt to create an __ANON__ type for you,
724 instead it will just return undef.
725 - added docs for this
727 0.30 Fri. Nov. 23, 2007
728 * Moose::Meta::Method::Constructor
729 -builder related bug in inlined constructor. (groditi)
731 * Moose::Meta::Method::Accessor
732 - genereate unnecessary calls to predicates and refactor
733 code generation for runtime speed (groditi)
735 * Moose::Util::TypeConstraints
736 - fix ClassName constraint to introspect symbol table (mst)
737 - added more tests for this (mst)
738 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
740 - added tests for this
743 - adding the link to Recipie 11 (written by Sartak)
744 - adding test for SYNOPSIS code
747 - New tests for builder bug. Upon instantiation, if an
748 attribute had a builder, no value and was not lazy the
749 builder default was not getting run, oops. (groditi)
751 0.29 Tues. Nov. 13, 2007
752 * Moose::Meta::Attribute
753 - Fix error message on missing builder method (groditi)
755 * Moose::Meta::Method::Accessor
756 - Fix error message on missing builder method (groditi)
759 - Add test to check for the correct error message when
760 builder method is missing (groditi)
762 0.28 Tues. Nov. 13, 2007
763 - 0.27 packaged incorrectly (groditi)
765 0.27 Tues. Nov. 13, 2007
766 * Moose::Meta::Attribute
767 - Added support for the new builder option (groditi)
768 - Added support for lazy_build option (groditi)
769 - Changed slot initialization for predicate changes (groditi)
771 * Moose::Meta::Method::Accessor
772 - Added support for lazy_build option (groditi)
773 - Fix inline methods to work with corrected predicate
776 * Moose::Meta::Method::Constructor
777 - Added support for lazy_build option (groditi)
780 - tests for builder and lazy_build (groditi)
782 * fixing some misc. bits in the docs that
783 got mentioned on CPAN Forum & perlmonks
786 - fixed how required methods are handled
787 when they encounter overriden or modified
788 methods from a class (thanks to confound).
789 - added tests for this
791 * Moose::Util::TypeConstraint
792 - fixed the type notation parser so that
793 the | always creates a union and so is
794 no longer a valid type char (thanks to
795 konobi, mugwump and #moose for working
797 - added more tests for this
799 0.26 Thurs. Sept. 27, 2007
802 * Parameterized Types
803 We now support parameterized collection types, such as:
804 ArrayRef[Int] # array or integers
805 HashRef[Object] # a hash with object values
806 They can also be nested:
807 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
808 And work with the type unions as well:
809 ArrayRef[Int | Str] # array of integers of strings
811 * Better Framework Extendability
812 Moose.pm is now "extendable" such that it is now much
813 easier to extend the framework and add your own keywords
814 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
815 section of the Moose.pm docs.
818 In an effort to begin documenting some of the various
819 details of Moose as well as some common idioms, we have
820 created Moose::Cookbook::Snacks as a place to find
821 small (easily digestable) nuggets of Moose code.
824 ~ Several doc updates/cleanup thanks to castaway ~
826 - converted build system to use Module::Install instead of
827 Module::Build (thanks to jrockway)
830 - added all the meta classes to the immutable list and
831 set it to inline the accessors
832 - fix import to allow Sub::Exporter like { into => }
833 and { into_level => } (perigrin)
834 - exposed and documented init_meta() to allow better
835 embedding and extending of Moose (perigrin)
838 - complete re-organization of the test suite
839 - added some new tests as well
840 - finally re-enabled the Moose::POOP test since
841 the new version of DBM::Deep now works again
845 - fixed very odd and very nasty recursion bug with
847 - added tests for this (eilara)
849 * Moose::Meta::Attribute
850 Moose::Meta::Method::Constructor
851 Moose::Meta::Method::Accessor
852 - fixed issue with overload::Overloaded getting called
853 on non-blessed items. (RT #29269)
854 - added tests for this
856 * Moose::Meta::Method::Accessor
857 - fixed issue with generated accessor code making
858 assumptions about hash based classes (thanks to dexter)
860 * Moose::Coookbook::Snacks
861 - these are bits of documentation, not quite as big as
862 Recipes but which have no clear place in the module docs.
863 So they are Snacks! (horray for castaway++)
865 * Moose::Cookbook::Recipe4
866 - updated it to use the new ArrayRef[MyType] construct
867 - updated the accompanying test as well
869 +++ Major Refactor of the Type Constraint system +++
870 +++ with new features added as well +++
872 * Moose::Util::TypeConstraint
873 - no longer uses package variable to keep track of
874 the type constraints, now uses the an instance of
875 Moose::Meta::TypeConstraint::Registry to do it
876 - added more sophisticated type notation parsing
878 - added tests for this
880 * Moose::Meta::TypeConstraint
881 - some minor adjustments to make subclassing easier
882 - added the package_defined_in attribute so that we
883 can track where the type constraints are created
885 * Moose::Meta::TypeConstraint::Union
886 - this is now been refactored to be a subclass of
887 Moose::Meta::TypeConstraint
889 * Moose::Meta::TypeCoercion::Union
890 - this has been added to service the newly refactored
891 Moose::Meta::TypeConstraint::Union and is itself
892 a subclass of Moose::Meta::TypeCoercion
894 * Moose::Meta::TypeConstraint::Parameterized
895 - added this module (taken from MooseX::AttributeHelpers)
896 to help construct nested collection types
897 - added tests for this
899 * Moose::Meta::TypeConstraint::Registry
900 - added this class to keep track of type constraints
902 0.25 Mon. Aug. 13, 2007
904 - Documentation update to reference Moose::Util::TypeConstraints
905 under 'isa' in 'has' for how to define a new type
908 * Moose::Meta::Attribute
909 - required attributes now will no longer accept undef
910 from the constructor, even if there is a default and lazy
911 - added tests for this
912 - default subroutines must return a value which passes the
914 - added tests for this
916 * Moose::Meta::Attribute
917 * Moose::Meta::Method::Constructor
918 * Moose::Meta::Method::Accessor
919 - type-constraint tests now handle overloaded objects correctly
921 - added tests for this (thanks to EvanCarroll)
923 * Moose::Meta::TypeConstraint::Union
924 - added (has_)hand_optimized_constraint to this class so that
925 it behaves as the regular Moose::Meta::TypeConstraint does.
928 - large refactoring of this code
929 - added several more tests
930 - tests for subtle conflict resolition issues
931 added, but not currently running
934 * Moose::Cookbook::Recipe7
935 - added new recipe for augment/inner functionality
937 - added test for this
940 - a formal definition of roles (still in progress)
943 - utilities for easier working with Moose classes
944 - added tests for these
947 - This contains Moose specific test functions
948 - added tests for these
950 0.24 Tues. July 3, 2007
951 ~ Some doc updates/cleanup ~
953 * Moose::Meta::Attribute
954 - added support for roles to be given as parameters
955 to the 'handles' option.
956 - added tests and docs for this
957 - the has '+foo' attribute form now accepts changes to
958 the lazy option, and the addition of a handles option
959 (but not changing the handles option)
960 - added tests and docs for this
963 - required methods are now fetched using find_method_by_name
964 so that required methods can come from superclasses
965 - adjusted tests for this
967 0.23 Mon. June 18, 2007
968 * Moose::Meta::Method::Constructor
969 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
971 - Modify make_immutable to work with the new Class::MOP immutable
972 mechanism + POD + very basic test (groditi)
973 * Moose::Meta::Attribute
974 - Fix handles to use goto() so that caller() comes out properly on
975 the other side (perigrin)
977 0.22 Thurs. May 31, 2007
978 * Moose::Util::TypeConstraints
979 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
980 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
981 prototypes for functions
982 - added the ClassName type constraint, this checks for strings
983 which will respond true to ->isa(UNIVERSAL).
984 - added tests and docs for this
985 - subtyping just in name now works correctly by making the
986 default for where be { 1 }
987 - added test for this
989 * Moose::Meta::Method::Accessor
990 - coerce and lazy now work together correctly, thanks to
991 merlyn for finding this bug
992 - tests added for this
993 - fix reader presedence bug in Moose::Meta::Attribute + tests
996 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
997 a HASH-ref and missed. This produces better error messages then
998 having it die cause undef is not a HASH.
999 - added tests for this
1001 0.21 Thursday, May 2nd, 2007
1003 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1004 - modified unimport to remove super and inner along with the rest
1005 - altered unimport tests to handle this
1008 - altered super export to populate SUPER_SLOT
1010 * Moose::Meta::Class
1011 - altered augment and override modifier application to use *_SLOT
1012 - modified tests for these to unimport one test class each to test
1015 - fixed issue where custom attribute metaclasses
1016 where not handled correctly in roles
1017 - added tests for this
1019 * Moose::Meta::Class
1020 - fixed issue where extending metaclasses with
1021 roles would blow up. Thanks to Aankhen`` for
1022 finding this insidious error, and it's solution.
1024 ~~ lots of spelling and grammer fixes in the docs,
1025 many many thanks to rlb3 and Aankhen for these :)
1027 0.20 Friday, April 6th, 2007
1028 >> I messed up the SKIP logic in one test
1029 so this release is just to fix that.
1032 - 'has' now also accepts an ARRAY ref
1033 to create multiple attrs (see docs)
1034 (thanks to konobi for this)
1035 - added tests and docs
1037 0.19 Thurs. April 5th, 2007
1038 ~~ More documentation updates ~~
1040 * Moose::Util::TypeConstraints
1041 - 'type' now supports messages as well
1042 thanks to phaylon for finding this
1043 - added tests for this
1044 - added &list_all_type_constraints and
1045 &list_all_builtin_type_constraints
1046 functions to facilitate introspection.
1048 * Moose::Meta::Attribute
1049 - fixed regexp 'handles' declarations
1050 to build the list of delegated methods
1051 correctly (and not override important
1052 things like &new) thanks to ashleyb
1054 - added tests and docs for this
1055 - added the 'documentation' attributes
1056 so that you can actually document your
1057 attributes and inspect them through the
1059 - added tests and docs for this
1061 * Moose::Meta::Class
1062 - when loading custom attribute metaclasses
1063 it will first look in for the class in the
1064 Moose::Meta::Attribute::Custom::$name, and
1065 then default to just loading $name.
1066 - added tests and docs for this
1068 * Moose::Meta::TypeConstraint
1069 - type constraints now stringify to their names.
1070 - added test for this
1073 - added tests to assure we work with Module::Refresh
1074 - added stricter test skip logic in the Moose POOP
1075 test, ask Rob Kinyon why.
1076 - *cough* DBM::Deep 1.0 backwards compatability sucks *cough* ;)
1078 0.18 Sat. March 10, 2007
1079 ~~ Many, many documentation updates ~~
1082 - We now use Class::MOP::load_class to
1084 - added tests to show types and subtypes
1085 working with Declare::Constraints::Simple
1086 and Test::Deep as constraint engines.
1089 !! You must have Class::MOP 0.37_001 !!
1090 !! for this developer release to work !!
1092 This release was primarily adding the immutable
1093 feature to Moose. An immutable class is one which
1094 you promise not to alter. When you set the class
1095 as immutable it will perform various bits of
1096 memoization and inline certain part of the code
1097 (constructors, destructors and accessors). This
1098 minimizes (and in some cases totally eliminates)
1099 one of Moose's biggest performance hits. This
1100 feature is not on by default, and is 100% optional.
1101 It has several configurable bits as well, so you
1102 can pick and choose to your specific needs.
1104 The changes involved in this were fairly wide and
1105 highly specific, but 100% backwards compatible, so
1106 I am not going to enumerate them here. If you are
1107 truely interested in what was changed, please do
1110 0.17 Tues. Nov. 14, 2006
1111 * Moose::Meta::Method::Accessor
1112 - bugfix for read-only accessors which
1113 are have a type constraint and lazy.
1114 Thanks to chansen for finding it.
1116 0.16 Tues. Nov. 14, 2006
1118 There are some speed improvements in this release,
1119 but they are only the begining, so stay tuned.
1122 - BUILDALL and DEMOLISHALL no longer get
1123 called unless they actually need to be.
1124 This gave us a signifigant speed boost
1125 for the cases when there is no BUILD or
1126 DEMOLISH method present.
1128 * Moose::Util::TypeConstraints
1129 * Moose::Meta::TypeConstraint
1130 - added an 'optimize_as' option to the
1131 type constraint, which allows for a
1132 hand optimized version of the type
1133 constraint to be used when possible.
1134 - Any internally created type constraints
1135 now provide an optimized version as well.
1137 0.15 Sun. Nov. 5, 2006
1139 This version of Moose *must* have Class::MOP 0.36 in order
1140 to work correctly. A number of small internal tweaks have
1141 been made in order to be compatible with that release.
1143 * Moose::Util::TypeConstraints
1144 - added &unimport so that you can clean out
1145 your class namespace of these exported
1148 * Moose::Meta::Class
1149 - fixed minor issue which occasionally
1150 comes up during global destruction
1152 - moved Moose::Meta::Method::Overriden into
1156 - moved Moose::Meta::Role::Method into
1159 * Moose::Meta::Attribute
1160 - changed how we do type checks so that
1161 we reduce the overall cost, but still
1164 - moved accessor generation methods to
1165 Moose::Meta::Method::Accessor to
1166 conform to the API changes from
1169 * Moose::Meta::TypeConstraint
1170 - changed how constraints are compiled
1171 so that we do less recursion and more
1172 iteration. This makes the type check
1174 - moved Moose::Meta::TypeConstraint::Union
1177 * Moose::Meta::Method::Accessor
1178 - created this from methods formerly found in
1179 Moose::Meta::Attribute
1181 * Moose::Meta::Role::Method
1182 - moved this from Moose::Meta::Role
1184 * Moose::Meta::Method::Overriden
1185 - moved this from Moose::Meta::Class
1187 * Moose::Meta::TypeConstraint::Union
1188 - moved this from Moose::Meta::TypeConstraint
1190 0.14 Mon. Oct. 9, 2006
1192 * Moose::Meta::Attribute
1193 - fixed lazy attributes which were not getting
1194 checked with the type constraint (thanks ashley)
1195 - added tests for this
1196 - removed the over-enthusiastic DWIMery of the
1197 automatic ArrayRef and HashRef defaults, it
1198 broke predicates in an ugly way.
1199 - removed tests for this
1201 0.13 Sat. Sept. 30, 2006
1203 This version of Moose *must* have Class::MOP 0.35 in order
1204 to work correctly. A number of small internal tweaks have
1205 been made in order to be compatible with that release.
1208 - Removed the use of UNIVERSAL::require to be a better
1209 symbol table citizen and remove a dependency
1210 (thanks Adam Kennedy)
1212 **~~ removed experimental & undocumented feature ~~**
1213 - commented out the 'method' and 'self' keywords, see the
1214 comments for more info.
1217 - added a FAQ and WTF files to document frequently
1218 asked questions and common problems
1220 * Moose::Util::TypeConstraints
1221 - added GlobRef and FileHandle type constraint
1222 - added tests for this
1224 * Moose::Meta::Attribute
1225 - if your attribute 'isa' ArrayRef of HashRef, and you have
1226 not explicitly set a default, then make the default DWIM.
1227 This will also work for subtypes of ArrayRef and HashRef
1229 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1230 - new test added for this (thanks to ashley)
1233 - added basic support for runtime role composition
1234 but this is still *highly experimental*, so feedback
1235 is much appreciated :)
1236 - added tests for this
1238 * Moose::Meta::TypeConstraint
1239 - the type constraint now handles the coercion process
1240 through delegation, this is to support the coercion
1243 * Moose::Meta::TypeConstraint::Union
1244 - it is now possible for coercions to be performed
1246 - added tests for this (thanks to konobi)
1248 * Moose::Meta::TypeCoercion
1249 - properly capturing error when type constraint
1253 - Scalar::Util 1.18 is bad on Win32, so temporarily
1254 only require version 1.17 for Win32 and cygwin.
1255 (thanks Adam Kennedy)
1257 0.12 Sat. Sept. 1, 2006
1259 - Recipe5 (subtypes & coercion) has been written
1262 - fixed "bad meta" error message to be more descriptive
1263 - fixed &unimport to not remove the &inner and &super
1264 keywords because we need to localize them.
1265 - fixed number of spelling/grammer issues, thanks Theory :)
1267 **~~ experimental & undocumented feature ~~**
1268 - added the method and self keywords, they are basically
1269 just sugar, and they may not stay around.
1272 - added &dump method to easily Data::Dumper
1275 * Moose::Meta::TypeConstraint
1276 - added the &is_a_type_of method to check both the current
1277 and the subtype of a method (similar to &isa with classes)
1280 - this is now a subclass of Class::MOP::Module, and no longer
1281 creates the _role_meta ugliness of before.
1282 - fixed tests to reflect this change
1284 0.11 Wed. July 12, 2006
1286 - added an &unimport method to remove all the keywords
1287 that Moose will import, simply add 'no Moose' to the
1288 bottom of your class file.
1291 - fixed some test failures caused by a forgotten test
1294 0.10 Thurs. July 6, 2006
1296 - improved error message when loading modules so
1297 it is less confusing when you load a role.
1298 - added &calculate_all_roles method to
1299 Moose::Meta::Class and Moose::Meta::Role
1302 This module has been tested against Class::MOP 0.30
1303 but it does not yet utilize the optimizations
1304 it makes available. Stay tuned for that ;)
1306 0.09_03 Fri. June 23, 2006
1307 ++ DEVELOPER RELEASE ++
1309 - 'use strict' and 'use warnings' are no longer
1310 needed in Moose classes, Moose itself will
1311 turn them on for you.
1312 - added tests for this
1313 - moved code from exported subs to private methods
1314 in Moose::Meta::Class
1317 - as with Moose, strict and warnings are
1318 automatically turned on for you.
1319 - added tests for this
1322 - now handles an edge case for override errors
1323 - added tests for this
1324 - added some more edge case tests
1326 0.09_02 Tues. May 16, 2006
1327 ++ DEVELOPER RELEASE ++
1329 - added prototypes to the exported subs
1333 - added prototypes to the exported subs
1336 * Moose::Util::TypeConstraints
1337 - cleaned up prototypes for the subs
1340 0.09_01 Fri. May 12, 2006
1341 ++ DEVELOPER RELEASE ++
1342 - This release works in combination with
1343 Class::MOP 0.29_01, it is a developer
1344 release because it uses the a new
1345 instance sub-protocol and a fairly
1346 complete Role implementation. It has
1347 not yet been optimized, so it slower
1348 the the previous CPAN version. This
1349 release also lacks good updated docs,
1350 the official release will have updated docs.
1353 - refactored the keyword exports
1354 - 'with' now checks Role validaity and
1355 accepts more than one Role at a time
1356 - 'extends' makes metaclass adjustments as
1357 needed to ensure metaclass compatability
1360 - refactored the keyword exports
1361 - 'with' now checks Role validaity and
1362 accepts more than one Role at a time
1364 * Moose::Util::TypeConstraints
1365 - added the 'enum' keyword for simple
1366 string enumerations which can be used as
1368 - see example of usage in t/202_example.t
1371 - more careful checking of params to new()
1374 - much work done on the role composition
1375 - many new tests for conflict detection
1376 and composition edge cases
1377 - not enough documentation, I suggest
1378 looking at the tests
1380 * Moose::Meta::Instance
1381 - added new Instance metaclass to support
1382 the new Class::MOP instance protocol
1384 * Moose::Meta::Class
1385 - some small changes to support the new
1387 - some small additions to support Roles
1389 * Moose::Meta::Attribute
1390 - some improvements to the accessor generation code
1392 - some small changes to support the new
1394 - (still somewhat) experimental delegation support
1395 with the 'handles' option
1396 - added several tests for this
1397 - no docs for this yet
1399 0.05 Thurs. April 27, 2006
1401 - keywords are now exported with Sub::Exporter
1402 thanks to chansen for this commit
1403 - has keyword now takes a 'metaclass' option
1404 to support custom attribute meta-classes
1405 on a per-attribute basis
1406 - added tests for this
1407 - the 'has' keyword not accepts inherited slot
1408 specifications (has '+foo'). This is still an
1409 experimental feature and probably not finished
1410 see t/038_attribute_inherited_slot_specs.t for
1411 more details, or ask about it on #moose
1412 - added tests for this
1415 - keywords are now exported with Sub::Exporter
1417 * Moose::Utils::TypeConstraints
1418 - reorganized the type constraint hierarchy, thanks
1419 to nothingmuch and chansen for his help and advice
1421 - added some tests for this
1422 - keywords are now exported with Sub::Exporter
1423 thanks to chansen for this commit
1425 * Moose::Meta::Class
1426 - due to changes in Class::MOP, we had to change
1427 construct_instance (for the better)
1429 * Moose::Meta::Attribute
1430 - due to changes in Class::MOP, we had to add the
1431 initialize_instance_slot method (it's a good thing)
1433 * Moose::Meta::TypeConstraint
1434 - added type constraint unions
1435 - added tests for this
1436 - added the is_subtype_of predicate method
1437 - added tests for this
1439 0.04 Sun. April 16th, 2006
1441 - Roles can now consume other roles
1442 - added tests for this
1443 - Roles can specify required methods now with
1444 the requires() keyword
1445 - added tests for this
1448 - ripped out much of it's guts ,.. much cleaner now
1449 - added required methods and correct handling of
1450 them in apply() for both classes and roles
1451 - added tests for this
1452 - no longer adds a does() method to consuming classes
1453 it relys on the one in Moose::Object
1454 - added roles attribute and some methods to support
1455 roles consuming roles
1457 * Moose::Meta::Attribute
1458 - added support for triggers on attributes
1459 - added tests for this
1460 - added support for does option on an attribute
1461 - added tests for this
1463 * Moose::Meta::Class
1464 - added support for attribute triggers in the
1466 - added tests for this
1469 - Moose no longer creates a subtype for your class
1470 if a subtype of the same name already exists, this
1471 should DWIM in 99.9999% of all cases
1473 * Moose::Util::TypeConstraints
1474 - fixed bug where incorrect subtype conflicts were
1476 - added test for this
1479 - this class can now be extended with 'use base' if
1480 you need it, it properly loads the metaclass class now
1481 - added test for this
1483 0.03_02 Wed. April 12, 2006
1485 - you must now explictly use Moose::Util::TypeConstraints
1486 it no longer gets exported for you automatically
1489 - new() now accepts hash-refs as well as key/value lists
1490 - added does() method to check for Roles
1491 - added tests for this
1493 * Moose::Meta::Class
1494 - added roles attribute along with the add_role() and
1496 - added tests for this
1499 - now adds a does() method to consuming classes
1500 which tests the class's hierarchy for roles
1501 - added tests for this
1503 0.03_01 Mon. April 10, 2006
1505 - added new Role recipe (no content yet, only code)
1508 - added 'with' keyword for Role support
1509 - added test and docs for this
1510 - fixed subtype quoting bug
1511 - added test for this
1515 - added test and docs
1517 * Moose::Util::TypeConstraints
1518 - added the message keyword to add custom
1519 error messages to type constraints
1522 - the meta role to support Moose::Role
1523 - added tests and docs
1525 * Moose::Meta::Class
1526 - moved a number of things from Moose.pm
1527 to here, they should have been here
1530 * Moose::Meta::Attribute
1531 - moved the attribute option macros here
1532 instead of putting them in Moose.pm
1534 * Moose::Meta::TypeConstraint
1535 - added the message attributes and the
1537 - added tests and docs for this
1539 0.03 Thurs. March 30, 2006
1541 - added the Moose::Cookbook with 5 recipes,
1542 describing all the stuff Moose can do.
1545 - fixed an issue with &extends super class loading
1546 it now captures errors and deals with inline
1547 packages correctly (bug found by mst, solution
1549 - added super/override & inner/augment features
1550 - added tests and docs for these
1553 - BUILDALL now takes a reference of the %params
1554 that are passed to &new, and passes that to
1557 * Moose::Util::TypeConstraints
1558 - Type constraints now survive runtime reloading
1559 - added test for this
1561 * Moose::Meta::Class
1562 - fixed the way attribute defaults are handled
1563 during instance construction (bug found by chansen)
1565 * Moose::Meta::Attribute
1566 - read-only attributes now actually enforce their
1567 read-only-ness (this corrected in Class::MOP as
1570 0.02 Tues. March 21, 2006
1572 - many more tests, fixing some bugs and
1574 - &extends now loads the base module with
1576 - added UNIVERSAL::require to the
1579 - each new Moose class will also create
1580 and register a subtype of Object which
1581 correspond to the new Moose class.
1582 - the 'isa' option in &has now only
1583 accepts strings, and will DWIM in
1586 * Moose::Util::TypeConstraints
1587 - added type coercion features
1588 - added tests for this
1589 - added support for this in attributes
1590 and instance construction
1592 - type construction no longer creates a
1593 function, it registers the type instead.
1594 - added several functions to get the
1598 - BUILDALL and DEMOLISHALL were broken
1599 because of a mis-named hash key, Whoops :)
1601 * Moose::Meta::Attribute
1602 - adding support for coercion in the
1603 autogenerated accessors
1605 * Moose::Meta::Class
1606 - adding support for coercion in the
1607 instance construction
1609 * Moose::Meta::TypeConstraint
1610 * Moose::Meta::TypeCoercion
1611 - type constraints and coercions are now
1612 full fledges meta-objects
1614 0.01 Wed. March 15, 2006
1615 - Moooooooooooooooooose!!!