1 Revision history for Perl extension Moose
3 0.63 Mon, December 8, 2008
5 - Some small grammar tweaks and bug fixes in non-Moose example
8 0.62_02 Fri, December 5, 2008
9 * Moose::Meta::Role::Application::ToClass
10 - When a class does not provide all of a role's required
11 methods, the error thrown now mentions all of the missing
12 methods, as opposed to just the first one found. Requested by
13 Michael Schwern (RT #41119). (Dave Rolsky)
15 * Moose::Meta::Method::Constructor
16 - Moose will no longer inline a constructor for your class
17 unless it inherits its constructor from Moose::Object, and
18 will warn when it doesn't inline. If you want to force
19 inlining anyway, pass "replace_constructor => 1" to
20 make_immutable. Addresses RT #40968, reported by Jon
22 - The quoting of default values could be broken if the default
23 contained a single quote ('). Now we use quotemeta to escape
24 anything potentially dangerous in the defaults. (Dave Rolsky)
26 0.62_01 Wed, December 3, 2008
28 - use the method->execute API for BUILDALL
29 and DEMOLISHALL (Sartak)
31 * Moose::Util::TypeConstraints
32 - We now make all the type constraint meta classes immutable
33 before creating the default types provided by Moose. This
34 should make loading Moose a little faster. (Dave Rolsky)
36 0.62 Wed November 26, 2008
37 * Moose::Meta::Role::Application::ToClass
38 Moose::Meta::Role::Application::ToRole
39 - fixed issues where excluding and aliasing the
40 same methods for a single role did not work
41 right (worked just fine with multiple
43 - added test for this (stevan)
45 * Moose::Meta::Role::Application::RoleSummation
46 - fixed the error message when trying to compose
47 a role with a role it excludes (Sartak)
50 - Catch another case where recursion caused the value
51 of $CALLER to be stamped on (t0m)
52 - added test for this (t0m)
55 - Remove the make_immutable keyword, which has been
56 deprecated since April. It breaks metaclasses that
57 use Moose without no Moose (Sartak)
59 * Moose::Meta::Attribute
60 - Removing an attribute from a class now also removes delegation
61 (handles) methods installed for that attribute (t0m)
62 - added test for this (t0m)
64 * Moose::Meta::Method::Constructor
65 - An attribute with a default that looked like a number (but was
66 really a string) would accidentally be treated as a number
67 when the constructor was made immutable (perigrin)
68 - added test for this (perigrin)
71 - create method for constructing a role
73 - added test for this (Sartak)
74 - anonymous roles! (Sartak)
75 - added test for this (Sartak)
78 - more consistent error messages (Sartak)
80 * Moose::Cookbook::Roles::Recipe1
81 - attempt to explain why a role that just requires
82 methods is useful (Sartak)
84 0.61 Fri November 7, 2008
85 * Moose::Meta::Attribute
86 - When passing a role to handles, it will be loaded if necessary
90 - Method objects returned by get_method (and other methods)
91 Could end up being returned without an associated_metaclass
92 attribute. Removing get_method_map, which is provided by
93 Class::MOP::Class, fixed this. The Moose version did nothing
94 different from its parent except introduce a bug. (Dave Rolsky)
95 - added tests for this (jdv79)
98 - Added a $VERSION to all .pm files which didn't have one. Fixes
99 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
101 * Moose::Cookbook::Basics::Recipe4
102 * Moose::Cookbook::Basics::Recipe6
103 - These files had spaces on the first line of the SYNOPSIS, as
104 opposed to a totally empty line. According to RT #40432, this
105 confuses POD parsers. (Dave Rolsky)
107 0.60 Fri October 24, 2008
109 - Passing "-traits" when loading Moose caused the Moose.pm
110 exports to be broken. Reported by t0m. (Dave Rolsky)
111 - Tests for this bug. (t0m)
114 - Change resolve_metaclass alias to use the new
115 load_first_existing_class function. This makes it a lot
116 simpler, and also around 5 times faster. (t0m)
117 - Add caching to resolve_metaclass_alias, which gives an order
118 of magnitude speedup to things which repeatedly call the
119 Moose::Meta::Attribute->does method, notably MooseX::Storage
122 * Moose::Util::TypeConstraint
123 - Put back the changes for parameterized constraints that
124 shouldn't have been removed in 0.59. We still cannot parse
125 them, but MooseX modules can create them in some other
126 way. See the 0.58 changes for more details. (jnapiorkowski)
127 - Changed the way subtypes are created so that the job is
128 delegated to a type constraint parent. This clears up some
129 hardcoded checking and should allow correct subtypes of
130 Moose::Meta::Type::Constraint. Don't rely on this new API too
131 much (create_child_type) because it may go away in the
132 future. (jnapiorkowski)
134 * Moose::Meta::TypeConstraint::Union
135 - Type constraint names are sorted as strings, not numbers.
138 * Moose::Meta::TypeConstraint::Parameterizable
139 - New parameterize method. This can be used as a factory method
140 to make a new type constraint with a given parameterized
141 type. (jnapiorkowski)
142 - added tests (jnapiorkowski)
144 0.59 Tue October 14, 2008
146 - Add abridged documentation for builder/default/initializer/
147 predicate, and link to more details sections in
148 Class::MOP::Attribute. (t0m)
150 * Moose::Util::TypeConstraints
151 - removed prototypes from all but the &-based stuff (mst)
153 * Moose::Util::TypeConstraints
154 - Creating a anonymous subtype with both a constraint and a
155 message failed with a very unhelpful error, but should just
156 work. Reported by t0m. (Dave Rolsky)
159 - Some tests that used Test::Warn if it was available failed
160 with older versions of Test::Warn. Reported by Fayland. (Dave
162 - Test firing behavior of triggers in relation to builder/default/
164 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
165 kinds of supported type. (t0m)
168 - In create(), do not pass "roles" option to the superclass
169 - added related test that creates an anon metaclass with
172 * Moose::Meta::TypeConstraint::Class
173 * Moose::Meta::TypeConstraint::Role
174 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
175 other types (as per change in 0.55_02). (t0m)
177 * Moose::Meta::TypeConstraint::Registry
178 - Fix warning when dealing with unknown type names (t0m)
180 * Moose::Util::TypeConstraints
181 - Reverted changes from 0.58 related to handle parameterized
182 types. This caused random failures on BSD and Win32 systems,
183 apparently related to the regex engine. This means that Moose
184 can no longer parse structured type constraints like
185 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
186 supported in a slightly different way via MooseX::Types some
187 time in the future. (Dave Rolsky)
189 0.58 Sat September 20, 2008
190 !! This release has an incompatible change regarding !!
191 !! how roles add methods to a class !!
193 * Roles and role application
194 ! Roles now add methods by calling add_method, not
195 alias_method. They make sure to always provide a method
196 object, which will be cloned internally. This means that it is
197 now possible to track the source of a method provided by a
198 role, and even follow its history through intermediate roles.
200 This means that methods added by a role now show up when
201 looking at a class's method list/map. (Dave Rolsky)
204 - From this release on, we'll try to maintain a list of
205 conflicting modules, and warn you if you have one
206 installed. For example, this release conflicts with ...
207 - MooseX::Singleton <= 0.11
208 - MooseX::Params::Validate <= 0.05
211 In general, we try to not break backwards compatibility for
212 most Moose users, but MooseX modules and other code which
213 extends Moose's metaclasses is often affected by very small
214 changes in the Moose internals.
216 * Moose::Meta::Method::Delegation
217 * Moose::Meta::Attribute
218 - Delegation methods now have their own method class. (Dave
221 * Moose::Meta::TypeConstraint::Parameterizable
222 - Added a new method 'parameterize' which is basically a factory
223 for the containing constraint. This makes it easier to create
224 new types of parameterized constraints. (jnapiorkowski)
226 * Moose::Meta::TypeConstraint::Union
227 - Changed the way Union types canonicalize their names to follow
228 the normalized TC naming rules, which means we strip all
229 whitespace. (jnapiorkowski)
231 * Moose::Util::TypeConstraints
232 - Parameter and Union args are now sorted, this makes Int|Str
233 the same constraint as Str|Int. (jnapiorkowski)
234 - Changes to the way Union types are parsed to more correctly
235 stringify their names. (jnapiorkowski)
236 - When creating a parameterized type, we now use the new
237 parameterize method. (jnapiorkowski)
238 - Incoming type constraint strings are now normalized to remove
239 all whitespace differences. (jnapiorkowski)
240 - Changed the way we parse type constraint strings so that we now
241 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
242 constraints. This lays the foundation for more flexible type
243 constraint implementations.
245 * Tests and docs for all the above. (jnapiorkowski)
249 - Moose::Exporter will no longer remove a subroutine that the
250 exporting package re-exports. Moose re-exports the
251 Carp::confess function, among others. The reasoning is that we
252 cannot know whether you have also explicitly imported those
253 functions for your own use, so we err on the safe side and
254 always keep them. (Dave Rolsky)
255 - added tests for this (rafl)
258 - Changes to how we fix metaclass compatibility that are much
259 too complicated to go into. The summary is that Moose is much
260 less likely to complain about metaclass incompatibility
261 now. In particular, if two metaclasses differ because
262 Moose::Util::MetaRole was used on the two corresponding
263 classes, then the difference in roles is reconciled for the
264 subclass's metaclass. (Dave Rolsky)
265 - Squashed an warning in _process_attribute (thepler)
268 - throw exceptions (sooner) for invalid attribute names (thepler)
269 - added tests for this (thepler)
271 * Moose::Util::MetaRole
272 - If you explicitly set a constructor or destructor class for a
273 metaclass object, and then applied roles to the metaclass,
274 that explicitly set class would be lost and replaced with the
278 * Moose::Meta::Attribute
279 * Moose::Meta::Method
282 * Moose::Error::Default
283 * Moose::Error::Croak
284 * Moose::Error::Confess
285 - All instances of confess() changed to use overridable
286 C<throw_error> method. This method ultimately calls a class
287 constructor, and you can change the class being called. In
288 addition, errors now pass more information than just a string.
289 The default C<error_class> behaves like C<Carp::confess>, so
290 the behavior is not visibly different for end users.
292 0.57 Wed September 3, 2008
294 - A new bit of doc intended to introduce folks familiar with
295 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
298 - Shows examples of two classes, each done first with and then
299 without Moose. This makes a nice parallel to
300 Moose::Intro. (Dave Rolsky)
302 * Moose::Util::TypeConstraints
303 - Fixed a bug in find_or_parse_type_constraint so that it
304 accepts a Moose::Meta::TypeConstraint object as the parent
305 type, not just a name (jnapiorkowski)
306 - added tests (jnapiorkowski)
309 - If Sub::Name was not present, unimporting failed to actually
310 remove some sugar subs, causing test failures (Dave Rolsky)
312 0.56 Mon September 1, 2008
313 For those not following the series of dev releases, there are
314 several major changes in this release of Moose.
315 ! Moose::init_meta should now be called as a method. See the
318 - Major performance improvements by nothingmuch.
320 - New modules for extension writers, Moose::Exporter and
321 Moose::Util::MetaRole by Dave Rolsky.
323 - Lots of doc improvements and additions, especially in the
328 * Removed all references to the experimental-but-no-longer-needed
329 Moose::Meta::Role::Application::ToMetaclassInstance.
331 * Require Class::MOP 0.65.
333 0.55_04 Sat August 30, 2008
334 * Moose::Util::MetaRole
335 * Moose::Cookbook::Extending::Recipe2
336 - This simplifies the application of roles to any meta class, as
337 well as the base object class. Reimplemented metaclass traits
338 using this module. (Dave Rolsky)
340 * Moose::Cookbook::Extending::Recipe1
341 - This a new recipe, an overview of various ways to write Moose
342 extensions (Dave Rolsky)
344 * Moose::Cookbook::Extending::Recipe3
345 * Moose::Cookbook::Extending::Recipe4
346 - These used to be Extending::Recipe1 and Extending::Recipe2,
349 0.55_03 Fri August 29, 2008
350 * No changes from 0.55_02 except increasing the Class::MOP
351 dependency to 0.64_07.
353 0.55_02 Fri August 29, 2008
354 * Makefile.PL and Moose.pm
355 - explicitly require Perl 5.8.0+ (Dave Rolsky)
357 * Moose::Util::TypeConstraints
358 - Fix warnings from find_type_constraint if the type is not
361 * Moose::Meta::TypeConstraint
362 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
363 return false if the type you specify cannot be found in the
364 type registry, rather than throwing an unhelpful and
365 coincidental exception. (t0m).
366 - added docs & test for this (t0m)
368 * Moose::Meta::TypeConstraint::Registry
369 - add_type_constraint now throws an exception if a parameter is
371 - added docs & test for this (t0m)
373 * Moose::Cookbook::FAQ
374 - Added a faq entry on the difference between "role" and "trait"
378 - Fixed a bug that caused role composition to not see a required
379 method when that method was provided by another role being
380 composed at the same time. (Dave Rolsky)
381 - test and bug finding (tokuhirom)
383 0.55_01 Wed August 20, 2008
385 !! Calling Moose::init_meta as a function is now !!
386 !! deprecated. Please see the Moose.pm docs for details. !!
388 * Moose::Meta::Method::Constructor
389 - Fix inlined constructor so that values produced by default
390 or builder methods are coerced as required. (t0m)
391 - added test for this (t0m)
393 * Moose::Meta::Attribute
394 - A lazy attribute with a default or builder did not attempt to
395 coerce the default value. The immutable code _did_
397 - added test for this (t0m)
400 - This is a new helper module for writing "Moose-alike"
401 modules. This should make the lives of MooseX module authors
402 much easier. (Dave Rolsky)
405 * Moose::Cookbook::Meta::Recipe5
406 - Implemented metaclass traits (and wrote a recipe for it):
408 use Moose -traits => 'Foo'
410 This should make writing small Moose extensions a little
413 * Moose::Cookbook::Basics::Recipe1
414 - Removed any examples of direct hashref access, and applied an
415 editorial axe to reduce verbosity. (Dave Rolsky)
417 * Moose::Cookbook::Basics::Recipe1
418 - Also applied an editorial axe here. (Dave Rolsky)
421 * Moose::Cookbook::Extending::Recipe1
422 * Moose::Cookbook::Extending::Recipe2
423 - Rewrote extending and embedding moose documentation and
424 recipes to use Moose::Exporter (Dave Rolsky)
428 - These two modules now warn when you load them from the main
429 package "main" package, because we will not export sugar to
430 main. Previously it just did nothing. (Dave Rolsky)
433 - Now provide an init_meta method just like Moose.pm, and you
434 can call this to provide an alternate role metaclass. (Dave
435 Rolsky and nothingmuch)
436 - get_method_map now respects the package cache flag (nothingmuch)
439 - Two new methods - add_method and wrap_method_body
443 - Optimizations including allowing constructors to accept hash
444 refs, making many more classes immutable, and making
445 constructors immutable. (nothingmuch)
447 0.55 Sun August 3, 2008
448 * Moose::Meta::Attribute
449 - breaking down the way 'handles' methods are
450 created so that the process can be more easily
451 overridden by subclasses (stevan)
453 * Moose::Meta::TypeConstraint
454 - fixing what is passed into a ->message with
455 the type constraints (RT #37569)
456 - added tests for this (Charles Alderman)
458 * Moose::Util::TypeConstraints
459 - fix coerce to accept anon types like subtype can (mst)
462 - reorganized the recipes into sections - Basics, Roles, Meta,
463 Extending - and wrote abstracts for each section (Dave Rolsky)
465 * Moose::Cookbook::Basics::Recipe10
466 - A new recipe that demonstrates operator overloading
467 in combination with Moose. (bluefeet)
469 * Moose::Cookbook::Meta::Recipe1
470 - an introduction to what meta is and why you'd want to make
471 your own metaclass extensions (Dave Rolsky)
473 * Moose::Cookbook::Meta::Recipe4
474 - a very simple metaclass example (Dave Rolsky)
476 * Moose::Cookbook::Extending::Recipe1
477 - how to write a Moose-alike module to use your own object base
480 * Moose::Cookbook::Extending::Recipe2
481 - how to write modules with an API just like C<Moose.pm> (Dave
485 - Tons of fixes, both syntactical and grammatical (Dave
486 Rolsky, Paul Fenwick)
488 0.54 Thurs. July 3, 2008
489 ... this is not my day today ...
491 * Moose::Meta::Attribute
492 - fixed legal_options_for_inheritance such that
493 clone_and_inherit options still works for
494 Class::MOP::Attribute objects and therefore
495 does not break MooseX::AttributeHelpers
498 0.53 Thurs. July 3, 2008
499 * Whoops, I guess I should run 'make manifest' before
500 actually releasing the module. No actual changes
501 in this release, except the fact that it includes
502 the changes that I didn't include in the last
505 0.52 Thurs. July 3, 2008
507 - added "FEATURE REQUESTS" section to the Moose docs
508 to properly direct people (stevan) (RT #34333)
509 - making 'extends' croak if it is passed a Role since
510 this is not ever something you want to do
511 (fixed by stevan, found by obra)
512 - added tests for this (stevan)
515 - adding support for DOES (as in UNIVERSAL::DOES)
517 - added test for this
519 * Moose::Meta::Attribute
520 - added legal_options_for_inheritance (wreis)
521 - added tests for this (wreis)
523 * Moose::Cookbook::Snacks::*
524 - removed some of the unfinished snacks that should
525 not have been released yet. Added some more examples
526 to the 'Keywords' snack. (stevan)
528 * Moose::Cookbook::Style
529 - added general Moose "style guide" of sorts to the
530 cookbook (nothingmuch) (RT #34335)
533 - added more BUILDARGS tests (stevan)
535 0.51 Thurs. Jun 26, 2008
537 - add unimport so "no Moose::Role" actually does
540 * Moose::Meta::Role::Application::ToRole
541 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
542 order to provide its own implementation, that method still got
543 added to the list of required methods for consumers of
544 RoleB. Now an aliased method is only added to the list of
545 required methods if the role doing the aliasing does not
546 provide its own implementation. See Recipe 11 for an example
547 of all this. (Dave Rolsky)
548 - added tests for this
550 * Moose::Meta::Method::Constructor
551 - when a single argument that wasn't a hashref was provided to
552 an immutabilized constructor, the error message was very
553 unhelpful, as opposed to the non-immutable error. Reported by
555 - added test for this (Dave Rolsky)
557 * Moose::Meta::Attribute
558 - added support for meta_attr->does("ShortAlias") (sartak)
559 - added tests for this (sartak)
560 - moved the bulk of the `handles` handling to the new
561 install_delegation method (Stevan)
564 - Added BUILDARGS, a new step in new()
566 * Moose::Meta::Role::Application::RoleSummation
567 - fix typos no one ever sees (sartak)
569 * Moose::Util::TypeConstraints
570 * Moose::Meta::TypeConstraint
571 * Moose::Meta::TypeCoercion
572 - Attempt to work around the ??{ } vs. threads issue
574 - Some null_constraint optimizations
576 0.50 Thurs. Jun 11, 2008
577 - Fixed a version number issue by bumping all modules
580 0.49 Thurs. Jun 11, 2008
581 !! This version now approx. 20-25% !!
582 !! faster with new Class::MOP 0.59 !!
584 * Moose::Meta::Attribute
585 - fixed how the is => (ro|rw) works with
586 custom defined reader, writer and accessor
588 - added docs for this (TODO).
589 - added tests for this (Thanks to Penfold)
590 - added the custom attribute alias for regular
591 Moose attributes which is "Moose"
592 - fix builder and default both being used
597 Moose::Meta::Attribute
599 Moose::Meta::Role::Composite
600 Moose::Util::TypeConstraints
601 - switched usage of reftype to ref because
605 - changing add_package_symbol to use the new
609 - fixed how DEMOLISHALL is called so that it
610 can be overrided in subclasses (thanks to Sartak)
611 - added test for this (thanks to Sartak)
613 * Moose::Util::TypeConstraints
614 - move the ClassName type check code to
615 Class::MOP::is_class_loaded (thanks to Sartak)
617 * Moose::Cookbook::Recipe11
618 - add tests for this (thanks to tokuhirom)
620 0.48 Thurs. May 29, 2008
621 (early morning release engineering)--
623 - fixing the version in Moose::Meta::Method::Destructor
624 which was causing the indexer to choke
626 0.47 Thurs. May 29, 2008
627 (late night release engineering)--
629 - fixing the version is META.yml, no functional
630 changes in this release
632 0.46 Wed. May 28, 2008
633 !! This version now approx. 20-25% !!
634 !! faster with new Class::MOP 0.57 !!
637 - some optimizations of the &initialize method
638 since it is called so often by &meta
642 - now use the get_all_package_symbols from the
643 updated Class::MOP, test suite is now 10 seconds
646 * Moose::Meta::Method::Destructor
647 - is_needed can now also be called as a class
648 method for immutablization to check if the
649 destructor object even needs to be created
652 * Moose::Meta::Method::Destructor
653 Moose::Meta::Method::Constructor
654 - added more descriptive error message to help
655 keep people from wasting time tracking an error
656 that is easily fixed by upgrading.
658 0.45 Saturday, May 24, 2008
660 - Because of work in Class::MOP 0.57, all
661 XS based functionality is now optional
662 and a Pure Perl version is supplied
663 - the CLASS_MOP_NO_XS environment variable
664 can now be used to force non-XS versions
666 - several of the packages have been tweaked
667 to take care of this, mostly we added
668 support for the package_name and name
669 variables in all the Method metaclasses
670 - before/around/after method modifiers now
671 support regexp matching of names
672 (thanks to Takatoshi Kitano)
673 - tests added for this
674 - NOTE: this only works for classes, it
675 is currently not supported in roles,
676 but, ... patches welcome
677 - All usage of Carp::confess have been replaced
678 by Carp::croak in the "keyword" functions since
679 the stack trace is usually not helpful
682 - All usage of Carp::confess have been replaced
683 by Carp::croak in the "keyword" functions since
684 the stack trace is usually not helpful
685 - The 'has' keyword for roles now accepts the
686 same array ref form that Moose.pm does
687 (has [qw/foo bar/] => (is => 'rw', ...))
688 - added test for this
690 * Moose::Meta::Attribute
691 - trigger on a ro-attribute is no longer an
692 error, as it's useful to trigger off of the
696 - added same 'add_package_symbol' fix as in
700 - does_role now handles non-Moose classes
702 - added tests for this
703 - added the 'add_method_modifier' function
704 (thanks to Takatoshi Kitano)
706 * Moose::Util::TypeConstraints
707 - subtypes of parameterizable types now are
708 themselves parameterizable types
710 * Moose::Meta::Method::Constructor
711 - fixed bug where trigger was not being
712 called by the inlined immutable
714 - added test for this (thanks to Caelum)
716 * Moose::Meta::Role::Application::ToInstance
717 - now uses the metaclass of the instance
718 (if possible) to create the anon-class
719 (thanks Jonathan Rockway)
721 * Moose::Cookbook::Recipe22
722 - added the meta-attribute trait recipe
726 - fixed hash-ordering test bug that was
727 causing occasional cpantester failures
728 - renamed the t/000_recipe/*.t tests to be
729 more descriptive (thanks to Sartak)
731 0.44 Sat. May 10, 2008
733 - made make_immutable warning cluck to
734 show where the error is (thanks mst)
737 - BUILDALL and DEMOLISHALL now call
738 ->body when looping through the
739 methods, to avoid the overloaded
741 - fixed issue where DEMOLISHALL was
742 eating the $@ values, and so not
743 working correctly, it still kind of
744 eats them, but so does vanilla perl
745 - added tests for this
747 * Moose::Cookbook::Recipe7
748 - added new recipe for immutable
749 functionality (thanks Dave Rolsky)
751 * Moose::Cookbook::Recipe9
752 - added new recipe for builder and
753 lazy_build (thanks Dave Rolsky)
755 * Moose::Cookbook::Recipe11
756 - added new recipe for method aliasing
757 and exclusion with Roles (thanks Dave Rolsky)
760 - fixed Win32 test failure (thanks spicyjack)
762 ~ removed Build.PL and Module::Build compat
763 since Module::Install has done that.
765 0.43 Wed. April, 30, 2008
767 drink more coffee before
768 doing release engineering
770 - whoops, forgot to do the smolder tests,
771 and we broke some of the custom meta-attr
772 modules. This fixes that.
774 0.42 Mon. April 28, 2008
775 - some bad tests slipped by, nothing else
776 changed in this release (cpantesters++)
778 - upped the Class::MOP dependency to 0.55
779 since we have tests which need the C3
782 0.41 Mon. April 28, 2008
783 ~~ numerous documentation updates ~~
785 - Changed all usage of die to Carp::croak for better
786 error reporting (initial patch by Tod Hagan)
789 - the make_immutable keyword is now deprecated, don't
790 use it in any new code and please fix your old code
791 as well. There will be 2 releases, and then it will
797 - refactored the way inner and super work to avoid
798 any method/@ISA cache penalty (nothingmuch)
801 - fixing &new_object to make sure trigger gets the
802 coerced value (spotted by Charles Alderman on the
804 - added test for this
806 * Moose::Meta::Method::Constructor
807 - immutable classes which had non-lazy attributes were calling
808 the default generating sub twice in the constructor. (bug
809 found by Jesse Luehrs, fixed by Dave Rolsky)
810 - added tests for this (Dave Rolsky)
811 - fix typo in initialize_body method (nothingmuch)
813 * Moose::Meta::Method::Destructor
814 - fix typo in initialize_body method (nothingmuch)
816 * Moose::Meta::Method::Overriden
817 Moose::Meta::Method::Augmented
818 - moved the logic for these into their own
819 classes (nothingmuch)
821 * Moose::Meta::Attribute
822 - inherited attributes may now be extended without
823 restriction on the type ('isa', 'does') (Sartak)
824 - added tests for this (Sartak)
825 - when an attribute property is malformed (such as lazy without
826 a default), give the name of the attribute in the error
828 - added the &applied_traits and &has_applied_traits methods
829 to allow introspection of traits
830 - added tests for this
831 - moved 'trait' and 'metaclass' argument handling to here from
833 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
834 '+foo' syntax) (nothingmuch)
835 - added tests for this (t0m)
838 - localize $@ inside DEMOLISHALL to avoid it
839 eating $@ (found by Ernesto)
840 - added test for this (thanks to Ernesto)
842 * Moose::Util::TypeConstraints
843 - &find_type_constraint now DWIMs when given an
844 type constraint object or name (nothingmuch)
845 - &find_or_create_type_constraint superseded with a number of more
847 - find_or_create_{isa,does}_type_constraint
848 - find_or_parse_type_constraint
850 * Moose::Meta::TypeConstraint
851 Moose::Meta::TypeConstraint::Class
852 Moose::Meta::TypeConstraint::Role
853 Moose::Meta::TypeConstraint::Enum
854 Moose::Meta::TypeConstraint::Union
855 Moose::Meta::TypeConstraint::Parameterized
856 - added the &equals method for comparing two type
857 constraints (nothingmuch)
858 - added tests for this (nothingmuch)
860 * Moose::Meta::TypeConstraint
861 - add the &parents method, which is just an alias to &parent.
862 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
864 * Moose::Meta::TypeConstraint::Class
865 - added the class attribute for introspection purposes
867 - added tests for this
869 * Moose::Meta::TypeConstraint::Enum
870 Moose::Meta::TypeConstraint::Role
871 - broke these out into their own classes (nothingmuch)
873 * Moose::Cookbook::Recipe*
874 - fixed references to test file locations in the POD
875 and updated up some text for new Moose features
879 - Added &resolve_metaclass_alias, a helper function for finding an actual
880 class for a short name (e.g. in the traits list)
882 0.40 Fri. March 14, 2008
883 - I hate Pod::Coverage
885 0.39 Fri. March 14, 2008
887 - documenting the use of '+name' with attributes
888 that come from recently composed roles. It makes
889 sense, people are using it, and so why not just
890 officially support it.
891 - fixing the 'extends' keyword so that it will not
892 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
895 - added the perl -Moose=+Class::Name feature to allow
896 monkeypatching of classes in one liners
899 - fixing the 'apply_all_roles' keyword so that it will not
900 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
903 - added ->create method which now supports roles (thanks to jrockway)
904 - added tests for this
905 - added ->create_anon_class which now supports roles and caching of
906 the results (thanks to jrockway)
907 - added tests for this
908 - made ->does_role a little more forgiving when it is
909 checking a Class::MOP era metaclasses.
911 * Moose::Meta::Role::Application::ToInstance
912 - it is now possible to pass extra params to be used when
913 a role is applied to an the instance (rebless_params)
914 - added tests for this
916 * Moose::Util::TypeConstraints
917 - class_type now accepts an optional second argument for a
918 custom message. POD anotated accordingly (groditi)
919 - added tests for this
920 - it is now possible to make anon-enums by passing 'enum' an
921 ARRAY ref instead of the $name => @values. Everything else
923 - added tests for this
926 - making test for using '+name' on attributes consumed
927 from a role, it works and makes sense too.
929 * Moose::Meta::Attribute
930 - fix handles so that it doesn't return nothing
931 when the method cannot be found, not sure why
932 it ever did this originally, this means we now
933 have slightly better support for AUTOLOADed
935 - added more delegation tests
936 - adding ->does method to this so as to better
937 support traits and their introspection.
938 - added tests for this
941 - localizing the Data::Dumper configurations so
942 that it does not pollute others (RT #33509)
943 - made ->does a little more forgiving when it is
944 passed Class::MOP era metaclasses.
946 0.38 Fri. Feb. 15, 2008
947 * Moose::Meta::Attribute
948 - fixed initializer to correctly do
949 type checking and coercion in the
951 - added tests for this
954 - fixed some finicky tests (thanks to konobi)
956 0.37 Thurs. Feb. 14, 2008
958 - fixed some details in Moose::init_meta
959 and its superclass handling (thanks thepler)
960 - added tests for this (thanks thepler)
961 - 'has' now dies if you don't pass in name
963 - added the 'make_immutable' keyword as a shortcut
967 Moose::Meta::Method::Constructor
968 Moose::Meta::Attribute
969 - making (init_arg => undef) work here too
970 (thanks to nothingmuch)
972 * Moose::Meta::Attribute
973 Moose::Meta::Method::Constructor
974 Moose::Meta::Method::Accessor
975 - make lazy attributes respect attr initializers (rjbs)
976 - added tests for this
978 * Moose::Util::TypeConstraints
979 Moose::Util::TypeConstraints::OptimizedConstraints
980 Moose::Meta::TypeConstraints
981 Moose::Meta::Attribute
982 Moose::Meta::Method::Constructor
983 Moose::Meta::Method::Accessor
984 - making type errors use the
985 assigned message (thanks to Sartak)
986 - added tests for this
988 * Moose::Meta::Method::Destructor
989 - making sure DESTROY gets inlined properly
990 with successive DEMOLISH calls (thanks to manito)
992 * Moose::Meta::Attribute
993 Moose::Meta::Method::Accessor
994 - fixed handling of undef with type constraints
996 - added tests for this
999 - added &get_all_init_args and &get_all_attribute_values
1000 (thanks to Sartak and nothingmuch)
1002 0.36 Sat. Jan. 26, 2008
1004 Moose::Meta::Attribute
1005 - role type tests now support when roles are
1006 applied to non-Moose classes (found by ash)
1007 - added tests for this (thanks to ash)
1008 - couple extra tests to boost code coverage
1010 * Moose::Meta::Method::Constructor
1011 - improved fix for handling Class::MOP attributes
1012 - added test for this
1014 * Moose::Meta::Class
1015 - handled the add_attribute($attribute_meta_object)
1017 - added test for this
1019 0.35 Tues. Jan. 22, 2008
1020 * Moose::Meta::Method::Constructor
1021 - fix to make sure even Class::MOP attributes
1022 are handled correctly (Thanks to Dave Rolsky)
1023 - added test for this (also Dave Rolsky)
1025 * Moose::Meta::Class
1026 - improved error message on _apply_all_roles,
1027 you should now use Moose::Util::apply_all_roles
1028 and you shouldnt have been using a _ prefixed
1029 method in the first place ;)
1031 0.34 Mon. Jan. 21, 2008
1032 ~~~ more misc. doc. fixes ~~~
1033 ~~ updated copyright dates ~~
1035 Moose is now a postmodern object system :)
1036 - (see the POD for details)
1038 * <<Role System Refactoring>>
1039 - this release contains a major reworking and
1040 cleanup of the role system
1041 - 100% backwards compat.
1042 - Role application now restructured into seperate
1043 classes based on type of applicants
1044 - Role summation (combining of more than one role)
1045 is much cleaner and anon-classes are no longer
1046 used in this process
1047 - new Composite role metaclass
1048 - runtime application of roles to instances
1049 is now more efficient and re-uses generated
1050 classes when applicable
1052 * <<New Role composition features>>
1053 - methods can now be excluded from a given role
1055 - methods can now be aliased to another name (and
1056 still retain the original as well)
1058 * Moose::Util::TypeConstraints::OptimizedConstraints
1059 - added this module (see above)
1061 * Moose::Meta::Class
1062 - fixed the &_process_attribute method to be called
1063 by &add_attribute, so that the API is now correct
1065 * Moose::Meta::Method::Accessor
1066 - fixed bug when passing a list of values to
1067 an accessor would get (incorrectly) ignored.
1068 Thanks to Sartak for finding this ;)
1069 - added tests for this (Sartak again)
1071 * Moose::Meta::Method::Accessor
1072 Moose::Meta::Method::Constructor
1073 Moose::Meta::Attribute
1074 Moose::Meta::TypeConstraint
1075 Moose::Meta::TypeCoercion
1076 - lots of cleanup of such things as:
1078 - type constraint handling
1079 - error handling/messages
1080 (thanks to nothingmuch)
1082 * Moose::Meta::TypeConstraint::Parameterizable
1083 - added this module to support the refactor
1084 in Moose::Meta::TypeConstraint::Parameterized
1086 * Moose::Meta::TypeConstraint::Parameterized
1087 - refactored how these types are handled so they
1088 are more generic and not confined to ArrayRef
1092 - shortened some file names for better VMS support (RT #32381)
1094 0.33 Fri. Dec. 14, 2007
1095 !! Moose now loads 2 x faster !!
1096 !! with new Class::MOP 0.49 !!
1098 ++ new oose.pm module to make command line
1099 Moose-ness easier (see POD docs for more)
1101 * Moose::Meta::Class
1103 - several tweaks to take advantage of the
1104 new method map caching in Class::MOP
1106 * Moose::Meta::TypeConstraint::Parameterized
1107 - allow subtypes of ArrayRef and HashRef to
1108 be used as a container (sartak)
1109 - added tests for this
1110 - basic support for coercion to ArrayRef and
1111 HashRef for containers (sartak)
1112 - added tests for this
1114 * Moose::Meta::TypeCoercion
1115 - coercions will now create subtypes as needed
1116 so you can now add coercions to parameterized
1117 types without having to explictly define them
1118 - added tests for this
1120 * Moose::Meta::Method::Accessor
1121 - allow subclasses to decide whether we need
1122 to copy the value into a new variable (sartak)
1124 0.32 Tues. Dec. 4, 2007
1125 * Moose::Util::TypeConstraints
1126 - fixing how subtype aliases of unions work
1127 they should inherit the parent's coercion
1128 - added tests for this
1129 - you can now define multiple coercions on
1130 a single type at different times instead of
1131 having to do it all in one place
1132 - added tests for this
1134 * Moose::Meta::TypeConstraint
1135 - there is now a default constraint of sub { 1 }
1136 instead of Moose::Util::TypeConstraints setting
1139 * Moose::Meta::TypeCoercion
1140 * Moose::Meta::TypeCoercion::Union
1141 - added the &has_coercion_for_type and
1142 &add_type_coercions methods to support the
1143 new features above (although you cannot add
1144 more type coercions for Union types)
1146 0.31 Mon. Nov. 26, 2007
1147 * Moose::Meta::Attribute
1148 - made the +attr syntax handle extending types with
1149 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1150 now works if the original foo is an ArrayRef.
1151 - added tests for this.
1152 - delegation now works even if the attribute does not
1153 have a reader method using the get_read_method_ref
1154 method from Class::MOP::Attribute.
1155 - added tests for this
1156 - added docs for this
1158 * Moose::Util::TypeConstraints
1159 - passing no "additional attribute info" to
1160 &find_or_create_type_constraint will no longer
1161 attempt to create an __ANON__ type for you,
1162 instead it will just return undef.
1163 - added docs for this
1165 0.30 Fri. Nov. 23, 2007
1166 * Moose::Meta::Method::Constructor
1167 -builder related bug in inlined constructor. (groditi)
1169 * Moose::Meta::Method::Accessor
1170 - genereate unnecessary calls to predicates and refactor
1171 code generation for runtime speed (groditi)
1173 * Moose::Util::TypeConstraints
1174 - fix ClassName constraint to introspect symbol table (mst)
1175 - added more tests for this (mst)
1176 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1177 with work correctly.
1178 - added tests for this
1181 - adding the link to Recipie 11 (written by Sartak)
1182 - adding test for SYNOPSIS code
1185 - New tests for builder bug. Upon instantiation, if an
1186 attribute had a builder, no value and was not lazy the
1187 builder default was not getting run, oops. (groditi)
1189 0.29 Tues. Nov. 13, 2007
1190 * Moose::Meta::Attribute
1191 - Fix error message on missing builder method (groditi)
1193 * Moose::Meta::Method::Accessor
1194 - Fix error message on missing builder method (groditi)
1197 - Add test to check for the correct error message when
1198 builder method is missing (groditi)
1200 0.28 Tues. Nov. 13, 2007
1201 - 0.27 packaged incorrectly (groditi)
1203 0.27 Tues. Nov. 13, 2007
1204 * Moose::Meta::Attribute
1205 - Added support for the new builder option (groditi)
1206 - Added support for lazy_build option (groditi)
1207 - Changed slot initialization for predicate changes (groditi)
1209 * Moose::Meta::Method::Accessor
1210 - Added support for lazy_build option (groditi)
1211 - Fix inline methods to work with corrected predicate
1214 * Moose::Meta::Method::Constructor
1215 - Added support for lazy_build option (groditi)
1218 - tests for builder and lazy_build (groditi)
1220 * fixing some misc. bits in the docs that
1221 got mentioned on CPAN Forum & perlmonks
1224 - fixed how required methods are handled
1225 when they encounter overriden or modified
1226 methods from a class (thanks to confound).
1227 - added tests for this
1229 * Moose::Util::TypeConstraint
1230 - fixed the type notation parser so that
1231 the | always creates a union and so is
1232 no longer a valid type char (thanks to
1233 konobi, mugwump and #moose for working
1235 - added more tests for this
1237 0.26 Thurs. Sept. 27, 2007
1240 * Parameterized Types
1241 We now support parameterized collection types, such as:
1242 ArrayRef[Int] # array or integers
1243 HashRef[Object] # a hash with object values
1244 They can also be nested:
1245 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1246 And work with the type unions as well:
1247 ArrayRef[Int | Str] # array of integers of strings
1249 * Better Framework Extendability
1250 Moose.pm is now "extendable" such that it is now much
1251 easier to extend the framework and add your own keywords
1252 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1253 section of the Moose.pm docs.
1256 In an effort to begin documenting some of the various
1257 details of Moose as well as some common idioms, we have
1258 created Moose::Cookbook::Snacks as a place to find
1259 small (easily digestable) nuggets of Moose code.
1262 ~ Several doc updates/cleanup thanks to castaway ~
1264 - converted build system to use Module::Install instead of
1265 Module::Build (thanks to jrockway)
1268 - added all the meta classes to the immutable list and
1269 set it to inline the accessors
1270 - fix import to allow Sub::Exporter like { into => }
1271 and { into_level => } (perigrin)
1272 - exposed and documented init_meta() to allow better
1273 embedding and extending of Moose (perigrin)
1276 - complete re-organization of the test suite
1277 - added some new tests as well
1278 - finally re-enabled the Moose::POOP test since
1279 the new version of DBM::Deep now works again
1282 * Moose::Meta::Class
1283 - fixed very odd and very nasty recursion bug with
1285 - added tests for this (eilara)
1287 * Moose::Meta::Attribute
1288 Moose::Meta::Method::Constructor
1289 Moose::Meta::Method::Accessor
1290 - fixed issue with overload::Overloaded getting called
1291 on non-blessed items. (RT #29269)
1292 - added tests for this
1294 * Moose::Meta::Method::Accessor
1295 - fixed issue with generated accessor code making
1296 assumptions about hash based classes (thanks to dexter)
1298 * Moose::Coookbook::Snacks
1299 - these are bits of documentation, not quite as big as
1300 Recipes but which have no clear place in the module docs.
1301 So they are Snacks! (horray for castaway++)
1303 * Moose::Cookbook::Recipe4
1304 - updated it to use the new ArrayRef[MyType] construct
1305 - updated the accompanying test as well
1307 +++ Major Refactor of the Type Constraint system +++
1308 +++ with new features added as well +++
1310 * Moose::Util::TypeConstraint
1311 - no longer uses package variable to keep track of
1312 the type constraints, now uses the an instance of
1313 Moose::Meta::TypeConstraint::Registry to do it
1314 - added more sophisticated type notation parsing
1316 - added tests for this
1318 * Moose::Meta::TypeConstraint
1319 - some minor adjustments to make subclassing easier
1320 - added the package_defined_in attribute so that we
1321 can track where the type constraints are created
1323 * Moose::Meta::TypeConstraint::Union
1324 - this is now been refactored to be a subclass of
1325 Moose::Meta::TypeConstraint
1327 * Moose::Meta::TypeCoercion::Union
1328 - this has been added to service the newly refactored
1329 Moose::Meta::TypeConstraint::Union and is itself
1330 a subclass of Moose::Meta::TypeCoercion
1332 * Moose::Meta::TypeConstraint::Parameterized
1333 - added this module (taken from MooseX::AttributeHelpers)
1334 to help construct nested collection types
1335 - added tests for this
1337 * Moose::Meta::TypeConstraint::Registry
1338 - added this class to keep track of type constraints
1340 0.25 Mon. Aug. 13, 2007
1342 - Documentation update to reference Moose::Util::TypeConstraints
1343 under 'isa' in 'has' for how to define a new type
1344 (thanks to shlomif).
1346 * Moose::Meta::Attribute
1347 - required attributes now will no longer accept undef
1348 from the constructor, even if there is a default and lazy
1349 - added tests for this
1350 - default subroutines must return a value which passes the
1352 - added tests for this
1354 * Moose::Meta::Attribute
1355 * Moose::Meta::Method::Constructor
1356 * Moose::Meta::Method::Accessor
1357 - type-constraint tests now handle overloaded objects correctly
1358 in the error message
1359 - added tests for this (thanks to EvanCarroll)
1361 * Moose::Meta::TypeConstraint::Union
1362 - added (has_)hand_optimized_constraint to this class so that
1363 it behaves as the regular Moose::Meta::TypeConstraint does.
1366 - large refactoring of this code
1367 - added several more tests
1368 - tests for subtle conflict resolition issues
1369 added, but not currently running
1372 * Moose::Cookbook::Recipe7
1373 - added new recipe for augment/inner functionality
1375 - added test for this
1378 - a formal definition of roles (still in progress)
1381 - utilities for easier working with Moose classes
1382 - added tests for these
1385 - This contains Moose specific test functions
1386 - added tests for these
1388 0.24 Tues. July 3, 2007
1389 ~ Some doc updates/cleanup ~
1391 * Moose::Meta::Attribute
1392 - added support for roles to be given as parameters
1393 to the 'handles' option.
1394 - added tests and docs for this
1395 - the has '+foo' attribute form now accepts changes to
1396 the lazy option, and the addition of a handles option
1397 (but not changing the handles option)
1398 - added tests and docs for this
1401 - required methods are now fetched using find_method_by_name
1402 so that required methods can come from superclasses
1403 - adjusted tests for this
1405 0.23 Mon. June 18, 2007
1406 * Moose::Meta::Method::Constructor
1407 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1408 * Moose::Meta::Class
1409 - Modify make_immutable to work with the new Class::MOP immutable
1410 mechanism + POD + very basic test (groditi)
1411 * Moose::Meta::Attribute
1412 - Fix handles to use goto() so that caller() comes out properly on
1413 the other side (perigrin)
1415 0.22 Thurs. May 31, 2007
1416 * Moose::Util::TypeConstraints
1417 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1418 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1419 prototypes for functions
1420 - added the ClassName type constraint, this checks for strings
1421 which will respond true to ->isa(UNIVERSAL).
1422 - added tests and docs for this
1423 - subtyping just in name now works correctly by making the
1424 default for where be { 1 }
1425 - added test for this
1427 * Moose::Meta::Method::Accessor
1428 - coerce and lazy now work together correctly, thanks to
1429 merlyn for finding this bug
1430 - tests added for this
1431 - fix reader presedence bug in Moose::Meta::Attribute + tests
1434 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1435 a HASH-ref and missed. This produces better error messages then
1436 having it die cause undef is not a HASH.
1437 - added tests for this
1439 0.21 Thursday, May 2nd, 2007
1441 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1442 - modified unimport to remove super and inner along with the rest
1443 - altered unimport tests to handle this
1446 - altered super export to populate SUPER_SLOT
1448 * Moose::Meta::Class
1449 - altered augment and override modifier application to use *_SLOT
1450 - modified tests for these to unimport one test class each to test
1453 - fixed issue where custom attribute metaclasses
1454 where not handled correctly in roles
1455 - added tests for this
1457 * Moose::Meta::Class
1458 - fixed issue where extending metaclasses with
1459 roles would blow up. Thanks to Aankhen`` for
1460 finding this insidious error, and it's solution.
1462 ~~ lots of spelling and grammer fixes in the docs,
1463 many many thanks to rlb3 and Aankhen for these :)
1465 0.20 Friday, April 6th, 2007
1466 >> I messed up the SKIP logic in one test
1467 so this release is just to fix that.
1470 - 'has' now also accepts an ARRAY ref
1471 to create multiple attrs (see docs)
1472 (thanks to konobi for this)
1473 - added tests and docs
1475 0.19 Thurs. April 5th, 2007
1476 ~~ More documentation updates ~~
1478 * Moose::Util::TypeConstraints
1479 - 'type' now supports messages as well
1480 thanks to phaylon for finding this
1481 - added tests for this
1482 - added &list_all_type_constraints and
1483 &list_all_builtin_type_constraints
1484 functions to facilitate introspection.
1486 * Moose::Meta::Attribute
1487 - fixed regexp 'handles' declarations
1488 to build the list of delegated methods
1489 correctly (and not override important
1490 things like &new) thanks to ashleyb
1492 - added tests and docs for this
1493 - added the 'documentation' attributes
1494 so that you can actually document your
1495 attributes and inspect them through the
1497 - added tests and docs for this
1499 * Moose::Meta::Class
1500 - when loading custom attribute metaclasses
1501 it will first look in for the class in the
1502 Moose::Meta::Attribute::Custom::$name, and
1503 then default to just loading $name.
1504 - added tests and docs for this
1506 * Moose::Meta::TypeConstraint
1507 - type constraints now stringify to their names.
1508 - added test for this
1511 - added tests to assure we work with Module::Refresh
1512 - added stricter test skip logic in the Moose POOP
1513 test, ask Rob Kinyon why.
1514 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1516 0.18 Sat. March 10, 2007
1517 ~~ Many, many documentation updates ~~
1520 - We now use Class::MOP::load_class to
1522 - added tests to show types and subtypes
1523 working with Declare::Constraints::Simple
1524 and Test::Deep as constraint engines.
1527 !! You must have Class::MOP 0.37_001 !!
1528 !! for this developer release to work !!
1530 This release was primarily adding the immutable
1531 feature to Moose. An immutable class is one which
1532 you promise not to alter. When you set the class
1533 as immutable it will perform various bits of
1534 memoization and inline certain part of the code
1535 (constructors, destructors and accessors). This
1536 minimizes (and in some cases totally eliminates)
1537 one of Moose's biggest performance hits. This
1538 feature is not on by default, and is 100% optional.
1539 It has several configurable bits as well, so you
1540 can pick and choose to your specific needs.
1542 The changes involved in this were fairly wide and
1543 highly specific, but 100% backwards compatible, so
1544 I am not going to enumerate them here. If you are
1545 truely interested in what was changed, please do
1548 0.17 Tues. Nov. 14, 2006
1549 * Moose::Meta::Method::Accessor
1550 - bugfix for read-only accessors which
1551 are have a type constraint and lazy.
1552 Thanks to chansen for finding it.
1554 0.16 Tues. Nov. 14, 2006
1556 There are some speed improvements in this release,
1557 but they are only the begining, so stay tuned.
1560 - BUILDALL and DEMOLISHALL no longer get
1561 called unless they actually need to be.
1562 This gave us a signifigant speed boost
1563 for the cases when there is no BUILD or
1564 DEMOLISH method present.
1566 * Moose::Util::TypeConstraints
1567 * Moose::Meta::TypeConstraint
1568 - added an 'optimize_as' option to the
1569 type constraint, which allows for a
1570 hand optimized version of the type
1571 constraint to be used when possible.
1572 - Any internally created type constraints
1573 now provide an optimized version as well.
1575 0.15 Sun. Nov. 5, 2006
1577 This version of Moose *must* have Class::MOP 0.36 in order
1578 to work correctly. A number of small internal tweaks have
1579 been made in order to be compatible with that release.
1581 * Moose::Util::TypeConstraints
1582 - added &unimport so that you can clean out
1583 your class namespace of these exported
1586 * Moose::Meta::Class
1587 - fixed minor issue which occasionally
1588 comes up during global destruction
1590 - moved Moose::Meta::Method::Overriden into
1594 - moved Moose::Meta::Role::Method into
1597 * Moose::Meta::Attribute
1598 - changed how we do type checks so that
1599 we reduce the overall cost, but still
1602 - moved accessor generation methods to
1603 Moose::Meta::Method::Accessor to
1604 conform to the API changes from
1607 * Moose::Meta::TypeConstraint
1608 - changed how constraints are compiled
1609 so that we do less recursion and more
1610 iteration. This makes the type check
1612 - moved Moose::Meta::TypeConstraint::Union
1615 * Moose::Meta::Method::Accessor
1616 - created this from methods formerly found in
1617 Moose::Meta::Attribute
1619 * Moose::Meta::Role::Method
1620 - moved this from Moose::Meta::Role
1622 * Moose::Meta::Method::Overriden
1623 - moved this from Moose::Meta::Class
1625 * Moose::Meta::TypeConstraint::Union
1626 - moved this from Moose::Meta::TypeConstraint
1628 0.14 Mon. Oct. 9, 2006
1630 * Moose::Meta::Attribute
1631 - fixed lazy attributes which were not getting
1632 checked with the type constraint (thanks ashley)
1633 - added tests for this
1634 - removed the over-enthusiastic DWIMery of the
1635 automatic ArrayRef and HashRef defaults, it
1636 broke predicates in an ugly way.
1637 - removed tests for this
1639 0.13 Sat. Sept. 30, 2006
1641 This version of Moose *must* have Class::MOP 0.35 in order
1642 to work correctly. A number of small internal tweaks have
1643 been made in order to be compatible with that release.
1646 - Removed the use of UNIVERSAL::require to be a better
1647 symbol table citizen and remove a dependency
1648 (thanks Adam Kennedy)
1650 **~~ removed experimental & undocumented feature ~~**
1651 - commented out the 'method' and 'self' keywords, see the
1652 comments for more info.
1655 - added a FAQ and WTF files to document frequently
1656 asked questions and common problems
1658 * Moose::Util::TypeConstraints
1659 - added GlobRef and FileHandle type constraint
1660 - added tests for this
1662 * Moose::Meta::Attribute
1663 - if your attribute 'isa' ArrayRef of HashRef, and you have
1664 not explicitly set a default, then make the default DWIM.
1665 This will also work for subtypes of ArrayRef and HashRef
1667 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1668 - new test added for this (thanks to ashley)
1671 - added basic support for runtime role composition
1672 but this is still *highly experimental*, so feedback
1673 is much appreciated :)
1674 - added tests for this
1676 * Moose::Meta::TypeConstraint
1677 - the type constraint now handles the coercion process
1678 through delegation, this is to support the coercion
1681 * Moose::Meta::TypeConstraint::Union
1682 - it is now possible for coercions to be performed
1684 - added tests for this (thanks to konobi)
1686 * Moose::Meta::TypeCoercion
1687 - properly capturing error when type constraint
1691 - Scalar::Util 1.18 is bad on Win32, so temporarily
1692 only require version 1.17 for Win32 and cygwin.
1693 (thanks Adam Kennedy)
1695 0.12 Sat. Sept. 1, 2006
1697 - Recipe5 (subtypes & coercion) has been written
1700 - fixed "bad meta" error message to be more descriptive
1701 - fixed &unimport to not remove the &inner and &super
1702 keywords because we need to localize them.
1703 - fixed number of spelling/grammer issues, thanks Theory :)
1705 **~~ experimental & undocumented feature ~~**
1706 - added the method and self keywords, they are basically
1707 just sugar, and they may not stay around.
1710 - added &dump method to easily Data::Dumper
1713 * Moose::Meta::TypeConstraint
1714 - added the &is_a_type_of method to check both the current
1715 and the subtype of a method (similar to &isa with classes)
1718 - this is now a subclass of Class::MOP::Module, and no longer
1719 creates the _role_meta ugliness of before.
1720 - fixed tests to reflect this change
1722 0.11 Wed. July 12, 2006
1724 - added an &unimport method to remove all the keywords
1725 that Moose will import, simply add 'no Moose' to the
1726 bottom of your class file.
1729 - fixed some test failures caused by a forgotten test
1732 0.10 Thurs. July 6, 2006
1734 - improved error message when loading modules so
1735 it is less confusing when you load a role.
1736 - added &calculate_all_roles method to
1737 Moose::Meta::Class and Moose::Meta::Role
1740 This module has been tested against Class::MOP 0.30
1741 but it does not yet utilize the optimizations
1742 it makes available. Stay tuned for that ;)
1744 0.09_03 Fri. June 23, 2006
1745 ++ DEVELOPER RELEASE ++
1747 - 'use strict' and 'use warnings' are no longer
1748 needed in Moose classes, Moose itself will
1749 turn them on for you.
1750 - added tests for this
1751 - moved code from exported subs to private methods
1752 in Moose::Meta::Class
1755 - as with Moose, strict and warnings are
1756 automatically turned on for you.
1757 - added tests for this
1760 - now handles an edge case for override errors
1761 - added tests for this
1762 - added some more edge case tests
1764 0.09_02 Tues. May 16, 2006
1765 ++ DEVELOPER RELEASE ++
1767 - added prototypes to the exported subs
1771 - added prototypes to the exported subs
1774 * Moose::Util::TypeConstraints
1775 - cleaned up prototypes for the subs
1778 0.09_01 Fri. May 12, 2006
1779 ++ DEVELOPER RELEASE ++
1780 - This release works in combination with
1781 Class::MOP 0.29_01, it is a developer
1782 release because it uses the a new
1783 instance sub-protocol and a fairly
1784 complete Role implementation. It has
1785 not yet been optimized, so it slower
1786 the the previous CPAN version. This
1787 release also lacks good updated docs,
1788 the official release will have updated docs.
1791 - refactored the keyword exports
1792 - 'with' now checks Role validaity and
1793 accepts more than one Role at a time
1794 - 'extends' makes metaclass adjustments as
1795 needed to ensure metaclass compatibility
1798 - refactored the keyword exports
1799 - 'with' now checks Role validaity and
1800 accepts more than one Role at a time
1802 * Moose::Util::TypeConstraints
1803 - added the 'enum' keyword for simple
1804 string enumerations which can be used as
1806 - see example of usage in t/202_example.t
1809 - more careful checking of params to new()
1812 - much work done on the role composition
1813 - many new tests for conflict detection
1814 and composition edge cases
1815 - not enough documentation, I suggest
1816 looking at the tests
1818 * Moose::Meta::Instance
1819 - added new Instance metaclass to support
1820 the new Class::MOP instance protocol
1822 * Moose::Meta::Class
1823 - some small changes to support the new
1825 - some small additions to support Roles
1827 * Moose::Meta::Attribute
1828 - some improvements to the accessor generation code
1830 - some small changes to support the new
1832 - (still somewhat) experimental delegation support
1833 with the 'handles' option
1834 - added several tests for this
1835 - no docs for this yet
1837 0.05 Thurs. April 27, 2006
1839 - keywords are now exported with Sub::Exporter
1840 thanks to chansen for this commit
1841 - has keyword now takes a 'metaclass' option
1842 to support custom attribute meta-classes
1843 on a per-attribute basis
1844 - added tests for this
1845 - the 'has' keyword not accepts inherited slot
1846 specifications (has '+foo'). This is still an
1847 experimental feature and probably not finished
1848 see t/038_attribute_inherited_slot_specs.t for
1849 more details, or ask about it on #moose
1850 - added tests for this
1853 - keywords are now exported with Sub::Exporter
1855 * Moose::Utils::TypeConstraints
1856 - reorganized the type constraint hierarchy, thanks
1857 to nothingmuch and chansen for his help and advice
1859 - added some tests for this
1860 - keywords are now exported with Sub::Exporter
1861 thanks to chansen for this commit
1863 * Moose::Meta::Class
1864 - due to changes in Class::MOP, we had to change
1865 construct_instance (for the better)
1867 * Moose::Meta::Attribute
1868 - due to changes in Class::MOP, we had to add the
1869 initialize_instance_slot method (it's a good thing)
1871 * Moose::Meta::TypeConstraint
1872 - added type constraint unions
1873 - added tests for this
1874 - added the is_subtype_of predicate method
1875 - added tests for this
1877 0.04 Sun. April 16th, 2006
1879 - Roles can now consume other roles
1880 - added tests for this
1881 - Roles can specify required methods now with
1882 the requires() keyword
1883 - added tests for this
1886 - ripped out much of it's guts ,.. much cleaner now
1887 - added required methods and correct handling of
1888 them in apply() for both classes and roles
1889 - added tests for this
1890 - no longer adds a does() method to consuming classes
1891 it relys on the one in Moose::Object
1892 - added roles attribute and some methods to support
1893 roles consuming roles
1895 * Moose::Meta::Attribute
1896 - added support for triggers on attributes
1897 - added tests for this
1898 - added support for does option on an attribute
1899 - added tests for this
1901 * Moose::Meta::Class
1902 - added support for attribute triggers in the
1904 - added tests for this
1907 - Moose no longer creates a subtype for your class
1908 if a subtype of the same name already exists, this
1909 should DWIM in 99.9999% of all cases
1911 * Moose::Util::TypeConstraints
1912 - fixed bug where incorrect subtype conflicts were
1914 - added test for this
1917 - this class can now be extended with 'use base' if
1918 you need it, it properly loads the metaclass class now
1919 - added test for this
1921 0.03_02 Wed. April 12, 2006
1923 - you must now explictly use Moose::Util::TypeConstraints
1924 it no longer gets exported for you automatically
1927 - new() now accepts hash-refs as well as key/value lists
1928 - added does() method to check for Roles
1929 - added tests for this
1931 * Moose::Meta::Class
1932 - added roles attribute along with the add_role() and
1934 - added tests for this
1937 - now adds a does() method to consuming classes
1938 which tests the class's hierarchy for roles
1939 - added tests for this
1941 0.03_01 Mon. April 10, 2006
1943 - added new Role recipe (no content yet, only code)
1946 - added 'with' keyword for Role support
1947 - added test and docs for this
1948 - fixed subtype quoting bug
1949 - added test for this
1953 - added test and docs
1955 * Moose::Util::TypeConstraints
1956 - added the message keyword to add custom
1957 error messages to type constraints
1960 - the meta role to support Moose::Role
1961 - added tests and docs
1963 * Moose::Meta::Class
1964 - moved a number of things from Moose.pm
1965 to here, they should have been here
1968 * Moose::Meta::Attribute
1969 - moved the attribute option macros here
1970 instead of putting them in Moose.pm
1972 * Moose::Meta::TypeConstraint
1973 - added the message attributes and the
1975 - added tests and docs for this
1977 0.03 Thurs. March 30, 2006
1979 - added the Moose::Cookbook with 5 recipes,
1980 describing all the stuff Moose can do.
1983 - fixed an issue with &extends super class loading
1984 it now captures errors and deals with inline
1985 packages correctly (bug found by mst, solution
1987 - added super/override & inner/augment features
1988 - added tests and docs for these
1991 - BUILDALL now takes a reference of the %params
1992 that are passed to &new, and passes that to
1995 * Moose::Util::TypeConstraints
1996 - Type constraints now survive runtime reloading
1997 - added test for this
1999 * Moose::Meta::Class
2000 - fixed the way attribute defaults are handled
2001 during instance construction (bug found by chansen)
2003 * Moose::Meta::Attribute
2004 - read-only attributes now actually enforce their
2005 read-only-ness (this corrected in Class::MOP as
2008 0.02 Tues. March 21, 2006
2010 - many more tests, fixing some bugs and
2012 - &extends now loads the base module with
2014 - added UNIVERSAL::require to the
2017 - each new Moose class will also create
2018 and register a subtype of Object which
2019 correspond to the new Moose class.
2020 - the 'isa' option in &has now only
2021 accepts strings, and will DWIM in
2024 * Moose::Util::TypeConstraints
2025 - added type coercion features
2026 - added tests for this
2027 - added support for this in attributes
2028 and instance construction
2030 - type construction no longer creates a
2031 function, it registers the type instead.
2032 - added several functions to get the
2036 - BUILDALL and DEMOLISHALL were broken
2037 because of a mis-named hash key, Whoops :)
2039 * Moose::Meta::Attribute
2040 - adding support for coercion in the
2041 autogenerated accessors
2043 * Moose::Meta::Class
2044 - adding support for coercion in the
2045 instance construction
2047 * Moose::Meta::TypeConstraint
2048 * Moose::Meta::TypeCoercion
2049 - type constraints and coercions are now
2050 full fledges meta-objects
2052 0.01 Wed. March 15, 2006
2053 - Moooooooooooooooooose!!!