1 Revision history for Perl extension Moose
4 * Moose::Meta::Method::Accessor
5 - Always inline predicate and clearer methods (Sartak)
6 * Moose::Meta::Attribute
7 - Support for parameterized traits (Sartak)
9 0.63 Mon, December 8, 2008
11 - Some small grammar tweaks and bug fixes in non-Moose example
14 0.62_02 Fri, December 5, 2008
15 * Moose::Meta::Role::Application::ToClass
16 - When a class does not provide all of a role's required
17 methods, the error thrown now mentions all of the missing
18 methods, as opposed to just the first one found. Requested by
19 Curtis Poe (RT #41119). (Dave Rolsky)
21 * Moose::Meta::Method::Constructor
22 - Moose will no longer inline a constructor for your class
23 unless it inherits its constructor from Moose::Object, and
24 will warn when it doesn't inline. If you want to force
25 inlining anyway, pass "replace_constructor => 1" to
26 make_immutable. Addresses RT #40968, reported by Jon
28 - The quoting of default values could be broken if the default
29 contained a single quote ('). Now we use quotemeta to escape
30 anything potentially dangerous in the defaults. (Dave Rolsky)
32 0.62_01 Wed, December 3, 2008
34 - use the method->execute API for BUILDALL
35 and DEMOLISHALL (Sartak)
37 * Moose::Util::TypeConstraints
38 - We now make all the type constraint meta classes immutable
39 before creating the default types provided by Moose. This
40 should make loading Moose a little faster. (Dave Rolsky)
42 0.62 Wed November 26, 2008
43 * Moose::Meta::Role::Application::ToClass
44 Moose::Meta::Role::Application::ToRole
45 - fixed issues where excluding and aliasing the
46 same methods for a single role did not work
47 right (worked just fine with multiple
49 - added test for this (stevan)
51 * Moose::Meta::Role::Application::RoleSummation
52 - fixed the error message when trying to compose
53 a role with a role it excludes (Sartak)
56 - Catch another case where recursion caused the value
57 of $CALLER to be stamped on (t0m)
58 - added test for this (t0m)
61 - Remove the make_immutable keyword, which has been
62 deprecated since April. It breaks metaclasses that
63 use Moose without no Moose (Sartak)
65 * Moose::Meta::Attribute
66 - Removing an attribute from a class now also removes delegation
67 (handles) methods installed for that attribute (t0m)
68 - added test for this (t0m)
70 * Moose::Meta::Method::Constructor
71 - An attribute with a default that looked like a number (but was
72 really a string) would accidentally be treated as a number
73 when the constructor was made immutable (perigrin)
74 - added test for this (perigrin)
77 - create method for constructing a role
79 - added test for this (Sartak)
80 - anonymous roles! (Sartak)
81 - added test for this (Sartak)
84 - more consistent error messages (Sartak)
86 * Moose::Cookbook::Roles::Recipe1
87 - attempt to explain why a role that just requires
88 methods is useful (Sartak)
90 0.61 Fri November 7, 2008
91 * Moose::Meta::Attribute
92 - When passing a role to handles, it will be loaded if necessary
96 - Method objects returned by get_method (and other methods)
97 Could end up being returned without an associated_metaclass
98 attribute. Removing get_method_map, which is provided by
99 Class::MOP::Class, fixed this. The Moose version did nothing
100 different from its parent except introduce a bug. (Dave Rolsky)
101 - added tests for this (jdv79)
104 - Added a $VERSION to all .pm files which didn't have one. Fixes
105 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
107 * Moose::Cookbook::Basics::Recipe4
108 * Moose::Cookbook::Basics::Recipe6
109 - These files had spaces on the first line of the SYNOPSIS, as
110 opposed to a totally empty line. According to RT #40432, this
111 confuses POD parsers. (Dave Rolsky)
113 0.60 Fri October 24, 2008
115 - Passing "-traits" when loading Moose caused the Moose.pm
116 exports to be broken. Reported by t0m. (Dave Rolsky)
117 - Tests for this bug. (t0m)
120 - Change resolve_metaclass alias to use the new
121 load_first_existing_class function. This makes it a lot
122 simpler, and also around 5 times faster. (t0m)
123 - Add caching to resolve_metaclass_alias, which gives an order
124 of magnitude speedup to things which repeatedly call the
125 Moose::Meta::Attribute->does method, notably MooseX::Storage
128 * Moose::Util::TypeConstraint
129 - Put back the changes for parameterized constraints that
130 shouldn't have been removed in 0.59. We still cannot parse
131 them, but MooseX modules can create them in some other
132 way. See the 0.58 changes for more details. (jnapiorkowski)
133 - Changed the way subtypes are created so that the job is
134 delegated to a type constraint parent. This clears up some
135 hardcoded checking and should allow correct subtypes of
136 Moose::Meta::Type::Constraint. Don't rely on this new API too
137 much (create_child_type) because it may go away in the
138 future. (jnapiorkowski)
140 * Moose::Meta::TypeConstraint::Union
141 - Type constraint names are sorted as strings, not numbers.
144 * Moose::Meta::TypeConstraint::Parameterizable
145 - New parameterize method. This can be used as a factory method
146 to make a new type constraint with a given parameterized
147 type. (jnapiorkowski)
148 - added tests (jnapiorkowski)
150 0.59 Tue October 14, 2008
152 - Add abridged documentation for builder/default/initializer/
153 predicate, and link to more details sections in
154 Class::MOP::Attribute. (t0m)
156 * Moose::Util::TypeConstraints
157 - removed prototypes from all but the &-based stuff (mst)
159 * Moose::Util::TypeConstraints
160 - Creating a anonymous subtype with both a constraint and a
161 message failed with a very unhelpful error, but should just
162 work. Reported by t0m. (Dave Rolsky)
165 - Some tests that used Test::Warn if it was available failed
166 with older versions of Test::Warn. Reported by Fayland. (Dave
168 - Test firing behavior of triggers in relation to builder/default/
170 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
171 kinds of supported type. (t0m)
174 - In create(), do not pass "roles" option to the superclass
175 - added related test that creates an anon metaclass with
178 * Moose::Meta::TypeConstraint::Class
179 * Moose::Meta::TypeConstraint::Role
180 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
181 other types (as per change in 0.55_02). (t0m)
183 * Moose::Meta::TypeConstraint::Registry
184 - Fix warning when dealing with unknown type names (t0m)
186 * Moose::Util::TypeConstraints
187 - Reverted changes from 0.58 related to handle parameterized
188 types. This caused random failures on BSD and Win32 systems,
189 apparently related to the regex engine. This means that Moose
190 can no longer parse structured type constraints like
191 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
192 supported in a slightly different way via MooseX::Types some
193 time in the future. (Dave Rolsky)
195 0.58 Sat September 20, 2008
196 !! This release has an incompatible change regarding !!
197 !! how roles add methods to a class !!
199 * Roles and role application
200 ! Roles now add methods by calling add_method, not
201 alias_method. They make sure to always provide a method
202 object, which will be cloned internally. This means that it is
203 now possible to track the source of a method provided by a
204 role, and even follow its history through intermediate roles.
206 This means that methods added by a role now show up when
207 looking at a class's method list/map. (Dave Rolsky)
210 - From this release on, we'll try to maintain a list of
211 conflicting modules, and warn you if you have one
212 installed. For example, this release conflicts with ...
213 - MooseX::Singleton <= 0.11
214 - MooseX::Params::Validate <= 0.05
217 In general, we try to not break backwards compatibility for
218 most Moose users, but MooseX modules and other code which
219 extends Moose's metaclasses is often affected by very small
220 changes in the Moose internals.
222 * Moose::Meta::Method::Delegation
223 * Moose::Meta::Attribute
224 - Delegation methods now have their own method class. (Dave
227 * Moose::Meta::TypeConstraint::Parameterizable
228 - Added a new method 'parameterize' which is basically a factory
229 for the containing constraint. This makes it easier to create
230 new types of parameterized constraints. (jnapiorkowski)
232 * Moose::Meta::TypeConstraint::Union
233 - Changed the way Union types canonicalize their names to follow
234 the normalized TC naming rules, which means we strip all
235 whitespace. (jnapiorkowski)
237 * Moose::Util::TypeConstraints
238 - Parameter and Union args are now sorted, this makes Int|Str
239 the same constraint as Str|Int. (jnapiorkowski)
240 - Changes to the way Union types are parsed to more correctly
241 stringify their names. (jnapiorkowski)
242 - When creating a parameterized type, we now use the new
243 parameterize method. (jnapiorkowski)
244 - Incoming type constraint strings are now normalized to remove
245 all whitespace differences. (jnapiorkowski)
246 - Changed the way we parse type constraint strings so that we now
247 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
248 constraints. This lays the foundation for more flexible type
249 constraint implementations.
251 * Tests and docs for all the above. (jnapiorkowski)
255 - Moose::Exporter will no longer remove a subroutine that the
256 exporting package re-exports. Moose re-exports the
257 Carp::confess function, among others. The reasoning is that we
258 cannot know whether you have also explicitly imported those
259 functions for your own use, so we err on the safe side and
260 always keep them. (Dave Rolsky)
261 - added tests for this (rafl)
264 - Changes to how we fix metaclass compatibility that are much
265 too complicated to go into. The summary is that Moose is much
266 less likely to complain about metaclass incompatibility
267 now. In particular, if two metaclasses differ because
268 Moose::Util::MetaRole was used on the two corresponding
269 classes, then the difference in roles is reconciled for the
270 subclass's metaclass. (Dave Rolsky)
271 - Squashed an warning in _process_attribute (thepler)
274 - throw exceptions (sooner) for invalid attribute names (thepler)
275 - added tests for this (thepler)
277 * Moose::Util::MetaRole
278 - If you explicitly set a constructor or destructor class for a
279 metaclass object, and then applied roles to the metaclass,
280 that explicitly set class would be lost and replaced with the
284 * Moose::Meta::Attribute
285 * Moose::Meta::Method
288 * Moose::Error::Default
289 * Moose::Error::Croak
290 * Moose::Error::Confess
291 - All instances of confess() changed to use overridable
292 C<throw_error> method. This method ultimately calls a class
293 constructor, and you can change the class being called. In
294 addition, errors now pass more information than just a string.
295 The default C<error_class> behaves like C<Carp::confess>, so
296 the behavior is not visibly different for end users.
298 0.57 Wed September 3, 2008
300 - A new bit of doc intended to introduce folks familiar with
301 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
304 - Shows examples of two classes, each done first with and then
305 without Moose. This makes a nice parallel to
306 Moose::Intro. (Dave Rolsky)
308 * Moose::Util::TypeConstraints
309 - Fixed a bug in find_or_parse_type_constraint so that it
310 accepts a Moose::Meta::TypeConstraint object as the parent
311 type, not just a name (jnapiorkowski)
312 - added tests (jnapiorkowski)
315 - If Sub::Name was not present, unimporting failed to actually
316 remove some sugar subs, causing test failures (Dave Rolsky)
318 0.56 Mon September 1, 2008
319 For those not following the series of dev releases, there are
320 several major changes in this release of Moose.
321 ! Moose::init_meta should now be called as a method. See the
324 - Major performance improvements by nothingmuch.
326 - New modules for extension writers, Moose::Exporter and
327 Moose::Util::MetaRole by Dave Rolsky.
329 - Lots of doc improvements and additions, especially in the
334 * Removed all references to the experimental-but-no-longer-needed
335 Moose::Meta::Role::Application::ToMetaclassInstance.
337 * Require Class::MOP 0.65.
339 0.55_04 Sat August 30, 2008
340 * Moose::Util::MetaRole
341 * Moose::Cookbook::Extending::Recipe2
342 - This simplifies the application of roles to any meta class, as
343 well as the base object class. Reimplemented metaclass traits
344 using this module. (Dave Rolsky)
346 * Moose::Cookbook::Extending::Recipe1
347 - This a new recipe, an overview of various ways to write Moose
348 extensions (Dave Rolsky)
350 * Moose::Cookbook::Extending::Recipe3
351 * Moose::Cookbook::Extending::Recipe4
352 - These used to be Extending::Recipe1 and Extending::Recipe2,
355 0.55_03 Fri August 29, 2008
356 * No changes from 0.55_02 except increasing the Class::MOP
357 dependency to 0.64_07.
359 0.55_02 Fri August 29, 2008
360 * Makefile.PL and Moose.pm
361 - explicitly require Perl 5.8.0+ (Dave Rolsky)
363 * Moose::Util::TypeConstraints
364 - Fix warnings from find_type_constraint if the type is not
367 * Moose::Meta::TypeConstraint
368 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
369 return false if the type you specify cannot be found in the
370 type registry, rather than throwing an unhelpful and
371 coincidental exception. (t0m).
372 - added docs & test for this (t0m)
374 * Moose::Meta::TypeConstraint::Registry
375 - add_type_constraint now throws an exception if a parameter is
377 - added docs & test for this (t0m)
379 * Moose::Cookbook::FAQ
380 - Added a faq entry on the difference between "role" and "trait"
384 - Fixed a bug that caused role composition to not see a required
385 method when that method was provided by another role being
386 composed at the same time. (Dave Rolsky)
387 - test and bug finding (tokuhirom)
389 0.55_01 Wed August 20, 2008
391 !! Calling Moose::init_meta as a function is now !!
392 !! deprecated. Please see the Moose.pm docs for details. !!
394 * Moose::Meta::Method::Constructor
395 - Fix inlined constructor so that values produced by default
396 or builder methods are coerced as required. (t0m)
397 - added test for this (t0m)
399 * Moose::Meta::Attribute
400 - A lazy attribute with a default or builder did not attempt to
401 coerce the default value. The immutable code _did_
403 - added test for this (t0m)
406 - This is a new helper module for writing "Moose-alike"
407 modules. This should make the lives of MooseX module authors
408 much easier. (Dave Rolsky)
411 * Moose::Cookbook::Meta::Recipe5
412 - Implemented metaclass traits (and wrote a recipe for it):
414 use Moose -traits => 'Foo'
416 This should make writing small Moose extensions a little
419 * Moose::Cookbook::Basics::Recipe1
420 - Removed any examples of direct hashref access, and applied an
421 editorial axe to reduce verbosity. (Dave Rolsky)
423 * Moose::Cookbook::Basics::Recipe1
424 - Also applied an editorial axe here. (Dave Rolsky)
427 * Moose::Cookbook::Extending::Recipe1
428 * Moose::Cookbook::Extending::Recipe2
429 - Rewrote extending and embedding moose documentation and
430 recipes to use Moose::Exporter (Dave Rolsky)
434 - These two modules now warn when you load them from the main
435 package "main" package, because we will not export sugar to
436 main. Previously it just did nothing. (Dave Rolsky)
439 - Now provide an init_meta method just like Moose.pm, and you
440 can call this to provide an alternate role metaclass. (Dave
441 Rolsky and nothingmuch)
442 - get_method_map now respects the package cache flag (nothingmuch)
445 - Two new methods - add_method and wrap_method_body
449 - Optimizations including allowing constructors to accept hash
450 refs, making many more classes immutable, and making
451 constructors immutable. (nothingmuch)
453 0.55 Sun August 3, 2008
454 * Moose::Meta::Attribute
455 - breaking down the way 'handles' methods are
456 created so that the process can be more easily
457 overridden by subclasses (stevan)
459 * Moose::Meta::TypeConstraint
460 - fixing what is passed into a ->message with
461 the type constraints (RT #37569)
462 - added tests for this (Charles Alderman)
464 * Moose::Util::TypeConstraints
465 - fix coerce to accept anon types like subtype can (mst)
468 - reorganized the recipes into sections - Basics, Roles, Meta,
469 Extending - and wrote abstracts for each section (Dave Rolsky)
471 * Moose::Cookbook::Basics::Recipe10
472 - A new recipe that demonstrates operator overloading
473 in combination with Moose. (bluefeet)
475 * Moose::Cookbook::Meta::Recipe1
476 - an introduction to what meta is and why you'd want to make
477 your own metaclass extensions (Dave Rolsky)
479 * Moose::Cookbook::Meta::Recipe4
480 - a very simple metaclass example (Dave Rolsky)
482 * Moose::Cookbook::Extending::Recipe1
483 - how to write a Moose-alike module to use your own object base
486 * Moose::Cookbook::Extending::Recipe2
487 - how to write modules with an API just like C<Moose.pm> (Dave
491 - Tons of fixes, both syntactical and grammatical (Dave
492 Rolsky, Paul Fenwick)
494 0.54 Thurs. July 3, 2008
495 ... this is not my day today ...
497 * Moose::Meta::Attribute
498 - fixed legal_options_for_inheritance such that
499 clone_and_inherit options still works for
500 Class::MOP::Attribute objects and therefore
501 does not break MooseX::AttributeHelpers
504 0.53 Thurs. July 3, 2008
505 * Whoops, I guess I should run 'make manifest' before
506 actually releasing the module. No actual changes
507 in this release, except the fact that it includes
508 the changes that I didn't include in the last
511 0.52 Thurs. July 3, 2008
513 - added "FEATURE REQUESTS" section to the Moose docs
514 to properly direct people (stevan) (RT #34333)
515 - making 'extends' croak if it is passed a Role since
516 this is not ever something you want to do
517 (fixed by stevan, found by obra)
518 - added tests for this (stevan)
521 - adding support for DOES (as in UNIVERSAL::DOES)
523 - added test for this
525 * Moose::Meta::Attribute
526 - added legal_options_for_inheritance (wreis)
527 - added tests for this (wreis)
529 * Moose::Cookbook::Snacks::*
530 - removed some of the unfinished snacks that should
531 not have been released yet. Added some more examples
532 to the 'Keywords' snack. (stevan)
534 * Moose::Cookbook::Style
535 - added general Moose "style guide" of sorts to the
536 cookbook (nothingmuch) (RT #34335)
539 - added more BUILDARGS tests (stevan)
541 0.51 Thurs. Jun 26, 2008
543 - add unimport so "no Moose::Role" actually does
546 * Moose::Meta::Role::Application::ToRole
547 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
548 order to provide its own implementation, that method still got
549 added to the list of required methods for consumers of
550 RoleB. Now an aliased method is only added to the list of
551 required methods if the role doing the aliasing does not
552 provide its own implementation. See Recipe 11 for an example
553 of all this. (Dave Rolsky)
554 - added tests for this
556 * Moose::Meta::Method::Constructor
557 - when a single argument that wasn't a hashref was provided to
558 an immutabilized constructor, the error message was very
559 unhelpful, as opposed to the non-immutable error. Reported by
561 - added test for this (Dave Rolsky)
563 * Moose::Meta::Attribute
564 - added support for meta_attr->does("ShortAlias") (sartak)
565 - added tests for this (sartak)
566 - moved the bulk of the `handles` handling to the new
567 install_delegation method (Stevan)
570 - Added BUILDARGS, a new step in new()
572 * Moose::Meta::Role::Application::RoleSummation
573 - fix typos no one ever sees (sartak)
575 * Moose::Util::TypeConstraints
576 * Moose::Meta::TypeConstraint
577 * Moose::Meta::TypeCoercion
578 - Attempt to work around the ??{ } vs. threads issue
580 - Some null_constraint optimizations
582 0.50 Thurs. Jun 11, 2008
583 - Fixed a version number issue by bumping all modules
586 0.49 Thurs. Jun 11, 2008
587 !! This version now approx. 20-25% !!
588 !! faster with new Class::MOP 0.59 !!
590 * Moose::Meta::Attribute
591 - fixed how the is => (ro|rw) works with
592 custom defined reader, writer and accessor
594 - added docs for this (TODO).
595 - added tests for this (Thanks to Penfold)
596 - added the custom attribute alias for regular
597 Moose attributes which is "Moose"
598 - fix builder and default both being used
603 Moose::Meta::Attribute
605 Moose::Meta::Role::Composite
606 Moose::Util::TypeConstraints
607 - switched usage of reftype to ref because
611 - changing add_package_symbol to use the new
615 - fixed how DEMOLISHALL is called so that it
616 can be overrided in subclasses (thanks to Sartak)
617 - added test for this (thanks to Sartak)
619 * Moose::Util::TypeConstraints
620 - move the ClassName type check code to
621 Class::MOP::is_class_loaded (thanks to Sartak)
623 * Moose::Cookbook::Recipe11
624 - add tests for this (thanks to tokuhirom)
626 0.48 Thurs. May 29, 2008
627 (early morning release engineering)--
629 - fixing the version in Moose::Meta::Method::Destructor
630 which was causing the indexer to choke
632 0.47 Thurs. May 29, 2008
633 (late night release engineering)--
635 - fixing the version is META.yml, no functional
636 changes in this release
638 0.46 Wed. May 28, 2008
639 !! This version now approx. 20-25% !!
640 !! faster with new Class::MOP 0.57 !!
643 - some optimizations of the &initialize method
644 since it is called so often by &meta
648 - now use the get_all_package_symbols from the
649 updated Class::MOP, test suite is now 10 seconds
652 * Moose::Meta::Method::Destructor
653 - is_needed can now also be called as a class
654 method for immutablization to check if the
655 destructor object even needs to be created
658 * Moose::Meta::Method::Destructor
659 Moose::Meta::Method::Constructor
660 - added more descriptive error message to help
661 keep people from wasting time tracking an error
662 that is easily fixed by upgrading.
664 0.45 Saturday, May 24, 2008
666 - Because of work in Class::MOP 0.57, all
667 XS based functionality is now optional
668 and a Pure Perl version is supplied
669 - the CLASS_MOP_NO_XS environment variable
670 can now be used to force non-XS versions
672 - several of the packages have been tweaked
673 to take care of this, mostly we added
674 support for the package_name and name
675 variables in all the Method metaclasses
676 - before/around/after method modifiers now
677 support regexp matching of names
678 (thanks to Takatoshi Kitano)
679 - tests added for this
680 - NOTE: this only works for classes, it
681 is currently not supported in roles,
682 but, ... patches welcome
683 - All usage of Carp::confess have been replaced
684 by Carp::croak in the "keyword" functions since
685 the stack trace is usually not helpful
688 - All usage of Carp::confess have been replaced
689 by Carp::croak in the "keyword" functions since
690 the stack trace is usually not helpful
691 - The 'has' keyword for roles now accepts the
692 same array ref form that Moose.pm does
693 (has [qw/foo bar/] => (is => 'rw', ...))
694 - added test for this
696 * Moose::Meta::Attribute
697 - trigger on a ro-attribute is no longer an
698 error, as it's useful to trigger off of the
702 - added same 'add_package_symbol' fix as in
706 - does_role now handles non-Moose classes
708 - added tests for this
709 - added the 'add_method_modifier' function
710 (thanks to Takatoshi Kitano)
712 * Moose::Util::TypeConstraints
713 - subtypes of parameterizable types now are
714 themselves parameterizable types
716 * Moose::Meta::Method::Constructor
717 - fixed bug where trigger was not being
718 called by the inlined immutable
720 - added test for this (thanks to Caelum)
722 * Moose::Meta::Role::Application::ToInstance
723 - now uses the metaclass of the instance
724 (if possible) to create the anon-class
725 (thanks Jonathan Rockway)
727 * Moose::Cookbook::Recipe22
728 - added the meta-attribute trait recipe
732 - fixed hash-ordering test bug that was
733 causing occasional cpantester failures
734 - renamed the t/000_recipe/*.t tests to be
735 more descriptive (thanks to Sartak)
737 0.44 Sat. May 10, 2008
739 - made make_immutable warning cluck to
740 show where the error is (thanks mst)
743 - BUILDALL and DEMOLISHALL now call
744 ->body when looping through the
745 methods, to avoid the overloaded
747 - fixed issue where DEMOLISHALL was
748 eating the $@ values, and so not
749 working correctly, it still kind of
750 eats them, but so does vanilla perl
751 - added tests for this
753 * Moose::Cookbook::Recipe7
754 - added new recipe for immutable
755 functionality (thanks Dave Rolsky)
757 * Moose::Cookbook::Recipe9
758 - added new recipe for builder and
759 lazy_build (thanks Dave Rolsky)
761 * Moose::Cookbook::Recipe11
762 - added new recipe for method aliasing
763 and exclusion with Roles (thanks Dave Rolsky)
766 - fixed Win32 test failure (thanks spicyjack)
768 ~ removed Build.PL and Module::Build compat
769 since Module::Install has done that.
771 0.43 Wed. April, 30, 2008
773 drink more coffee before
774 doing release engineering
776 - whoops, forgot to do the smolder tests,
777 and we broke some of the custom meta-attr
778 modules. This fixes that.
780 0.42 Mon. April 28, 2008
781 - some bad tests slipped by, nothing else
782 changed in this release (cpantesters++)
784 - upped the Class::MOP dependency to 0.55
785 since we have tests which need the C3
788 0.41 Mon. April 28, 2008
789 ~~ numerous documentation updates ~~
791 - Changed all usage of die to Carp::croak for better
792 error reporting (initial patch by Tod Hagan)
795 - the make_immutable keyword is now deprecated, don't
796 use it in any new code and please fix your old code
797 as well. There will be 2 releases, and then it will
803 - refactored the way inner and super work to avoid
804 any method/@ISA cache penalty (nothingmuch)
807 - fixing &new_object to make sure trigger gets the
808 coerced value (spotted by Charles Alderman on the
810 - added test for this
812 * Moose::Meta::Method::Constructor
813 - immutable classes which had non-lazy attributes were calling
814 the default generating sub twice in the constructor. (bug
815 found by Jesse Luehrs, fixed by Dave Rolsky)
816 - added tests for this (Dave Rolsky)
817 - fix typo in initialize_body method (nothingmuch)
819 * Moose::Meta::Method::Destructor
820 - fix typo in initialize_body method (nothingmuch)
822 * Moose::Meta::Method::Overriden
823 Moose::Meta::Method::Augmented
824 - moved the logic for these into their own
825 classes (nothingmuch)
827 * Moose::Meta::Attribute
828 - inherited attributes may now be extended without
829 restriction on the type ('isa', 'does') (Sartak)
830 - added tests for this (Sartak)
831 - when an attribute property is malformed (such as lazy without
832 a default), give the name of the attribute in the error
834 - added the &applied_traits and &has_applied_traits methods
835 to allow introspection of traits
836 - added tests for this
837 - moved 'trait' and 'metaclass' argument handling to here from
839 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
840 '+foo' syntax) (nothingmuch)
841 - added tests for this (t0m)
844 - localize $@ inside DEMOLISHALL to avoid it
845 eating $@ (found by Ernesto)
846 - added test for this (thanks to Ernesto)
848 * Moose::Util::TypeConstraints
849 - &find_type_constraint now DWIMs when given an
850 type constraint object or name (nothingmuch)
851 - &find_or_create_type_constraint superseded with a number of more
853 - find_or_create_{isa,does}_type_constraint
854 - find_or_parse_type_constraint
856 * Moose::Meta::TypeConstraint
857 Moose::Meta::TypeConstraint::Class
858 Moose::Meta::TypeConstraint::Role
859 Moose::Meta::TypeConstraint::Enum
860 Moose::Meta::TypeConstraint::Union
861 Moose::Meta::TypeConstraint::Parameterized
862 - added the &equals method for comparing two type
863 constraints (nothingmuch)
864 - added tests for this (nothingmuch)
866 * Moose::Meta::TypeConstraint
867 - add the &parents method, which is just an alias to &parent.
868 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
870 * Moose::Meta::TypeConstraint::Class
871 - added the class attribute for introspection purposes
873 - added tests for this
875 * Moose::Meta::TypeConstraint::Enum
876 Moose::Meta::TypeConstraint::Role
877 - broke these out into their own classes (nothingmuch)
879 * Moose::Cookbook::Recipe*
880 - fixed references to test file locations in the POD
881 and updated up some text for new Moose features
885 - Added &resolve_metaclass_alias, a helper function for finding an actual
886 class for a short name (e.g. in the traits list)
888 0.40 Fri. March 14, 2008
889 - I hate Pod::Coverage
891 0.39 Fri. March 14, 2008
893 - documenting the use of '+name' with attributes
894 that come from recently composed roles. It makes
895 sense, people are using it, and so why not just
896 officially support it.
897 - fixing the 'extends' keyword so that it will not
898 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
901 - added the perl -Moose=+Class::Name feature to allow
902 monkeypatching of classes in one liners
905 - fixing the 'apply_all_roles' keyword so that it will not
906 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
909 - added ->create method which now supports roles (thanks to jrockway)
910 - added tests for this
911 - added ->create_anon_class which now supports roles and caching of
912 the results (thanks to jrockway)
913 - added tests for this
914 - made ->does_role a little more forgiving when it is
915 checking a Class::MOP era metaclasses.
917 * Moose::Meta::Role::Application::ToInstance
918 - it is now possible to pass extra params to be used when
919 a role is applied to an the instance (rebless_params)
920 - added tests for this
922 * Moose::Util::TypeConstraints
923 - class_type now accepts an optional second argument for a
924 custom message. POD anotated accordingly (groditi)
925 - added tests for this
926 - it is now possible to make anon-enums by passing 'enum' an
927 ARRAY ref instead of the $name => @values. Everything else
929 - added tests for this
932 - making test for using '+name' on attributes consumed
933 from a role, it works and makes sense too.
935 * Moose::Meta::Attribute
936 - fix handles so that it doesn't return nothing
937 when the method cannot be found, not sure why
938 it ever did this originally, this means we now
939 have slightly better support for AUTOLOADed
941 - added more delegation tests
942 - adding ->does method to this so as to better
943 support traits and their introspection.
944 - added tests for this
947 - localizing the Data::Dumper configurations so
948 that it does not pollute others (RT #33509)
949 - made ->does a little more forgiving when it is
950 passed Class::MOP era metaclasses.
952 0.38 Fri. Feb. 15, 2008
953 * Moose::Meta::Attribute
954 - fixed initializer to correctly do
955 type checking and coercion in the
957 - added tests for this
960 - fixed some finicky tests (thanks to konobi)
962 0.37 Thurs. Feb. 14, 2008
964 - fixed some details in Moose::init_meta
965 and its superclass handling (thanks thepler)
966 - added tests for this (thanks thepler)
967 - 'has' now dies if you don't pass in name
969 - added the 'make_immutable' keyword as a shortcut
973 Moose::Meta::Method::Constructor
974 Moose::Meta::Attribute
975 - making (init_arg => undef) work here too
976 (thanks to nothingmuch)
978 * Moose::Meta::Attribute
979 Moose::Meta::Method::Constructor
980 Moose::Meta::Method::Accessor
981 - make lazy attributes respect attr initializers (rjbs)
982 - added tests for this
984 * Moose::Util::TypeConstraints
985 Moose::Util::TypeConstraints::OptimizedConstraints
986 Moose::Meta::TypeConstraints
987 Moose::Meta::Attribute
988 Moose::Meta::Method::Constructor
989 Moose::Meta::Method::Accessor
990 - making type errors use the
991 assigned message (thanks to Sartak)
992 - added tests for this
994 * Moose::Meta::Method::Destructor
995 - making sure DESTROY gets inlined properly
996 with successive DEMOLISH calls (thanks to manito)
998 * Moose::Meta::Attribute
999 Moose::Meta::Method::Accessor
1000 - fixed handling of undef with type constraints
1002 - added tests for this
1005 - added &get_all_init_args and &get_all_attribute_values
1006 (thanks to Sartak and nothingmuch)
1008 0.36 Sat. Jan. 26, 2008
1010 Moose::Meta::Attribute
1011 - role type tests now support when roles are
1012 applied to non-Moose classes (found by ash)
1013 - added tests for this (thanks to ash)
1014 - couple extra tests to boost code coverage
1016 * Moose::Meta::Method::Constructor
1017 - improved fix for handling Class::MOP attributes
1018 - added test for this
1020 * Moose::Meta::Class
1021 - handled the add_attribute($attribute_meta_object)
1023 - added test for this
1025 0.35 Tues. Jan. 22, 2008
1026 * Moose::Meta::Method::Constructor
1027 - fix to make sure even Class::MOP attributes
1028 are handled correctly (Thanks to Dave Rolsky)
1029 - added test for this (also Dave Rolsky)
1031 * Moose::Meta::Class
1032 - improved error message on _apply_all_roles,
1033 you should now use Moose::Util::apply_all_roles
1034 and you shouldnt have been using a _ prefixed
1035 method in the first place ;)
1037 0.34 Mon. Jan. 21, 2008
1038 ~~~ more misc. doc. fixes ~~~
1039 ~~ updated copyright dates ~~
1041 Moose is now a postmodern object system :)
1042 - (see the POD for details)
1044 * <<Role System Refactoring>>
1045 - this release contains a major reworking and
1046 cleanup of the role system
1047 - 100% backwards compat.
1048 - Role application now restructured into seperate
1049 classes based on type of applicants
1050 - Role summation (combining of more than one role)
1051 is much cleaner and anon-classes are no longer
1052 used in this process
1053 - new Composite role metaclass
1054 - runtime application of roles to instances
1055 is now more efficient and re-uses generated
1056 classes when applicable
1058 * <<New Role composition features>>
1059 - methods can now be excluded from a given role
1061 - methods can now be aliased to another name (and
1062 still retain the original as well)
1064 * Moose::Util::TypeConstraints::OptimizedConstraints
1065 - added this module (see above)
1067 * Moose::Meta::Class
1068 - fixed the &_process_attribute method to be called
1069 by &add_attribute, so that the API is now correct
1071 * Moose::Meta::Method::Accessor
1072 - fixed bug when passing a list of values to
1073 an accessor would get (incorrectly) ignored.
1074 Thanks to Sartak for finding this ;)
1075 - added tests for this (Sartak again)
1077 * Moose::Meta::Method::Accessor
1078 Moose::Meta::Method::Constructor
1079 Moose::Meta::Attribute
1080 Moose::Meta::TypeConstraint
1081 Moose::Meta::TypeCoercion
1082 - lots of cleanup of such things as:
1084 - type constraint handling
1085 - error handling/messages
1086 (thanks to nothingmuch)
1088 * Moose::Meta::TypeConstraint::Parameterizable
1089 - added this module to support the refactor
1090 in Moose::Meta::TypeConstraint::Parameterized
1092 * Moose::Meta::TypeConstraint::Parameterized
1093 - refactored how these types are handled so they
1094 are more generic and not confined to ArrayRef
1098 - shortened some file names for better VMS support (RT #32381)
1100 0.33 Fri. Dec. 14, 2007
1101 !! Moose now loads 2 x faster !!
1102 !! with new Class::MOP 0.49 !!
1104 ++ new oose.pm module to make command line
1105 Moose-ness easier (see POD docs for more)
1107 * Moose::Meta::Class
1109 - several tweaks to take advantage of the
1110 new method map caching in Class::MOP
1112 * Moose::Meta::TypeConstraint::Parameterized
1113 - allow subtypes of ArrayRef and HashRef to
1114 be used as a container (sartak)
1115 - added tests for this
1116 - basic support for coercion to ArrayRef and
1117 HashRef for containers (sartak)
1118 - added tests for this
1120 * Moose::Meta::TypeCoercion
1121 - coercions will now create subtypes as needed
1122 so you can now add coercions to parameterized
1123 types without having to explictly define them
1124 - added tests for this
1126 * Moose::Meta::Method::Accessor
1127 - allow subclasses to decide whether we need
1128 to copy the value into a new variable (sartak)
1130 0.32 Tues. Dec. 4, 2007
1131 * Moose::Util::TypeConstraints
1132 - fixing how subtype aliases of unions work
1133 they should inherit the parent's coercion
1134 - added tests for this
1135 - you can now define multiple coercions on
1136 a single type at different times instead of
1137 having to do it all in one place
1138 - added tests for this
1140 * Moose::Meta::TypeConstraint
1141 - there is now a default constraint of sub { 1 }
1142 instead of Moose::Util::TypeConstraints setting
1145 * Moose::Meta::TypeCoercion
1146 * Moose::Meta::TypeCoercion::Union
1147 - added the &has_coercion_for_type and
1148 &add_type_coercions methods to support the
1149 new features above (although you cannot add
1150 more type coercions for Union types)
1152 0.31 Mon. Nov. 26, 2007
1153 * Moose::Meta::Attribute
1154 - made the +attr syntax handle extending types with
1155 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1156 now works if the original foo is an ArrayRef.
1157 - added tests for this.
1158 - delegation now works even if the attribute does not
1159 have a reader method using the get_read_method_ref
1160 method from Class::MOP::Attribute.
1161 - added tests for this
1162 - added docs for this
1164 * Moose::Util::TypeConstraints
1165 - passing no "additional attribute info" to
1166 &find_or_create_type_constraint will no longer
1167 attempt to create an __ANON__ type for you,
1168 instead it will just return undef.
1169 - added docs for this
1171 0.30 Fri. Nov. 23, 2007
1172 * Moose::Meta::Method::Constructor
1173 -builder related bug in inlined constructor. (groditi)
1175 * Moose::Meta::Method::Accessor
1176 - genereate unnecessary calls to predicates and refactor
1177 code generation for runtime speed (groditi)
1179 * Moose::Util::TypeConstraints
1180 - fix ClassName constraint to introspect symbol table (mst)
1181 - added more tests for this (mst)
1182 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1183 with work correctly.
1184 - added tests for this
1187 - adding the link to Recipie 11 (written by Sartak)
1188 - adding test for SYNOPSIS code
1191 - New tests for builder bug. Upon instantiation, if an
1192 attribute had a builder, no value and was not lazy the
1193 builder default was not getting run, oops. (groditi)
1195 0.29 Tues. Nov. 13, 2007
1196 * Moose::Meta::Attribute
1197 - Fix error message on missing builder method (groditi)
1199 * Moose::Meta::Method::Accessor
1200 - Fix error message on missing builder method (groditi)
1203 - Add test to check for the correct error message when
1204 builder method is missing (groditi)
1206 0.28 Tues. Nov. 13, 2007
1207 - 0.27 packaged incorrectly (groditi)
1209 0.27 Tues. Nov. 13, 2007
1210 * Moose::Meta::Attribute
1211 - Added support for the new builder option (groditi)
1212 - Added support for lazy_build option (groditi)
1213 - Changed slot initialization for predicate changes (groditi)
1215 * Moose::Meta::Method::Accessor
1216 - Added support for lazy_build option (groditi)
1217 - Fix inline methods to work with corrected predicate
1220 * Moose::Meta::Method::Constructor
1221 - Added support for lazy_build option (groditi)
1224 - tests for builder and lazy_build (groditi)
1226 * fixing some misc. bits in the docs that
1227 got mentioned on CPAN Forum & perlmonks
1230 - fixed how required methods are handled
1231 when they encounter overriden or modified
1232 methods from a class (thanks to confound).
1233 - added tests for this
1235 * Moose::Util::TypeConstraint
1236 - fixed the type notation parser so that
1237 the | always creates a union and so is
1238 no longer a valid type char (thanks to
1239 konobi, mugwump and #moose for working
1241 - added more tests for this
1243 0.26 Thurs. Sept. 27, 2007
1246 * Parameterized Types
1247 We now support parameterized collection types, such as:
1248 ArrayRef[Int] # array or integers
1249 HashRef[Object] # a hash with object values
1250 They can also be nested:
1251 ArrayRef[HashRef[RegExpr]] # an array of hashes with regexpr values
1252 And work with the type unions as well:
1253 ArrayRef[Int | Str] # array of integers of strings
1255 * Better Framework Extendability
1256 Moose.pm is now "extendable" such that it is now much
1257 easier to extend the framework and add your own keywords
1258 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1259 section of the Moose.pm docs.
1262 In an effort to begin documenting some of the various
1263 details of Moose as well as some common idioms, we have
1264 created Moose::Cookbook::Snacks as a place to find
1265 small (easily digestable) nuggets of Moose code.
1268 ~ Several doc updates/cleanup thanks to castaway ~
1270 - converted build system to use Module::Install instead of
1271 Module::Build (thanks to jrockway)
1274 - added all the meta classes to the immutable list and
1275 set it to inline the accessors
1276 - fix import to allow Sub::Exporter like { into => }
1277 and { into_level => } (perigrin)
1278 - exposed and documented init_meta() to allow better
1279 embedding and extending of Moose (perigrin)
1282 - complete re-organization of the test suite
1283 - added some new tests as well
1284 - finally re-enabled the Moose::POOP test since
1285 the new version of DBM::Deep now works again
1288 * Moose::Meta::Class
1289 - fixed very odd and very nasty recursion bug with
1291 - added tests for this (eilara)
1293 * Moose::Meta::Attribute
1294 Moose::Meta::Method::Constructor
1295 Moose::Meta::Method::Accessor
1296 - fixed issue with overload::Overloaded getting called
1297 on non-blessed items. (RT #29269)
1298 - added tests for this
1300 * Moose::Meta::Method::Accessor
1301 - fixed issue with generated accessor code making
1302 assumptions about hash based classes (thanks to dexter)
1304 * Moose::Coookbook::Snacks
1305 - these are bits of documentation, not quite as big as
1306 Recipes but which have no clear place in the module docs.
1307 So they are Snacks! (horray for castaway++)
1309 * Moose::Cookbook::Recipe4
1310 - updated it to use the new ArrayRef[MyType] construct
1311 - updated the accompanying test as well
1313 +++ Major Refactor of the Type Constraint system +++
1314 +++ with new features added as well +++
1316 * Moose::Util::TypeConstraint
1317 - no longer uses package variable to keep track of
1318 the type constraints, now uses the an instance of
1319 Moose::Meta::TypeConstraint::Registry to do it
1320 - added more sophisticated type notation parsing
1322 - added tests for this
1324 * Moose::Meta::TypeConstraint
1325 - some minor adjustments to make subclassing easier
1326 - added the package_defined_in attribute so that we
1327 can track where the type constraints are created
1329 * Moose::Meta::TypeConstraint::Union
1330 - this is now been refactored to be a subclass of
1331 Moose::Meta::TypeConstraint
1333 * Moose::Meta::TypeCoercion::Union
1334 - this has been added to service the newly refactored
1335 Moose::Meta::TypeConstraint::Union and is itself
1336 a subclass of Moose::Meta::TypeCoercion
1338 * Moose::Meta::TypeConstraint::Parameterized
1339 - added this module (taken from MooseX::AttributeHelpers)
1340 to help construct nested collection types
1341 - added tests for this
1343 * Moose::Meta::TypeConstraint::Registry
1344 - added this class to keep track of type constraints
1346 0.25 Mon. Aug. 13, 2007
1348 - Documentation update to reference Moose::Util::TypeConstraints
1349 under 'isa' in 'has' for how to define a new type
1350 (thanks to shlomif).
1352 * Moose::Meta::Attribute
1353 - required attributes now will no longer accept undef
1354 from the constructor, even if there is a default and lazy
1355 - added tests for this
1356 - default subroutines must return a value which passes the
1358 - added tests for this
1360 * Moose::Meta::Attribute
1361 * Moose::Meta::Method::Constructor
1362 * Moose::Meta::Method::Accessor
1363 - type-constraint tests now handle overloaded objects correctly
1364 in the error message
1365 - added tests for this (thanks to EvanCarroll)
1367 * Moose::Meta::TypeConstraint::Union
1368 - added (has_)hand_optimized_constraint to this class so that
1369 it behaves as the regular Moose::Meta::TypeConstraint does.
1372 - large refactoring of this code
1373 - added several more tests
1374 - tests for subtle conflict resolition issues
1375 added, but not currently running
1378 * Moose::Cookbook::Recipe7
1379 - added new recipe for augment/inner functionality
1381 - added test for this
1384 - a formal definition of roles (still in progress)
1387 - utilities for easier working with Moose classes
1388 - added tests for these
1391 - This contains Moose specific test functions
1392 - added tests for these
1394 0.24 Tues. July 3, 2007
1395 ~ Some doc updates/cleanup ~
1397 * Moose::Meta::Attribute
1398 - added support for roles to be given as parameters
1399 to the 'handles' option.
1400 - added tests and docs for this
1401 - the has '+foo' attribute form now accepts changes to
1402 the lazy option, and the addition of a handles option
1403 (but not changing the handles option)
1404 - added tests and docs for this
1407 - required methods are now fetched using find_method_by_name
1408 so that required methods can come from superclasses
1409 - adjusted tests for this
1411 0.23 Mon. June 18, 2007
1412 * Moose::Meta::Method::Constructor
1413 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1414 * Moose::Meta::Class
1415 - Modify make_immutable to work with the new Class::MOP immutable
1416 mechanism + POD + very basic test (groditi)
1417 * Moose::Meta::Attribute
1418 - Fix handles to use goto() so that caller() comes out properly on
1419 the other side (perigrin)
1421 0.22 Thurs. May 31, 2007
1422 * Moose::Util::TypeConstraints
1423 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1424 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1425 prototypes for functions
1426 - added the ClassName type constraint, this checks for strings
1427 which will respond true to ->isa(UNIVERSAL).
1428 - added tests and docs for this
1429 - subtyping just in name now works correctly by making the
1430 default for where be { 1 }
1431 - added test for this
1433 * Moose::Meta::Method::Accessor
1434 - coerce and lazy now work together correctly, thanks to
1435 merlyn for finding this bug
1436 - tests added for this
1437 - fix reader presedence bug in Moose::Meta::Attribute + tests
1440 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1441 a HASH-ref and missed. This produces better error messages then
1442 having it die cause undef is not a HASH.
1443 - added tests for this
1445 0.21 Thursday, May 2nd, 2007
1447 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1448 - modified unimport to remove super and inner along with the rest
1449 - altered unimport tests to handle this
1452 - altered super export to populate SUPER_SLOT
1454 * Moose::Meta::Class
1455 - altered augment and override modifier application to use *_SLOT
1456 - modified tests for these to unimport one test class each to test
1459 - fixed issue where custom attribute metaclasses
1460 where not handled correctly in roles
1461 - added tests for this
1463 * Moose::Meta::Class
1464 - fixed issue where extending metaclasses with
1465 roles would blow up. Thanks to Aankhen`` for
1466 finding this insidious error, and it's solution.
1468 ~~ lots of spelling and grammer fixes in the docs,
1469 many many thanks to rlb3 and Aankhen for these :)
1471 0.20 Friday, April 6th, 2007
1472 >> I messed up the SKIP logic in one test
1473 so this release is just to fix that.
1476 - 'has' now also accepts an ARRAY ref
1477 to create multiple attrs (see docs)
1478 (thanks to konobi for this)
1479 - added tests and docs
1481 0.19 Thurs. April 5th, 2007
1482 ~~ More documentation updates ~~
1484 * Moose::Util::TypeConstraints
1485 - 'type' now supports messages as well
1486 thanks to phaylon for finding this
1487 - added tests for this
1488 - added &list_all_type_constraints and
1489 &list_all_builtin_type_constraints
1490 functions to facilitate introspection.
1492 * Moose::Meta::Attribute
1493 - fixed regexp 'handles' declarations
1494 to build the list of delegated methods
1495 correctly (and not override important
1496 things like &new) thanks to ashleyb
1498 - added tests and docs for this
1499 - added the 'documentation' attributes
1500 so that you can actually document your
1501 attributes and inspect them through the
1503 - added tests and docs for this
1505 * Moose::Meta::Class
1506 - when loading custom attribute metaclasses
1507 it will first look in for the class in the
1508 Moose::Meta::Attribute::Custom::$name, and
1509 then default to just loading $name.
1510 - added tests and docs for this
1512 * Moose::Meta::TypeConstraint
1513 - type constraints now stringify to their names.
1514 - added test for this
1517 - added tests to assure we work with Module::Refresh
1518 - added stricter test skip logic in the Moose POOP
1519 test, ask Rob Kinyon why.
1520 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1522 0.18 Sat. March 10, 2007
1523 ~~ Many, many documentation updates ~~
1526 - We now use Class::MOP::load_class to
1528 - added tests to show types and subtypes
1529 working with Declare::Constraints::Simple
1530 and Test::Deep as constraint engines.
1533 !! You must have Class::MOP 0.37_001 !!
1534 !! for this developer release to work !!
1536 This release was primarily adding the immutable
1537 feature to Moose. An immutable class is one which
1538 you promise not to alter. When you set the class
1539 as immutable it will perform various bits of
1540 memoization and inline certain part of the code
1541 (constructors, destructors and accessors). This
1542 minimizes (and in some cases totally eliminates)
1543 one of Moose's biggest performance hits. This
1544 feature is not on by default, and is 100% optional.
1545 It has several configurable bits as well, so you
1546 can pick and choose to your specific needs.
1548 The changes involved in this were fairly wide and
1549 highly specific, but 100% backwards compatible, so
1550 I am not going to enumerate them here. If you are
1551 truely interested in what was changed, please do
1554 0.17 Tues. Nov. 14, 2006
1555 * Moose::Meta::Method::Accessor
1556 - bugfix for read-only accessors which
1557 are have a type constraint and lazy.
1558 Thanks to chansen for finding it.
1560 0.16 Tues. Nov. 14, 2006
1562 There are some speed improvements in this release,
1563 but they are only the begining, so stay tuned.
1566 - BUILDALL and DEMOLISHALL no longer get
1567 called unless they actually need to be.
1568 This gave us a signifigant speed boost
1569 for the cases when there is no BUILD or
1570 DEMOLISH method present.
1572 * Moose::Util::TypeConstraints
1573 * Moose::Meta::TypeConstraint
1574 - added an 'optimize_as' option to the
1575 type constraint, which allows for a
1576 hand optimized version of the type
1577 constraint to be used when possible.
1578 - Any internally created type constraints
1579 now provide an optimized version as well.
1581 0.15 Sun. Nov. 5, 2006
1583 This version of Moose *must* have Class::MOP 0.36 in order
1584 to work correctly. A number of small internal tweaks have
1585 been made in order to be compatible with that release.
1587 * Moose::Util::TypeConstraints
1588 - added &unimport so that you can clean out
1589 your class namespace of these exported
1592 * Moose::Meta::Class
1593 - fixed minor issue which occasionally
1594 comes up during global destruction
1596 - moved Moose::Meta::Method::Overriden into
1600 - moved Moose::Meta::Role::Method into
1603 * Moose::Meta::Attribute
1604 - changed how we do type checks so that
1605 we reduce the overall cost, but still
1608 - moved accessor generation methods to
1609 Moose::Meta::Method::Accessor to
1610 conform to the API changes from
1613 * Moose::Meta::TypeConstraint
1614 - changed how constraints are compiled
1615 so that we do less recursion and more
1616 iteration. This makes the type check
1618 - moved Moose::Meta::TypeConstraint::Union
1621 * Moose::Meta::Method::Accessor
1622 - created this from methods formerly found in
1623 Moose::Meta::Attribute
1625 * Moose::Meta::Role::Method
1626 - moved this from Moose::Meta::Role
1628 * Moose::Meta::Method::Overriden
1629 - moved this from Moose::Meta::Class
1631 * Moose::Meta::TypeConstraint::Union
1632 - moved this from Moose::Meta::TypeConstraint
1634 0.14 Mon. Oct. 9, 2006
1636 * Moose::Meta::Attribute
1637 - fixed lazy attributes which were not getting
1638 checked with the type constraint (thanks ashley)
1639 - added tests for this
1640 - removed the over-enthusiastic DWIMery of the
1641 automatic ArrayRef and HashRef defaults, it
1642 broke predicates in an ugly way.
1643 - removed tests for this
1645 0.13 Sat. Sept. 30, 2006
1647 This version of Moose *must* have Class::MOP 0.35 in order
1648 to work correctly. A number of small internal tweaks have
1649 been made in order to be compatible with that release.
1652 - Removed the use of UNIVERSAL::require to be a better
1653 symbol table citizen and remove a dependency
1654 (thanks Adam Kennedy)
1656 **~~ removed experimental & undocumented feature ~~**
1657 - commented out the 'method' and 'self' keywords, see the
1658 comments for more info.
1661 - added a FAQ and WTF files to document frequently
1662 asked questions and common problems
1664 * Moose::Util::TypeConstraints
1665 - added GlobRef and FileHandle type constraint
1666 - added tests for this
1668 * Moose::Meta::Attribute
1669 - if your attribute 'isa' ArrayRef of HashRef, and you have
1670 not explicitly set a default, then make the default DWIM.
1671 This will also work for subtypes of ArrayRef and HashRef
1673 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1674 - new test added for this (thanks to ashley)
1677 - added basic support for runtime role composition
1678 but this is still *highly experimental*, so feedback
1679 is much appreciated :)
1680 - added tests for this
1682 * Moose::Meta::TypeConstraint
1683 - the type constraint now handles the coercion process
1684 through delegation, this is to support the coercion
1687 * Moose::Meta::TypeConstraint::Union
1688 - it is now possible for coercions to be performed
1690 - added tests for this (thanks to konobi)
1692 * Moose::Meta::TypeCoercion
1693 - properly capturing error when type constraint
1697 - Scalar::Util 1.18 is bad on Win32, so temporarily
1698 only require version 1.17 for Win32 and cygwin.
1699 (thanks Adam Kennedy)
1701 0.12 Sat. Sept. 1, 2006
1703 - Recipe5 (subtypes & coercion) has been written
1706 - fixed "bad meta" error message to be more descriptive
1707 - fixed &unimport to not remove the &inner and &super
1708 keywords because we need to localize them.
1709 - fixed number of spelling/grammer issues, thanks Theory :)
1711 **~~ experimental & undocumented feature ~~**
1712 - added the method and self keywords, they are basically
1713 just sugar, and they may not stay around.
1716 - added &dump method to easily Data::Dumper
1719 * Moose::Meta::TypeConstraint
1720 - added the &is_a_type_of method to check both the current
1721 and the subtype of a method (similar to &isa with classes)
1724 - this is now a subclass of Class::MOP::Module, and no longer
1725 creates the _role_meta ugliness of before.
1726 - fixed tests to reflect this change
1728 0.11 Wed. July 12, 2006
1730 - added an &unimport method to remove all the keywords
1731 that Moose will import, simply add 'no Moose' to the
1732 bottom of your class file.
1735 - fixed some test failures caused by a forgotten test
1738 0.10 Thurs. July 6, 2006
1740 - improved error message when loading modules so
1741 it is less confusing when you load a role.
1742 - added &calculate_all_roles method to
1743 Moose::Meta::Class and Moose::Meta::Role
1746 This module has been tested against Class::MOP 0.30
1747 but it does not yet utilize the optimizations
1748 it makes available. Stay tuned for that ;)
1750 0.09_03 Fri. June 23, 2006
1751 ++ DEVELOPER RELEASE ++
1753 - 'use strict' and 'use warnings' are no longer
1754 needed in Moose classes, Moose itself will
1755 turn them on for you.
1756 - added tests for this
1757 - moved code from exported subs to private methods
1758 in Moose::Meta::Class
1761 - as with Moose, strict and warnings are
1762 automatically turned on for you.
1763 - added tests for this
1766 - now handles an edge case for override errors
1767 - added tests for this
1768 - added some more edge case tests
1770 0.09_02 Tues. May 16, 2006
1771 ++ DEVELOPER RELEASE ++
1773 - added prototypes to the exported subs
1777 - added prototypes to the exported subs
1780 * Moose::Util::TypeConstraints
1781 - cleaned up prototypes for the subs
1784 0.09_01 Fri. May 12, 2006
1785 ++ DEVELOPER RELEASE ++
1786 - This release works in combination with
1787 Class::MOP 0.29_01, it is a developer
1788 release because it uses the a new
1789 instance sub-protocol and a fairly
1790 complete Role implementation. It has
1791 not yet been optimized, so it slower
1792 the the previous CPAN version. This
1793 release also lacks good updated docs,
1794 the official release will have updated docs.
1797 - refactored the keyword exports
1798 - 'with' now checks Role validaity and
1799 accepts more than one Role at a time
1800 - 'extends' makes metaclass adjustments as
1801 needed to ensure metaclass compatibility
1804 - refactored the keyword exports
1805 - 'with' now checks Role validaity and
1806 accepts more than one Role at a time
1808 * Moose::Util::TypeConstraints
1809 - added the 'enum' keyword for simple
1810 string enumerations which can be used as
1812 - see example of usage in t/202_example.t
1815 - more careful checking of params to new()
1818 - much work done on the role composition
1819 - many new tests for conflict detection
1820 and composition edge cases
1821 - not enough documentation, I suggest
1822 looking at the tests
1824 * Moose::Meta::Instance
1825 - added new Instance metaclass to support
1826 the new Class::MOP instance protocol
1828 * Moose::Meta::Class
1829 - some small changes to support the new
1831 - some small additions to support Roles
1833 * Moose::Meta::Attribute
1834 - some improvements to the accessor generation code
1836 - some small changes to support the new
1838 - (still somewhat) experimental delegation support
1839 with the 'handles' option
1840 - added several tests for this
1841 - no docs for this yet
1843 0.05 Thurs. April 27, 2006
1845 - keywords are now exported with Sub::Exporter
1846 thanks to chansen for this commit
1847 - has keyword now takes a 'metaclass' option
1848 to support custom attribute meta-classes
1849 on a per-attribute basis
1850 - added tests for this
1851 - the 'has' keyword not accepts inherited slot
1852 specifications (has '+foo'). This is still an
1853 experimental feature and probably not finished
1854 see t/038_attribute_inherited_slot_specs.t for
1855 more details, or ask about it on #moose
1856 - added tests for this
1859 - keywords are now exported with Sub::Exporter
1861 * Moose::Utils::TypeConstraints
1862 - reorganized the type constraint hierarchy, thanks
1863 to nothingmuch and chansen for his help and advice
1865 - added some tests for this
1866 - keywords are now exported with Sub::Exporter
1867 thanks to chansen for this commit
1869 * Moose::Meta::Class
1870 - due to changes in Class::MOP, we had to change
1871 construct_instance (for the better)
1873 * Moose::Meta::Attribute
1874 - due to changes in Class::MOP, we had to add the
1875 initialize_instance_slot method (it's a good thing)
1877 * Moose::Meta::TypeConstraint
1878 - added type constraint unions
1879 - added tests for this
1880 - added the is_subtype_of predicate method
1881 - added tests for this
1883 0.04 Sun. April 16th, 2006
1885 - Roles can now consume other roles
1886 - added tests for this
1887 - Roles can specify required methods now with
1888 the requires() keyword
1889 - added tests for this
1892 - ripped out much of it's guts ,.. much cleaner now
1893 - added required methods and correct handling of
1894 them in apply() for both classes and roles
1895 - added tests for this
1896 - no longer adds a does() method to consuming classes
1897 it relys on the one in Moose::Object
1898 - added roles attribute and some methods to support
1899 roles consuming roles
1901 * Moose::Meta::Attribute
1902 - added support for triggers on attributes
1903 - added tests for this
1904 - added support for does option on an attribute
1905 - added tests for this
1907 * Moose::Meta::Class
1908 - added support for attribute triggers in the
1910 - added tests for this
1913 - Moose no longer creates a subtype for your class
1914 if a subtype of the same name already exists, this
1915 should DWIM in 99.9999% of all cases
1917 * Moose::Util::TypeConstraints
1918 - fixed bug where incorrect subtype conflicts were
1920 - added test for this
1923 - this class can now be extended with 'use base' if
1924 you need it, it properly loads the metaclass class now
1925 - added test for this
1927 0.03_02 Wed. April 12, 2006
1929 - you must now explictly use Moose::Util::TypeConstraints
1930 it no longer gets exported for you automatically
1933 - new() now accepts hash-refs as well as key/value lists
1934 - added does() method to check for Roles
1935 - added tests for this
1937 * Moose::Meta::Class
1938 - added roles attribute along with the add_role() and
1940 - added tests for this
1943 - now adds a does() method to consuming classes
1944 which tests the class's hierarchy for roles
1945 - added tests for this
1947 0.03_01 Mon. April 10, 2006
1949 - added new Role recipe (no content yet, only code)
1952 - added 'with' keyword for Role support
1953 - added test and docs for this
1954 - fixed subtype quoting bug
1955 - added test for this
1959 - added test and docs
1961 * Moose::Util::TypeConstraints
1962 - added the message keyword to add custom
1963 error messages to type constraints
1966 - the meta role to support Moose::Role
1967 - added tests and docs
1969 * Moose::Meta::Class
1970 - moved a number of things from Moose.pm
1971 to here, they should have been here
1974 * Moose::Meta::Attribute
1975 - moved the attribute option macros here
1976 instead of putting them in Moose.pm
1978 * Moose::Meta::TypeConstraint
1979 - added the message attributes and the
1981 - added tests and docs for this
1983 0.03 Thurs. March 30, 2006
1985 - added the Moose::Cookbook with 5 recipes,
1986 describing all the stuff Moose can do.
1989 - fixed an issue with &extends super class loading
1990 it now captures errors and deals with inline
1991 packages correctly (bug found by mst, solution
1993 - added super/override & inner/augment features
1994 - added tests and docs for these
1997 - BUILDALL now takes a reference of the %params
1998 that are passed to &new, and passes that to
2001 * Moose::Util::TypeConstraints
2002 - Type constraints now survive runtime reloading
2003 - added test for this
2005 * Moose::Meta::Class
2006 - fixed the way attribute defaults are handled
2007 during instance construction (bug found by chansen)
2009 * Moose::Meta::Attribute
2010 - read-only attributes now actually enforce their
2011 read-only-ness (this corrected in Class::MOP as
2014 0.02 Tues. March 21, 2006
2016 - many more tests, fixing some bugs and
2018 - &extends now loads the base module with
2020 - added UNIVERSAL::require to the
2023 - each new Moose class will also create
2024 and register a subtype of Object which
2025 correspond to the new Moose class.
2026 - the 'isa' option in &has now only
2027 accepts strings, and will DWIM in
2030 * Moose::Util::TypeConstraints
2031 - added type coercion features
2032 - added tests for this
2033 - added support for this in attributes
2034 and instance construction
2036 - type construction no longer creates a
2037 function, it registers the type instead.
2038 - added several functions to get the
2042 - BUILDALL and DEMOLISHALL were broken
2043 because of a mis-named hash key, Whoops :)
2045 * Moose::Meta::Attribute
2046 - adding support for coercion in the
2047 autogenerated accessors
2049 * Moose::Meta::Class
2050 - adding support for coercion in the
2051 instance construction
2053 * Moose::Meta::TypeConstraint
2054 * Moose::Meta::TypeCoercion
2055 - type constraints and coercions are now
2056 full fledges meta-objects
2058 0.01 Wed. March 15, 2006
2059 - Moooooooooooooooooose!!!