1 Revision history for Perl extension Moose
4 * Moose and Moose::Meta::Method::Overridden
5 - If an overridden method called super(), and then the
6 superclass's method (not overridden) _also_ called super(),
7 Moose went into an endless recursion loop. Test provided by
8 Chris Prather. (Dave Rolsky)
10 * Moose::Meta::TypeConstraint
11 - All methods are now documented. (gphat)
13 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
14 - Fixed some bogus failures that occurred because we tried to
15 validate filesystem paths in a very ad-hoc and
16 not-quite-correct way. (Dave Rolsky)
18 * added maybe_type to exports of Moose::Util::TypeConstraints (rjbs)
20 0.64 Wed, December 31, 2008
21 * Moose::Meta::Method::Accessor
22 - Always inline predicate and clearer methods (Sartak)
24 * Moose::Meta::Attribute
25 - Support for parameterized traits (Sartak)
26 - verify_against_type_constraint method to avoid duplication
27 and enhance extensibility (Sartak)
30 - Tests (but no support yet) for parameterized traits (Sartak)
33 - Require Class::MOP 0.75+, which has the side effect of making
34 sure we work on Win32. (Dave Rolsky)
36 0.63 Mon, December 8, 2008
38 - Some small grammar tweaks and bug fixes in non-Moose example
41 0.62_02 Fri, December 5, 2008
42 * Moose::Meta::Role::Application::ToClass
43 - When a class does not provide all of a role's required
44 methods, the error thrown now mentions all of the missing
45 methods, as opposed to just the first one found. Requested by
46 Curtis Poe (RT #41119). (Dave Rolsky)
48 * Moose::Meta::Method::Constructor
49 - Moose will no longer inline a constructor for your class
50 unless it inherits its constructor from Moose::Object, and
51 will warn when it doesn't inline. If you want to force
52 inlining anyway, pass "replace_constructor => 1" to
53 make_immutable. Addresses RT #40968, reported by Jon
55 - The quoting of default values could be broken if the default
56 contained a single quote ('). Now we use quotemeta to escape
57 anything potentially dangerous in the defaults. (Dave Rolsky)
59 0.62_01 Wed, December 3, 2008
61 - use the method->execute API for BUILDALL
62 and DEMOLISHALL (Sartak)
64 * Moose::Util::TypeConstraints
65 - We now make all the type constraint meta classes immutable
66 before creating the default types provided by Moose. This
67 should make loading Moose a little faster. (Dave Rolsky)
69 0.62 Wed November 26, 2008
70 * Moose::Meta::Role::Application::ToClass
71 Moose::Meta::Role::Application::ToRole
72 - fixed issues where excluding and aliasing the
73 same methods for a single role did not work
74 right (worked just fine with multiple
76 - added test for this (stevan)
78 * Moose::Meta::Role::Application::RoleSummation
79 - fixed the error message when trying to compose
80 a role with a role it excludes (Sartak)
83 - Catch another case where recursion caused the value
84 of $CALLER to be stamped on (t0m)
85 - added test for this (t0m)
88 - Remove the make_immutable keyword, which has been
89 deprecated since April. It breaks metaclasses that
90 use Moose without no Moose (Sartak)
92 * Moose::Meta::Attribute
93 - Removing an attribute from a class now also removes delegation
94 (handles) methods installed for that attribute (t0m)
95 - added test for this (t0m)
97 * Moose::Meta::Method::Constructor
98 - An attribute with a default that looked like a number (but was
99 really a string) would accidentally be treated as a number
100 when the constructor was made immutable (perigrin)
101 - added test for this (perigrin)
104 - create method for constructing a role
106 - added test for this (Sartak)
107 - anonymous roles! (Sartak)
108 - added test for this (Sartak)
111 - more consistent error messages (Sartak)
113 * Moose::Cookbook::Roles::Recipe1
114 - attempt to explain why a role that just requires
115 methods is useful (Sartak)
117 0.61 Fri November 7, 2008
118 * Moose::Meta::Attribute
119 - When passing a role to handles, it will be loaded if necessary
123 - Method objects returned by get_method (and other methods)
124 Could end up being returned without an associated_metaclass
125 attribute. Removing get_method_map, which is provided by
126 Class::MOP::Class, fixed this. The Moose version did nothing
127 different from its parent except introduce a bug. (Dave Rolsky)
128 - added tests for this (jdv79)
131 - Added a $VERSION to all .pm files which didn't have one. Fixes
132 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
134 * Moose::Cookbook::Basics::Recipe4
135 * Moose::Cookbook::Basics::Recipe6
136 - These files had spaces on the first line of the SYNOPSIS, as
137 opposed to a totally empty line. According to RT #40432, this
138 confuses POD parsers. (Dave Rolsky)
140 0.60 Fri October 24, 2008
142 - Passing "-traits" when loading Moose caused the Moose.pm
143 exports to be broken. Reported by t0m. (Dave Rolsky)
144 - Tests for this bug. (t0m)
147 - Change resolve_metaclass alias to use the new
148 load_first_existing_class function. This makes it a lot
149 simpler, and also around 5 times faster. (t0m)
150 - Add caching to resolve_metaclass_alias, which gives an order
151 of magnitude speedup to things which repeatedly call the
152 Moose::Meta::Attribute->does method, notably MooseX::Storage
155 * Moose::Util::TypeConstraint
156 - Put back the changes for parameterized constraints that
157 shouldn't have been removed in 0.59. We still cannot parse
158 them, but MooseX modules can create them in some other
159 way. See the 0.58 changes for more details. (jnapiorkowski)
160 - Changed the way subtypes are created so that the job is
161 delegated to a type constraint parent. This clears up some
162 hardcoded checking and should allow correct subtypes of
163 Moose::Meta::Type::Constraint. Don't rely on this new API too
164 much (create_child_type) because it may go away in the
165 future. (jnapiorkowski)
167 * Moose::Meta::TypeConstraint::Union
168 - Type constraint names are sorted as strings, not numbers.
171 * Moose::Meta::TypeConstraint::Parameterizable
172 - New parameterize method. This can be used as a factory method
173 to make a new type constraint with a given parameterized
174 type. (jnapiorkowski)
175 - added tests (jnapiorkowski)
177 0.59 Tue October 14, 2008
179 - Add abridged documentation for builder/default/initializer/
180 predicate, and link to more details sections in
181 Class::MOP::Attribute. (t0m)
183 * Moose::Util::TypeConstraints
184 - removed prototypes from all but the &-based stuff (mst)
186 * Moose::Util::TypeConstraints
187 - Creating a anonymous subtype with both a constraint and a
188 message failed with a very unhelpful error, but should just
189 work. Reported by t0m. (Dave Rolsky)
192 - Some tests that used Test::Warn if it was available failed
193 with older versions of Test::Warn. Reported by Fayland. (Dave
195 - Test firing behavior of triggers in relation to builder/default/
197 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
198 kinds of supported type. (t0m)
201 - In create(), do not pass "roles" option to the superclass
202 - added related test that creates an anon metaclass with
205 * Moose::Meta::TypeConstraint::Class
206 * Moose::Meta::TypeConstraint::Role
207 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
208 other types (as per change in 0.55_02). (t0m)
210 * Moose::Meta::TypeConstraint::Registry
211 - Fix warning when dealing with unknown type names (t0m)
213 * Moose::Util::TypeConstraints
214 - Reverted changes from 0.58 related to handle parameterized
215 types. This caused random failures on BSD and Win32 systems,
216 apparently related to the regex engine. This means that Moose
217 can no longer parse structured type constraints like
218 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
219 supported in a slightly different way via MooseX::Types some
220 time in the future. (Dave Rolsky)
222 0.58 Sat September 20, 2008
223 !! This release has an incompatible change regarding !!
224 !! how roles add methods to a class !!
226 * Roles and role application
227 ! Roles now add methods by calling add_method, not
228 alias_method. They make sure to always provide a method
229 object, which will be cloned internally. This means that it is
230 now possible to track the source of a method provided by a
231 role, and even follow its history through intermediate roles.
233 This means that methods added by a role now show up when
234 looking at a class's method list/map. (Dave Rolsky)
237 - From this release on, we'll try to maintain a list of
238 conflicting modules, and warn you if you have one
239 installed. For example, this release conflicts with ...
240 - MooseX::Singleton <= 0.11
241 - MooseX::Params::Validate <= 0.05
244 In general, we try to not break backwards compatibility for
245 most Moose users, but MooseX modules and other code which
246 extends Moose's metaclasses is often affected by very small
247 changes in the Moose internals.
249 * Moose::Meta::Method::Delegation
250 * Moose::Meta::Attribute
251 - Delegation methods now have their own method class. (Dave
254 * Moose::Meta::TypeConstraint::Parameterizable
255 - Added a new method 'parameterize' which is basically a factory
256 for the containing constraint. This makes it easier to create
257 new types of parameterized constraints. (jnapiorkowski)
259 * Moose::Meta::TypeConstraint::Union
260 - Changed the way Union types canonicalize their names to follow
261 the normalized TC naming rules, which means we strip all
262 whitespace. (jnapiorkowski)
264 * Moose::Util::TypeConstraints
265 - Parameter and Union args are now sorted, this makes Int|Str
266 the same constraint as Str|Int. (jnapiorkowski)
267 - Changes to the way Union types are parsed to more correctly
268 stringify their names. (jnapiorkowski)
269 - When creating a parameterized type, we now use the new
270 parameterize method. (jnapiorkowski)
271 - Incoming type constraint strings are now normalized to remove
272 all whitespace differences. (jnapiorkowski)
273 - Changed the way we parse type constraint strings so that we now
274 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
275 constraints. This lays the foundation for more flexible type
276 constraint implementations.
278 * Tests and docs for all the above. (jnapiorkowski)
282 - Moose::Exporter will no longer remove a subroutine that the
283 exporting package re-exports. Moose re-exports the
284 Carp::confess function, among others. The reasoning is that we
285 cannot know whether you have also explicitly imported those
286 functions for your own use, so we err on the safe side and
287 always keep them. (Dave Rolsky)
288 - added tests for this (rafl)
291 - Changes to how we fix metaclass compatibility that are much
292 too complicated to go into. The summary is that Moose is much
293 less likely to complain about metaclass incompatibility
294 now. In particular, if two metaclasses differ because
295 Moose::Util::MetaRole was used on the two corresponding
296 classes, then the difference in roles is reconciled for the
297 subclass's metaclass. (Dave Rolsky)
298 - Squashed an warning in _process_attribute (thepler)
301 - throw exceptions (sooner) for invalid attribute names (thepler)
302 - added tests for this (thepler)
304 * Moose::Util::MetaRole
305 - If you explicitly set a constructor or destructor class for a
306 metaclass object, and then applied roles to the metaclass,
307 that explicitly set class would be lost and replaced with the
311 * Moose::Meta::Attribute
312 * Moose::Meta::Method
315 * Moose::Error::Default
316 * Moose::Error::Croak
317 * Moose::Error::Confess
318 - All instances of confess() changed to use overridable
319 C<throw_error> method. This method ultimately calls a class
320 constructor, and you can change the class being called. In
321 addition, errors now pass more information than just a string.
322 The default C<error_class> behaves like C<Carp::confess>, so
323 the behavior is not visibly different for end users.
325 0.57 Wed September 3, 2008
327 - A new bit of doc intended to introduce folks familiar with
328 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
331 - Shows examples of two classes, each done first with and then
332 without Moose. This makes a nice parallel to
333 Moose::Intro. (Dave Rolsky)
335 * Moose::Util::TypeConstraints
336 - Fixed a bug in find_or_parse_type_constraint so that it
337 accepts a Moose::Meta::TypeConstraint object as the parent
338 type, not just a name (jnapiorkowski)
339 - added tests (jnapiorkowski)
342 - If Sub::Name was not present, unimporting failed to actually
343 remove some sugar subs, causing test failures (Dave Rolsky)
345 0.56 Mon September 1, 2008
346 For those not following the series of dev releases, there are
347 several major changes in this release of Moose.
348 ! Moose::init_meta should now be called as a method. See the
351 - Major performance improvements by nothingmuch.
353 - New modules for extension writers, Moose::Exporter and
354 Moose::Util::MetaRole by Dave Rolsky.
356 - Lots of doc improvements and additions, especially in the
361 * Removed all references to the experimental-but-no-longer-needed
362 Moose::Meta::Role::Application::ToMetaclassInstance.
364 * Require Class::MOP 0.65.
366 0.55_04 Sat August 30, 2008
367 * Moose::Util::MetaRole
368 * Moose::Cookbook::Extending::Recipe2
369 - This simplifies the application of roles to any meta class, as
370 well as the base object class. Reimplemented metaclass traits
371 using this module. (Dave Rolsky)
373 * Moose::Cookbook::Extending::Recipe1
374 - This a new recipe, an overview of various ways to write Moose
375 extensions (Dave Rolsky)
377 * Moose::Cookbook::Extending::Recipe3
378 * Moose::Cookbook::Extending::Recipe4
379 - These used to be Extending::Recipe1 and Extending::Recipe2,
382 0.55_03 Fri August 29, 2008
383 * No changes from 0.55_02 except increasing the Class::MOP
384 dependency to 0.64_07.
386 0.55_02 Fri August 29, 2008
387 * Makefile.PL and Moose.pm
388 - explicitly require Perl 5.8.0+ (Dave Rolsky)
390 * Moose::Util::TypeConstraints
391 - Fix warnings from find_type_constraint if the type is not
394 * Moose::Meta::TypeConstraint
395 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
396 return false if the type you specify cannot be found in the
397 type registry, rather than throwing an unhelpful and
398 coincidental exception. (t0m).
399 - added docs & test for this (t0m)
401 * Moose::Meta::TypeConstraint::Registry
402 - add_type_constraint now throws an exception if a parameter is
404 - added docs & test for this (t0m)
406 * Moose::Cookbook::FAQ
407 - Added a faq entry on the difference between "role" and "trait"
411 - Fixed a bug that caused role composition to not see a required
412 method when that method was provided by another role being
413 composed at the same time. (Dave Rolsky)
414 - test and bug finding (tokuhirom)
416 0.55_01 Wed August 20, 2008
418 !! Calling Moose::init_meta as a function is now !!
419 !! deprecated. Please see the Moose.pm docs for details. !!
421 * Moose::Meta::Method::Constructor
422 - Fix inlined constructor so that values produced by default
423 or builder methods are coerced as required. (t0m)
424 - added test for this (t0m)
426 * Moose::Meta::Attribute
427 - A lazy attribute with a default or builder did not attempt to
428 coerce the default value. The immutable code _did_
430 - added test for this (t0m)
433 - This is a new helper module for writing "Moose-alike"
434 modules. This should make the lives of MooseX module authors
435 much easier. (Dave Rolsky)
438 * Moose::Cookbook::Meta::Recipe5
439 - Implemented metaclass traits (and wrote a recipe for it):
441 use Moose -traits => 'Foo'
443 This should make writing small Moose extensions a little
446 * Moose::Cookbook::Basics::Recipe1
447 - Removed any examples of direct hashref access, and applied an
448 editorial axe to reduce verbosity. (Dave Rolsky)
450 * Moose::Cookbook::Basics::Recipe1
451 - Also applied an editorial axe here. (Dave Rolsky)
454 * Moose::Cookbook::Extending::Recipe1
455 * Moose::Cookbook::Extending::Recipe2
456 - Rewrote extending and embedding moose documentation and
457 recipes to use Moose::Exporter (Dave Rolsky)
461 - These two modules now warn when you load them from the main
462 package "main" package, because we will not export sugar to
463 main. Previously it just did nothing. (Dave Rolsky)
466 - Now provide an init_meta method just like Moose.pm, and you
467 can call this to provide an alternate role metaclass. (Dave
468 Rolsky and nothingmuch)
469 - get_method_map now respects the package cache flag (nothingmuch)
472 - Two new methods - add_method and wrap_method_body
476 - Optimizations including allowing constructors to accept hash
477 refs, making many more classes immutable, and making
478 constructors immutable. (nothingmuch)
480 0.55 Sun August 3, 2008
481 * Moose::Meta::Attribute
482 - breaking down the way 'handles' methods are
483 created so that the process can be more easily
484 overridden by subclasses (stevan)
486 * Moose::Meta::TypeConstraint
487 - fixing what is passed into a ->message with
488 the type constraints (RT #37569)
489 - added tests for this (Charles Alderman)
491 * Moose::Util::TypeConstraints
492 - fix coerce to accept anon types like subtype can (mst)
495 - reorganized the recipes into sections - Basics, Roles, Meta,
496 Extending - and wrote abstracts for each section (Dave Rolsky)
498 * Moose::Cookbook::Basics::Recipe10
499 - A new recipe that demonstrates operator overloading
500 in combination with Moose. (bluefeet)
502 * Moose::Cookbook::Meta::Recipe1
503 - an introduction to what meta is and why you'd want to make
504 your own metaclass extensions (Dave Rolsky)
506 * Moose::Cookbook::Meta::Recipe4
507 - a very simple metaclass example (Dave Rolsky)
509 * Moose::Cookbook::Extending::Recipe1
510 - how to write a Moose-alike module to use your own object base
513 * Moose::Cookbook::Extending::Recipe2
514 - how to write modules with an API just like C<Moose.pm> (Dave
518 - Tons of fixes, both syntactical and grammatical (Dave
519 Rolsky, Paul Fenwick)
521 0.54 Thurs. July 3, 2008
522 ... this is not my day today ...
524 * Moose::Meta::Attribute
525 - fixed legal_options_for_inheritance such that
526 clone_and_inherit options still works for
527 Class::MOP::Attribute objects and therefore
528 does not break MooseX::AttributeHelpers
531 0.53 Thurs. July 3, 2008
532 * Whoops, I guess I should run 'make manifest' before
533 actually releasing the module. No actual changes
534 in this release, except the fact that it includes
535 the changes that I didn't include in the last
538 0.52 Thurs. July 3, 2008
540 - added "FEATURE REQUESTS" section to the Moose docs
541 to properly direct people (stevan) (RT #34333)
542 - making 'extends' croak if it is passed a Role since
543 this is not ever something you want to do
544 (fixed by stevan, found by obra)
545 - added tests for this (stevan)
548 - adding support for DOES (as in UNIVERSAL::DOES)
550 - added test for this
552 * Moose::Meta::Attribute
553 - added legal_options_for_inheritance (wreis)
554 - added tests for this (wreis)
556 * Moose::Cookbook::Snacks::*
557 - removed some of the unfinished snacks that should
558 not have been released yet. Added some more examples
559 to the 'Keywords' snack. (stevan)
561 * Moose::Cookbook::Style
562 - added general Moose "style guide" of sorts to the
563 cookbook (nothingmuch) (RT #34335)
566 - added more BUILDARGS tests (stevan)
568 0.51 Thurs. Jun 26, 2008
570 - add unimport so "no Moose::Role" actually does
573 * Moose::Meta::Role::Application::ToRole
574 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
575 order to provide its own implementation, that method still got
576 added to the list of required methods for consumers of
577 RoleB. Now an aliased method is only added to the list of
578 required methods if the role doing the aliasing does not
579 provide its own implementation. See Recipe 11 for an example
580 of all this. (Dave Rolsky)
581 - added tests for this
583 * Moose::Meta::Method::Constructor
584 - when a single argument that wasn't a hashref was provided to
585 an immutabilized constructor, the error message was very
586 unhelpful, as opposed to the non-immutable error. Reported by
588 - added test for this (Dave Rolsky)
590 * Moose::Meta::Attribute
591 - added support for meta_attr->does("ShortAlias") (sartak)
592 - added tests for this (sartak)
593 - moved the bulk of the `handles` handling to the new
594 install_delegation method (Stevan)
597 - Added BUILDARGS, a new step in new()
599 * Moose::Meta::Role::Application::RoleSummation
600 - fix typos no one ever sees (sartak)
602 * Moose::Util::TypeConstraints
603 * Moose::Meta::TypeConstraint
604 * Moose::Meta::TypeCoercion
605 - Attempt to work around the ??{ } vs. threads issue
607 - Some null_constraint optimizations
609 0.50 Thurs. Jun 11, 2008
610 - Fixed a version number issue by bumping all modules
613 0.49 Thurs. Jun 11, 2008
614 !! This version now approx. 20-25% !!
615 !! faster with new Class::MOP 0.59 !!
617 * Moose::Meta::Attribute
618 - fixed how the is => (ro|rw) works with
619 custom defined reader, writer and accessor
621 - added docs for this (TODO).
622 - added tests for this (Thanks to Penfold)
623 - added the custom attribute alias for regular
624 Moose attributes which is "Moose"
625 - fix builder and default both being used
630 Moose::Meta::Attribute
632 Moose::Meta::Role::Composite
633 Moose::Util::TypeConstraints
634 - switched usage of reftype to ref because
638 - changing add_package_symbol to use the new
642 - fixed how DEMOLISHALL is called so that it
643 can be overrided in subclasses (thanks to Sartak)
644 - added test for this (thanks to Sartak)
646 * Moose::Util::TypeConstraints
647 - move the ClassName type check code to
648 Class::MOP::is_class_loaded (thanks to Sartak)
650 * Moose::Cookbook::Recipe11
651 - add tests for this (thanks to tokuhirom)
653 0.48 Thurs. May 29, 2008
654 (early morning release engineering)--
656 - fixing the version in Moose::Meta::Method::Destructor
657 which was causing the indexer to choke
659 0.47 Thurs. May 29, 2008
660 (late night release engineering)--
662 - fixing the version is META.yml, no functional
663 changes in this release
665 0.46 Wed. May 28, 2008
666 !! This version now approx. 20-25% !!
667 !! faster with new Class::MOP 0.57 !!
670 - some optimizations of the &initialize method
671 since it is called so often by &meta
675 - now use the get_all_package_symbols from the
676 updated Class::MOP, test suite is now 10 seconds
679 * Moose::Meta::Method::Destructor
680 - is_needed can now also be called as a class
681 method for immutablization to check if the
682 destructor object even needs to be created
685 * Moose::Meta::Method::Destructor
686 Moose::Meta::Method::Constructor
687 - added more descriptive error message to help
688 keep people from wasting time tracking an error
689 that is easily fixed by upgrading.
691 0.45 Saturday, May 24, 2008
693 - Because of work in Class::MOP 0.57, all
694 XS based functionality is now optional
695 and a Pure Perl version is supplied
696 - the CLASS_MOP_NO_XS environment variable
697 can now be used to force non-XS versions
699 - several of the packages have been tweaked
700 to take care of this, mostly we added
701 support for the package_name and name
702 variables in all the Method metaclasses
703 - before/around/after method modifiers now
704 support regexp matching of names
705 (thanks to Takatoshi Kitano)
706 - tests added for this
707 - NOTE: this only works for classes, it
708 is currently not supported in roles,
709 but, ... patches welcome
710 - All usage of Carp::confess have been replaced
711 by Carp::croak in the "keyword" functions since
712 the stack trace is usually not helpful
715 - All usage of Carp::confess have been replaced
716 by Carp::croak in the "keyword" functions since
717 the stack trace is usually not helpful
718 - The 'has' keyword for roles now accepts the
719 same array ref form that Moose.pm does
720 (has [qw/foo bar/] => (is => 'rw', ...))
721 - added test for this
723 * Moose::Meta::Attribute
724 - trigger on a ro-attribute is no longer an
725 error, as it's useful to trigger off of the
729 - added same 'add_package_symbol' fix as in
733 - does_role now handles non-Moose classes
735 - added tests for this
736 - added the 'add_method_modifier' function
737 (thanks to Takatoshi Kitano)
739 * Moose::Util::TypeConstraints
740 - subtypes of parameterizable types now are
741 themselves parameterizable types
743 * Moose::Meta::Method::Constructor
744 - fixed bug where trigger was not being
745 called by the inlined immutable
747 - added test for this (thanks to Caelum)
749 * Moose::Meta::Role::Application::ToInstance
750 - now uses the metaclass of the instance
751 (if possible) to create the anon-class
752 (thanks Jonathan Rockway)
754 * Moose::Cookbook::Recipe22
755 - added the meta-attribute trait recipe
759 - fixed hash-ordering test bug that was
760 causing occasional cpantester failures
761 - renamed the t/000_recipe/*.t tests to be
762 more descriptive (thanks to Sartak)
764 0.44 Sat. May 10, 2008
766 - made make_immutable warning cluck to
767 show where the error is (thanks mst)
770 - BUILDALL and DEMOLISHALL now call
771 ->body when looping through the
772 methods, to avoid the overloaded
774 - fixed issue where DEMOLISHALL was
775 eating the $@ values, and so not
776 working correctly, it still kind of
777 eats them, but so does vanilla perl
778 - added tests for this
780 * Moose::Cookbook::Recipe7
781 - added new recipe for immutable
782 functionality (thanks Dave Rolsky)
784 * Moose::Cookbook::Recipe9
785 - added new recipe for builder and
786 lazy_build (thanks Dave Rolsky)
788 * Moose::Cookbook::Recipe11
789 - added new recipe for method aliasing
790 and exclusion with Roles (thanks Dave Rolsky)
793 - fixed Win32 test failure (thanks spicyjack)
795 ~ removed Build.PL and Module::Build compat
796 since Module::Install has done that.
798 0.43 Wed. April, 30, 2008
800 drink more coffee before
801 doing release engineering
803 - whoops, forgot to do the smolder tests,
804 and we broke some of the custom meta-attr
805 modules. This fixes that.
807 0.42 Mon. April 28, 2008
808 - some bad tests slipped by, nothing else
809 changed in this release (cpantesters++)
811 - upped the Class::MOP dependency to 0.55
812 since we have tests which need the C3
815 0.41 Mon. April 28, 2008
816 ~~ numerous documentation updates ~~
818 - Changed all usage of die to Carp::croak for better
819 error reporting (initial patch by Tod Hagan)
822 - the make_immutable keyword is now deprecated, don't
823 use it in any new code and please fix your old code
824 as well. There will be 2 releases, and then it will
830 - refactored the way inner and super work to avoid
831 any method/@ISA cache penalty (nothingmuch)
834 - fixing &new_object to make sure trigger gets the
835 coerced value (spotted by Charles Alderman on the
837 - added test for this
839 * Moose::Meta::Method::Constructor
840 - immutable classes which had non-lazy attributes were calling
841 the default generating sub twice in the constructor. (bug
842 found by Jesse Luehrs, fixed by Dave Rolsky)
843 - added tests for this (Dave Rolsky)
844 - fix typo in initialize_body method (nothingmuch)
846 * Moose::Meta::Method::Destructor
847 - fix typo in initialize_body method (nothingmuch)
849 * Moose::Meta::Method::Overriden
850 Moose::Meta::Method::Augmented
851 - moved the logic for these into their own
852 classes (nothingmuch)
854 * Moose::Meta::Attribute
855 - inherited attributes may now be extended without
856 restriction on the type ('isa', 'does') (Sartak)
857 - added tests for this (Sartak)
858 - when an attribute property is malformed (such as lazy without
859 a default), give the name of the attribute in the error
861 - added the &applied_traits and &has_applied_traits methods
862 to allow introspection of traits
863 - added tests for this
864 - moved 'trait' and 'metaclass' argument handling to here from
866 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
867 '+foo' syntax) (nothingmuch)
868 - added tests for this (t0m)
871 - localize $@ inside DEMOLISHALL to avoid it
872 eating $@ (found by Ernesto)
873 - added test for this (thanks to Ernesto)
875 * Moose::Util::TypeConstraints
876 - &find_type_constraint now DWIMs when given an
877 type constraint object or name (nothingmuch)
878 - &find_or_create_type_constraint superseded with a number of more
880 - find_or_create_{isa,does}_type_constraint
881 - find_or_parse_type_constraint
883 * Moose::Meta::TypeConstraint
884 Moose::Meta::TypeConstraint::Class
885 Moose::Meta::TypeConstraint::Role
886 Moose::Meta::TypeConstraint::Enum
887 Moose::Meta::TypeConstraint::Union
888 Moose::Meta::TypeConstraint::Parameterized
889 - added the &equals method for comparing two type
890 constraints (nothingmuch)
891 - added tests for this (nothingmuch)
893 * Moose::Meta::TypeConstraint
894 - add the &parents method, which is just an alias to &parent.
895 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
897 * Moose::Meta::TypeConstraint::Class
898 - added the class attribute for introspection purposes
900 - added tests for this
902 * Moose::Meta::TypeConstraint::Enum
903 Moose::Meta::TypeConstraint::Role
904 - broke these out into their own classes (nothingmuch)
906 * Moose::Cookbook::Recipe*
907 - fixed references to test file locations in the POD
908 and updated up some text for new Moose features
912 - Added &resolve_metaclass_alias, a helper function for finding an actual
913 class for a short name (e.g. in the traits list)
915 0.40 Fri. March 14, 2008
916 - I hate Pod::Coverage
918 0.39 Fri. March 14, 2008
920 - documenting the use of '+name' with attributes
921 that come from recently composed roles. It makes
922 sense, people are using it, and so why not just
923 officially support it.
924 - fixing the 'extends' keyword so that it will not
925 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
928 - added the perl -Moose=+Class::Name feature to allow
929 monkeypatching of classes in one liners
932 - fixing the 'apply_all_roles' keyword so that it will not
933 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
936 - added ->create method which now supports roles (thanks to jrockway)
937 - added tests for this
938 - added ->create_anon_class which now supports roles and caching of
939 the results (thanks to jrockway)
940 - added tests for this
941 - made ->does_role a little more forgiving when it is
942 checking a Class::MOP era metaclasses.
944 * Moose::Meta::Role::Application::ToInstance
945 - it is now possible to pass extra params to be used when
946 a role is applied to an the instance (rebless_params)
947 - added tests for this
949 * Moose::Util::TypeConstraints
950 - class_type now accepts an optional second argument for a
951 custom message. POD anotated accordingly (groditi)
952 - added tests for this
953 - it is now possible to make anon-enums by passing 'enum' an
954 ARRAY ref instead of the $name => @values. Everything else
956 - added tests for this
959 - making test for using '+name' on attributes consumed
960 from a role, it works and makes sense too.
962 * Moose::Meta::Attribute
963 - fix handles so that it doesn't return nothing
964 when the method cannot be found, not sure why
965 it ever did this originally, this means we now
966 have slightly better support for AUTOLOADed
968 - added more delegation tests
969 - adding ->does method to this so as to better
970 support traits and their introspection.
971 - added tests for this
974 - localizing the Data::Dumper configurations so
975 that it does not pollute others (RT #33509)
976 - made ->does a little more forgiving when it is
977 passed Class::MOP era metaclasses.
979 0.38 Fri. Feb. 15, 2008
980 * Moose::Meta::Attribute
981 - fixed initializer to correctly do
982 type checking and coercion in the
984 - added tests for this
987 - fixed some finicky tests (thanks to konobi)
989 0.37 Thurs. Feb. 14, 2008
991 - fixed some details in Moose::init_meta
992 and its superclass handling (thanks thepler)
993 - added tests for this (thanks thepler)
994 - 'has' now dies if you don't pass in name
996 - added the 'make_immutable' keyword as a shortcut
1000 Moose::Meta::Method::Constructor
1001 Moose::Meta::Attribute
1002 - making (init_arg => undef) work here too
1003 (thanks to nothingmuch)
1005 * Moose::Meta::Attribute
1006 Moose::Meta::Method::Constructor
1007 Moose::Meta::Method::Accessor
1008 - make lazy attributes respect attr initializers (rjbs)
1009 - added tests for this
1011 * Moose::Util::TypeConstraints
1012 Moose::Util::TypeConstraints::OptimizedConstraints
1013 Moose::Meta::TypeConstraints
1014 Moose::Meta::Attribute
1015 Moose::Meta::Method::Constructor
1016 Moose::Meta::Method::Accessor
1017 - making type errors use the
1018 assigned message (thanks to Sartak)
1019 - added tests for this
1021 * Moose::Meta::Method::Destructor
1022 - making sure DESTROY gets inlined properly
1023 with successive DEMOLISH calls (thanks to manito)
1025 * Moose::Meta::Attribute
1026 Moose::Meta::Method::Accessor
1027 - fixed handling of undef with type constraints
1029 - added tests for this
1032 - added &get_all_init_args and &get_all_attribute_values
1033 (thanks to Sartak and nothingmuch)
1035 0.36 Sat. Jan. 26, 2008
1037 Moose::Meta::Attribute
1038 - role type tests now support when roles are
1039 applied to non-Moose classes (found by ash)
1040 - added tests for this (thanks to ash)
1041 - couple extra tests to boost code coverage
1043 * Moose::Meta::Method::Constructor
1044 - improved fix for handling Class::MOP attributes
1045 - added test for this
1047 * Moose::Meta::Class
1048 - handled the add_attribute($attribute_meta_object)
1050 - added test for this
1052 0.35 Tues. Jan. 22, 2008
1053 * Moose::Meta::Method::Constructor
1054 - fix to make sure even Class::MOP attributes
1055 are handled correctly (Thanks to Dave Rolsky)
1056 - added test for this (also Dave Rolsky)
1058 * Moose::Meta::Class
1059 - improved error message on _apply_all_roles,
1060 you should now use Moose::Util::apply_all_roles
1061 and you shouldnt have been using a _ prefixed
1062 method in the first place ;)
1064 0.34 Mon. Jan. 21, 2008
1065 ~~~ more misc. doc. fixes ~~~
1066 ~~ updated copyright dates ~~
1068 Moose is now a postmodern object system :)
1069 - (see the POD for details)
1071 * <<Role System Refactoring>>
1072 - this release contains a major reworking and
1073 cleanup of the role system
1074 - 100% backwards compat.
1075 - Role application now restructured into seperate
1076 classes based on type of applicants
1077 - Role summation (combining of more than one role)
1078 is much cleaner and anon-classes are no longer
1079 used in this process
1080 - new Composite role metaclass
1081 - runtime application of roles to instances
1082 is now more efficient and re-uses generated
1083 classes when applicable
1085 * <<New Role composition features>>
1086 - methods can now be excluded from a given role
1088 - methods can now be aliased to another name (and
1089 still retain the original as well)
1091 * Moose::Util::TypeConstraints::OptimizedConstraints
1092 - added this module (see above)
1094 * Moose::Meta::Class
1095 - fixed the &_process_attribute method to be called
1096 by &add_attribute, so that the API is now correct
1098 * Moose::Meta::Method::Accessor
1099 - fixed bug when passing a list of values to
1100 an accessor would get (incorrectly) ignored.
1101 Thanks to Sartak for finding this ;)
1102 - added tests for this (Sartak again)
1104 * Moose::Meta::Method::Accessor
1105 Moose::Meta::Method::Constructor
1106 Moose::Meta::Attribute
1107 Moose::Meta::TypeConstraint
1108 Moose::Meta::TypeCoercion
1109 - lots of cleanup of such things as:
1111 - type constraint handling
1112 - error handling/messages
1113 (thanks to nothingmuch)
1115 * Moose::Meta::TypeConstraint::Parameterizable
1116 - added this module to support the refactor
1117 in Moose::Meta::TypeConstraint::Parameterized
1119 * Moose::Meta::TypeConstraint::Parameterized
1120 - refactored how these types are handled so they
1121 are more generic and not confined to ArrayRef
1125 - shortened some file names for better VMS support (RT #32381)
1127 0.33 Fri. Dec. 14, 2007
1128 !! Moose now loads 2 x faster !!
1129 !! with new Class::MOP 0.49 !!
1131 ++ new oose.pm module to make command line
1132 Moose-ness easier (see POD docs for more)
1134 * Moose::Meta::Class
1136 - several tweaks to take advantage of the
1137 new method map caching in Class::MOP
1139 * Moose::Meta::TypeConstraint::Parameterized
1140 - allow subtypes of ArrayRef and HashRef to
1141 be used as a container (sartak)
1142 - added tests for this
1143 - basic support for coercion to ArrayRef and
1144 HashRef for containers (sartak)
1145 - added tests for this
1147 * Moose::Meta::TypeCoercion
1148 - coercions will now create subtypes as needed
1149 so you can now add coercions to parameterized
1150 types without having to explictly define them
1151 - added tests for this
1153 * Moose::Meta::Method::Accessor
1154 - allow subclasses to decide whether we need
1155 to copy the value into a new variable (sartak)
1157 0.32 Tues. Dec. 4, 2007
1158 * Moose::Util::TypeConstraints
1159 - fixing how subtype aliases of unions work
1160 they should inherit the parent's coercion
1161 - added tests for this
1162 - you can now define multiple coercions on
1163 a single type at different times instead of
1164 having to do it all in one place
1165 - added tests for this
1167 * Moose::Meta::TypeConstraint
1168 - there is now a default constraint of sub { 1 }
1169 instead of Moose::Util::TypeConstraints setting
1172 * Moose::Meta::TypeCoercion
1173 * Moose::Meta::TypeCoercion::Union
1174 - added the &has_coercion_for_type and
1175 &add_type_coercions methods to support the
1176 new features above (although you cannot add
1177 more type coercions for Union types)
1179 0.31 Mon. Nov. 26, 2007
1180 * Moose::Meta::Attribute
1181 - made the +attr syntax handle extending types with
1182 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1183 now works if the original foo is an ArrayRef.
1184 - added tests for this.
1185 - delegation now works even if the attribute does not
1186 have a reader method using the get_read_method_ref
1187 method from Class::MOP::Attribute.
1188 - added tests for this
1189 - added docs for this
1191 * Moose::Util::TypeConstraints
1192 - passing no "additional attribute info" to
1193 &find_or_create_type_constraint will no longer
1194 attempt to create an __ANON__ type for you,
1195 instead it will just return undef.
1196 - added docs for this
1198 0.30 Fri. Nov. 23, 2007
1199 * Moose::Meta::Method::Constructor
1200 -builder related bug in inlined constructor. (groditi)
1202 * Moose::Meta::Method::Accessor
1203 - genereate unnecessary calls to predicates and refactor
1204 code generation for runtime speed (groditi)
1206 * Moose::Util::TypeConstraints
1207 - fix ClassName constraint to introspect symbol table (mst)
1208 - added more tests for this (mst)
1209 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1210 with work correctly.
1211 - added tests for this
1214 - adding the link to Recipie 11 (written by Sartak)
1215 - adding test for SYNOPSIS code
1218 - New tests for builder bug. Upon instantiation, if an
1219 attribute had a builder, no value and was not lazy the
1220 builder default was not getting run, oops. (groditi)
1222 0.29 Tues. Nov. 13, 2007
1223 * Moose::Meta::Attribute
1224 - Fix error message on missing builder method (groditi)
1226 * Moose::Meta::Method::Accessor
1227 - Fix error message on missing builder method (groditi)
1230 - Add test to check for the correct error message when
1231 builder method is missing (groditi)
1233 0.28 Tues. Nov. 13, 2007
1234 - 0.27 packaged incorrectly (groditi)
1236 0.27 Tues. Nov. 13, 2007
1237 * Moose::Meta::Attribute
1238 - Added support for the new builder option (groditi)
1239 - Added support for lazy_build option (groditi)
1240 - Changed slot initialization for predicate changes (groditi)
1242 * Moose::Meta::Method::Accessor
1243 - Added support for lazy_build option (groditi)
1244 - Fix inline methods to work with corrected predicate
1247 * Moose::Meta::Method::Constructor
1248 - Added support for lazy_build option (groditi)
1251 - tests for builder and lazy_build (groditi)
1253 * fixing some misc. bits in the docs that
1254 got mentioned on CPAN Forum & perlmonks
1257 - fixed how required methods are handled
1258 when they encounter overriden or modified
1259 methods from a class (thanks to confound).
1260 - added tests for this
1262 * Moose::Util::TypeConstraint
1263 - fixed the type notation parser so that
1264 the | always creates a union and so is
1265 no longer a valid type char (thanks to
1266 konobi, mugwump and #moose for working
1268 - added more tests for this
1270 0.26 Thurs. Sept. 27, 2007
1273 * Parameterized Types
1274 We now support parameterized collection types, such as:
1275 ArrayRef[Int] # array or integers
1276 HashRef[Object] # a hash with object values
1277 They can also be nested:
1278 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1279 And work with the type unions as well:
1280 ArrayRef[Int | Str] # array of integers of strings
1282 * Better Framework Extendability
1283 Moose.pm is now "extendable" such that it is now much
1284 easier to extend the framework and add your own keywords
1285 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1286 section of the Moose.pm docs.
1289 In an effort to begin documenting some of the various
1290 details of Moose as well as some common idioms, we have
1291 created Moose::Cookbook::Snacks as a place to find
1292 small (easily digestable) nuggets of Moose code.
1295 ~ Several doc updates/cleanup thanks to castaway ~
1297 - converted build system to use Module::Install instead of
1298 Module::Build (thanks to jrockway)
1301 - added all the meta classes to the immutable list and
1302 set it to inline the accessors
1303 - fix import to allow Sub::Exporter like { into => }
1304 and { into_level => } (perigrin)
1305 - exposed and documented init_meta() to allow better
1306 embedding and extending of Moose (perigrin)
1309 - complete re-organization of the test suite
1310 - added some new tests as well
1311 - finally re-enabled the Moose::POOP test since
1312 the new version of DBM::Deep now works again
1315 * Moose::Meta::Class
1316 - fixed very odd and very nasty recursion bug with
1318 - added tests for this (eilara)
1320 * Moose::Meta::Attribute
1321 Moose::Meta::Method::Constructor
1322 Moose::Meta::Method::Accessor
1323 - fixed issue with overload::Overloaded getting called
1324 on non-blessed items. (RT #29269)
1325 - added tests for this
1327 * Moose::Meta::Method::Accessor
1328 - fixed issue with generated accessor code making
1329 assumptions about hash based classes (thanks to dexter)
1331 * Moose::Coookbook::Snacks
1332 - these are bits of documentation, not quite as big as
1333 Recipes but which have no clear place in the module docs.
1334 So they are Snacks! (horray for castaway++)
1336 * Moose::Cookbook::Recipe4
1337 - updated it to use the new ArrayRef[MyType] construct
1338 - updated the accompanying test as well
1340 +++ Major Refactor of the Type Constraint system +++
1341 +++ with new features added as well +++
1343 * Moose::Util::TypeConstraint
1344 - no longer uses package variable to keep track of
1345 the type constraints, now uses the an instance of
1346 Moose::Meta::TypeConstraint::Registry to do it
1347 - added more sophisticated type notation parsing
1349 - added tests for this
1351 * Moose::Meta::TypeConstraint
1352 - some minor adjustments to make subclassing easier
1353 - added the package_defined_in attribute so that we
1354 can track where the type constraints are created
1356 * Moose::Meta::TypeConstraint::Union
1357 - this is now been refactored to be a subclass of
1358 Moose::Meta::TypeConstraint
1360 * Moose::Meta::TypeCoercion::Union
1361 - this has been added to service the newly refactored
1362 Moose::Meta::TypeConstraint::Union and is itself
1363 a subclass of Moose::Meta::TypeCoercion
1365 * Moose::Meta::TypeConstraint::Parameterized
1366 - added this module (taken from MooseX::AttributeHelpers)
1367 to help construct nested collection types
1368 - added tests for this
1370 * Moose::Meta::TypeConstraint::Registry
1371 - added this class to keep track of type constraints
1373 0.25 Mon. Aug. 13, 2007
1375 - Documentation update to reference Moose::Util::TypeConstraints
1376 under 'isa' in 'has' for how to define a new type
1377 (thanks to shlomif).
1379 * Moose::Meta::Attribute
1380 - required attributes now will no longer accept undef
1381 from the constructor, even if there is a default and lazy
1382 - added tests for this
1383 - default subroutines must return a value which passes the
1385 - added tests for this
1387 * Moose::Meta::Attribute
1388 * Moose::Meta::Method::Constructor
1389 * Moose::Meta::Method::Accessor
1390 - type-constraint tests now handle overloaded objects correctly
1391 in the error message
1392 - added tests for this (thanks to EvanCarroll)
1394 * Moose::Meta::TypeConstraint::Union
1395 - added (has_)hand_optimized_constraint to this class so that
1396 it behaves as the regular Moose::Meta::TypeConstraint does.
1399 - large refactoring of this code
1400 - added several more tests
1401 - tests for subtle conflict resolition issues
1402 added, but not currently running
1405 * Moose::Cookbook::Recipe7
1406 - added new recipe for augment/inner functionality
1408 - added test for this
1411 - a formal definition of roles (still in progress)
1414 - utilities for easier working with Moose classes
1415 - added tests for these
1418 - This contains Moose specific test functions
1419 - added tests for these
1421 0.24 Tues. July 3, 2007
1422 ~ Some doc updates/cleanup ~
1424 * Moose::Meta::Attribute
1425 - added support for roles to be given as parameters
1426 to the 'handles' option.
1427 - added tests and docs for this
1428 - the has '+foo' attribute form now accepts changes to
1429 the lazy option, and the addition of a handles option
1430 (but not changing the handles option)
1431 - added tests and docs for this
1434 - required methods are now fetched using find_method_by_name
1435 so that required methods can come from superclasses
1436 - adjusted tests for this
1438 0.23 Mon. June 18, 2007
1439 * Moose::Meta::Method::Constructor
1440 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1441 * Moose::Meta::Class
1442 - Modify make_immutable to work with the new Class::MOP immutable
1443 mechanism + POD + very basic test (groditi)
1444 * Moose::Meta::Attribute
1445 - Fix handles to use goto() so that caller() comes out properly on
1446 the other side (perigrin)
1448 0.22 Thurs. May 31, 2007
1449 * Moose::Util::TypeConstraints
1450 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1451 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1452 prototypes for functions
1453 - added the ClassName type constraint, this checks for strings
1454 which will respond true to ->isa(UNIVERSAL).
1455 - added tests and docs for this
1456 - subtyping just in name now works correctly by making the
1457 default for where be { 1 }
1458 - added test for this
1460 * Moose::Meta::Method::Accessor
1461 - coerce and lazy now work together correctly, thanks to
1462 merlyn for finding this bug
1463 - tests added for this
1464 - fix reader presedence bug in Moose::Meta::Attribute + tests
1467 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1468 a HASH-ref and missed. This produces better error messages then
1469 having it die cause undef is not a HASH.
1470 - added tests for this
1472 0.21 Thursday, May 2nd, 2007
1474 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1475 - modified unimport to remove super and inner along with the rest
1476 - altered unimport tests to handle this
1479 - altered super export to populate SUPER_SLOT
1481 * Moose::Meta::Class
1482 - altered augment and override modifier application to use *_SLOT
1483 - modified tests for these to unimport one test class each to test
1486 - fixed issue where custom attribute metaclasses
1487 where not handled correctly in roles
1488 - added tests for this
1490 * Moose::Meta::Class
1491 - fixed issue where extending metaclasses with
1492 roles would blow up. Thanks to Aankhen`` for
1493 finding this insidious error, and it's solution.
1495 ~~ lots of spelling and grammer fixes in the docs,
1496 many many thanks to rlb3 and Aankhen for these :)
1498 0.20 Friday, April 6th, 2007
1499 >> I messed up the SKIP logic in one test
1500 so this release is just to fix that.
1503 - 'has' now also accepts an ARRAY ref
1504 to create multiple attrs (see docs)
1505 (thanks to konobi for this)
1506 - added tests and docs
1508 0.19 Thurs. April 5th, 2007
1509 ~~ More documentation updates ~~
1511 * Moose::Util::TypeConstraints
1512 - 'type' now supports messages as well
1513 thanks to phaylon for finding this
1514 - added tests for this
1515 - added &list_all_type_constraints and
1516 &list_all_builtin_type_constraints
1517 functions to facilitate introspection.
1519 * Moose::Meta::Attribute
1520 - fixed regexp 'handles' declarations
1521 to build the list of delegated methods
1522 correctly (and not override important
1523 things like &new) thanks to ashleyb
1525 - added tests and docs for this
1526 - added the 'documentation' attributes
1527 so that you can actually document your
1528 attributes and inspect them through the
1530 - added tests and docs for this
1532 * Moose::Meta::Class
1533 - when loading custom attribute metaclasses
1534 it will first look in for the class in the
1535 Moose::Meta::Attribute::Custom::$name, and
1536 then default to just loading $name.
1537 - added tests and docs for this
1539 * Moose::Meta::TypeConstraint
1540 - type constraints now stringify to their names.
1541 - added test for this
1544 - added tests to assure we work with Module::Refresh
1545 - added stricter test skip logic in the Moose POOP
1546 test, ask Rob Kinyon why.
1547 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1549 0.18 Sat. March 10, 2007
1550 ~~ Many, many documentation updates ~~
1553 - We now use Class::MOP::load_class to
1555 - added tests to show types and subtypes
1556 working with Declare::Constraints::Simple
1557 and Test::Deep as constraint engines.
1560 !! You must have Class::MOP 0.37_001 !!
1561 !! for this developer release to work !!
1563 This release was primarily adding the immutable
1564 feature to Moose. An immutable class is one which
1565 you promise not to alter. When you set the class
1566 as immutable it will perform various bits of
1567 memoization and inline certain part of the code
1568 (constructors, destructors and accessors). This
1569 minimizes (and in some cases totally eliminates)
1570 one of Moose's biggest performance hits. This
1571 feature is not on by default, and is 100% optional.
1572 It has several configurable bits as well, so you
1573 can pick and choose to your specific needs.
1575 The changes involved in this were fairly wide and
1576 highly specific, but 100% backwards compatible, so
1577 I am not going to enumerate them here. If you are
1578 truely interested in what was changed, please do
1581 0.17 Tues. Nov. 14, 2006
1582 * Moose::Meta::Method::Accessor
1583 - bugfix for read-only accessors which
1584 are have a type constraint and lazy.
1585 Thanks to chansen for finding it.
1587 0.16 Tues. Nov. 14, 2006
1589 There are some speed improvements in this release,
1590 but they are only the begining, so stay tuned.
1593 - BUILDALL and DEMOLISHALL no longer get
1594 called unless they actually need to be.
1595 This gave us a signifigant speed boost
1596 for the cases when there is no BUILD or
1597 DEMOLISH method present.
1599 * Moose::Util::TypeConstraints
1600 * Moose::Meta::TypeConstraint
1601 - added an 'optimize_as' option to the
1602 type constraint, which allows for a
1603 hand optimized version of the type
1604 constraint to be used when possible.
1605 - Any internally created type constraints
1606 now provide an optimized version as well.
1608 0.15 Sun. Nov. 5, 2006
1610 This version of Moose *must* have Class::MOP 0.36 in order
1611 to work correctly. A number of small internal tweaks have
1612 been made in order to be compatible with that release.
1614 * Moose::Util::TypeConstraints
1615 - added &unimport so that you can clean out
1616 your class namespace of these exported
1619 * Moose::Meta::Class
1620 - fixed minor issue which occasionally
1621 comes up during global destruction
1623 - moved Moose::Meta::Method::Overriden into
1627 - moved Moose::Meta::Role::Method into
1630 * Moose::Meta::Attribute
1631 - changed how we do type checks so that
1632 we reduce the overall cost, but still
1635 - moved accessor generation methods to
1636 Moose::Meta::Method::Accessor to
1637 conform to the API changes from
1640 * Moose::Meta::TypeConstraint
1641 - changed how constraints are compiled
1642 so that we do less recursion and more
1643 iteration. This makes the type check
1645 - moved Moose::Meta::TypeConstraint::Union
1648 * Moose::Meta::Method::Accessor
1649 - created this from methods formerly found in
1650 Moose::Meta::Attribute
1652 * Moose::Meta::Role::Method
1653 - moved this from Moose::Meta::Role
1655 * Moose::Meta::Method::Overriden
1656 - moved this from Moose::Meta::Class
1658 * Moose::Meta::TypeConstraint::Union
1659 - moved this from Moose::Meta::TypeConstraint
1661 0.14 Mon. Oct. 9, 2006
1663 * Moose::Meta::Attribute
1664 - fixed lazy attributes which were not getting
1665 checked with the type constraint (thanks ashley)
1666 - added tests for this
1667 - removed the over-enthusiastic DWIMery of the
1668 automatic ArrayRef and HashRef defaults, it
1669 broke predicates in an ugly way.
1670 - removed tests for this
1672 0.13 Sat. Sept. 30, 2006
1674 This version of Moose *must* have Class::MOP 0.35 in order
1675 to work correctly. A number of small internal tweaks have
1676 been made in order to be compatible with that release.
1679 - Removed the use of UNIVERSAL::require to be a better
1680 symbol table citizen and remove a dependency
1681 (thanks Adam Kennedy)
1683 **~~ removed experimental & undocumented feature ~~**
1684 - commented out the 'method' and 'self' keywords, see the
1685 comments for more info.
1688 - added a FAQ and WTF files to document frequently
1689 asked questions and common problems
1691 * Moose::Util::TypeConstraints
1692 - added GlobRef and FileHandle type constraint
1693 - added tests for this
1695 * Moose::Meta::Attribute
1696 - if your attribute 'isa' ArrayRef of HashRef, and you have
1697 not explicitly set a default, then make the default DWIM.
1698 This will also work for subtypes of ArrayRef and HashRef
1700 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1701 - new test added for this (thanks to ashley)
1704 - added basic support for runtime role composition
1705 but this is still *highly experimental*, so feedback
1706 is much appreciated :)
1707 - added tests for this
1709 * Moose::Meta::TypeConstraint
1710 - the type constraint now handles the coercion process
1711 through delegation, this is to support the coercion
1714 * Moose::Meta::TypeConstraint::Union
1715 - it is now possible for coercions to be performed
1717 - added tests for this (thanks to konobi)
1719 * Moose::Meta::TypeCoercion
1720 - properly capturing error when type constraint
1724 - Scalar::Util 1.18 is bad on Win32, so temporarily
1725 only require version 1.17 for Win32 and cygwin.
1726 (thanks Adam Kennedy)
1728 0.12 Sat. Sept. 1, 2006
1730 - Recipe5 (subtypes & coercion) has been written
1733 - fixed "bad meta" error message to be more descriptive
1734 - fixed &unimport to not remove the &inner and &super
1735 keywords because we need to localize them.
1736 - fixed number of spelling/grammer issues, thanks Theory :)
1738 **~~ experimental & undocumented feature ~~**
1739 - added the method and self keywords, they are basically
1740 just sugar, and they may not stay around.
1743 - added &dump method to easily Data::Dumper
1746 * Moose::Meta::TypeConstraint
1747 - added the &is_a_type_of method to check both the current
1748 and the subtype of a method (similar to &isa with classes)
1751 - this is now a subclass of Class::MOP::Module, and no longer
1752 creates the _role_meta ugliness of before.
1753 - fixed tests to reflect this change
1755 0.11 Wed. July 12, 2006
1757 - added an &unimport method to remove all the keywords
1758 that Moose will import, simply add 'no Moose' to the
1759 bottom of your class file.
1762 - fixed some test failures caused by a forgotten test
1765 0.10 Thurs. July 6, 2006
1767 - improved error message when loading modules so
1768 it is less confusing when you load a role.
1769 - added &calculate_all_roles method to
1770 Moose::Meta::Class and Moose::Meta::Role
1773 This module has been tested against Class::MOP 0.30
1774 but it does not yet utilize the optimizations
1775 it makes available. Stay tuned for that ;)
1777 0.09_03 Fri. June 23, 2006
1778 ++ DEVELOPER RELEASE ++
1780 - 'use strict' and 'use warnings' are no longer
1781 needed in Moose classes, Moose itself will
1782 turn them on for you.
1783 - added tests for this
1784 - moved code from exported subs to private methods
1785 in Moose::Meta::Class
1788 - as with Moose, strict and warnings are
1789 automatically turned on for you.
1790 - added tests for this
1793 - now handles an edge case for override errors
1794 - added tests for this
1795 - added some more edge case tests
1797 0.09_02 Tues. May 16, 2006
1798 ++ DEVELOPER RELEASE ++
1800 - added prototypes to the exported subs
1804 - added prototypes to the exported subs
1807 * Moose::Util::TypeConstraints
1808 - cleaned up prototypes for the subs
1811 0.09_01 Fri. May 12, 2006
1812 ++ DEVELOPER RELEASE ++
1813 - This release works in combination with
1814 Class::MOP 0.29_01, it is a developer
1815 release because it uses the a new
1816 instance sub-protocol and a fairly
1817 complete Role implementation. It has
1818 not yet been optimized, so it slower
1819 the the previous CPAN version. This
1820 release also lacks good updated docs,
1821 the official release will have updated docs.
1824 - refactored the keyword exports
1825 - 'with' now checks Role validaity and
1826 accepts more than one Role at a time
1827 - 'extends' makes metaclass adjustments as
1828 needed to ensure metaclass compatibility
1831 - refactored the keyword exports
1832 - 'with' now checks Role validaity and
1833 accepts more than one Role at a time
1835 * Moose::Util::TypeConstraints
1836 - added the 'enum' keyword for simple
1837 string enumerations which can be used as
1839 - see example of usage in t/202_example.t
1842 - more careful checking of params to new()
1845 - much work done on the role composition
1846 - many new tests for conflict detection
1847 and composition edge cases
1848 - not enough documentation, I suggest
1849 looking at the tests
1851 * Moose::Meta::Instance
1852 - added new Instance metaclass to support
1853 the new Class::MOP instance protocol
1855 * Moose::Meta::Class
1856 - some small changes to support the new
1858 - some small additions to support Roles
1860 * Moose::Meta::Attribute
1861 - some improvements to the accessor generation code
1863 - some small changes to support the new
1865 - (still somewhat) experimental delegation support
1866 with the 'handles' option
1867 - added several tests for this
1868 - no docs for this yet
1870 0.05 Thurs. April 27, 2006
1872 - keywords are now exported with Sub::Exporter
1873 thanks to chansen for this commit
1874 - has keyword now takes a 'metaclass' option
1875 to support custom attribute meta-classes
1876 on a per-attribute basis
1877 - added tests for this
1878 - the 'has' keyword not accepts inherited slot
1879 specifications (has '+foo'). This is still an
1880 experimental feature and probably not finished
1881 see t/038_attribute_inherited_slot_specs.t for
1882 more details, or ask about it on #moose
1883 - added tests for this
1886 - keywords are now exported with Sub::Exporter
1888 * Moose::Utils::TypeConstraints
1889 - reorganized the type constraint hierarchy, thanks
1890 to nothingmuch and chansen for his help and advice
1892 - added some tests for this
1893 - keywords are now exported with Sub::Exporter
1894 thanks to chansen for this commit
1896 * Moose::Meta::Class
1897 - due to changes in Class::MOP, we had to change
1898 construct_instance (for the better)
1900 * Moose::Meta::Attribute
1901 - due to changes in Class::MOP, we had to add the
1902 initialize_instance_slot method (it's a good thing)
1904 * Moose::Meta::TypeConstraint
1905 - added type constraint unions
1906 - added tests for this
1907 - added the is_subtype_of predicate method
1908 - added tests for this
1910 0.04 Sun. April 16th, 2006
1912 - Roles can now consume other roles
1913 - added tests for this
1914 - Roles can specify required methods now with
1915 the requires() keyword
1916 - added tests for this
1919 - ripped out much of it's guts ,.. much cleaner now
1920 - added required methods and correct handling of
1921 them in apply() for both classes and roles
1922 - added tests for this
1923 - no longer adds a does() method to consuming classes
1924 it relys on the one in Moose::Object
1925 - added roles attribute and some methods to support
1926 roles consuming roles
1928 * Moose::Meta::Attribute
1929 - added support for triggers on attributes
1930 - added tests for this
1931 - added support for does option on an attribute
1932 - added tests for this
1934 * Moose::Meta::Class
1935 - added support for attribute triggers in the
1937 - added tests for this
1940 - Moose no longer creates a subtype for your class
1941 if a subtype of the same name already exists, this
1942 should DWIM in 99.9999% of all cases
1944 * Moose::Util::TypeConstraints
1945 - fixed bug where incorrect subtype conflicts were
1947 - added test for this
1950 - this class can now be extended with 'use base' if
1951 you need it, it properly loads the metaclass class now
1952 - added test for this
1954 0.03_02 Wed. April 12, 2006
1956 - you must now explictly use Moose::Util::TypeConstraints
1957 it no longer gets exported for you automatically
1960 - new() now accepts hash-refs as well as key/value lists
1961 - added does() method to check for Roles
1962 - added tests for this
1964 * Moose::Meta::Class
1965 - added roles attribute along with the add_role() and
1967 - added tests for this
1970 - now adds a does() method to consuming classes
1971 which tests the class's hierarchy for roles
1972 - added tests for this
1974 0.03_01 Mon. April 10, 2006
1976 - added new Role recipe (no content yet, only code)
1979 - added 'with' keyword for Role support
1980 - added test and docs for this
1981 - fixed subtype quoting bug
1982 - added test for this
1986 - added test and docs
1988 * Moose::Util::TypeConstraints
1989 - added the message keyword to add custom
1990 error messages to type constraints
1993 - the meta role to support Moose::Role
1994 - added tests and docs
1996 * Moose::Meta::Class
1997 - moved a number of things from Moose.pm
1998 to here, they should have been here
2001 * Moose::Meta::Attribute
2002 - moved the attribute option macros here
2003 instead of putting them in Moose.pm
2005 * Moose::Meta::TypeConstraint
2006 - added the message attributes and the
2008 - added tests and docs for this
2010 0.03 Thurs. March 30, 2006
2012 - added the Moose::Cookbook with 5 recipes,
2013 describing all the stuff Moose can do.
2016 - fixed an issue with &extends super class loading
2017 it now captures errors and deals with inline
2018 packages correctly (bug found by mst, solution
2020 - added super/override & inner/augment features
2021 - added tests and docs for these
2024 - BUILDALL now takes a reference of the %params
2025 that are passed to &new, and passes that to
2028 * Moose::Util::TypeConstraints
2029 - Type constraints now survive runtime reloading
2030 - added test for this
2032 * Moose::Meta::Class
2033 - fixed the way attribute defaults are handled
2034 during instance construction (bug found by chansen)
2036 * Moose::Meta::Attribute
2037 - read-only attributes now actually enforce their
2038 read-only-ness (this corrected in Class::MOP as
2041 0.02 Tues. March 21, 2006
2043 - many more tests, fixing some bugs and
2045 - &extends now loads the base module with
2047 - added UNIVERSAL::require to the
2050 - each new Moose class will also create
2051 and register a subtype of Object which
2052 correspond to the new Moose class.
2053 - the 'isa' option in &has now only
2054 accepts strings, and will DWIM in
2057 * Moose::Util::TypeConstraints
2058 - added type coercion features
2059 - added tests for this
2060 - added support for this in attributes
2061 and instance construction
2063 - type construction no longer creates a
2064 function, it registers the type instead.
2065 - added several functions to get the
2069 - BUILDALL and DEMOLISHALL were broken
2070 because of a mis-named hash key, Whoops :)
2072 * Moose::Meta::Attribute
2073 - adding support for coercion in the
2074 autogenerated accessors
2076 * Moose::Meta::Class
2077 - adding support for coercion in the
2078 instance construction
2080 * Moose::Meta::TypeConstraint
2081 * Moose::Meta::TypeCoercion
2082 - type constraints and coercions are now
2083 full fledges meta-objects
2085 0.01 Wed. March 15, 2006
2086 - Moooooooooooooooooose!!!