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, notably MooseX::Storage
18 * Moose::Util::TypeConstraints
19 - Put back the changes for parameterized constraints that
20 shouldn't have been removed in 0.59. We still cannot parse
21 them, but MooseX modules can create them in some other
22 way. See the 0.58 changes for more details. (jnapiorkowski)
24 0.59 Tue October 14, 2008
26 - Add abridged documentation for builder/default/initializer/
27 predicate, and link to more details sections in
28 Class::MOP::Attribute. (t0m)
30 * Moose::Util::TypeConstraints
31 - removed prototypes from all but the &-based stuff (mst)
33 * Moose::Util::TypeConstraints
34 - Creating a anonymous subtype with both a constraint and a
35 message failed with a very unhelpful error, but should just
36 work. Reported by t0m. (Dave Rolsky)
39 - Some tests that used Test::Warn if it was available failed
40 with older versions of Test::Warn. Reported by Fayland. (Dave
42 - Test firing behavior of triggers in relation to builder/default/
44 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
45 kinds of supported type. (t0m)
48 - In create(), do not pass "roles" option to the superclass
49 - added related test that creates an anon metaclass with
52 * Moose::Meta::TypeConstraint::Class
53 * Moose::Meta::TypeConstraint::Role
54 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
55 other types (as per change in 0.55_02). (t0m)
57 * Moose::Meta::TypeConstraint::Registry
58 - Fix warning when dealing with unknown type names (t0m)
60 * Moose::Util::TypeConstraints
61 - Reverted changes from 0.58 related to handle parameterized
62 types. This caused random failures on BSD and Win32 systems,
63 apparently related to the regex engine. This means that Moose
64 can no longer parse structured type constraints like
65 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
66 supported in a slightly different way via MooseX::Types some
67 time in the future. (Dave Rolsky)
69 0.58 Sat September 20, 2008
70 !! This release has an incompatible change regarding !!
71 !! how roles add methods to a class !!
73 * Roles and role application
74 ! Roles now add methods by calling add_method, not
75 alias_method. They make sure to always provide a method
76 object, which will be cloned internally. This means that it is
77 now possible to track the source of a method provided by a
78 role, and even follow its history through intermediate roles.
80 This means that methods added by a role now show up when
81 looking at a class's method list/map. (Dave Rolsky)
84 - From this release on, we'll try to maintain a list of
85 conflicting modules, and warn you if you have one
86 installed. For example, this release conflicts with ...
87 - MooseX::Singleton <= 0.11
88 - MooseX::Params::Validate <= 0.05
91 In general, we try to not break backwards compatibility for
92 most Moose users, but MooseX modules and other code which
93 extends Moose's metaclasses is often affected by very small
94 changes in the Moose internals.
96 * Moose::Meta::Method::Delegation
97 * Moose::Meta::Attribute
98 - Delegation methods now have their own method class. (Dave
101 * Moose::Meta::TypeConstraint::Parameterizable
102 - Added a new method 'parameterize' which is basically a factory
103 for the containing constraint. This makes it easier to create
104 new types of parameterized constraints. (jnapiorkowski)
106 * Moose::Meta::TypeConstraint::Union
107 - Changed the way Union types canonicalize their names to follow
108 the normalized TC naming rules, which means we strip all
109 whitespace. (jnapiorkowski)
111 * Moose::Util::TypeConstraints
112 - Parameter and Union args are now sorted, this makes Int|Str
113 the same constraint as Str|Int. (jnapiorkowski)
114 - Changes to the way Union types are parsed to more correctly
115 stringify their names. (jnapiorkowski)
116 - When creating a parameterized type, we now use the new
117 parameterize method. (jnapiorkowski)
118 - Incoming type constraint strings are now normalized to remove
119 all whitespace differences. (jnapiorkowski)
120 - Changed the way we parse type constraint strings so that we now
121 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
122 constraints. This lays the foundation for more flexible type
123 constraint implementations.
125 * Tests and docs for all the above. (jnapiorkowski)
129 - Moose::Exporter will no longer remove a subroutine that the
130 exporting package re-exports. Moose re-exports the
131 Carp::confess function, among others. The reasoning is that we
132 cannot know whether you have also explicitly imported those
133 functions for your own use, so we err on the safe side and
134 always keep them. (Dave Rolsky)
135 - added tests for this (rafl)
138 - Changes to how we fix metaclass compatibility that are much
139 too complicated to go into. The summary is that Moose is much
140 less likely to complain about metaclass incompatibility
141 now. In particular, if two metaclasses differ because
142 Moose::Util::MetaRole was used on the two corresponding
143 classes, then the difference in roles is reconciled for the
144 subclass's metaclass. (Dave Rolsky)
145 - Squashed an warning in _process_attribute (thepler)
148 - throw exceptions (sooner) for invalid attribute names (thepler)
149 - added tests for this (thepler)
151 * Moose::Util::MetaRole
152 - If you explicitly set a constructor or destructor class for a
153 metaclass object, and then applied roles to the metaclass,
154 that explicitly set class would be lost and replaced with the
158 * Moose::Meta::Attribute
159 * Moose::Meta::Method
162 * Moose::Error::Default
163 * Moose::Error::Croak
164 * Moose::Error::Confess
165 - All instances of confess() changed to use overridable
166 C<throw_error> method. This method ultimately calls a class
167 constructor, and you can change the class being called. In
168 addition, errors now pass more information than just a string.
169 The default C<error_class> behaves like C<Carp::confess>, so
170 the behavior is not visibly different for end users.
172 0.57 Wed September 3, 2008
174 - A new bit of doc intended to introduce folks familiar with
175 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
178 - Shows examples of two classes, each done first with and then
179 without Moose. This makes a nice parallel to
180 Moose::Intro. (Dave Rolsky)
182 * Moose::Util::TypeConstraints
183 - Fixed a bug in find_or_parse_type_constraint so that it
184 accepts a Moose::Meta::TypeConstraint object as the parent
185 type, not just a name (jnapiorkowski)
186 - added tests (jnapiorkowski)
189 - If Sub::Name was not present, unimporting failed to actually
190 remove some sugar subs, causing test failures (Dave Rolsky)
192 0.56 Mon September 1, 2008
193 For those not following the series of dev releases, there are
194 several major changes in this release of Moose.
195 ! Moose::init_meta should now be called as a method. See the
198 - Major performance improvements by nothingmuch.
200 - New modules for extension writers, Moose::Exporter and
201 Moose::Util::MetaRole by Dave Rolsky.
203 - Lots of doc improvements and additions, especially in the
208 * Removed all references to the experimental-but-no-longer-needed
209 Moose::Meta::Role::Application::ToMetaclassInstance.
211 * Require Class::MOP 0.65.
213 0.55_04 Sat August 30, 2008
214 * Moose::Util::MetaRole
215 * Moose::Cookbook::Extending::Recipe2
216 - This simplifies the application of roles to any meta class, as
217 well as the base object class. Reimplemented metaclass traits
218 using this module. (Dave Rolsky)
220 * Moose::Cookbook::Extending::Recipe1
221 - This a new recipe, an overview of various ways to write Moose
222 extensions (Dave Rolsky)
224 * Moose::Cookbook::Extending::Recipe3
225 * Moose::Cookbook::Extending::Recipe4
226 - These used to be Extending::Recipe1 and Extending::Recipe2,
229 0.55_03 Fri August 29, 2008
230 * No changes from 0.55_02 except increasing the Class::MOP
231 dependency to 0.64_07.
233 0.55_02 Fri August 29, 2008
234 * Makefile.PL and Moose.pm
235 - explicitly require Perl 5.8.0+ (Dave Rolsky)
237 * Moose::Util::TypeConstraints
238 - Fix warnings from find_type_constraint if the type is not
241 * Moose::Meta::TypeConstraint
242 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
243 return false if the type you specify cannot be found in the
244 type registry, rather than throwing an unhelpful and
245 coincidental exception. (t0m).
246 - added docs & test for this (t0m)
248 * Moose::Meta::TypeConstraint::Registry
249 - add_type_constraint now throws an exception if a parameter is
251 - added docs & test for this (t0m)
253 * Moose::Cookbook::FAQ
254 - Added a faq entry on the difference between "role" and "trait"
258 - Fixed a bug that caused role composition to not see a required
259 method when that method was provided by another role being
260 composed at the same time. (Dave Rolsky)
261 - test and bug finding (tokuhirom)
263 0.55_01 Wed August 20, 2008
265 !! Calling Moose::init_meta as a function is now !!
266 !! deprecated. Please see the Moose.pm docs for details. !!
268 * Moose::Meta::Method::Constructor
269 - Fix inlined constructor so that values produced by default
270 or builder methods are coerced as required. (t0m)
271 - added test for this (t0m)
273 * Moose::Meta::Attribute
274 - A lazy attribute with a default or builder did not attempt to
275 coerce the default value. The immutable code _did_
277 - added test for this (t0m)
280 - This is a new helper module for writing "Moose-alike"
281 modules. This should make the lives of MooseX module authors
282 much easier. (Dave Rolsky)
285 * Moose::Cookbook::Meta::Recipe5
286 - Implemented metaclass traits (and wrote a recipe for it):
288 use Moose -traits => 'Foo'
290 This should make writing small Moose extensions a little
293 * Moose::Cookbook::Basics::Recipe1
294 - Removed any examples of direct hashref access, and applied an
295 editorial axe to reduce verbosity. (Dave Rolsky)
297 * Moose::Cookbook::Basics::Recipe1
298 - Also applied an editorial axe here. (Dave Rolsky)
301 * Moose::Cookbook::Extending::Recipe1
302 * Moose::Cookbook::Extending::Recipe2
303 - Rewrote extending and embedding moose documentation and
304 recipes to use Moose::Exporter (Dave Rolsky)
308 - These two modules now warn when you load them from the main
309 package "main" package, because we will not export sugar to
310 main. Previously it just did nothing. (Dave Rolsky)
313 - Now provide an init_meta method just like Moose.pm, and you
314 can call this to provide an alternate role metaclass. (Dave
315 Rolsky and nothingmuch)
316 - get_method_map now respects the package cache flag (nothingmuch)
319 - Two new methods - add_method and wrap_method_body
323 - Optimizations including allowing constructors to accept hash
324 refs, making many more classes immutable, and making
325 constructors immutable. (nothingmuch)
327 0.55 Sun August 3, 2008
328 * Moose::Meta::Attribute
329 - breaking down the way 'handles' methods are
330 created so that the process can be more easily
331 overridden by subclasses (stevan)
333 * Moose::Meta::TypeConstraint
334 - fixing what is passed into a ->message with
335 the type constraints (RT #37569)
336 - added tests for this (Charles Alderman)
338 * Moose::Util::TypeConstraints
339 - fix coerce to accept anon types like subtype can (mst)
342 - reorganized the recipes into sections - Basics, Roles, Meta,
343 Extending - and wrote abstracts for each section (Dave Rolsky)
345 * Moose::Cookbook::Basics::Recipe10
346 - A new recipe that demonstrates operator overloading
347 in combination with Moose. (bluefeet)
349 * Moose::Cookbook::Meta::Recipe1
350 - an introduction to what meta is and why you'd want to make
351 your own metaclass extensions (Dave Rolsky)
353 * Moose::Cookbook::Meta::Recipe4
354 - a very simple metaclass example (Dave Rolsky)
356 * Moose::Cookbook::Extending::Recipe1
357 - how to write a Moose-alike module to use your own object base
360 * Moose::Cookbook::Extending::Recipe2
361 - how to write modules with an API just like C<Moose.pm> (Dave
365 - Tons of fixes, both syntactical and grammatical (Dave
366 Rolsky, Paul Fenwick)
368 0.54 Thurs. July 3, 2008
369 ... this is not my day today ...
371 * Moose::Meta::Attribute
372 - fixed legal_options_for_inheritance such that
373 clone_and_inherit options still works for
374 Class::MOP::Attribute objects and therefore
375 does not break MooseX::AttributeHelpers
378 0.53 Thurs. July 3, 2008
379 * Whoops, I guess I should run 'make manifest' before
380 actually releasing the module. No actual changes
381 in this release, except the fact that it includes
382 the changes that I didn't include in the last
385 0.52 Thurs. July 3, 2008
387 - added "FEATURE REQUESTS" section to the Moose docs
388 to properly direct people (stevan) (RT #34333)
389 - making 'extends' croak if it is passed a Role since
390 this is not ever something you want to do
391 (fixed by stevan, found by obra)
392 - added tests for this (stevan)
395 - adding support for DOES (as in UNIVERSAL::DOES)
397 - added test for this
399 * Moose::Meta::Attribute
400 - added legal_options_for_inheritance (wreis)
401 - added tests for this (wreis)
403 * Moose::Cookbook::Snacks::*
404 - removed some of the unfinished snacks that should
405 not have been released yet. Added some more examples
406 to the 'Keywords' snack. (stevan)
408 * Moose::Cookbook::Style
409 - added general Moose "style guide" of sorts to the
410 cookbook (nothingmuch) (RT #34335)
413 - added more BUILDARGS tests (stevan)
415 0.51 Thurs. Jun 26, 2008
417 - add unimport so "no Moose::Role" actually does
420 * Moose::Meta::Role::Application::ToRole
421 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
422 order to provide its own implementation, that method still got
423 added to the list of required methods for consumers of
424 RoleB. Now an aliased method is only added to the list of
425 required methods if the role doing the aliasing does not
426 provide its own implementation. See Recipe 11 for an example
427 of all this. (Dave Rolsky)
428 - added tests for this
430 * Moose::Meta::Method::Constructor
431 - when a single argument that wasn't a hashref was provided to
432 an immutabilized constructor, the error message was very
433 unhelpful, as opposed to the non-immutable error. Reported by
435 - added test for this (Dave Rolsky)
437 * Moose::Meta::Attribute
438 - added support for meta_attr->does("ShortAlias") (sartak)
439 - added tests for this (sartak)
440 - moved the bulk of the `handles` handling to the new
441 install_delegation method (Stevan)
444 - Added BUILDARGS, a new step in new()
446 * Moose::Meta::Role::Application::RoleSummation
447 - fix typos no one ever sees (sartak)
449 * Moose::Util::TypeConstraints
450 * Moose::Meta::TypeConstraint
451 * Moose::Meta::TypeCoercion
452 - Attempt to work around the ??{ } vs. threads issue
454 - Some null_constraint optimizations
456 0.50 Thurs. Jun 11, 2008
457 - Fixed a version number issue by bumping all modules
460 0.49 Thurs. Jun 11, 2008
461 !! This version now approx. 20-25% !!
462 !! faster with new Class::MOP 0.59 !!
464 * Moose::Meta::Attribute
465 - fixed how the is => (ro|rw) works with
466 custom defined reader, writer and accessor
468 - added docs for this (TODO).
469 - added tests for this (Thanks to Penfold)
470 - added the custom attribute alias for regular
471 Moose attributes which is "Moose"
472 - fix builder and default both being used
477 Moose::Meta::Attribute
479 Moose::Meta::Role::Composite
480 Moose::Util::TypeConstraints
481 - switched usage of reftype to ref because
485 - changing add_package_symbol to use the new
489 - fixed how DEMOLISHALL is called so that it
490 can be overrided in subclasses (thanks to Sartak)
491 - added test for this (thanks to Sartak)
493 * Moose::Util::TypeConstraints
494 - move the ClassName type check code to
495 Class::MOP::is_class_loaded (thanks to Sartak)
497 * Moose::Cookbook::Recipe11
498 - add tests for this (thanks to tokuhirom)
500 0.48 Thurs. May 29, 2008
501 (early morning release engineering)--
503 - fixing the version in Moose::Meta::Method::Destructor
504 which was causing the indexer to choke
506 0.47 Thurs. May 29, 2008
507 (late night release engineering)--
509 - fixing the version is META.yml, no functional
510 changes in this release
512 0.46 Wed. May 28, 2008
513 !! This version now approx. 20-25% !!
514 !! faster with new Class::MOP 0.57 !!
517 - some optimizations of the &initialize method
518 since it is called so often by &meta
522 - now use the get_all_package_symbols from the
523 updated Class::MOP, test suite is now 10 seconds
526 * Moose::Meta::Method::Destructor
527 - is_needed can now also be called as a class
528 method for immutablization to check if the
529 destructor object even needs to be created
532 * Moose::Meta::Method::Destructor
533 Moose::Meta::Method::Constructor
534 - added more descriptive error message to help
535 keep people from wasting time tracking an error
536 that is easily fixed by upgrading.
538 0.45 Saturday, May 24, 2008
540 - Because of work in Class::MOP 0.57, all
541 XS based functionality is now optional
542 and a Pure Perl version is supplied
543 - the CLASS_MOP_NO_XS environment variable
544 can now be used to force non-XS versions
546 - several of the packages have been tweaked
547 to take care of this, mostly we added
548 support for the package_name and name
549 variables in all the Method metaclasses
550 - before/around/after method modifiers now
551 support regexp matching of names
552 (thanks to Takatoshi Kitano)
553 - tests added for this
554 - NOTE: this only works for classes, it
555 is currently not supported in roles,
556 but, ... patches welcome
557 - All usage of Carp::confess have been replaced
558 by Carp::croak in the "keyword" functions since
559 the stack trace is usually not helpful
562 - All usage of Carp::confess have been replaced
563 by Carp::croak in the "keyword" functions since
564 the stack trace is usually not helpful
565 - The 'has' keyword for roles now accepts the
566 same array ref form that Moose.pm does
567 (has [qw/foo bar/] => (is => 'rw', ...))
568 - added test for this
570 * Moose::Meta::Attribute
571 - trigger on a ro-attribute is no longer an
572 error, as it's useful to trigger off of the
576 - added same 'add_package_symbol' fix as in
580 - does_role now handles non-Moose classes
582 - added tests for this
583 - added the 'add_method_modifier' function
584 (thanks to Takatoshi Kitano)
586 * Moose::Util::TypeConstraints
587 - subtypes of parameterizable types now are
588 themselves parameterizable types
590 * Moose::Meta::Method::Constructor
591 - fixed bug where trigger was not being
592 called by the inlined immutable
594 - added test for this (thanks to Caelum)
596 * Moose::Meta::Role::Application::ToInstance
597 - now uses the metaclass of the instance
598 (if possible) to create the anon-class
599 (thanks Jonathan Rockway)
601 * Moose::Cookbook::Recipe22
602 - added the meta-attribute trait recipe
606 - fixed hash-ordering test bug that was
607 causing occasional cpantester failures
608 - renamed the t/000_recipe/*.t tests to be
609 more descriptive (thanks to Sartak)
611 0.44 Sat. May 10, 2008
613 - made make_immutable warning cluck to
614 show where the error is (thanks mst)
617 - BUILDALL and DEMOLISHALL now call
618 ->body when looping through the
619 methods, to avoid the overloaded
621 - fixed issue where DEMOLISHALL was
622 eating the $@ values, and so not
623 working correctly, it still kind of
624 eats them, but so does vanilla perl
625 - added tests for this
627 * Moose::Cookbook::Recipe7
628 - added new recipe for immutable
629 functionality (thanks Dave Rolsky)
631 * Moose::Cookbook::Recipe9
632 - added new recipe for builder and
633 lazy_build (thanks Dave Rolsky)
635 * Moose::Cookbook::Recipe11
636 - added new recipe for method aliasing
637 and exclusion with Roles (thanks Dave Rolsky)
640 - fixed Win32 test failure (thanks spicyjack)
642 ~ removed Build.PL and Module::Build compat
643 since Module::Install has done that.
645 0.43 Wed. April, 30, 2008
647 drink more coffee before
648 doing release engineering
650 - whoops, forgot to do the smolder tests,
651 and we broke some of the custom meta-attr
652 modules. This fixes that.
654 0.42 Mon. April 28, 2008
655 - some bad tests slipped by, nothing else
656 changed in this release (cpantesters++)
658 - upped the Class::MOP dependency to 0.55
659 since we have tests which need the C3
662 0.41 Mon. April 28, 2008
663 ~~ numerous documentation updates ~~
665 - Changed all usage of die to Carp::croak for better
666 error reporting (initial patch by Tod Hagan)
669 - the make_immutable keyword is now deprecated, don't
670 use it in any new code and please fix your old code
671 as well. There will be 2 releases, and then it will
677 - refactored the way inner and super work to avoid
678 any method/@ISA cache penalty (nothingmuch)
681 - fixing &new_object to make sure trigger gets the
682 coerced value (spotted by Charles Alderman on the
684 - added test for this
686 * Moose::Meta::Method::Constructor
687 - immutable classes which had non-lazy attributes were calling
688 the default generating sub twice in the constructor. (bug
689 found by Jesse Luehrs, fixed by Dave Rolsky)
690 - added tests for this (Dave Rolsky)
691 - fix typo in initialize_body method (nothingmuch)
693 * Moose::Meta::Method::Destructor
694 - fix typo in initialize_body method (nothingmuch)
696 * Moose::Meta::Method::Overriden
697 Moose::Meta::Method::Augmented
698 - moved the logic for these into their own
699 classes (nothingmuch)
701 * Moose::Meta::Attribute
702 - inherited attributes may now be extended without
703 restriction on the type ('isa', 'does') (Sartak)
704 - added tests for this (Sartak)
705 - when an attribute property is malformed (such as lazy without
706 a default), give the name of the attribute in the error
708 - added the &applied_traits and &has_applied_traits methods
709 to allow introspection of traits
710 - added tests for this
711 - moved 'trait' and 'metaclass' argument handling to here from
713 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
714 '+foo' syntax) (nothingmuch)
715 - added tests for this (t0m)
718 - localize $@ inside DEMOLISHALL to avoid it
719 eating $@ (found by Ernesto)
720 - added test for this (thanks to Ernesto)
722 * Moose::Util::TypeConstraints
723 - &find_type_constraint now DWIMs when given an
724 type constraint object or name (nothingmuch)
725 - &find_or_create_type_constraint superseded with a number of more
727 - find_or_create_{isa,does}_type_constraint
728 - find_or_parse_type_constraint
730 * Moose::Meta::TypeConstraint
731 Moose::Meta::TypeConstraint::Class
732 Moose::Meta::TypeConstraint::Role
733 Moose::Meta::TypeConstraint::Enum
734 Moose::Meta::TypeConstraint::Union
735 Moose::Meta::TypeConstraint::Parameterized
736 - added the &equals method for comparing two type
737 constraints (nothingmuch)
738 - added tests for this (nothingmuch)
740 * Moose::Meta::TypeConstraint
741 - add the &parents method, which is just an alias to &parent.
742 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
744 * Moose::Meta::TypeConstraint::Class
745 - added the class attribute for introspection purposes
747 - added tests for this
749 * Moose::Meta::TypeConstraint::Enum
750 Moose::Meta::TypeConstraint::Role
751 - broke these out into their own classes (nothingmuch)
753 * Moose::Cookbook::Recipe*
754 - fixed references to test file locations in the POD
755 and updated up some text for new Moose features
759 - Added &resolve_metaclass_alias, a helper function for finding an actual
760 class for a short name (e.g. in the traits list)
762 0.40 Fri. March 14, 2008
763 - I hate Pod::Coverage
765 0.39 Fri. March 14, 2008
767 - documenting the use of '+name' with attributes
768 that come from recently composed roles. It makes
769 sense, people are using it, and so why not just
770 officially support it.
771 - fixing the 'extends' keyword so that it will not
772 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
775 - added the perl -Moose=+Class::Name feature to allow
776 monkeypatching of classes in one liners
779 - fixing the 'apply_all_roles' keyword so that it will not
780 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
783 - added ->create method which now supports roles (thanks to jrockway)
784 - added tests for this
785 - added ->create_anon_class which now supports roles and caching of
786 the results (thanks to jrockway)
787 - added tests for this
788 - made ->does_role a little more forgiving when it is
789 checking a Class::MOP era metaclasses.
791 * Moose::Meta::Role::Application::ToInstance
792 - it is now possible to pass extra params to be used when
793 a role is applied to an the instance (rebless_params)
794 - added tests for this
796 * Moose::Util::TypeConstraints
797 - class_type now accepts an optional second argument for a
798 custom message. POD anotated accordingly (groditi)
799 - added tests for this
800 - it is now possible to make anon-enums by passing 'enum' an
801 ARRAY ref instead of the $name => @values. Everything else
803 - added tests for this
806 - making test for using '+name' on attributes consumed
807 from a role, it works and makes sense too.
809 * Moose::Meta::Attribute
810 - fix handles so that it doesn't return nothing
811 when the method cannot be found, not sure why
812 it ever did this originally, this means we now
813 have slightly better support for AUTOLOADed
815 - added more delegation tests
816 - adding ->does method to this so as to better
817 support traits and their introspection.
818 - added tests for this
821 - localizing the Data::Dumper configurations so
822 that it does not pollute others (RT #33509)
823 - made ->does a little more forgiving when it is
824 passed Class::MOP era metaclasses.
826 0.38 Fri. Feb. 15, 2008
827 * Moose::Meta::Attribute
828 - fixed initializer to correctly do
829 type checking and coercion in the
831 - added tests for this
834 - fixed some finicky tests (thanks to konobi)
836 0.37 Thurs. Feb. 14, 2008
838 - fixed some details in Moose::init_meta
839 and its superclass handling (thanks thepler)
840 - added tests for this (thanks thepler)
841 - 'has' now dies if you don't pass in name
843 - added the 'make_immutable' keyword as a shortcut
847 Moose::Meta::Method::Constructor
848 Moose::Meta::Attribute
849 - making (init_arg => undef) work here too
850 (thanks to nothingmuch)
852 * Moose::Meta::Attribute
853 Moose::Meta::Method::Constructor
854 Moose::Meta::Method::Accessor
855 - make lazy attributes respect attr initializers (rjbs)
856 - added tests for this
858 * Moose::Util::TypeConstraints
859 Moose::Util::TypeConstraints::OptimizedConstraints
860 Moose::Meta::TypeConstraints
861 Moose::Meta::Attribute
862 Moose::Meta::Method::Constructor
863 Moose::Meta::Method::Accessor
864 - making type errors use the
865 assigned message (thanks to Sartak)
866 - added tests for this
868 * Moose::Meta::Method::Destructor
869 - making sure DESTROY gets inlined properly
870 with successive DEMOLISH calls (thanks to manito)
872 * Moose::Meta::Attribute
873 Moose::Meta::Method::Accessor
874 - fixed handling of undef with type constraints
876 - added tests for this
879 - added &get_all_init_args and &get_all_attribute_values
880 (thanks to Sartak and nothingmuch)
882 0.36 Sat. Jan. 26, 2008
884 Moose::Meta::Attribute
885 - role type tests now support when roles are
886 applied to non-Moose classes (found by ash)
887 - added tests for this (thanks to ash)
888 - couple extra tests to boost code coverage
890 * Moose::Meta::Method::Constructor
891 - improved fix for handling Class::MOP attributes
892 - added test for this
895 - handled the add_attribute($attribute_meta_object)
897 - added test for this
899 0.35 Tues. Jan. 22, 2008
900 * Moose::Meta::Method::Constructor
901 - fix to make sure even Class::MOP attributes
902 are handled correctly (Thanks to Dave Rolsky)
903 - added test for this (also Dave Rolsky)
906 - improved error message on _apply_all_roles,
907 you should now use Moose::Util::apply_all_roles
908 and you shouldnt have been using a _ prefixed
909 method in the first place ;)
911 0.34 Mon. Jan. 21, 2008
912 ~~~ more misc. doc. fixes ~~~
913 ~~ updated copyright dates ~~
915 Moose is now a postmodern object system :)
916 - (see the POD for details)
918 * <<Role System Refactoring>>
919 - this release contains a major reworking and
920 cleanup of the role system
921 - 100% backwards compat.
922 - Role application now restructured into seperate
923 classes based on type of applicants
924 - Role summation (combining of more than one role)
925 is much cleaner and anon-classes are no longer
927 - new Composite role metaclass
928 - runtime application of roles to instances
929 is now more efficient and re-uses generated
930 classes when applicable
932 * <<New Role composition features>>
933 - methods can now be excluded from a given role
935 - methods can now be aliased to another name (and
936 still retain the original as well)
938 * Moose::Util::TypeConstraints::OptimizedConstraints
939 - added this module (see above)
942 - fixed the &_process_attribute method to be called
943 by &add_attribute, so that the API is now correct
945 * Moose::Meta::Method::Accessor
946 - fixed bug when passing a list of values to
947 an accessor would get (incorrectly) ignored.
948 Thanks to Sartak for finding this ;)
949 - added tests for this (Sartak again)
951 * Moose::Meta::Method::Accessor
952 Moose::Meta::Method::Constructor
953 Moose::Meta::Attribute
954 Moose::Meta::TypeConstraint
955 Moose::Meta::TypeCoercion
956 - lots of cleanup of such things as:
958 - type constraint handling
959 - error handling/messages
960 (thanks to nothingmuch)
962 * Moose::Meta::TypeConstraint::Parameterizable
963 - added this module to support the refactor
964 in Moose::Meta::TypeConstraint::Parameterized
966 * Moose::Meta::TypeConstraint::Parameterized
967 - refactored how these types are handled so they
968 are more generic and not confined to ArrayRef
972 - shortened some file names for better VMS support (RT #32381)
974 0.33 Fri. Dec. 14, 2007
975 !! Moose now loads 2 x faster !!
976 !! with new Class::MOP 0.49 !!
978 ++ new oose.pm module to make command line
979 Moose-ness easier (see POD docs for more)
983 - several tweaks to take advantage of the
984 new method map caching in Class::MOP
986 * Moose::Meta::TypeConstraint::Parameterized
987 - allow subtypes of ArrayRef and HashRef to
988 be used as a container (sartak)
989 - added tests for this
990 - basic support for coercion to ArrayRef and
991 HashRef for containers (sartak)
992 - added tests for this
994 * Moose::Meta::TypeCoercion
995 - coercions will now create subtypes as needed
996 so you can now add coercions to parameterized
997 types without having to explictly define them
998 - added tests for this
1000 * Moose::Meta::Method::Accessor
1001 - allow subclasses to decide whether we need
1002 to copy the value into a new variable (sartak)
1004 0.32 Tues. Dec. 4, 2007
1005 * Moose::Util::TypeConstraints
1006 - fixing how subtype aliases of unions work
1007 they should inherit the parent's coercion
1008 - added tests for this
1009 - you can now define multiple coercions on
1010 a single type at different times instead of
1011 having to do it all in one place
1012 - added tests for this
1014 * Moose::Meta::TypeConstraint
1015 - there is now a default constraint of sub { 1 }
1016 instead of Moose::Util::TypeConstraints setting
1019 * Moose::Meta::TypeCoercion
1020 * Moose::Meta::TypeCoercion::Union
1021 - added the &has_coercion_for_type and
1022 &add_type_coercions methods to support the
1023 new features above (although you cannot add
1024 more type coercions for Union types)
1026 0.31 Mon. Nov. 26, 2007
1027 * Moose::Meta::Attribute
1028 - made the +attr syntax handle extending types with
1029 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1030 now works if the original foo is an ArrayRef.
1031 - added tests for this.
1032 - delegation now works even if the attribute does not
1033 have a reader method using the get_read_method_ref
1034 method from Class::MOP::Attribute.
1035 - added tests for this
1036 - added docs for this
1038 * Moose::Util::TypeConstraints
1039 - passing no "additional attribute info" to
1040 &find_or_create_type_constraint will no longer
1041 attempt to create an __ANON__ type for you,
1042 instead it will just return undef.
1043 - added docs for this
1045 0.30 Fri. Nov. 23, 2007
1046 * Moose::Meta::Method::Constructor
1047 -builder related bug in inlined constructor. (groditi)
1049 * Moose::Meta::Method::Accessor
1050 - genereate unnecessary calls to predicates and refactor
1051 code generation for runtime speed (groditi)
1053 * Moose::Util::TypeConstraints
1054 - fix ClassName constraint to introspect symbol table (mst)
1055 - added more tests for this (mst)
1056 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1057 with work correctly.
1058 - added tests for this
1061 - adding the link to Recipie 11 (written by Sartak)
1062 - adding test for SYNOPSIS code
1065 - New tests for builder bug. Upon instantiation, if an
1066 attribute had a builder, no value and was not lazy the
1067 builder default was not getting run, oops. (groditi)
1069 0.29 Tues. Nov. 13, 2007
1070 * Moose::Meta::Attribute
1071 - Fix error message on missing builder method (groditi)
1073 * Moose::Meta::Method::Accessor
1074 - Fix error message on missing builder method (groditi)
1077 - Add test to check for the correct error message when
1078 builder method is missing (groditi)
1080 0.28 Tues. Nov. 13, 2007
1081 - 0.27 packaged incorrectly (groditi)
1083 0.27 Tues. Nov. 13, 2007
1084 * Moose::Meta::Attribute
1085 - Added support for the new builder option (groditi)
1086 - Added support for lazy_build option (groditi)
1087 - Changed slot initialization for predicate changes (groditi)
1089 * Moose::Meta::Method::Accessor
1090 - Added support for lazy_build option (groditi)
1091 - Fix inline methods to work with corrected predicate
1094 * Moose::Meta::Method::Constructor
1095 - Added support for lazy_build option (groditi)
1098 - tests for builder and lazy_build (groditi)
1100 * fixing some misc. bits in the docs that
1101 got mentioned on CPAN Forum & perlmonks
1104 - fixed how required methods are handled
1105 when they encounter overriden or modified
1106 methods from a class (thanks to confound).
1107 - added tests for this
1109 * Moose::Util::TypeConstraint
1110 - fixed the type notation parser so that
1111 the | always creates a union and so is
1112 no longer a valid type char (thanks to
1113 konobi, mugwump and #moose for working
1115 - added more tests for this
1117 0.26 Thurs. Sept. 27, 2007
1120 * Parameterized Types
1121 We now support parameterized collection types, such as:
1122 ArrayRef[Int] # array or integers
1123 HashRef[Object] # a hash with object values
1124 They can also be nested:
1125 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1126 And work with the type unions as well:
1127 ArrayRef[Int | Str] # array of integers of strings
1129 * Better Framework Extendability
1130 Moose.pm is now "extendable" such that it is now much
1131 easier to extend the framework and add your own keywords
1132 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1133 section of the Moose.pm docs.
1136 In an effort to begin documenting some of the various
1137 details of Moose as well as some common idioms, we have
1138 created Moose::Cookbook::Snacks as a place to find
1139 small (easily digestable) nuggets of Moose code.
1142 ~ Several doc updates/cleanup thanks to castaway ~
1144 - converted build system to use Module::Install instead of
1145 Module::Build (thanks to jrockway)
1148 - added all the meta classes to the immutable list and
1149 set it to inline the accessors
1150 - fix import to allow Sub::Exporter like { into => }
1151 and { into_level => } (perigrin)
1152 - exposed and documented init_meta() to allow better
1153 embedding and extending of Moose (perigrin)
1156 - complete re-organization of the test suite
1157 - added some new tests as well
1158 - finally re-enabled the Moose::POOP test since
1159 the new version of DBM::Deep now works again
1162 * Moose::Meta::Class
1163 - fixed very odd and very nasty recursion bug with
1165 - added tests for this (eilara)
1167 * Moose::Meta::Attribute
1168 Moose::Meta::Method::Constructor
1169 Moose::Meta::Method::Accessor
1170 - fixed issue with overload::Overloaded getting called
1171 on non-blessed items. (RT #29269)
1172 - added tests for this
1174 * Moose::Meta::Method::Accessor
1175 - fixed issue with generated accessor code making
1176 assumptions about hash based classes (thanks to dexter)
1178 * Moose::Coookbook::Snacks
1179 - these are bits of documentation, not quite as big as
1180 Recipes but which have no clear place in the module docs.
1181 So they are Snacks! (horray for castaway++)
1183 * Moose::Cookbook::Recipe4
1184 - updated it to use the new ArrayRef[MyType] construct
1185 - updated the accompanying test as well
1187 +++ Major Refactor of the Type Constraint system +++
1188 +++ with new features added as well +++
1190 * Moose::Util::TypeConstraint
1191 - no longer uses package variable to keep track of
1192 the type constraints, now uses the an instance of
1193 Moose::Meta::TypeConstraint::Registry to do it
1194 - added more sophisticated type notation parsing
1196 - added tests for this
1198 * Moose::Meta::TypeConstraint
1199 - some minor adjustments to make subclassing easier
1200 - added the package_defined_in attribute so that we
1201 can track where the type constraints are created
1203 * Moose::Meta::TypeConstraint::Union
1204 - this is now been refactored to be a subclass of
1205 Moose::Meta::TypeConstraint
1207 * Moose::Meta::TypeCoercion::Union
1208 - this has been added to service the newly refactored
1209 Moose::Meta::TypeConstraint::Union and is itself
1210 a subclass of Moose::Meta::TypeCoercion
1212 * Moose::Meta::TypeConstraint::Parameterized
1213 - added this module (taken from MooseX::AttributeHelpers)
1214 to help construct nested collection types
1215 - added tests for this
1217 * Moose::Meta::TypeConstraint::Registry
1218 - added this class to keep track of type constraints
1220 0.25 Mon. Aug. 13, 2007
1222 - Documentation update to reference Moose::Util::TypeConstraints
1223 under 'isa' in 'has' for how to define a new type
1224 (thanks to shlomif).
1226 * Moose::Meta::Attribute
1227 - required attributes now will no longer accept undef
1228 from the constructor, even if there is a default and lazy
1229 - added tests for this
1230 - default subroutines must return a value which passes the
1232 - added tests for this
1234 * Moose::Meta::Attribute
1235 * Moose::Meta::Method::Constructor
1236 * Moose::Meta::Method::Accessor
1237 - type-constraint tests now handle overloaded objects correctly
1238 in the error message
1239 - added tests for this (thanks to EvanCarroll)
1241 * Moose::Meta::TypeConstraint::Union
1242 - added (has_)hand_optimized_constraint to this class so that
1243 it behaves as the regular Moose::Meta::TypeConstraint does.
1246 - large refactoring of this code
1247 - added several more tests
1248 - tests for subtle conflict resolition issues
1249 added, but not currently running
1252 * Moose::Cookbook::Recipe7
1253 - added new recipe for augment/inner functionality
1255 - added test for this
1258 - a formal definition of roles (still in progress)
1261 - utilities for easier working with Moose classes
1262 - added tests for these
1265 - This contains Moose specific test functions
1266 - added tests for these
1268 0.24 Tues. July 3, 2007
1269 ~ Some doc updates/cleanup ~
1271 * Moose::Meta::Attribute
1272 - added support for roles to be given as parameters
1273 to the 'handles' option.
1274 - added tests and docs for this
1275 - the has '+foo' attribute form now accepts changes to
1276 the lazy option, and the addition of a handles option
1277 (but not changing the handles option)
1278 - added tests and docs for this
1281 - required methods are now fetched using find_method_by_name
1282 so that required methods can come from superclasses
1283 - adjusted tests for this
1285 0.23 Mon. June 18, 2007
1286 * Moose::Meta::Method::Constructor
1287 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1288 * Moose::Meta::Class
1289 - Modify make_immutable to work with the new Class::MOP immutable
1290 mechanism + POD + very basic test (groditi)
1291 * Moose::Meta::Attribute
1292 - Fix handles to use goto() so that caller() comes out properly on
1293 the other side (perigrin)
1295 0.22 Thurs. May 31, 2007
1296 * Moose::Util::TypeConstraints
1297 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1298 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1299 prototypes for functions
1300 - added the ClassName type constraint, this checks for strings
1301 which will respond true to ->isa(UNIVERSAL).
1302 - added tests and docs for this
1303 - subtyping just in name now works correctly by making the
1304 default for where be { 1 }
1305 - added test for this
1307 * Moose::Meta::Method::Accessor
1308 - coerce and lazy now work together correctly, thanks to
1309 merlyn for finding this bug
1310 - tests added for this
1311 - fix reader presedence bug in Moose::Meta::Attribute + tests
1314 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1315 a HASH-ref and missed. This produces better error messages then
1316 having it die cause undef is not a HASH.
1317 - added tests for this
1319 0.21 Thursday, May 2nd, 2007
1321 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1322 - modified unimport to remove super and inner along with the rest
1323 - altered unimport tests to handle this
1326 - altered super export to populate SUPER_SLOT
1328 * Moose::Meta::Class
1329 - altered augment and override modifier application to use *_SLOT
1330 - modified tests for these to unimport one test class each to test
1333 - fixed issue where custom attribute metaclasses
1334 where not handled correctly in roles
1335 - added tests for this
1337 * Moose::Meta::Class
1338 - fixed issue where extending metaclasses with
1339 roles would blow up. Thanks to Aankhen`` for
1340 finding this insidious error, and it's solution.
1342 ~~ lots of spelling and grammer fixes in the docs,
1343 many many thanks to rlb3 and Aankhen for these :)
1345 0.20 Friday, April 6th, 2007
1346 >> I messed up the SKIP logic in one test
1347 so this release is just to fix that.
1350 - 'has' now also accepts an ARRAY ref
1351 to create multiple attrs (see docs)
1352 (thanks to konobi for this)
1353 - added tests and docs
1355 0.19 Thurs. April 5th, 2007
1356 ~~ More documentation updates ~~
1358 * Moose::Util::TypeConstraints
1359 - 'type' now supports messages as well
1360 thanks to phaylon for finding this
1361 - added tests for this
1362 - added &list_all_type_constraints and
1363 &list_all_builtin_type_constraints
1364 functions to facilitate introspection.
1366 * Moose::Meta::Attribute
1367 - fixed regexp 'handles' declarations
1368 to build the list of delegated methods
1369 correctly (and not override important
1370 things like &new) thanks to ashleyb
1372 - added tests and docs for this
1373 - added the 'documentation' attributes
1374 so that you can actually document your
1375 attributes and inspect them through the
1377 - added tests and docs for this
1379 * Moose::Meta::Class
1380 - when loading custom attribute metaclasses
1381 it will first look in for the class in the
1382 Moose::Meta::Attribute::Custom::$name, and
1383 then default to just loading $name.
1384 - added tests and docs for this
1386 * Moose::Meta::TypeConstraint
1387 - type constraints now stringify to their names.
1388 - added test for this
1391 - added tests to assure we work with Module::Refresh
1392 - added stricter test skip logic in the Moose POOP
1393 test, ask Rob Kinyon why.
1394 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1396 0.18 Sat. March 10, 2007
1397 ~~ Many, many documentation updates ~~
1400 - We now use Class::MOP::load_class to
1402 - added tests to show types and subtypes
1403 working with Declare::Constraints::Simple
1404 and Test::Deep as constraint engines.
1407 !! You must have Class::MOP 0.37_001 !!
1408 !! for this developer release to work !!
1410 This release was primarily adding the immutable
1411 feature to Moose. An immutable class is one which
1412 you promise not to alter. When you set the class
1413 as immutable it will perform various bits of
1414 memoization and inline certain part of the code
1415 (constructors, destructors and accessors). This
1416 minimizes (and in some cases totally eliminates)
1417 one of Moose's biggest performance hits. This
1418 feature is not on by default, and is 100% optional.
1419 It has several configurable bits as well, so you
1420 can pick and choose to your specific needs.
1422 The changes involved in this were fairly wide and
1423 highly specific, but 100% backwards compatible, so
1424 I am not going to enumerate them here. If you are
1425 truely interested in what was changed, please do
1428 0.17 Tues. Nov. 14, 2006
1429 * Moose::Meta::Method::Accessor
1430 - bugfix for read-only accessors which
1431 are have a type constraint and lazy.
1432 Thanks to chansen for finding it.
1434 0.16 Tues. Nov. 14, 2006
1436 There are some speed improvements in this release,
1437 but they are only the begining, so stay tuned.
1440 - BUILDALL and DEMOLISHALL no longer get
1441 called unless they actually need to be.
1442 This gave us a signifigant speed boost
1443 for the cases when there is no BUILD or
1444 DEMOLISH method present.
1446 * Moose::Util::TypeConstraints
1447 * Moose::Meta::TypeConstraint
1448 - added an 'optimize_as' option to the
1449 type constraint, which allows for a
1450 hand optimized version of the type
1451 constraint to be used when possible.
1452 - Any internally created type constraints
1453 now provide an optimized version as well.
1455 0.15 Sun. Nov. 5, 2006
1457 This version of Moose *must* have Class::MOP 0.36 in order
1458 to work correctly. A number of small internal tweaks have
1459 been made in order to be compatible with that release.
1461 * Moose::Util::TypeConstraints
1462 - added &unimport so that you can clean out
1463 your class namespace of these exported
1466 * Moose::Meta::Class
1467 - fixed minor issue which occasionally
1468 comes up during global destruction
1470 - moved Moose::Meta::Method::Overriden into
1474 - moved Moose::Meta::Role::Method into
1477 * Moose::Meta::Attribute
1478 - changed how we do type checks so that
1479 we reduce the overall cost, but still
1482 - moved accessor generation methods to
1483 Moose::Meta::Method::Accessor to
1484 conform to the API changes from
1487 * Moose::Meta::TypeConstraint
1488 - changed how constraints are compiled
1489 so that we do less recursion and more
1490 iteration. This makes the type check
1492 - moved Moose::Meta::TypeConstraint::Union
1495 * Moose::Meta::Method::Accessor
1496 - created this from methods formerly found in
1497 Moose::Meta::Attribute
1499 * Moose::Meta::Role::Method
1500 - moved this from Moose::Meta::Role
1502 * Moose::Meta::Method::Overriden
1503 - moved this from Moose::Meta::Class
1505 * Moose::Meta::TypeConstraint::Union
1506 - moved this from Moose::Meta::TypeConstraint
1508 0.14 Mon. Oct. 9, 2006
1510 * Moose::Meta::Attribute
1511 - fixed lazy attributes which were not getting
1512 checked with the type constraint (thanks ashley)
1513 - added tests for this
1514 - removed the over-enthusiastic DWIMery of the
1515 automatic ArrayRef and HashRef defaults, it
1516 broke predicates in an ugly way.
1517 - removed tests for this
1519 0.13 Sat. Sept. 30, 2006
1521 This version of Moose *must* have Class::MOP 0.35 in order
1522 to work correctly. A number of small internal tweaks have
1523 been made in order to be compatible with that release.
1526 - Removed the use of UNIVERSAL::require to be a better
1527 symbol table citizen and remove a dependency
1528 (thanks Adam Kennedy)
1530 **~~ removed experimental & undocumented feature ~~**
1531 - commented out the 'method' and 'self' keywords, see the
1532 comments for more info.
1535 - added a FAQ and WTF files to document frequently
1536 asked questions and common problems
1538 * Moose::Util::TypeConstraints
1539 - added GlobRef and FileHandle type constraint
1540 - added tests for this
1542 * Moose::Meta::Attribute
1543 - if your attribute 'isa' ArrayRef of HashRef, and you have
1544 not explicitly set a default, then make the default DWIM.
1545 This will also work for subtypes of ArrayRef and HashRef
1547 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1548 - new test added for this (thanks to ashley)
1551 - added basic support for runtime role composition
1552 but this is still *highly experimental*, so feedback
1553 is much appreciated :)
1554 - added tests for this
1556 * Moose::Meta::TypeConstraint
1557 - the type constraint now handles the coercion process
1558 through delegation, this is to support the coercion
1561 * Moose::Meta::TypeConstraint::Union
1562 - it is now possible for coercions to be performed
1564 - added tests for this (thanks to konobi)
1566 * Moose::Meta::TypeCoercion
1567 - properly capturing error when type constraint
1571 - Scalar::Util 1.18 is bad on Win32, so temporarily
1572 only require version 1.17 for Win32 and cygwin.
1573 (thanks Adam Kennedy)
1575 0.12 Sat. Sept. 1, 2006
1577 - Recipe5 (subtypes & coercion) has been written
1580 - fixed "bad meta" error message to be more descriptive
1581 - fixed &unimport to not remove the &inner and &super
1582 keywords because we need to localize them.
1583 - fixed number of spelling/grammer issues, thanks Theory :)
1585 **~~ experimental & undocumented feature ~~**
1586 - added the method and self keywords, they are basically
1587 just sugar, and they may not stay around.
1590 - added &dump method to easily Data::Dumper
1593 * Moose::Meta::TypeConstraint
1594 - added the &is_a_type_of method to check both the current
1595 and the subtype of a method (similar to &isa with classes)
1598 - this is now a subclass of Class::MOP::Module, and no longer
1599 creates the _role_meta ugliness of before.
1600 - fixed tests to reflect this change
1602 0.11 Wed. July 12, 2006
1604 - added an &unimport method to remove all the keywords
1605 that Moose will import, simply add 'no Moose' to the
1606 bottom of your class file.
1609 - fixed some test failures caused by a forgotten test
1612 0.10 Thurs. July 6, 2006
1614 - improved error message when loading modules so
1615 it is less confusing when you load a role.
1616 - added &calculate_all_roles method to
1617 Moose::Meta::Class and Moose::Meta::Role
1620 This module has been tested against Class::MOP 0.30
1621 but it does not yet utilize the optimizations
1622 it makes available. Stay tuned for that ;)
1624 0.09_03 Fri. June 23, 2006
1625 ++ DEVELOPER RELEASE ++
1627 - 'use strict' and 'use warnings' are no longer
1628 needed in Moose classes, Moose itself will
1629 turn them on for you.
1630 - added tests for this
1631 - moved code from exported subs to private methods
1632 in Moose::Meta::Class
1635 - as with Moose, strict and warnings are
1636 automatically turned on for you.
1637 - added tests for this
1640 - now handles an edge case for override errors
1641 - added tests for this
1642 - added some more edge case tests
1644 0.09_02 Tues. May 16, 2006
1645 ++ DEVELOPER RELEASE ++
1647 - added prototypes to the exported subs
1651 - added prototypes to the exported subs
1654 * Moose::Util::TypeConstraints
1655 - cleaned up prototypes for the subs
1658 0.09_01 Fri. May 12, 2006
1659 ++ DEVELOPER RELEASE ++
1660 - This release works in combination with
1661 Class::MOP 0.29_01, it is a developer
1662 release because it uses the a new
1663 instance sub-protocol and a fairly
1664 complete Role implementation. It has
1665 not yet been optimized, so it slower
1666 the the previous CPAN version. This
1667 release also lacks good updated docs,
1668 the official release will have updated docs.
1671 - refactored the keyword exports
1672 - 'with' now checks Role validaity and
1673 accepts more than one Role at a time
1674 - 'extends' makes metaclass adjustments as
1675 needed to ensure metaclass compatibility
1678 - refactored the keyword exports
1679 - 'with' now checks Role validaity and
1680 accepts more than one Role at a time
1682 * Moose::Util::TypeConstraints
1683 - added the 'enum' keyword for simple
1684 string enumerations which can be used as
1686 - see example of usage in t/202_example.t
1689 - more careful checking of params to new()
1692 - much work done on the role composition
1693 - many new tests for conflict detection
1694 and composition edge cases
1695 - not enough documentation, I suggest
1696 looking at the tests
1698 * Moose::Meta::Instance
1699 - added new Instance metaclass to support
1700 the new Class::MOP instance protocol
1702 * Moose::Meta::Class
1703 - some small changes to support the new
1705 - some small additions to support Roles
1707 * Moose::Meta::Attribute
1708 - some improvements to the accessor generation code
1710 - some small changes to support the new
1712 - (still somewhat) experimental delegation support
1713 with the 'handles' option
1714 - added several tests for this
1715 - no docs for this yet
1717 0.05 Thurs. April 27, 2006
1719 - keywords are now exported with Sub::Exporter
1720 thanks to chansen for this commit
1721 - has keyword now takes a 'metaclass' option
1722 to support custom attribute meta-classes
1723 on a per-attribute basis
1724 - added tests for this
1725 - the 'has' keyword not accepts inherited slot
1726 specifications (has '+foo'). This is still an
1727 experimental feature and probably not finished
1728 see t/038_attribute_inherited_slot_specs.t for
1729 more details, or ask about it on #moose
1730 - added tests for this
1733 - keywords are now exported with Sub::Exporter
1735 * Moose::Utils::TypeConstraints
1736 - reorganized the type constraint hierarchy, thanks
1737 to nothingmuch and chansen for his help and advice
1739 - added some tests for this
1740 - keywords are now exported with Sub::Exporter
1741 thanks to chansen for this commit
1743 * Moose::Meta::Class
1744 - due to changes in Class::MOP, we had to change
1745 construct_instance (for the better)
1747 * Moose::Meta::Attribute
1748 - due to changes in Class::MOP, we had to add the
1749 initialize_instance_slot method (it's a good thing)
1751 * Moose::Meta::TypeConstraint
1752 - added type constraint unions
1753 - added tests for this
1754 - added the is_subtype_of predicate method
1755 - added tests for this
1757 0.04 Sun. April 16th, 2006
1759 - Roles can now consume other roles
1760 - added tests for this
1761 - Roles can specify required methods now with
1762 the requires() keyword
1763 - added tests for this
1766 - ripped out much of it's guts ,.. much cleaner now
1767 - added required methods and correct handling of
1768 them in apply() for both classes and roles
1769 - added tests for this
1770 - no longer adds a does() method to consuming classes
1771 it relys on the one in Moose::Object
1772 - added roles attribute and some methods to support
1773 roles consuming roles
1775 * Moose::Meta::Attribute
1776 - added support for triggers on attributes
1777 - added tests for this
1778 - added support for does option on an attribute
1779 - added tests for this
1781 * Moose::Meta::Class
1782 - added support for attribute triggers in the
1784 - added tests for this
1787 - Moose no longer creates a subtype for your class
1788 if a subtype of the same name already exists, this
1789 should DWIM in 99.9999% of all cases
1791 * Moose::Util::TypeConstraints
1792 - fixed bug where incorrect subtype conflicts were
1794 - added test for this
1797 - this class can now be extended with 'use base' if
1798 you need it, it properly loads the metaclass class now
1799 - added test for this
1801 0.03_02 Wed. April 12, 2006
1803 - you must now explictly use Moose::Util::TypeConstraints
1804 it no longer gets exported for you automatically
1807 - new() now accepts hash-refs as well as key/value lists
1808 - added does() method to check for Roles
1809 - added tests for this
1811 * Moose::Meta::Class
1812 - added roles attribute along with the add_role() and
1814 - added tests for this
1817 - now adds a does() method to consuming classes
1818 which tests the class's hierarchy for roles
1819 - added tests for this
1821 0.03_01 Mon. April 10, 2006
1823 - added new Role recipe (no content yet, only code)
1826 - added 'with' keyword for Role support
1827 - added test and docs for this
1828 - fixed subtype quoting bug
1829 - added test for this
1833 - added test and docs
1835 * Moose::Util::TypeConstraints
1836 - added the message keyword to add custom
1837 error messages to type constraints
1840 - the meta role to support Moose::Role
1841 - added tests and docs
1843 * Moose::Meta::Class
1844 - moved a number of things from Moose.pm
1845 to here, they should have been here
1848 * Moose::Meta::Attribute
1849 - moved the attribute option macros here
1850 instead of putting them in Moose.pm
1852 * Moose::Meta::TypeConstraint
1853 - added the message attributes and the
1855 - added tests and docs for this
1857 0.03 Thurs. March 30, 2006
1859 - added the Moose::Cookbook with 5 recipes,
1860 describing all the stuff Moose can do.
1863 - fixed an issue with &extends super class loading
1864 it now captures errors and deals with inline
1865 packages correctly (bug found by mst, solution
1867 - added super/override & inner/augment features
1868 - added tests and docs for these
1871 - BUILDALL now takes a reference of the %params
1872 that are passed to &new, and passes that to
1875 * Moose::Util::TypeConstraints
1876 - Type constraints now survive runtime reloading
1877 - added test for this
1879 * Moose::Meta::Class
1880 - fixed the way attribute defaults are handled
1881 during instance construction (bug found by chansen)
1883 * Moose::Meta::Attribute
1884 - read-only attributes now actually enforce their
1885 read-only-ness (this corrected in Class::MOP as
1888 0.02 Tues. March 21, 2006
1890 - many more tests, fixing some bugs and
1892 - &extends now loads the base module with
1894 - added UNIVERSAL::require to the
1897 - each new Moose class will also create
1898 and register a subtype of Object which
1899 correspond to the new Moose class.
1900 - the 'isa' option in &has now only
1901 accepts strings, and will DWIM in
1904 * Moose::Util::TypeConstraints
1905 - added type coercion features
1906 - added tests for this
1907 - added support for this in attributes
1908 and instance construction
1910 - type construction no longer creates a
1911 function, it registers the type instead.
1912 - added several functions to get the
1916 - BUILDALL and DEMOLISHALL were broken
1917 because of a mis-named hash key, Whoops :)
1919 * Moose::Meta::Attribute
1920 - adding support for coercion in the
1921 autogenerated accessors
1923 * Moose::Meta::Class
1924 - adding support for coercion in the
1925 instance construction
1927 * Moose::Meta::TypeConstraint
1928 * Moose::Meta::TypeCoercion
1929 - type constraints and coercions are now
1930 full fledges meta-objects
1932 0.01 Wed. March 15, 2006
1933 - Moooooooooooooooooose!!!