1 Revision history for Perl extension Moose
3 0.62_02 Fri, December 5, 2008
4 * Moose::Meta::Role::Application::ToClass
5 - When a class does not provide all of a role's required
6 methods, the error thrown now mentions all of the missing
7 methods, as opposed to just the first one found. Requested by
8 Michael Schwern (RT #41119). (Dave Rolsky)
10 * Moose::Meta::Method::Constructor
11 - Moose will no longer inline a constructor for your class
12 unless it inherits its constructor from Moose::Object, and
13 will warn when it doesn't inline. If you want to force
14 inlining anyway, pass "replace_constructor => 1" to
15 make_immutable. Addresses RT #40968, reported by Jon
17 - The quoting of default values could be broken if the default
18 contained a single quote ('). Now we use quotemeta to escape
19 anything potentially dangerous in the defaults. (Dave Rolsky)
21 0.62_01 Wed, December 3, 2008
23 - use the method->execute API for BUILDALL
24 and DEMOLISHALL (Sartak)
26 * Moose::Util::TypeConstraints
27 - We now make all the type constraint meta classes immutable
28 before creating the default types provided by Moose. This
29 should make loading Moose a little faster. (Dave Rolsky)
31 0.62 Wed November 26, 2008
32 * Moose::Meta::Role::Application::ToClass
33 Moose::Meta::Role::Application::ToRole
34 - fixed issues where excluding and aliasing the
35 same methods for a single role did not work
36 right (worked just fine with multiple
38 - added test for this (stevan)
40 * Moose::Meta::Role::Application::RoleSummation
41 - fixed the error message when trying to compose
42 a role with a role it excludes (Sartak)
45 - Catch another case where recursion caused the value
46 of $CALLER to be stamped on (t0m)
47 - added test for this (t0m)
50 - Remove the make_immutable keyword, which has been
51 deprecated since April. It breaks metaclasses that
52 use Moose without no Moose (Sartak)
54 * Moose::Meta::Attribute
55 - Removing an attribute from a class now also removes delegation
56 (handles) methods installed for that attribute (t0m)
57 - added test for this (t0m)
59 * Moose::Meta::Method::Constructor
60 - An attribute with a default that looked like a number (but was
61 really a string) would accidentally be treated as a number
62 when the constructor was made immutable (perigrin)
63 - added test for this (perigrin)
66 - create method for constructing a role
68 - added test for this (Sartak)
69 - anonymous roles! (Sartak)
70 - added test for this (Sartak)
73 - more consistent error messages (Sartak)
75 * Moose::Cookbook::Roles::Recipe1
76 - attempt to explain why a role that just requires
77 methods is useful (Sartak)
79 0.61 Fri November 7, 2008
80 * Moose::Meta::Attribute
81 - When passing a role to handles, it will be loaded if necessary
85 - Method objects returned by get_method (and other methods)
86 Could end up being returned without an associated_metaclass
87 attribute. Removing get_method_map, which is provided by
88 Class::MOP::Class, fixed this. The Moose version did nothing
89 different from its parent except introduce a bug. (Dave Rolsky)
90 - added tests for this (jdv79)
93 - Added a $VERSION to all .pm files which didn't have one. Fixes
94 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
96 * Moose::Cookbook::Basics::Recipe4
97 * Moose::Cookbook::Basics::Recipe6
98 - These files had spaces on the first line of the SYNOPSIS, as
99 opposed to a totally empty line. According to RT #40432, this
100 confuses POD parsers. (Dave Rolsky)
102 0.60 Fri October 24, 2008
104 - Passing "-traits" when loading Moose caused the Moose.pm
105 exports to be broken. Reported by t0m. (Dave Rolsky)
106 - Tests for this bug. (t0m)
109 - Change resolve_metaclass alias to use the new
110 load_first_existing_class function. This makes it a lot
111 simpler, and also around 5 times faster. (t0m)
112 - Add caching to resolve_metaclass_alias, which gives an order
113 of magnitude speedup to things which repeatedly call the
114 Moose::Meta::Attribute->does method, notably MooseX::Storage
117 * Moose::Util::TypeConstraint
118 - Put back the changes for parameterized constraints that
119 shouldn't have been removed in 0.59. We still cannot parse
120 them, but MooseX modules can create them in some other
121 way. See the 0.58 changes for more details. (jnapiorkowski)
122 - Changed the way subtypes are created so that the job is
123 delegated to a type constraint parent. This clears up some
124 hardcoded checking and should allow correct subtypes of
125 Moose::Meta::Type::Constraint. Don't rely on this new API too
126 much (create_child_type) because it may go away in the
127 future. (jnapiorkowski)
129 * Moose::Meta::TypeConstraint::Union
130 - Type constraint names are sorted as strings, not numbers.
133 * Moose::Meta::TypeConstraint::Parameterizable
134 - New parameterize method. This can be used as a factory method
135 to make a new type constraint with a given parameterized
136 type. (jnapiorkowski)
137 - added tests (jnapiorkowski)
139 0.59 Tue October 14, 2008
141 - Add abridged documentation for builder/default/initializer/
142 predicate, and link to more details sections in
143 Class::MOP::Attribute. (t0m)
145 * Moose::Util::TypeConstraints
146 - removed prototypes from all but the &-based stuff (mst)
148 * Moose::Util::TypeConstraints
149 - Creating a anonymous subtype with both a constraint and a
150 message failed with a very unhelpful error, but should just
151 work. Reported by t0m. (Dave Rolsky)
154 - Some tests that used Test::Warn if it was available failed
155 with older versions of Test::Warn. Reported by Fayland. (Dave
157 - Test firing behavior of triggers in relation to builder/default/
159 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
160 kinds of supported type. (t0m)
163 - In create(), do not pass "roles" option to the superclass
164 - added related test that creates an anon metaclass with
167 * Moose::Meta::TypeConstraint::Class
168 * Moose::Meta::TypeConstraint::Role
169 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
170 other types (as per change in 0.55_02). (t0m)
172 * Moose::Meta::TypeConstraint::Registry
173 - Fix warning when dealing with unknown type names (t0m)
175 * Moose::Util::TypeConstraints
176 - Reverted changes from 0.58 related to handle parameterized
177 types. This caused random failures on BSD and Win32 systems,
178 apparently related to the regex engine. This means that Moose
179 can no longer parse structured type constraints like
180 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
181 supported in a slightly different way via MooseX::Types some
182 time in the future. (Dave Rolsky)
184 0.58 Sat September 20, 2008
185 !! This release has an incompatible change regarding !!
186 !! how roles add methods to a class !!
188 * Roles and role application
189 ! Roles now add methods by calling add_method, not
190 alias_method. They make sure to always provide a method
191 object, which will be cloned internally. This means that it is
192 now possible to track the source of a method provided by a
193 role, and even follow its history through intermediate roles.
195 This means that methods added by a role now show up when
196 looking at a class's method list/map. (Dave Rolsky)
199 - From this release on, we'll try to maintain a list of
200 conflicting modules, and warn you if you have one
201 installed. For example, this release conflicts with ...
202 - MooseX::Singleton <= 0.11
203 - MooseX::Params::Validate <= 0.05
206 In general, we try to not break backwards compatibility for
207 most Moose users, but MooseX modules and other code which
208 extends Moose's metaclasses is often affected by very small
209 changes in the Moose internals.
211 * Moose::Meta::Method::Delegation
212 * Moose::Meta::Attribute
213 - Delegation methods now have their own method class. (Dave
216 * Moose::Meta::TypeConstraint::Parameterizable
217 - Added a new method 'parameterize' which is basically a factory
218 for the containing constraint. This makes it easier to create
219 new types of parameterized constraints. (jnapiorkowski)
221 * Moose::Meta::TypeConstraint::Union
222 - Changed the way Union types canonicalize their names to follow
223 the normalized TC naming rules, which means we strip all
224 whitespace. (jnapiorkowski)
226 * Moose::Util::TypeConstraints
227 - Parameter and Union args are now sorted, this makes Int|Str
228 the same constraint as Str|Int. (jnapiorkowski)
229 - Changes to the way Union types are parsed to more correctly
230 stringify their names. (jnapiorkowski)
231 - When creating a parameterized type, we now use the new
232 parameterize method. (jnapiorkowski)
233 - Incoming type constraint strings are now normalized to remove
234 all whitespace differences. (jnapiorkowski)
235 - Changed the way we parse type constraint strings so that we now
236 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
237 constraints. This lays the foundation for more flexible type
238 constraint implementations.
240 * Tests and docs for all the above. (jnapiorkowski)
244 - Moose::Exporter will no longer remove a subroutine that the
245 exporting package re-exports. Moose re-exports the
246 Carp::confess function, among others. The reasoning is that we
247 cannot know whether you have also explicitly imported those
248 functions for your own use, so we err on the safe side and
249 always keep them. (Dave Rolsky)
250 - added tests for this (rafl)
253 - Changes to how we fix metaclass compatibility that are much
254 too complicated to go into. The summary is that Moose is much
255 less likely to complain about metaclass incompatibility
256 now. In particular, if two metaclasses differ because
257 Moose::Util::MetaRole was used on the two corresponding
258 classes, then the difference in roles is reconciled for the
259 subclass's metaclass. (Dave Rolsky)
260 - Squashed an warning in _process_attribute (thepler)
263 - throw exceptions (sooner) for invalid attribute names (thepler)
264 - added tests for this (thepler)
266 * Moose::Util::MetaRole
267 - If you explicitly set a constructor or destructor class for a
268 metaclass object, and then applied roles to the metaclass,
269 that explicitly set class would be lost and replaced with the
273 * Moose::Meta::Attribute
274 * Moose::Meta::Method
277 * Moose::Error::Default
278 * Moose::Error::Croak
279 * Moose::Error::Confess
280 - All instances of confess() changed to use overridable
281 C<throw_error> method. This method ultimately calls a class
282 constructor, and you can change the class being called. In
283 addition, errors now pass more information than just a string.
284 The default C<error_class> behaves like C<Carp::confess>, so
285 the behavior is not visibly different for end users.
287 0.57 Wed September 3, 2008
289 - A new bit of doc intended to introduce folks familiar with
290 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
293 - Shows examples of two classes, each done first with and then
294 without Moose. This makes a nice parallel to
295 Moose::Intro. (Dave Rolsky)
297 * Moose::Util::TypeConstraints
298 - Fixed a bug in find_or_parse_type_constraint so that it
299 accepts a Moose::Meta::TypeConstraint object as the parent
300 type, not just a name (jnapiorkowski)
301 - added tests (jnapiorkowski)
304 - If Sub::Name was not present, unimporting failed to actually
305 remove some sugar subs, causing test failures (Dave Rolsky)
307 0.56 Mon September 1, 2008
308 For those not following the series of dev releases, there are
309 several major changes in this release of Moose.
310 ! Moose::init_meta should now be called as a method. See the
313 - Major performance improvements by nothingmuch.
315 - New modules for extension writers, Moose::Exporter and
316 Moose::Util::MetaRole by Dave Rolsky.
318 - Lots of doc improvements and additions, especially in the
323 * Removed all references to the experimental-but-no-longer-needed
324 Moose::Meta::Role::Application::ToMetaclassInstance.
326 * Require Class::MOP 0.65.
328 0.55_04 Sat August 30, 2008
329 * Moose::Util::MetaRole
330 * Moose::Cookbook::Extending::Recipe2
331 - This simplifies the application of roles to any meta class, as
332 well as the base object class. Reimplemented metaclass traits
333 using this module. (Dave Rolsky)
335 * Moose::Cookbook::Extending::Recipe1
336 - This a new recipe, an overview of various ways to write Moose
337 extensions (Dave Rolsky)
339 * Moose::Cookbook::Extending::Recipe3
340 * Moose::Cookbook::Extending::Recipe4
341 - These used to be Extending::Recipe1 and Extending::Recipe2,
344 0.55_03 Fri August 29, 2008
345 * No changes from 0.55_02 except increasing the Class::MOP
346 dependency to 0.64_07.
348 0.55_02 Fri August 29, 2008
349 * Makefile.PL and Moose.pm
350 - explicitly require Perl 5.8.0+ (Dave Rolsky)
352 * Moose::Util::TypeConstraints
353 - Fix warnings from find_type_constraint if the type is not
356 * Moose::Meta::TypeConstraint
357 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
358 return false if the type you specify cannot be found in the
359 type registry, rather than throwing an unhelpful and
360 coincidental exception. (t0m).
361 - added docs & test for this (t0m)
363 * Moose::Meta::TypeConstraint::Registry
364 - add_type_constraint now throws an exception if a parameter is
366 - added docs & test for this (t0m)
368 * Moose::Cookbook::FAQ
369 - Added a faq entry on the difference between "role" and "trait"
373 - Fixed a bug that caused role composition to not see a required
374 method when that method was provided by another role being
375 composed at the same time. (Dave Rolsky)
376 - test and bug finding (tokuhirom)
378 0.55_01 Wed August 20, 2008
380 !! Calling Moose::init_meta as a function is now !!
381 !! deprecated. Please see the Moose.pm docs for details. !!
383 * Moose::Meta::Method::Constructor
384 - Fix inlined constructor so that values produced by default
385 or builder methods are coerced as required. (t0m)
386 - added test for this (t0m)
388 * Moose::Meta::Attribute
389 - A lazy attribute with a default or builder did not attempt to
390 coerce the default value. The immutable code _did_
392 - added test for this (t0m)
395 - This is a new helper module for writing "Moose-alike"
396 modules. This should make the lives of MooseX module authors
397 much easier. (Dave Rolsky)
400 * Moose::Cookbook::Meta::Recipe5
401 - Implemented metaclass traits (and wrote a recipe for it):
403 use Moose -traits => 'Foo'
405 This should make writing small Moose extensions a little
408 * Moose::Cookbook::Basics::Recipe1
409 - Removed any examples of direct hashref access, and applied an
410 editorial axe to reduce verbosity. (Dave Rolsky)
412 * Moose::Cookbook::Basics::Recipe1
413 - Also applied an editorial axe here. (Dave Rolsky)
416 * Moose::Cookbook::Extending::Recipe1
417 * Moose::Cookbook::Extending::Recipe2
418 - Rewrote extending and embedding moose documentation and
419 recipes to use Moose::Exporter (Dave Rolsky)
423 - These two modules now warn when you load them from the main
424 package "main" package, because we will not export sugar to
425 main. Previously it just did nothing. (Dave Rolsky)
428 - Now provide an init_meta method just like Moose.pm, and you
429 can call this to provide an alternate role metaclass. (Dave
430 Rolsky and nothingmuch)
431 - get_method_map now respects the package cache flag (nothingmuch)
434 - Two new methods - add_method and wrap_method_body
438 - Optimizations including allowing constructors to accept hash
439 refs, making many more classes immutable, and making
440 constructors immutable. (nothingmuch)
442 0.55 Sun August 3, 2008
443 * Moose::Meta::Attribute
444 - breaking down the way 'handles' methods are
445 created so that the process can be more easily
446 overridden by subclasses (stevan)
448 * Moose::Meta::TypeConstraint
449 - fixing what is passed into a ->message with
450 the type constraints (RT #37569)
451 - added tests for this (Charles Alderman)
453 * Moose::Util::TypeConstraints
454 - fix coerce to accept anon types like subtype can (mst)
457 - reorganized the recipes into sections - Basics, Roles, Meta,
458 Extending - and wrote abstracts for each section (Dave Rolsky)
460 * Moose::Cookbook::Basics::Recipe10
461 - A new recipe that demonstrates operator overloading
462 in combination with Moose. (bluefeet)
464 * Moose::Cookbook::Meta::Recipe1
465 - an introduction to what meta is and why you'd want to make
466 your own metaclass extensions (Dave Rolsky)
468 * Moose::Cookbook::Meta::Recipe4
469 - a very simple metaclass example (Dave Rolsky)
471 * Moose::Cookbook::Extending::Recipe1
472 - how to write a Moose-alike module to use your own object base
475 * Moose::Cookbook::Extending::Recipe2
476 - how to write modules with an API just like C<Moose.pm> (Dave
480 - Tons of fixes, both syntactical and grammatical (Dave
481 Rolsky, Paul Fenwick)
483 0.54 Thurs. July 3, 2008
484 ... this is not my day today ...
486 * Moose::Meta::Attribute
487 - fixed legal_options_for_inheritance such that
488 clone_and_inherit options still works for
489 Class::MOP::Attribute objects and therefore
490 does not break MooseX::AttributeHelpers
493 0.53 Thurs. July 3, 2008
494 * Whoops, I guess I should run 'make manifest' before
495 actually releasing the module. No actual changes
496 in this release, except the fact that it includes
497 the changes that I didn't include in the last
500 0.52 Thurs. July 3, 2008
502 - added "FEATURE REQUESTS" section to the Moose docs
503 to properly direct people (stevan) (RT #34333)
504 - making 'extends' croak if it is passed a Role since
505 this is not ever something you want to do
506 (fixed by stevan, found by obra)
507 - added tests for this (stevan)
510 - adding support for DOES (as in UNIVERSAL::DOES)
512 - added test for this
514 * Moose::Meta::Attribute
515 - added legal_options_for_inheritance (wreis)
516 - added tests for this (wreis)
518 * Moose::Cookbook::Snacks::*
519 - removed some of the unfinished snacks that should
520 not have been released yet. Added some more examples
521 to the 'Keywords' snack. (stevan)
523 * Moose::Cookbook::Style
524 - added general Moose "style guide" of sorts to the
525 cookbook (nothingmuch) (RT #34335)
528 - added more BUILDARGS tests (stevan)
530 0.51 Thurs. Jun 26, 2008
532 - add unimport so "no Moose::Role" actually does
535 * Moose::Meta::Role::Application::ToRole
536 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
537 order to provide its own implementation, that method still got
538 added to the list of required methods for consumers of
539 RoleB. Now an aliased method is only added to the list of
540 required methods if the role doing the aliasing does not
541 provide its own implementation. See Recipe 11 for an example
542 of all this. (Dave Rolsky)
543 - added tests for this
545 * Moose::Meta::Method::Constructor
546 - when a single argument that wasn't a hashref was provided to
547 an immutabilized constructor, the error message was very
548 unhelpful, as opposed to the non-immutable error. Reported by
550 - added test for this (Dave Rolsky)
552 * Moose::Meta::Attribute
553 - added support for meta_attr->does("ShortAlias") (sartak)
554 - added tests for this (sartak)
555 - moved the bulk of the `handles` handling to the new
556 install_delegation method (Stevan)
559 - Added BUILDARGS, a new step in new()
561 * Moose::Meta::Role::Application::RoleSummation
562 - fix typos no one ever sees (sartak)
564 * Moose::Util::TypeConstraints
565 * Moose::Meta::TypeConstraint
566 * Moose::Meta::TypeCoercion
567 - Attempt to work around the ??{ } vs. threads issue
569 - Some null_constraint optimizations
571 0.50 Thurs. Jun 11, 2008
572 - Fixed a version number issue by bumping all modules
575 0.49 Thurs. Jun 11, 2008
576 !! This version now approx. 20-25% !!
577 !! faster with new Class::MOP 0.59 !!
579 * Moose::Meta::Attribute
580 - fixed how the is => (ro|rw) works with
581 custom defined reader, writer and accessor
583 - added docs for this (TODO).
584 - added tests for this (Thanks to Penfold)
585 - added the custom attribute alias for regular
586 Moose attributes which is "Moose"
587 - fix builder and default both being used
592 Moose::Meta::Attribute
594 Moose::Meta::Role::Composite
595 Moose::Util::TypeConstraints
596 - switched usage of reftype to ref because
600 - changing add_package_symbol to use the new
604 - fixed how DEMOLISHALL is called so that it
605 can be overrided in subclasses (thanks to Sartak)
606 - added test for this (thanks to Sartak)
608 * Moose::Util::TypeConstraints
609 - move the ClassName type check code to
610 Class::MOP::is_class_loaded (thanks to Sartak)
612 * Moose::Cookbook::Recipe11
613 - add tests for this (thanks to tokuhirom)
615 0.48 Thurs. May 29, 2008
616 (early morning release engineering)--
618 - fixing the version in Moose::Meta::Method::Destructor
619 which was causing the indexer to choke
621 0.47 Thurs. May 29, 2008
622 (late night release engineering)--
624 - fixing the version is META.yml, no functional
625 changes in this release
627 0.46 Wed. May 28, 2008
628 !! This version now approx. 20-25% !!
629 !! faster with new Class::MOP 0.57 !!
632 - some optimizations of the &initialize method
633 since it is called so often by &meta
637 - now use the get_all_package_symbols from the
638 updated Class::MOP, test suite is now 10 seconds
641 * Moose::Meta::Method::Destructor
642 - is_needed can now also be called as a class
643 method for immutablization to check if the
644 destructor object even needs to be created
647 * Moose::Meta::Method::Destructor
648 Moose::Meta::Method::Constructor
649 - added more descriptive error message to help
650 keep people from wasting time tracking an error
651 that is easily fixed by upgrading.
653 0.45 Saturday, May 24, 2008
655 - Because of work in Class::MOP 0.57, all
656 XS based functionality is now optional
657 and a Pure Perl version is supplied
658 - the CLASS_MOP_NO_XS environment variable
659 can now be used to force non-XS versions
661 - several of the packages have been tweaked
662 to take care of this, mostly we added
663 support for the package_name and name
664 variables in all the Method metaclasses
665 - before/around/after method modifiers now
666 support regexp matching of names
667 (thanks to Takatoshi Kitano)
668 - tests added for this
669 - NOTE: this only works for classes, it
670 is currently not supported in roles,
671 but, ... patches welcome
672 - All usage of Carp::confess have been replaced
673 by Carp::croak in the "keyword" functions since
674 the stack trace is usually not helpful
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
680 - The 'has' keyword for roles now accepts the
681 same array ref form that Moose.pm does
682 (has [qw/foo bar/] => (is => 'rw', ...))
683 - added test for this
685 * Moose::Meta::Attribute
686 - trigger on a ro-attribute is no longer an
687 error, as it's useful to trigger off of the
691 - added same 'add_package_symbol' fix as in
695 - does_role now handles non-Moose classes
697 - added tests for this
698 - added the 'add_method_modifier' function
699 (thanks to Takatoshi Kitano)
701 * Moose::Util::TypeConstraints
702 - subtypes of parameterizable types now are
703 themselves parameterizable types
705 * Moose::Meta::Method::Constructor
706 - fixed bug where trigger was not being
707 called by the inlined immutable
709 - added test for this (thanks to Caelum)
711 * Moose::Meta::Role::Application::ToInstance
712 - now uses the metaclass of the instance
713 (if possible) to create the anon-class
714 (thanks Jonathan Rockway)
716 * Moose::Cookbook::Recipe22
717 - added the meta-attribute trait recipe
721 - fixed hash-ordering test bug that was
722 causing occasional cpantester failures
723 - renamed the t/000_recipe/*.t tests to be
724 more descriptive (thanks to Sartak)
726 0.44 Sat. May 10, 2008
728 - made make_immutable warning cluck to
729 show where the error is (thanks mst)
732 - BUILDALL and DEMOLISHALL now call
733 ->body when looping through the
734 methods, to avoid the overloaded
736 - fixed issue where DEMOLISHALL was
737 eating the $@ values, and so not
738 working correctly, it still kind of
739 eats them, but so does vanilla perl
740 - added tests for this
742 * Moose::Cookbook::Recipe7
743 - added new recipe for immutable
744 functionality (thanks Dave Rolsky)
746 * Moose::Cookbook::Recipe9
747 - added new recipe for builder and
748 lazy_build (thanks Dave Rolsky)
750 * Moose::Cookbook::Recipe11
751 - added new recipe for method aliasing
752 and exclusion with Roles (thanks Dave Rolsky)
755 - fixed Win32 test failure (thanks spicyjack)
757 ~ removed Build.PL and Module::Build compat
758 since Module::Install has done that.
760 0.43 Wed. April, 30, 2008
762 drink more coffee before
763 doing release engineering
765 - whoops, forgot to do the smolder tests,
766 and we broke some of the custom meta-attr
767 modules. This fixes that.
769 0.42 Mon. April 28, 2008
770 - some bad tests slipped by, nothing else
771 changed in this release (cpantesters++)
773 - upped the Class::MOP dependency to 0.55
774 since we have tests which need the C3
777 0.41 Mon. April 28, 2008
778 ~~ numerous documentation updates ~~
780 - Changed all usage of die to Carp::croak for better
781 error reporting (initial patch by Tod Hagan)
784 - the make_immutable keyword is now deprecated, don't
785 use it in any new code and please fix your old code
786 as well. There will be 2 releases, and then it will
792 - refactored the way inner and super work to avoid
793 any method/@ISA cache penalty (nothingmuch)
796 - fixing &new_object to make sure trigger gets the
797 coerced value (spotted by Charles Alderman on the
799 - added test for this
801 * Moose::Meta::Method::Constructor
802 - immutable classes which had non-lazy attributes were calling
803 the default generating sub twice in the constructor. (bug
804 found by Jesse Luehrs, fixed by Dave Rolsky)
805 - added tests for this (Dave Rolsky)
806 - fix typo in initialize_body method (nothingmuch)
808 * Moose::Meta::Method::Destructor
809 - fix typo in initialize_body method (nothingmuch)
811 * Moose::Meta::Method::Overriden
812 Moose::Meta::Method::Augmented
813 - moved the logic for these into their own
814 classes (nothingmuch)
816 * Moose::Meta::Attribute
817 - inherited attributes may now be extended without
818 restriction on the type ('isa', 'does') (Sartak)
819 - added tests for this (Sartak)
820 - when an attribute property is malformed (such as lazy without
821 a default), give the name of the attribute in the error
823 - added the &applied_traits and &has_applied_traits methods
824 to allow introspection of traits
825 - added tests for this
826 - moved 'trait' and 'metaclass' argument handling to here from
828 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
829 '+foo' syntax) (nothingmuch)
830 - added tests for this (t0m)
833 - localize $@ inside DEMOLISHALL to avoid it
834 eating $@ (found by Ernesto)
835 - added test for this (thanks to Ernesto)
837 * Moose::Util::TypeConstraints
838 - &find_type_constraint now DWIMs when given an
839 type constraint object or name (nothingmuch)
840 - &find_or_create_type_constraint superseded with a number of more
842 - find_or_create_{isa,does}_type_constraint
843 - find_or_parse_type_constraint
845 * Moose::Meta::TypeConstraint
846 Moose::Meta::TypeConstraint::Class
847 Moose::Meta::TypeConstraint::Role
848 Moose::Meta::TypeConstraint::Enum
849 Moose::Meta::TypeConstraint::Union
850 Moose::Meta::TypeConstraint::Parameterized
851 - added the &equals method for comparing two type
852 constraints (nothingmuch)
853 - added tests for this (nothingmuch)
855 * Moose::Meta::TypeConstraint
856 - add the &parents method, which is just an alias to &parent.
857 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
859 * Moose::Meta::TypeConstraint::Class
860 - added the class attribute for introspection purposes
862 - added tests for this
864 * Moose::Meta::TypeConstraint::Enum
865 Moose::Meta::TypeConstraint::Role
866 - broke these out into their own classes (nothingmuch)
868 * Moose::Cookbook::Recipe*
869 - fixed references to test file locations in the POD
870 and updated up some text for new Moose features
874 - Added &resolve_metaclass_alias, a helper function for finding an actual
875 class for a short name (e.g. in the traits list)
877 0.40 Fri. March 14, 2008
878 - I hate Pod::Coverage
880 0.39 Fri. March 14, 2008
882 - documenting the use of '+name' with attributes
883 that come from recently composed roles. It makes
884 sense, people are using it, and so why not just
885 officially support it.
886 - fixing the 'extends' keyword so that it will not
887 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
890 - added the perl -Moose=+Class::Name feature to allow
891 monkeypatching of classes in one liners
894 - fixing the 'apply_all_roles' keyword so that it will not
895 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
898 - added ->create method which now supports roles (thanks to jrockway)
899 - added tests for this
900 - added ->create_anon_class which now supports roles and caching of
901 the results (thanks to jrockway)
902 - added tests for this
903 - made ->does_role a little more forgiving when it is
904 checking a Class::MOP era metaclasses.
906 * Moose::Meta::Role::Application::ToInstance
907 - it is now possible to pass extra params to be used when
908 a role is applied to an the instance (rebless_params)
909 - added tests for this
911 * Moose::Util::TypeConstraints
912 - class_type now accepts an optional second argument for a
913 custom message. POD anotated accordingly (groditi)
914 - added tests for this
915 - it is now possible to make anon-enums by passing 'enum' an
916 ARRAY ref instead of the $name => @values. Everything else
918 - added tests for this
921 - making test for using '+name' on attributes consumed
922 from a role, it works and makes sense too.
924 * Moose::Meta::Attribute
925 - fix handles so that it doesn't return nothing
926 when the method cannot be found, not sure why
927 it ever did this originally, this means we now
928 have slightly better support for AUTOLOADed
930 - added more delegation tests
931 - adding ->does method to this so as to better
932 support traits and their introspection.
933 - added tests for this
936 - localizing the Data::Dumper configurations so
937 that it does not pollute others (RT #33509)
938 - made ->does a little more forgiving when it is
939 passed Class::MOP era metaclasses.
941 0.38 Fri. Feb. 15, 2008
942 * Moose::Meta::Attribute
943 - fixed initializer to correctly do
944 type checking and coercion in the
946 - added tests for this
949 - fixed some finicky tests (thanks to konobi)
951 0.37 Thurs. Feb. 14, 2008
953 - fixed some details in Moose::init_meta
954 and its superclass handling (thanks thepler)
955 - added tests for this (thanks thepler)
956 - 'has' now dies if you don't pass in name
958 - added the 'make_immutable' keyword as a shortcut
962 Moose::Meta::Method::Constructor
963 Moose::Meta::Attribute
964 - making (init_arg => undef) work here too
965 (thanks to nothingmuch)
967 * Moose::Meta::Attribute
968 Moose::Meta::Method::Constructor
969 Moose::Meta::Method::Accessor
970 - make lazy attributes respect attr initializers (rjbs)
971 - added tests for this
973 * Moose::Util::TypeConstraints
974 Moose::Util::TypeConstraints::OptimizedConstraints
975 Moose::Meta::TypeConstraints
976 Moose::Meta::Attribute
977 Moose::Meta::Method::Constructor
978 Moose::Meta::Method::Accessor
979 - making type errors use the
980 assigned message (thanks to Sartak)
981 - added tests for this
983 * Moose::Meta::Method::Destructor
984 - making sure DESTROY gets inlined properly
985 with successive DEMOLISH calls (thanks to manito)
987 * Moose::Meta::Attribute
988 Moose::Meta::Method::Accessor
989 - fixed handling of undef with type constraints
991 - added tests for this
994 - added &get_all_init_args and &get_all_attribute_values
995 (thanks to Sartak and nothingmuch)
997 0.36 Sat. Jan. 26, 2008
999 Moose::Meta::Attribute
1000 - role type tests now support when roles are
1001 applied to non-Moose classes (found by ash)
1002 - added tests for this (thanks to ash)
1003 - couple extra tests to boost code coverage
1005 * Moose::Meta::Method::Constructor
1006 - improved fix for handling Class::MOP attributes
1007 - added test for this
1009 * Moose::Meta::Class
1010 - handled the add_attribute($attribute_meta_object)
1012 - added test for this
1014 0.35 Tues. Jan. 22, 2008
1015 * Moose::Meta::Method::Constructor
1016 - fix to make sure even Class::MOP attributes
1017 are handled correctly (Thanks to Dave Rolsky)
1018 - added test for this (also Dave Rolsky)
1020 * Moose::Meta::Class
1021 - improved error message on _apply_all_roles,
1022 you should now use Moose::Util::apply_all_roles
1023 and you shouldnt have been using a _ prefixed
1024 method in the first place ;)
1026 0.34 Mon. Jan. 21, 2008
1027 ~~~ more misc. doc. fixes ~~~
1028 ~~ updated copyright dates ~~
1030 Moose is now a postmodern object system :)
1031 - (see the POD for details)
1033 * <<Role System Refactoring>>
1034 - this release contains a major reworking and
1035 cleanup of the role system
1036 - 100% backwards compat.
1037 - Role application now restructured into seperate
1038 classes based on type of applicants
1039 - Role summation (combining of more than one role)
1040 is much cleaner and anon-classes are no longer
1041 used in this process
1042 - new Composite role metaclass
1043 - runtime application of roles to instances
1044 is now more efficient and re-uses generated
1045 classes when applicable
1047 * <<New Role composition features>>
1048 - methods can now be excluded from a given role
1050 - methods can now be aliased to another name (and
1051 still retain the original as well)
1053 * Moose::Util::TypeConstraints::OptimizedConstraints
1054 - added this module (see above)
1056 * Moose::Meta::Class
1057 - fixed the &_process_attribute method to be called
1058 by &add_attribute, so that the API is now correct
1060 * Moose::Meta::Method::Accessor
1061 - fixed bug when passing a list of values to
1062 an accessor would get (incorrectly) ignored.
1063 Thanks to Sartak for finding this ;)
1064 - added tests for this (Sartak again)
1066 * Moose::Meta::Method::Accessor
1067 Moose::Meta::Method::Constructor
1068 Moose::Meta::Attribute
1069 Moose::Meta::TypeConstraint
1070 Moose::Meta::TypeCoercion
1071 - lots of cleanup of such things as:
1073 - type constraint handling
1074 - error handling/messages
1075 (thanks to nothingmuch)
1077 * Moose::Meta::TypeConstraint::Parameterizable
1078 - added this module to support the refactor
1079 in Moose::Meta::TypeConstraint::Parameterized
1081 * Moose::Meta::TypeConstraint::Parameterized
1082 - refactored how these types are handled so they
1083 are more generic and not confined to ArrayRef
1087 - shortened some file names for better VMS support (RT #32381)
1089 0.33 Fri. Dec. 14, 2007
1090 !! Moose now loads 2 x faster !!
1091 !! with new Class::MOP 0.49 !!
1093 ++ new oose.pm module to make command line
1094 Moose-ness easier (see POD docs for more)
1096 * Moose::Meta::Class
1098 - several tweaks to take advantage of the
1099 new method map caching in Class::MOP
1101 * Moose::Meta::TypeConstraint::Parameterized
1102 - allow subtypes of ArrayRef and HashRef to
1103 be used as a container (sartak)
1104 - added tests for this
1105 - basic support for coercion to ArrayRef and
1106 HashRef for containers (sartak)
1107 - added tests for this
1109 * Moose::Meta::TypeCoercion
1110 - coercions will now create subtypes as needed
1111 so you can now add coercions to parameterized
1112 types without having to explictly define them
1113 - added tests for this
1115 * Moose::Meta::Method::Accessor
1116 - allow subclasses to decide whether we need
1117 to copy the value into a new variable (sartak)
1119 0.32 Tues. Dec. 4, 2007
1120 * Moose::Util::TypeConstraints
1121 - fixing how subtype aliases of unions work
1122 they should inherit the parent's coercion
1123 - added tests for this
1124 - you can now define multiple coercions on
1125 a single type at different times instead of
1126 having to do it all in one place
1127 - added tests for this
1129 * Moose::Meta::TypeConstraint
1130 - there is now a default constraint of sub { 1 }
1131 instead of Moose::Util::TypeConstraints setting
1134 * Moose::Meta::TypeCoercion
1135 * Moose::Meta::TypeCoercion::Union
1136 - added the &has_coercion_for_type and
1137 &add_type_coercions methods to support the
1138 new features above (although you cannot add
1139 more type coercions for Union types)
1141 0.31 Mon. Nov. 26, 2007
1142 * Moose::Meta::Attribute
1143 - made the +attr syntax handle extending types with
1144 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1145 now works if the original foo is an ArrayRef.
1146 - added tests for this.
1147 - delegation now works even if the attribute does not
1148 have a reader method using the get_read_method_ref
1149 method from Class::MOP::Attribute.
1150 - added tests for this
1151 - added docs for this
1153 * Moose::Util::TypeConstraints
1154 - passing no "additional attribute info" to
1155 &find_or_create_type_constraint will no longer
1156 attempt to create an __ANON__ type for you,
1157 instead it will just return undef.
1158 - added docs for this
1160 0.30 Fri. Nov. 23, 2007
1161 * Moose::Meta::Method::Constructor
1162 -builder related bug in inlined constructor. (groditi)
1164 * Moose::Meta::Method::Accessor
1165 - genereate unnecessary calls to predicates and refactor
1166 code generation for runtime speed (groditi)
1168 * Moose::Util::TypeConstraints
1169 - fix ClassName constraint to introspect symbol table (mst)
1170 - added more tests for this (mst)
1171 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1172 with work correctly.
1173 - added tests for this
1176 - adding the link to Recipie 11 (written by Sartak)
1177 - adding test for SYNOPSIS code
1180 - New tests for builder bug. Upon instantiation, if an
1181 attribute had a builder, no value and was not lazy the
1182 builder default was not getting run, oops. (groditi)
1184 0.29 Tues. Nov. 13, 2007
1185 * Moose::Meta::Attribute
1186 - Fix error message on missing builder method (groditi)
1188 * Moose::Meta::Method::Accessor
1189 - Fix error message on missing builder method (groditi)
1192 - Add test to check for the correct error message when
1193 builder method is missing (groditi)
1195 0.28 Tues. Nov. 13, 2007
1196 - 0.27 packaged incorrectly (groditi)
1198 0.27 Tues. Nov. 13, 2007
1199 * Moose::Meta::Attribute
1200 - Added support for the new builder option (groditi)
1201 - Added support for lazy_build option (groditi)
1202 - Changed slot initialization for predicate changes (groditi)
1204 * Moose::Meta::Method::Accessor
1205 - Added support for lazy_build option (groditi)
1206 - Fix inline methods to work with corrected predicate
1209 * Moose::Meta::Method::Constructor
1210 - Added support for lazy_build option (groditi)
1213 - tests for builder and lazy_build (groditi)
1215 * fixing some misc. bits in the docs that
1216 got mentioned on CPAN Forum & perlmonks
1219 - fixed how required methods are handled
1220 when they encounter overriden or modified
1221 methods from a class (thanks to confound).
1222 - added tests for this
1224 * Moose::Util::TypeConstraint
1225 - fixed the type notation parser so that
1226 the | always creates a union and so is
1227 no longer a valid type char (thanks to
1228 konobi, mugwump and #moose for working
1230 - added more tests for this
1232 0.26 Thurs. Sept. 27, 2007
1235 * Parameterized Types
1236 We now support parameterized collection types, such as:
1237 ArrayRef[Int] # array or integers
1238 HashRef[Object] # a hash with object values
1239 They can also be nested:
1240 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1241 And work with the type unions as well:
1242 ArrayRef[Int | Str] # array of integers of strings
1244 * Better Framework Extendability
1245 Moose.pm is now "extendable" such that it is now much
1246 easier to extend the framework and add your own keywords
1247 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1248 section of the Moose.pm docs.
1251 In an effort to begin documenting some of the various
1252 details of Moose as well as some common idioms, we have
1253 created Moose::Cookbook::Snacks as a place to find
1254 small (easily digestable) nuggets of Moose code.
1257 ~ Several doc updates/cleanup thanks to castaway ~
1259 - converted build system to use Module::Install instead of
1260 Module::Build (thanks to jrockway)
1263 - added all the meta classes to the immutable list and
1264 set it to inline the accessors
1265 - fix import to allow Sub::Exporter like { into => }
1266 and { into_level => } (perigrin)
1267 - exposed and documented init_meta() to allow better
1268 embedding and extending of Moose (perigrin)
1271 - complete re-organization of the test suite
1272 - added some new tests as well
1273 - finally re-enabled the Moose::POOP test since
1274 the new version of DBM::Deep now works again
1277 * Moose::Meta::Class
1278 - fixed very odd and very nasty recursion bug with
1280 - added tests for this (eilara)
1282 * Moose::Meta::Attribute
1283 Moose::Meta::Method::Constructor
1284 Moose::Meta::Method::Accessor
1285 - fixed issue with overload::Overloaded getting called
1286 on non-blessed items. (RT #29269)
1287 - added tests for this
1289 * Moose::Meta::Method::Accessor
1290 - fixed issue with generated accessor code making
1291 assumptions about hash based classes (thanks to dexter)
1293 * Moose::Coookbook::Snacks
1294 - these are bits of documentation, not quite as big as
1295 Recipes but which have no clear place in the module docs.
1296 So they are Snacks! (horray for castaway++)
1298 * Moose::Cookbook::Recipe4
1299 - updated it to use the new ArrayRef[MyType] construct
1300 - updated the accompanying test as well
1302 +++ Major Refactor of the Type Constraint system +++
1303 +++ with new features added as well +++
1305 * Moose::Util::TypeConstraint
1306 - no longer uses package variable to keep track of
1307 the type constraints, now uses the an instance of
1308 Moose::Meta::TypeConstraint::Registry to do it
1309 - added more sophisticated type notation parsing
1311 - added tests for this
1313 * Moose::Meta::TypeConstraint
1314 - some minor adjustments to make subclassing easier
1315 - added the package_defined_in attribute so that we
1316 can track where the type constraints are created
1318 * Moose::Meta::TypeConstraint::Union
1319 - this is now been refactored to be a subclass of
1320 Moose::Meta::TypeConstraint
1322 * Moose::Meta::TypeCoercion::Union
1323 - this has been added to service the newly refactored
1324 Moose::Meta::TypeConstraint::Union and is itself
1325 a subclass of Moose::Meta::TypeCoercion
1327 * Moose::Meta::TypeConstraint::Parameterized
1328 - added this module (taken from MooseX::AttributeHelpers)
1329 to help construct nested collection types
1330 - added tests for this
1332 * Moose::Meta::TypeConstraint::Registry
1333 - added this class to keep track of type constraints
1335 0.25 Mon. Aug. 13, 2007
1337 - Documentation update to reference Moose::Util::TypeConstraints
1338 under 'isa' in 'has' for how to define a new type
1339 (thanks to shlomif).
1341 * Moose::Meta::Attribute
1342 - required attributes now will no longer accept undef
1343 from the constructor, even if there is a default and lazy
1344 - added tests for this
1345 - default subroutines must return a value which passes the
1347 - added tests for this
1349 * Moose::Meta::Attribute
1350 * Moose::Meta::Method::Constructor
1351 * Moose::Meta::Method::Accessor
1352 - type-constraint tests now handle overloaded objects correctly
1353 in the error message
1354 - added tests for this (thanks to EvanCarroll)
1356 * Moose::Meta::TypeConstraint::Union
1357 - added (has_)hand_optimized_constraint to this class so that
1358 it behaves as the regular Moose::Meta::TypeConstraint does.
1361 - large refactoring of this code
1362 - added several more tests
1363 - tests for subtle conflict resolition issues
1364 added, but not currently running
1367 * Moose::Cookbook::Recipe7
1368 - added new recipe for augment/inner functionality
1370 - added test for this
1373 - a formal definition of roles (still in progress)
1376 - utilities for easier working with Moose classes
1377 - added tests for these
1380 - This contains Moose specific test functions
1381 - added tests for these
1383 0.24 Tues. July 3, 2007
1384 ~ Some doc updates/cleanup ~
1386 * Moose::Meta::Attribute
1387 - added support for roles to be given as parameters
1388 to the 'handles' option.
1389 - added tests and docs for this
1390 - the has '+foo' attribute form now accepts changes to
1391 the lazy option, and the addition of a handles option
1392 (but not changing the handles option)
1393 - added tests and docs for this
1396 - required methods are now fetched using find_method_by_name
1397 so that required methods can come from superclasses
1398 - adjusted tests for this
1400 0.23 Mon. June 18, 2007
1401 * Moose::Meta::Method::Constructor
1402 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1403 * Moose::Meta::Class
1404 - Modify make_immutable to work with the new Class::MOP immutable
1405 mechanism + POD + very basic test (groditi)
1406 * Moose::Meta::Attribute
1407 - Fix handles to use goto() so that caller() comes out properly on
1408 the other side (perigrin)
1410 0.22 Thurs. May 31, 2007
1411 * Moose::Util::TypeConstraints
1412 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1413 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1414 prototypes for functions
1415 - added the ClassName type constraint, this checks for strings
1416 which will respond true to ->isa(UNIVERSAL).
1417 - added tests and docs for this
1418 - subtyping just in name now works correctly by making the
1419 default for where be { 1 }
1420 - added test for this
1422 * Moose::Meta::Method::Accessor
1423 - coerce and lazy now work together correctly, thanks to
1424 merlyn for finding this bug
1425 - tests added for this
1426 - fix reader presedence bug in Moose::Meta::Attribute + tests
1429 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1430 a HASH-ref and missed. This produces better error messages then
1431 having it die cause undef is not a HASH.
1432 - added tests for this
1434 0.21 Thursday, May 2nd, 2007
1436 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1437 - modified unimport to remove super and inner along with the rest
1438 - altered unimport tests to handle this
1441 - altered super export to populate SUPER_SLOT
1443 * Moose::Meta::Class
1444 - altered augment and override modifier application to use *_SLOT
1445 - modified tests for these to unimport one test class each to test
1448 - fixed issue where custom attribute metaclasses
1449 where not handled correctly in roles
1450 - added tests for this
1452 * Moose::Meta::Class
1453 - fixed issue where extending metaclasses with
1454 roles would blow up. Thanks to Aankhen`` for
1455 finding this insidious error, and it's solution.
1457 ~~ lots of spelling and grammer fixes in the docs,
1458 many many thanks to rlb3 and Aankhen for these :)
1460 0.20 Friday, April 6th, 2007
1461 >> I messed up the SKIP logic in one test
1462 so this release is just to fix that.
1465 - 'has' now also accepts an ARRAY ref
1466 to create multiple attrs (see docs)
1467 (thanks to konobi for this)
1468 - added tests and docs
1470 0.19 Thurs. April 5th, 2007
1471 ~~ More documentation updates ~~
1473 * Moose::Util::TypeConstraints
1474 - 'type' now supports messages as well
1475 thanks to phaylon for finding this
1476 - added tests for this
1477 - added &list_all_type_constraints and
1478 &list_all_builtin_type_constraints
1479 functions to facilitate introspection.
1481 * Moose::Meta::Attribute
1482 - fixed regexp 'handles' declarations
1483 to build the list of delegated methods
1484 correctly (and not override important
1485 things like &new) thanks to ashleyb
1487 - added tests and docs for this
1488 - added the 'documentation' attributes
1489 so that you can actually document your
1490 attributes and inspect them through the
1492 - added tests and docs for this
1494 * Moose::Meta::Class
1495 - when loading custom attribute metaclasses
1496 it will first look in for the class in the
1497 Moose::Meta::Attribute::Custom::$name, and
1498 then default to just loading $name.
1499 - added tests and docs for this
1501 * Moose::Meta::TypeConstraint
1502 - type constraints now stringify to their names.
1503 - added test for this
1506 - added tests to assure we work with Module::Refresh
1507 - added stricter test skip logic in the Moose POOP
1508 test, ask Rob Kinyon why.
1509 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1511 0.18 Sat. March 10, 2007
1512 ~~ Many, many documentation updates ~~
1515 - We now use Class::MOP::load_class to
1517 - added tests to show types and subtypes
1518 working with Declare::Constraints::Simple
1519 and Test::Deep as constraint engines.
1522 !! You must have Class::MOP 0.37_001 !!
1523 !! for this developer release to work !!
1525 This release was primarily adding the immutable
1526 feature to Moose. An immutable class is one which
1527 you promise not to alter. When you set the class
1528 as immutable it will perform various bits of
1529 memoization and inline certain part of the code
1530 (constructors, destructors and accessors). This
1531 minimizes (and in some cases totally eliminates)
1532 one of Moose's biggest performance hits. This
1533 feature is not on by default, and is 100% optional.
1534 It has several configurable bits as well, so you
1535 can pick and choose to your specific needs.
1537 The changes involved in this were fairly wide and
1538 highly specific, but 100% backwards compatible, so
1539 I am not going to enumerate them here. If you are
1540 truely interested in what was changed, please do
1543 0.17 Tues. Nov. 14, 2006
1544 * Moose::Meta::Method::Accessor
1545 - bugfix for read-only accessors which
1546 are have a type constraint and lazy.
1547 Thanks to chansen for finding it.
1549 0.16 Tues. Nov. 14, 2006
1551 There are some speed improvements in this release,
1552 but they are only the begining, so stay tuned.
1555 - BUILDALL and DEMOLISHALL no longer get
1556 called unless they actually need to be.
1557 This gave us a signifigant speed boost
1558 for the cases when there is no BUILD or
1559 DEMOLISH method present.
1561 * Moose::Util::TypeConstraints
1562 * Moose::Meta::TypeConstraint
1563 - added an 'optimize_as' option to the
1564 type constraint, which allows for a
1565 hand optimized version of the type
1566 constraint to be used when possible.
1567 - Any internally created type constraints
1568 now provide an optimized version as well.
1570 0.15 Sun. Nov. 5, 2006
1572 This version of Moose *must* have Class::MOP 0.36 in order
1573 to work correctly. A number of small internal tweaks have
1574 been made in order to be compatible with that release.
1576 * Moose::Util::TypeConstraints
1577 - added &unimport so that you can clean out
1578 your class namespace of these exported
1581 * Moose::Meta::Class
1582 - fixed minor issue which occasionally
1583 comes up during global destruction
1585 - moved Moose::Meta::Method::Overriden into
1589 - moved Moose::Meta::Role::Method into
1592 * Moose::Meta::Attribute
1593 - changed how we do type checks so that
1594 we reduce the overall cost, but still
1597 - moved accessor generation methods to
1598 Moose::Meta::Method::Accessor to
1599 conform to the API changes from
1602 * Moose::Meta::TypeConstraint
1603 - changed how constraints are compiled
1604 so that we do less recursion and more
1605 iteration. This makes the type check
1607 - moved Moose::Meta::TypeConstraint::Union
1610 * Moose::Meta::Method::Accessor
1611 - created this from methods formerly found in
1612 Moose::Meta::Attribute
1614 * Moose::Meta::Role::Method
1615 - moved this from Moose::Meta::Role
1617 * Moose::Meta::Method::Overriden
1618 - moved this from Moose::Meta::Class
1620 * Moose::Meta::TypeConstraint::Union
1621 - moved this from Moose::Meta::TypeConstraint
1623 0.14 Mon. Oct. 9, 2006
1625 * Moose::Meta::Attribute
1626 - fixed lazy attributes which were not getting
1627 checked with the type constraint (thanks ashley)
1628 - added tests for this
1629 - removed the over-enthusiastic DWIMery of the
1630 automatic ArrayRef and HashRef defaults, it
1631 broke predicates in an ugly way.
1632 - removed tests for this
1634 0.13 Sat. Sept. 30, 2006
1636 This version of Moose *must* have Class::MOP 0.35 in order
1637 to work correctly. A number of small internal tweaks have
1638 been made in order to be compatible with that release.
1641 - Removed the use of UNIVERSAL::require to be a better
1642 symbol table citizen and remove a dependency
1643 (thanks Adam Kennedy)
1645 **~~ removed experimental & undocumented feature ~~**
1646 - commented out the 'method' and 'self' keywords, see the
1647 comments for more info.
1650 - added a FAQ and WTF files to document frequently
1651 asked questions and common problems
1653 * Moose::Util::TypeConstraints
1654 - added GlobRef and FileHandle type constraint
1655 - added tests for this
1657 * Moose::Meta::Attribute
1658 - if your attribute 'isa' ArrayRef of HashRef, and you have
1659 not explicitly set a default, then make the default DWIM.
1660 This will also work for subtypes of ArrayRef and HashRef
1662 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1663 - new test added for this (thanks to ashley)
1666 - added basic support for runtime role composition
1667 but this is still *highly experimental*, so feedback
1668 is much appreciated :)
1669 - added tests for this
1671 * Moose::Meta::TypeConstraint
1672 - the type constraint now handles the coercion process
1673 through delegation, this is to support the coercion
1676 * Moose::Meta::TypeConstraint::Union
1677 - it is now possible for coercions to be performed
1679 - added tests for this (thanks to konobi)
1681 * Moose::Meta::TypeCoercion
1682 - properly capturing error when type constraint
1686 - Scalar::Util 1.18 is bad on Win32, so temporarily
1687 only require version 1.17 for Win32 and cygwin.
1688 (thanks Adam Kennedy)
1690 0.12 Sat. Sept. 1, 2006
1692 - Recipe5 (subtypes & coercion) has been written
1695 - fixed "bad meta" error message to be more descriptive
1696 - fixed &unimport to not remove the &inner and &super
1697 keywords because we need to localize them.
1698 - fixed number of spelling/grammer issues, thanks Theory :)
1700 **~~ experimental & undocumented feature ~~**
1701 - added the method and self keywords, they are basically
1702 just sugar, and they may not stay around.
1705 - added &dump method to easily Data::Dumper
1708 * Moose::Meta::TypeConstraint
1709 - added the &is_a_type_of method to check both the current
1710 and the subtype of a method (similar to &isa with classes)
1713 - this is now a subclass of Class::MOP::Module, and no longer
1714 creates the _role_meta ugliness of before.
1715 - fixed tests to reflect this change
1717 0.11 Wed. July 12, 2006
1719 - added an &unimport method to remove all the keywords
1720 that Moose will import, simply add 'no Moose' to the
1721 bottom of your class file.
1724 - fixed some test failures caused by a forgotten test
1727 0.10 Thurs. July 6, 2006
1729 - improved error message when loading modules so
1730 it is less confusing when you load a role.
1731 - added &calculate_all_roles method to
1732 Moose::Meta::Class and Moose::Meta::Role
1735 This module has been tested against Class::MOP 0.30
1736 but it does not yet utilize the optimizations
1737 it makes available. Stay tuned for that ;)
1739 0.09_03 Fri. June 23, 2006
1740 ++ DEVELOPER RELEASE ++
1742 - 'use strict' and 'use warnings' are no longer
1743 needed in Moose classes, Moose itself will
1744 turn them on for you.
1745 - added tests for this
1746 - moved code from exported subs to private methods
1747 in Moose::Meta::Class
1750 - as with Moose, strict and warnings are
1751 automatically turned on for you.
1752 - added tests for this
1755 - now handles an edge case for override errors
1756 - added tests for this
1757 - added some more edge case tests
1759 0.09_02 Tues. May 16, 2006
1760 ++ DEVELOPER RELEASE ++
1762 - added prototypes to the exported subs
1766 - added prototypes to the exported subs
1769 * Moose::Util::TypeConstraints
1770 - cleaned up prototypes for the subs
1773 0.09_01 Fri. May 12, 2006
1774 ++ DEVELOPER RELEASE ++
1775 - This release works in combination with
1776 Class::MOP 0.29_01, it is a developer
1777 release because it uses the a new
1778 instance sub-protocol and a fairly
1779 complete Role implementation. It has
1780 not yet been optimized, so it slower
1781 the the previous CPAN version. This
1782 release also lacks good updated docs,
1783 the official release will have updated docs.
1786 - refactored the keyword exports
1787 - 'with' now checks Role validaity and
1788 accepts more than one Role at a time
1789 - 'extends' makes metaclass adjustments as
1790 needed to ensure metaclass compatibility
1793 - refactored the keyword exports
1794 - 'with' now checks Role validaity and
1795 accepts more than one Role at a time
1797 * Moose::Util::TypeConstraints
1798 - added the 'enum' keyword for simple
1799 string enumerations which can be used as
1801 - see example of usage in t/202_example.t
1804 - more careful checking of params to new()
1807 - much work done on the role composition
1808 - many new tests for conflict detection
1809 and composition edge cases
1810 - not enough documentation, I suggest
1811 looking at the tests
1813 * Moose::Meta::Instance
1814 - added new Instance metaclass to support
1815 the new Class::MOP instance protocol
1817 * Moose::Meta::Class
1818 - some small changes to support the new
1820 - some small additions to support Roles
1822 * Moose::Meta::Attribute
1823 - some improvements to the accessor generation code
1825 - some small changes to support the new
1827 - (still somewhat) experimental delegation support
1828 with the 'handles' option
1829 - added several tests for this
1830 - no docs for this yet
1832 0.05 Thurs. April 27, 2006
1834 - keywords are now exported with Sub::Exporter
1835 thanks to chansen for this commit
1836 - has keyword now takes a 'metaclass' option
1837 to support custom attribute meta-classes
1838 on a per-attribute basis
1839 - added tests for this
1840 - the 'has' keyword not accepts inherited slot
1841 specifications (has '+foo'). This is still an
1842 experimental feature and probably not finished
1843 see t/038_attribute_inherited_slot_specs.t for
1844 more details, or ask about it on #moose
1845 - added tests for this
1848 - keywords are now exported with Sub::Exporter
1850 * Moose::Utils::TypeConstraints
1851 - reorganized the type constraint hierarchy, thanks
1852 to nothingmuch and chansen for his help and advice
1854 - added some tests for this
1855 - keywords are now exported with Sub::Exporter
1856 thanks to chansen for this commit
1858 * Moose::Meta::Class
1859 - due to changes in Class::MOP, we had to change
1860 construct_instance (for the better)
1862 * Moose::Meta::Attribute
1863 - due to changes in Class::MOP, we had to add the
1864 initialize_instance_slot method (it's a good thing)
1866 * Moose::Meta::TypeConstraint
1867 - added type constraint unions
1868 - added tests for this
1869 - added the is_subtype_of predicate method
1870 - added tests for this
1872 0.04 Sun. April 16th, 2006
1874 - Roles can now consume other roles
1875 - added tests for this
1876 - Roles can specify required methods now with
1877 the requires() keyword
1878 - added tests for this
1881 - ripped out much of it's guts ,.. much cleaner now
1882 - added required methods and correct handling of
1883 them in apply() for both classes and roles
1884 - added tests for this
1885 - no longer adds a does() method to consuming classes
1886 it relys on the one in Moose::Object
1887 - added roles attribute and some methods to support
1888 roles consuming roles
1890 * Moose::Meta::Attribute
1891 - added support for triggers on attributes
1892 - added tests for this
1893 - added support for does option on an attribute
1894 - added tests for this
1896 * Moose::Meta::Class
1897 - added support for attribute triggers in the
1899 - added tests for this
1902 - Moose no longer creates a subtype for your class
1903 if a subtype of the same name already exists, this
1904 should DWIM in 99.9999% of all cases
1906 * Moose::Util::TypeConstraints
1907 - fixed bug where incorrect subtype conflicts were
1909 - added test for this
1912 - this class can now be extended with 'use base' if
1913 you need it, it properly loads the metaclass class now
1914 - added test for this
1916 0.03_02 Wed. April 12, 2006
1918 - you must now explictly use Moose::Util::TypeConstraints
1919 it no longer gets exported for you automatically
1922 - new() now accepts hash-refs as well as key/value lists
1923 - added does() method to check for Roles
1924 - added tests for this
1926 * Moose::Meta::Class
1927 - added roles attribute along with the add_role() and
1929 - added tests for this
1932 - now adds a does() method to consuming classes
1933 which tests the class's hierarchy for roles
1934 - added tests for this
1936 0.03_01 Mon. April 10, 2006
1938 - added new Role recipe (no content yet, only code)
1941 - added 'with' keyword for Role support
1942 - added test and docs for this
1943 - fixed subtype quoting bug
1944 - added test for this
1948 - added test and docs
1950 * Moose::Util::TypeConstraints
1951 - added the message keyword to add custom
1952 error messages to type constraints
1955 - the meta role to support Moose::Role
1956 - added tests and docs
1958 * Moose::Meta::Class
1959 - moved a number of things from Moose.pm
1960 to here, they should have been here
1963 * Moose::Meta::Attribute
1964 - moved the attribute option macros here
1965 instead of putting them in Moose.pm
1967 * Moose::Meta::TypeConstraint
1968 - added the message attributes and the
1970 - added tests and docs for this
1972 0.03 Thurs. March 30, 2006
1974 - added the Moose::Cookbook with 5 recipes,
1975 describing all the stuff Moose can do.
1978 - fixed an issue with &extends super class loading
1979 it now captures errors and deals with inline
1980 packages correctly (bug found by mst, solution
1982 - added super/override & inner/augment features
1983 - added tests and docs for these
1986 - BUILDALL now takes a reference of the %params
1987 that are passed to &new, and passes that to
1990 * Moose::Util::TypeConstraints
1991 - Type constraints now survive runtime reloading
1992 - added test for this
1994 * Moose::Meta::Class
1995 - fixed the way attribute defaults are handled
1996 during instance construction (bug found by chansen)
1998 * Moose::Meta::Attribute
1999 - read-only attributes now actually enforce their
2000 read-only-ness (this corrected in Class::MOP as
2003 0.02 Tues. March 21, 2006
2005 - many more tests, fixing some bugs and
2007 - &extends now loads the base module with
2009 - added UNIVERSAL::require to the
2012 - each new Moose class will also create
2013 and register a subtype of Object which
2014 correspond to the new Moose class.
2015 - the 'isa' option in &has now only
2016 accepts strings, and will DWIM in
2019 * Moose::Util::TypeConstraints
2020 - added type coercion features
2021 - added tests for this
2022 - added support for this in attributes
2023 and instance construction
2025 - type construction no longer creates a
2026 function, it registers the type instead.
2027 - added several functions to get the
2031 - BUILDALL and DEMOLISHALL were broken
2032 because of a mis-named hash key, Whoops :)
2034 * Moose::Meta::Attribute
2035 - adding support for coercion in the
2036 autogenerated accessors
2038 * Moose::Meta::Class
2039 - adding support for coercion in the
2040 instance construction
2042 * Moose::Meta::TypeConstraint
2043 * Moose::Meta::TypeCoercion
2044 - type constraints and coercions are now
2045 full fledges meta-objects
2047 0.01 Wed. March 15, 2006
2048 - Moooooooooooooooooose!!!