1 Revision history for Perl extension Moose
5 - This is a brand new, extensive manual for Moose. This aims to
6 provide a complete introduction to all of Moose's
7 features. This work was funded as part of the Moose doc grant
8 from TPF. (Dave Rolsky)
10 * Moose::Meta::Attribute
11 - Added a delegation_metaclass method to replace a hard-coded
12 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
14 * Moose::Util::TypeConstraints
15 - If you created a subtype and passed a parent that Moose didn't
16 know about, it simply ignored the parent. Now it automatically
17 creates the parent as a class type. This may not be what you
18 want, but is less broken than before. (Dave Rolsky)
20 * Moose::Util::TypeConstraints
21 - This module tried throw errors by calling Moose->throw_error,
22 but it did not ensure that Moose was loaded first. This could
23 cause very unhelpful errors when it tried to throw an error
24 before Moose was loaded. (Dave Rolsky)
26 * Moose::Util::TypeConstraints
27 - You could declare a name with subtype such as "Foo!Bar" that
28 would be allowed, but if you used it in a parameterized type
29 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
30 vetting on names created via the sugar functions, so that they
31 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
33 0.65 Thu, January 22, 2008
34 * Moose and Moose::Meta::Method::Overridden
35 - If an overridden method called super(), and then the
36 superclass's method (not overridden) _also_ called super(),
37 Moose went into an endless recursion loop. Test provided by
38 Chris Prather. (Dave Rolsky)
40 * Moose::Meta::TypeConstraint
41 - All methods are now documented. (gphat)
43 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
44 - Fixed some bogus failures that occurred because we tried to
45 validate filesystem paths in a very ad-hoc and
46 not-quite-correct way. (Dave Rolsky)
48 * Moose::Util::TypeConstraints
49 - Added maybe_type to exports. See docs for details. (rjbs)
52 - Added Moose::Util::TypeConstraints to the SEE ALSO
56 - Methods created via an attribute can now fulfill a "requires"
57 declaration for a role. (nothingmuch)
59 * Moose::Meta::Method::*
60 - Stack traces from inlined code will now report its line and
61 file as being in your class, as opposed to in Moose
64 0.64 Wed, December 31, 2008
65 * Moose::Meta::Method::Accessor
66 - Always inline predicate and clearer methods (Sartak)
68 * Moose::Meta::Attribute
69 - Support for parameterized traits (Sartak)
70 - verify_against_type_constraint method to avoid duplication
71 and enhance extensibility (Sartak)
74 - Tests (but no support yet) for parameterized traits (Sartak)
77 - Require Class::MOP 0.75+, which has the side effect of making
78 sure we work on Win32. (Dave Rolsky)
80 0.63 Mon, December 8, 2008
82 - Some small grammar tweaks and bug fixes in non-Moose example
85 0.62_02 Fri, December 5, 2008
86 * Moose::Meta::Role::Application::ToClass
87 - When a class does not provide all of a role's required
88 methods, the error thrown now mentions all of the missing
89 methods, as opposed to just the first one found. Requested by
90 Curtis Poe (RT #41119). (Dave Rolsky)
92 * Moose::Meta::Method::Constructor
93 - Moose will no longer inline a constructor for your class
94 unless it inherits its constructor from Moose::Object, and
95 will warn when it doesn't inline. If you want to force
96 inlining anyway, pass "replace_constructor => 1" to
97 make_immutable. Addresses RT #40968, reported by Jon
99 - The quoting of default values could be broken if the default
100 contained a single quote ('). Now we use quotemeta to escape
101 anything potentially dangerous in the defaults. (Dave Rolsky)
103 0.62_01 Wed, December 3, 2008
105 - use the method->execute API for BUILDALL
106 and DEMOLISHALL (Sartak)
108 * Moose::Util::TypeConstraints
109 - We now make all the type constraint meta classes immutable
110 before creating the default types provided by Moose. This
111 should make loading Moose a little faster. (Dave Rolsky)
113 0.62 Wed November 26, 2008
114 * Moose::Meta::Role::Application::ToClass
115 Moose::Meta::Role::Application::ToRole
116 - fixed issues where excluding and aliasing the
117 same methods for a single role did not work
118 right (worked just fine with multiple
120 - added test for this (stevan)
122 * Moose::Meta::Role::Application::RoleSummation
123 - fixed the error message when trying to compose
124 a role with a role it excludes (Sartak)
127 - Catch another case where recursion caused the value
128 of $CALLER to be stamped on (t0m)
129 - added test for this (t0m)
132 - Remove the make_immutable keyword, which has been
133 deprecated since April. It breaks metaclasses that
134 use Moose without no Moose (Sartak)
136 * Moose::Meta::Attribute
137 - Removing an attribute from a class now also removes delegation
138 (handles) methods installed for that attribute (t0m)
139 - added test for this (t0m)
141 * Moose::Meta::Method::Constructor
142 - An attribute with a default that looked like a number (but was
143 really a string) would accidentally be treated as a number
144 when the constructor was made immutable (perigrin)
145 - added test for this (perigrin)
148 - create method for constructing a role
150 - added test for this (Sartak)
151 - anonymous roles! (Sartak)
152 - added test for this (Sartak)
155 - more consistent error messages (Sartak)
157 * Moose::Cookbook::Roles::Recipe1
158 - attempt to explain why a role that just requires
159 methods is useful (Sartak)
161 0.61 Fri November 7, 2008
162 * Moose::Meta::Attribute
163 - When passing a role to handles, it will be loaded if necessary
167 - Method objects returned by get_method (and other methods)
168 Could end up being returned without an associated_metaclass
169 attribute. Removing get_method_map, which is provided by
170 Class::MOP::Class, fixed this. The Moose version did nothing
171 different from its parent except introduce a bug. (Dave Rolsky)
172 - added tests for this (jdv79)
175 - Added a $VERSION to all .pm files which didn't have one. Fixes
176 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
178 * Moose::Cookbook::Basics::Recipe4
179 * Moose::Cookbook::Basics::Recipe6
180 - These files had spaces on the first line of the SYNOPSIS, as
181 opposed to a totally empty line. According to RT #40432, this
182 confuses POD parsers. (Dave Rolsky)
184 0.60 Fri October 24, 2008
186 - Passing "-traits" when loading Moose caused the Moose.pm
187 exports to be broken. Reported by t0m. (Dave Rolsky)
188 - Tests for this bug. (t0m)
191 - Change resolve_metaclass alias to use the new
192 load_first_existing_class function. This makes it a lot
193 simpler, and also around 5 times faster. (t0m)
194 - Add caching to resolve_metaclass_alias, which gives an order
195 of magnitude speedup to things which repeatedly call the
196 Moose::Meta::Attribute->does method, notably MooseX::Storage
199 * Moose::Util::TypeConstraint
200 - Put back the changes for parameterized constraints that
201 shouldn't have been removed in 0.59. We still cannot parse
202 them, but MooseX modules can create them in some other
203 way. See the 0.58 changes for more details. (jnapiorkowski)
204 - Changed the way subtypes are created so that the job is
205 delegated to a type constraint parent. This clears up some
206 hardcoded checking and should allow correct subtypes of
207 Moose::Meta::Type::Constraint. Don't rely on this new API too
208 much (create_child_type) because it may go away in the
209 future. (jnapiorkowski)
211 * Moose::Meta::TypeConstraint::Union
212 - Type constraint names are sorted as strings, not numbers.
215 * Moose::Meta::TypeConstraint::Parameterizable
216 - New parameterize method. This can be used as a factory method
217 to make a new type constraint with a given parameterized
218 type. (jnapiorkowski)
219 - added tests (jnapiorkowski)
221 0.59 Tue October 14, 2008
223 - Add abridged documentation for builder/default/initializer/
224 predicate, and link to more details sections in
225 Class::MOP::Attribute. (t0m)
227 * Moose::Util::TypeConstraints
228 - removed prototypes from all but the &-based stuff (mst)
230 * Moose::Util::TypeConstraints
231 - Creating a anonymous subtype with both a constraint and a
232 message failed with a very unhelpful error, but should just
233 work. Reported by t0m. (Dave Rolsky)
236 - Some tests that used Test::Warn if it was available failed
237 with older versions of Test::Warn. Reported by Fayland. (Dave
239 - Test firing behavior of triggers in relation to builder/default/
241 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
242 kinds of supported type. (t0m)
245 - In create(), do not pass "roles" option to the superclass
246 - added related test that creates an anon metaclass with
249 * Moose::Meta::TypeConstraint::Class
250 * Moose::Meta::TypeConstraint::Role
251 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
252 other types (as per change in 0.55_02). (t0m)
254 * Moose::Meta::TypeConstraint::Registry
255 - Fix warning when dealing with unknown type names (t0m)
257 * Moose::Util::TypeConstraints
258 - Reverted changes from 0.58 related to handle parameterized
259 types. This caused random failures on BSD and Win32 systems,
260 apparently related to the regex engine. This means that Moose
261 can no longer parse structured type constraints like
262 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
263 supported in a slightly different way via MooseX::Types some
264 time in the future. (Dave Rolsky)
266 0.58 Sat September 20, 2008
267 !! This release has an incompatible change regarding !!
268 !! how roles add methods to a class !!
270 * Roles and role application
271 ! Roles now add methods by calling add_method, not
272 alias_method. They make sure to always provide a method
273 object, which will be cloned internally. This means that it is
274 now possible to track the source of a method provided by a
275 role, and even follow its history through intermediate roles.
277 This means that methods added by a role now show up when
278 looking at a class's method list/map. (Dave Rolsky)
281 - From this release on, we'll try to maintain a list of
282 conflicting modules, and warn you if you have one
283 installed. For example, this release conflicts with ...
284 - MooseX::Singleton <= 0.11
285 - MooseX::Params::Validate <= 0.05
288 In general, we try to not break backwards compatibility for
289 most Moose users, but MooseX modules and other code which
290 extends Moose's metaclasses is often affected by very small
291 changes in the Moose internals.
293 * Moose::Meta::Method::Delegation
294 * Moose::Meta::Attribute
295 - Delegation methods now have their own method class. (Dave
298 * Moose::Meta::TypeConstraint::Parameterizable
299 - Added a new method 'parameterize' which is basically a factory
300 for the containing constraint. This makes it easier to create
301 new types of parameterized constraints. (jnapiorkowski)
303 * Moose::Meta::TypeConstraint::Union
304 - Changed the way Union types canonicalize their names to follow
305 the normalized TC naming rules, which means we strip all
306 whitespace. (jnapiorkowski)
308 * Moose::Util::TypeConstraints
309 - Parameter and Union args are now sorted, this makes Int|Str
310 the same constraint as Str|Int. (jnapiorkowski)
311 - Changes to the way Union types are parsed to more correctly
312 stringify their names. (jnapiorkowski)
313 - When creating a parameterized type, we now use the new
314 parameterize method. (jnapiorkowski)
315 - Incoming type constraint strings are now normalized to remove
316 all whitespace differences. (jnapiorkowski)
317 - Changed the way we parse type constraint strings so that we now
318 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
319 constraints. This lays the foundation for more flexible type
320 constraint implementations.
322 * Tests and docs for all the above. (jnapiorkowski)
326 - Moose::Exporter will no longer remove a subroutine that the
327 exporting package re-exports. Moose re-exports the
328 Carp::confess function, among others. The reasoning is that we
329 cannot know whether you have also explicitly imported those
330 functions for your own use, so we err on the safe side and
331 always keep them. (Dave Rolsky)
332 - added tests for this (rafl)
335 - Changes to how we fix metaclass compatibility that are much
336 too complicated to go into. The summary is that Moose is much
337 less likely to complain about metaclass incompatibility
338 now. In particular, if two metaclasses differ because
339 Moose::Util::MetaRole was used on the two corresponding
340 classes, then the difference in roles is reconciled for the
341 subclass's metaclass. (Dave Rolsky)
342 - Squashed an warning in _process_attribute (thepler)
345 - throw exceptions (sooner) for invalid attribute names (thepler)
346 - added tests for this (thepler)
348 * Moose::Util::MetaRole
349 - If you explicitly set a constructor or destructor class for a
350 metaclass object, and then applied roles to the metaclass,
351 that explicitly set class would be lost and replaced with the
355 * Moose::Meta::Attribute
356 * Moose::Meta::Method
359 * Moose::Error::Default
360 * Moose::Error::Croak
361 * Moose::Error::Confess
362 - All instances of confess() changed to use overridable
363 C<throw_error> method. This method ultimately calls a class
364 constructor, and you can change the class being called. In
365 addition, errors now pass more information than just a string.
366 The default C<error_class> behaves like C<Carp::confess>, so
367 the behavior is not visibly different for end users.
369 0.57 Wed September 3, 2008
371 - A new bit of doc intended to introduce folks familiar with
372 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
375 - Shows examples of two classes, each done first with and then
376 without Moose. This makes a nice parallel to
377 Moose::Intro. (Dave Rolsky)
379 * Moose::Util::TypeConstraints
380 - Fixed a bug in find_or_parse_type_constraint so that it
381 accepts a Moose::Meta::TypeConstraint object as the parent
382 type, not just a name (jnapiorkowski)
383 - added tests (jnapiorkowski)
386 - If Sub::Name was not present, unimporting failed to actually
387 remove some sugar subs, causing test failures (Dave Rolsky)
389 0.56 Mon September 1, 2008
390 For those not following the series of dev releases, there are
391 several major changes in this release of Moose.
392 ! Moose::init_meta should now be called as a method. See the
395 - Major performance improvements by nothingmuch.
397 - New modules for extension writers, Moose::Exporter and
398 Moose::Util::MetaRole by Dave Rolsky.
400 - Lots of doc improvements and additions, especially in the
405 * Removed all references to the experimental-but-no-longer-needed
406 Moose::Meta::Role::Application::ToMetaclassInstance.
408 * Require Class::MOP 0.65.
410 0.55_04 Sat August 30, 2008
411 * Moose::Util::MetaRole
412 * Moose::Cookbook::Extending::Recipe2
413 - This simplifies the application of roles to any meta class, as
414 well as the base object class. Reimplemented metaclass traits
415 using this module. (Dave Rolsky)
417 * Moose::Cookbook::Extending::Recipe1
418 - This a new recipe, an overview of various ways to write Moose
419 extensions (Dave Rolsky)
421 * Moose::Cookbook::Extending::Recipe3
422 * Moose::Cookbook::Extending::Recipe4
423 - These used to be Extending::Recipe1 and Extending::Recipe2,
426 0.55_03 Fri August 29, 2008
427 * No changes from 0.55_02 except increasing the Class::MOP
428 dependency to 0.64_07.
430 0.55_02 Fri August 29, 2008
431 * Makefile.PL and Moose.pm
432 - explicitly require Perl 5.8.0+ (Dave Rolsky)
434 * Moose::Util::TypeConstraints
435 - Fix warnings from find_type_constraint if the type is not
438 * Moose::Meta::TypeConstraint
439 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
440 return false if the type you specify cannot be found in the
441 type registry, rather than throwing an unhelpful and
442 coincidental exception. (t0m).
443 - added docs & test for this (t0m)
445 * Moose::Meta::TypeConstraint::Registry
446 - add_type_constraint now throws an exception if a parameter is
448 - added docs & test for this (t0m)
450 * Moose::Cookbook::FAQ
451 - Added a faq entry on the difference between "role" and "trait"
455 - Fixed a bug that caused role composition to not see a required
456 method when that method was provided by another role being
457 composed at the same time. (Dave Rolsky)
458 - test and bug finding (tokuhirom)
460 0.55_01 Wed August 20, 2008
462 !! Calling Moose::init_meta as a function is now !!
463 !! deprecated. Please see the Moose.pm docs for details. !!
465 * Moose::Meta::Method::Constructor
466 - Fix inlined constructor so that values produced by default
467 or builder methods are coerced as required. (t0m)
468 - added test for this (t0m)
470 * Moose::Meta::Attribute
471 - A lazy attribute with a default or builder did not attempt to
472 coerce the default value. The immutable code _did_
474 - added test for this (t0m)
477 - This is a new helper module for writing "Moose-alike"
478 modules. This should make the lives of MooseX module authors
479 much easier. (Dave Rolsky)
482 * Moose::Cookbook::Meta::Recipe5
483 - Implemented metaclass traits (and wrote a recipe for it):
485 use Moose -traits => 'Foo'
487 This should make writing small Moose extensions a little
490 * Moose::Cookbook::Basics::Recipe1
491 - Removed any examples of direct hashref access, and applied an
492 editorial axe to reduce verbosity. (Dave Rolsky)
494 * Moose::Cookbook::Basics::Recipe1
495 - Also applied an editorial axe here. (Dave Rolsky)
498 * Moose::Cookbook::Extending::Recipe1
499 * Moose::Cookbook::Extending::Recipe2
500 - Rewrote extending and embedding moose documentation and
501 recipes to use Moose::Exporter (Dave Rolsky)
505 - These two modules now warn when you load them from the main
506 package "main" package, because we will not export sugar to
507 main. Previously it just did nothing. (Dave Rolsky)
510 - Now provide an init_meta method just like Moose.pm, and you
511 can call this to provide an alternate role metaclass. (Dave
512 Rolsky and nothingmuch)
513 - get_method_map now respects the package cache flag (nothingmuch)
516 - Two new methods - add_method and wrap_method_body
520 - Optimizations including allowing constructors to accept hash
521 refs, making many more classes immutable, and making
522 constructors immutable. (nothingmuch)
524 0.55 Sun August 3, 2008
525 * Moose::Meta::Attribute
526 - breaking down the way 'handles' methods are
527 created so that the process can be more easily
528 overridden by subclasses (stevan)
530 * Moose::Meta::TypeConstraint
531 - fixing what is passed into a ->message with
532 the type constraints (RT #37569)
533 - added tests for this (Charles Alderman)
535 * Moose::Util::TypeConstraints
536 - fix coerce to accept anon types like subtype can (mst)
539 - reorganized the recipes into sections - Basics, Roles, Meta,
540 Extending - and wrote abstracts for each section (Dave Rolsky)
542 * Moose::Cookbook::Basics::Recipe10
543 - A new recipe that demonstrates operator overloading
544 in combination with Moose. (bluefeet)
546 * Moose::Cookbook::Meta::Recipe1
547 - an introduction to what meta is and why you'd want to make
548 your own metaclass extensions (Dave Rolsky)
550 * Moose::Cookbook::Meta::Recipe4
551 - a very simple metaclass example (Dave Rolsky)
553 * Moose::Cookbook::Extending::Recipe1
554 - how to write a Moose-alike module to use your own object base
557 * Moose::Cookbook::Extending::Recipe2
558 - how to write modules with an API just like C<Moose.pm> (Dave
562 - Tons of fixes, both syntactical and grammatical (Dave
563 Rolsky, Paul Fenwick)
565 0.54 Thurs. July 3, 2008
566 ... this is not my day today ...
568 * Moose::Meta::Attribute
569 - fixed legal_options_for_inheritance such that
570 clone_and_inherit options still works for
571 Class::MOP::Attribute objects and therefore
572 does not break MooseX::AttributeHelpers
575 0.53 Thurs. July 3, 2008
576 * Whoops, I guess I should run 'make manifest' before
577 actually releasing the module. No actual changes
578 in this release, except the fact that it includes
579 the changes that I didn't include in the last
582 0.52 Thurs. July 3, 2008
584 - added "FEATURE REQUESTS" section to the Moose docs
585 to properly direct people (stevan) (RT #34333)
586 - making 'extends' croak if it is passed a Role since
587 this is not ever something you want to do
588 (fixed by stevan, found by obra)
589 - added tests for this (stevan)
592 - adding support for DOES (as in UNIVERSAL::DOES)
594 - added test for this
596 * Moose::Meta::Attribute
597 - added legal_options_for_inheritance (wreis)
598 - added tests for this (wreis)
600 * Moose::Cookbook::Snacks::*
601 - removed some of the unfinished snacks that should
602 not have been released yet. Added some more examples
603 to the 'Keywords' snack. (stevan)
605 * Moose::Cookbook::Style
606 - added general Moose "style guide" of sorts to the
607 cookbook (nothingmuch) (RT #34335)
610 - added more BUILDARGS tests (stevan)
612 0.51 Thurs. Jun 26, 2008
614 - add unimport so "no Moose::Role" actually does
617 * Moose::Meta::Role::Application::ToRole
618 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
619 order to provide its own implementation, that method still got
620 added to the list of required methods for consumers of
621 RoleB. Now an aliased method is only added to the list of
622 required methods if the role doing the aliasing does not
623 provide its own implementation. See Recipe 11 for an example
624 of all this. (Dave Rolsky)
625 - added tests for this
627 * Moose::Meta::Method::Constructor
628 - when a single argument that wasn't a hashref was provided to
629 an immutabilized constructor, the error message was very
630 unhelpful, as opposed to the non-immutable error. Reported by
632 - added test for this (Dave Rolsky)
634 * Moose::Meta::Attribute
635 - added support for meta_attr->does("ShortAlias") (sartak)
636 - added tests for this (sartak)
637 - moved the bulk of the `handles` handling to the new
638 install_delegation method (Stevan)
641 - Added BUILDARGS, a new step in new()
643 * Moose::Meta::Role::Application::RoleSummation
644 - fix typos no one ever sees (sartak)
646 * Moose::Util::TypeConstraints
647 * Moose::Meta::TypeConstraint
648 * Moose::Meta::TypeCoercion
649 - Attempt to work around the ??{ } vs. threads issue
651 - Some null_constraint optimizations
653 0.50 Thurs. Jun 11, 2008
654 - Fixed a version number issue by bumping all modules
657 0.49 Thurs. Jun 11, 2008
658 !! This version now approx. 20-25% !!
659 !! faster with new Class::MOP 0.59 !!
661 * Moose::Meta::Attribute
662 - fixed how the is => (ro|rw) works with
663 custom defined reader, writer and accessor
665 - added docs for this (TODO).
666 - added tests for this (Thanks to Penfold)
667 - added the custom attribute alias for regular
668 Moose attributes which is "Moose"
669 - fix builder and default both being used
674 Moose::Meta::Attribute
676 Moose::Meta::Role::Composite
677 Moose::Util::TypeConstraints
678 - switched usage of reftype to ref because
682 - changing add_package_symbol to use the new
686 - fixed how DEMOLISHALL is called so that it
687 can be overrided in subclasses (thanks to Sartak)
688 - added test for this (thanks to Sartak)
690 * Moose::Util::TypeConstraints
691 - move the ClassName type check code to
692 Class::MOP::is_class_loaded (thanks to Sartak)
694 * Moose::Cookbook::Recipe11
695 - add tests for this (thanks to tokuhirom)
697 0.48 Thurs. May 29, 2008
698 (early morning release engineering)--
700 - fixing the version in Moose::Meta::Method::Destructor
701 which was causing the indexer to choke
703 0.47 Thurs. May 29, 2008
704 (late night release engineering)--
706 - fixing the version is META.yml, no functional
707 changes in this release
709 0.46 Wed. May 28, 2008
710 !! This version now approx. 20-25% !!
711 !! faster with new Class::MOP 0.57 !!
714 - some optimizations of the &initialize method
715 since it is called so often by &meta
719 - now use the get_all_package_symbols from the
720 updated Class::MOP, test suite is now 10 seconds
723 * Moose::Meta::Method::Destructor
724 - is_needed can now also be called as a class
725 method for immutablization to check if the
726 destructor object even needs to be created
729 * Moose::Meta::Method::Destructor
730 Moose::Meta::Method::Constructor
731 - added more descriptive error message to help
732 keep people from wasting time tracking an error
733 that is easily fixed by upgrading.
735 0.45 Saturday, May 24, 2008
737 - Because of work in Class::MOP 0.57, all
738 XS based functionality is now optional
739 and a Pure Perl version is supplied
740 - the CLASS_MOP_NO_XS environment variable
741 can now be used to force non-XS versions
743 - several of the packages have been tweaked
744 to take care of this, mostly we added
745 support for the package_name and name
746 variables in all the Method metaclasses
747 - before/around/after method modifiers now
748 support regexp matching of names
749 (thanks to Takatoshi Kitano)
750 - tests added for this
751 - NOTE: this only works for classes, it
752 is currently not supported in roles,
753 but, ... patches welcome
754 - All usage of Carp::confess have been replaced
755 by Carp::croak in the "keyword" functions since
756 the stack trace is usually not helpful
759 - All usage of Carp::confess have been replaced
760 by Carp::croak in the "keyword" functions since
761 the stack trace is usually not helpful
762 - The 'has' keyword for roles now accepts the
763 same array ref form that Moose.pm does
764 (has [qw/foo bar/] => (is => 'rw', ...))
765 - added test for this
767 * Moose::Meta::Attribute
768 - trigger on a ro-attribute is no longer an
769 error, as it's useful to trigger off of the
773 - added same 'add_package_symbol' fix as in
777 - does_role now handles non-Moose classes
779 - added tests for this
780 - added the 'add_method_modifier' function
781 (thanks to Takatoshi Kitano)
783 * Moose::Util::TypeConstraints
784 - subtypes of parameterizable types now are
785 themselves parameterizable types
787 * Moose::Meta::Method::Constructor
788 - fixed bug where trigger was not being
789 called by the inlined immutable
791 - added test for this (thanks to Caelum)
793 * Moose::Meta::Role::Application::ToInstance
794 - now uses the metaclass of the instance
795 (if possible) to create the anon-class
796 (thanks Jonathan Rockway)
798 * Moose::Cookbook::Recipe22
799 - added the meta-attribute trait recipe
803 - fixed hash-ordering test bug that was
804 causing occasional cpantester failures
805 - renamed the t/000_recipe/*.t tests to be
806 more descriptive (thanks to Sartak)
808 0.44 Sat. May 10, 2008
810 - made make_immutable warning cluck to
811 show where the error is (thanks mst)
814 - BUILDALL and DEMOLISHALL now call
815 ->body when looping through the
816 methods, to avoid the overloaded
818 - fixed issue where DEMOLISHALL was
819 eating the $@ values, and so not
820 working correctly, it still kind of
821 eats them, but so does vanilla perl
822 - added tests for this
824 * Moose::Cookbook::Recipe7
825 - added new recipe for immutable
826 functionality (thanks Dave Rolsky)
828 * Moose::Cookbook::Recipe9
829 - added new recipe for builder and
830 lazy_build (thanks Dave Rolsky)
832 * Moose::Cookbook::Recipe11
833 - added new recipe for method aliasing
834 and exclusion with Roles (thanks Dave Rolsky)
837 - fixed Win32 test failure (thanks spicyjack)
839 ~ removed Build.PL and Module::Build compat
840 since Module::Install has done that.
842 0.43 Wed. April, 30, 2008
844 drink more coffee before
845 doing release engineering
847 - whoops, forgot to do the smolder tests,
848 and we broke some of the custom meta-attr
849 modules. This fixes that.
851 0.42 Mon. April 28, 2008
852 - some bad tests slipped by, nothing else
853 changed in this release (cpantesters++)
855 - upped the Class::MOP dependency to 0.55
856 since we have tests which need the C3
859 0.41 Mon. April 28, 2008
860 ~~ numerous documentation updates ~~
862 - Changed all usage of die to Carp::croak for better
863 error reporting (initial patch by Tod Hagan)
866 - the make_immutable keyword is now deprecated, don't
867 use it in any new code and please fix your old code
868 as well. There will be 2 releases, and then it will
874 - refactored the way inner and super work to avoid
875 any method/@ISA cache penalty (nothingmuch)
878 - fixing &new_object to make sure trigger gets the
879 coerced value (spotted by Charles Alderman on the
881 - added test for this
883 * Moose::Meta::Method::Constructor
884 - immutable classes which had non-lazy attributes were calling
885 the default generating sub twice in the constructor. (bug
886 found by Jesse Luehrs, fixed by Dave Rolsky)
887 - added tests for this (Dave Rolsky)
888 - fix typo in initialize_body method (nothingmuch)
890 * Moose::Meta::Method::Destructor
891 - fix typo in initialize_body method (nothingmuch)
893 * Moose::Meta::Method::Overriden
894 Moose::Meta::Method::Augmented
895 - moved the logic for these into their own
896 classes (nothingmuch)
898 * Moose::Meta::Attribute
899 - inherited attributes may now be extended without
900 restriction on the type ('isa', 'does') (Sartak)
901 - added tests for this (Sartak)
902 - when an attribute property is malformed (such as lazy without
903 a default), give the name of the attribute in the error
905 - added the &applied_traits and &has_applied_traits methods
906 to allow introspection of traits
907 - added tests for this
908 - moved 'trait' and 'metaclass' argument handling to here from
910 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
911 '+foo' syntax) (nothingmuch)
912 - added tests for this (t0m)
915 - localize $@ inside DEMOLISHALL to avoid it
916 eating $@ (found by Ernesto)
917 - added test for this (thanks to Ernesto)
919 * Moose::Util::TypeConstraints
920 - &find_type_constraint now DWIMs when given an
921 type constraint object or name (nothingmuch)
922 - &find_or_create_type_constraint superseded with a number of more
924 - find_or_create_{isa,does}_type_constraint
925 - find_or_parse_type_constraint
927 * Moose::Meta::TypeConstraint
928 Moose::Meta::TypeConstraint::Class
929 Moose::Meta::TypeConstraint::Role
930 Moose::Meta::TypeConstraint::Enum
931 Moose::Meta::TypeConstraint::Union
932 Moose::Meta::TypeConstraint::Parameterized
933 - added the &equals method for comparing two type
934 constraints (nothingmuch)
935 - added tests for this (nothingmuch)
937 * Moose::Meta::TypeConstraint
938 - add the &parents method, which is just an alias to &parent.
939 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
941 * Moose::Meta::TypeConstraint::Class
942 - added the class attribute for introspection purposes
944 - added tests for this
946 * Moose::Meta::TypeConstraint::Enum
947 Moose::Meta::TypeConstraint::Role
948 - broke these out into their own classes (nothingmuch)
950 * Moose::Cookbook::Recipe*
951 - fixed references to test file locations in the POD
952 and updated up some text for new Moose features
956 - Added &resolve_metaclass_alias, a helper function for finding an actual
957 class for a short name (e.g. in the traits list)
959 0.40 Fri. March 14, 2008
960 - I hate Pod::Coverage
962 0.39 Fri. March 14, 2008
964 - documenting the use of '+name' with attributes
965 that come from recently composed roles. It makes
966 sense, people are using it, and so why not just
967 officially support it.
968 - fixing the 'extends' keyword so that it will not
969 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
972 - added the perl -Moose=+Class::Name feature to allow
973 monkeypatching of classes in one liners
976 - fixing the 'apply_all_roles' keyword so that it will not
977 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
980 - added ->create method which now supports roles (thanks to jrockway)
981 - added tests for this
982 - added ->create_anon_class which now supports roles and caching of
983 the results (thanks to jrockway)
984 - added tests for this
985 - made ->does_role a little more forgiving when it is
986 checking a Class::MOP era metaclasses.
988 * Moose::Meta::Role::Application::ToInstance
989 - it is now possible to pass extra params to be used when
990 a role is applied to an the instance (rebless_params)
991 - added tests for this
993 * Moose::Util::TypeConstraints
994 - class_type now accepts an optional second argument for a
995 custom message. POD anotated accordingly (groditi)
996 - added tests for this
997 - it is now possible to make anon-enums by passing 'enum' an
998 ARRAY ref instead of the $name => @values. Everything else
1000 - added tests for this
1003 - making test for using '+name' on attributes consumed
1004 from a role, it works and makes sense too.
1006 * Moose::Meta::Attribute
1007 - fix handles so that it doesn't return nothing
1008 when the method cannot be found, not sure why
1009 it ever did this originally, this means we now
1010 have slightly better support for AUTOLOADed
1012 - added more delegation tests
1013 - adding ->does method to this so as to better
1014 support traits and their introspection.
1015 - added tests for this
1018 - localizing the Data::Dumper configurations so
1019 that it does not pollute others (RT #33509)
1020 - made ->does a little more forgiving when it is
1021 passed Class::MOP era metaclasses.
1023 0.38 Fri. Feb. 15, 2008
1024 * Moose::Meta::Attribute
1025 - fixed initializer to correctly do
1026 type checking and coercion in the
1028 - added tests for this
1031 - fixed some finicky tests (thanks to konobi)
1033 0.37 Thurs. Feb. 14, 2008
1035 - fixed some details in Moose::init_meta
1036 and its superclass handling (thanks thepler)
1037 - added tests for this (thanks thepler)
1038 - 'has' now dies if you don't pass in name
1040 - added the 'make_immutable' keyword as a shortcut
1043 * Moose::Meta::Class
1044 Moose::Meta::Method::Constructor
1045 Moose::Meta::Attribute
1046 - making (init_arg => undef) work here too
1047 (thanks to nothingmuch)
1049 * Moose::Meta::Attribute
1050 Moose::Meta::Method::Constructor
1051 Moose::Meta::Method::Accessor
1052 - make lazy attributes respect attr initializers (rjbs)
1053 - added tests for this
1055 * Moose::Util::TypeConstraints
1056 Moose::Util::TypeConstraints::OptimizedConstraints
1057 Moose::Meta::TypeConstraints
1058 Moose::Meta::Attribute
1059 Moose::Meta::Method::Constructor
1060 Moose::Meta::Method::Accessor
1061 - making type errors use the
1062 assigned message (thanks to Sartak)
1063 - added tests for this
1065 * Moose::Meta::Method::Destructor
1066 - making sure DESTROY gets inlined properly
1067 with successive DEMOLISH calls (thanks to manito)
1069 * Moose::Meta::Attribute
1070 Moose::Meta::Method::Accessor
1071 - fixed handling of undef with type constraints
1073 - added tests for this
1076 - added &get_all_init_args and &get_all_attribute_values
1077 (thanks to Sartak and nothingmuch)
1079 0.36 Sat. Jan. 26, 2008
1081 Moose::Meta::Attribute
1082 - role type tests now support when roles are
1083 applied to non-Moose classes (found by ash)
1084 - added tests for this (thanks to ash)
1085 - couple extra tests to boost code coverage
1087 * Moose::Meta::Method::Constructor
1088 - improved fix for handling Class::MOP attributes
1089 - added test for this
1091 * Moose::Meta::Class
1092 - handled the add_attribute($attribute_meta_object)
1094 - added test for this
1096 0.35 Tues. Jan. 22, 2008
1097 * Moose::Meta::Method::Constructor
1098 - fix to make sure even Class::MOP attributes
1099 are handled correctly (Thanks to Dave Rolsky)
1100 - added test for this (also Dave Rolsky)
1102 * Moose::Meta::Class
1103 - improved error message on _apply_all_roles,
1104 you should now use Moose::Util::apply_all_roles
1105 and you shouldnt have been using a _ prefixed
1106 method in the first place ;)
1108 0.34 Mon. Jan. 21, 2008
1109 ~~~ more misc. doc. fixes ~~~
1110 ~~ updated copyright dates ~~
1112 Moose is now a postmodern object system :)
1113 - (see the POD for details)
1115 * <<Role System Refactoring>>
1116 - this release contains a major reworking and
1117 cleanup of the role system
1118 - 100% backwards compat.
1119 - Role application now restructured into seperate
1120 classes based on type of applicants
1121 - Role summation (combining of more than one role)
1122 is much cleaner and anon-classes are no longer
1123 used in this process
1124 - new Composite role metaclass
1125 - runtime application of roles to instances
1126 is now more efficient and re-uses generated
1127 classes when applicable
1129 * <<New Role composition features>>
1130 - methods can now be excluded from a given role
1132 - methods can now be aliased to another name (and
1133 still retain the original as well)
1135 * Moose::Util::TypeConstraints::OptimizedConstraints
1136 - added this module (see above)
1138 * Moose::Meta::Class
1139 - fixed the &_process_attribute method to be called
1140 by &add_attribute, so that the API is now correct
1142 * Moose::Meta::Method::Accessor
1143 - fixed bug when passing a list of values to
1144 an accessor would get (incorrectly) ignored.
1145 Thanks to Sartak for finding this ;)
1146 - added tests for this (Sartak again)
1148 * Moose::Meta::Method::Accessor
1149 Moose::Meta::Method::Constructor
1150 Moose::Meta::Attribute
1151 Moose::Meta::TypeConstraint
1152 Moose::Meta::TypeCoercion
1153 - lots of cleanup of such things as:
1155 - type constraint handling
1156 - error handling/messages
1157 (thanks to nothingmuch)
1159 * Moose::Meta::TypeConstraint::Parameterizable
1160 - added this module to support the refactor
1161 in Moose::Meta::TypeConstraint::Parameterized
1163 * Moose::Meta::TypeConstraint::Parameterized
1164 - refactored how these types are handled so they
1165 are more generic and not confined to ArrayRef
1169 - shortened some file names for better VMS support (RT #32381)
1171 0.33 Fri. Dec. 14, 2007
1172 !! Moose now loads 2 x faster !!
1173 !! with new Class::MOP 0.49 !!
1175 ++ new oose.pm module to make command line
1176 Moose-ness easier (see POD docs for more)
1178 * Moose::Meta::Class
1180 - several tweaks to take advantage of the
1181 new method map caching in Class::MOP
1183 * Moose::Meta::TypeConstraint::Parameterized
1184 - allow subtypes of ArrayRef and HashRef to
1185 be used as a container (sartak)
1186 - added tests for this
1187 - basic support for coercion to ArrayRef and
1188 HashRef for containers (sartak)
1189 - added tests for this
1191 * Moose::Meta::TypeCoercion
1192 - coercions will now create subtypes as needed
1193 so you can now add coercions to parameterized
1194 types without having to explictly define them
1195 - added tests for this
1197 * Moose::Meta::Method::Accessor
1198 - allow subclasses to decide whether we need
1199 to copy the value into a new variable (sartak)
1201 0.32 Tues. Dec. 4, 2007
1202 * Moose::Util::TypeConstraints
1203 - fixing how subtype aliases of unions work
1204 they should inherit the parent's coercion
1205 - added tests for this
1206 - you can now define multiple coercions on
1207 a single type at different times instead of
1208 having to do it all in one place
1209 - added tests for this
1211 * Moose::Meta::TypeConstraint
1212 - there is now a default constraint of sub { 1 }
1213 instead of Moose::Util::TypeConstraints setting
1216 * Moose::Meta::TypeCoercion
1217 * Moose::Meta::TypeCoercion::Union
1218 - added the &has_coercion_for_type and
1219 &add_type_coercions methods to support the
1220 new features above (although you cannot add
1221 more type coercions for Union types)
1223 0.31 Mon. Nov. 26, 2007
1224 * Moose::Meta::Attribute
1225 - made the +attr syntax handle extending types with
1226 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1227 now works if the original foo is an ArrayRef.
1228 - added tests for this.
1229 - delegation now works even if the attribute does not
1230 have a reader method using the get_read_method_ref
1231 method from Class::MOP::Attribute.
1232 - added tests for this
1233 - added docs for this
1235 * Moose::Util::TypeConstraints
1236 - passing no "additional attribute info" to
1237 &find_or_create_type_constraint will no longer
1238 attempt to create an __ANON__ type for you,
1239 instead it will just return undef.
1240 - added docs for this
1242 0.30 Fri. Nov. 23, 2007
1243 * Moose::Meta::Method::Constructor
1244 -builder related bug in inlined constructor. (groditi)
1246 * Moose::Meta::Method::Accessor
1247 - genereate unnecessary calls to predicates and refactor
1248 code generation for runtime speed (groditi)
1250 * Moose::Util::TypeConstraints
1251 - fix ClassName constraint to introspect symbol table (mst)
1252 - added more tests for this (mst)
1253 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1254 with work correctly.
1255 - added tests for this
1258 - adding the link to Recipie 11 (written by Sartak)
1259 - adding test for SYNOPSIS code
1262 - New tests for builder bug. Upon instantiation, if an
1263 attribute had a builder, no value and was not lazy the
1264 builder default was not getting run, oops. (groditi)
1266 0.29 Tues. Nov. 13, 2007
1267 * Moose::Meta::Attribute
1268 - Fix error message on missing builder method (groditi)
1270 * Moose::Meta::Method::Accessor
1271 - Fix error message on missing builder method (groditi)
1274 - Add test to check for the correct error message when
1275 builder method is missing (groditi)
1277 0.28 Tues. Nov. 13, 2007
1278 - 0.27 packaged incorrectly (groditi)
1280 0.27 Tues. Nov. 13, 2007
1281 * Moose::Meta::Attribute
1282 - Added support for the new builder option (groditi)
1283 - Added support for lazy_build option (groditi)
1284 - Changed slot initialization for predicate changes (groditi)
1286 * Moose::Meta::Method::Accessor
1287 - Added support for lazy_build option (groditi)
1288 - Fix inline methods to work with corrected predicate
1291 * Moose::Meta::Method::Constructor
1292 - Added support for lazy_build option (groditi)
1295 - tests for builder and lazy_build (groditi)
1297 * fixing some misc. bits in the docs that
1298 got mentioned on CPAN Forum & perlmonks
1301 - fixed how required methods are handled
1302 when they encounter overriden or modified
1303 methods from a class (thanks to confound).
1304 - added tests for this
1306 * Moose::Util::TypeConstraint
1307 - fixed the type notation parser so that
1308 the | always creates a union and so is
1309 no longer a valid type char (thanks to
1310 konobi, mugwump and #moose for working
1312 - added more tests for this
1314 0.26 Thurs. Sept. 27, 2007
1317 * Parameterized Types
1318 We now support parameterized collection types, such as:
1319 ArrayRef[Int] # array or integers
1320 HashRef[Object] # a hash with object values
1321 They can also be nested:
1322 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1323 And work with the type unions as well:
1324 ArrayRef[Int | Str] # array of integers of strings
1326 * Better Framework Extendability
1327 Moose.pm is now "extendable" such that it is now much
1328 easier to extend the framework and add your own keywords
1329 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1330 section of the Moose.pm docs.
1333 In an effort to begin documenting some of the various
1334 details of Moose as well as some common idioms, we have
1335 created Moose::Cookbook::Snacks as a place to find
1336 small (easily digestable) nuggets of Moose code.
1339 ~ Several doc updates/cleanup thanks to castaway ~
1341 - converted build system to use Module::Install instead of
1342 Module::Build (thanks to jrockway)
1345 - added all the meta classes to the immutable list and
1346 set it to inline the accessors
1347 - fix import to allow Sub::Exporter like { into => }
1348 and { into_level => } (perigrin)
1349 - exposed and documented init_meta() to allow better
1350 embedding and extending of Moose (perigrin)
1353 - complete re-organization of the test suite
1354 - added some new tests as well
1355 - finally re-enabled the Moose::POOP test since
1356 the new version of DBM::Deep now works again
1359 * Moose::Meta::Class
1360 - fixed very odd and very nasty recursion bug with
1362 - added tests for this (eilara)
1364 * Moose::Meta::Attribute
1365 Moose::Meta::Method::Constructor
1366 Moose::Meta::Method::Accessor
1367 - fixed issue with overload::Overloaded getting called
1368 on non-blessed items. (RT #29269)
1369 - added tests for this
1371 * Moose::Meta::Method::Accessor
1372 - fixed issue with generated accessor code making
1373 assumptions about hash based classes (thanks to dexter)
1375 * Moose::Coookbook::Snacks
1376 - these are bits of documentation, not quite as big as
1377 Recipes but which have no clear place in the module docs.
1378 So they are Snacks! (horray for castaway++)
1380 * Moose::Cookbook::Recipe4
1381 - updated it to use the new ArrayRef[MyType] construct
1382 - updated the accompanying test as well
1384 +++ Major Refactor of the Type Constraint system +++
1385 +++ with new features added as well +++
1387 * Moose::Util::TypeConstraint
1388 - no longer uses package variable to keep track of
1389 the type constraints, now uses the an instance of
1390 Moose::Meta::TypeConstraint::Registry to do it
1391 - added more sophisticated type notation parsing
1393 - added tests for this
1395 * Moose::Meta::TypeConstraint
1396 - some minor adjustments to make subclassing easier
1397 - added the package_defined_in attribute so that we
1398 can track where the type constraints are created
1400 * Moose::Meta::TypeConstraint::Union
1401 - this is now been refactored to be a subclass of
1402 Moose::Meta::TypeConstraint
1404 * Moose::Meta::TypeCoercion::Union
1405 - this has been added to service the newly refactored
1406 Moose::Meta::TypeConstraint::Union and is itself
1407 a subclass of Moose::Meta::TypeCoercion
1409 * Moose::Meta::TypeConstraint::Parameterized
1410 - added this module (taken from MooseX::AttributeHelpers)
1411 to help construct nested collection types
1412 - added tests for this
1414 * Moose::Meta::TypeConstraint::Registry
1415 - added this class to keep track of type constraints
1417 0.25 Mon. Aug. 13, 2007
1419 - Documentation update to reference Moose::Util::TypeConstraints
1420 under 'isa' in 'has' for how to define a new type
1421 (thanks to shlomif).
1423 * Moose::Meta::Attribute
1424 - required attributes now will no longer accept undef
1425 from the constructor, even if there is a default and lazy
1426 - added tests for this
1427 - default subroutines must return a value which passes the
1429 - added tests for this
1431 * Moose::Meta::Attribute
1432 * Moose::Meta::Method::Constructor
1433 * Moose::Meta::Method::Accessor
1434 - type-constraint tests now handle overloaded objects correctly
1435 in the error message
1436 - added tests for this (thanks to EvanCarroll)
1438 * Moose::Meta::TypeConstraint::Union
1439 - added (has_)hand_optimized_constraint to this class so that
1440 it behaves as the regular Moose::Meta::TypeConstraint does.
1443 - large refactoring of this code
1444 - added several more tests
1445 - tests for subtle conflict resolition issues
1446 added, but not currently running
1449 * Moose::Cookbook::Recipe7
1450 - added new recipe for augment/inner functionality
1452 - added test for this
1455 - a formal definition of roles (still in progress)
1458 - utilities for easier working with Moose classes
1459 - added tests for these
1462 - This contains Moose specific test functions
1463 - added tests for these
1465 0.24 Tues. July 3, 2007
1466 ~ Some doc updates/cleanup ~
1468 * Moose::Meta::Attribute
1469 - added support for roles to be given as parameters
1470 to the 'handles' option.
1471 - added tests and docs for this
1472 - the has '+foo' attribute form now accepts changes to
1473 the lazy option, and the addition of a handles option
1474 (but not changing the handles option)
1475 - added tests and docs for this
1478 - required methods are now fetched using find_method_by_name
1479 so that required methods can come from superclasses
1480 - adjusted tests for this
1482 0.23 Mon. June 18, 2007
1483 * Moose::Meta::Method::Constructor
1484 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1485 * Moose::Meta::Class
1486 - Modify make_immutable to work with the new Class::MOP immutable
1487 mechanism + POD + very basic test (groditi)
1488 * Moose::Meta::Attribute
1489 - Fix handles to use goto() so that caller() comes out properly on
1490 the other side (perigrin)
1492 0.22 Thurs. May 31, 2007
1493 * Moose::Util::TypeConstraints
1494 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1495 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1496 prototypes for functions
1497 - added the ClassName type constraint, this checks for strings
1498 which will respond true to ->isa(UNIVERSAL).
1499 - added tests and docs for this
1500 - subtyping just in name now works correctly by making the
1501 default for where be { 1 }
1502 - added test for this
1504 * Moose::Meta::Method::Accessor
1505 - coerce and lazy now work together correctly, thanks to
1506 merlyn for finding this bug
1507 - tests added for this
1508 - fix reader presedence bug in Moose::Meta::Attribute + tests
1511 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1512 a HASH-ref and missed. This produces better error messages then
1513 having it die cause undef is not a HASH.
1514 - added tests for this
1516 0.21 Thursday, May 2nd, 2007
1518 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1519 - modified unimport to remove super and inner along with the rest
1520 - altered unimport tests to handle this
1523 - altered super export to populate SUPER_SLOT
1525 * Moose::Meta::Class
1526 - altered augment and override modifier application to use *_SLOT
1527 - modified tests for these to unimport one test class each to test
1530 - fixed issue where custom attribute metaclasses
1531 where not handled correctly in roles
1532 - added tests for this
1534 * Moose::Meta::Class
1535 - fixed issue where extending metaclasses with
1536 roles would blow up. Thanks to Aankhen`` for
1537 finding this insidious error, and it's solution.
1539 ~~ lots of spelling and grammer fixes in the docs,
1540 many many thanks to rlb3 and Aankhen for these :)
1542 0.20 Friday, April 6th, 2007
1543 >> I messed up the SKIP logic in one test
1544 so this release is just to fix that.
1547 - 'has' now also accepts an ARRAY ref
1548 to create multiple attrs (see docs)
1549 (thanks to konobi for this)
1550 - added tests and docs
1552 0.19 Thurs. April 5th, 2007
1553 ~~ More documentation updates ~~
1555 * Moose::Util::TypeConstraints
1556 - 'type' now supports messages as well
1557 thanks to phaylon for finding this
1558 - added tests for this
1559 - added &list_all_type_constraints and
1560 &list_all_builtin_type_constraints
1561 functions to facilitate introspection.
1563 * Moose::Meta::Attribute
1564 - fixed regexp 'handles' declarations
1565 to build the list of delegated methods
1566 correctly (and not override important
1567 things like &new) thanks to ashleyb
1569 - added tests and docs for this
1570 - added the 'documentation' attributes
1571 so that you can actually document your
1572 attributes and inspect them through the
1574 - added tests and docs for this
1576 * Moose::Meta::Class
1577 - when loading custom attribute metaclasses
1578 it will first look in for the class in the
1579 Moose::Meta::Attribute::Custom::$name, and
1580 then default to just loading $name.
1581 - added tests and docs for this
1583 * Moose::Meta::TypeConstraint
1584 - type constraints now stringify to their names.
1585 - added test for this
1588 - added tests to assure we work with Module::Refresh
1589 - added stricter test skip logic in the Moose POOP
1590 test, ask Rob Kinyon why.
1591 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1593 0.18 Sat. March 10, 2007
1594 ~~ Many, many documentation updates ~~
1597 - We now use Class::MOP::load_class to
1599 - added tests to show types and subtypes
1600 working with Declare::Constraints::Simple
1601 and Test::Deep as constraint engines.
1604 !! You must have Class::MOP 0.37_001 !!
1605 !! for this developer release to work !!
1607 This release was primarily adding the immutable
1608 feature to Moose. An immutable class is one which
1609 you promise not to alter. When you set the class
1610 as immutable it will perform various bits of
1611 memoization and inline certain part of the code
1612 (constructors, destructors and accessors). This
1613 minimizes (and in some cases totally eliminates)
1614 one of Moose's biggest performance hits. This
1615 feature is not on by default, and is 100% optional.
1616 It has several configurable bits as well, so you
1617 can pick and choose to your specific needs.
1619 The changes involved in this were fairly wide and
1620 highly specific, but 100% backwards compatible, so
1621 I am not going to enumerate them here. If you are
1622 truely interested in what was changed, please do
1625 0.17 Tues. Nov. 14, 2006
1626 * Moose::Meta::Method::Accessor
1627 - bugfix for read-only accessors which
1628 are have a type constraint and lazy.
1629 Thanks to chansen for finding it.
1631 0.16 Tues. Nov. 14, 2006
1633 There are some speed improvements in this release,
1634 but they are only the begining, so stay tuned.
1637 - BUILDALL and DEMOLISHALL no longer get
1638 called unless they actually need to be.
1639 This gave us a signifigant speed boost
1640 for the cases when there is no BUILD or
1641 DEMOLISH method present.
1643 * Moose::Util::TypeConstraints
1644 * Moose::Meta::TypeConstraint
1645 - added an 'optimize_as' option to the
1646 type constraint, which allows for a
1647 hand optimized version of the type
1648 constraint to be used when possible.
1649 - Any internally created type constraints
1650 now provide an optimized version as well.
1652 0.15 Sun. Nov. 5, 2006
1654 This version of Moose *must* have Class::MOP 0.36 in order
1655 to work correctly. A number of small internal tweaks have
1656 been made in order to be compatible with that release.
1658 * Moose::Util::TypeConstraints
1659 - added &unimport so that you can clean out
1660 your class namespace of these exported
1663 * Moose::Meta::Class
1664 - fixed minor issue which occasionally
1665 comes up during global destruction
1667 - moved Moose::Meta::Method::Overriden into
1671 - moved Moose::Meta::Role::Method into
1674 * Moose::Meta::Attribute
1675 - changed how we do type checks so that
1676 we reduce the overall cost, but still
1679 - moved accessor generation methods to
1680 Moose::Meta::Method::Accessor to
1681 conform to the API changes from
1684 * Moose::Meta::TypeConstraint
1685 - changed how constraints are compiled
1686 so that we do less recursion and more
1687 iteration. This makes the type check
1689 - moved Moose::Meta::TypeConstraint::Union
1692 * Moose::Meta::Method::Accessor
1693 - created this from methods formerly found in
1694 Moose::Meta::Attribute
1696 * Moose::Meta::Role::Method
1697 - moved this from Moose::Meta::Role
1699 * Moose::Meta::Method::Overriden
1700 - moved this from Moose::Meta::Class
1702 * Moose::Meta::TypeConstraint::Union
1703 - moved this from Moose::Meta::TypeConstraint
1705 0.14 Mon. Oct. 9, 2006
1707 * Moose::Meta::Attribute
1708 - fixed lazy attributes which were not getting
1709 checked with the type constraint (thanks ashley)
1710 - added tests for this
1711 - removed the over-enthusiastic DWIMery of the
1712 automatic ArrayRef and HashRef defaults, it
1713 broke predicates in an ugly way.
1714 - removed tests for this
1716 0.13 Sat. Sept. 30, 2006
1718 This version of Moose *must* have Class::MOP 0.35 in order
1719 to work correctly. A number of small internal tweaks have
1720 been made in order to be compatible with that release.
1723 - Removed the use of UNIVERSAL::require to be a better
1724 symbol table citizen and remove a dependency
1725 (thanks Adam Kennedy)
1727 **~~ removed experimental & undocumented feature ~~**
1728 - commented out the 'method' and 'self' keywords, see the
1729 comments for more info.
1732 - added a FAQ and WTF files to document frequently
1733 asked questions and common problems
1735 * Moose::Util::TypeConstraints
1736 - added GlobRef and FileHandle type constraint
1737 - added tests for this
1739 * Moose::Meta::Attribute
1740 - if your attribute 'isa' ArrayRef of HashRef, and you have
1741 not explicitly set a default, then make the default DWIM.
1742 This will also work for subtypes of ArrayRef and HashRef
1744 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1745 - new test added for this (thanks to ashley)
1748 - added basic support for runtime role composition
1749 but this is still *highly experimental*, so feedback
1750 is much appreciated :)
1751 - added tests for this
1753 * Moose::Meta::TypeConstraint
1754 - the type constraint now handles the coercion process
1755 through delegation, this is to support the coercion
1758 * Moose::Meta::TypeConstraint::Union
1759 - it is now possible for coercions to be performed
1761 - added tests for this (thanks to konobi)
1763 * Moose::Meta::TypeCoercion
1764 - properly capturing error when type constraint
1768 - Scalar::Util 1.18 is bad on Win32, so temporarily
1769 only require version 1.17 for Win32 and cygwin.
1770 (thanks Adam Kennedy)
1772 0.12 Sat. Sept. 1, 2006
1774 - Recipe5 (subtypes & coercion) has been written
1777 - fixed "bad meta" error message to be more descriptive
1778 - fixed &unimport to not remove the &inner and &super
1779 keywords because we need to localize them.
1780 - fixed number of spelling/grammer issues, thanks Theory :)
1782 **~~ experimental & undocumented feature ~~**
1783 - added the method and self keywords, they are basically
1784 just sugar, and they may not stay around.
1787 - added &dump method to easily Data::Dumper
1790 * Moose::Meta::TypeConstraint
1791 - added the &is_a_type_of method to check both the current
1792 and the subtype of a method (similar to &isa with classes)
1795 - this is now a subclass of Class::MOP::Module, and no longer
1796 creates the _role_meta ugliness of before.
1797 - fixed tests to reflect this change
1799 0.11 Wed. July 12, 2006
1801 - added an &unimport method to remove all the keywords
1802 that Moose will import, simply add 'no Moose' to the
1803 bottom of your class file.
1806 - fixed some test failures caused by a forgotten test
1809 0.10 Thurs. July 6, 2006
1811 - improved error message when loading modules so
1812 it is less confusing when you load a role.
1813 - added &calculate_all_roles method to
1814 Moose::Meta::Class and Moose::Meta::Role
1817 This module has been tested against Class::MOP 0.30
1818 but it does not yet utilize the optimizations
1819 it makes available. Stay tuned for that ;)
1821 0.09_03 Fri. June 23, 2006
1822 ++ DEVELOPER RELEASE ++
1824 - 'use strict' and 'use warnings' are no longer
1825 needed in Moose classes, Moose itself will
1826 turn them on for you.
1827 - added tests for this
1828 - moved code from exported subs to private methods
1829 in Moose::Meta::Class
1832 - as with Moose, strict and warnings are
1833 automatically turned on for you.
1834 - added tests for this
1837 - now handles an edge case for override errors
1838 - added tests for this
1839 - added some more edge case tests
1841 0.09_02 Tues. May 16, 2006
1842 ++ DEVELOPER RELEASE ++
1844 - added prototypes to the exported subs
1848 - added prototypes to the exported subs
1851 * Moose::Util::TypeConstraints
1852 - cleaned up prototypes for the subs
1855 0.09_01 Fri. May 12, 2006
1856 ++ DEVELOPER RELEASE ++
1857 - This release works in combination with
1858 Class::MOP 0.29_01, it is a developer
1859 release because it uses the a new
1860 instance sub-protocol and a fairly
1861 complete Role implementation. It has
1862 not yet been optimized, so it slower
1863 the the previous CPAN version. This
1864 release also lacks good updated docs,
1865 the official release will have updated docs.
1868 - refactored the keyword exports
1869 - 'with' now checks Role validaity and
1870 accepts more than one Role at a time
1871 - 'extends' makes metaclass adjustments as
1872 needed to ensure metaclass compatibility
1875 - refactored the keyword exports
1876 - 'with' now checks Role validaity and
1877 accepts more than one Role at a time
1879 * Moose::Util::TypeConstraints
1880 - added the 'enum' keyword for simple
1881 string enumerations which can be used as
1883 - see example of usage in t/202_example.t
1886 - more careful checking of params to new()
1889 - much work done on the role composition
1890 - many new tests for conflict detection
1891 and composition edge cases
1892 - not enough documentation, I suggest
1893 looking at the tests
1895 * Moose::Meta::Instance
1896 - added new Instance metaclass to support
1897 the new Class::MOP instance protocol
1899 * Moose::Meta::Class
1900 - some small changes to support the new
1902 - some small additions to support Roles
1904 * Moose::Meta::Attribute
1905 - some improvements to the accessor generation code
1907 - some small changes to support the new
1909 - (still somewhat) experimental delegation support
1910 with the 'handles' option
1911 - added several tests for this
1912 - no docs for this yet
1914 0.05 Thurs. April 27, 2006
1916 - keywords are now exported with Sub::Exporter
1917 thanks to chansen for this commit
1918 - has keyword now takes a 'metaclass' option
1919 to support custom attribute meta-classes
1920 on a per-attribute basis
1921 - added tests for this
1922 - the 'has' keyword not accepts inherited slot
1923 specifications (has '+foo'). This is still an
1924 experimental feature and probably not finished
1925 see t/038_attribute_inherited_slot_specs.t for
1926 more details, or ask about it on #moose
1927 - added tests for this
1930 - keywords are now exported with Sub::Exporter
1932 * Moose::Utils::TypeConstraints
1933 - reorganized the type constraint hierarchy, thanks
1934 to nothingmuch and chansen for his help and advice
1936 - added some tests for this
1937 - keywords are now exported with Sub::Exporter
1938 thanks to chansen for this commit
1940 * Moose::Meta::Class
1941 - due to changes in Class::MOP, we had to change
1942 construct_instance (for the better)
1944 * Moose::Meta::Attribute
1945 - due to changes in Class::MOP, we had to add the
1946 initialize_instance_slot method (it's a good thing)
1948 * Moose::Meta::TypeConstraint
1949 - added type constraint unions
1950 - added tests for this
1951 - added the is_subtype_of predicate method
1952 - added tests for this
1954 0.04 Sun. April 16th, 2006
1956 - Roles can now consume other roles
1957 - added tests for this
1958 - Roles can specify required methods now with
1959 the requires() keyword
1960 - added tests for this
1963 - ripped out much of it's guts ,.. much cleaner now
1964 - added required methods and correct handling of
1965 them in apply() for both classes and roles
1966 - added tests for this
1967 - no longer adds a does() method to consuming classes
1968 it relys on the one in Moose::Object
1969 - added roles attribute and some methods to support
1970 roles consuming roles
1972 * Moose::Meta::Attribute
1973 - added support for triggers on attributes
1974 - added tests for this
1975 - added support for does option on an attribute
1976 - added tests for this
1978 * Moose::Meta::Class
1979 - added support for attribute triggers in the
1981 - added tests for this
1984 - Moose no longer creates a subtype for your class
1985 if a subtype of the same name already exists, this
1986 should DWIM in 99.9999% of all cases
1988 * Moose::Util::TypeConstraints
1989 - fixed bug where incorrect subtype conflicts were
1991 - added test for this
1994 - this class can now be extended with 'use base' if
1995 you need it, it properly loads the metaclass class now
1996 - added test for this
1998 0.03_02 Wed. April 12, 2006
2000 - you must now explictly use Moose::Util::TypeConstraints
2001 it no longer gets exported for you automatically
2004 - new() now accepts hash-refs as well as key/value lists
2005 - added does() method to check for Roles
2006 - added tests for this
2008 * Moose::Meta::Class
2009 - added roles attribute along with the add_role() and
2011 - added tests for this
2014 - now adds a does() method to consuming classes
2015 which tests the class's hierarchy for roles
2016 - added tests for this
2018 0.03_01 Mon. April 10, 2006
2020 - added new Role recipe (no content yet, only code)
2023 - added 'with' keyword for Role support
2024 - added test and docs for this
2025 - fixed subtype quoting bug
2026 - added test for this
2030 - added test and docs
2032 * Moose::Util::TypeConstraints
2033 - added the message keyword to add custom
2034 error messages to type constraints
2037 - the meta role to support Moose::Role
2038 - added tests and docs
2040 * Moose::Meta::Class
2041 - moved a number of things from Moose.pm
2042 to here, they should have been here
2045 * Moose::Meta::Attribute
2046 - moved the attribute option macros here
2047 instead of putting them in Moose.pm
2049 * Moose::Meta::TypeConstraint
2050 - added the message attributes and the
2052 - added tests and docs for this
2054 0.03 Thurs. March 30, 2006
2056 - added the Moose::Cookbook with 5 recipes,
2057 describing all the stuff Moose can do.
2060 - fixed an issue with &extends super class loading
2061 it now captures errors and deals with inline
2062 packages correctly (bug found by mst, solution
2064 - added super/override & inner/augment features
2065 - added tests and docs for these
2068 - BUILDALL now takes a reference of the %params
2069 that are passed to &new, and passes that to
2072 * Moose::Util::TypeConstraints
2073 - Type constraints now survive runtime reloading
2074 - added test for this
2076 * Moose::Meta::Class
2077 - fixed the way attribute defaults are handled
2078 during instance construction (bug found by chansen)
2080 * Moose::Meta::Attribute
2081 - read-only attributes now actually enforce their
2082 read-only-ness (this corrected in Class::MOP as
2085 0.02 Tues. March 21, 2006
2087 - many more tests, fixing some bugs and
2089 - &extends now loads the base module with
2091 - added UNIVERSAL::require to the
2094 - each new Moose class will also create
2095 and register a subtype of Object which
2096 correspond to the new Moose class.
2097 - the 'isa' option in &has now only
2098 accepts strings, and will DWIM in
2101 * Moose::Util::TypeConstraints
2102 - added type coercion features
2103 - added tests for this
2104 - added support for this in attributes
2105 and instance construction
2107 - type construction no longer creates a
2108 function, it registers the type instead.
2109 - added several functions to get the
2113 - BUILDALL and DEMOLISHALL were broken
2114 because of a mis-named hash key, Whoops :)
2116 * Moose::Meta::Attribute
2117 - adding support for coercion in the
2118 autogenerated accessors
2120 * Moose::Meta::Class
2121 - adding support for coercion in the
2122 instance construction
2124 * Moose::Meta::TypeConstraint
2125 * Moose::Meta::TypeCoercion
2126 - type constraints and coercions are now
2127 full fledges meta-objects
2129 0.01 Wed. March 15, 2006
2130 - Moooooooooooooooooose!!!