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 * Moose::Util::TypeConstraints
9 - If you created a subtype and passed a parent that Moose didn't
10 know about, it simply ignored the parent. Now it automatically
11 creates the parent as a class type. This may not be what you
12 want, but is less broken than before. (Dave Rolsky)
14 * Moose::Util::TypeConstraints
15 - This module tried throw errors by calling Moose->throw_error,
16 but it did not ensure that Moose was loaded first. This could
17 cause very unhelpful errors when it tried to throw an error
18 before Moose was loaded. (Dave Rolsky)
20 * Moose::Util::TypeConstraints
21 - You could declare a name with subtype such as "Foo!Bar" that
22 would be allowed, but if you used it in a parameterized type
23 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
24 vetting on names created via the sugar functions, so that they
25 can only contain alphanumerics, ":", and ".".
27 0.65 Thu, January 22, 2008
28 * Moose and Moose::Meta::Method::Overridden
29 - If an overridden method called super(), and then the
30 superclass's method (not overridden) _also_ called super(),
31 Moose went into an endless recursion loop. Test provided by
32 Chris Prather. (Dave Rolsky)
34 * Moose::Meta::TypeConstraint
35 - All methods are now documented. (gphat)
37 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
38 - Fixed some bogus failures that occurred because we tried to
39 validate filesystem paths in a very ad-hoc and
40 not-quite-correct way. (Dave Rolsky)
42 * Moose::Util::TypeConstraints
43 - Added maybe_type to exports. See docs for details. (rjbs)
46 - Added Moose::Util::TypeConstraints to the SEE ALSO
50 - Methods created via an attribute can now fulfill a "requires"
51 declaration for a role. (nothingmuch)
53 * Moose::Meta::Method::*
54 - Stack traces from inlined code will now report its line and
55 file as being in your class, as opposed to in Moose
58 0.64 Wed, December 31, 2008
59 * Moose::Meta::Method::Accessor
60 - Always inline predicate and clearer methods (Sartak)
62 * Moose::Meta::Attribute
63 - Support for parameterized traits (Sartak)
64 - verify_against_type_constraint method to avoid duplication
65 and enhance extensibility (Sartak)
68 - Tests (but no support yet) for parameterized traits (Sartak)
71 - Require Class::MOP 0.75+, which has the side effect of making
72 sure we work on Win32. (Dave Rolsky)
74 0.63 Mon, December 8, 2008
76 - Some small grammar tweaks and bug fixes in non-Moose example
79 0.62_02 Fri, December 5, 2008
80 * Moose::Meta::Role::Application::ToClass
81 - When a class does not provide all of a role's required
82 methods, the error thrown now mentions all of the missing
83 methods, as opposed to just the first one found. Requested by
84 Curtis Poe (RT #41119). (Dave Rolsky)
86 * Moose::Meta::Method::Constructor
87 - Moose will no longer inline a constructor for your class
88 unless it inherits its constructor from Moose::Object, and
89 will warn when it doesn't inline. If you want to force
90 inlining anyway, pass "replace_constructor => 1" to
91 make_immutable. Addresses RT #40968, reported by Jon
93 - The quoting of default values could be broken if the default
94 contained a single quote ('). Now we use quotemeta to escape
95 anything potentially dangerous in the defaults. (Dave Rolsky)
97 0.62_01 Wed, December 3, 2008
99 - use the method->execute API for BUILDALL
100 and DEMOLISHALL (Sartak)
102 * Moose::Util::TypeConstraints
103 - We now make all the type constraint meta classes immutable
104 before creating the default types provided by Moose. This
105 should make loading Moose a little faster. (Dave Rolsky)
107 0.62 Wed November 26, 2008
108 * Moose::Meta::Role::Application::ToClass
109 Moose::Meta::Role::Application::ToRole
110 - fixed issues where excluding and aliasing the
111 same methods for a single role did not work
112 right (worked just fine with multiple
114 - added test for this (stevan)
116 * Moose::Meta::Role::Application::RoleSummation
117 - fixed the error message when trying to compose
118 a role with a role it excludes (Sartak)
121 - Catch another case where recursion caused the value
122 of $CALLER to be stamped on (t0m)
123 - added test for this (t0m)
126 - Remove the make_immutable keyword, which has been
127 deprecated since April. It breaks metaclasses that
128 use Moose without no Moose (Sartak)
130 * Moose::Meta::Attribute
131 - Removing an attribute from a class now also removes delegation
132 (handles) methods installed for that attribute (t0m)
133 - added test for this (t0m)
135 * Moose::Meta::Method::Constructor
136 - An attribute with a default that looked like a number (but was
137 really a string) would accidentally be treated as a number
138 when the constructor was made immutable (perigrin)
139 - added test for this (perigrin)
142 - create method for constructing a role
144 - added test for this (Sartak)
145 - anonymous roles! (Sartak)
146 - added test for this (Sartak)
149 - more consistent error messages (Sartak)
151 * Moose::Cookbook::Roles::Recipe1
152 - attempt to explain why a role that just requires
153 methods is useful (Sartak)
155 0.61 Fri November 7, 2008
156 * Moose::Meta::Attribute
157 - When passing a role to handles, it will be loaded if necessary
161 - Method objects returned by get_method (and other methods)
162 Could end up being returned without an associated_metaclass
163 attribute. Removing get_method_map, which is provided by
164 Class::MOP::Class, fixed this. The Moose version did nothing
165 different from its parent except introduce a bug. (Dave Rolsky)
166 - added tests for this (jdv79)
169 - Added a $VERSION to all .pm files which didn't have one. Fixes
170 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
172 * Moose::Cookbook::Basics::Recipe4
173 * Moose::Cookbook::Basics::Recipe6
174 - These files had spaces on the first line of the SYNOPSIS, as
175 opposed to a totally empty line. According to RT #40432, this
176 confuses POD parsers. (Dave Rolsky)
178 0.60 Fri October 24, 2008
180 - Passing "-traits" when loading Moose caused the Moose.pm
181 exports to be broken. Reported by t0m. (Dave Rolsky)
182 - Tests for this bug. (t0m)
185 - Change resolve_metaclass alias to use the new
186 load_first_existing_class function. This makes it a lot
187 simpler, and also around 5 times faster. (t0m)
188 - Add caching to resolve_metaclass_alias, which gives an order
189 of magnitude speedup to things which repeatedly call the
190 Moose::Meta::Attribute->does method, notably MooseX::Storage
193 * Moose::Util::TypeConstraint
194 - Put back the changes for parameterized constraints that
195 shouldn't have been removed in 0.59. We still cannot parse
196 them, but MooseX modules can create them in some other
197 way. See the 0.58 changes for more details. (jnapiorkowski)
198 - Changed the way subtypes are created so that the job is
199 delegated to a type constraint parent. This clears up some
200 hardcoded checking and should allow correct subtypes of
201 Moose::Meta::Type::Constraint. Don't rely on this new API too
202 much (create_child_type) because it may go away in the
203 future. (jnapiorkowski)
205 * Moose::Meta::TypeConstraint::Union
206 - Type constraint names are sorted as strings, not numbers.
209 * Moose::Meta::TypeConstraint::Parameterizable
210 - New parameterize method. This can be used as a factory method
211 to make a new type constraint with a given parameterized
212 type. (jnapiorkowski)
213 - added tests (jnapiorkowski)
215 0.59 Tue October 14, 2008
217 - Add abridged documentation for builder/default/initializer/
218 predicate, and link to more details sections in
219 Class::MOP::Attribute. (t0m)
221 * Moose::Util::TypeConstraints
222 - removed prototypes from all but the &-based stuff (mst)
224 * Moose::Util::TypeConstraints
225 - Creating a anonymous subtype with both a constraint and a
226 message failed with a very unhelpful error, but should just
227 work. Reported by t0m. (Dave Rolsky)
230 - Some tests that used Test::Warn if it was available failed
231 with older versions of Test::Warn. Reported by Fayland. (Dave
233 - Test firing behavior of triggers in relation to builder/default/
235 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
236 kinds of supported type. (t0m)
239 - In create(), do not pass "roles" option to the superclass
240 - added related test that creates an anon metaclass with
243 * Moose::Meta::TypeConstraint::Class
244 * Moose::Meta::TypeConstraint::Role
245 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
246 other types (as per change in 0.55_02). (t0m)
248 * Moose::Meta::TypeConstraint::Registry
249 - Fix warning when dealing with unknown type names (t0m)
251 * Moose::Util::TypeConstraints
252 - Reverted changes from 0.58 related to handle parameterized
253 types. This caused random failures on BSD and Win32 systems,
254 apparently related to the regex engine. This means that Moose
255 can no longer parse structured type constraints like
256 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
257 supported in a slightly different way via MooseX::Types some
258 time in the future. (Dave Rolsky)
260 0.58 Sat September 20, 2008
261 !! This release has an incompatible change regarding !!
262 !! how roles add methods to a class !!
264 * Roles and role application
265 ! Roles now add methods by calling add_method, not
266 alias_method. They make sure to always provide a method
267 object, which will be cloned internally. This means that it is
268 now possible to track the source of a method provided by a
269 role, and even follow its history through intermediate roles.
271 This means that methods added by a role now show up when
272 looking at a class's method list/map. (Dave Rolsky)
275 - From this release on, we'll try to maintain a list of
276 conflicting modules, and warn you if you have one
277 installed. For example, this release conflicts with ...
278 - MooseX::Singleton <= 0.11
279 - MooseX::Params::Validate <= 0.05
282 In general, we try to not break backwards compatibility for
283 most Moose users, but MooseX modules and other code which
284 extends Moose's metaclasses is often affected by very small
285 changes in the Moose internals.
287 * Moose::Meta::Method::Delegation
288 * Moose::Meta::Attribute
289 - Delegation methods now have their own method class. (Dave
292 * Moose::Meta::TypeConstraint::Parameterizable
293 - Added a new method 'parameterize' which is basically a factory
294 for the containing constraint. This makes it easier to create
295 new types of parameterized constraints. (jnapiorkowski)
297 * Moose::Meta::TypeConstraint::Union
298 - Changed the way Union types canonicalize their names to follow
299 the normalized TC naming rules, which means we strip all
300 whitespace. (jnapiorkowski)
302 * Moose::Util::TypeConstraints
303 - Parameter and Union args are now sorted, this makes Int|Str
304 the same constraint as Str|Int. (jnapiorkowski)
305 - Changes to the way Union types are parsed to more correctly
306 stringify their names. (jnapiorkowski)
307 - When creating a parameterized type, we now use the new
308 parameterize method. (jnapiorkowski)
309 - Incoming type constraint strings are now normalized to remove
310 all whitespace differences. (jnapiorkowski)
311 - Changed the way we parse type constraint strings so that we now
312 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
313 constraints. This lays the foundation for more flexible type
314 constraint implementations.
316 * Tests and docs for all the above. (jnapiorkowski)
320 - Moose::Exporter will no longer remove a subroutine that the
321 exporting package re-exports. Moose re-exports the
322 Carp::confess function, among others. The reasoning is that we
323 cannot know whether you have also explicitly imported those
324 functions for your own use, so we err on the safe side and
325 always keep them. (Dave Rolsky)
326 - added tests for this (rafl)
329 - Changes to how we fix metaclass compatibility that are much
330 too complicated to go into. The summary is that Moose is much
331 less likely to complain about metaclass incompatibility
332 now. In particular, if two metaclasses differ because
333 Moose::Util::MetaRole was used on the two corresponding
334 classes, then the difference in roles is reconciled for the
335 subclass's metaclass. (Dave Rolsky)
336 - Squashed an warning in _process_attribute (thepler)
339 - throw exceptions (sooner) for invalid attribute names (thepler)
340 - added tests for this (thepler)
342 * Moose::Util::MetaRole
343 - If you explicitly set a constructor or destructor class for a
344 metaclass object, and then applied roles to the metaclass,
345 that explicitly set class would be lost and replaced with the
349 * Moose::Meta::Attribute
350 * Moose::Meta::Method
353 * Moose::Error::Default
354 * Moose::Error::Croak
355 * Moose::Error::Confess
356 - All instances of confess() changed to use overridable
357 C<throw_error> method. This method ultimately calls a class
358 constructor, and you can change the class being called. In
359 addition, errors now pass more information than just a string.
360 The default C<error_class> behaves like C<Carp::confess>, so
361 the behavior is not visibly different for end users.
363 0.57 Wed September 3, 2008
365 - A new bit of doc intended to introduce folks familiar with
366 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
369 - Shows examples of two classes, each done first with and then
370 without Moose. This makes a nice parallel to
371 Moose::Intro. (Dave Rolsky)
373 * Moose::Util::TypeConstraints
374 - Fixed a bug in find_or_parse_type_constraint so that it
375 accepts a Moose::Meta::TypeConstraint object as the parent
376 type, not just a name (jnapiorkowski)
377 - added tests (jnapiorkowski)
380 - If Sub::Name was not present, unimporting failed to actually
381 remove some sugar subs, causing test failures (Dave Rolsky)
383 0.56 Mon September 1, 2008
384 For those not following the series of dev releases, there are
385 several major changes in this release of Moose.
386 ! Moose::init_meta should now be called as a method. See the
389 - Major performance improvements by nothingmuch.
391 - New modules for extension writers, Moose::Exporter and
392 Moose::Util::MetaRole by Dave Rolsky.
394 - Lots of doc improvements and additions, especially in the
399 * Removed all references to the experimental-but-no-longer-needed
400 Moose::Meta::Role::Application::ToMetaclassInstance.
402 * Require Class::MOP 0.65.
404 0.55_04 Sat August 30, 2008
405 * Moose::Util::MetaRole
406 * Moose::Cookbook::Extending::Recipe2
407 - This simplifies the application of roles to any meta class, as
408 well as the base object class. Reimplemented metaclass traits
409 using this module. (Dave Rolsky)
411 * Moose::Cookbook::Extending::Recipe1
412 - This a new recipe, an overview of various ways to write Moose
413 extensions (Dave Rolsky)
415 * Moose::Cookbook::Extending::Recipe3
416 * Moose::Cookbook::Extending::Recipe4
417 - These used to be Extending::Recipe1 and Extending::Recipe2,
420 0.55_03 Fri August 29, 2008
421 * No changes from 0.55_02 except increasing the Class::MOP
422 dependency to 0.64_07.
424 0.55_02 Fri August 29, 2008
425 * Makefile.PL and Moose.pm
426 - explicitly require Perl 5.8.0+ (Dave Rolsky)
428 * Moose::Util::TypeConstraints
429 - Fix warnings from find_type_constraint if the type is not
432 * Moose::Meta::TypeConstraint
433 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
434 return false if the type you specify cannot be found in the
435 type registry, rather than throwing an unhelpful and
436 coincidental exception. (t0m).
437 - added docs & test for this (t0m)
439 * Moose::Meta::TypeConstraint::Registry
440 - add_type_constraint now throws an exception if a parameter is
442 - added docs & test for this (t0m)
444 * Moose::Cookbook::FAQ
445 - Added a faq entry on the difference between "role" and "trait"
449 - Fixed a bug that caused role composition to not see a required
450 method when that method was provided by another role being
451 composed at the same time. (Dave Rolsky)
452 - test and bug finding (tokuhirom)
454 0.55_01 Wed August 20, 2008
456 !! Calling Moose::init_meta as a function is now !!
457 !! deprecated. Please see the Moose.pm docs for details. !!
459 * Moose::Meta::Method::Constructor
460 - Fix inlined constructor so that values produced by default
461 or builder methods are coerced as required. (t0m)
462 - added test for this (t0m)
464 * Moose::Meta::Attribute
465 - A lazy attribute with a default or builder did not attempt to
466 coerce the default value. The immutable code _did_
468 - added test for this (t0m)
471 - This is a new helper module for writing "Moose-alike"
472 modules. This should make the lives of MooseX module authors
473 much easier. (Dave Rolsky)
476 * Moose::Cookbook::Meta::Recipe5
477 - Implemented metaclass traits (and wrote a recipe for it):
479 use Moose -traits => 'Foo'
481 This should make writing small Moose extensions a little
484 * Moose::Cookbook::Basics::Recipe1
485 - Removed any examples of direct hashref access, and applied an
486 editorial axe to reduce verbosity. (Dave Rolsky)
488 * Moose::Cookbook::Basics::Recipe1
489 - Also applied an editorial axe here. (Dave Rolsky)
492 * Moose::Cookbook::Extending::Recipe1
493 * Moose::Cookbook::Extending::Recipe2
494 - Rewrote extending and embedding moose documentation and
495 recipes to use Moose::Exporter (Dave Rolsky)
499 - These two modules now warn when you load them from the main
500 package "main" package, because we will not export sugar to
501 main. Previously it just did nothing. (Dave Rolsky)
504 - Now provide an init_meta method just like Moose.pm, and you
505 can call this to provide an alternate role metaclass. (Dave
506 Rolsky and nothingmuch)
507 - get_method_map now respects the package cache flag (nothingmuch)
510 - Two new methods - add_method and wrap_method_body
514 - Optimizations including allowing constructors to accept hash
515 refs, making many more classes immutable, and making
516 constructors immutable. (nothingmuch)
518 0.55 Sun August 3, 2008
519 * Moose::Meta::Attribute
520 - breaking down the way 'handles' methods are
521 created so that the process can be more easily
522 overridden by subclasses (stevan)
524 * Moose::Meta::TypeConstraint
525 - fixing what is passed into a ->message with
526 the type constraints (RT #37569)
527 - added tests for this (Charles Alderman)
529 * Moose::Util::TypeConstraints
530 - fix coerce to accept anon types like subtype can (mst)
533 - reorganized the recipes into sections - Basics, Roles, Meta,
534 Extending - and wrote abstracts for each section (Dave Rolsky)
536 * Moose::Cookbook::Basics::Recipe10
537 - A new recipe that demonstrates operator overloading
538 in combination with Moose. (bluefeet)
540 * Moose::Cookbook::Meta::Recipe1
541 - an introduction to what meta is and why you'd want to make
542 your own metaclass extensions (Dave Rolsky)
544 * Moose::Cookbook::Meta::Recipe4
545 - a very simple metaclass example (Dave Rolsky)
547 * Moose::Cookbook::Extending::Recipe1
548 - how to write a Moose-alike module to use your own object base
551 * Moose::Cookbook::Extending::Recipe2
552 - how to write modules with an API just like C<Moose.pm> (Dave
556 - Tons of fixes, both syntactical and grammatical (Dave
557 Rolsky, Paul Fenwick)
559 0.54 Thurs. July 3, 2008
560 ... this is not my day today ...
562 * Moose::Meta::Attribute
563 - fixed legal_options_for_inheritance such that
564 clone_and_inherit options still works for
565 Class::MOP::Attribute objects and therefore
566 does not break MooseX::AttributeHelpers
569 0.53 Thurs. July 3, 2008
570 * Whoops, I guess I should run 'make manifest' before
571 actually releasing the module. No actual changes
572 in this release, except the fact that it includes
573 the changes that I didn't include in the last
576 0.52 Thurs. July 3, 2008
578 - added "FEATURE REQUESTS" section to the Moose docs
579 to properly direct people (stevan) (RT #34333)
580 - making 'extends' croak if it is passed a Role since
581 this is not ever something you want to do
582 (fixed by stevan, found by obra)
583 - added tests for this (stevan)
586 - adding support for DOES (as in UNIVERSAL::DOES)
588 - added test for this
590 * Moose::Meta::Attribute
591 - added legal_options_for_inheritance (wreis)
592 - added tests for this (wreis)
594 * Moose::Cookbook::Snacks::*
595 - removed some of the unfinished snacks that should
596 not have been released yet. Added some more examples
597 to the 'Keywords' snack. (stevan)
599 * Moose::Cookbook::Style
600 - added general Moose "style guide" of sorts to the
601 cookbook (nothingmuch) (RT #34335)
604 - added more BUILDARGS tests (stevan)
606 0.51 Thurs. Jun 26, 2008
608 - add unimport so "no Moose::Role" actually does
611 * Moose::Meta::Role::Application::ToRole
612 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
613 order to provide its own implementation, that method still got
614 added to the list of required methods for consumers of
615 RoleB. Now an aliased method is only added to the list of
616 required methods if the role doing the aliasing does not
617 provide its own implementation. See Recipe 11 for an example
618 of all this. (Dave Rolsky)
619 - added tests for this
621 * Moose::Meta::Method::Constructor
622 - when a single argument that wasn't a hashref was provided to
623 an immutabilized constructor, the error message was very
624 unhelpful, as opposed to the non-immutable error. Reported by
626 - added test for this (Dave Rolsky)
628 * Moose::Meta::Attribute
629 - added support for meta_attr->does("ShortAlias") (sartak)
630 - added tests for this (sartak)
631 - moved the bulk of the `handles` handling to the new
632 install_delegation method (Stevan)
635 - Added BUILDARGS, a new step in new()
637 * Moose::Meta::Role::Application::RoleSummation
638 - fix typos no one ever sees (sartak)
640 * Moose::Util::TypeConstraints
641 * Moose::Meta::TypeConstraint
642 * Moose::Meta::TypeCoercion
643 - Attempt to work around the ??{ } vs. threads issue
645 - Some null_constraint optimizations
647 0.50 Thurs. Jun 11, 2008
648 - Fixed a version number issue by bumping all modules
651 0.49 Thurs. Jun 11, 2008
652 !! This version now approx. 20-25% !!
653 !! faster with new Class::MOP 0.59 !!
655 * Moose::Meta::Attribute
656 - fixed how the is => (ro|rw) works with
657 custom defined reader, writer and accessor
659 - added docs for this (TODO).
660 - added tests for this (Thanks to Penfold)
661 - added the custom attribute alias for regular
662 Moose attributes which is "Moose"
663 - fix builder and default both being used
668 Moose::Meta::Attribute
670 Moose::Meta::Role::Composite
671 Moose::Util::TypeConstraints
672 - switched usage of reftype to ref because
676 - changing add_package_symbol to use the new
680 - fixed how DEMOLISHALL is called so that it
681 can be overrided in subclasses (thanks to Sartak)
682 - added test for this (thanks to Sartak)
684 * Moose::Util::TypeConstraints
685 - move the ClassName type check code to
686 Class::MOP::is_class_loaded (thanks to Sartak)
688 * Moose::Cookbook::Recipe11
689 - add tests for this (thanks to tokuhirom)
691 0.48 Thurs. May 29, 2008
692 (early morning release engineering)--
694 - fixing the version in Moose::Meta::Method::Destructor
695 which was causing the indexer to choke
697 0.47 Thurs. May 29, 2008
698 (late night release engineering)--
700 - fixing the version is META.yml, no functional
701 changes in this release
703 0.46 Wed. May 28, 2008
704 !! This version now approx. 20-25% !!
705 !! faster with new Class::MOP 0.57 !!
708 - some optimizations of the &initialize method
709 since it is called so often by &meta
713 - now use the get_all_package_symbols from the
714 updated Class::MOP, test suite is now 10 seconds
717 * Moose::Meta::Method::Destructor
718 - is_needed can now also be called as a class
719 method for immutablization to check if the
720 destructor object even needs to be created
723 * Moose::Meta::Method::Destructor
724 Moose::Meta::Method::Constructor
725 - added more descriptive error message to help
726 keep people from wasting time tracking an error
727 that is easily fixed by upgrading.
729 0.45 Saturday, May 24, 2008
731 - Because of work in Class::MOP 0.57, all
732 XS based functionality is now optional
733 and a Pure Perl version is supplied
734 - the CLASS_MOP_NO_XS environment variable
735 can now be used to force non-XS versions
737 - several of the packages have been tweaked
738 to take care of this, mostly we added
739 support for the package_name and name
740 variables in all the Method metaclasses
741 - before/around/after method modifiers now
742 support regexp matching of names
743 (thanks to Takatoshi Kitano)
744 - tests added for this
745 - NOTE: this only works for classes, it
746 is currently not supported in roles,
747 but, ... patches welcome
748 - All usage of Carp::confess have been replaced
749 by Carp::croak in the "keyword" functions since
750 the stack trace is usually not helpful
753 - All usage of Carp::confess have been replaced
754 by Carp::croak in the "keyword" functions since
755 the stack trace is usually not helpful
756 - The 'has' keyword for roles now accepts the
757 same array ref form that Moose.pm does
758 (has [qw/foo bar/] => (is => 'rw', ...))
759 - added test for this
761 * Moose::Meta::Attribute
762 - trigger on a ro-attribute is no longer an
763 error, as it's useful to trigger off of the
767 - added same 'add_package_symbol' fix as in
771 - does_role now handles non-Moose classes
773 - added tests for this
774 - added the 'add_method_modifier' function
775 (thanks to Takatoshi Kitano)
777 * Moose::Util::TypeConstraints
778 - subtypes of parameterizable types now are
779 themselves parameterizable types
781 * Moose::Meta::Method::Constructor
782 - fixed bug where trigger was not being
783 called by the inlined immutable
785 - added test for this (thanks to Caelum)
787 * Moose::Meta::Role::Application::ToInstance
788 - now uses the metaclass of the instance
789 (if possible) to create the anon-class
790 (thanks Jonathan Rockway)
792 * Moose::Cookbook::Recipe22
793 - added the meta-attribute trait recipe
797 - fixed hash-ordering test bug that was
798 causing occasional cpantester failures
799 - renamed the t/000_recipe/*.t tests to be
800 more descriptive (thanks to Sartak)
802 0.44 Sat. May 10, 2008
804 - made make_immutable warning cluck to
805 show where the error is (thanks mst)
808 - BUILDALL and DEMOLISHALL now call
809 ->body when looping through the
810 methods, to avoid the overloaded
812 - fixed issue where DEMOLISHALL was
813 eating the $@ values, and so not
814 working correctly, it still kind of
815 eats them, but so does vanilla perl
816 - added tests for this
818 * Moose::Cookbook::Recipe7
819 - added new recipe for immutable
820 functionality (thanks Dave Rolsky)
822 * Moose::Cookbook::Recipe9
823 - added new recipe for builder and
824 lazy_build (thanks Dave Rolsky)
826 * Moose::Cookbook::Recipe11
827 - added new recipe for method aliasing
828 and exclusion with Roles (thanks Dave Rolsky)
831 - fixed Win32 test failure (thanks spicyjack)
833 ~ removed Build.PL and Module::Build compat
834 since Module::Install has done that.
836 0.43 Wed. April, 30, 2008
838 drink more coffee before
839 doing release engineering
841 - whoops, forgot to do the smolder tests,
842 and we broke some of the custom meta-attr
843 modules. This fixes that.
845 0.42 Mon. April 28, 2008
846 - some bad tests slipped by, nothing else
847 changed in this release (cpantesters++)
849 - upped the Class::MOP dependency to 0.55
850 since we have tests which need the C3
853 0.41 Mon. April 28, 2008
854 ~~ numerous documentation updates ~~
856 - Changed all usage of die to Carp::croak for better
857 error reporting (initial patch by Tod Hagan)
860 - the make_immutable keyword is now deprecated, don't
861 use it in any new code and please fix your old code
862 as well. There will be 2 releases, and then it will
868 - refactored the way inner and super work to avoid
869 any method/@ISA cache penalty (nothingmuch)
872 - fixing &new_object to make sure trigger gets the
873 coerced value (spotted by Charles Alderman on the
875 - added test for this
877 * Moose::Meta::Method::Constructor
878 - immutable classes which had non-lazy attributes were calling
879 the default generating sub twice in the constructor. (bug
880 found by Jesse Luehrs, fixed by Dave Rolsky)
881 - added tests for this (Dave Rolsky)
882 - fix typo in initialize_body method (nothingmuch)
884 * Moose::Meta::Method::Destructor
885 - fix typo in initialize_body method (nothingmuch)
887 * Moose::Meta::Method::Overriden
888 Moose::Meta::Method::Augmented
889 - moved the logic for these into their own
890 classes (nothingmuch)
892 * Moose::Meta::Attribute
893 - inherited attributes may now be extended without
894 restriction on the type ('isa', 'does') (Sartak)
895 - added tests for this (Sartak)
896 - when an attribute property is malformed (such as lazy without
897 a default), give the name of the attribute in the error
899 - added the &applied_traits and &has_applied_traits methods
900 to allow introspection of traits
901 - added tests for this
902 - moved 'trait' and 'metaclass' argument handling to here from
904 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
905 '+foo' syntax) (nothingmuch)
906 - added tests for this (t0m)
909 - localize $@ inside DEMOLISHALL to avoid it
910 eating $@ (found by Ernesto)
911 - added test for this (thanks to Ernesto)
913 * Moose::Util::TypeConstraints
914 - &find_type_constraint now DWIMs when given an
915 type constraint object or name (nothingmuch)
916 - &find_or_create_type_constraint superseded with a number of more
918 - find_or_create_{isa,does}_type_constraint
919 - find_or_parse_type_constraint
921 * Moose::Meta::TypeConstraint
922 Moose::Meta::TypeConstraint::Class
923 Moose::Meta::TypeConstraint::Role
924 Moose::Meta::TypeConstraint::Enum
925 Moose::Meta::TypeConstraint::Union
926 Moose::Meta::TypeConstraint::Parameterized
927 - added the &equals method for comparing two type
928 constraints (nothingmuch)
929 - added tests for this (nothingmuch)
931 * Moose::Meta::TypeConstraint
932 - add the &parents method, which is just an alias to &parent.
933 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
935 * Moose::Meta::TypeConstraint::Class
936 - added the class attribute for introspection purposes
938 - added tests for this
940 * Moose::Meta::TypeConstraint::Enum
941 Moose::Meta::TypeConstraint::Role
942 - broke these out into their own classes (nothingmuch)
944 * Moose::Cookbook::Recipe*
945 - fixed references to test file locations in the POD
946 and updated up some text for new Moose features
950 - Added &resolve_metaclass_alias, a helper function for finding an actual
951 class for a short name (e.g. in the traits list)
953 0.40 Fri. March 14, 2008
954 - I hate Pod::Coverage
956 0.39 Fri. March 14, 2008
958 - documenting the use of '+name' with attributes
959 that come from recently composed roles. It makes
960 sense, people are using it, and so why not just
961 officially support it.
962 - fixing the 'extends' keyword so that it will not
963 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
966 - added the perl -Moose=+Class::Name feature to allow
967 monkeypatching of classes in one liners
970 - fixing the 'apply_all_roles' keyword so that it will not
971 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
974 - added ->create method which now supports roles (thanks to jrockway)
975 - added tests for this
976 - added ->create_anon_class which now supports roles and caching of
977 the results (thanks to jrockway)
978 - added tests for this
979 - made ->does_role a little more forgiving when it is
980 checking a Class::MOP era metaclasses.
982 * Moose::Meta::Role::Application::ToInstance
983 - it is now possible to pass extra params to be used when
984 a role is applied to an the instance (rebless_params)
985 - added tests for this
987 * Moose::Util::TypeConstraints
988 - class_type now accepts an optional second argument for a
989 custom message. POD anotated accordingly (groditi)
990 - added tests for this
991 - it is now possible to make anon-enums by passing 'enum' an
992 ARRAY ref instead of the $name => @values. Everything else
994 - added tests for this
997 - making test for using '+name' on attributes consumed
998 from a role, it works and makes sense too.
1000 * Moose::Meta::Attribute
1001 - fix handles so that it doesn't return nothing
1002 when the method cannot be found, not sure why
1003 it ever did this originally, this means we now
1004 have slightly better support for AUTOLOADed
1006 - added more delegation tests
1007 - adding ->does method to this so as to better
1008 support traits and their introspection.
1009 - added tests for this
1012 - localizing the Data::Dumper configurations so
1013 that it does not pollute others (RT #33509)
1014 - made ->does a little more forgiving when it is
1015 passed Class::MOP era metaclasses.
1017 0.38 Fri. Feb. 15, 2008
1018 * Moose::Meta::Attribute
1019 - fixed initializer to correctly do
1020 type checking and coercion in the
1022 - added tests for this
1025 - fixed some finicky tests (thanks to konobi)
1027 0.37 Thurs. Feb. 14, 2008
1029 - fixed some details in Moose::init_meta
1030 and its superclass handling (thanks thepler)
1031 - added tests for this (thanks thepler)
1032 - 'has' now dies if you don't pass in name
1034 - added the 'make_immutable' keyword as a shortcut
1037 * Moose::Meta::Class
1038 Moose::Meta::Method::Constructor
1039 Moose::Meta::Attribute
1040 - making (init_arg => undef) work here too
1041 (thanks to nothingmuch)
1043 * Moose::Meta::Attribute
1044 Moose::Meta::Method::Constructor
1045 Moose::Meta::Method::Accessor
1046 - make lazy attributes respect attr initializers (rjbs)
1047 - added tests for this
1049 * Moose::Util::TypeConstraints
1050 Moose::Util::TypeConstraints::OptimizedConstraints
1051 Moose::Meta::TypeConstraints
1052 Moose::Meta::Attribute
1053 Moose::Meta::Method::Constructor
1054 Moose::Meta::Method::Accessor
1055 - making type errors use the
1056 assigned message (thanks to Sartak)
1057 - added tests for this
1059 * Moose::Meta::Method::Destructor
1060 - making sure DESTROY gets inlined properly
1061 with successive DEMOLISH calls (thanks to manito)
1063 * Moose::Meta::Attribute
1064 Moose::Meta::Method::Accessor
1065 - fixed handling of undef with type constraints
1067 - added tests for this
1070 - added &get_all_init_args and &get_all_attribute_values
1071 (thanks to Sartak and nothingmuch)
1073 0.36 Sat. Jan. 26, 2008
1075 Moose::Meta::Attribute
1076 - role type tests now support when roles are
1077 applied to non-Moose classes (found by ash)
1078 - added tests for this (thanks to ash)
1079 - couple extra tests to boost code coverage
1081 * Moose::Meta::Method::Constructor
1082 - improved fix for handling Class::MOP attributes
1083 - added test for this
1085 * Moose::Meta::Class
1086 - handled the add_attribute($attribute_meta_object)
1088 - added test for this
1090 0.35 Tues. Jan. 22, 2008
1091 * Moose::Meta::Method::Constructor
1092 - fix to make sure even Class::MOP attributes
1093 are handled correctly (Thanks to Dave Rolsky)
1094 - added test for this (also Dave Rolsky)
1096 * Moose::Meta::Class
1097 - improved error message on _apply_all_roles,
1098 you should now use Moose::Util::apply_all_roles
1099 and you shouldnt have been using a _ prefixed
1100 method in the first place ;)
1102 0.34 Mon. Jan. 21, 2008
1103 ~~~ more misc. doc. fixes ~~~
1104 ~~ updated copyright dates ~~
1106 Moose is now a postmodern object system :)
1107 - (see the POD for details)
1109 * <<Role System Refactoring>>
1110 - this release contains a major reworking and
1111 cleanup of the role system
1112 - 100% backwards compat.
1113 - Role application now restructured into seperate
1114 classes based on type of applicants
1115 - Role summation (combining of more than one role)
1116 is much cleaner and anon-classes are no longer
1117 used in this process
1118 - new Composite role metaclass
1119 - runtime application of roles to instances
1120 is now more efficient and re-uses generated
1121 classes when applicable
1123 * <<New Role composition features>>
1124 - methods can now be excluded from a given role
1126 - methods can now be aliased to another name (and
1127 still retain the original as well)
1129 * Moose::Util::TypeConstraints::OptimizedConstraints
1130 - added this module (see above)
1132 * Moose::Meta::Class
1133 - fixed the &_process_attribute method to be called
1134 by &add_attribute, so that the API is now correct
1136 * Moose::Meta::Method::Accessor
1137 - fixed bug when passing a list of values to
1138 an accessor would get (incorrectly) ignored.
1139 Thanks to Sartak for finding this ;)
1140 - added tests for this (Sartak again)
1142 * Moose::Meta::Method::Accessor
1143 Moose::Meta::Method::Constructor
1144 Moose::Meta::Attribute
1145 Moose::Meta::TypeConstraint
1146 Moose::Meta::TypeCoercion
1147 - lots of cleanup of such things as:
1149 - type constraint handling
1150 - error handling/messages
1151 (thanks to nothingmuch)
1153 * Moose::Meta::TypeConstraint::Parameterizable
1154 - added this module to support the refactor
1155 in Moose::Meta::TypeConstraint::Parameterized
1157 * Moose::Meta::TypeConstraint::Parameterized
1158 - refactored how these types are handled so they
1159 are more generic and not confined to ArrayRef
1163 - shortened some file names for better VMS support (RT #32381)
1165 0.33 Fri. Dec. 14, 2007
1166 !! Moose now loads 2 x faster !!
1167 !! with new Class::MOP 0.49 !!
1169 ++ new oose.pm module to make command line
1170 Moose-ness easier (see POD docs for more)
1172 * Moose::Meta::Class
1174 - several tweaks to take advantage of the
1175 new method map caching in Class::MOP
1177 * Moose::Meta::TypeConstraint::Parameterized
1178 - allow subtypes of ArrayRef and HashRef to
1179 be used as a container (sartak)
1180 - added tests for this
1181 - basic support for coercion to ArrayRef and
1182 HashRef for containers (sartak)
1183 - added tests for this
1185 * Moose::Meta::TypeCoercion
1186 - coercions will now create subtypes as needed
1187 so you can now add coercions to parameterized
1188 types without having to explictly define them
1189 - added tests for this
1191 * Moose::Meta::Method::Accessor
1192 - allow subclasses to decide whether we need
1193 to copy the value into a new variable (sartak)
1195 0.32 Tues. Dec. 4, 2007
1196 * Moose::Util::TypeConstraints
1197 - fixing how subtype aliases of unions work
1198 they should inherit the parent's coercion
1199 - added tests for this
1200 - you can now define multiple coercions on
1201 a single type at different times instead of
1202 having to do it all in one place
1203 - added tests for this
1205 * Moose::Meta::TypeConstraint
1206 - there is now a default constraint of sub { 1 }
1207 instead of Moose::Util::TypeConstraints setting
1210 * Moose::Meta::TypeCoercion
1211 * Moose::Meta::TypeCoercion::Union
1212 - added the &has_coercion_for_type and
1213 &add_type_coercions methods to support the
1214 new features above (although you cannot add
1215 more type coercions for Union types)
1217 0.31 Mon. Nov. 26, 2007
1218 * Moose::Meta::Attribute
1219 - made the +attr syntax handle extending types with
1220 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1221 now works if the original foo is an ArrayRef.
1222 - added tests for this.
1223 - delegation now works even if the attribute does not
1224 have a reader method using the get_read_method_ref
1225 method from Class::MOP::Attribute.
1226 - added tests for this
1227 - added docs for this
1229 * Moose::Util::TypeConstraints
1230 - passing no "additional attribute info" to
1231 &find_or_create_type_constraint will no longer
1232 attempt to create an __ANON__ type for you,
1233 instead it will just return undef.
1234 - added docs for this
1236 0.30 Fri. Nov. 23, 2007
1237 * Moose::Meta::Method::Constructor
1238 -builder related bug in inlined constructor. (groditi)
1240 * Moose::Meta::Method::Accessor
1241 - genereate unnecessary calls to predicates and refactor
1242 code generation for runtime speed (groditi)
1244 * Moose::Util::TypeConstraints
1245 - fix ClassName constraint to introspect symbol table (mst)
1246 - added more tests for this (mst)
1247 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1248 with work correctly.
1249 - added tests for this
1252 - adding the link to Recipie 11 (written by Sartak)
1253 - adding test for SYNOPSIS code
1256 - New tests for builder bug. Upon instantiation, if an
1257 attribute had a builder, no value and was not lazy the
1258 builder default was not getting run, oops. (groditi)
1260 0.29 Tues. Nov. 13, 2007
1261 * Moose::Meta::Attribute
1262 - Fix error message on missing builder method (groditi)
1264 * Moose::Meta::Method::Accessor
1265 - Fix error message on missing builder method (groditi)
1268 - Add test to check for the correct error message when
1269 builder method is missing (groditi)
1271 0.28 Tues. Nov. 13, 2007
1272 - 0.27 packaged incorrectly (groditi)
1274 0.27 Tues. Nov. 13, 2007
1275 * Moose::Meta::Attribute
1276 - Added support for the new builder option (groditi)
1277 - Added support for lazy_build option (groditi)
1278 - Changed slot initialization for predicate changes (groditi)
1280 * Moose::Meta::Method::Accessor
1281 - Added support for lazy_build option (groditi)
1282 - Fix inline methods to work with corrected predicate
1285 * Moose::Meta::Method::Constructor
1286 - Added support for lazy_build option (groditi)
1289 - tests for builder and lazy_build (groditi)
1291 * fixing some misc. bits in the docs that
1292 got mentioned on CPAN Forum & perlmonks
1295 - fixed how required methods are handled
1296 when they encounter overriden or modified
1297 methods from a class (thanks to confound).
1298 - added tests for this
1300 * Moose::Util::TypeConstraint
1301 - fixed the type notation parser so that
1302 the | always creates a union and so is
1303 no longer a valid type char (thanks to
1304 konobi, mugwump and #moose for working
1306 - added more tests for this
1308 0.26 Thurs. Sept. 27, 2007
1311 * Parameterized Types
1312 We now support parameterized collection types, such as:
1313 ArrayRef[Int] # array or integers
1314 HashRef[Object] # a hash with object values
1315 They can also be nested:
1316 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1317 And work with the type unions as well:
1318 ArrayRef[Int | Str] # array of integers of strings
1320 * Better Framework Extendability
1321 Moose.pm is now "extendable" such that it is now much
1322 easier to extend the framework and add your own keywords
1323 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1324 section of the Moose.pm docs.
1327 In an effort to begin documenting some of the various
1328 details of Moose as well as some common idioms, we have
1329 created Moose::Cookbook::Snacks as a place to find
1330 small (easily digestable) nuggets of Moose code.
1333 ~ Several doc updates/cleanup thanks to castaway ~
1335 - converted build system to use Module::Install instead of
1336 Module::Build (thanks to jrockway)
1339 - added all the meta classes to the immutable list and
1340 set it to inline the accessors
1341 - fix import to allow Sub::Exporter like { into => }
1342 and { into_level => } (perigrin)
1343 - exposed and documented init_meta() to allow better
1344 embedding and extending of Moose (perigrin)
1347 - complete re-organization of the test suite
1348 - added some new tests as well
1349 - finally re-enabled the Moose::POOP test since
1350 the new version of DBM::Deep now works again
1353 * Moose::Meta::Class
1354 - fixed very odd and very nasty recursion bug with
1356 - added tests for this (eilara)
1358 * Moose::Meta::Attribute
1359 Moose::Meta::Method::Constructor
1360 Moose::Meta::Method::Accessor
1361 - fixed issue with overload::Overloaded getting called
1362 on non-blessed items. (RT #29269)
1363 - added tests for this
1365 * Moose::Meta::Method::Accessor
1366 - fixed issue with generated accessor code making
1367 assumptions about hash based classes (thanks to dexter)
1369 * Moose::Coookbook::Snacks
1370 - these are bits of documentation, not quite as big as
1371 Recipes but which have no clear place in the module docs.
1372 So they are Snacks! (horray for castaway++)
1374 * Moose::Cookbook::Recipe4
1375 - updated it to use the new ArrayRef[MyType] construct
1376 - updated the accompanying test as well
1378 +++ Major Refactor of the Type Constraint system +++
1379 +++ with new features added as well +++
1381 * Moose::Util::TypeConstraint
1382 - no longer uses package variable to keep track of
1383 the type constraints, now uses the an instance of
1384 Moose::Meta::TypeConstraint::Registry to do it
1385 - added more sophisticated type notation parsing
1387 - added tests for this
1389 * Moose::Meta::TypeConstraint
1390 - some minor adjustments to make subclassing easier
1391 - added the package_defined_in attribute so that we
1392 can track where the type constraints are created
1394 * Moose::Meta::TypeConstraint::Union
1395 - this is now been refactored to be a subclass of
1396 Moose::Meta::TypeConstraint
1398 * Moose::Meta::TypeCoercion::Union
1399 - this has been added to service the newly refactored
1400 Moose::Meta::TypeConstraint::Union and is itself
1401 a subclass of Moose::Meta::TypeCoercion
1403 * Moose::Meta::TypeConstraint::Parameterized
1404 - added this module (taken from MooseX::AttributeHelpers)
1405 to help construct nested collection types
1406 - added tests for this
1408 * Moose::Meta::TypeConstraint::Registry
1409 - added this class to keep track of type constraints
1411 0.25 Mon. Aug. 13, 2007
1413 - Documentation update to reference Moose::Util::TypeConstraints
1414 under 'isa' in 'has' for how to define a new type
1415 (thanks to shlomif).
1417 * Moose::Meta::Attribute
1418 - required attributes now will no longer accept undef
1419 from the constructor, even if there is a default and lazy
1420 - added tests for this
1421 - default subroutines must return a value which passes the
1423 - added tests for this
1425 * Moose::Meta::Attribute
1426 * Moose::Meta::Method::Constructor
1427 * Moose::Meta::Method::Accessor
1428 - type-constraint tests now handle overloaded objects correctly
1429 in the error message
1430 - added tests for this (thanks to EvanCarroll)
1432 * Moose::Meta::TypeConstraint::Union
1433 - added (has_)hand_optimized_constraint to this class so that
1434 it behaves as the regular Moose::Meta::TypeConstraint does.
1437 - large refactoring of this code
1438 - added several more tests
1439 - tests for subtle conflict resolition issues
1440 added, but not currently running
1443 * Moose::Cookbook::Recipe7
1444 - added new recipe for augment/inner functionality
1446 - added test for this
1449 - a formal definition of roles (still in progress)
1452 - utilities for easier working with Moose classes
1453 - added tests for these
1456 - This contains Moose specific test functions
1457 - added tests for these
1459 0.24 Tues. July 3, 2007
1460 ~ Some doc updates/cleanup ~
1462 * Moose::Meta::Attribute
1463 - added support for roles to be given as parameters
1464 to the 'handles' option.
1465 - added tests and docs for this
1466 - the has '+foo' attribute form now accepts changes to
1467 the lazy option, and the addition of a handles option
1468 (but not changing the handles option)
1469 - added tests and docs for this
1472 - required methods are now fetched using find_method_by_name
1473 so that required methods can come from superclasses
1474 - adjusted tests for this
1476 0.23 Mon. June 18, 2007
1477 * Moose::Meta::Method::Constructor
1478 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1479 * Moose::Meta::Class
1480 - Modify make_immutable to work with the new Class::MOP immutable
1481 mechanism + POD + very basic test (groditi)
1482 * Moose::Meta::Attribute
1483 - Fix handles to use goto() so that caller() comes out properly on
1484 the other side (perigrin)
1486 0.22 Thurs. May 31, 2007
1487 * Moose::Util::TypeConstraints
1488 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1489 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1490 prototypes for functions
1491 - added the ClassName type constraint, this checks for strings
1492 which will respond true to ->isa(UNIVERSAL).
1493 - added tests and docs for this
1494 - subtyping just in name now works correctly by making the
1495 default for where be { 1 }
1496 - added test for this
1498 * Moose::Meta::Method::Accessor
1499 - coerce and lazy now work together correctly, thanks to
1500 merlyn for finding this bug
1501 - tests added for this
1502 - fix reader presedence bug in Moose::Meta::Attribute + tests
1505 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1506 a HASH-ref and missed. This produces better error messages then
1507 having it die cause undef is not a HASH.
1508 - added tests for this
1510 0.21 Thursday, May 2nd, 2007
1512 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1513 - modified unimport to remove super and inner along with the rest
1514 - altered unimport tests to handle this
1517 - altered super export to populate SUPER_SLOT
1519 * Moose::Meta::Class
1520 - altered augment and override modifier application to use *_SLOT
1521 - modified tests for these to unimport one test class each to test
1524 - fixed issue where custom attribute metaclasses
1525 where not handled correctly in roles
1526 - added tests for this
1528 * Moose::Meta::Class
1529 - fixed issue where extending metaclasses with
1530 roles would blow up. Thanks to Aankhen`` for
1531 finding this insidious error, and it's solution.
1533 ~~ lots of spelling and grammer fixes in the docs,
1534 many many thanks to rlb3 and Aankhen for these :)
1536 0.20 Friday, April 6th, 2007
1537 >> I messed up the SKIP logic in one test
1538 so this release is just to fix that.
1541 - 'has' now also accepts an ARRAY ref
1542 to create multiple attrs (see docs)
1543 (thanks to konobi for this)
1544 - added tests and docs
1546 0.19 Thurs. April 5th, 2007
1547 ~~ More documentation updates ~~
1549 * Moose::Util::TypeConstraints
1550 - 'type' now supports messages as well
1551 thanks to phaylon for finding this
1552 - added tests for this
1553 - added &list_all_type_constraints and
1554 &list_all_builtin_type_constraints
1555 functions to facilitate introspection.
1557 * Moose::Meta::Attribute
1558 - fixed regexp 'handles' declarations
1559 to build the list of delegated methods
1560 correctly (and not override important
1561 things like &new) thanks to ashleyb
1563 - added tests and docs for this
1564 - added the 'documentation' attributes
1565 so that you can actually document your
1566 attributes and inspect them through the
1568 - added tests and docs for this
1570 * Moose::Meta::Class
1571 - when loading custom attribute metaclasses
1572 it will first look in for the class in the
1573 Moose::Meta::Attribute::Custom::$name, and
1574 then default to just loading $name.
1575 - added tests and docs for this
1577 * Moose::Meta::TypeConstraint
1578 - type constraints now stringify to their names.
1579 - added test for this
1582 - added tests to assure we work with Module::Refresh
1583 - added stricter test skip logic in the Moose POOP
1584 test, ask Rob Kinyon why.
1585 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1587 0.18 Sat. March 10, 2007
1588 ~~ Many, many documentation updates ~~
1591 - We now use Class::MOP::load_class to
1593 - added tests to show types and subtypes
1594 working with Declare::Constraints::Simple
1595 and Test::Deep as constraint engines.
1598 !! You must have Class::MOP 0.37_001 !!
1599 !! for this developer release to work !!
1601 This release was primarily adding the immutable
1602 feature to Moose. An immutable class is one which
1603 you promise not to alter. When you set the class
1604 as immutable it will perform various bits of
1605 memoization and inline certain part of the code
1606 (constructors, destructors and accessors). This
1607 minimizes (and in some cases totally eliminates)
1608 one of Moose's biggest performance hits. This
1609 feature is not on by default, and is 100% optional.
1610 It has several configurable bits as well, so you
1611 can pick and choose to your specific needs.
1613 The changes involved in this were fairly wide and
1614 highly specific, but 100% backwards compatible, so
1615 I am not going to enumerate them here. If you are
1616 truely interested in what was changed, please do
1619 0.17 Tues. Nov. 14, 2006
1620 * Moose::Meta::Method::Accessor
1621 - bugfix for read-only accessors which
1622 are have a type constraint and lazy.
1623 Thanks to chansen for finding it.
1625 0.16 Tues. Nov. 14, 2006
1627 There are some speed improvements in this release,
1628 but they are only the begining, so stay tuned.
1631 - BUILDALL and DEMOLISHALL no longer get
1632 called unless they actually need to be.
1633 This gave us a signifigant speed boost
1634 for the cases when there is no BUILD or
1635 DEMOLISH method present.
1637 * Moose::Util::TypeConstraints
1638 * Moose::Meta::TypeConstraint
1639 - added an 'optimize_as' option to the
1640 type constraint, which allows for a
1641 hand optimized version of the type
1642 constraint to be used when possible.
1643 - Any internally created type constraints
1644 now provide an optimized version as well.
1646 0.15 Sun. Nov. 5, 2006
1648 This version of Moose *must* have Class::MOP 0.36 in order
1649 to work correctly. A number of small internal tweaks have
1650 been made in order to be compatible with that release.
1652 * Moose::Util::TypeConstraints
1653 - added &unimport so that you can clean out
1654 your class namespace of these exported
1657 * Moose::Meta::Class
1658 - fixed minor issue which occasionally
1659 comes up during global destruction
1661 - moved Moose::Meta::Method::Overriden into
1665 - moved Moose::Meta::Role::Method into
1668 * Moose::Meta::Attribute
1669 - changed how we do type checks so that
1670 we reduce the overall cost, but still
1673 - moved accessor generation methods to
1674 Moose::Meta::Method::Accessor to
1675 conform to the API changes from
1678 * Moose::Meta::TypeConstraint
1679 - changed how constraints are compiled
1680 so that we do less recursion and more
1681 iteration. This makes the type check
1683 - moved Moose::Meta::TypeConstraint::Union
1686 * Moose::Meta::Method::Accessor
1687 - created this from methods formerly found in
1688 Moose::Meta::Attribute
1690 * Moose::Meta::Role::Method
1691 - moved this from Moose::Meta::Role
1693 * Moose::Meta::Method::Overriden
1694 - moved this from Moose::Meta::Class
1696 * Moose::Meta::TypeConstraint::Union
1697 - moved this from Moose::Meta::TypeConstraint
1699 0.14 Mon. Oct. 9, 2006
1701 * Moose::Meta::Attribute
1702 - fixed lazy attributes which were not getting
1703 checked with the type constraint (thanks ashley)
1704 - added tests for this
1705 - removed the over-enthusiastic DWIMery of the
1706 automatic ArrayRef and HashRef defaults, it
1707 broke predicates in an ugly way.
1708 - removed tests for this
1710 0.13 Sat. Sept. 30, 2006
1712 This version of Moose *must* have Class::MOP 0.35 in order
1713 to work correctly. A number of small internal tweaks have
1714 been made in order to be compatible with that release.
1717 - Removed the use of UNIVERSAL::require to be a better
1718 symbol table citizen and remove a dependency
1719 (thanks Adam Kennedy)
1721 **~~ removed experimental & undocumented feature ~~**
1722 - commented out the 'method' and 'self' keywords, see the
1723 comments for more info.
1726 - added a FAQ and WTF files to document frequently
1727 asked questions and common problems
1729 * Moose::Util::TypeConstraints
1730 - added GlobRef and FileHandle type constraint
1731 - added tests for this
1733 * Moose::Meta::Attribute
1734 - if your attribute 'isa' ArrayRef of HashRef, and you have
1735 not explicitly set a default, then make the default DWIM.
1736 This will also work for subtypes of ArrayRef and HashRef
1738 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1739 - new test added for this (thanks to ashley)
1742 - added basic support for runtime role composition
1743 but this is still *highly experimental*, so feedback
1744 is much appreciated :)
1745 - added tests for this
1747 * Moose::Meta::TypeConstraint
1748 - the type constraint now handles the coercion process
1749 through delegation, this is to support the coercion
1752 * Moose::Meta::TypeConstraint::Union
1753 - it is now possible for coercions to be performed
1755 - added tests for this (thanks to konobi)
1757 * Moose::Meta::TypeCoercion
1758 - properly capturing error when type constraint
1762 - Scalar::Util 1.18 is bad on Win32, so temporarily
1763 only require version 1.17 for Win32 and cygwin.
1764 (thanks Adam Kennedy)
1766 0.12 Sat. Sept. 1, 2006
1768 - Recipe5 (subtypes & coercion) has been written
1771 - fixed "bad meta" error message to be more descriptive
1772 - fixed &unimport to not remove the &inner and &super
1773 keywords because we need to localize them.
1774 - fixed number of spelling/grammer issues, thanks Theory :)
1776 **~~ experimental & undocumented feature ~~**
1777 - added the method and self keywords, they are basically
1778 just sugar, and they may not stay around.
1781 - added &dump method to easily Data::Dumper
1784 * Moose::Meta::TypeConstraint
1785 - added the &is_a_type_of method to check both the current
1786 and the subtype of a method (similar to &isa with classes)
1789 - this is now a subclass of Class::MOP::Module, and no longer
1790 creates the _role_meta ugliness of before.
1791 - fixed tests to reflect this change
1793 0.11 Wed. July 12, 2006
1795 - added an &unimport method to remove all the keywords
1796 that Moose will import, simply add 'no Moose' to the
1797 bottom of your class file.
1800 - fixed some test failures caused by a forgotten test
1803 0.10 Thurs. July 6, 2006
1805 - improved error message when loading modules so
1806 it is less confusing when you load a role.
1807 - added &calculate_all_roles method to
1808 Moose::Meta::Class and Moose::Meta::Role
1811 This module has been tested against Class::MOP 0.30
1812 but it does not yet utilize the optimizations
1813 it makes available. Stay tuned for that ;)
1815 0.09_03 Fri. June 23, 2006
1816 ++ DEVELOPER RELEASE ++
1818 - 'use strict' and 'use warnings' are no longer
1819 needed in Moose classes, Moose itself will
1820 turn them on for you.
1821 - added tests for this
1822 - moved code from exported subs to private methods
1823 in Moose::Meta::Class
1826 - as with Moose, strict and warnings are
1827 automatically turned on for you.
1828 - added tests for this
1831 - now handles an edge case for override errors
1832 - added tests for this
1833 - added some more edge case tests
1835 0.09_02 Tues. May 16, 2006
1836 ++ DEVELOPER RELEASE ++
1838 - added prototypes to the exported subs
1842 - added prototypes to the exported subs
1845 * Moose::Util::TypeConstraints
1846 - cleaned up prototypes for the subs
1849 0.09_01 Fri. May 12, 2006
1850 ++ DEVELOPER RELEASE ++
1851 - This release works in combination with
1852 Class::MOP 0.29_01, it is a developer
1853 release because it uses the a new
1854 instance sub-protocol and a fairly
1855 complete Role implementation. It has
1856 not yet been optimized, so it slower
1857 the the previous CPAN version. This
1858 release also lacks good updated docs,
1859 the official release will have updated docs.
1862 - refactored the keyword exports
1863 - 'with' now checks Role validaity and
1864 accepts more than one Role at a time
1865 - 'extends' makes metaclass adjustments as
1866 needed to ensure metaclass compatibility
1869 - refactored the keyword exports
1870 - 'with' now checks Role validaity and
1871 accepts more than one Role at a time
1873 * Moose::Util::TypeConstraints
1874 - added the 'enum' keyword for simple
1875 string enumerations which can be used as
1877 - see example of usage in t/202_example.t
1880 - more careful checking of params to new()
1883 - much work done on the role composition
1884 - many new tests for conflict detection
1885 and composition edge cases
1886 - not enough documentation, I suggest
1887 looking at the tests
1889 * Moose::Meta::Instance
1890 - added new Instance metaclass to support
1891 the new Class::MOP instance protocol
1893 * Moose::Meta::Class
1894 - some small changes to support the new
1896 - some small additions to support Roles
1898 * Moose::Meta::Attribute
1899 - some improvements to the accessor generation code
1901 - some small changes to support the new
1903 - (still somewhat) experimental delegation support
1904 with the 'handles' option
1905 - added several tests for this
1906 - no docs for this yet
1908 0.05 Thurs. April 27, 2006
1910 - keywords are now exported with Sub::Exporter
1911 thanks to chansen for this commit
1912 - has keyword now takes a 'metaclass' option
1913 to support custom attribute meta-classes
1914 on a per-attribute basis
1915 - added tests for this
1916 - the 'has' keyword not accepts inherited slot
1917 specifications (has '+foo'). This is still an
1918 experimental feature and probably not finished
1919 see t/038_attribute_inherited_slot_specs.t for
1920 more details, or ask about it on #moose
1921 - added tests for this
1924 - keywords are now exported with Sub::Exporter
1926 * Moose::Utils::TypeConstraints
1927 - reorganized the type constraint hierarchy, thanks
1928 to nothingmuch and chansen for his help and advice
1930 - added some tests for this
1931 - keywords are now exported with Sub::Exporter
1932 thanks to chansen for this commit
1934 * Moose::Meta::Class
1935 - due to changes in Class::MOP, we had to change
1936 construct_instance (for the better)
1938 * Moose::Meta::Attribute
1939 - due to changes in Class::MOP, we had to add the
1940 initialize_instance_slot method (it's a good thing)
1942 * Moose::Meta::TypeConstraint
1943 - added type constraint unions
1944 - added tests for this
1945 - added the is_subtype_of predicate method
1946 - added tests for this
1948 0.04 Sun. April 16th, 2006
1950 - Roles can now consume other roles
1951 - added tests for this
1952 - Roles can specify required methods now with
1953 the requires() keyword
1954 - added tests for this
1957 - ripped out much of it's guts ,.. much cleaner now
1958 - added required methods and correct handling of
1959 them in apply() for both classes and roles
1960 - added tests for this
1961 - no longer adds a does() method to consuming classes
1962 it relys on the one in Moose::Object
1963 - added roles attribute and some methods to support
1964 roles consuming roles
1966 * Moose::Meta::Attribute
1967 - added support for triggers on attributes
1968 - added tests for this
1969 - added support for does option on an attribute
1970 - added tests for this
1972 * Moose::Meta::Class
1973 - added support for attribute triggers in the
1975 - added tests for this
1978 - Moose no longer creates a subtype for your class
1979 if a subtype of the same name already exists, this
1980 should DWIM in 99.9999% of all cases
1982 * Moose::Util::TypeConstraints
1983 - fixed bug where incorrect subtype conflicts were
1985 - added test for this
1988 - this class can now be extended with 'use base' if
1989 you need it, it properly loads the metaclass class now
1990 - added test for this
1992 0.03_02 Wed. April 12, 2006
1994 - you must now explictly use Moose::Util::TypeConstraints
1995 it no longer gets exported for you automatically
1998 - new() now accepts hash-refs as well as key/value lists
1999 - added does() method to check for Roles
2000 - added tests for this
2002 * Moose::Meta::Class
2003 - added roles attribute along with the add_role() and
2005 - added tests for this
2008 - now adds a does() method to consuming classes
2009 which tests the class's hierarchy for roles
2010 - added tests for this
2012 0.03_01 Mon. April 10, 2006
2014 - added new Role recipe (no content yet, only code)
2017 - added 'with' keyword for Role support
2018 - added test and docs for this
2019 - fixed subtype quoting bug
2020 - added test for this
2024 - added test and docs
2026 * Moose::Util::TypeConstraints
2027 - added the message keyword to add custom
2028 error messages to type constraints
2031 - the meta role to support Moose::Role
2032 - added tests and docs
2034 * Moose::Meta::Class
2035 - moved a number of things from Moose.pm
2036 to here, they should have been here
2039 * Moose::Meta::Attribute
2040 - moved the attribute option macros here
2041 instead of putting them in Moose.pm
2043 * Moose::Meta::TypeConstraint
2044 - added the message attributes and the
2046 - added tests and docs for this
2048 0.03 Thurs. March 30, 2006
2050 - added the Moose::Cookbook with 5 recipes,
2051 describing all the stuff Moose can do.
2054 - fixed an issue with &extends super class loading
2055 it now captures errors and deals with inline
2056 packages correctly (bug found by mst, solution
2058 - added super/override & inner/augment features
2059 - added tests and docs for these
2062 - BUILDALL now takes a reference of the %params
2063 that are passed to &new, and passes that to
2066 * Moose::Util::TypeConstraints
2067 - Type constraints now survive runtime reloading
2068 - added test for this
2070 * Moose::Meta::Class
2071 - fixed the way attribute defaults are handled
2072 during instance construction (bug found by chansen)
2074 * Moose::Meta::Attribute
2075 - read-only attributes now actually enforce their
2076 read-only-ness (this corrected in Class::MOP as
2079 0.02 Tues. March 21, 2006
2081 - many more tests, fixing some bugs and
2083 - &extends now loads the base module with
2085 - added UNIVERSAL::require to the
2088 - each new Moose class will also create
2089 and register a subtype of Object which
2090 correspond to the new Moose class.
2091 - the 'isa' option in &has now only
2092 accepts strings, and will DWIM in
2095 * Moose::Util::TypeConstraints
2096 - added type coercion features
2097 - added tests for this
2098 - added support for this in attributes
2099 and instance construction
2101 - type construction no longer creates a
2102 function, it registers the type instead.
2103 - added several functions to get the
2107 - BUILDALL and DEMOLISHALL were broken
2108 because of a mis-named hash key, Whoops :)
2110 * Moose::Meta::Attribute
2111 - adding support for coercion in the
2112 autogenerated accessors
2114 * Moose::Meta::Class
2115 - adding support for coercion in the
2116 instance construction
2118 * Moose::Meta::TypeConstraint
2119 * Moose::Meta::TypeCoercion
2120 - type constraints and coercions are now
2121 full fledges meta-objects
2123 0.01 Wed. March 15, 2006
2124 - Moooooooooooooooooose!!!