1 Revision history for Perl extension Moose
5 - Passing "-traits" when loading Moose caused the Moose.pm
6 exports to be broken. Reported by t0m. (Dave Rolsky)
7 - Tests for this bug. (t0m)
10 - Change resolve_metaclass alias to use the new
11 load_first_existing_class function. This makes it a lot
12 simpler, and also around 5 times faster. (t0m)
13 - Add caching to resolve_metatrait_alias, which gives an
14 order of magnitude speedup to things which repeatedly call
15 the does method. E.g. MooseX::Storage (t0m)
17 0.59 Tue October 14, 2008
19 - Add abridged documentation for builder/default/initializer/
20 predicate, and link to more details sections in
21 Class::MOP::Attribute. (t0m)
23 * Moose::Util::TypeConstraints
24 - removed prototypes from all but the &-based stuff (mst)
26 * Moose::Util::TypeConstraints
27 - Creating a anonymous subtype with both a constraint and a
28 message failed with a very unhelpful error, but should just
29 work. Reported by t0m. (Dave Rolsky)
32 - Some tests that used Test::Warn if it was available failed
33 with older versions of Test::Warn. Reported by Fayland. (Dave
35 - Test firing behavior of triggers in relation to builder/default/
37 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
38 kinds of supported type. (t0m)
41 - In create(), do not pass "roles" option to the superclass
42 - added related test that creates an anon metaclass with
45 * Moose::Meta::TypeConstraint::Class
46 * Moose::Meta::TypeConstraint::Role
47 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
48 other types (as per change in 0.55_02). (t0m)
50 * Moose::Meta::TypeConstraint::Registry
51 - Fix warning when dealing with unknown type names (t0m)
53 * Moose::Util::TypeConstraints
54 - Reverted changes from 0.58 related to handle parameterized
55 types. This caused random failures on BSD and Win32 systems,
56 apparently related to the regex engine. This means that Moose
57 can no longer parse structured type constraints like
58 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
59 supported in a slightly different way via MooseX::Types some
60 time in the future. (Dave Rolsky)
62 0.58 Sat September 20, 2008
63 !! This release has an incompatible change regarding !!
64 !! how roles add methods to a class !!
66 * Roles and role application
67 ! Roles now add methods by calling add_method, not
68 alias_method. They make sure to always provide a method
69 object, which will be cloned internally. This means that it is
70 now possible to track the source of a method provided by a
71 role, and even follow its history through intermediate roles.
73 This means that methods added by a role now show up when
74 looking at a class's method list/map. (Dave Rolsky)
77 - From this release on, we'll try to maintain a list of
78 conflicting modules, and warn you if you have one
79 installed. For example, this release conflicts with ...
80 - MooseX::Singleton <= 0.11
81 - MooseX::Params::Validate <= 0.05
84 In general, we try to not break backwards compatibility for
85 most Moose users, but MooseX modules and other code which
86 extends Moose's metaclasses is often affected by very small
87 changes in the Moose internals.
89 * Moose::Meta::Method::Delegation
90 * Moose::Meta::Attribute
91 - Delegation methods now have their own method class. (Dave
94 * Moose::Meta::TypeConstraint::Parameterizable
95 - Added a new method 'parameterize' which is basically a factory
96 for the containing constraint. This makes it easier to create
97 new types of parameterized constraints. (jnapiorkowski)
99 * Moose::Meta::TypeConstraint::Union
100 - Changed the way Union types canonicalize their names to follow
101 the normalized TC naming rules, which means we strip all
102 whitespace. (jnapiorkowski)
104 * Moose::Util::TypeConstraints
105 - Parameter and Union args are now sorted, this makes Int|Str
106 the same constraint as Str|Int. (jnapiorkowski)
107 - Changes to the way Union types are parsed to more correctly
108 stringify their names. (jnapiorkowski)
109 - When creating a parameterized type, we now use the new
110 parameterize method. (jnapiorkowski)
111 - Incoming type constraint strings are now normalized to remove
112 all whitespace differences. (jnapiorkowski)
113 - Changed the way we parse type constraint strings so that we now
114 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
115 constraints. This lays the foundation for more flexible type
116 constraint implementations.
118 * Tests and docs for all the above. (jnapiorkowski)
122 - Moose::Exporter will no longer remove a subroutine that the
123 exporting package re-exports. Moose re-exports the
124 Carp::confess function, among others. The reasoning is that we
125 cannot know whether you have also explicitly imported those
126 functions for your own use, so we err on the safe side and
127 always keep them. (Dave Rolsky)
128 - added tests for this (rafl)
131 - Changes to how we fix metaclass compatibility that are much
132 too complicated to go into. The summary is that Moose is much
133 less likely to complain about metaclass incompatibility
134 now. In particular, if two metaclasses differ because
135 Moose::Util::MetaRole was used on the two corresponding
136 classes, then the difference in roles is reconciled for the
137 subclass's metaclass. (Dave Rolsky)
138 - Squashed an warning in _process_attribute (thepler)
141 - throw exceptions (sooner) for invalid attribute names (thepler)
142 - added tests for this (thepler)
144 * Moose::Util::MetaRole
145 - If you explicitly set a constructor or destructor class for a
146 metaclass object, and then applied roles to the metaclass,
147 that explicitly set class would be lost and replaced with the
151 * Moose::Meta::Attribute
152 * Moose::Meta::Method
155 * Moose::Error::Default
156 * Moose::Error::Croak
157 * Moose::Error::Confess
158 - All instances of confess() changed to use overridable
159 C<throw_error> method. This method ultimately calls a class
160 constructor, and you can change the class being called. In
161 addition, errors now pass more information than just a string.
162 The default C<error_class> behaves like C<Carp::confess>, so
163 the behavior is not visibly different for end users.
165 0.57 Wed September 3, 2008
167 - A new bit of doc intended to introduce folks familiar with
168 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
171 - Shows examples of two classes, each done first with and then
172 without Moose. This makes a nice parallel to
173 Moose::Intro. (Dave Rolsky)
175 * Moose::Util::TypeConstraints
176 - Fixed a bug in find_or_parse_type_constraint so that it
177 accepts a Moose::Meta::TypeConstraint object as the parent
178 type, not just a name (jnapiorkowski)
179 - added tests (jnapiorkowski)
182 - If Sub::Name was not present, unimporting failed to actually
183 remove some sugar subs, causing test failures (Dave Rolsky)
185 0.56 Mon September 1, 2008
186 For those not following the series of dev releases, there are
187 several major changes in this release of Moose.
188 ! Moose::init_meta should now be called as a method. See the
191 - Major performance improvements by nothingmuch.
193 - New modules for extension writers, Moose::Exporter and
194 Moose::Util::MetaRole by Dave Rolsky.
196 - Lots of doc improvements and additions, especially in the
201 * Removed all references to the experimental-but-no-longer-needed
202 Moose::Meta::Role::Application::ToMetaclassInstance.
204 * Require Class::MOP 0.65.
206 0.55_04 Sat August 30, 2008
207 * Moose::Util::MetaRole
208 * Moose::Cookbook::Extending::Recipe2
209 - This simplifies the application of roles to any meta class, as
210 well as the base object class. Reimplemented metaclass traits
211 using this module. (Dave Rolsky)
213 * Moose::Cookbook::Extending::Recipe1
214 - This a new recipe, an overview of various ways to write Moose
215 extensions (Dave Rolsky)
217 * Moose::Cookbook::Extending::Recipe3
218 * Moose::Cookbook::Extending::Recipe4
219 - These used to be Extending::Recipe1 and Extending::Recipe2,
222 0.55_03 Fri August 29, 2008
223 * No changes from 0.55_02 except increasing the Class::MOP
224 dependency to 0.64_07.
226 0.55_02 Fri August 29, 2008
227 * Makefile.PL and Moose.pm
228 - explicitly require Perl 5.8.0+ (Dave Rolsky)
230 * Moose::Util::TypeConstraints
231 - Fix warnings from find_type_constraint if the type is not
234 * Moose::Meta::TypeConstraint
235 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
236 return false if the type you specify cannot be found in the
237 type registry, rather than throwing an unhelpful and
238 coincidental exception. (t0m).
239 - added docs & test for this (t0m)
241 * Moose::Meta::TypeConstraint::Registry
242 - add_type_constraint now throws an exception if a parameter is
244 - added docs & test for this (t0m)
246 * Moose::Cookbook::FAQ
247 - Added a faq entry on the difference between "role" and "trait"
251 - Fixed a bug that caused role composition to not see a required
252 method when that method was provided by another role being
253 composed at the same time. (Dave Rolsky)
254 - test and bug finding (tokuhirom)
256 0.55_01 Wed August 20, 2008
258 !! Calling Moose::init_meta as a function is now !!
259 !! deprecated. Please see the Moose.pm docs for details. !!
261 * Moose::Meta::Method::Constructor
262 - Fix inlined constructor so that values produced by default
263 or builder methods are coerced as required. (t0m)
264 - added test for this (t0m)
266 * Moose::Meta::Attribute
267 - A lazy attribute with a default or builder did not attempt to
268 coerce the default value. The immutable code _did_
270 - added test for this (t0m)
273 - This is a new helper module for writing "Moose-alike"
274 modules. This should make the lives of MooseX module authors
275 much easier. (Dave Rolsky)
278 * Moose::Cookbook::Meta::Recipe5
279 - Implemented metaclass traits (and wrote a recipe for it):
281 use Moose -traits => 'Foo'
283 This should make writing small Moose extensions a little
286 * Moose::Cookbook::Basics::Recipe1
287 - Removed any examples of direct hashref access, and applied an
288 editorial axe to reduce verbosity. (Dave Rolsky)
290 * Moose::Cookbook::Basics::Recipe1
291 - Also applied an editorial axe here. (Dave Rolsky)
294 * Moose::Cookbook::Extending::Recipe1
295 * Moose::Cookbook::Extending::Recipe2
296 - Rewrote extending and embedding moose documentation and
297 recipes to use Moose::Exporter (Dave Rolsky)
301 - These two modules now warn when you load them from the main
302 package "main" package, because we will not export sugar to
303 main. Previously it just did nothing. (Dave Rolsky)
306 - Now provide an init_meta method just like Moose.pm, and you
307 can call this to provide an alternate role metaclass. (Dave
308 Rolsky and nothingmuch)
309 - get_method_map now respects the package cache flag (nothingmuch)
312 - Two new methods - add_method and wrap_method_body
316 - Optimizations including allowing constructors to accept hash
317 refs, making many more classes immutable, and making
318 constructors immutable. (nothingmuch)
320 0.55 Sun August 3, 2008
321 * Moose::Meta::Attribute
322 - breaking down the way 'handles' methods are
323 created so that the process can be more easily
324 overridden by subclasses (stevan)
326 * Moose::Meta::TypeConstraint
327 - fixing what is passed into a ->message with
328 the type constraints (RT #37569)
329 - added tests for this (Charles Alderman)
331 * Moose::Util::TypeConstraints
332 - fix coerce to accept anon types like subtype can (mst)
335 - reorganized the recipes into sections - Basics, Roles, Meta,
336 Extending - and wrote abstracts for each section (Dave Rolsky)
338 * Moose::Cookbook::Basics::Recipe10
339 - A new recipe that demonstrates operator overloading
340 in combination with Moose. (bluefeet)
342 * Moose::Cookbook::Meta::Recipe1
343 - an introduction to what meta is and why you'd want to make
344 your own metaclass extensions (Dave Rolsky)
346 * Moose::Cookbook::Meta::Recipe4
347 - a very simple metaclass example (Dave Rolsky)
349 * Moose::Cookbook::Extending::Recipe1
350 - how to write a Moose-alike module to use your own object base
353 * Moose::Cookbook::Extending::Recipe2
354 - how to write modules with an API just like C<Moose.pm> (Dave
358 - Tons of fixes, both syntactical and grammatical (Dave
359 Rolsky, Paul Fenwick)
361 0.54 Thurs. July 3, 2008
362 ... this is not my day today ...
364 * Moose::Meta::Attribute
365 - fixed legal_options_for_inheritance such that
366 clone_and_inherit options still works for
367 Class::MOP::Attribute objects and therefore
368 does not break MooseX::AttributeHelpers
371 0.53 Thurs. July 3, 2008
372 * Whoops, I guess I should run 'make manifest' before
373 actually releasing the module. No actual changes
374 in this release, except the fact that it includes
375 the changes that I didn't include in the last
378 0.52 Thurs. July 3, 2008
380 - added "FEATURE REQUESTS" section to the Moose docs
381 to properly direct people (stevan) (RT #34333)
382 - making 'extends' croak if it is passed a Role since
383 this is not ever something you want to do
384 (fixed by stevan, found by obra)
385 - added tests for this (stevan)
388 - adding support for DOES (as in UNIVERSAL::DOES)
390 - added test for this
392 * Moose::Meta::Attribute
393 - added legal_options_for_inheritance (wreis)
394 - added tests for this (wreis)
396 * Moose::Cookbook::Snacks::*
397 - removed some of the unfinished snacks that should
398 not have been released yet. Added some more examples
399 to the 'Keywords' snack. (stevan)
401 * Moose::Cookbook::Style
402 - added general Moose "style guide" of sorts to the
403 cookbook (nothingmuch) (RT #34335)
406 - added more BUILDARGS tests (stevan)
408 0.51 Thurs. Jun 26, 2008
410 - add unimport so "no Moose::Role" actually does
413 * Moose::Meta::Role::Application::ToRole
414 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
415 order to provide its own implementation, that method still got
416 added to the list of required methods for consumers of
417 RoleB. Now an aliased method is only added to the list of
418 required methods if the role doing the aliasing does not
419 provide its own implementation. See Recipe 11 for an example
420 of all this. (Dave Rolsky)
421 - added tests for this
423 * Moose::Meta::Method::Constructor
424 - when a single argument that wasn't a hashref was provided to
425 an immutabilized constructor, the error message was very
426 unhelpful, as opposed to the non-immutable error. Reported by
428 - added test for this (Dave Rolsky)
430 * Moose::Meta::Attribute
431 - added support for meta_attr->does("ShortAlias") (sartak)
432 - added tests for this (sartak)
433 - moved the bulk of the `handles` handling to the new
434 install_delegation method (Stevan)
437 - Added BUILDARGS, a new step in new()
439 * Moose::Meta::Role::Application::RoleSummation
440 - fix typos no one ever sees (sartak)
442 * Moose::Util::TypeConstraints
443 * Moose::Meta::TypeConstraint
444 * Moose::Meta::TypeCoercion
445 - Attempt to work around the ??{ } vs. threads issue
447 - Some null_constraint optimizations
449 0.50 Thurs. Jun 11, 2008
450 - Fixed a version number issue by bumping all modules
453 0.49 Thurs. Jun 11, 2008
454 !! This version now approx. 20-25% !!
455 !! faster with new Class::MOP 0.59 !!
457 * Moose::Meta::Attribute
458 - fixed how the is => (ro|rw) works with
459 custom defined reader, writer and accessor
461 - added docs for this (TODO).
462 - added tests for this (Thanks to Penfold)
463 - added the custom attribute alias for regular
464 Moose attributes which is "Moose"
465 - fix builder and default both being used
470 Moose::Meta::Attribute
472 Moose::Meta::Role::Composite
473 Moose::Util::TypeConstraints
474 - switched usage of reftype to ref because
478 - changing add_package_symbol to use the new
482 - fixed how DEMOLISHALL is called so that it
483 can be overrided in subclasses (thanks to Sartak)
484 - added test for this (thanks to Sartak)
486 * Moose::Util::TypeConstraints
487 - move the ClassName type check code to
488 Class::MOP::is_class_loaded (thanks to Sartak)
490 * Moose::Cookbook::Recipe11
491 - add tests for this (thanks to tokuhirom)
493 0.48 Thurs. May 29, 2008
494 (early morning release engineering)--
496 - fixing the version in Moose::Meta::Method::Destructor
497 which was causing the indexer to choke
499 0.47 Thurs. May 29, 2008
500 (late night release engineering)--
502 - fixing the version is META.yml, no functional
503 changes in this release
505 0.46 Wed. May 28, 2008
506 !! This version now approx. 20-25% !!
507 !! faster with new Class::MOP 0.57 !!
510 - some optimizations of the &initialize method
511 since it is called so often by &meta
515 - now use the get_all_package_symbols from the
516 updated Class::MOP, test suite is now 10 seconds
519 * Moose::Meta::Method::Destructor
520 - is_needed can now also be called as a class
521 method for immutablization to check if the
522 destructor object even needs to be created
525 * Moose::Meta::Method::Destructor
526 Moose::Meta::Method::Constructor
527 - added more descriptive error message to help
528 keep people from wasting time tracking an error
529 that is easily fixed by upgrading.
531 0.45 Saturday, May 24, 2008
533 - Because of work in Class::MOP 0.57, all
534 XS based functionality is now optional
535 and a Pure Perl version is supplied
536 - the CLASS_MOP_NO_XS environment variable
537 can now be used to force non-XS versions
539 - several of the packages have been tweaked
540 to take care of this, mostly we added
541 support for the package_name and name
542 variables in all the Method metaclasses
543 - before/around/after method modifiers now
544 support regexp matching of names
545 (thanks to Takatoshi Kitano)
546 - tests added for this
547 - NOTE: this only works for classes, it
548 is currently not supported in roles,
549 but, ... patches welcome
550 - All usage of Carp::confess have been replaced
551 by Carp::croak in the "keyword" functions since
552 the stack trace is usually not helpful
555 - All usage of Carp::confess have been replaced
556 by Carp::croak in the "keyword" functions since
557 the stack trace is usually not helpful
558 - The 'has' keyword for roles now accepts the
559 same array ref form that Moose.pm does
560 (has [qw/foo bar/] => (is => 'rw', ...))
561 - added test for this
563 * Moose::Meta::Attribute
564 - trigger on a ro-attribute is no longer an
565 error, as it's useful to trigger off of the
569 - added same 'add_package_symbol' fix as in
573 - does_role now handles non-Moose classes
575 - added tests for this
576 - added the 'add_method_modifier' function
577 (thanks to Takatoshi Kitano)
579 * Moose::Util::TypeConstraints
580 - subtypes of parameterizable types now are
581 themselves parameterizable types
583 * Moose::Meta::Method::Constructor
584 - fixed bug where trigger was not being
585 called by the inlined immutable
587 - added test for this (thanks to Caelum)
589 * Moose::Meta::Role::Application::ToInstance
590 - now uses the metaclass of the instance
591 (if possible) to create the anon-class
592 (thanks Jonathan Rockway)
594 * Moose::Cookbook::Recipe22
595 - added the meta-attribute trait recipe
599 - fixed hash-ordering test bug that was
600 causing occasional cpantester failures
601 - renamed the t/000_recipe/*.t tests to be
602 more descriptive (thanks to Sartak)
604 0.44 Sat. May 10, 2008
606 - made make_immutable warning cluck to
607 show where the error is (thanks mst)
610 - BUILDALL and DEMOLISHALL now call
611 ->body when looping through the
612 methods, to avoid the overloaded
614 - fixed issue where DEMOLISHALL was
615 eating the $@ values, and so not
616 working correctly, it still kind of
617 eats them, but so does vanilla perl
618 - added tests for this
620 * Moose::Cookbook::Recipe7
621 - added new recipe for immutable
622 functionality (thanks Dave Rolsky)
624 * Moose::Cookbook::Recipe9
625 - added new recipe for builder and
626 lazy_build (thanks Dave Rolsky)
628 * Moose::Cookbook::Recipe11
629 - added new recipe for method aliasing
630 and exclusion with Roles (thanks Dave Rolsky)
633 - fixed Win32 test failure (thanks spicyjack)
635 ~ removed Build.PL and Module::Build compat
636 since Module::Install has done that.
638 0.43 Wed. April, 30, 2008
640 drink more coffee before
641 doing release engineering
643 - whoops, forgot to do the smolder tests,
644 and we broke some of the custom meta-attr
645 modules. This fixes that.
647 0.42 Mon. April 28, 2008
648 - some bad tests slipped by, nothing else
649 changed in this release (cpantesters++)
651 - upped the Class::MOP dependency to 0.55
652 since we have tests which need the C3
655 0.41 Mon. April 28, 2008
656 ~~ numerous documentation updates ~~
658 - Changed all usage of die to Carp::croak for better
659 error reporting (initial patch by Tod Hagan)
662 - the make_immutable keyword is now deprecated, don't
663 use it in any new code and please fix your old code
664 as well. There will be 2 releases, and then it will
670 - refactored the way inner and super work to avoid
671 any method/@ISA cache penalty (nothingmuch)
674 - fixing &new_object to make sure trigger gets the
675 coerced value (spotted by Charles Alderman on the
677 - added test for this
679 * Moose::Meta::Method::Constructor
680 - immutable classes which had non-lazy attributes were calling
681 the default generating sub twice in the constructor. (bug
682 found by Jesse Luehrs, fixed by Dave Rolsky)
683 - added tests for this (Dave Rolsky)
684 - fix typo in initialize_body method (nothingmuch)
686 * Moose::Meta::Method::Destructor
687 - fix typo in initialize_body method (nothingmuch)
689 * Moose::Meta::Method::Overriden
690 Moose::Meta::Method::Augmented
691 - moved the logic for these into their own
692 classes (nothingmuch)
694 * Moose::Meta::Attribute
695 - inherited attributes may now be extended without
696 restriction on the type ('isa', 'does') (Sartak)
697 - added tests for this (Sartak)
698 - when an attribute property is malformed (such as lazy without
699 a default), give the name of the attribute in the error
701 - added the &applied_traits and &has_applied_traits methods
702 to allow introspection of traits
703 - added tests for this
704 - moved 'trait' and 'metaclass' argument handling to here from
706 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
707 '+foo' syntax) (nothingmuch)
708 - added tests for this (t0m)
711 - localize $@ inside DEMOLISHALL to avoid it
712 eating $@ (found by Ernesto)
713 - added test for this (thanks to Ernesto)
715 * Moose::Util::TypeConstraints
716 - &find_type_constraint now DWIMs when given an
717 type constraint object or name (nothingmuch)
718 - &find_or_create_type_constraint superseded with a number of more
720 - find_or_create_{isa,does}_type_constraint
721 - find_or_parse_type_constraint
723 * Moose::Meta::TypeConstraint
724 Moose::Meta::TypeConstraint::Class
725 Moose::Meta::TypeConstraint::Role
726 Moose::Meta::TypeConstraint::Enum
727 Moose::Meta::TypeConstraint::Union
728 Moose::Meta::TypeConstraint::Parameterized
729 - added the &equals method for comparing two type
730 constraints (nothingmuch)
731 - added tests for this (nothingmuch)
733 * Moose::Meta::TypeConstraint
734 - add the &parents method, which is just an alias to &parent.
735 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
737 * Moose::Meta::TypeConstraint::Class
738 - added the class attribute for introspection purposes
740 - added tests for this
742 * Moose::Meta::TypeConstraint::Enum
743 Moose::Meta::TypeConstraint::Role
744 - broke these out into their own classes (nothingmuch)
746 * Moose::Cookbook::Recipe*
747 - fixed references to test file locations in the POD
748 and updated up some text for new Moose features
752 - Added &resolve_metaclass_alias, a helper function for finding an actual
753 class for a short name (e.g. in the traits list)
755 0.40 Fri. March 14, 2008
756 - I hate Pod::Coverage
758 0.39 Fri. March 14, 2008
760 - documenting the use of '+name' with attributes
761 that come from recently composed roles. It makes
762 sense, people are using it, and so why not just
763 officially support it.
764 - fixing the 'extends' keyword so that it will not
765 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
768 - added the perl -Moose=+Class::Name feature to allow
769 monkeypatching of classes in one liners
772 - fixing the 'apply_all_roles' keyword so that it will not
773 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
776 - added ->create method which now supports roles (thanks to jrockway)
777 - added tests for this
778 - added ->create_anon_class which now supports roles and caching of
779 the results (thanks to jrockway)
780 - added tests for this
781 - made ->does_role a little more forgiving when it is
782 checking a Class::MOP era metaclasses.
784 * Moose::Meta::Role::Application::ToInstance
785 - it is now possible to pass extra params to be used when
786 a role is applied to an the instance (rebless_params)
787 - added tests for this
789 * Moose::Util::TypeConstraints
790 - class_type now accepts an optional second argument for a
791 custom message. POD anotated accordingly (groditi)
792 - added tests for this
793 - it is now possible to make anon-enums by passing 'enum' an
794 ARRAY ref instead of the $name => @values. Everything else
796 - added tests for this
799 - making test for using '+name' on attributes consumed
800 from a role, it works and makes sense too.
802 * Moose::Meta::Attribute
803 - fix handles so that it doesn't return nothing
804 when the method cannot be found, not sure why
805 it ever did this originally, this means we now
806 have slightly better support for AUTOLOADed
808 - added more delegation tests
809 - adding ->does method to this so as to better
810 support traits and their introspection.
811 - added tests for this
814 - localizing the Data::Dumper configurations so
815 that it does not pollute others (RT #33509)
816 - made ->does a little more forgiving when it is
817 passed Class::MOP era metaclasses.
819 0.38 Fri. Feb. 15, 2008
820 * Moose::Meta::Attribute
821 - fixed initializer to correctly do
822 type checking and coercion in the
824 - added tests for this
827 - fixed some finicky tests (thanks to konobi)
829 0.37 Thurs. Feb. 14, 2008
831 - fixed some details in Moose::init_meta
832 and its superclass handling (thanks thepler)
833 - added tests for this (thanks thepler)
834 - 'has' now dies if you don't pass in name
836 - added the 'make_immutable' keyword as a shortcut
840 Moose::Meta::Method::Constructor
841 Moose::Meta::Attribute
842 - making (init_arg => undef) work here too
843 (thanks to nothingmuch)
845 * Moose::Meta::Attribute
846 Moose::Meta::Method::Constructor
847 Moose::Meta::Method::Accessor
848 - make lazy attributes respect attr initializers (rjbs)
849 - added tests for this
851 * Moose::Util::TypeConstraints
852 Moose::Util::TypeConstraints::OptimizedConstraints
853 Moose::Meta::TypeConstraints
854 Moose::Meta::Attribute
855 Moose::Meta::Method::Constructor
856 Moose::Meta::Method::Accessor
857 - making type errors use the
858 assigned message (thanks to Sartak)
859 - added tests for this
861 * Moose::Meta::Method::Destructor
862 - making sure DESTROY gets inlined properly
863 with successive DEMOLISH calls (thanks to manito)
865 * Moose::Meta::Attribute
866 Moose::Meta::Method::Accessor
867 - fixed handling of undef with type constraints
869 - added tests for this
872 - added &get_all_init_args and &get_all_attribute_values
873 (thanks to Sartak and nothingmuch)
875 0.36 Sat. Jan. 26, 2008
877 Moose::Meta::Attribute
878 - role type tests now support when roles are
879 applied to non-Moose classes (found by ash)
880 - added tests for this (thanks to ash)
881 - couple extra tests to boost code coverage
883 * Moose::Meta::Method::Constructor
884 - improved fix for handling Class::MOP attributes
885 - added test for this
888 - handled the add_attribute($attribute_meta_object)
890 - added test for this
892 0.35 Tues. Jan. 22, 2008
893 * Moose::Meta::Method::Constructor
894 - fix to make sure even Class::MOP attributes
895 are handled correctly (Thanks to Dave Rolsky)
896 - added test for this (also Dave Rolsky)
899 - improved error message on _apply_all_roles,
900 you should now use Moose::Util::apply_all_roles
901 and you shouldnt have been using a _ prefixed
902 method in the first place ;)
904 0.34 Mon. Jan. 21, 2008
905 ~~~ more misc. doc. fixes ~~~
906 ~~ updated copyright dates ~~
908 Moose is now a postmodern object system :)
909 - (see the POD for details)
911 * <<Role System Refactoring>>
912 - this release contains a major reworking and
913 cleanup of the role system
914 - 100% backwards compat.
915 - Role application now restructured into seperate
916 classes based on type of applicants
917 - Role summation (combining of more than one role)
918 is much cleaner and anon-classes are no longer
920 - new Composite role metaclass
921 - runtime application of roles to instances
922 is now more efficient and re-uses generated
923 classes when applicable
925 * <<New Role composition features>>
926 - methods can now be excluded from a given role
928 - methods can now be aliased to another name (and
929 still retain the original as well)
931 * Moose::Util::TypeConstraints::OptimizedConstraints
932 - added this module (see above)
935 - fixed the &_process_attribute method to be called
936 by &add_attribute, so that the API is now correct
938 * Moose::Meta::Method::Accessor
939 - fixed bug when passing a list of values to
940 an accessor would get (incorrectly) ignored.
941 Thanks to Sartak for finding this ;)
942 - added tests for this (Sartak again)
944 * Moose::Meta::Method::Accessor
945 Moose::Meta::Method::Constructor
946 Moose::Meta::Attribute
947 Moose::Meta::TypeConstraint
948 Moose::Meta::TypeCoercion
949 - lots of cleanup of such things as:
951 - type constraint handling
952 - error handling/messages
953 (thanks to nothingmuch)
955 * Moose::Meta::TypeConstraint::Parameterizable
956 - added this module to support the refactor
957 in Moose::Meta::TypeConstraint::Parameterized
959 * Moose::Meta::TypeConstraint::Parameterized
960 - refactored how these types are handled so they
961 are more generic and not confined to ArrayRef
965 - shortened some file names for better VMS support (RT #32381)
967 0.33 Fri. Dec. 14, 2007
968 !! Moose now loads 2 x faster !!
969 !! with new Class::MOP 0.49 !!
971 ++ new oose.pm module to make command line
972 Moose-ness easier (see POD docs for more)
976 - several tweaks to take advantage of the
977 new method map caching in Class::MOP
979 * Moose::Meta::TypeConstraint::Parameterized
980 - allow subtypes of ArrayRef and HashRef to
981 be used as a container (sartak)
982 - added tests for this
983 - basic support for coercion to ArrayRef and
984 HashRef for containers (sartak)
985 - added tests for this
987 * Moose::Meta::TypeCoercion
988 - coercions will now create subtypes as needed
989 so you can now add coercions to parameterized
990 types without having to explictly define them
991 - added tests for this
993 * Moose::Meta::Method::Accessor
994 - allow subclasses to decide whether we need
995 to copy the value into a new variable (sartak)
997 0.32 Tues. Dec. 4, 2007
998 * Moose::Util::TypeConstraints
999 - fixing how subtype aliases of unions work
1000 they should inherit the parent's coercion
1001 - added tests for this
1002 - you can now define multiple coercions on
1003 a single type at different times instead of
1004 having to do it all in one place
1005 - added tests for this
1007 * Moose::Meta::TypeConstraint
1008 - there is now a default constraint of sub { 1 }
1009 instead of Moose::Util::TypeConstraints setting
1012 * Moose::Meta::TypeCoercion
1013 * Moose::Meta::TypeCoercion::Union
1014 - added the &has_coercion_for_type and
1015 &add_type_coercions methods to support the
1016 new features above (although you cannot add
1017 more type coercions for Union types)
1019 0.31 Mon. Nov. 26, 2007
1020 * Moose::Meta::Attribute
1021 - made the +attr syntax handle extending types with
1022 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1023 now works if the original foo is an ArrayRef.
1024 - added tests for this.
1025 - delegation now works even if the attribute does not
1026 have a reader method using the get_read_method_ref
1027 method from Class::MOP::Attribute.
1028 - added tests for this
1029 - added docs for this
1031 * Moose::Util::TypeConstraints
1032 - passing no "additional attribute info" to
1033 &find_or_create_type_constraint will no longer
1034 attempt to create an __ANON__ type for you,
1035 instead it will just return undef.
1036 - added docs for this
1038 0.30 Fri. Nov. 23, 2007
1039 * Moose::Meta::Method::Constructor
1040 -builder related bug in inlined constructor. (groditi)
1042 * Moose::Meta::Method::Accessor
1043 - genereate unnecessary calls to predicates and refactor
1044 code generation for runtime speed (groditi)
1046 * Moose::Util::TypeConstraints
1047 - fix ClassName constraint to introspect symbol table (mst)
1048 - added more tests for this (mst)
1049 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1050 with work correctly.
1051 - added tests for this
1054 - adding the link to Recipie 11 (written by Sartak)
1055 - adding test for SYNOPSIS code
1058 - New tests for builder bug. Upon instantiation, if an
1059 attribute had a builder, no value and was not lazy the
1060 builder default was not getting run, oops. (groditi)
1062 0.29 Tues. Nov. 13, 2007
1063 * Moose::Meta::Attribute
1064 - Fix error message on missing builder method (groditi)
1066 * Moose::Meta::Method::Accessor
1067 - Fix error message on missing builder method (groditi)
1070 - Add test to check for the correct error message when
1071 builder method is missing (groditi)
1073 0.28 Tues. Nov. 13, 2007
1074 - 0.27 packaged incorrectly (groditi)
1076 0.27 Tues. Nov. 13, 2007
1077 * Moose::Meta::Attribute
1078 - Added support for the new builder option (groditi)
1079 - Added support for lazy_build option (groditi)
1080 - Changed slot initialization for predicate changes (groditi)
1082 * Moose::Meta::Method::Accessor
1083 - Added support for lazy_build option (groditi)
1084 - Fix inline methods to work with corrected predicate
1087 * Moose::Meta::Method::Constructor
1088 - Added support for lazy_build option (groditi)
1091 - tests for builder and lazy_build (groditi)
1093 * fixing some misc. bits in the docs that
1094 got mentioned on CPAN Forum & perlmonks
1097 - fixed how required methods are handled
1098 when they encounter overriden or modified
1099 methods from a class (thanks to confound).
1100 - added tests for this
1102 * Moose::Util::TypeConstraint
1103 - fixed the type notation parser so that
1104 the | always creates a union and so is
1105 no longer a valid type char (thanks to
1106 konobi, mugwump and #moose for working
1108 - added more tests for this
1110 0.26 Thurs. Sept. 27, 2007
1113 * Parameterized Types
1114 We now support parameterized collection types, such as:
1115 ArrayRef[Int] # array or integers
1116 HashRef[Object] # a hash with object values
1117 They can also be nested:
1118 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1119 And work with the type unions as well:
1120 ArrayRef[Int | Str] # array of integers of strings
1122 * Better Framework Extendability
1123 Moose.pm is now "extendable" such that it is now much
1124 easier to extend the framework and add your own keywords
1125 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1126 section of the Moose.pm docs.
1129 In an effort to begin documenting some of the various
1130 details of Moose as well as some common idioms, we have
1131 created Moose::Cookbook::Snacks as a place to find
1132 small (easily digestable) nuggets of Moose code.
1135 ~ Several doc updates/cleanup thanks to castaway ~
1137 - converted build system to use Module::Install instead of
1138 Module::Build (thanks to jrockway)
1141 - added all the meta classes to the immutable list and
1142 set it to inline the accessors
1143 - fix import to allow Sub::Exporter like { into => }
1144 and { into_level => } (perigrin)
1145 - exposed and documented init_meta() to allow better
1146 embedding and extending of Moose (perigrin)
1149 - complete re-organization of the test suite
1150 - added some new tests as well
1151 - finally re-enabled the Moose::POOP test since
1152 the new version of DBM::Deep now works again
1155 * Moose::Meta::Class
1156 - fixed very odd and very nasty recursion bug with
1158 - added tests for this (eilara)
1160 * Moose::Meta::Attribute
1161 Moose::Meta::Method::Constructor
1162 Moose::Meta::Method::Accessor
1163 - fixed issue with overload::Overloaded getting called
1164 on non-blessed items. (RT #29269)
1165 - added tests for this
1167 * Moose::Meta::Method::Accessor
1168 - fixed issue with generated accessor code making
1169 assumptions about hash based classes (thanks to dexter)
1171 * Moose::Coookbook::Snacks
1172 - these are bits of documentation, not quite as big as
1173 Recipes but which have no clear place in the module docs.
1174 So they are Snacks! (horray for castaway++)
1176 * Moose::Cookbook::Recipe4
1177 - updated it to use the new ArrayRef[MyType] construct
1178 - updated the accompanying test as well
1180 +++ Major Refactor of the Type Constraint system +++
1181 +++ with new features added as well +++
1183 * Moose::Util::TypeConstraint
1184 - no longer uses package variable to keep track of
1185 the type constraints, now uses the an instance of
1186 Moose::Meta::TypeConstraint::Registry to do it
1187 - added more sophisticated type notation parsing
1189 - added tests for this
1191 * Moose::Meta::TypeConstraint
1192 - some minor adjustments to make subclassing easier
1193 - added the package_defined_in attribute so that we
1194 can track where the type constraints are created
1196 * Moose::Meta::TypeConstraint::Union
1197 - this is now been refactored to be a subclass of
1198 Moose::Meta::TypeConstraint
1200 * Moose::Meta::TypeCoercion::Union
1201 - this has been added to service the newly refactored
1202 Moose::Meta::TypeConstraint::Union and is itself
1203 a subclass of Moose::Meta::TypeCoercion
1205 * Moose::Meta::TypeConstraint::Parameterized
1206 - added this module (taken from MooseX::AttributeHelpers)
1207 to help construct nested collection types
1208 - added tests for this
1210 * Moose::Meta::TypeConstraint::Registry
1211 - added this class to keep track of type constraints
1213 0.25 Mon. Aug. 13, 2007
1215 - Documentation update to reference Moose::Util::TypeConstraints
1216 under 'isa' in 'has' for how to define a new type
1217 (thanks to shlomif).
1219 * Moose::Meta::Attribute
1220 - required attributes now will no longer accept undef
1221 from the constructor, even if there is a default and lazy
1222 - added tests for this
1223 - default subroutines must return a value which passes the
1225 - added tests for this
1227 * Moose::Meta::Attribute
1228 * Moose::Meta::Method::Constructor
1229 * Moose::Meta::Method::Accessor
1230 - type-constraint tests now handle overloaded objects correctly
1231 in the error message
1232 - added tests for this (thanks to EvanCarroll)
1234 * Moose::Meta::TypeConstraint::Union
1235 - added (has_)hand_optimized_constraint to this class so that
1236 it behaves as the regular Moose::Meta::TypeConstraint does.
1239 - large refactoring of this code
1240 - added several more tests
1241 - tests for subtle conflict resolition issues
1242 added, but not currently running
1245 * Moose::Cookbook::Recipe7
1246 - added new recipe for augment/inner functionality
1248 - added test for this
1251 - a formal definition of roles (still in progress)
1254 - utilities for easier working with Moose classes
1255 - added tests for these
1258 - This contains Moose specific test functions
1259 - added tests for these
1261 0.24 Tues. July 3, 2007
1262 ~ Some doc updates/cleanup ~
1264 * Moose::Meta::Attribute
1265 - added support for roles to be given as parameters
1266 to the 'handles' option.
1267 - added tests and docs for this
1268 - the has '+foo' attribute form now accepts changes to
1269 the lazy option, and the addition of a handles option
1270 (but not changing the handles option)
1271 - added tests and docs for this
1274 - required methods are now fetched using find_method_by_name
1275 so that required methods can come from superclasses
1276 - adjusted tests for this
1278 0.23 Mon. June 18, 2007
1279 * Moose::Meta::Method::Constructor
1280 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1281 * Moose::Meta::Class
1282 - Modify make_immutable to work with the new Class::MOP immutable
1283 mechanism + POD + very basic test (groditi)
1284 * Moose::Meta::Attribute
1285 - Fix handles to use goto() so that caller() comes out properly on
1286 the other side (perigrin)
1288 0.22 Thurs. May 31, 2007
1289 * Moose::Util::TypeConstraints
1290 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1291 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1292 prototypes for functions
1293 - added the ClassName type constraint, this checks for strings
1294 which will respond true to ->isa(UNIVERSAL).
1295 - added tests and docs for this
1296 - subtyping just in name now works correctly by making the
1297 default for where be { 1 }
1298 - added test for this
1300 * Moose::Meta::Method::Accessor
1301 - coerce and lazy now work together correctly, thanks to
1302 merlyn for finding this bug
1303 - tests added for this
1304 - fix reader presedence bug in Moose::Meta::Attribute + tests
1307 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1308 a HASH-ref and missed. This produces better error messages then
1309 having it die cause undef is not a HASH.
1310 - added tests for this
1312 0.21 Thursday, May 2nd, 2007
1314 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1315 - modified unimport to remove super and inner along with the rest
1316 - altered unimport tests to handle this
1319 - altered super export to populate SUPER_SLOT
1321 * Moose::Meta::Class
1322 - altered augment and override modifier application to use *_SLOT
1323 - modified tests for these to unimport one test class each to test
1326 - fixed issue where custom attribute metaclasses
1327 where not handled correctly in roles
1328 - added tests for this
1330 * Moose::Meta::Class
1331 - fixed issue where extending metaclasses with
1332 roles would blow up. Thanks to Aankhen`` for
1333 finding this insidious error, and it's solution.
1335 ~~ lots of spelling and grammer fixes in the docs,
1336 many many thanks to rlb3 and Aankhen for these :)
1338 0.20 Friday, April 6th, 2007
1339 >> I messed up the SKIP logic in one test
1340 so this release is just to fix that.
1343 - 'has' now also accepts an ARRAY ref
1344 to create multiple attrs (see docs)
1345 (thanks to konobi for this)
1346 - added tests and docs
1348 0.19 Thurs. April 5th, 2007
1349 ~~ More documentation updates ~~
1351 * Moose::Util::TypeConstraints
1352 - 'type' now supports messages as well
1353 thanks to phaylon for finding this
1354 - added tests for this
1355 - added &list_all_type_constraints and
1356 &list_all_builtin_type_constraints
1357 functions to facilitate introspection.
1359 * Moose::Meta::Attribute
1360 - fixed regexp 'handles' declarations
1361 to build the list of delegated methods
1362 correctly (and not override important
1363 things like &new) thanks to ashleyb
1365 - added tests and docs for this
1366 - added the 'documentation' attributes
1367 so that you can actually document your
1368 attributes and inspect them through the
1370 - added tests and docs for this
1372 * Moose::Meta::Class
1373 - when loading custom attribute metaclasses
1374 it will first look in for the class in the
1375 Moose::Meta::Attribute::Custom::$name, and
1376 then default to just loading $name.
1377 - added tests and docs for this
1379 * Moose::Meta::TypeConstraint
1380 - type constraints now stringify to their names.
1381 - added test for this
1384 - added tests to assure we work with Module::Refresh
1385 - added stricter test skip logic in the Moose POOP
1386 test, ask Rob Kinyon why.
1387 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1389 0.18 Sat. March 10, 2007
1390 ~~ Many, many documentation updates ~~
1393 - We now use Class::MOP::load_class to
1395 - added tests to show types and subtypes
1396 working with Declare::Constraints::Simple
1397 and Test::Deep as constraint engines.
1400 !! You must have Class::MOP 0.37_001 !!
1401 !! for this developer release to work !!
1403 This release was primarily adding the immutable
1404 feature to Moose. An immutable class is one which
1405 you promise not to alter. When you set the class
1406 as immutable it will perform various bits of
1407 memoization and inline certain part of the code
1408 (constructors, destructors and accessors). This
1409 minimizes (and in some cases totally eliminates)
1410 one of Moose's biggest performance hits. This
1411 feature is not on by default, and is 100% optional.
1412 It has several configurable bits as well, so you
1413 can pick and choose to your specific needs.
1415 The changes involved in this were fairly wide and
1416 highly specific, but 100% backwards compatible, so
1417 I am not going to enumerate them here. If you are
1418 truely interested in what was changed, please do
1421 0.17 Tues. Nov. 14, 2006
1422 * Moose::Meta::Method::Accessor
1423 - bugfix for read-only accessors which
1424 are have a type constraint and lazy.
1425 Thanks to chansen for finding it.
1427 0.16 Tues. Nov. 14, 2006
1429 There are some speed improvements in this release,
1430 but they are only the begining, so stay tuned.
1433 - BUILDALL and DEMOLISHALL no longer get
1434 called unless they actually need to be.
1435 This gave us a signifigant speed boost
1436 for the cases when there is no BUILD or
1437 DEMOLISH method present.
1439 * Moose::Util::TypeConstraints
1440 * Moose::Meta::TypeConstraint
1441 - added an 'optimize_as' option to the
1442 type constraint, which allows for a
1443 hand optimized version of the type
1444 constraint to be used when possible.
1445 - Any internally created type constraints
1446 now provide an optimized version as well.
1448 0.15 Sun. Nov. 5, 2006
1450 This version of Moose *must* have Class::MOP 0.36 in order
1451 to work correctly. A number of small internal tweaks have
1452 been made in order to be compatible with that release.
1454 * Moose::Util::TypeConstraints
1455 - added &unimport so that you can clean out
1456 your class namespace of these exported
1459 * Moose::Meta::Class
1460 - fixed minor issue which occasionally
1461 comes up during global destruction
1463 - moved Moose::Meta::Method::Overriden into
1467 - moved Moose::Meta::Role::Method into
1470 * Moose::Meta::Attribute
1471 - changed how we do type checks so that
1472 we reduce the overall cost, but still
1475 - moved accessor generation methods to
1476 Moose::Meta::Method::Accessor to
1477 conform to the API changes from
1480 * Moose::Meta::TypeConstraint
1481 - changed how constraints are compiled
1482 so that we do less recursion and more
1483 iteration. This makes the type check
1485 - moved Moose::Meta::TypeConstraint::Union
1488 * Moose::Meta::Method::Accessor
1489 - created this from methods formerly found in
1490 Moose::Meta::Attribute
1492 * Moose::Meta::Role::Method
1493 - moved this from Moose::Meta::Role
1495 * Moose::Meta::Method::Overriden
1496 - moved this from Moose::Meta::Class
1498 * Moose::Meta::TypeConstraint::Union
1499 - moved this from Moose::Meta::TypeConstraint
1501 0.14 Mon. Oct. 9, 2006
1503 * Moose::Meta::Attribute
1504 - fixed lazy attributes which were not getting
1505 checked with the type constraint (thanks ashley)
1506 - added tests for this
1507 - removed the over-enthusiastic DWIMery of the
1508 automatic ArrayRef and HashRef defaults, it
1509 broke predicates in an ugly way.
1510 - removed tests for this
1512 0.13 Sat. Sept. 30, 2006
1514 This version of Moose *must* have Class::MOP 0.35 in order
1515 to work correctly. A number of small internal tweaks have
1516 been made in order to be compatible with that release.
1519 - Removed the use of UNIVERSAL::require to be a better
1520 symbol table citizen and remove a dependency
1521 (thanks Adam Kennedy)
1523 **~~ removed experimental & undocumented feature ~~**
1524 - commented out the 'method' and 'self' keywords, see the
1525 comments for more info.
1528 - added a FAQ and WTF files to document frequently
1529 asked questions and common problems
1531 * Moose::Util::TypeConstraints
1532 - added GlobRef and FileHandle type constraint
1533 - added tests for this
1535 * Moose::Meta::Attribute
1536 - if your attribute 'isa' ArrayRef of HashRef, and you have
1537 not explicitly set a default, then make the default DWIM.
1538 This will also work for subtypes of ArrayRef and HashRef
1540 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1541 - new test added for this (thanks to ashley)
1544 - added basic support for runtime role composition
1545 but this is still *highly experimental*, so feedback
1546 is much appreciated :)
1547 - added tests for this
1549 * Moose::Meta::TypeConstraint
1550 - the type constraint now handles the coercion process
1551 through delegation, this is to support the coercion
1554 * Moose::Meta::TypeConstraint::Union
1555 - it is now possible for coercions to be performed
1557 - added tests for this (thanks to konobi)
1559 * Moose::Meta::TypeCoercion
1560 - properly capturing error when type constraint
1564 - Scalar::Util 1.18 is bad on Win32, so temporarily
1565 only require version 1.17 for Win32 and cygwin.
1566 (thanks Adam Kennedy)
1568 0.12 Sat. Sept. 1, 2006
1570 - Recipe5 (subtypes & coercion) has been written
1573 - fixed "bad meta" error message to be more descriptive
1574 - fixed &unimport to not remove the &inner and &super
1575 keywords because we need to localize them.
1576 - fixed number of spelling/grammer issues, thanks Theory :)
1578 **~~ experimental & undocumented feature ~~**
1579 - added the method and self keywords, they are basically
1580 just sugar, and they may not stay around.
1583 - added &dump method to easily Data::Dumper
1586 * Moose::Meta::TypeConstraint
1587 - added the &is_a_type_of method to check both the current
1588 and the subtype of a method (similar to &isa with classes)
1591 - this is now a subclass of Class::MOP::Module, and no longer
1592 creates the _role_meta ugliness of before.
1593 - fixed tests to reflect this change
1595 0.11 Wed. July 12, 2006
1597 - added an &unimport method to remove all the keywords
1598 that Moose will import, simply add 'no Moose' to the
1599 bottom of your class file.
1602 - fixed some test failures caused by a forgotten test
1605 0.10 Thurs. July 6, 2006
1607 - improved error message when loading modules so
1608 it is less confusing when you load a role.
1609 - added &calculate_all_roles method to
1610 Moose::Meta::Class and Moose::Meta::Role
1613 This module has been tested against Class::MOP 0.30
1614 but it does not yet utilize the optimizations
1615 it makes available. Stay tuned for that ;)
1617 0.09_03 Fri. June 23, 2006
1618 ++ DEVELOPER RELEASE ++
1620 - 'use strict' and 'use warnings' are no longer
1621 needed in Moose classes, Moose itself will
1622 turn them on for you.
1623 - added tests for this
1624 - moved code from exported subs to private methods
1625 in Moose::Meta::Class
1628 - as with Moose, strict and warnings are
1629 automatically turned on for you.
1630 - added tests for this
1633 - now handles an edge case for override errors
1634 - added tests for this
1635 - added some more edge case tests
1637 0.09_02 Tues. May 16, 2006
1638 ++ DEVELOPER RELEASE ++
1640 - added prototypes to the exported subs
1644 - added prototypes to the exported subs
1647 * Moose::Util::TypeConstraints
1648 - cleaned up prototypes for the subs
1651 0.09_01 Fri. May 12, 2006
1652 ++ DEVELOPER RELEASE ++
1653 - This release works in combination with
1654 Class::MOP 0.29_01, it is a developer
1655 release because it uses the a new
1656 instance sub-protocol and a fairly
1657 complete Role implementation. It has
1658 not yet been optimized, so it slower
1659 the the previous CPAN version. This
1660 release also lacks good updated docs,
1661 the official release will have updated docs.
1664 - refactored the keyword exports
1665 - 'with' now checks Role validaity and
1666 accepts more than one Role at a time
1667 - 'extends' makes metaclass adjustments as
1668 needed to ensure metaclass compatibility
1671 - refactored the keyword exports
1672 - 'with' now checks Role validaity and
1673 accepts more than one Role at a time
1675 * Moose::Util::TypeConstraints
1676 - added the 'enum' keyword for simple
1677 string enumerations which can be used as
1679 - see example of usage in t/202_example.t
1682 - more careful checking of params to new()
1685 - much work done on the role composition
1686 - many new tests for conflict detection
1687 and composition edge cases
1688 - not enough documentation, I suggest
1689 looking at the tests
1691 * Moose::Meta::Instance
1692 - added new Instance metaclass to support
1693 the new Class::MOP instance protocol
1695 * Moose::Meta::Class
1696 - some small changes to support the new
1698 - some small additions to support Roles
1700 * Moose::Meta::Attribute
1701 - some improvements to the accessor generation code
1703 - some small changes to support the new
1705 - (still somewhat) experimental delegation support
1706 with the 'handles' option
1707 - added several tests for this
1708 - no docs for this yet
1710 0.05 Thurs. April 27, 2006
1712 - keywords are now exported with Sub::Exporter
1713 thanks to chansen for this commit
1714 - has keyword now takes a 'metaclass' option
1715 to support custom attribute meta-classes
1716 on a per-attribute basis
1717 - added tests for this
1718 - the 'has' keyword not accepts inherited slot
1719 specifications (has '+foo'). This is still an
1720 experimental feature and probably not finished
1721 see t/038_attribute_inherited_slot_specs.t for
1722 more details, or ask about it on #moose
1723 - added tests for this
1726 - keywords are now exported with Sub::Exporter
1728 * Moose::Utils::TypeConstraints
1729 - reorganized the type constraint hierarchy, thanks
1730 to nothingmuch and chansen for his help and advice
1732 - added some tests for this
1733 - keywords are now exported with Sub::Exporter
1734 thanks to chansen for this commit
1736 * Moose::Meta::Class
1737 - due to changes in Class::MOP, we had to change
1738 construct_instance (for the better)
1740 * Moose::Meta::Attribute
1741 - due to changes in Class::MOP, we had to add the
1742 initialize_instance_slot method (it's a good thing)
1744 * Moose::Meta::TypeConstraint
1745 - added type constraint unions
1746 - added tests for this
1747 - added the is_subtype_of predicate method
1748 - added tests for this
1750 0.04 Sun. April 16th, 2006
1752 - Roles can now consume other roles
1753 - added tests for this
1754 - Roles can specify required methods now with
1755 the requires() keyword
1756 - added tests for this
1759 - ripped out much of it's guts ,.. much cleaner now
1760 - added required methods and correct handling of
1761 them in apply() for both classes and roles
1762 - added tests for this
1763 - no longer adds a does() method to consuming classes
1764 it relys on the one in Moose::Object
1765 - added roles attribute and some methods to support
1766 roles consuming roles
1768 * Moose::Meta::Attribute
1769 - added support for triggers on attributes
1770 - added tests for this
1771 - added support for does option on an attribute
1772 - added tests for this
1774 * Moose::Meta::Class
1775 - added support for attribute triggers in the
1777 - added tests for this
1780 - Moose no longer creates a subtype for your class
1781 if a subtype of the same name already exists, this
1782 should DWIM in 99.9999% of all cases
1784 * Moose::Util::TypeConstraints
1785 - fixed bug where incorrect subtype conflicts were
1787 - added test for this
1790 - this class can now be extended with 'use base' if
1791 you need it, it properly loads the metaclass class now
1792 - added test for this
1794 0.03_02 Wed. April 12, 2006
1796 - you must now explictly use Moose::Util::TypeConstraints
1797 it no longer gets exported for you automatically
1800 - new() now accepts hash-refs as well as key/value lists
1801 - added does() method to check for Roles
1802 - added tests for this
1804 * Moose::Meta::Class
1805 - added roles attribute along with the add_role() and
1807 - added tests for this
1810 - now adds a does() method to consuming classes
1811 which tests the class's hierarchy for roles
1812 - added tests for this
1814 0.03_01 Mon. April 10, 2006
1816 - added new Role recipe (no content yet, only code)
1819 - added 'with' keyword for Role support
1820 - added test and docs for this
1821 - fixed subtype quoting bug
1822 - added test for this
1826 - added test and docs
1828 * Moose::Util::TypeConstraints
1829 - added the message keyword to add custom
1830 error messages to type constraints
1833 - the meta role to support Moose::Role
1834 - added tests and docs
1836 * Moose::Meta::Class
1837 - moved a number of things from Moose.pm
1838 to here, they should have been here
1841 * Moose::Meta::Attribute
1842 - moved the attribute option macros here
1843 instead of putting them in Moose.pm
1845 * Moose::Meta::TypeConstraint
1846 - added the message attributes and the
1848 - added tests and docs for this
1850 0.03 Thurs. March 30, 2006
1852 - added the Moose::Cookbook with 5 recipes,
1853 describing all the stuff Moose can do.
1856 - fixed an issue with &extends super class loading
1857 it now captures errors and deals with inline
1858 packages correctly (bug found by mst, solution
1860 - added super/override & inner/augment features
1861 - added tests and docs for these
1864 - BUILDALL now takes a reference of the %params
1865 that are passed to &new, and passes that to
1868 * Moose::Util::TypeConstraints
1869 - Type constraints now survive runtime reloading
1870 - added test for this
1872 * Moose::Meta::Class
1873 - fixed the way attribute defaults are handled
1874 during instance construction (bug found by chansen)
1876 * Moose::Meta::Attribute
1877 - read-only attributes now actually enforce their
1878 read-only-ness (this corrected in Class::MOP as
1881 0.02 Tues. March 21, 2006
1883 - many more tests, fixing some bugs and
1885 - &extends now loads the base module with
1887 - added UNIVERSAL::require to the
1890 - each new Moose class will also create
1891 and register a subtype of Object which
1892 correspond to the new Moose class.
1893 - the 'isa' option in &has now only
1894 accepts strings, and will DWIM in
1897 * Moose::Util::TypeConstraints
1898 - added type coercion features
1899 - added tests for this
1900 - added support for this in attributes
1901 and instance construction
1903 - type construction no longer creates a
1904 function, it registers the type instead.
1905 - added several functions to get the
1909 - BUILDALL and DEMOLISHALL were broken
1910 because of a mis-named hash key, Whoops :)
1912 * Moose::Meta::Attribute
1913 - adding support for coercion in the
1914 autogenerated accessors
1916 * Moose::Meta::Class
1917 - adding support for coercion in the
1918 instance construction
1920 * Moose::Meta::TypeConstraint
1921 * Moose::Meta::TypeCoercion
1922 - type constraints and coercions are now
1923 full fledges meta-objects
1925 0.01 Wed. March 15, 2006
1926 - Moooooooooooooooooose!!!