1 Revision history for Perl extension Moose
4 * Moose::Meta::Attribute
5 - Added a delegation_metaclass method to replace a hard-coded
6 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
8 0.65 Thu, January 22, 2008
9 * Moose and Moose::Meta::Method::Overridden
10 - If an overridden method called super(), and then the
11 superclass's method (not overridden) _also_ called super(),
12 Moose went into an endless recursion loop. Test provided by
13 Chris Prather. (Dave Rolsky)
15 * Moose::Meta::TypeConstraint
16 - All methods are now documented. (gphat)
18 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
19 - Fixed some bogus failures that occurred because we tried to
20 validate filesystem paths in a very ad-hoc and
21 not-quite-correct way. (Dave Rolsky)
23 * Moose::Util::TypeConstraints
24 - Added maybe_type to exports. See docs for details. (rjbs)
27 - Added Moose::Util::TypeConstraints to the SEE ALSO
31 - Methods created via an attribute can now fulfill a "requires"
32 declaration for a role. (nothingmuch)
34 * Moose::Meta::Method::*
35 - Stack traces from inlined code will now report its line and
36 file as being in your class, as opposed to in Moose
39 0.64 Wed, December 31, 2008
40 * Moose::Meta::Method::Accessor
41 - Always inline predicate and clearer methods (Sartak)
43 * Moose::Meta::Attribute
44 - Support for parameterized traits (Sartak)
45 - verify_against_type_constraint method to avoid duplication
46 and enhance extensibility (Sartak)
49 - Tests (but no support yet) for parameterized traits (Sartak)
52 - Require Class::MOP 0.75+, which has the side effect of making
53 sure we work on Win32. (Dave Rolsky)
55 0.63 Mon, December 8, 2008
57 - Some small grammar tweaks and bug fixes in non-Moose example
60 0.62_02 Fri, December 5, 2008
61 * Moose::Meta::Role::Application::ToClass
62 - When a class does not provide all of a role's required
63 methods, the error thrown now mentions all of the missing
64 methods, as opposed to just the first one found. Requested by
65 Curtis Poe (RT #41119). (Dave Rolsky)
67 * Moose::Meta::Method::Constructor
68 - Moose will no longer inline a constructor for your class
69 unless it inherits its constructor from Moose::Object, and
70 will warn when it doesn't inline. If you want to force
71 inlining anyway, pass "replace_constructor => 1" to
72 make_immutable. Addresses RT #40968, reported by Jon
74 - The quoting of default values could be broken if the default
75 contained a single quote ('). Now we use quotemeta to escape
76 anything potentially dangerous in the defaults. (Dave Rolsky)
78 0.62_01 Wed, December 3, 2008
80 - use the method->execute API for BUILDALL
81 and DEMOLISHALL (Sartak)
83 * Moose::Util::TypeConstraints
84 - We now make all the type constraint meta classes immutable
85 before creating the default types provided by Moose. This
86 should make loading Moose a little faster. (Dave Rolsky)
88 0.62 Wed November 26, 2008
89 * Moose::Meta::Role::Application::ToClass
90 Moose::Meta::Role::Application::ToRole
91 - fixed issues where excluding and aliasing the
92 same methods for a single role did not work
93 right (worked just fine with multiple
95 - added test for this (stevan)
97 * Moose::Meta::Role::Application::RoleSummation
98 - fixed the error message when trying to compose
99 a role with a role it excludes (Sartak)
102 - Catch another case where recursion caused the value
103 of $CALLER to be stamped on (t0m)
104 - added test for this (t0m)
107 - Remove the make_immutable keyword, which has been
108 deprecated since April. It breaks metaclasses that
109 use Moose without no Moose (Sartak)
111 * Moose::Meta::Attribute
112 - Removing an attribute from a class now also removes delegation
113 (handles) methods installed for that attribute (t0m)
114 - added test for this (t0m)
116 * Moose::Meta::Method::Constructor
117 - An attribute with a default that looked like a number (but was
118 really a string) would accidentally be treated as a number
119 when the constructor was made immutable (perigrin)
120 - added test for this (perigrin)
123 - create method for constructing a role
125 - added test for this (Sartak)
126 - anonymous roles! (Sartak)
127 - added test for this (Sartak)
130 - more consistent error messages (Sartak)
132 * Moose::Cookbook::Roles::Recipe1
133 - attempt to explain why a role that just requires
134 methods is useful (Sartak)
136 0.61 Fri November 7, 2008
137 * Moose::Meta::Attribute
138 - When passing a role to handles, it will be loaded if necessary
142 - Method objects returned by get_method (and other methods)
143 Could end up being returned without an associated_metaclass
144 attribute. Removing get_method_map, which is provided by
145 Class::MOP::Class, fixed this. The Moose version did nothing
146 different from its parent except introduce a bug. (Dave Rolsky)
147 - added tests for this (jdv79)
150 - Added a $VERSION to all .pm files which didn't have one. Fixes
151 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
153 * Moose::Cookbook::Basics::Recipe4
154 * Moose::Cookbook::Basics::Recipe6
155 - These files had spaces on the first line of the SYNOPSIS, as
156 opposed to a totally empty line. According to RT #40432, this
157 confuses POD parsers. (Dave Rolsky)
159 0.60 Fri October 24, 2008
161 - Passing "-traits" when loading Moose caused the Moose.pm
162 exports to be broken. Reported by t0m. (Dave Rolsky)
163 - Tests for this bug. (t0m)
166 - Change resolve_metaclass alias to use the new
167 load_first_existing_class function. This makes it a lot
168 simpler, and also around 5 times faster. (t0m)
169 - Add caching to resolve_metaclass_alias, which gives an order
170 of magnitude speedup to things which repeatedly call the
171 Moose::Meta::Attribute->does method, notably MooseX::Storage
174 * Moose::Util::TypeConstraint
175 - Put back the changes for parameterized constraints that
176 shouldn't have been removed in 0.59. We still cannot parse
177 them, but MooseX modules can create them in some other
178 way. See the 0.58 changes for more details. (jnapiorkowski)
179 - Changed the way subtypes are created so that the job is
180 delegated to a type constraint parent. This clears up some
181 hardcoded checking and should allow correct subtypes of
182 Moose::Meta::Type::Constraint. Don't rely on this new API too
183 much (create_child_type) because it may go away in the
184 future. (jnapiorkowski)
186 * Moose::Meta::TypeConstraint::Union
187 - Type constraint names are sorted as strings, not numbers.
190 * Moose::Meta::TypeConstraint::Parameterizable
191 - New parameterize method. This can be used as a factory method
192 to make a new type constraint with a given parameterized
193 type. (jnapiorkowski)
194 - added tests (jnapiorkowski)
196 0.59 Tue October 14, 2008
198 - Add abridged documentation for builder/default/initializer/
199 predicate, and link to more details sections in
200 Class::MOP::Attribute. (t0m)
202 * Moose::Util::TypeConstraints
203 - removed prototypes from all but the &-based stuff (mst)
205 * Moose::Util::TypeConstraints
206 - Creating a anonymous subtype with both a constraint and a
207 message failed with a very unhelpful error, but should just
208 work. Reported by t0m. (Dave Rolsky)
211 - Some tests that used Test::Warn if it was available failed
212 with older versions of Test::Warn. Reported by Fayland. (Dave
214 - Test firing behavior of triggers in relation to builder/default/
216 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
217 kinds of supported type. (t0m)
220 - In create(), do not pass "roles" option to the superclass
221 - added related test that creates an anon metaclass with
224 * Moose::Meta::TypeConstraint::Class
225 * Moose::Meta::TypeConstraint::Role
226 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
227 other types (as per change in 0.55_02). (t0m)
229 * Moose::Meta::TypeConstraint::Registry
230 - Fix warning when dealing with unknown type names (t0m)
232 * Moose::Util::TypeConstraints
233 - Reverted changes from 0.58 related to handle parameterized
234 types. This caused random failures on BSD and Win32 systems,
235 apparently related to the regex engine. This means that Moose
236 can no longer parse structured type constraints like
237 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
238 supported in a slightly different way via MooseX::Types some
239 time in the future. (Dave Rolsky)
241 0.58 Sat September 20, 2008
242 !! This release has an incompatible change regarding !!
243 !! how roles add methods to a class !!
245 * Roles and role application
246 ! Roles now add methods by calling add_method, not
247 alias_method. They make sure to always provide a method
248 object, which will be cloned internally. This means that it is
249 now possible to track the source of a method provided by a
250 role, and even follow its history through intermediate roles.
252 This means that methods added by a role now show up when
253 looking at a class's method list/map. (Dave Rolsky)
256 - From this release on, we'll try to maintain a list of
257 conflicting modules, and warn you if you have one
258 installed. For example, this release conflicts with ...
259 - MooseX::Singleton <= 0.11
260 - MooseX::Params::Validate <= 0.05
263 In general, we try to not break backwards compatibility for
264 most Moose users, but MooseX modules and other code which
265 extends Moose's metaclasses is often affected by very small
266 changes in the Moose internals.
268 * Moose::Meta::Method::Delegation
269 * Moose::Meta::Attribute
270 - Delegation methods now have their own method class. (Dave
273 * Moose::Meta::TypeConstraint::Parameterizable
274 - Added a new method 'parameterize' which is basically a factory
275 for the containing constraint. This makes it easier to create
276 new types of parameterized constraints. (jnapiorkowski)
278 * Moose::Meta::TypeConstraint::Union
279 - Changed the way Union types canonicalize their names to follow
280 the normalized TC naming rules, which means we strip all
281 whitespace. (jnapiorkowski)
283 * Moose::Util::TypeConstraints
284 - Parameter and Union args are now sorted, this makes Int|Str
285 the same constraint as Str|Int. (jnapiorkowski)
286 - Changes to the way Union types are parsed to more correctly
287 stringify their names. (jnapiorkowski)
288 - When creating a parameterized type, we now use the new
289 parameterize method. (jnapiorkowski)
290 - Incoming type constraint strings are now normalized to remove
291 all whitespace differences. (jnapiorkowski)
292 - Changed the way we parse type constraint strings so that we now
293 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
294 constraints. This lays the foundation for more flexible type
295 constraint implementations.
297 * Tests and docs for all the above. (jnapiorkowski)
301 - Moose::Exporter will no longer remove a subroutine that the
302 exporting package re-exports. Moose re-exports the
303 Carp::confess function, among others. The reasoning is that we
304 cannot know whether you have also explicitly imported those
305 functions for your own use, so we err on the safe side and
306 always keep them. (Dave Rolsky)
307 - added tests for this (rafl)
310 - Changes to how we fix metaclass compatibility that are much
311 too complicated to go into. The summary is that Moose is much
312 less likely to complain about metaclass incompatibility
313 now. In particular, if two metaclasses differ because
314 Moose::Util::MetaRole was used on the two corresponding
315 classes, then the difference in roles is reconciled for the
316 subclass's metaclass. (Dave Rolsky)
317 - Squashed an warning in _process_attribute (thepler)
320 - throw exceptions (sooner) for invalid attribute names (thepler)
321 - added tests for this (thepler)
323 * Moose::Util::MetaRole
324 - If you explicitly set a constructor or destructor class for a
325 metaclass object, and then applied roles to the metaclass,
326 that explicitly set class would be lost and replaced with the
330 * Moose::Meta::Attribute
331 * Moose::Meta::Method
334 * Moose::Error::Default
335 * Moose::Error::Croak
336 * Moose::Error::Confess
337 - All instances of confess() changed to use overridable
338 C<throw_error> method. This method ultimately calls a class
339 constructor, and you can change the class being called. In
340 addition, errors now pass more information than just a string.
341 The default C<error_class> behaves like C<Carp::confess>, so
342 the behavior is not visibly different for end users.
344 0.57 Wed September 3, 2008
346 - A new bit of doc intended to introduce folks familiar with
347 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
350 - Shows examples of two classes, each done first with and then
351 without Moose. This makes a nice parallel to
352 Moose::Intro. (Dave Rolsky)
354 * Moose::Util::TypeConstraints
355 - Fixed a bug in find_or_parse_type_constraint so that it
356 accepts a Moose::Meta::TypeConstraint object as the parent
357 type, not just a name (jnapiorkowski)
358 - added tests (jnapiorkowski)
361 - If Sub::Name was not present, unimporting failed to actually
362 remove some sugar subs, causing test failures (Dave Rolsky)
364 0.56 Mon September 1, 2008
365 For those not following the series of dev releases, there are
366 several major changes in this release of Moose.
367 ! Moose::init_meta should now be called as a method. See the
370 - Major performance improvements by nothingmuch.
372 - New modules for extension writers, Moose::Exporter and
373 Moose::Util::MetaRole by Dave Rolsky.
375 - Lots of doc improvements and additions, especially in the
380 * Removed all references to the experimental-but-no-longer-needed
381 Moose::Meta::Role::Application::ToMetaclassInstance.
383 * Require Class::MOP 0.65.
385 0.55_04 Sat August 30, 2008
386 * Moose::Util::MetaRole
387 * Moose::Cookbook::Extending::Recipe2
388 - This simplifies the application of roles to any meta class, as
389 well as the base object class. Reimplemented metaclass traits
390 using this module. (Dave Rolsky)
392 * Moose::Cookbook::Extending::Recipe1
393 - This a new recipe, an overview of various ways to write Moose
394 extensions (Dave Rolsky)
396 * Moose::Cookbook::Extending::Recipe3
397 * Moose::Cookbook::Extending::Recipe4
398 - These used to be Extending::Recipe1 and Extending::Recipe2,
401 0.55_03 Fri August 29, 2008
402 * No changes from 0.55_02 except increasing the Class::MOP
403 dependency to 0.64_07.
405 0.55_02 Fri August 29, 2008
406 * Makefile.PL and Moose.pm
407 - explicitly require Perl 5.8.0+ (Dave Rolsky)
409 * Moose::Util::TypeConstraints
410 - Fix warnings from find_type_constraint if the type is not
413 * Moose::Meta::TypeConstraint
414 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
415 return false if the type you specify cannot be found in the
416 type registry, rather than throwing an unhelpful and
417 coincidental exception. (t0m).
418 - added docs & test for this (t0m)
420 * Moose::Meta::TypeConstraint::Registry
421 - add_type_constraint now throws an exception if a parameter is
423 - added docs & test for this (t0m)
425 * Moose::Cookbook::FAQ
426 - Added a faq entry on the difference between "role" and "trait"
430 - Fixed a bug that caused role composition to not see a required
431 method when that method was provided by another role being
432 composed at the same time. (Dave Rolsky)
433 - test and bug finding (tokuhirom)
435 0.55_01 Wed August 20, 2008
437 !! Calling Moose::init_meta as a function is now !!
438 !! deprecated. Please see the Moose.pm docs for details. !!
440 * Moose::Meta::Method::Constructor
441 - Fix inlined constructor so that values produced by default
442 or builder methods are coerced as required. (t0m)
443 - added test for this (t0m)
445 * Moose::Meta::Attribute
446 - A lazy attribute with a default or builder did not attempt to
447 coerce the default value. The immutable code _did_
449 - added test for this (t0m)
452 - This is a new helper module for writing "Moose-alike"
453 modules. This should make the lives of MooseX module authors
454 much easier. (Dave Rolsky)
457 * Moose::Cookbook::Meta::Recipe5
458 - Implemented metaclass traits (and wrote a recipe for it):
460 use Moose -traits => 'Foo'
462 This should make writing small Moose extensions a little
465 * Moose::Cookbook::Basics::Recipe1
466 - Removed any examples of direct hashref access, and applied an
467 editorial axe to reduce verbosity. (Dave Rolsky)
469 * Moose::Cookbook::Basics::Recipe1
470 - Also applied an editorial axe here. (Dave Rolsky)
473 * Moose::Cookbook::Extending::Recipe1
474 * Moose::Cookbook::Extending::Recipe2
475 - Rewrote extending and embedding moose documentation and
476 recipes to use Moose::Exporter (Dave Rolsky)
480 - These two modules now warn when you load them from the main
481 package "main" package, because we will not export sugar to
482 main. Previously it just did nothing. (Dave Rolsky)
485 - Now provide an init_meta method just like Moose.pm, and you
486 can call this to provide an alternate role metaclass. (Dave
487 Rolsky and nothingmuch)
488 - get_method_map now respects the package cache flag (nothingmuch)
491 - Two new methods - add_method and wrap_method_body
495 - Optimizations including allowing constructors to accept hash
496 refs, making many more classes immutable, and making
497 constructors immutable. (nothingmuch)
499 0.55 Sun August 3, 2008
500 * Moose::Meta::Attribute
501 - breaking down the way 'handles' methods are
502 created so that the process can be more easily
503 overridden by subclasses (stevan)
505 * Moose::Meta::TypeConstraint
506 - fixing what is passed into a ->message with
507 the type constraints (RT #37569)
508 - added tests for this (Charles Alderman)
510 * Moose::Util::TypeConstraints
511 - fix coerce to accept anon types like subtype can (mst)
514 - reorganized the recipes into sections - Basics, Roles, Meta,
515 Extending - and wrote abstracts for each section (Dave Rolsky)
517 * Moose::Cookbook::Basics::Recipe10
518 - A new recipe that demonstrates operator overloading
519 in combination with Moose. (bluefeet)
521 * Moose::Cookbook::Meta::Recipe1
522 - an introduction to what meta is and why you'd want to make
523 your own metaclass extensions (Dave Rolsky)
525 * Moose::Cookbook::Meta::Recipe4
526 - a very simple metaclass example (Dave Rolsky)
528 * Moose::Cookbook::Extending::Recipe1
529 - how to write a Moose-alike module to use your own object base
532 * Moose::Cookbook::Extending::Recipe2
533 - how to write modules with an API just like C<Moose.pm> (Dave
537 - Tons of fixes, both syntactical and grammatical (Dave
538 Rolsky, Paul Fenwick)
540 0.54 Thurs. July 3, 2008
541 ... this is not my day today ...
543 * Moose::Meta::Attribute
544 - fixed legal_options_for_inheritance such that
545 clone_and_inherit options still works for
546 Class::MOP::Attribute objects and therefore
547 does not break MooseX::AttributeHelpers
550 0.53 Thurs. July 3, 2008
551 * Whoops, I guess I should run 'make manifest' before
552 actually releasing the module. No actual changes
553 in this release, except the fact that it includes
554 the changes that I didn't include in the last
557 0.52 Thurs. July 3, 2008
559 - added "FEATURE REQUESTS" section to the Moose docs
560 to properly direct people (stevan) (RT #34333)
561 - making 'extends' croak if it is passed a Role since
562 this is not ever something you want to do
563 (fixed by stevan, found by obra)
564 - added tests for this (stevan)
567 - adding support for DOES (as in UNIVERSAL::DOES)
569 - added test for this
571 * Moose::Meta::Attribute
572 - added legal_options_for_inheritance (wreis)
573 - added tests for this (wreis)
575 * Moose::Cookbook::Snacks::*
576 - removed some of the unfinished snacks that should
577 not have been released yet. Added some more examples
578 to the 'Keywords' snack. (stevan)
580 * Moose::Cookbook::Style
581 - added general Moose "style guide" of sorts to the
582 cookbook (nothingmuch) (RT #34335)
585 - added more BUILDARGS tests (stevan)
587 0.51 Thurs. Jun 26, 2008
589 - add unimport so "no Moose::Role" actually does
592 * Moose::Meta::Role::Application::ToRole
593 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
594 order to provide its own implementation, that method still got
595 added to the list of required methods for consumers of
596 RoleB. Now an aliased method is only added to the list of
597 required methods if the role doing the aliasing does not
598 provide its own implementation. See Recipe 11 for an example
599 of all this. (Dave Rolsky)
600 - added tests for this
602 * Moose::Meta::Method::Constructor
603 - when a single argument that wasn't a hashref was provided to
604 an immutabilized constructor, the error message was very
605 unhelpful, as opposed to the non-immutable error. Reported by
607 - added test for this (Dave Rolsky)
609 * Moose::Meta::Attribute
610 - added support for meta_attr->does("ShortAlias") (sartak)
611 - added tests for this (sartak)
612 - moved the bulk of the `handles` handling to the new
613 install_delegation method (Stevan)
616 - Added BUILDARGS, a new step in new()
618 * Moose::Meta::Role::Application::RoleSummation
619 - fix typos no one ever sees (sartak)
621 * Moose::Util::TypeConstraints
622 * Moose::Meta::TypeConstraint
623 * Moose::Meta::TypeCoercion
624 - Attempt to work around the ??{ } vs. threads issue
626 - Some null_constraint optimizations
628 0.50 Thurs. Jun 11, 2008
629 - Fixed a version number issue by bumping all modules
632 0.49 Thurs. Jun 11, 2008
633 !! This version now approx. 20-25% !!
634 !! faster with new Class::MOP 0.59 !!
636 * Moose::Meta::Attribute
637 - fixed how the is => (ro|rw) works with
638 custom defined reader, writer and accessor
640 - added docs for this (TODO).
641 - added tests for this (Thanks to Penfold)
642 - added the custom attribute alias for regular
643 Moose attributes which is "Moose"
644 - fix builder and default both being used
649 Moose::Meta::Attribute
651 Moose::Meta::Role::Composite
652 Moose::Util::TypeConstraints
653 - switched usage of reftype to ref because
657 - changing add_package_symbol to use the new
661 - fixed how DEMOLISHALL is called so that it
662 can be overrided in subclasses (thanks to Sartak)
663 - added test for this (thanks to Sartak)
665 * Moose::Util::TypeConstraints
666 - move the ClassName type check code to
667 Class::MOP::is_class_loaded (thanks to Sartak)
669 * Moose::Cookbook::Recipe11
670 - add tests for this (thanks to tokuhirom)
672 0.48 Thurs. May 29, 2008
673 (early morning release engineering)--
675 - fixing the version in Moose::Meta::Method::Destructor
676 which was causing the indexer to choke
678 0.47 Thurs. May 29, 2008
679 (late night release engineering)--
681 - fixing the version is META.yml, no functional
682 changes in this release
684 0.46 Wed. May 28, 2008
685 !! This version now approx. 20-25% !!
686 !! faster with new Class::MOP 0.57 !!
689 - some optimizations of the &initialize method
690 since it is called so often by &meta
694 - now use the get_all_package_symbols from the
695 updated Class::MOP, test suite is now 10 seconds
698 * Moose::Meta::Method::Destructor
699 - is_needed can now also be called as a class
700 method for immutablization to check if the
701 destructor object even needs to be created
704 * Moose::Meta::Method::Destructor
705 Moose::Meta::Method::Constructor
706 - added more descriptive error message to help
707 keep people from wasting time tracking an error
708 that is easily fixed by upgrading.
710 0.45 Saturday, May 24, 2008
712 - Because of work in Class::MOP 0.57, all
713 XS based functionality is now optional
714 and a Pure Perl version is supplied
715 - the CLASS_MOP_NO_XS environment variable
716 can now be used to force non-XS versions
718 - several of the packages have been tweaked
719 to take care of this, mostly we added
720 support for the package_name and name
721 variables in all the Method metaclasses
722 - before/around/after method modifiers now
723 support regexp matching of names
724 (thanks to Takatoshi Kitano)
725 - tests added for this
726 - NOTE: this only works for classes, it
727 is currently not supported in roles,
728 but, ... patches welcome
729 - All usage of Carp::confess have been replaced
730 by Carp::croak in the "keyword" functions since
731 the stack trace is usually not helpful
734 - All usage of Carp::confess have been replaced
735 by Carp::croak in the "keyword" functions since
736 the stack trace is usually not helpful
737 - The 'has' keyword for roles now accepts the
738 same array ref form that Moose.pm does
739 (has [qw/foo bar/] => (is => 'rw', ...))
740 - added test for this
742 * Moose::Meta::Attribute
743 - trigger on a ro-attribute is no longer an
744 error, as it's useful to trigger off of the
748 - added same 'add_package_symbol' fix as in
752 - does_role now handles non-Moose classes
754 - added tests for this
755 - added the 'add_method_modifier' function
756 (thanks to Takatoshi Kitano)
758 * Moose::Util::TypeConstraints
759 - subtypes of parameterizable types now are
760 themselves parameterizable types
762 * Moose::Meta::Method::Constructor
763 - fixed bug where trigger was not being
764 called by the inlined immutable
766 - added test for this (thanks to Caelum)
768 * Moose::Meta::Role::Application::ToInstance
769 - now uses the metaclass of the instance
770 (if possible) to create the anon-class
771 (thanks Jonathan Rockway)
773 * Moose::Cookbook::Recipe22
774 - added the meta-attribute trait recipe
778 - fixed hash-ordering test bug that was
779 causing occasional cpantester failures
780 - renamed the t/000_recipe/*.t tests to be
781 more descriptive (thanks to Sartak)
783 0.44 Sat. May 10, 2008
785 - made make_immutable warning cluck to
786 show where the error is (thanks mst)
789 - BUILDALL and DEMOLISHALL now call
790 ->body when looping through the
791 methods, to avoid the overloaded
793 - fixed issue where DEMOLISHALL was
794 eating the $@ values, and so not
795 working correctly, it still kind of
796 eats them, but so does vanilla perl
797 - added tests for this
799 * Moose::Cookbook::Recipe7
800 - added new recipe for immutable
801 functionality (thanks Dave Rolsky)
803 * Moose::Cookbook::Recipe9
804 - added new recipe for builder and
805 lazy_build (thanks Dave Rolsky)
807 * Moose::Cookbook::Recipe11
808 - added new recipe for method aliasing
809 and exclusion with Roles (thanks Dave Rolsky)
812 - fixed Win32 test failure (thanks spicyjack)
814 ~ removed Build.PL and Module::Build compat
815 since Module::Install has done that.
817 0.43 Wed. April, 30, 2008
819 drink more coffee before
820 doing release engineering
822 - whoops, forgot to do the smolder tests,
823 and we broke some of the custom meta-attr
824 modules. This fixes that.
826 0.42 Mon. April 28, 2008
827 - some bad tests slipped by, nothing else
828 changed in this release (cpantesters++)
830 - upped the Class::MOP dependency to 0.55
831 since we have tests which need the C3
834 0.41 Mon. April 28, 2008
835 ~~ numerous documentation updates ~~
837 - Changed all usage of die to Carp::croak for better
838 error reporting (initial patch by Tod Hagan)
841 - the make_immutable keyword is now deprecated, don't
842 use it in any new code and please fix your old code
843 as well. There will be 2 releases, and then it will
849 - refactored the way inner and super work to avoid
850 any method/@ISA cache penalty (nothingmuch)
853 - fixing &new_object to make sure trigger gets the
854 coerced value (spotted by Charles Alderman on the
856 - added test for this
858 * Moose::Meta::Method::Constructor
859 - immutable classes which had non-lazy attributes were calling
860 the default generating sub twice in the constructor. (bug
861 found by Jesse Luehrs, fixed by Dave Rolsky)
862 - added tests for this (Dave Rolsky)
863 - fix typo in initialize_body method (nothingmuch)
865 * Moose::Meta::Method::Destructor
866 - fix typo in initialize_body method (nothingmuch)
868 * Moose::Meta::Method::Overriden
869 Moose::Meta::Method::Augmented
870 - moved the logic for these into their own
871 classes (nothingmuch)
873 * Moose::Meta::Attribute
874 - inherited attributes may now be extended without
875 restriction on the type ('isa', 'does') (Sartak)
876 - added tests for this (Sartak)
877 - when an attribute property is malformed (such as lazy without
878 a default), give the name of the attribute in the error
880 - added the &applied_traits and &has_applied_traits methods
881 to allow introspection of traits
882 - added tests for this
883 - moved 'trait' and 'metaclass' argument handling to here from
885 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
886 '+foo' syntax) (nothingmuch)
887 - added tests for this (t0m)
890 - localize $@ inside DEMOLISHALL to avoid it
891 eating $@ (found by Ernesto)
892 - added test for this (thanks to Ernesto)
894 * Moose::Util::TypeConstraints
895 - &find_type_constraint now DWIMs when given an
896 type constraint object or name (nothingmuch)
897 - &find_or_create_type_constraint superseded with a number of more
899 - find_or_create_{isa,does}_type_constraint
900 - find_or_parse_type_constraint
902 * Moose::Meta::TypeConstraint
903 Moose::Meta::TypeConstraint::Class
904 Moose::Meta::TypeConstraint::Role
905 Moose::Meta::TypeConstraint::Enum
906 Moose::Meta::TypeConstraint::Union
907 Moose::Meta::TypeConstraint::Parameterized
908 - added the &equals method for comparing two type
909 constraints (nothingmuch)
910 - added tests for this (nothingmuch)
912 * Moose::Meta::TypeConstraint
913 - add the &parents method, which is just an alias to &parent.
914 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
916 * Moose::Meta::TypeConstraint::Class
917 - added the class attribute for introspection purposes
919 - added tests for this
921 * Moose::Meta::TypeConstraint::Enum
922 Moose::Meta::TypeConstraint::Role
923 - broke these out into their own classes (nothingmuch)
925 * Moose::Cookbook::Recipe*
926 - fixed references to test file locations in the POD
927 and updated up some text for new Moose features
931 - Added &resolve_metaclass_alias, a helper function for finding an actual
932 class for a short name (e.g. in the traits list)
934 0.40 Fri. March 14, 2008
935 - I hate Pod::Coverage
937 0.39 Fri. March 14, 2008
939 - documenting the use of '+name' with attributes
940 that come from recently composed roles. It makes
941 sense, people are using it, and so why not just
942 officially support it.
943 - fixing the 'extends' keyword so that it will not
944 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
947 - added the perl -Moose=+Class::Name feature to allow
948 monkeypatching of classes in one liners
951 - fixing the 'apply_all_roles' keyword so that it will not
952 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
955 - added ->create method which now supports roles (thanks to jrockway)
956 - added tests for this
957 - added ->create_anon_class which now supports roles and caching of
958 the results (thanks to jrockway)
959 - added tests for this
960 - made ->does_role a little more forgiving when it is
961 checking a Class::MOP era metaclasses.
963 * Moose::Meta::Role::Application::ToInstance
964 - it is now possible to pass extra params to be used when
965 a role is applied to an the instance (rebless_params)
966 - added tests for this
968 * Moose::Util::TypeConstraints
969 - class_type now accepts an optional second argument for a
970 custom message. POD anotated accordingly (groditi)
971 - added tests for this
972 - it is now possible to make anon-enums by passing 'enum' an
973 ARRAY ref instead of the $name => @values. Everything else
975 - added tests for this
978 - making test for using '+name' on attributes consumed
979 from a role, it works and makes sense too.
981 * Moose::Meta::Attribute
982 - fix handles so that it doesn't return nothing
983 when the method cannot be found, not sure why
984 it ever did this originally, this means we now
985 have slightly better support for AUTOLOADed
987 - added more delegation tests
988 - adding ->does method to this so as to better
989 support traits and their introspection.
990 - added tests for this
993 - localizing the Data::Dumper configurations so
994 that it does not pollute others (RT #33509)
995 - made ->does a little more forgiving when it is
996 passed Class::MOP era metaclasses.
998 0.38 Fri. Feb. 15, 2008
999 * Moose::Meta::Attribute
1000 - fixed initializer to correctly do
1001 type checking and coercion in the
1003 - added tests for this
1006 - fixed some finicky tests (thanks to konobi)
1008 0.37 Thurs. Feb. 14, 2008
1010 - fixed some details in Moose::init_meta
1011 and its superclass handling (thanks thepler)
1012 - added tests for this (thanks thepler)
1013 - 'has' now dies if you don't pass in name
1015 - added the 'make_immutable' keyword as a shortcut
1018 * Moose::Meta::Class
1019 Moose::Meta::Method::Constructor
1020 Moose::Meta::Attribute
1021 - making (init_arg => undef) work here too
1022 (thanks to nothingmuch)
1024 * Moose::Meta::Attribute
1025 Moose::Meta::Method::Constructor
1026 Moose::Meta::Method::Accessor
1027 - make lazy attributes respect attr initializers (rjbs)
1028 - added tests for this
1030 * Moose::Util::TypeConstraints
1031 Moose::Util::TypeConstraints::OptimizedConstraints
1032 Moose::Meta::TypeConstraints
1033 Moose::Meta::Attribute
1034 Moose::Meta::Method::Constructor
1035 Moose::Meta::Method::Accessor
1036 - making type errors use the
1037 assigned message (thanks to Sartak)
1038 - added tests for this
1040 * Moose::Meta::Method::Destructor
1041 - making sure DESTROY gets inlined properly
1042 with successive DEMOLISH calls (thanks to manito)
1044 * Moose::Meta::Attribute
1045 Moose::Meta::Method::Accessor
1046 - fixed handling of undef with type constraints
1048 - added tests for this
1051 - added &get_all_init_args and &get_all_attribute_values
1052 (thanks to Sartak and nothingmuch)
1054 0.36 Sat. Jan. 26, 2008
1056 Moose::Meta::Attribute
1057 - role type tests now support when roles are
1058 applied to non-Moose classes (found by ash)
1059 - added tests for this (thanks to ash)
1060 - couple extra tests to boost code coverage
1062 * Moose::Meta::Method::Constructor
1063 - improved fix for handling Class::MOP attributes
1064 - added test for this
1066 * Moose::Meta::Class
1067 - handled the add_attribute($attribute_meta_object)
1069 - added test for this
1071 0.35 Tues. Jan. 22, 2008
1072 * Moose::Meta::Method::Constructor
1073 - fix to make sure even Class::MOP attributes
1074 are handled correctly (Thanks to Dave Rolsky)
1075 - added test for this (also Dave Rolsky)
1077 * Moose::Meta::Class
1078 - improved error message on _apply_all_roles,
1079 you should now use Moose::Util::apply_all_roles
1080 and you shouldnt have been using a _ prefixed
1081 method in the first place ;)
1083 0.34 Mon. Jan. 21, 2008
1084 ~~~ more misc. doc. fixes ~~~
1085 ~~ updated copyright dates ~~
1087 Moose is now a postmodern object system :)
1088 - (see the POD for details)
1090 * <<Role System Refactoring>>
1091 - this release contains a major reworking and
1092 cleanup of the role system
1093 - 100% backwards compat.
1094 - Role application now restructured into seperate
1095 classes based on type of applicants
1096 - Role summation (combining of more than one role)
1097 is much cleaner and anon-classes are no longer
1098 used in this process
1099 - new Composite role metaclass
1100 - runtime application of roles to instances
1101 is now more efficient and re-uses generated
1102 classes when applicable
1104 * <<New Role composition features>>
1105 - methods can now be excluded from a given role
1107 - methods can now be aliased to another name (and
1108 still retain the original as well)
1110 * Moose::Util::TypeConstraints::OptimizedConstraints
1111 - added this module (see above)
1113 * Moose::Meta::Class
1114 - fixed the &_process_attribute method to be called
1115 by &add_attribute, so that the API is now correct
1117 * Moose::Meta::Method::Accessor
1118 - fixed bug when passing a list of values to
1119 an accessor would get (incorrectly) ignored.
1120 Thanks to Sartak for finding this ;)
1121 - added tests for this (Sartak again)
1123 * Moose::Meta::Method::Accessor
1124 Moose::Meta::Method::Constructor
1125 Moose::Meta::Attribute
1126 Moose::Meta::TypeConstraint
1127 Moose::Meta::TypeCoercion
1128 - lots of cleanup of such things as:
1130 - type constraint handling
1131 - error handling/messages
1132 (thanks to nothingmuch)
1134 * Moose::Meta::TypeConstraint::Parameterizable
1135 - added this module to support the refactor
1136 in Moose::Meta::TypeConstraint::Parameterized
1138 * Moose::Meta::TypeConstraint::Parameterized
1139 - refactored how these types are handled so they
1140 are more generic and not confined to ArrayRef
1144 - shortened some file names for better VMS support (RT #32381)
1146 0.33 Fri. Dec. 14, 2007
1147 !! Moose now loads 2 x faster !!
1148 !! with new Class::MOP 0.49 !!
1150 ++ new oose.pm module to make command line
1151 Moose-ness easier (see POD docs for more)
1153 * Moose::Meta::Class
1155 - several tweaks to take advantage of the
1156 new method map caching in Class::MOP
1158 * Moose::Meta::TypeConstraint::Parameterized
1159 - allow subtypes of ArrayRef and HashRef to
1160 be used as a container (sartak)
1161 - added tests for this
1162 - basic support for coercion to ArrayRef and
1163 HashRef for containers (sartak)
1164 - added tests for this
1166 * Moose::Meta::TypeCoercion
1167 - coercions will now create subtypes as needed
1168 so you can now add coercions to parameterized
1169 types without having to explictly define them
1170 - added tests for this
1172 * Moose::Meta::Method::Accessor
1173 - allow subclasses to decide whether we need
1174 to copy the value into a new variable (sartak)
1176 0.32 Tues. Dec. 4, 2007
1177 * Moose::Util::TypeConstraints
1178 - fixing how subtype aliases of unions work
1179 they should inherit the parent's coercion
1180 - added tests for this
1181 - you can now define multiple coercions on
1182 a single type at different times instead of
1183 having to do it all in one place
1184 - added tests for this
1186 * Moose::Meta::TypeConstraint
1187 - there is now a default constraint of sub { 1 }
1188 instead of Moose::Util::TypeConstraints setting
1191 * Moose::Meta::TypeCoercion
1192 * Moose::Meta::TypeCoercion::Union
1193 - added the &has_coercion_for_type and
1194 &add_type_coercions methods to support the
1195 new features above (although you cannot add
1196 more type coercions for Union types)
1198 0.31 Mon. Nov. 26, 2007
1199 * Moose::Meta::Attribute
1200 - made the +attr syntax handle extending types with
1201 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1202 now works if the original foo is an ArrayRef.
1203 - added tests for this.
1204 - delegation now works even if the attribute does not
1205 have a reader method using the get_read_method_ref
1206 method from Class::MOP::Attribute.
1207 - added tests for this
1208 - added docs for this
1210 * Moose::Util::TypeConstraints
1211 - passing no "additional attribute info" to
1212 &find_or_create_type_constraint will no longer
1213 attempt to create an __ANON__ type for you,
1214 instead it will just return undef.
1215 - added docs for this
1217 0.30 Fri. Nov. 23, 2007
1218 * Moose::Meta::Method::Constructor
1219 -builder related bug in inlined constructor. (groditi)
1221 * Moose::Meta::Method::Accessor
1222 - genereate unnecessary calls to predicates and refactor
1223 code generation for runtime speed (groditi)
1225 * Moose::Util::TypeConstraints
1226 - fix ClassName constraint to introspect symbol table (mst)
1227 - added more tests for this (mst)
1228 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1229 with work correctly.
1230 - added tests for this
1233 - adding the link to Recipie 11 (written by Sartak)
1234 - adding test for SYNOPSIS code
1237 - New tests for builder bug. Upon instantiation, if an
1238 attribute had a builder, no value and was not lazy the
1239 builder default was not getting run, oops. (groditi)
1241 0.29 Tues. Nov. 13, 2007
1242 * Moose::Meta::Attribute
1243 - Fix error message on missing builder method (groditi)
1245 * Moose::Meta::Method::Accessor
1246 - Fix error message on missing builder method (groditi)
1249 - Add test to check for the correct error message when
1250 builder method is missing (groditi)
1252 0.28 Tues. Nov. 13, 2007
1253 - 0.27 packaged incorrectly (groditi)
1255 0.27 Tues. Nov. 13, 2007
1256 * Moose::Meta::Attribute
1257 - Added support for the new builder option (groditi)
1258 - Added support for lazy_build option (groditi)
1259 - Changed slot initialization for predicate changes (groditi)
1261 * Moose::Meta::Method::Accessor
1262 - Added support for lazy_build option (groditi)
1263 - Fix inline methods to work with corrected predicate
1266 * Moose::Meta::Method::Constructor
1267 - Added support for lazy_build option (groditi)
1270 - tests for builder and lazy_build (groditi)
1272 * fixing some misc. bits in the docs that
1273 got mentioned on CPAN Forum & perlmonks
1276 - fixed how required methods are handled
1277 when they encounter overriden or modified
1278 methods from a class (thanks to confound).
1279 - added tests for this
1281 * Moose::Util::TypeConstraint
1282 - fixed the type notation parser so that
1283 the | always creates a union and so is
1284 no longer a valid type char (thanks to
1285 konobi, mugwump and #moose for working
1287 - added more tests for this
1289 0.26 Thurs. Sept. 27, 2007
1292 * Parameterized Types
1293 We now support parameterized collection types, such as:
1294 ArrayRef[Int] # array or integers
1295 HashRef[Object] # a hash with object values
1296 They can also be nested:
1297 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1298 And work with the type unions as well:
1299 ArrayRef[Int | Str] # array of integers of strings
1301 * Better Framework Extendability
1302 Moose.pm is now "extendable" such that it is now much
1303 easier to extend the framework and add your own keywords
1304 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1305 section of the Moose.pm docs.
1308 In an effort to begin documenting some of the various
1309 details of Moose as well as some common idioms, we have
1310 created Moose::Cookbook::Snacks as a place to find
1311 small (easily digestable) nuggets of Moose code.
1314 ~ Several doc updates/cleanup thanks to castaway ~
1316 - converted build system to use Module::Install instead of
1317 Module::Build (thanks to jrockway)
1320 - added all the meta classes to the immutable list and
1321 set it to inline the accessors
1322 - fix import to allow Sub::Exporter like { into => }
1323 and { into_level => } (perigrin)
1324 - exposed and documented init_meta() to allow better
1325 embedding and extending of Moose (perigrin)
1328 - complete re-organization of the test suite
1329 - added some new tests as well
1330 - finally re-enabled the Moose::POOP test since
1331 the new version of DBM::Deep now works again
1334 * Moose::Meta::Class
1335 - fixed very odd and very nasty recursion bug with
1337 - added tests for this (eilara)
1339 * Moose::Meta::Attribute
1340 Moose::Meta::Method::Constructor
1341 Moose::Meta::Method::Accessor
1342 - fixed issue with overload::Overloaded getting called
1343 on non-blessed items. (RT #29269)
1344 - added tests for this
1346 * Moose::Meta::Method::Accessor
1347 - fixed issue with generated accessor code making
1348 assumptions about hash based classes (thanks to dexter)
1350 * Moose::Coookbook::Snacks
1351 - these are bits of documentation, not quite as big as
1352 Recipes but which have no clear place in the module docs.
1353 So they are Snacks! (horray for castaway++)
1355 * Moose::Cookbook::Recipe4
1356 - updated it to use the new ArrayRef[MyType] construct
1357 - updated the accompanying test as well
1359 +++ Major Refactor of the Type Constraint system +++
1360 +++ with new features added as well +++
1362 * Moose::Util::TypeConstraint
1363 - no longer uses package variable to keep track of
1364 the type constraints, now uses the an instance of
1365 Moose::Meta::TypeConstraint::Registry to do it
1366 - added more sophisticated type notation parsing
1368 - added tests for this
1370 * Moose::Meta::TypeConstraint
1371 - some minor adjustments to make subclassing easier
1372 - added the package_defined_in attribute so that we
1373 can track where the type constraints are created
1375 * Moose::Meta::TypeConstraint::Union
1376 - this is now been refactored to be a subclass of
1377 Moose::Meta::TypeConstraint
1379 * Moose::Meta::TypeCoercion::Union
1380 - this has been added to service the newly refactored
1381 Moose::Meta::TypeConstraint::Union and is itself
1382 a subclass of Moose::Meta::TypeCoercion
1384 * Moose::Meta::TypeConstraint::Parameterized
1385 - added this module (taken from MooseX::AttributeHelpers)
1386 to help construct nested collection types
1387 - added tests for this
1389 * Moose::Meta::TypeConstraint::Registry
1390 - added this class to keep track of type constraints
1392 0.25 Mon. Aug. 13, 2007
1394 - Documentation update to reference Moose::Util::TypeConstraints
1395 under 'isa' in 'has' for how to define a new type
1396 (thanks to shlomif).
1398 * Moose::Meta::Attribute
1399 - required attributes now will no longer accept undef
1400 from the constructor, even if there is a default and lazy
1401 - added tests for this
1402 - default subroutines must return a value which passes the
1404 - added tests for this
1406 * Moose::Meta::Attribute
1407 * Moose::Meta::Method::Constructor
1408 * Moose::Meta::Method::Accessor
1409 - type-constraint tests now handle overloaded objects correctly
1410 in the error message
1411 - added tests for this (thanks to EvanCarroll)
1413 * Moose::Meta::TypeConstraint::Union
1414 - added (has_)hand_optimized_constraint to this class so that
1415 it behaves as the regular Moose::Meta::TypeConstraint does.
1418 - large refactoring of this code
1419 - added several more tests
1420 - tests for subtle conflict resolition issues
1421 added, but not currently running
1424 * Moose::Cookbook::Recipe7
1425 - added new recipe for augment/inner functionality
1427 - added test for this
1430 - a formal definition of roles (still in progress)
1433 - utilities for easier working with Moose classes
1434 - added tests for these
1437 - This contains Moose specific test functions
1438 - added tests for these
1440 0.24 Tues. July 3, 2007
1441 ~ Some doc updates/cleanup ~
1443 * Moose::Meta::Attribute
1444 - added support for roles to be given as parameters
1445 to the 'handles' option.
1446 - added tests and docs for this
1447 - the has '+foo' attribute form now accepts changes to
1448 the lazy option, and the addition of a handles option
1449 (but not changing the handles option)
1450 - added tests and docs for this
1453 - required methods are now fetched using find_method_by_name
1454 so that required methods can come from superclasses
1455 - adjusted tests for this
1457 0.23 Mon. June 18, 2007
1458 * Moose::Meta::Method::Constructor
1459 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1460 * Moose::Meta::Class
1461 - Modify make_immutable to work with the new Class::MOP immutable
1462 mechanism + POD + very basic test (groditi)
1463 * Moose::Meta::Attribute
1464 - Fix handles to use goto() so that caller() comes out properly on
1465 the other side (perigrin)
1467 0.22 Thurs. May 31, 2007
1468 * Moose::Util::TypeConstraints
1469 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1470 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1471 prototypes for functions
1472 - added the ClassName type constraint, this checks for strings
1473 which will respond true to ->isa(UNIVERSAL).
1474 - added tests and docs for this
1475 - subtyping just in name now works correctly by making the
1476 default for where be { 1 }
1477 - added test for this
1479 * Moose::Meta::Method::Accessor
1480 - coerce and lazy now work together correctly, thanks to
1481 merlyn for finding this bug
1482 - tests added for this
1483 - fix reader presedence bug in Moose::Meta::Attribute + tests
1486 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1487 a HASH-ref and missed. This produces better error messages then
1488 having it die cause undef is not a HASH.
1489 - added tests for this
1491 0.21 Thursday, May 2nd, 2007
1493 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1494 - modified unimport to remove super and inner along with the rest
1495 - altered unimport tests to handle this
1498 - altered super export to populate SUPER_SLOT
1500 * Moose::Meta::Class
1501 - altered augment and override modifier application to use *_SLOT
1502 - modified tests for these to unimport one test class each to test
1505 - fixed issue where custom attribute metaclasses
1506 where not handled correctly in roles
1507 - added tests for this
1509 * Moose::Meta::Class
1510 - fixed issue where extending metaclasses with
1511 roles would blow up. Thanks to Aankhen`` for
1512 finding this insidious error, and it's solution.
1514 ~~ lots of spelling and grammer fixes in the docs,
1515 many many thanks to rlb3 and Aankhen for these :)
1517 0.20 Friday, April 6th, 2007
1518 >> I messed up the SKIP logic in one test
1519 so this release is just to fix that.
1522 - 'has' now also accepts an ARRAY ref
1523 to create multiple attrs (see docs)
1524 (thanks to konobi for this)
1525 - added tests and docs
1527 0.19 Thurs. April 5th, 2007
1528 ~~ More documentation updates ~~
1530 * Moose::Util::TypeConstraints
1531 - 'type' now supports messages as well
1532 thanks to phaylon for finding this
1533 - added tests for this
1534 - added &list_all_type_constraints and
1535 &list_all_builtin_type_constraints
1536 functions to facilitate introspection.
1538 * Moose::Meta::Attribute
1539 - fixed regexp 'handles' declarations
1540 to build the list of delegated methods
1541 correctly (and not override important
1542 things like &new) thanks to ashleyb
1544 - added tests and docs for this
1545 - added the 'documentation' attributes
1546 so that you can actually document your
1547 attributes and inspect them through the
1549 - added tests and docs for this
1551 * Moose::Meta::Class
1552 - when loading custom attribute metaclasses
1553 it will first look in for the class in the
1554 Moose::Meta::Attribute::Custom::$name, and
1555 then default to just loading $name.
1556 - added tests and docs for this
1558 * Moose::Meta::TypeConstraint
1559 - type constraints now stringify to their names.
1560 - added test for this
1563 - added tests to assure we work with Module::Refresh
1564 - added stricter test skip logic in the Moose POOP
1565 test, ask Rob Kinyon why.
1566 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1568 0.18 Sat. March 10, 2007
1569 ~~ Many, many documentation updates ~~
1572 - We now use Class::MOP::load_class to
1574 - added tests to show types and subtypes
1575 working with Declare::Constraints::Simple
1576 and Test::Deep as constraint engines.
1579 !! You must have Class::MOP 0.37_001 !!
1580 !! for this developer release to work !!
1582 This release was primarily adding the immutable
1583 feature to Moose. An immutable class is one which
1584 you promise not to alter. When you set the class
1585 as immutable it will perform various bits of
1586 memoization and inline certain part of the code
1587 (constructors, destructors and accessors). This
1588 minimizes (and in some cases totally eliminates)
1589 one of Moose's biggest performance hits. This
1590 feature is not on by default, and is 100% optional.
1591 It has several configurable bits as well, so you
1592 can pick and choose to your specific needs.
1594 The changes involved in this were fairly wide and
1595 highly specific, but 100% backwards compatible, so
1596 I am not going to enumerate them here. If you are
1597 truely interested in what was changed, please do
1600 0.17 Tues. Nov. 14, 2006
1601 * Moose::Meta::Method::Accessor
1602 - bugfix for read-only accessors which
1603 are have a type constraint and lazy.
1604 Thanks to chansen for finding it.
1606 0.16 Tues. Nov. 14, 2006
1608 There are some speed improvements in this release,
1609 but they are only the begining, so stay tuned.
1612 - BUILDALL and DEMOLISHALL no longer get
1613 called unless they actually need to be.
1614 This gave us a signifigant speed boost
1615 for the cases when there is no BUILD or
1616 DEMOLISH method present.
1618 * Moose::Util::TypeConstraints
1619 * Moose::Meta::TypeConstraint
1620 - added an 'optimize_as' option to the
1621 type constraint, which allows for a
1622 hand optimized version of the type
1623 constraint to be used when possible.
1624 - Any internally created type constraints
1625 now provide an optimized version as well.
1627 0.15 Sun. Nov. 5, 2006
1629 This version of Moose *must* have Class::MOP 0.36 in order
1630 to work correctly. A number of small internal tweaks have
1631 been made in order to be compatible with that release.
1633 * Moose::Util::TypeConstraints
1634 - added &unimport so that you can clean out
1635 your class namespace of these exported
1638 * Moose::Meta::Class
1639 - fixed minor issue which occasionally
1640 comes up during global destruction
1642 - moved Moose::Meta::Method::Overriden into
1646 - moved Moose::Meta::Role::Method into
1649 * Moose::Meta::Attribute
1650 - changed how we do type checks so that
1651 we reduce the overall cost, but still
1654 - moved accessor generation methods to
1655 Moose::Meta::Method::Accessor to
1656 conform to the API changes from
1659 * Moose::Meta::TypeConstraint
1660 - changed how constraints are compiled
1661 so that we do less recursion and more
1662 iteration. This makes the type check
1664 - moved Moose::Meta::TypeConstraint::Union
1667 * Moose::Meta::Method::Accessor
1668 - created this from methods formerly found in
1669 Moose::Meta::Attribute
1671 * Moose::Meta::Role::Method
1672 - moved this from Moose::Meta::Role
1674 * Moose::Meta::Method::Overriden
1675 - moved this from Moose::Meta::Class
1677 * Moose::Meta::TypeConstraint::Union
1678 - moved this from Moose::Meta::TypeConstraint
1680 0.14 Mon. Oct. 9, 2006
1682 * Moose::Meta::Attribute
1683 - fixed lazy attributes which were not getting
1684 checked with the type constraint (thanks ashley)
1685 - added tests for this
1686 - removed the over-enthusiastic DWIMery of the
1687 automatic ArrayRef and HashRef defaults, it
1688 broke predicates in an ugly way.
1689 - removed tests for this
1691 0.13 Sat. Sept. 30, 2006
1693 This version of Moose *must* have Class::MOP 0.35 in order
1694 to work correctly. A number of small internal tweaks have
1695 been made in order to be compatible with that release.
1698 - Removed the use of UNIVERSAL::require to be a better
1699 symbol table citizen and remove a dependency
1700 (thanks Adam Kennedy)
1702 **~~ removed experimental & undocumented feature ~~**
1703 - commented out the 'method' and 'self' keywords, see the
1704 comments for more info.
1707 - added a FAQ and WTF files to document frequently
1708 asked questions and common problems
1710 * Moose::Util::TypeConstraints
1711 - added GlobRef and FileHandle type constraint
1712 - added tests for this
1714 * Moose::Meta::Attribute
1715 - if your attribute 'isa' ArrayRef of HashRef, and you have
1716 not explicitly set a default, then make the default DWIM.
1717 This will also work for subtypes of ArrayRef and HashRef
1719 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1720 - new test added for this (thanks to ashley)
1723 - added basic support for runtime role composition
1724 but this is still *highly experimental*, so feedback
1725 is much appreciated :)
1726 - added tests for this
1728 * Moose::Meta::TypeConstraint
1729 - the type constraint now handles the coercion process
1730 through delegation, this is to support the coercion
1733 * Moose::Meta::TypeConstraint::Union
1734 - it is now possible for coercions to be performed
1736 - added tests for this (thanks to konobi)
1738 * Moose::Meta::TypeCoercion
1739 - properly capturing error when type constraint
1743 - Scalar::Util 1.18 is bad on Win32, so temporarily
1744 only require version 1.17 for Win32 and cygwin.
1745 (thanks Adam Kennedy)
1747 0.12 Sat. Sept. 1, 2006
1749 - Recipe5 (subtypes & coercion) has been written
1752 - fixed "bad meta" error message to be more descriptive
1753 - fixed &unimport to not remove the &inner and &super
1754 keywords because we need to localize them.
1755 - fixed number of spelling/grammer issues, thanks Theory :)
1757 **~~ experimental & undocumented feature ~~**
1758 - added the method and self keywords, they are basically
1759 just sugar, and they may not stay around.
1762 - added &dump method to easily Data::Dumper
1765 * Moose::Meta::TypeConstraint
1766 - added the &is_a_type_of method to check both the current
1767 and the subtype of a method (similar to &isa with classes)
1770 - this is now a subclass of Class::MOP::Module, and no longer
1771 creates the _role_meta ugliness of before.
1772 - fixed tests to reflect this change
1774 0.11 Wed. July 12, 2006
1776 - added an &unimport method to remove all the keywords
1777 that Moose will import, simply add 'no Moose' to the
1778 bottom of your class file.
1781 - fixed some test failures caused by a forgotten test
1784 0.10 Thurs. July 6, 2006
1786 - improved error message when loading modules so
1787 it is less confusing when you load a role.
1788 - added &calculate_all_roles method to
1789 Moose::Meta::Class and Moose::Meta::Role
1792 This module has been tested against Class::MOP 0.30
1793 but it does not yet utilize the optimizations
1794 it makes available. Stay tuned for that ;)
1796 0.09_03 Fri. June 23, 2006
1797 ++ DEVELOPER RELEASE ++
1799 - 'use strict' and 'use warnings' are no longer
1800 needed in Moose classes, Moose itself will
1801 turn them on for you.
1802 - added tests for this
1803 - moved code from exported subs to private methods
1804 in Moose::Meta::Class
1807 - as with Moose, strict and warnings are
1808 automatically turned on for you.
1809 - added tests for this
1812 - now handles an edge case for override errors
1813 - added tests for this
1814 - added some more edge case tests
1816 0.09_02 Tues. May 16, 2006
1817 ++ DEVELOPER RELEASE ++
1819 - added prototypes to the exported subs
1823 - added prototypes to the exported subs
1826 * Moose::Util::TypeConstraints
1827 - cleaned up prototypes for the subs
1830 0.09_01 Fri. May 12, 2006
1831 ++ DEVELOPER RELEASE ++
1832 - This release works in combination with
1833 Class::MOP 0.29_01, it is a developer
1834 release because it uses the a new
1835 instance sub-protocol and a fairly
1836 complete Role implementation. It has
1837 not yet been optimized, so it slower
1838 the the previous CPAN version. This
1839 release also lacks good updated docs,
1840 the official release will have updated docs.
1843 - refactored the keyword exports
1844 - 'with' now checks Role validaity and
1845 accepts more than one Role at a time
1846 - 'extends' makes metaclass adjustments as
1847 needed to ensure metaclass compatibility
1850 - refactored the keyword exports
1851 - 'with' now checks Role validaity and
1852 accepts more than one Role at a time
1854 * Moose::Util::TypeConstraints
1855 - added the 'enum' keyword for simple
1856 string enumerations which can be used as
1858 - see example of usage in t/202_example.t
1861 - more careful checking of params to new()
1864 - much work done on the role composition
1865 - many new tests for conflict detection
1866 and composition edge cases
1867 - not enough documentation, I suggest
1868 looking at the tests
1870 * Moose::Meta::Instance
1871 - added new Instance metaclass to support
1872 the new Class::MOP instance protocol
1874 * Moose::Meta::Class
1875 - some small changes to support the new
1877 - some small additions to support Roles
1879 * Moose::Meta::Attribute
1880 - some improvements to the accessor generation code
1882 - some small changes to support the new
1884 - (still somewhat) experimental delegation support
1885 with the 'handles' option
1886 - added several tests for this
1887 - no docs for this yet
1889 0.05 Thurs. April 27, 2006
1891 - keywords are now exported with Sub::Exporter
1892 thanks to chansen for this commit
1893 - has keyword now takes a 'metaclass' option
1894 to support custom attribute meta-classes
1895 on a per-attribute basis
1896 - added tests for this
1897 - the 'has' keyword not accepts inherited slot
1898 specifications (has '+foo'). This is still an
1899 experimental feature and probably not finished
1900 see t/038_attribute_inherited_slot_specs.t for
1901 more details, or ask about it on #moose
1902 - added tests for this
1905 - keywords are now exported with Sub::Exporter
1907 * Moose::Utils::TypeConstraints
1908 - reorganized the type constraint hierarchy, thanks
1909 to nothingmuch and chansen for his help and advice
1911 - added some tests for this
1912 - keywords are now exported with Sub::Exporter
1913 thanks to chansen for this commit
1915 * Moose::Meta::Class
1916 - due to changes in Class::MOP, we had to change
1917 construct_instance (for the better)
1919 * Moose::Meta::Attribute
1920 - due to changes in Class::MOP, we had to add the
1921 initialize_instance_slot method (it's a good thing)
1923 * Moose::Meta::TypeConstraint
1924 - added type constraint unions
1925 - added tests for this
1926 - added the is_subtype_of predicate method
1927 - added tests for this
1929 0.04 Sun. April 16th, 2006
1931 - Roles can now consume other roles
1932 - added tests for this
1933 - Roles can specify required methods now with
1934 the requires() keyword
1935 - added tests for this
1938 - ripped out much of it's guts ,.. much cleaner now
1939 - added required methods and correct handling of
1940 them in apply() for both classes and roles
1941 - added tests for this
1942 - no longer adds a does() method to consuming classes
1943 it relys on the one in Moose::Object
1944 - added roles attribute and some methods to support
1945 roles consuming roles
1947 * Moose::Meta::Attribute
1948 - added support for triggers on attributes
1949 - added tests for this
1950 - added support for does option on an attribute
1951 - added tests for this
1953 * Moose::Meta::Class
1954 - added support for attribute triggers in the
1956 - added tests for this
1959 - Moose no longer creates a subtype for your class
1960 if a subtype of the same name already exists, this
1961 should DWIM in 99.9999% of all cases
1963 * Moose::Util::TypeConstraints
1964 - fixed bug where incorrect subtype conflicts were
1966 - added test for this
1969 - this class can now be extended with 'use base' if
1970 you need it, it properly loads the metaclass class now
1971 - added test for this
1973 0.03_02 Wed. April 12, 2006
1975 - you must now explictly use Moose::Util::TypeConstraints
1976 it no longer gets exported for you automatically
1979 - new() now accepts hash-refs as well as key/value lists
1980 - added does() method to check for Roles
1981 - added tests for this
1983 * Moose::Meta::Class
1984 - added roles attribute along with the add_role() and
1986 - added tests for this
1989 - now adds a does() method to consuming classes
1990 which tests the class's hierarchy for roles
1991 - added tests for this
1993 0.03_01 Mon. April 10, 2006
1995 - added new Role recipe (no content yet, only code)
1998 - added 'with' keyword for Role support
1999 - added test and docs for this
2000 - fixed subtype quoting bug
2001 - added test for this
2005 - added test and docs
2007 * Moose::Util::TypeConstraints
2008 - added the message keyword to add custom
2009 error messages to type constraints
2012 - the meta role to support Moose::Role
2013 - added tests and docs
2015 * Moose::Meta::Class
2016 - moved a number of things from Moose.pm
2017 to here, they should have been here
2020 * Moose::Meta::Attribute
2021 - moved the attribute option macros here
2022 instead of putting them in Moose.pm
2024 * Moose::Meta::TypeConstraint
2025 - added the message attributes and the
2027 - added tests and docs for this
2029 0.03 Thurs. March 30, 2006
2031 - added the Moose::Cookbook with 5 recipes,
2032 describing all the stuff Moose can do.
2035 - fixed an issue with &extends super class loading
2036 it now captures errors and deals with inline
2037 packages correctly (bug found by mst, solution
2039 - added super/override & inner/augment features
2040 - added tests and docs for these
2043 - BUILDALL now takes a reference of the %params
2044 that are passed to &new, and passes that to
2047 * Moose::Util::TypeConstraints
2048 - Type constraints now survive runtime reloading
2049 - added test for this
2051 * Moose::Meta::Class
2052 - fixed the way attribute defaults are handled
2053 during instance construction (bug found by chansen)
2055 * Moose::Meta::Attribute
2056 - read-only attributes now actually enforce their
2057 read-only-ness (this corrected in Class::MOP as
2060 0.02 Tues. March 21, 2006
2062 - many more tests, fixing some bugs and
2064 - &extends now loads the base module with
2066 - added UNIVERSAL::require to the
2069 - each new Moose class will also create
2070 and register a subtype of Object which
2071 correspond to the new Moose class.
2072 - the 'isa' option in &has now only
2073 accepts strings, and will DWIM in
2076 * Moose::Util::TypeConstraints
2077 - added type coercion features
2078 - added tests for this
2079 - added support for this in attributes
2080 and instance construction
2082 - type construction no longer creates a
2083 function, it registers the type instead.
2084 - added several functions to get the
2088 - BUILDALL and DEMOLISHALL were broken
2089 because of a mis-named hash key, Whoops :)
2091 * Moose::Meta::Attribute
2092 - adding support for coercion in the
2093 autogenerated accessors
2095 * Moose::Meta::Class
2096 - adding support for coercion in the
2097 instance construction
2099 * Moose::Meta::TypeConstraint
2100 * Moose::Meta::TypeCoercion
2101 - type constraints and coercions are now
2102 full fledges meta-objects
2104 0.01 Wed. March 15, 2006
2105 - Moooooooooooooooooose!!!