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_metaclass_alias, which gives an order
14 of magnitude speedup to things which repeatedly call the
15 Moose::Meta::Attribute->does method. E.g. MooseX::Storage
18 0.59 Tue October 14, 2008
20 - Add abridged documentation for builder/default/initializer/
21 predicate, and link to more details sections in
22 Class::MOP::Attribute. (t0m)
24 * Moose::Util::TypeConstraints
25 - removed prototypes from all but the &-based stuff (mst)
27 * Moose::Util::TypeConstraints
28 - Creating a anonymous subtype with both a constraint and a
29 message failed with a very unhelpful error, but should just
30 work. Reported by t0m. (Dave Rolsky)
33 - Some tests that used Test::Warn if it was available failed
34 with older versions of Test::Warn. Reported by Fayland. (Dave
36 - Test firing behavior of triggers in relation to builder/default/
38 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
39 kinds of supported type. (t0m)
42 - In create(), do not pass "roles" option to the superclass
43 - added related test that creates an anon metaclass with
46 * Moose::Meta::TypeConstraint::Class
47 * Moose::Meta::TypeConstraint::Role
48 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
49 other types (as per change in 0.55_02). (t0m)
51 * Moose::Meta::TypeConstraint::Registry
52 - Fix warning when dealing with unknown type names (t0m)
54 * Moose::Util::TypeConstraints
55 - Reverted changes from 0.58 related to handle parameterized
56 types. This caused random failures on BSD and Win32 systems,
57 apparently related to the regex engine. This means that Moose
58 can no longer parse structured type constraints like
59 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
60 supported in a slightly different way via MooseX::Types some
61 time in the future. (Dave Rolsky)
63 0.58 Sat September 20, 2008
64 !! This release has an incompatible change regarding !!
65 !! how roles add methods to a class !!
67 * Roles and role application
68 ! Roles now add methods by calling add_method, not
69 alias_method. They make sure to always provide a method
70 object, which will be cloned internally. This means that it is
71 now possible to track the source of a method provided by a
72 role, and even follow its history through intermediate roles.
74 This means that methods added by a role now show up when
75 looking at a class's method list/map. (Dave Rolsky)
78 - From this release on, we'll try to maintain a list of
79 conflicting modules, and warn you if you have one
80 installed. For example, this release conflicts with ...
81 - MooseX::Singleton <= 0.11
82 - MooseX::Params::Validate <= 0.05
85 In general, we try to not break backwards compatibility for
86 most Moose users, but MooseX modules and other code which
87 extends Moose's metaclasses is often affected by very small
88 changes in the Moose internals.
90 * Moose::Meta::Method::Delegation
91 * Moose::Meta::Attribute
92 - Delegation methods now have their own method class. (Dave
95 * Moose::Meta::TypeConstraint::Parameterizable
96 - Added a new method 'parameterize' which is basically a factory
97 for the containing constraint. This makes it easier to create
98 new types of parameterized constraints. (jnapiorkowski)
100 * Moose::Meta::TypeConstraint::Union
101 - Changed the way Union types canonicalize their names to follow
102 the normalized TC naming rules, which means we strip all
103 whitespace. (jnapiorkowski)
105 * Moose::Util::TypeConstraints
106 - Parameter and Union args are now sorted, this makes Int|Str
107 the same constraint as Str|Int. (jnapiorkowski)
108 - Changes to the way Union types are parsed to more correctly
109 stringify their names. (jnapiorkowski)
110 - When creating a parameterized type, we now use the new
111 parameterize method. (jnapiorkowski)
112 - Incoming type constraint strings are now normalized to remove
113 all whitespace differences. (jnapiorkowski)
114 - Changed the way we parse type constraint strings so that we now
115 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
116 constraints. This lays the foundation for more flexible type
117 constraint implementations.
119 * Tests and docs for all the above. (jnapiorkowski)
123 - Moose::Exporter will no longer remove a subroutine that the
124 exporting package re-exports. Moose re-exports the
125 Carp::confess function, among others. The reasoning is that we
126 cannot know whether you have also explicitly imported those
127 functions for your own use, so we err on the safe side and
128 always keep them. (Dave Rolsky)
129 - added tests for this (rafl)
132 - Changes to how we fix metaclass compatibility that are much
133 too complicated to go into. The summary is that Moose is much
134 less likely to complain about metaclass incompatibility
135 now. In particular, if two metaclasses differ because
136 Moose::Util::MetaRole was used on the two corresponding
137 classes, then the difference in roles is reconciled for the
138 subclass's metaclass. (Dave Rolsky)
139 - Squashed an warning in _process_attribute (thepler)
142 - throw exceptions (sooner) for invalid attribute names (thepler)
143 - added tests for this (thepler)
145 * Moose::Util::MetaRole
146 - If you explicitly set a constructor or destructor class for a
147 metaclass object, and then applied roles to the metaclass,
148 that explicitly set class would be lost and replaced with the
152 * Moose::Meta::Attribute
153 * Moose::Meta::Method
156 * Moose::Error::Default
157 * Moose::Error::Croak
158 * Moose::Error::Confess
159 - All instances of confess() changed to use overridable
160 C<throw_error> method. This method ultimately calls a class
161 constructor, and you can change the class being called. In
162 addition, errors now pass more information than just a string.
163 The default C<error_class> behaves like C<Carp::confess>, so
164 the behavior is not visibly different for end users.
166 0.57 Wed September 3, 2008
168 - A new bit of doc intended to introduce folks familiar with
169 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
172 - Shows examples of two classes, each done first with and then
173 without Moose. This makes a nice parallel to
174 Moose::Intro. (Dave Rolsky)
176 * Moose::Util::TypeConstraints
177 - Fixed a bug in find_or_parse_type_constraint so that it
178 accepts a Moose::Meta::TypeConstraint object as the parent
179 type, not just a name (jnapiorkowski)
180 - added tests (jnapiorkowski)
183 - If Sub::Name was not present, unimporting failed to actually
184 remove some sugar subs, causing test failures (Dave Rolsky)
186 0.56 Mon September 1, 2008
187 For those not following the series of dev releases, there are
188 several major changes in this release of Moose.
189 ! Moose::init_meta should now be called as a method. See the
192 - Major performance improvements by nothingmuch.
194 - New modules for extension writers, Moose::Exporter and
195 Moose::Util::MetaRole by Dave Rolsky.
197 - Lots of doc improvements and additions, especially in the
202 * Removed all references to the experimental-but-no-longer-needed
203 Moose::Meta::Role::Application::ToMetaclassInstance.
205 * Require Class::MOP 0.65.
207 0.55_04 Sat August 30, 2008
208 * Moose::Util::MetaRole
209 * Moose::Cookbook::Extending::Recipe2
210 - This simplifies the application of roles to any meta class, as
211 well as the base object class. Reimplemented metaclass traits
212 using this module. (Dave Rolsky)
214 * Moose::Cookbook::Extending::Recipe1
215 - This a new recipe, an overview of various ways to write Moose
216 extensions (Dave Rolsky)
218 * Moose::Cookbook::Extending::Recipe3
219 * Moose::Cookbook::Extending::Recipe4
220 - These used to be Extending::Recipe1 and Extending::Recipe2,
223 0.55_03 Fri August 29, 2008
224 * No changes from 0.55_02 except increasing the Class::MOP
225 dependency to 0.64_07.
227 0.55_02 Fri August 29, 2008
228 * Makefile.PL and Moose.pm
229 - explicitly require Perl 5.8.0+ (Dave Rolsky)
231 * Moose::Util::TypeConstraints
232 - Fix warnings from find_type_constraint if the type is not
235 * Moose::Meta::TypeConstraint
236 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
237 return false if the type you specify cannot be found in the
238 type registry, rather than throwing an unhelpful and
239 coincidental exception. (t0m).
240 - added docs & test for this (t0m)
242 * Moose::Meta::TypeConstraint::Registry
243 - add_type_constraint now throws an exception if a parameter is
245 - added docs & test for this (t0m)
247 * Moose::Cookbook::FAQ
248 - Added a faq entry on the difference between "role" and "trait"
252 - Fixed a bug that caused role composition to not see a required
253 method when that method was provided by another role being
254 composed at the same time. (Dave Rolsky)
255 - test and bug finding (tokuhirom)
257 0.55_01 Wed August 20, 2008
259 !! Calling Moose::init_meta as a function is now !!
260 !! deprecated. Please see the Moose.pm docs for details. !!
262 * Moose::Meta::Method::Constructor
263 - Fix inlined constructor so that values produced by default
264 or builder methods are coerced as required. (t0m)
265 - added test for this (t0m)
267 * Moose::Meta::Attribute
268 - A lazy attribute with a default or builder did not attempt to
269 coerce the default value. The immutable code _did_
271 - added test for this (t0m)
274 - This is a new helper module for writing "Moose-alike"
275 modules. This should make the lives of MooseX module authors
276 much easier. (Dave Rolsky)
279 * Moose::Cookbook::Meta::Recipe5
280 - Implemented metaclass traits (and wrote a recipe for it):
282 use Moose -traits => 'Foo'
284 This should make writing small Moose extensions a little
287 * Moose::Cookbook::Basics::Recipe1
288 - Removed any examples of direct hashref access, and applied an
289 editorial axe to reduce verbosity. (Dave Rolsky)
291 * Moose::Cookbook::Basics::Recipe1
292 - Also applied an editorial axe here. (Dave Rolsky)
295 * Moose::Cookbook::Extending::Recipe1
296 * Moose::Cookbook::Extending::Recipe2
297 - Rewrote extending and embedding moose documentation and
298 recipes to use Moose::Exporter (Dave Rolsky)
302 - These two modules now warn when you load them from the main
303 package "main" package, because we will not export sugar to
304 main. Previously it just did nothing. (Dave Rolsky)
307 - Now provide an init_meta method just like Moose.pm, and you
308 can call this to provide an alternate role metaclass. (Dave
309 Rolsky and nothingmuch)
310 - get_method_map now respects the package cache flag (nothingmuch)
313 - Two new methods - add_method and wrap_method_body
317 - Optimizations including allowing constructors to accept hash
318 refs, making many more classes immutable, and making
319 constructors immutable. (nothingmuch)
321 0.55 Sun August 3, 2008
322 * Moose::Meta::Attribute
323 - breaking down the way 'handles' methods are
324 created so that the process can be more easily
325 overridden by subclasses (stevan)
327 * Moose::Meta::TypeConstraint
328 - fixing what is passed into a ->message with
329 the type constraints (RT #37569)
330 - added tests for this (Charles Alderman)
332 * Moose::Util::TypeConstraints
333 - fix coerce to accept anon types like subtype can (mst)
336 - reorganized the recipes into sections - Basics, Roles, Meta,
337 Extending - and wrote abstracts for each section (Dave Rolsky)
339 * Moose::Cookbook::Basics::Recipe10
340 - A new recipe that demonstrates operator overloading
341 in combination with Moose. (bluefeet)
343 * Moose::Cookbook::Meta::Recipe1
344 - an introduction to what meta is and why you'd want to make
345 your own metaclass extensions (Dave Rolsky)
347 * Moose::Cookbook::Meta::Recipe4
348 - a very simple metaclass example (Dave Rolsky)
350 * Moose::Cookbook::Extending::Recipe1
351 - how to write a Moose-alike module to use your own object base
354 * Moose::Cookbook::Extending::Recipe2
355 - how to write modules with an API just like C<Moose.pm> (Dave
359 - Tons of fixes, both syntactical and grammatical (Dave
360 Rolsky, Paul Fenwick)
362 0.54 Thurs. July 3, 2008
363 ... this is not my day today ...
365 * Moose::Meta::Attribute
366 - fixed legal_options_for_inheritance such that
367 clone_and_inherit options still works for
368 Class::MOP::Attribute objects and therefore
369 does not break MooseX::AttributeHelpers
372 0.53 Thurs. July 3, 2008
373 * Whoops, I guess I should run 'make manifest' before
374 actually releasing the module. No actual changes
375 in this release, except the fact that it includes
376 the changes that I didn't include in the last
379 0.52 Thurs. July 3, 2008
381 - added "FEATURE REQUESTS" section to the Moose docs
382 to properly direct people (stevan) (RT #34333)
383 - making 'extends' croak if it is passed a Role since
384 this is not ever something you want to do
385 (fixed by stevan, found by obra)
386 - added tests for this (stevan)
389 - adding support for DOES (as in UNIVERSAL::DOES)
391 - added test for this
393 * Moose::Meta::Attribute
394 - added legal_options_for_inheritance (wreis)
395 - added tests for this (wreis)
397 * Moose::Cookbook::Snacks::*
398 - removed some of the unfinished snacks that should
399 not have been released yet. Added some more examples
400 to the 'Keywords' snack. (stevan)
402 * Moose::Cookbook::Style
403 - added general Moose "style guide" of sorts to the
404 cookbook (nothingmuch) (RT #34335)
407 - added more BUILDARGS tests (stevan)
409 0.51 Thurs. Jun 26, 2008
411 - add unimport so "no Moose::Role" actually does
414 * Moose::Meta::Role::Application::ToRole
415 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
416 order to provide its own implementation, that method still got
417 added to the list of required methods for consumers of
418 RoleB. Now an aliased method is only added to the list of
419 required methods if the role doing the aliasing does not
420 provide its own implementation. See Recipe 11 for an example
421 of all this. (Dave Rolsky)
422 - added tests for this
424 * Moose::Meta::Method::Constructor
425 - when a single argument that wasn't a hashref was provided to
426 an immutabilized constructor, the error message was very
427 unhelpful, as opposed to the non-immutable error. Reported by
429 - added test for this (Dave Rolsky)
431 * Moose::Meta::Attribute
432 - added support for meta_attr->does("ShortAlias") (sartak)
433 - added tests for this (sartak)
434 - moved the bulk of the `handles` handling to the new
435 install_delegation method (Stevan)
438 - Added BUILDARGS, a new step in new()
440 * Moose::Meta::Role::Application::RoleSummation
441 - fix typos no one ever sees (sartak)
443 * Moose::Util::TypeConstraints
444 * Moose::Meta::TypeConstraint
445 * Moose::Meta::TypeCoercion
446 - Attempt to work around the ??{ } vs. threads issue
448 - Some null_constraint optimizations
450 0.50 Thurs. Jun 11, 2008
451 - Fixed a version number issue by bumping all modules
454 0.49 Thurs. Jun 11, 2008
455 !! This version now approx. 20-25% !!
456 !! faster with new Class::MOP 0.59 !!
458 * Moose::Meta::Attribute
459 - fixed how the is => (ro|rw) works with
460 custom defined reader, writer and accessor
462 - added docs for this (TODO).
463 - added tests for this (Thanks to Penfold)
464 - added the custom attribute alias for regular
465 Moose attributes which is "Moose"
466 - fix builder and default both being used
471 Moose::Meta::Attribute
473 Moose::Meta::Role::Composite
474 Moose::Util::TypeConstraints
475 - switched usage of reftype to ref because
479 - changing add_package_symbol to use the new
483 - fixed how DEMOLISHALL is called so that it
484 can be overrided in subclasses (thanks to Sartak)
485 - added test for this (thanks to Sartak)
487 * Moose::Util::TypeConstraints
488 - move the ClassName type check code to
489 Class::MOP::is_class_loaded (thanks to Sartak)
491 * Moose::Cookbook::Recipe11
492 - add tests for this (thanks to tokuhirom)
494 0.48 Thurs. May 29, 2008
495 (early morning release engineering)--
497 - fixing the version in Moose::Meta::Method::Destructor
498 which was causing the indexer to choke
500 0.47 Thurs. May 29, 2008
501 (late night release engineering)--
503 - fixing the version is META.yml, no functional
504 changes in this release
506 0.46 Wed. May 28, 2008
507 !! This version now approx. 20-25% !!
508 !! faster with new Class::MOP 0.57 !!
511 - some optimizations of the &initialize method
512 since it is called so often by &meta
516 - now use the get_all_package_symbols from the
517 updated Class::MOP, test suite is now 10 seconds
520 * Moose::Meta::Method::Destructor
521 - is_needed can now also be called as a class
522 method for immutablization to check if the
523 destructor object even needs to be created
526 * Moose::Meta::Method::Destructor
527 Moose::Meta::Method::Constructor
528 - added more descriptive error message to help
529 keep people from wasting time tracking an error
530 that is easily fixed by upgrading.
532 0.45 Saturday, May 24, 2008
534 - Because of work in Class::MOP 0.57, all
535 XS based functionality is now optional
536 and a Pure Perl version is supplied
537 - the CLASS_MOP_NO_XS environment variable
538 can now be used to force non-XS versions
540 - several of the packages have been tweaked
541 to take care of this, mostly we added
542 support for the package_name and name
543 variables in all the Method metaclasses
544 - before/around/after method modifiers now
545 support regexp matching of names
546 (thanks to Takatoshi Kitano)
547 - tests added for this
548 - NOTE: this only works for classes, it
549 is currently not supported in roles,
550 but, ... patches welcome
551 - All usage of Carp::confess have been replaced
552 by Carp::croak in the "keyword" functions since
553 the stack trace is usually not helpful
556 - All usage of Carp::confess have been replaced
557 by Carp::croak in the "keyword" functions since
558 the stack trace is usually not helpful
559 - The 'has' keyword for roles now accepts the
560 same array ref form that Moose.pm does
561 (has [qw/foo bar/] => (is => 'rw', ...))
562 - added test for this
564 * Moose::Meta::Attribute
565 - trigger on a ro-attribute is no longer an
566 error, as it's useful to trigger off of the
570 - added same 'add_package_symbol' fix as in
574 - does_role now handles non-Moose classes
576 - added tests for this
577 - added the 'add_method_modifier' function
578 (thanks to Takatoshi Kitano)
580 * Moose::Util::TypeConstraints
581 - subtypes of parameterizable types now are
582 themselves parameterizable types
584 * Moose::Meta::Method::Constructor
585 - fixed bug where trigger was not being
586 called by the inlined immutable
588 - added test for this (thanks to Caelum)
590 * Moose::Meta::Role::Application::ToInstance
591 - now uses the metaclass of the instance
592 (if possible) to create the anon-class
593 (thanks Jonathan Rockway)
595 * Moose::Cookbook::Recipe22
596 - added the meta-attribute trait recipe
600 - fixed hash-ordering test bug that was
601 causing occasional cpantester failures
602 - renamed the t/000_recipe/*.t tests to be
603 more descriptive (thanks to Sartak)
605 0.44 Sat. May 10, 2008
607 - made make_immutable warning cluck to
608 show where the error is (thanks mst)
611 - BUILDALL and DEMOLISHALL now call
612 ->body when looping through the
613 methods, to avoid the overloaded
615 - fixed issue where DEMOLISHALL was
616 eating the $@ values, and so not
617 working correctly, it still kind of
618 eats them, but so does vanilla perl
619 - added tests for this
621 * Moose::Cookbook::Recipe7
622 - added new recipe for immutable
623 functionality (thanks Dave Rolsky)
625 * Moose::Cookbook::Recipe9
626 - added new recipe for builder and
627 lazy_build (thanks Dave Rolsky)
629 * Moose::Cookbook::Recipe11
630 - added new recipe for method aliasing
631 and exclusion with Roles (thanks Dave Rolsky)
634 - fixed Win32 test failure (thanks spicyjack)
636 ~ removed Build.PL and Module::Build compat
637 since Module::Install has done that.
639 0.43 Wed. April, 30, 2008
641 drink more coffee before
642 doing release engineering
644 - whoops, forgot to do the smolder tests,
645 and we broke some of the custom meta-attr
646 modules. This fixes that.
648 0.42 Mon. April 28, 2008
649 - some bad tests slipped by, nothing else
650 changed in this release (cpantesters++)
652 - upped the Class::MOP dependency to 0.55
653 since we have tests which need the C3
656 0.41 Mon. April 28, 2008
657 ~~ numerous documentation updates ~~
659 - Changed all usage of die to Carp::croak for better
660 error reporting (initial patch by Tod Hagan)
663 - the make_immutable keyword is now deprecated, don't
664 use it in any new code and please fix your old code
665 as well. There will be 2 releases, and then it will
671 - refactored the way inner and super work to avoid
672 any method/@ISA cache penalty (nothingmuch)
675 - fixing &new_object to make sure trigger gets the
676 coerced value (spotted by Charles Alderman on the
678 - added test for this
680 * Moose::Meta::Method::Constructor
681 - immutable classes which had non-lazy attributes were calling
682 the default generating sub twice in the constructor. (bug
683 found by Jesse Luehrs, fixed by Dave Rolsky)
684 - added tests for this (Dave Rolsky)
685 - fix typo in initialize_body method (nothingmuch)
687 * Moose::Meta::Method::Destructor
688 - fix typo in initialize_body method (nothingmuch)
690 * Moose::Meta::Method::Overriden
691 Moose::Meta::Method::Augmented
692 - moved the logic for these into their own
693 classes (nothingmuch)
695 * Moose::Meta::Attribute
696 - inherited attributes may now be extended without
697 restriction on the type ('isa', 'does') (Sartak)
698 - added tests for this (Sartak)
699 - when an attribute property is malformed (such as lazy without
700 a default), give the name of the attribute in the error
702 - added the &applied_traits and &has_applied_traits methods
703 to allow introspection of traits
704 - added tests for this
705 - moved 'trait' and 'metaclass' argument handling to here from
707 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
708 '+foo' syntax) (nothingmuch)
709 - added tests for this (t0m)
712 - localize $@ inside DEMOLISHALL to avoid it
713 eating $@ (found by Ernesto)
714 - added test for this (thanks to Ernesto)
716 * Moose::Util::TypeConstraints
717 - &find_type_constraint now DWIMs when given an
718 type constraint object or name (nothingmuch)
719 - &find_or_create_type_constraint superseded with a number of more
721 - find_or_create_{isa,does}_type_constraint
722 - find_or_parse_type_constraint
724 * Moose::Meta::TypeConstraint
725 Moose::Meta::TypeConstraint::Class
726 Moose::Meta::TypeConstraint::Role
727 Moose::Meta::TypeConstraint::Enum
728 Moose::Meta::TypeConstraint::Union
729 Moose::Meta::TypeConstraint::Parameterized
730 - added the &equals method for comparing two type
731 constraints (nothingmuch)
732 - added tests for this (nothingmuch)
734 * Moose::Meta::TypeConstraint
735 - add the &parents method, which is just an alias to &parent.
736 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
738 * Moose::Meta::TypeConstraint::Class
739 - added the class attribute for introspection purposes
741 - added tests for this
743 * Moose::Meta::TypeConstraint::Enum
744 Moose::Meta::TypeConstraint::Role
745 - broke these out into their own classes (nothingmuch)
747 * Moose::Cookbook::Recipe*
748 - fixed references to test file locations in the POD
749 and updated up some text for new Moose features
753 - Added &resolve_metaclass_alias, a helper function for finding an actual
754 class for a short name (e.g. in the traits list)
756 0.40 Fri. March 14, 2008
757 - I hate Pod::Coverage
759 0.39 Fri. March 14, 2008
761 - documenting the use of '+name' with attributes
762 that come from recently composed roles. It makes
763 sense, people are using it, and so why not just
764 officially support it.
765 - fixing the 'extends' keyword so that it will not
766 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
769 - added the perl -Moose=+Class::Name feature to allow
770 monkeypatching of classes in one liners
773 - fixing the 'apply_all_roles' keyword so that it will not
774 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
777 - added ->create method which now supports roles (thanks to jrockway)
778 - added tests for this
779 - added ->create_anon_class which now supports roles and caching of
780 the results (thanks to jrockway)
781 - added tests for this
782 - made ->does_role a little more forgiving when it is
783 checking a Class::MOP era metaclasses.
785 * Moose::Meta::Role::Application::ToInstance
786 - it is now possible to pass extra params to be used when
787 a role is applied to an the instance (rebless_params)
788 - added tests for this
790 * Moose::Util::TypeConstraints
791 - class_type now accepts an optional second argument for a
792 custom message. POD anotated accordingly (groditi)
793 - added tests for this
794 - it is now possible to make anon-enums by passing 'enum' an
795 ARRAY ref instead of the $name => @values. Everything else
797 - added tests for this
800 - making test for using '+name' on attributes consumed
801 from a role, it works and makes sense too.
803 * Moose::Meta::Attribute
804 - fix handles so that it doesn't return nothing
805 when the method cannot be found, not sure why
806 it ever did this originally, this means we now
807 have slightly better support for AUTOLOADed
809 - added more delegation tests
810 - adding ->does method to this so as to better
811 support traits and their introspection.
812 - added tests for this
815 - localizing the Data::Dumper configurations so
816 that it does not pollute others (RT #33509)
817 - made ->does a little more forgiving when it is
818 passed Class::MOP era metaclasses.
820 0.38 Fri. Feb. 15, 2008
821 * Moose::Meta::Attribute
822 - fixed initializer to correctly do
823 type checking and coercion in the
825 - added tests for this
828 - fixed some finicky tests (thanks to konobi)
830 0.37 Thurs. Feb. 14, 2008
832 - fixed some details in Moose::init_meta
833 and its superclass handling (thanks thepler)
834 - added tests for this (thanks thepler)
835 - 'has' now dies if you don't pass in name
837 - added the 'make_immutable' keyword as a shortcut
841 Moose::Meta::Method::Constructor
842 Moose::Meta::Attribute
843 - making (init_arg => undef) work here too
844 (thanks to nothingmuch)
846 * Moose::Meta::Attribute
847 Moose::Meta::Method::Constructor
848 Moose::Meta::Method::Accessor
849 - make lazy attributes respect attr initializers (rjbs)
850 - added tests for this
852 * Moose::Util::TypeConstraints
853 Moose::Util::TypeConstraints::OptimizedConstraints
854 Moose::Meta::TypeConstraints
855 Moose::Meta::Attribute
856 Moose::Meta::Method::Constructor
857 Moose::Meta::Method::Accessor
858 - making type errors use the
859 assigned message (thanks to Sartak)
860 - added tests for this
862 * Moose::Meta::Method::Destructor
863 - making sure DESTROY gets inlined properly
864 with successive DEMOLISH calls (thanks to manito)
866 * Moose::Meta::Attribute
867 Moose::Meta::Method::Accessor
868 - fixed handling of undef with type constraints
870 - added tests for this
873 - added &get_all_init_args and &get_all_attribute_values
874 (thanks to Sartak and nothingmuch)
876 0.36 Sat. Jan. 26, 2008
878 Moose::Meta::Attribute
879 - role type tests now support when roles are
880 applied to non-Moose classes (found by ash)
881 - added tests for this (thanks to ash)
882 - couple extra tests to boost code coverage
884 * Moose::Meta::Method::Constructor
885 - improved fix for handling Class::MOP attributes
886 - added test for this
889 - handled the add_attribute($attribute_meta_object)
891 - added test for this
893 0.35 Tues. Jan. 22, 2008
894 * Moose::Meta::Method::Constructor
895 - fix to make sure even Class::MOP attributes
896 are handled correctly (Thanks to Dave Rolsky)
897 - added test for this (also Dave Rolsky)
900 - improved error message on _apply_all_roles,
901 you should now use Moose::Util::apply_all_roles
902 and you shouldnt have been using a _ prefixed
903 method in the first place ;)
905 0.34 Mon. Jan. 21, 2008
906 ~~~ more misc. doc. fixes ~~~
907 ~~ updated copyright dates ~~
909 Moose is now a postmodern object system :)
910 - (see the POD for details)
912 * <<Role System Refactoring>>
913 - this release contains a major reworking and
914 cleanup of the role system
915 - 100% backwards compat.
916 - Role application now restructured into seperate
917 classes based on type of applicants
918 - Role summation (combining of more than one role)
919 is much cleaner and anon-classes are no longer
921 - new Composite role metaclass
922 - runtime application of roles to instances
923 is now more efficient and re-uses generated
924 classes when applicable
926 * <<New Role composition features>>
927 - methods can now be excluded from a given role
929 - methods can now be aliased to another name (and
930 still retain the original as well)
932 * Moose::Util::TypeConstraints::OptimizedConstraints
933 - added this module (see above)
936 - fixed the &_process_attribute method to be called
937 by &add_attribute, so that the API is now correct
939 * Moose::Meta::Method::Accessor
940 - fixed bug when passing a list of values to
941 an accessor would get (incorrectly) ignored.
942 Thanks to Sartak for finding this ;)
943 - added tests for this (Sartak again)
945 * Moose::Meta::Method::Accessor
946 Moose::Meta::Method::Constructor
947 Moose::Meta::Attribute
948 Moose::Meta::TypeConstraint
949 Moose::Meta::TypeCoercion
950 - lots of cleanup of such things as:
952 - type constraint handling
953 - error handling/messages
954 (thanks to nothingmuch)
956 * Moose::Meta::TypeConstraint::Parameterizable
957 - added this module to support the refactor
958 in Moose::Meta::TypeConstraint::Parameterized
960 * Moose::Meta::TypeConstraint::Parameterized
961 - refactored how these types are handled so they
962 are more generic and not confined to ArrayRef
966 - shortened some file names for better VMS support (RT #32381)
968 0.33 Fri. Dec. 14, 2007
969 !! Moose now loads 2 x faster !!
970 !! with new Class::MOP 0.49 !!
972 ++ new oose.pm module to make command line
973 Moose-ness easier (see POD docs for more)
977 - several tweaks to take advantage of the
978 new method map caching in Class::MOP
980 * Moose::Meta::TypeConstraint::Parameterized
981 - allow subtypes of ArrayRef and HashRef to
982 be used as a container (sartak)
983 - added tests for this
984 - basic support for coercion to ArrayRef and
985 HashRef for containers (sartak)
986 - added tests for this
988 * Moose::Meta::TypeCoercion
989 - coercions will now create subtypes as needed
990 so you can now add coercions to parameterized
991 types without having to explictly define them
992 - added tests for this
994 * Moose::Meta::Method::Accessor
995 - allow subclasses to decide whether we need
996 to copy the value into a new variable (sartak)
998 0.32 Tues. Dec. 4, 2007
999 * Moose::Util::TypeConstraints
1000 - fixing how subtype aliases of unions work
1001 they should inherit the parent's coercion
1002 - added tests for this
1003 - you can now define multiple coercions on
1004 a single type at different times instead of
1005 having to do it all in one place
1006 - added tests for this
1008 * Moose::Meta::TypeConstraint
1009 - there is now a default constraint of sub { 1 }
1010 instead of Moose::Util::TypeConstraints setting
1013 * Moose::Meta::TypeCoercion
1014 * Moose::Meta::TypeCoercion::Union
1015 - added the &has_coercion_for_type and
1016 &add_type_coercions methods to support the
1017 new features above (although you cannot add
1018 more type coercions for Union types)
1020 0.31 Mon. Nov. 26, 2007
1021 * Moose::Meta::Attribute
1022 - made the +attr syntax handle extending types with
1023 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1024 now works if the original foo is an ArrayRef.
1025 - added tests for this.
1026 - delegation now works even if the attribute does not
1027 have a reader method using the get_read_method_ref
1028 method from Class::MOP::Attribute.
1029 - added tests for this
1030 - added docs for this
1032 * Moose::Util::TypeConstraints
1033 - passing no "additional attribute info" to
1034 &find_or_create_type_constraint will no longer
1035 attempt to create an __ANON__ type for you,
1036 instead it will just return undef.
1037 - added docs for this
1039 0.30 Fri. Nov. 23, 2007
1040 * Moose::Meta::Method::Constructor
1041 -builder related bug in inlined constructor. (groditi)
1043 * Moose::Meta::Method::Accessor
1044 - genereate unnecessary calls to predicates and refactor
1045 code generation for runtime speed (groditi)
1047 * Moose::Util::TypeConstraints
1048 - fix ClassName constraint to introspect symbol table (mst)
1049 - added more tests for this (mst)
1050 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1051 with work correctly.
1052 - added tests for this
1055 - adding the link to Recipie 11 (written by Sartak)
1056 - adding test for SYNOPSIS code
1059 - New tests for builder bug. Upon instantiation, if an
1060 attribute had a builder, no value and was not lazy the
1061 builder default was not getting run, oops. (groditi)
1063 0.29 Tues. Nov. 13, 2007
1064 * Moose::Meta::Attribute
1065 - Fix error message on missing builder method (groditi)
1067 * Moose::Meta::Method::Accessor
1068 - Fix error message on missing builder method (groditi)
1071 - Add test to check for the correct error message when
1072 builder method is missing (groditi)
1074 0.28 Tues. Nov. 13, 2007
1075 - 0.27 packaged incorrectly (groditi)
1077 0.27 Tues. Nov. 13, 2007
1078 * Moose::Meta::Attribute
1079 - Added support for the new builder option (groditi)
1080 - Added support for lazy_build option (groditi)
1081 - Changed slot initialization for predicate changes (groditi)
1083 * Moose::Meta::Method::Accessor
1084 - Added support for lazy_build option (groditi)
1085 - Fix inline methods to work with corrected predicate
1088 * Moose::Meta::Method::Constructor
1089 - Added support for lazy_build option (groditi)
1092 - tests for builder and lazy_build (groditi)
1094 * fixing some misc. bits in the docs that
1095 got mentioned on CPAN Forum & perlmonks
1098 - fixed how required methods are handled
1099 when they encounter overriden or modified
1100 methods from a class (thanks to confound).
1101 - added tests for this
1103 * Moose::Util::TypeConstraint
1104 - fixed the type notation parser so that
1105 the | always creates a union and so is
1106 no longer a valid type char (thanks to
1107 konobi, mugwump and #moose for working
1109 - added more tests for this
1111 0.26 Thurs. Sept. 27, 2007
1114 * Parameterized Types
1115 We now support parameterized collection types, such as:
1116 ArrayRef[Int] # array or integers
1117 HashRef[Object] # a hash with object values
1118 They can also be nested:
1119 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1120 And work with the type unions as well:
1121 ArrayRef[Int | Str] # array of integers of strings
1123 * Better Framework Extendability
1124 Moose.pm is now "extendable" such that it is now much
1125 easier to extend the framework and add your own keywords
1126 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1127 section of the Moose.pm docs.
1130 In an effort to begin documenting some of the various
1131 details of Moose as well as some common idioms, we have
1132 created Moose::Cookbook::Snacks as a place to find
1133 small (easily digestable) nuggets of Moose code.
1136 ~ Several doc updates/cleanup thanks to castaway ~
1138 - converted build system to use Module::Install instead of
1139 Module::Build (thanks to jrockway)
1142 - added all the meta classes to the immutable list and
1143 set it to inline the accessors
1144 - fix import to allow Sub::Exporter like { into => }
1145 and { into_level => } (perigrin)
1146 - exposed and documented init_meta() to allow better
1147 embedding and extending of Moose (perigrin)
1150 - complete re-organization of the test suite
1151 - added some new tests as well
1152 - finally re-enabled the Moose::POOP test since
1153 the new version of DBM::Deep now works again
1156 * Moose::Meta::Class
1157 - fixed very odd and very nasty recursion bug with
1159 - added tests for this (eilara)
1161 * Moose::Meta::Attribute
1162 Moose::Meta::Method::Constructor
1163 Moose::Meta::Method::Accessor
1164 - fixed issue with overload::Overloaded getting called
1165 on non-blessed items. (RT #29269)
1166 - added tests for this
1168 * Moose::Meta::Method::Accessor
1169 - fixed issue with generated accessor code making
1170 assumptions about hash based classes (thanks to dexter)
1172 * Moose::Coookbook::Snacks
1173 - these are bits of documentation, not quite as big as
1174 Recipes but which have no clear place in the module docs.
1175 So they are Snacks! (horray for castaway++)
1177 * Moose::Cookbook::Recipe4
1178 - updated it to use the new ArrayRef[MyType] construct
1179 - updated the accompanying test as well
1181 +++ Major Refactor of the Type Constraint system +++
1182 +++ with new features added as well +++
1184 * Moose::Util::TypeConstraint
1185 - no longer uses package variable to keep track of
1186 the type constraints, now uses the an instance of
1187 Moose::Meta::TypeConstraint::Registry to do it
1188 - added more sophisticated type notation parsing
1190 - added tests for this
1192 * Moose::Meta::TypeConstraint
1193 - some minor adjustments to make subclassing easier
1194 - added the package_defined_in attribute so that we
1195 can track where the type constraints are created
1197 * Moose::Meta::TypeConstraint::Union
1198 - this is now been refactored to be a subclass of
1199 Moose::Meta::TypeConstraint
1201 * Moose::Meta::TypeCoercion::Union
1202 - this has been added to service the newly refactored
1203 Moose::Meta::TypeConstraint::Union and is itself
1204 a subclass of Moose::Meta::TypeCoercion
1206 * Moose::Meta::TypeConstraint::Parameterized
1207 - added this module (taken from MooseX::AttributeHelpers)
1208 to help construct nested collection types
1209 - added tests for this
1211 * Moose::Meta::TypeConstraint::Registry
1212 - added this class to keep track of type constraints
1214 0.25 Mon. Aug. 13, 2007
1216 - Documentation update to reference Moose::Util::TypeConstraints
1217 under 'isa' in 'has' for how to define a new type
1218 (thanks to shlomif).
1220 * Moose::Meta::Attribute
1221 - required attributes now will no longer accept undef
1222 from the constructor, even if there is a default and lazy
1223 - added tests for this
1224 - default subroutines must return a value which passes the
1226 - added tests for this
1228 * Moose::Meta::Attribute
1229 * Moose::Meta::Method::Constructor
1230 * Moose::Meta::Method::Accessor
1231 - type-constraint tests now handle overloaded objects correctly
1232 in the error message
1233 - added tests for this (thanks to EvanCarroll)
1235 * Moose::Meta::TypeConstraint::Union
1236 - added (has_)hand_optimized_constraint to this class so that
1237 it behaves as the regular Moose::Meta::TypeConstraint does.
1240 - large refactoring of this code
1241 - added several more tests
1242 - tests for subtle conflict resolition issues
1243 added, but not currently running
1246 * Moose::Cookbook::Recipe7
1247 - added new recipe for augment/inner functionality
1249 - added test for this
1252 - a formal definition of roles (still in progress)
1255 - utilities for easier working with Moose classes
1256 - added tests for these
1259 - This contains Moose specific test functions
1260 - added tests for these
1262 0.24 Tues. July 3, 2007
1263 ~ Some doc updates/cleanup ~
1265 * Moose::Meta::Attribute
1266 - added support for roles to be given as parameters
1267 to the 'handles' option.
1268 - added tests and docs for this
1269 - the has '+foo' attribute form now accepts changes to
1270 the lazy option, and the addition of a handles option
1271 (but not changing the handles option)
1272 - added tests and docs for this
1275 - required methods are now fetched using find_method_by_name
1276 so that required methods can come from superclasses
1277 - adjusted tests for this
1279 0.23 Mon. June 18, 2007
1280 * Moose::Meta::Method::Constructor
1281 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1282 * Moose::Meta::Class
1283 - Modify make_immutable to work with the new Class::MOP immutable
1284 mechanism + POD + very basic test (groditi)
1285 * Moose::Meta::Attribute
1286 - Fix handles to use goto() so that caller() comes out properly on
1287 the other side (perigrin)
1289 0.22 Thurs. May 31, 2007
1290 * Moose::Util::TypeConstraints
1291 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1292 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1293 prototypes for functions
1294 - added the ClassName type constraint, this checks for strings
1295 which will respond true to ->isa(UNIVERSAL).
1296 - added tests and docs for this
1297 - subtyping just in name now works correctly by making the
1298 default for where be { 1 }
1299 - added test for this
1301 * Moose::Meta::Method::Accessor
1302 - coerce and lazy now work together correctly, thanks to
1303 merlyn for finding this bug
1304 - tests added for this
1305 - fix reader presedence bug in Moose::Meta::Attribute + tests
1308 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1309 a HASH-ref and missed. This produces better error messages then
1310 having it die cause undef is not a HASH.
1311 - added tests for this
1313 0.21 Thursday, May 2nd, 2007
1315 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1316 - modified unimport to remove super and inner along with the rest
1317 - altered unimport tests to handle this
1320 - altered super export to populate SUPER_SLOT
1322 * Moose::Meta::Class
1323 - altered augment and override modifier application to use *_SLOT
1324 - modified tests for these to unimport one test class each to test
1327 - fixed issue where custom attribute metaclasses
1328 where not handled correctly in roles
1329 - added tests for this
1331 * Moose::Meta::Class
1332 - fixed issue where extending metaclasses with
1333 roles would blow up. Thanks to Aankhen`` for
1334 finding this insidious error, and it's solution.
1336 ~~ lots of spelling and grammer fixes in the docs,
1337 many many thanks to rlb3 and Aankhen for these :)
1339 0.20 Friday, April 6th, 2007
1340 >> I messed up the SKIP logic in one test
1341 so this release is just to fix that.
1344 - 'has' now also accepts an ARRAY ref
1345 to create multiple attrs (see docs)
1346 (thanks to konobi for this)
1347 - added tests and docs
1349 0.19 Thurs. April 5th, 2007
1350 ~~ More documentation updates ~~
1352 * Moose::Util::TypeConstraints
1353 - 'type' now supports messages as well
1354 thanks to phaylon for finding this
1355 - added tests for this
1356 - added &list_all_type_constraints and
1357 &list_all_builtin_type_constraints
1358 functions to facilitate introspection.
1360 * Moose::Meta::Attribute
1361 - fixed regexp 'handles' declarations
1362 to build the list of delegated methods
1363 correctly (and not override important
1364 things like &new) thanks to ashleyb
1366 - added tests and docs for this
1367 - added the 'documentation' attributes
1368 so that you can actually document your
1369 attributes and inspect them through the
1371 - added tests and docs for this
1373 * Moose::Meta::Class
1374 - when loading custom attribute metaclasses
1375 it will first look in for the class in the
1376 Moose::Meta::Attribute::Custom::$name, and
1377 then default to just loading $name.
1378 - added tests and docs for this
1380 * Moose::Meta::TypeConstraint
1381 - type constraints now stringify to their names.
1382 - added test for this
1385 - added tests to assure we work with Module::Refresh
1386 - added stricter test skip logic in the Moose POOP
1387 test, ask Rob Kinyon why.
1388 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1390 0.18 Sat. March 10, 2007
1391 ~~ Many, many documentation updates ~~
1394 - We now use Class::MOP::load_class to
1396 - added tests to show types and subtypes
1397 working with Declare::Constraints::Simple
1398 and Test::Deep as constraint engines.
1401 !! You must have Class::MOP 0.37_001 !!
1402 !! for this developer release to work !!
1404 This release was primarily adding the immutable
1405 feature to Moose. An immutable class is one which
1406 you promise not to alter. When you set the class
1407 as immutable it will perform various bits of
1408 memoization and inline certain part of the code
1409 (constructors, destructors and accessors). This
1410 minimizes (and in some cases totally eliminates)
1411 one of Moose's biggest performance hits. This
1412 feature is not on by default, and is 100% optional.
1413 It has several configurable bits as well, so you
1414 can pick and choose to your specific needs.
1416 The changes involved in this were fairly wide and
1417 highly specific, but 100% backwards compatible, so
1418 I am not going to enumerate them here. If you are
1419 truely interested in what was changed, please do
1422 0.17 Tues. Nov. 14, 2006
1423 * Moose::Meta::Method::Accessor
1424 - bugfix for read-only accessors which
1425 are have a type constraint and lazy.
1426 Thanks to chansen for finding it.
1428 0.16 Tues. Nov. 14, 2006
1430 There are some speed improvements in this release,
1431 but they are only the begining, so stay tuned.
1434 - BUILDALL and DEMOLISHALL no longer get
1435 called unless they actually need to be.
1436 This gave us a signifigant speed boost
1437 for the cases when there is no BUILD or
1438 DEMOLISH method present.
1440 * Moose::Util::TypeConstraints
1441 * Moose::Meta::TypeConstraint
1442 - added an 'optimize_as' option to the
1443 type constraint, which allows for a
1444 hand optimized version of the type
1445 constraint to be used when possible.
1446 - Any internally created type constraints
1447 now provide an optimized version as well.
1449 0.15 Sun. Nov. 5, 2006
1451 This version of Moose *must* have Class::MOP 0.36 in order
1452 to work correctly. A number of small internal tweaks have
1453 been made in order to be compatible with that release.
1455 * Moose::Util::TypeConstraints
1456 - added &unimport so that you can clean out
1457 your class namespace of these exported
1460 * Moose::Meta::Class
1461 - fixed minor issue which occasionally
1462 comes up during global destruction
1464 - moved Moose::Meta::Method::Overriden into
1468 - moved Moose::Meta::Role::Method into
1471 * Moose::Meta::Attribute
1472 - changed how we do type checks so that
1473 we reduce the overall cost, but still
1476 - moved accessor generation methods to
1477 Moose::Meta::Method::Accessor to
1478 conform to the API changes from
1481 * Moose::Meta::TypeConstraint
1482 - changed how constraints are compiled
1483 so that we do less recursion and more
1484 iteration. This makes the type check
1486 - moved Moose::Meta::TypeConstraint::Union
1489 * Moose::Meta::Method::Accessor
1490 - created this from methods formerly found in
1491 Moose::Meta::Attribute
1493 * Moose::Meta::Role::Method
1494 - moved this from Moose::Meta::Role
1496 * Moose::Meta::Method::Overriden
1497 - moved this from Moose::Meta::Class
1499 * Moose::Meta::TypeConstraint::Union
1500 - moved this from Moose::Meta::TypeConstraint
1502 0.14 Mon. Oct. 9, 2006
1504 * Moose::Meta::Attribute
1505 - fixed lazy attributes which were not getting
1506 checked with the type constraint (thanks ashley)
1507 - added tests for this
1508 - removed the over-enthusiastic DWIMery of the
1509 automatic ArrayRef and HashRef defaults, it
1510 broke predicates in an ugly way.
1511 - removed tests for this
1513 0.13 Sat. Sept. 30, 2006
1515 This version of Moose *must* have Class::MOP 0.35 in order
1516 to work correctly. A number of small internal tweaks have
1517 been made in order to be compatible with that release.
1520 - Removed the use of UNIVERSAL::require to be a better
1521 symbol table citizen and remove a dependency
1522 (thanks Adam Kennedy)
1524 **~~ removed experimental & undocumented feature ~~**
1525 - commented out the 'method' and 'self' keywords, see the
1526 comments for more info.
1529 - added a FAQ and WTF files to document frequently
1530 asked questions and common problems
1532 * Moose::Util::TypeConstraints
1533 - added GlobRef and FileHandle type constraint
1534 - added tests for this
1536 * Moose::Meta::Attribute
1537 - if your attribute 'isa' ArrayRef of HashRef, and you have
1538 not explicitly set a default, then make the default DWIM.
1539 This will also work for subtypes of ArrayRef and HashRef
1541 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1542 - new test added for this (thanks to ashley)
1545 - added basic support for runtime role composition
1546 but this is still *highly experimental*, so feedback
1547 is much appreciated :)
1548 - added tests for this
1550 * Moose::Meta::TypeConstraint
1551 - the type constraint now handles the coercion process
1552 through delegation, this is to support the coercion
1555 * Moose::Meta::TypeConstraint::Union
1556 - it is now possible for coercions to be performed
1558 - added tests for this (thanks to konobi)
1560 * Moose::Meta::TypeCoercion
1561 - properly capturing error when type constraint
1565 - Scalar::Util 1.18 is bad on Win32, so temporarily
1566 only require version 1.17 for Win32 and cygwin.
1567 (thanks Adam Kennedy)
1569 0.12 Sat. Sept. 1, 2006
1571 - Recipe5 (subtypes & coercion) has been written
1574 - fixed "bad meta" error message to be more descriptive
1575 - fixed &unimport to not remove the &inner and &super
1576 keywords because we need to localize them.
1577 - fixed number of spelling/grammer issues, thanks Theory :)
1579 **~~ experimental & undocumented feature ~~**
1580 - added the method and self keywords, they are basically
1581 just sugar, and they may not stay around.
1584 - added &dump method to easily Data::Dumper
1587 * Moose::Meta::TypeConstraint
1588 - added the &is_a_type_of method to check both the current
1589 and the subtype of a method (similar to &isa with classes)
1592 - this is now a subclass of Class::MOP::Module, and no longer
1593 creates the _role_meta ugliness of before.
1594 - fixed tests to reflect this change
1596 0.11 Wed. July 12, 2006
1598 - added an &unimport method to remove all the keywords
1599 that Moose will import, simply add 'no Moose' to the
1600 bottom of your class file.
1603 - fixed some test failures caused by a forgotten test
1606 0.10 Thurs. July 6, 2006
1608 - improved error message when loading modules so
1609 it is less confusing when you load a role.
1610 - added &calculate_all_roles method to
1611 Moose::Meta::Class and Moose::Meta::Role
1614 This module has been tested against Class::MOP 0.30
1615 but it does not yet utilize the optimizations
1616 it makes available. Stay tuned for that ;)
1618 0.09_03 Fri. June 23, 2006
1619 ++ DEVELOPER RELEASE ++
1621 - 'use strict' and 'use warnings' are no longer
1622 needed in Moose classes, Moose itself will
1623 turn them on for you.
1624 - added tests for this
1625 - moved code from exported subs to private methods
1626 in Moose::Meta::Class
1629 - as with Moose, strict and warnings are
1630 automatically turned on for you.
1631 - added tests for this
1634 - now handles an edge case for override errors
1635 - added tests for this
1636 - added some more edge case tests
1638 0.09_02 Tues. May 16, 2006
1639 ++ DEVELOPER RELEASE ++
1641 - added prototypes to the exported subs
1645 - added prototypes to the exported subs
1648 * Moose::Util::TypeConstraints
1649 - cleaned up prototypes for the subs
1652 0.09_01 Fri. May 12, 2006
1653 ++ DEVELOPER RELEASE ++
1654 - This release works in combination with
1655 Class::MOP 0.29_01, it is a developer
1656 release because it uses the a new
1657 instance sub-protocol and a fairly
1658 complete Role implementation. It has
1659 not yet been optimized, so it slower
1660 the the previous CPAN version. This
1661 release also lacks good updated docs,
1662 the official release will have updated docs.
1665 - refactored the keyword exports
1666 - 'with' now checks Role validaity and
1667 accepts more than one Role at a time
1668 - 'extends' makes metaclass adjustments as
1669 needed to ensure metaclass compatibility
1672 - refactored the keyword exports
1673 - 'with' now checks Role validaity and
1674 accepts more than one Role at a time
1676 * Moose::Util::TypeConstraints
1677 - added the 'enum' keyword for simple
1678 string enumerations which can be used as
1680 - see example of usage in t/202_example.t
1683 - more careful checking of params to new()
1686 - much work done on the role composition
1687 - many new tests for conflict detection
1688 and composition edge cases
1689 - not enough documentation, I suggest
1690 looking at the tests
1692 * Moose::Meta::Instance
1693 - added new Instance metaclass to support
1694 the new Class::MOP instance protocol
1696 * Moose::Meta::Class
1697 - some small changes to support the new
1699 - some small additions to support Roles
1701 * Moose::Meta::Attribute
1702 - some improvements to the accessor generation code
1704 - some small changes to support the new
1706 - (still somewhat) experimental delegation support
1707 with the 'handles' option
1708 - added several tests for this
1709 - no docs for this yet
1711 0.05 Thurs. April 27, 2006
1713 - keywords are now exported with Sub::Exporter
1714 thanks to chansen for this commit
1715 - has keyword now takes a 'metaclass' option
1716 to support custom attribute meta-classes
1717 on a per-attribute basis
1718 - added tests for this
1719 - the 'has' keyword not accepts inherited slot
1720 specifications (has '+foo'). This is still an
1721 experimental feature and probably not finished
1722 see t/038_attribute_inherited_slot_specs.t for
1723 more details, or ask about it on #moose
1724 - added tests for this
1727 - keywords are now exported with Sub::Exporter
1729 * Moose::Utils::TypeConstraints
1730 - reorganized the type constraint hierarchy, thanks
1731 to nothingmuch and chansen for his help and advice
1733 - added some tests for this
1734 - keywords are now exported with Sub::Exporter
1735 thanks to chansen for this commit
1737 * Moose::Meta::Class
1738 - due to changes in Class::MOP, we had to change
1739 construct_instance (for the better)
1741 * Moose::Meta::Attribute
1742 - due to changes in Class::MOP, we had to add the
1743 initialize_instance_slot method (it's a good thing)
1745 * Moose::Meta::TypeConstraint
1746 - added type constraint unions
1747 - added tests for this
1748 - added the is_subtype_of predicate method
1749 - added tests for this
1751 0.04 Sun. April 16th, 2006
1753 - Roles can now consume other roles
1754 - added tests for this
1755 - Roles can specify required methods now with
1756 the requires() keyword
1757 - added tests for this
1760 - ripped out much of it's guts ,.. much cleaner now
1761 - added required methods and correct handling of
1762 them in apply() for both classes and roles
1763 - added tests for this
1764 - no longer adds a does() method to consuming classes
1765 it relys on the one in Moose::Object
1766 - added roles attribute and some methods to support
1767 roles consuming roles
1769 * Moose::Meta::Attribute
1770 - added support for triggers on attributes
1771 - added tests for this
1772 - added support for does option on an attribute
1773 - added tests for this
1775 * Moose::Meta::Class
1776 - added support for attribute triggers in the
1778 - added tests for this
1781 - Moose no longer creates a subtype for your class
1782 if a subtype of the same name already exists, this
1783 should DWIM in 99.9999% of all cases
1785 * Moose::Util::TypeConstraints
1786 - fixed bug where incorrect subtype conflicts were
1788 - added test for this
1791 - this class can now be extended with 'use base' if
1792 you need it, it properly loads the metaclass class now
1793 - added test for this
1795 0.03_02 Wed. April 12, 2006
1797 - you must now explictly use Moose::Util::TypeConstraints
1798 it no longer gets exported for you automatically
1801 - new() now accepts hash-refs as well as key/value lists
1802 - added does() method to check for Roles
1803 - added tests for this
1805 * Moose::Meta::Class
1806 - added roles attribute along with the add_role() and
1808 - added tests for this
1811 - now adds a does() method to consuming classes
1812 which tests the class's hierarchy for roles
1813 - added tests for this
1815 0.03_01 Mon. April 10, 2006
1817 - added new Role recipe (no content yet, only code)
1820 - added 'with' keyword for Role support
1821 - added test and docs for this
1822 - fixed subtype quoting bug
1823 - added test for this
1827 - added test and docs
1829 * Moose::Util::TypeConstraints
1830 - added the message keyword to add custom
1831 error messages to type constraints
1834 - the meta role to support Moose::Role
1835 - added tests and docs
1837 * Moose::Meta::Class
1838 - moved a number of things from Moose.pm
1839 to here, they should have been here
1842 * Moose::Meta::Attribute
1843 - moved the attribute option macros here
1844 instead of putting them in Moose.pm
1846 * Moose::Meta::TypeConstraint
1847 - added the message attributes and the
1849 - added tests and docs for this
1851 0.03 Thurs. March 30, 2006
1853 - added the Moose::Cookbook with 5 recipes,
1854 describing all the stuff Moose can do.
1857 - fixed an issue with &extends super class loading
1858 it now captures errors and deals with inline
1859 packages correctly (bug found by mst, solution
1861 - added super/override & inner/augment features
1862 - added tests and docs for these
1865 - BUILDALL now takes a reference of the %params
1866 that are passed to &new, and passes that to
1869 * Moose::Util::TypeConstraints
1870 - Type constraints now survive runtime reloading
1871 - added test for this
1873 * Moose::Meta::Class
1874 - fixed the way attribute defaults are handled
1875 during instance construction (bug found by chansen)
1877 * Moose::Meta::Attribute
1878 - read-only attributes now actually enforce their
1879 read-only-ness (this corrected in Class::MOP as
1882 0.02 Tues. March 21, 2006
1884 - many more tests, fixing some bugs and
1886 - &extends now loads the base module with
1888 - added UNIVERSAL::require to the
1891 - each new Moose class will also create
1892 and register a subtype of Object which
1893 correspond to the new Moose class.
1894 - the 'isa' option in &has now only
1895 accepts strings, and will DWIM in
1898 * Moose::Util::TypeConstraints
1899 - added type coercion features
1900 - added tests for this
1901 - added support for this in attributes
1902 and instance construction
1904 - type construction no longer creates a
1905 function, it registers the type instead.
1906 - added several functions to get the
1910 - BUILDALL and DEMOLISHALL were broken
1911 because of a mis-named hash key, Whoops :)
1913 * Moose::Meta::Attribute
1914 - adding support for coercion in the
1915 autogenerated accessors
1917 * Moose::Meta::Class
1918 - adding support for coercion in the
1919 instance construction
1921 * Moose::Meta::TypeConstraint
1922 * Moose::Meta::TypeCoercion
1923 - type constraints and coercions are now
1924 full fledges meta-objects
1926 0.01 Wed. March 15, 2006
1927 - Moooooooooooooooooose!!!