1 Revision history for Perl extension Moose
4 * Moose::Cookbook::Basics::Recipe11
5 - A new recipe which demonstrates the use of BUILDARGS and
8 * Moose::Cookbook::Roles::Recipe3
9 - A new recipe, applying a role to an object instance. (Dave
12 0.70 Sat, February 14, 2009
13 * Moose::Util::TypeConstraints
14 - Added the RoleName type (stevan)
15 - added tests for this (stevan)
17 * Moose::Cookbook::Basics::Recipe3
18 - Updated the before qw[left right] sub to be a little more
19 defensive about what it accepts (stevan)
20 - added more tests to t/000_recipies/basics/003_binary_tree.t
24 - We now always call DEMOLISHALL, even if a class does not
25 define DEMOLISH. This makes sure that method modifiers on
26 DEMOLISHALL work as expected. (doy)
27 - added tests for this (EvanCarroll)
29 * Moose::Util::MetaRole
30 - Accept roles for the wrapped_method_metaclass (rafl)
31 - added tests for this (rafl)
33 * Moose::Meta::Attribute
34 - We no longer pass the meta-attribute object as a final
35 argument to triggers. This actually changed for inlined code a
36 while back, but the non-inlined version and the docs were
40 - Some tests tried to use Test::Warn 0.10, which had bugs. Now
41 they require 0.11. (Dave Rolsky)
44 - Lots of small changes to the manual, cookbook, and
45 elsewhere. These were based on feedback from various
46 users, too many to list here. (Dave Rolsky)
48 0.69 Thu, February 12, 2009
50 - Make some keyword errors use throw_error instead of croak
51 since Moose::Exporter wraps keywords now (Sartak)
54 - Revised every recipe for style and clarity. Also moved some
55 documentation out of cookbook recipes and into Moose::Manual
56 pages. This work was funded as part of the Moose docs grant
57 from TPF. (Dave Rolsky)
59 * Moose::Meta::Method::Delegation
60 - If the attribute doing the delegation was not populated, the
61 error message did not specify the attribute name
64 0.68 Wed, February 4, 2009
66 - Many spelling, typo, and formatting fixes by daxim.
68 * Moose::Manual::Attributes
69 - The NAME section in the POD used "Attribute" so search.cpan
70 didn't resolve links from other documents properly.
72 * Moose::Meta::Method::Overriden
73 - Now properly spelled as Overridden. Thanks to daxim for
76 0.67 Tue, February 3, 2009
78 - Lots of little typo fixes and a few clarifications. Several
79 pages didn't have proper titles, and so weren't actually
80 visible on search.cpan.org. Thanks to hanekomu for a variety
81 of fixes and formatting improvements.
83 0.66 Tue, February 3, 2009
85 - This is a brand new, extensive manual for Moose. This aims to
86 provide a complete introduction to all of Moose's
87 features. This work was funded as part of the Moose docs grant
88 from TPF. (Dave Rolsky)
90 * Moose::Meta::Attribute
91 - Added a delegation_metaclass method to replace a hard-coded
92 use of Moose::Meta::Method::Delegation. (Dave Rolsky)
94 * Moose::Util::TypeConstraints
95 - If you created a subtype and passed a parent that Moose didn't
96 know about, it simply ignored the parent. Now it automatically
97 creates the parent as a class type. This may not be what you
98 want, but is less broken than before. (Dave Rolsky)
100 * Moose::Util::TypeConstraints
101 - This module tried throw errors by calling Moose->throw_error,
102 but it did not ensure that Moose was loaded first. This could
103 cause very unhelpful errors when it tried to throw an error
104 before Moose was loaded. (Dave Rolsky)
106 * Moose::Util::TypeConstraints
107 - You could declare a name with subtype such as "Foo!Bar" that
108 would be allowed, but if you used it in a parameterized type
109 such as "ArrayRef[Foo!Bar]" it wouldn't work. We now do some
110 vetting on names created via the sugar functions, so that they
111 can only contain alphanumerics, ":", and ".". (Dave Rolsky)
113 0.65 Thu, January 22, 2008
114 * Moose and Moose::Meta::Method::Overridden
115 - If an overridden method called super(), and then the
116 superclass's method (not overridden) _also_ called super(),
117 Moose went into an endless recursion loop. Test provided by
118 Chris Prather. (Dave Rolsky)
120 * Moose::Meta::TypeConstraint
121 - All methods are now documented. (gphat)
123 * t/100_bugs/011_DEMOLISH_eats_exceptions.t
124 - Fixed some bogus failures that occurred because we tried to
125 validate filesystem paths in a very ad-hoc and
126 not-quite-correct way. (Dave Rolsky)
128 * Moose::Util::TypeConstraints
129 - Added maybe_type to exports. See docs for details. (rjbs)
132 - Added Moose::Util::TypeConstraints to the SEE ALSO
136 - Methods created via an attribute can now fulfill a "requires"
137 declaration for a role. (nothingmuch)
139 * Moose::Meta::Method::*
140 - Stack traces from inlined code will now report its line and
141 file as being in your class, as opposed to in Moose
144 0.64 Wed, December 31, 2008
145 * Moose::Meta::Method::Accessor
146 - Always inline predicate and clearer methods (Sartak)
148 * Moose::Meta::Attribute
149 - Support for parameterized traits (Sartak)
150 - verify_against_type_constraint method to avoid duplication
151 and enhance extensibility (Sartak)
154 - Tests (but no support yet) for parameterized traits (Sartak)
157 - Require Class::MOP 0.75+, which has the side effect of making
158 sure we work on Win32. (Dave Rolsky)
160 0.63 Mon, December 8, 2008
162 - Some small grammar tweaks and bug fixes in non-Moose example
165 0.62_02 Fri, December 5, 2008
166 * Moose::Meta::Role::Application::ToClass
167 - When a class does not provide all of a role's required
168 methods, the error thrown now mentions all of the missing
169 methods, as opposed to just the first one found. Requested by
170 Curtis Poe (RT #41119). (Dave Rolsky)
172 * Moose::Meta::Method::Constructor
173 - Moose will no longer inline a constructor for your class
174 unless it inherits its constructor from Moose::Object, and
175 will warn when it doesn't inline. If you want to force
176 inlining anyway, pass "replace_constructor => 1" to
177 make_immutable. Addresses RT #40968, reported by Jon
178 Swartz. (Dave Rolsky)
179 - The quoting of default values could be broken if the default
180 contained a single quote ('). Now we use quotemeta to escape
181 anything potentially dangerous in the defaults. (Dave Rolsky)
183 0.62_01 Wed, December 3, 2008
185 - use the method->execute API for BUILDALL
186 and DEMOLISHALL (Sartak)
188 * Moose::Util::TypeConstraints
189 - We now make all the type constraint meta classes immutable
190 before creating the default types provided by Moose. This
191 should make loading Moose a little faster. (Dave Rolsky)
193 0.62 Wed November 26, 2008
194 * Moose::Meta::Role::Application::ToClass
195 Moose::Meta::Role::Application::ToRole
196 - fixed issues where excluding and aliasing the
197 same methods for a single role did not work
198 right (worked just fine with multiple
200 - added test for this (stevan)
202 * Moose::Meta::Role::Application::RoleSummation
203 - fixed the error message when trying to compose
204 a role with a role it excludes (Sartak)
207 - Catch another case where recursion caused the value
208 of $CALLER to be stamped on (t0m)
209 - added test for this (t0m)
212 - Remove the make_immutable keyword, which has been
213 deprecated since April. It breaks metaclasses that
214 use Moose without no Moose (Sartak)
216 * Moose::Meta::Attribute
217 - Removing an attribute from a class now also removes delegation
218 (handles) methods installed for that attribute (t0m)
219 - added test for this (t0m)
221 * Moose::Meta::Method::Constructor
222 - An attribute with a default that looked like a number (but was
223 really a string) would accidentally be treated as a number
224 when the constructor was made immutable (perigrin)
225 - added test for this (perigrin)
228 - create method for constructing a role
230 - added test for this (Sartak)
231 - anonymous roles! (Sartak)
232 - added test for this (Sartak)
235 - more consistent error messages (Sartak)
237 * Moose::Cookbook::Roles::Recipe1
238 - attempt to explain why a role that just requires
239 methods is useful (Sartak)
241 0.61 Fri November 7, 2008
242 * Moose::Meta::Attribute
243 - When passing a role to handles, it will be loaded if necessary
247 - Method objects returned by get_method (and other methods)
248 Could end up being returned without an associated_metaclass
249 attribute. Removing get_method_map, which is provided by
250 Class::MOP::Class, fixed this. The Moose version did nothing
251 different from its parent except introduce a bug. (Dave Rolsky)
252 - added tests for this (jdv79)
255 - Added a $VERSION to all .pm files which didn't have one. Fixes
256 RT #40049, reported by Adam Kennedy. (Dave Rolsky)
258 * Moose::Cookbook::Basics::Recipe4
259 * Moose::Cookbook::Basics::Recipe6
260 - These files had spaces on the first line of the SYNOPSIS, as
261 opposed to a totally empty line. According to RT #40432, this
262 confuses POD parsers. (Dave Rolsky)
264 0.60 Fri October 24, 2008
266 - Passing "-traits" when loading Moose caused the Moose.pm
267 exports to be broken. Reported by t0m. (Dave Rolsky)
268 - Tests for this bug. (t0m)
271 - Change resolve_metaclass alias to use the new
272 load_first_existing_class function. This makes it a lot
273 simpler, and also around 5 times faster. (t0m)
274 - Add caching to resolve_metaclass_alias, which gives an order
275 of magnitude speedup to things which repeatedly call the
276 Moose::Meta::Attribute->does method, notably MooseX::Storage
279 * Moose::Util::TypeConstraint
280 - Put back the changes for parameterized constraints that
281 shouldn't have been removed in 0.59. We still cannot parse
282 them, but MooseX modules can create them in some other
283 way. See the 0.58 changes for more details. (jnapiorkowski)
284 - Changed the way subtypes are created so that the job is
285 delegated to a type constraint parent. This clears up some
286 hardcoded checking and should allow correct subtypes of
287 Moose::Meta::Type::Constraint. Don't rely on this new API too
288 much (create_child_type) because it may go away in the
289 future. (jnapiorkowski)
291 * Moose::Meta::TypeConstraint::Union
292 - Type constraint names are sorted as strings, not numbers.
295 * Moose::Meta::TypeConstraint::Parameterizable
296 - New parameterize method. This can be used as a factory method
297 to make a new type constraint with a given parameterized
298 type. (jnapiorkowski)
299 - added tests (jnapiorkowski)
301 0.59 Tue October 14, 2008
303 - Add abridged documentation for builder/default/initializer/
304 predicate, and link to more details sections in
305 Class::MOP::Attribute. (t0m)
307 * Moose::Util::TypeConstraints
308 - removed prototypes from all but the &-based stuff (mst)
310 * Moose::Util::TypeConstraints
311 - Creating a anonymous subtype with both a constraint and a
312 message failed with a very unhelpful error, but should just
313 work. Reported by t0m. (Dave Rolsky)
316 - Some tests that used Test::Warn if it was available failed
317 with older versions of Test::Warn. Reported by Fayland. (Dave
319 - Test firing behavior of triggers in relation to builder/default/
321 - Test behavior of equals/is_a_type_of/is_a_subtype_of for all
322 kinds of supported type. (t0m)
325 - In create(), do not pass "roles" option to the superclass
326 - added related test that creates an anon metaclass with
329 * Moose::Meta::TypeConstraint::Class
330 * Moose::Meta::TypeConstraint::Role
331 - Unify behavior of equals/is_a_type_of/is_a_subtype_of with
332 other types (as per change in 0.55_02). (t0m)
334 * Moose::Meta::TypeConstraint::Registry
335 - Fix warning when dealing with unknown type names (t0m)
337 * Moose::Util::TypeConstraints
338 - Reverted changes from 0.58 related to handle parameterized
339 types. This caused random failures on BSD and Win32 systems,
340 apparently related to the regex engine. This means that Moose
341 can no longer parse structured type constraints like
342 ArrayRef[Int,Int] or HashRef[name=>Str]. This will be
343 supported in a slightly different way via MooseX::Types some
344 time in the future. (Dave Rolsky)
346 0.58 Sat September 20, 2008
347 !! This release has an incompatible change regarding !!
348 !! how roles add methods to a class !!
350 * Roles and role application
351 ! Roles now add methods by calling add_method, not
352 alias_method. They make sure to always provide a method
353 object, which will be cloned internally. This means that it is
354 now possible to track the source of a method provided by a
355 role, and even follow its history through intermediate roles.
357 This means that methods added by a role now show up when
358 looking at a class's method list/map. (Dave Rolsky)
361 - From this release on, we'll try to maintain a list of
362 conflicting modules, and warn you if you have one
363 installed. For example, this release conflicts with ...
364 - MooseX::Singleton <= 0.11
365 - MooseX::Params::Validate <= 0.05
368 In general, we try to not break backwards compatibility for
369 most Moose users, but MooseX modules and other code which
370 extends Moose's metaclasses is often affected by very small
371 changes in the Moose internals.
373 * Moose::Meta::Method::Delegation
374 * Moose::Meta::Attribute
375 - Delegation methods now have their own method class. (Dave
378 * Moose::Meta::TypeConstraint::Parameterizable
379 - Added a new method 'parameterize' which is basically a factory
380 for the containing constraint. This makes it easier to create
381 new types of parameterized constraints. (jnapiorkowski)
383 * Moose::Meta::TypeConstraint::Union
384 - Changed the way Union types canonicalize their names to follow
385 the normalized TC naming rules, which means we strip all
386 whitespace. (jnapiorkowski)
388 * Moose::Util::TypeConstraints
389 - Parameter and Union args are now sorted, this makes Int|Str
390 the same constraint as Str|Int. (jnapiorkowski)
391 - Changes to the way Union types are parsed to more correctly
392 stringify their names. (jnapiorkowski)
393 - When creating a parameterized type, we now use the new
394 parameterize method. (jnapiorkowski)
395 - Incoming type constraint strings are now normalized to remove
396 all whitespace differences. (jnapiorkowski)
397 - Changed the way we parse type constraint strings so that we now
398 match TC[Int,Int,...] and TC[name=>Str] as parameterized type
399 constraints. This lays the foundation for more flexible type
400 constraint implementations.
402 * Tests and docs for all the above. (jnapiorkowski)
406 - Moose::Exporter will no longer remove a subroutine that the
407 exporting package re-exports. Moose re-exports the
408 Carp::confess function, among others. The reasoning is that we
409 cannot know whether you have also explicitly imported those
410 functions for your own use, so we err on the safe side and
411 always keep them. (Dave Rolsky)
412 - added tests for this (rafl)
415 - Changes to how we fix metaclass compatibility that are much
416 too complicated to go into. The summary is that Moose is much
417 less likely to complain about metaclass incompatibility
418 now. In particular, if two metaclasses differ because
419 Moose::Util::MetaRole was used on the two corresponding
420 classes, then the difference in roles is reconciled for the
421 subclass's metaclass. (Dave Rolsky)
422 - Squashed an warning in _process_attribute (thepler)
425 - throw exceptions (sooner) for invalid attribute names (thepler)
426 - added tests for this (thepler)
428 * Moose::Util::MetaRole
429 - If you explicitly set a constructor or destructor class for a
430 metaclass object, and then applied roles to the metaclass,
431 that explicitly set class would be lost and replaced with the
435 * Moose::Meta::Attribute
436 * Moose::Meta::Method
439 * Moose::Error::Default
440 * Moose::Error::Croak
441 * Moose::Error::Confess
442 - All instances of confess() changed to use overridable
443 C<throw_error> method. This method ultimately calls a class
444 constructor, and you can change the class being called. In
445 addition, errors now pass more information than just a string.
446 The default C<error_class> behaves like C<Carp::confess>, so
447 the behavior is not visibly different for end users.
449 0.57 Wed September 3, 2008
451 - A new bit of doc intended to introduce folks familiar with
452 "standard" Perl 5 OO to Moose concepts. (Dave Rolsky)
455 - Shows examples of two classes, each done first with and then
456 without Moose. This makes a nice parallel to
457 Moose::Intro. (Dave Rolsky)
459 * Moose::Util::TypeConstraints
460 - Fixed a bug in find_or_parse_type_constraint so that it
461 accepts a Moose::Meta::TypeConstraint object as the parent
462 type, not just a name (jnapiorkowski)
463 - added tests (jnapiorkowski)
466 - If Sub::Name was not present, unimporting failed to actually
467 remove some sugar subs, causing test failures (Dave Rolsky)
469 0.56 Mon September 1, 2008
470 For those not following the series of dev releases, there are
471 several major changes in this release of Moose.
472 ! Moose::init_meta should now be called as a method. See the
475 - Major performance improvements by nothingmuch.
477 - New modules for extension writers, Moose::Exporter and
478 Moose::Util::MetaRole by Dave Rolsky.
480 - Lots of doc improvements and additions, especially in the
485 * Removed all references to the experimental-but-no-longer-needed
486 Moose::Meta::Role::Application::ToMetaclassInstance.
488 * Require Class::MOP 0.65.
490 0.55_04 Sat August 30, 2008
491 * Moose::Util::MetaRole
492 * Moose::Cookbook::Extending::Recipe2
493 - This simplifies the application of roles to any meta class, as
494 well as the base object class. Reimplemented metaclass traits
495 using this module. (Dave Rolsky)
497 * Moose::Cookbook::Extending::Recipe1
498 - This a new recipe, an overview of various ways to write Moose
499 extensions (Dave Rolsky)
501 * Moose::Cookbook::Extending::Recipe3
502 * Moose::Cookbook::Extending::Recipe4
503 - These used to be Extending::Recipe1 and Extending::Recipe2,
506 0.55_03 Fri August 29, 2008
507 * No changes from 0.55_02 except increasing the Class::MOP
508 dependency to 0.64_07.
510 0.55_02 Fri August 29, 2008
511 * Makefile.PL and Moose.pm
512 - explicitly require Perl 5.8.0+ (Dave Rolsky)
514 * Moose::Util::TypeConstraints
515 - Fix warnings from find_type_constraint if the type is not
518 * Moose::Meta::TypeConstraint
519 - Predicate methods (equals/is_a_type_of/is_subtype_of) now
520 return false if the type you specify cannot be found in the
521 type registry, rather than throwing an unhelpful and
522 coincidental exception. (t0m).
523 - added docs & test for this (t0m)
525 * Moose::Meta::TypeConstraint::Registry
526 - add_type_constraint now throws an exception if a parameter is
528 - added docs & test for this (t0m)
530 * Moose::Cookbook::FAQ
531 - Added a faq entry on the difference between "role" and "trait"
535 - Fixed a bug that caused role composition to not see a required
536 method when that method was provided by another role being
537 composed at the same time. (Dave Rolsky)
538 - test and bug finding (tokuhirom)
540 0.55_01 Wed August 20, 2008
542 !! Calling Moose::init_meta as a function is now !!
543 !! deprecated. Please see the Moose.pm docs for details. !!
545 * Moose::Meta::Method::Constructor
546 - Fix inlined constructor so that values produced by default
547 or builder methods are coerced as required. (t0m)
548 - added test for this (t0m)
550 * Moose::Meta::Attribute
551 - A lazy attribute with a default or builder did not attempt to
552 coerce the default value. The immutable code _did_
554 - added test for this (t0m)
557 - This is a new helper module for writing "Moose-alike"
558 modules. This should make the lives of MooseX module authors
559 much easier. (Dave Rolsky)
562 * Moose::Cookbook::Meta::Recipe5
563 - Implemented metaclass traits (and wrote a recipe for it):
565 use Moose -traits => 'Foo'
567 This should make writing small Moose extensions a little
570 * Moose::Cookbook::Basics::Recipe1
571 - Removed any examples of direct hashref access, and applied an
572 editorial axe to reduce verbosity. (Dave Rolsky)
574 * Moose::Cookbook::Basics::Recipe1
575 - Also applied an editorial axe here. (Dave Rolsky)
578 * Moose::Cookbook::Extending::Recipe1
579 * Moose::Cookbook::Extending::Recipe2
580 - Rewrote extending and embedding moose documentation and
581 recipes to use Moose::Exporter (Dave Rolsky)
585 - These two modules now warn when you load them from the main
586 package "main" package, because we will not export sugar to
587 main. Previously it just did nothing. (Dave Rolsky)
590 - Now provide an init_meta method just like Moose.pm, and you
591 can call this to provide an alternate role metaclass. (Dave
592 Rolsky and nothingmuch)
593 - get_method_map now respects the package cache flag (nothingmuch)
596 - Two new methods - add_method and wrap_method_body
600 - Optimizations including allowing constructors to accept hash
601 refs, making many more classes immutable, and making
602 constructors immutable. (nothingmuch)
604 0.55 Sun August 3, 2008
605 * Moose::Meta::Attribute
606 - breaking down the way 'handles' methods are
607 created so that the process can be more easily
608 overridden by subclasses (stevan)
610 * Moose::Meta::TypeConstraint
611 - fixing what is passed into a ->message with
612 the type constraints (RT #37569)
613 - added tests for this (Charles Alderman)
615 * Moose::Util::TypeConstraints
616 - fix coerce to accept anon types like subtype can (mst)
619 - reorganized the recipes into sections - Basics, Roles, Meta,
620 Extending - and wrote abstracts for each section (Dave Rolsky)
622 * Moose::Cookbook::Basics::Recipe10
623 - A new recipe that demonstrates operator overloading
624 in combination with Moose. (bluefeet)
626 * Moose::Cookbook::Meta::Recipe1
627 - an introduction to what meta is and why you'd want to make
628 your own metaclass extensions (Dave Rolsky)
630 * Moose::Cookbook::Meta::Recipe4
631 - a very simple metaclass example (Dave Rolsky)
633 * Moose::Cookbook::Extending::Recipe1
634 - how to write a Moose-alike module to use your own object base
637 * Moose::Cookbook::Extending::Recipe2
638 - how to write modules with an API just like C<Moose.pm> (Dave
642 - Tons of fixes, both syntactical and grammatical (Dave
643 Rolsky, Paul Fenwick)
645 0.54 Thurs. July 3, 2008
646 ... this is not my day today ...
648 * Moose::Meta::Attribute
649 - fixed legal_options_for_inheritance such that
650 clone_and_inherit options still works for
651 Class::MOP::Attribute objects and therefore
652 does not break MooseX::AttributeHelpers
655 0.53 Thurs. July 3, 2008
656 * Whoops, I guess I should run 'make manifest' before
657 actually releasing the module. No actual changes
658 in this release, except the fact that it includes
659 the changes that I didn't include in the last
662 0.52 Thurs. July 3, 2008
664 - added "FEATURE REQUESTS" section to the Moose docs
665 to properly direct people (stevan) (RT #34333)
666 - making 'extends' croak if it is passed a Role since
667 this is not ever something you want to do
668 (fixed by stevan, found by obra)
669 - added tests for this (stevan)
672 - adding support for DOES (as in UNIVERSAL::DOES)
674 - added test for this
676 * Moose::Meta::Attribute
677 - added legal_options_for_inheritance (wreis)
678 - added tests for this (wreis)
680 * Moose::Cookbook::Snacks::*
681 - removed some of the unfinished snacks that should
682 not have been released yet. Added some more examples
683 to the 'Keywords' snack. (stevan)
685 * Moose::Cookbook::Style
686 - added general Moose "style guide" of sorts to the
687 cookbook (nothingmuch) (RT #34335)
690 - added more BUILDARGS tests (stevan)
692 0.51 Thurs. Jun 26, 2008
694 - add unimport so "no Moose::Role" actually does
697 * Moose::Meta::Role::Application::ToRole
698 - when RoleA did RoleB, and RoleA aliased a method from RoleB in
699 order to provide its own implementation, that method still got
700 added to the list of required methods for consumers of
701 RoleB. Now an aliased method is only added to the list of
702 required methods if the role doing the aliasing does not
703 provide its own implementation. See Recipe 11 for an example
704 of all this. (Dave Rolsky)
705 - added tests for this
707 * Moose::Meta::Method::Constructor
708 - when a single argument that wasn't a hashref was provided to
709 an immutabilized constructor, the error message was very
710 unhelpful, as opposed to the non-immutable error. Reported by
712 - added test for this (Dave Rolsky)
714 * Moose::Meta::Attribute
715 - added support for meta_attr->does("ShortAlias") (sartak)
716 - added tests for this (sartak)
717 - moved the bulk of the `handles` handling to the new
718 install_delegation method (Stevan)
721 - Added BUILDARGS, a new step in new()
723 * Moose::Meta::Role::Application::RoleSummation
724 - fix typos no one ever sees (sartak)
726 * Moose::Util::TypeConstraints
727 * Moose::Meta::TypeConstraint
728 * Moose::Meta::TypeCoercion
729 - Attempt to work around the ??{ } vs. threads issue
731 - Some null_constraint optimizations
733 0.50 Thurs. Jun 11, 2008
734 - Fixed a version number issue by bumping all modules
737 0.49 Thurs. Jun 11, 2008
738 !! This version now approx. 20-25% !!
739 !! faster with new Class::MOP 0.59 !!
741 * Moose::Meta::Attribute
742 - fixed how the is => (ro|rw) works with
743 custom defined reader, writer and accessor
745 - added docs for this (TODO).
746 - added tests for this (Thanks to Penfold)
747 - added the custom attribute alias for regular
748 Moose attributes which is "Moose"
749 - fix builder and default both being used
754 Moose::Meta::Attribute
756 Moose::Meta::Role::Composite
757 Moose::Util::TypeConstraints
758 - switched usage of reftype to ref because
762 - changing add_package_symbol to use the new
766 - fixed how DEMOLISHALL is called so that it
767 can be overrided in subclasses (thanks to Sartak)
768 - added test for this (thanks to Sartak)
770 * Moose::Util::TypeConstraints
771 - move the ClassName type check code to
772 Class::MOP::is_class_loaded (thanks to Sartak)
774 * Moose::Cookbook::Recipe11
775 - add tests for this (thanks to tokuhirom)
777 0.48 Thurs. May 29, 2008
778 (early morning release engineering)--
780 - fixing the version in Moose::Meta::Method::Destructor
781 which was causing the indexer to choke
783 0.47 Thurs. May 29, 2008
784 (late night release engineering)--
786 - fixing the version is META.yml, no functional
787 changes in this release
789 0.46 Wed. May 28, 2008
790 !! This version now approx. 20-25% !!
791 !! faster with new Class::MOP 0.57 !!
794 - some optimizations of the &initialize method
795 since it is called so often by &meta
799 - now use the get_all_package_symbols from the
800 updated Class::MOP, test suite is now 10 seconds
803 * Moose::Meta::Method::Destructor
804 - is_needed can now also be called as a class
805 method for immutablization to check if the
806 destructor object even needs to be created
809 * Moose::Meta::Method::Destructor
810 Moose::Meta::Method::Constructor
811 - added more descriptive error message to help
812 keep people from wasting time tracking an error
813 that is easily fixed by upgrading.
815 0.45 Saturday, May 24, 2008
817 - Because of work in Class::MOP 0.57, all
818 XS based functionality is now optional
819 and a Pure Perl version is supplied
820 - the CLASS_MOP_NO_XS environment variable
821 can now be used to force non-XS versions
823 - several of the packages have been tweaked
824 to take care of this, mostly we added
825 support for the package_name and name
826 variables in all the Method metaclasses
827 - before/around/after method modifiers now
828 support regexp matching of names
829 (thanks to Takatoshi Kitano)
830 - tests added for this
831 - NOTE: this only works for classes, it
832 is currently not supported in roles,
833 but, ... patches welcome
834 - All usage of Carp::confess have been replaced
835 by Carp::croak in the "keyword" functions since
836 the stack trace is usually not helpful
839 - All usage of Carp::confess have been replaced
840 by Carp::croak in the "keyword" functions since
841 the stack trace is usually not helpful
842 - The 'has' keyword for roles now accepts the
843 same array ref form that Moose.pm does
844 (has [qw/foo bar/] => (is => 'rw', ...))
845 - added test for this
847 * Moose::Meta::Attribute
848 - trigger on a ro-attribute is no longer an
849 error, as it's useful to trigger off of the
853 - added same 'add_package_symbol' fix as in
857 - does_role now handles non-Moose classes
859 - added tests for this
860 - added the 'add_method_modifier' function
861 (thanks to Takatoshi Kitano)
863 * Moose::Util::TypeConstraints
864 - subtypes of parameterizable types now are
865 themselves parameterizable types
867 * Moose::Meta::Method::Constructor
868 - fixed bug where trigger was not being
869 called by the inlined immutable
871 - added test for this (thanks to Caelum)
873 * Moose::Meta::Role::Application::ToInstance
874 - now uses the metaclass of the instance
875 (if possible) to create the anon-class
876 (thanks Jonathan Rockway)
878 * Moose::Cookbook::Recipe22
879 - added the meta-attribute trait recipe
883 - fixed hash-ordering test bug that was
884 causing occasional cpantester failures
885 - renamed the t/000_recipe/*.t tests to be
886 more descriptive (thanks to Sartak)
888 0.44 Sat. May 10, 2008
890 - made make_immutable warning cluck to
891 show where the error is (thanks mst)
894 - BUILDALL and DEMOLISHALL now call
895 ->body when looping through the
896 methods, to avoid the overloaded
898 - fixed issue where DEMOLISHALL was
899 eating the $@ values, and so not
900 working correctly, it still kind of
901 eats them, but so does vanilla perl
902 - added tests for this
904 * Moose::Cookbook::Recipe7
905 - added new recipe for immutable
906 functionality (thanks Dave Rolsky)
908 * Moose::Cookbook::Recipe9
909 - added new recipe for builder and
910 lazy_build (thanks Dave Rolsky)
912 * Moose::Cookbook::Recipe11
913 - added new recipe for method aliasing
914 and exclusion with Roles (thanks Dave Rolsky)
917 - fixed Win32 test failure (thanks spicyjack)
919 ~ removed Build.PL and Module::Build compat
920 since Module::Install has done that.
922 0.43 Wed. April, 30, 2008
924 drink more coffee before
925 doing release engineering
927 - whoops, forgot to do the smolder tests,
928 and we broke some of the custom meta-attr
929 modules. This fixes that.
931 0.42 Mon. April 28, 2008
932 - some bad tests slipped by, nothing else
933 changed in this release (cpantesters++)
935 - upped the Class::MOP dependency to 0.55
936 since we have tests which need the C3
939 0.41 Mon. April 28, 2008
940 ~~ numerous documentation updates ~~
942 - Changed all usage of die to Carp::croak for better
943 error reporting (initial patch by Tod Hagan)
946 - the make_immutable keyword is now deprecated, don't
947 use it in any new code and please fix your old code
948 as well. There will be 2 releases, and then it will
954 - refactored the way inner and super work to avoid
955 any method/@ISA cache penalty (nothingmuch)
958 - fixing &new_object to make sure trigger gets the
959 coerced value (spotted by Charles Alderman on the
961 - added test for this
963 * Moose::Meta::Method::Constructor
964 - immutable classes which had non-lazy attributes were calling
965 the default generating sub twice in the constructor. (bug
966 found by Jesse Luehrs, fixed by Dave Rolsky)
967 - added tests for this (Dave Rolsky)
968 - fix typo in initialize_body method (nothingmuch)
970 * Moose::Meta::Method::Destructor
971 - fix typo in initialize_body method (nothingmuch)
973 * Moose::Meta::Method::Overriden
974 Moose::Meta::Method::Augmented
975 - moved the logic for these into their own
976 classes (nothingmuch)
978 * Moose::Meta::Attribute
979 - inherited attributes may now be extended without
980 restriction on the type ('isa', 'does') (Sartak)
981 - added tests for this (Sartak)
982 - when an attribute property is malformed (such as lazy without
983 a default), give the name of the attribute in the error
985 - added the &applied_traits and &has_applied_traits methods
986 to allow introspection of traits
987 - added tests for this
988 - moved 'trait' and 'metaclass' argument handling to here from
990 - clone_and_inherit_options now handles 'trait' and 'metaclass' (has
991 '+foo' syntax) (nothingmuch)
992 - added tests for this (t0m)
995 - localize $@ inside DEMOLISHALL to avoid it
996 eating $@ (found by Ernesto)
997 - added test for this (thanks to Ernesto)
999 * Moose::Util::TypeConstraints
1000 - &find_type_constraint now DWIMs when given an
1001 type constraint object or name (nothingmuch)
1002 - &find_or_create_type_constraint superseded with a number of more
1004 - find_or_create_{isa,does}_type_constraint
1005 - find_or_parse_type_constraint
1007 * Moose::Meta::TypeConstraint
1008 Moose::Meta::TypeConstraint::Class
1009 Moose::Meta::TypeConstraint::Role
1010 Moose::Meta::TypeConstraint::Enum
1011 Moose::Meta::TypeConstraint::Union
1012 Moose::Meta::TypeConstraint::Parameterized
1013 - added the &equals method for comparing two type
1014 constraints (nothingmuch)
1015 - added tests for this (nothingmuch)
1017 * Moose::Meta::TypeConstraint
1018 - add the &parents method, which is just an alias to &parent.
1019 Useful for polymorphism with TC::{Class,Role,Union} (nothingmuch)
1021 * Moose::Meta::TypeConstraint::Class
1022 - added the class attribute for introspection purposes
1024 - added tests for this
1026 * Moose::Meta::TypeConstraint::Enum
1027 Moose::Meta::TypeConstraint::Role
1028 - broke these out into their own classes (nothingmuch)
1030 * Moose::Cookbook::Recipe*
1031 - fixed references to test file locations in the POD
1032 and updated up some text for new Moose features
1036 - Added &resolve_metaclass_alias, a helper function for finding an actual
1037 class for a short name (e.g. in the traits list)
1039 0.40 Fri. March 14, 2008
1040 - I hate Pod::Coverage
1042 0.39 Fri. March 14, 2008
1044 - documenting the use of '+name' with attributes
1045 that come from recently composed roles. It makes
1046 sense, people are using it, and so why not just
1047 officially support it.
1048 - fixing the 'extends' keyword so that it will not
1049 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1052 - added the perl -Moose=+Class::Name feature to allow
1053 monkeypatching of classes in one liners
1056 - fixing the 'apply_all_roles' keyword so that it will not
1057 trigger Ovid's bug (http://use.perl.org/~Ovid/journal/35763)
1059 * Moose::Meta::Class
1060 - added ->create method which now supports roles (thanks to jrockway)
1061 - added tests for this
1062 - added ->create_anon_class which now supports roles and caching of
1063 the results (thanks to jrockway)
1064 - added tests for this
1065 - made ->does_role a little more forgiving when it is
1066 checking a Class::MOP era metaclasses.
1068 * Moose::Meta::Role::Application::ToInstance
1069 - it is now possible to pass extra params to be used when
1070 a role is applied to an the instance (rebless_params)
1071 - added tests for this
1073 * Moose::Util::TypeConstraints
1074 - class_type now accepts an optional second argument for a
1075 custom message. POD anotated accordingly (groditi)
1076 - added tests for this
1077 - it is now possible to make anon-enums by passing 'enum' an
1078 ARRAY ref instead of the $name => @values. Everything else
1080 - added tests for this
1083 - making test for using '+name' on attributes consumed
1084 from a role, it works and makes sense too.
1086 * Moose::Meta::Attribute
1087 - fix handles so that it doesn't return nothing
1088 when the method cannot be found, not sure why
1089 it ever did this originally, this means we now
1090 have slightly better support for AUTOLOADed
1092 - added more delegation tests
1093 - adding ->does method to this so as to better
1094 support traits and their introspection.
1095 - added tests for this
1098 - localizing the Data::Dumper configurations so
1099 that it does not pollute others (RT #33509)
1100 - made ->does a little more forgiving when it is
1101 passed Class::MOP era metaclasses.
1103 0.38 Fri. Feb. 15, 2008
1104 * Moose::Meta::Attribute
1105 - fixed initializer to correctly do
1106 type checking and coercion in the
1108 - added tests for this
1111 - fixed some finicky tests (thanks to konobi)
1113 0.37 Thurs. Feb. 14, 2008
1115 - fixed some details in Moose::init_meta
1116 and its superclass handling (thanks thepler)
1117 - added tests for this (thanks thepler)
1118 - 'has' now dies if you don't pass in name
1120 - added the 'make_immutable' keyword as a shortcut
1123 * Moose::Meta::Class
1124 Moose::Meta::Method::Constructor
1125 Moose::Meta::Attribute
1126 - making (init_arg => undef) work here too
1127 (thanks to nothingmuch)
1129 * Moose::Meta::Attribute
1130 Moose::Meta::Method::Constructor
1131 Moose::Meta::Method::Accessor
1132 - make lazy attributes respect attr initializers (rjbs)
1133 - added tests for this
1135 * Moose::Util::TypeConstraints
1136 Moose::Util::TypeConstraints::OptimizedConstraints
1137 Moose::Meta::TypeConstraints
1138 Moose::Meta::Attribute
1139 Moose::Meta::Method::Constructor
1140 Moose::Meta::Method::Accessor
1141 - making type errors use the
1142 assigned message (thanks to Sartak)
1143 - added tests for this
1145 * Moose::Meta::Method::Destructor
1146 - making sure DESTROY gets inlined properly
1147 with successive DEMOLISH calls (thanks to manito)
1149 * Moose::Meta::Attribute
1150 Moose::Meta::Method::Accessor
1151 - fixed handling of undef with type constraints
1153 - added tests for this
1156 - added &get_all_init_args and &get_all_attribute_values
1157 (thanks to Sartak and nothingmuch)
1159 0.36 Sat. Jan. 26, 2008
1161 Moose::Meta::Attribute
1162 - role type tests now support when roles are
1163 applied to non-Moose classes (found by ash)
1164 - added tests for this (thanks to ash)
1165 - couple extra tests to boost code coverage
1167 * Moose::Meta::Method::Constructor
1168 - improved fix for handling Class::MOP attributes
1169 - added test for this
1171 * Moose::Meta::Class
1172 - handled the add_attribute($attribute_meta_object)
1174 - added test for this
1176 0.35 Tues. Jan. 22, 2008
1177 * Moose::Meta::Method::Constructor
1178 - fix to make sure even Class::MOP attributes
1179 are handled correctly (Thanks to Dave Rolsky)
1180 - added test for this (also Dave Rolsky)
1182 * Moose::Meta::Class
1183 - improved error message on _apply_all_roles,
1184 you should now use Moose::Util::apply_all_roles
1185 and you shouldnt have been using a _ prefixed
1186 method in the first place ;)
1188 0.34 Mon. Jan. 21, 2008
1189 ~~~ more misc. doc. fixes ~~~
1190 ~~ updated copyright dates ~~
1192 Moose is now a postmodern object system :)
1193 - (see the POD for details)
1195 * <<Role System Refactoring>>
1196 - this release contains a major reworking and
1197 cleanup of the role system
1198 - 100% backwards compat.
1199 - Role application now restructured into seperate
1200 classes based on type of applicants
1201 - Role summation (combining of more than one role)
1202 is much cleaner and anon-classes are no longer
1203 used in this process
1204 - new Composite role metaclass
1205 - runtime application of roles to instances
1206 is now more efficient and re-uses generated
1207 classes when applicable
1209 * <<New Role composition features>>
1210 - methods can now be excluded from a given role
1212 - methods can now be aliased to another name (and
1213 still retain the original as well)
1215 * Moose::Util::TypeConstraints::OptimizedConstraints
1216 - added this module (see above)
1218 * Moose::Meta::Class
1219 - fixed the &_process_attribute method to be called
1220 by &add_attribute, so that the API is now correct
1222 * Moose::Meta::Method::Accessor
1223 - fixed bug when passing a list of values to
1224 an accessor would get (incorrectly) ignored.
1225 Thanks to Sartak for finding this ;)
1226 - added tests for this (Sartak again)
1228 * Moose::Meta::Method::Accessor
1229 Moose::Meta::Method::Constructor
1230 Moose::Meta::Attribute
1231 Moose::Meta::TypeConstraint
1232 Moose::Meta::TypeCoercion
1233 - lots of cleanup of such things as:
1235 - type constraint handling
1236 - error handling/messages
1237 (thanks to nothingmuch)
1239 * Moose::Meta::TypeConstraint::Parameterizable
1240 - added this module to support the refactor
1241 in Moose::Meta::TypeConstraint::Parameterized
1243 * Moose::Meta::TypeConstraint::Parameterized
1244 - refactored how these types are handled so they
1245 are more generic and not confined to ArrayRef
1249 - shortened some file names for better VMS support (RT #32381)
1251 0.33 Fri. Dec. 14, 2007
1252 !! Moose now loads 2 x faster !!
1253 !! with new Class::MOP 0.49 !!
1255 ++ new oose.pm module to make command line
1256 Moose-ness easier (see POD docs for more)
1258 * Moose::Meta::Class
1260 - several tweaks to take advantage of the
1261 new method map caching in Class::MOP
1263 * Moose::Meta::TypeConstraint::Parameterized
1264 - allow subtypes of ArrayRef and HashRef to
1265 be used as a container (sartak)
1266 - added tests for this
1267 - basic support for coercion to ArrayRef and
1268 HashRef for containers (sartak)
1269 - added tests for this
1271 * Moose::Meta::TypeCoercion
1272 - coercions will now create subtypes as needed
1273 so you can now add coercions to parameterized
1274 types without having to explictly define them
1275 - added tests for this
1277 * Moose::Meta::Method::Accessor
1278 - allow subclasses to decide whether we need
1279 to copy the value into a new variable (sartak)
1281 0.32 Tues. Dec. 4, 2007
1282 * Moose::Util::TypeConstraints
1283 - fixing how subtype aliases of unions work
1284 they should inherit the parent's coercion
1285 - added tests for this
1286 - you can now define multiple coercions on
1287 a single type at different times instead of
1288 having to do it all in one place
1289 - added tests for this
1291 * Moose::Meta::TypeConstraint
1292 - there is now a default constraint of sub { 1 }
1293 instead of Moose::Util::TypeConstraints setting
1296 * Moose::Meta::TypeCoercion
1297 * Moose::Meta::TypeCoercion::Union
1298 - added the &has_coercion_for_type and
1299 &add_type_coercions methods to support the
1300 new features above (although you cannot add
1301 more type coercions for Union types)
1303 0.31 Mon. Nov. 26, 2007
1304 * Moose::Meta::Attribute
1305 - made the +attr syntax handle extending types with
1306 parameters. So "has '+foo' => (isa => 'ArrayRef[Int]')"
1307 now works if the original foo is an ArrayRef.
1308 - added tests for this.
1309 - delegation now works even if the attribute does not
1310 have a reader method using the get_read_method_ref
1311 method from Class::MOP::Attribute.
1312 - added tests for this
1313 - added docs for this
1315 * Moose::Util::TypeConstraints
1316 - passing no "additional attribute info" to
1317 &find_or_create_type_constraint will no longer
1318 attempt to create an __ANON__ type for you,
1319 instead it will just return undef.
1320 - added docs for this
1322 0.30 Fri. Nov. 23, 2007
1323 * Moose::Meta::Method::Constructor
1324 -builder related bug in inlined constructor. (groditi)
1326 * Moose::Meta::Method::Accessor
1327 - genereate unnecessary calls to predicates and refactor
1328 code generation for runtime speed (groditi)
1330 * Moose::Util::TypeConstraints
1331 - fix ClassName constraint to introspect symbol table (mst)
1332 - added more tests for this (mst)
1333 - fixed it so that subtype 'Foo' => as 'HashRef[Int]' ...
1334 with work correctly.
1335 - added tests for this
1338 - adding the link to Recipie 11 (written by Sartak)
1339 - adding test for SYNOPSIS code
1342 - New tests for builder bug. Upon instantiation, if an
1343 attribute had a builder, no value and was not lazy the
1344 builder default was not getting run, oops. (groditi)
1346 0.29 Tues. Nov. 13, 2007
1347 * Moose::Meta::Attribute
1348 - Fix error message on missing builder method (groditi)
1350 * Moose::Meta::Method::Accessor
1351 - Fix error message on missing builder method (groditi)
1354 - Add test to check for the correct error message when
1355 builder method is missing (groditi)
1357 0.28 Tues. Nov. 13, 2007
1358 - 0.27 packaged incorrectly (groditi)
1360 0.27 Tues. Nov. 13, 2007
1361 * Moose::Meta::Attribute
1362 - Added support for the new builder option (groditi)
1363 - Added support for lazy_build option (groditi)
1364 - Changed slot initialization for predicate changes (groditi)
1366 * Moose::Meta::Method::Accessor
1367 - Added support for lazy_build option (groditi)
1368 - Fix inline methods to work with corrected predicate
1371 * Moose::Meta::Method::Constructor
1372 - Added support for lazy_build option (groditi)
1375 - tests for builder and lazy_build (groditi)
1377 * fixing some misc. bits in the docs that
1378 got mentioned on CPAN Forum & perlmonks
1381 - fixed how required methods are handled
1382 when they encounter overriden or modified
1383 methods from a class (thanks to confound).
1384 - added tests for this
1386 * Moose::Util::TypeConstraint
1387 - fixed the type notation parser so that
1388 the | always creates a union and so is
1389 no longer a valid type char (thanks to
1390 konobi, mugwump and #moose for working
1392 - added more tests for this
1394 0.26 Thurs. Sept. 27, 2007
1397 * Parameterized Types
1398 We now support parameterized collection types, such as:
1399 ArrayRef[Int] # array or integers
1400 HashRef[Object] # a hash with object values
1401 They can also be nested:
1402 ArrayRef[HashRef[RegexpRef]] # an array of hashes with regex values
1403 And work with the type unions as well:
1404 ArrayRef[Int | Str] # array of integers of strings
1406 * Better Framework Extendability
1407 Moose.pm is now "extendable" such that it is now much
1408 easier to extend the framework and add your own keywords
1409 and customizations. See the "EXTENDING AND EMBEDDING MOOSE"
1410 section of the Moose.pm docs.
1413 In an effort to begin documenting some of the various
1414 details of Moose as well as some common idioms, we have
1415 created Moose::Cookbook::Snacks as a place to find
1416 small (easily digestable) nuggets of Moose code.
1419 ~ Several doc updates/cleanup thanks to castaway ~
1421 - converted build system to use Module::Install instead of
1422 Module::Build (thanks to jrockway)
1425 - added all the meta classes to the immutable list and
1426 set it to inline the accessors
1427 - fix import to allow Sub::Exporter like { into => }
1428 and { into_level => } (perigrin)
1429 - exposed and documented init_meta() to allow better
1430 embedding and extending of Moose (perigrin)
1433 - complete re-organization of the test suite
1434 - added some new tests as well
1435 - finally re-enabled the Moose::POOP test since
1436 the new version of DBM::Deep now works again
1439 * Moose::Meta::Class
1440 - fixed very odd and very nasty recursion bug with
1442 - added tests for this (eilara)
1444 * Moose::Meta::Attribute
1445 Moose::Meta::Method::Constructor
1446 Moose::Meta::Method::Accessor
1447 - fixed issue with overload::Overloaded getting called
1448 on non-blessed items. (RT #29269)
1449 - added tests for this
1451 * Moose::Meta::Method::Accessor
1452 - fixed issue with generated accessor code making
1453 assumptions about hash based classes (thanks to dexter)
1455 * Moose::Coookbook::Snacks
1456 - these are bits of documentation, not quite as big as
1457 Recipes but which have no clear place in the module docs.
1458 So they are Snacks! (horray for castaway++)
1460 * Moose::Cookbook::Recipe4
1461 - updated it to use the new ArrayRef[MyType] construct
1462 - updated the accompanying test as well
1464 +++ Major Refactor of the Type Constraint system +++
1465 +++ with new features added as well +++
1467 * Moose::Util::TypeConstraint
1468 - no longer uses package variable to keep track of
1469 the type constraints, now uses the an instance of
1470 Moose::Meta::TypeConstraint::Registry to do it
1471 - added more sophisticated type notation parsing
1473 - added tests for this
1475 * Moose::Meta::TypeConstraint
1476 - some minor adjustments to make subclassing easier
1477 - added the package_defined_in attribute so that we
1478 can track where the type constraints are created
1480 * Moose::Meta::TypeConstraint::Union
1481 - this is now been refactored to be a subclass of
1482 Moose::Meta::TypeConstraint
1484 * Moose::Meta::TypeCoercion::Union
1485 - this has been added to service the newly refactored
1486 Moose::Meta::TypeConstraint::Union and is itself
1487 a subclass of Moose::Meta::TypeCoercion
1489 * Moose::Meta::TypeConstraint::Parameterized
1490 - added this module (taken from MooseX::AttributeHelpers)
1491 to help construct nested collection types
1492 - added tests for this
1494 * Moose::Meta::TypeConstraint::Registry
1495 - added this class to keep track of type constraints
1497 0.25 Mon. Aug. 13, 2007
1499 - Documentation update to reference Moose::Util::TypeConstraints
1500 under 'isa' in 'has' for how to define a new type
1501 (thanks to shlomif).
1503 * Moose::Meta::Attribute
1504 - required attributes now will no longer accept undef
1505 from the constructor, even if there is a default and lazy
1506 - added tests for this
1507 - default subroutines must return a value which passes the
1509 - added tests for this
1511 * Moose::Meta::Attribute
1512 * Moose::Meta::Method::Constructor
1513 * Moose::Meta::Method::Accessor
1514 - type-constraint tests now handle overloaded objects correctly
1515 in the error message
1516 - added tests for this (thanks to EvanCarroll)
1518 * Moose::Meta::TypeConstraint::Union
1519 - added (has_)hand_optimized_constraint to this class so that
1520 it behaves as the regular Moose::Meta::TypeConstraint does.
1523 - large refactoring of this code
1524 - added several more tests
1525 - tests for subtle conflict resolition issues
1526 added, but not currently running
1529 * Moose::Cookbook::Recipe7
1530 - added new recipe for augment/inner functionality
1532 - added test for this
1535 - a formal definition of roles (still in progress)
1538 - utilities for easier working with Moose classes
1539 - added tests for these
1542 - This contains Moose specific test functions
1543 - added tests for these
1545 0.24 Tues. July 3, 2007
1546 ~ Some doc updates/cleanup ~
1548 * Moose::Meta::Attribute
1549 - added support for roles to be given as parameters
1550 to the 'handles' option.
1551 - added tests and docs for this
1552 - the has '+foo' attribute form now accepts changes to
1553 the lazy option, and the addition of a handles option
1554 (but not changing the handles option)
1555 - added tests and docs for this
1558 - required methods are now fetched using find_method_by_name
1559 so that required methods can come from superclasses
1560 - adjusted tests for this
1562 0.23 Mon. June 18, 2007
1563 * Moose::Meta::Method::Constructor
1564 - fix inlined constructor for hierarchy with multiple BUILD methods (mst)
1565 * Moose::Meta::Class
1566 - Modify make_immutable to work with the new Class::MOP immutable
1567 mechanism + POD + very basic test (groditi)
1568 * Moose::Meta::Attribute
1569 - Fix handles to use goto() so that caller() comes out properly on
1570 the other side (perigrin)
1572 0.22 Thurs. May 31, 2007
1573 * Moose::Util::TypeConstraints
1574 - fix for prototype undeclared issue when Moose::Util::TypeConstraints
1575 loaded before consumers (e.g. Moose::Meta::Attribute) by predeclaring
1576 prototypes for functions
1577 - added the ClassName type constraint, this checks for strings
1578 which will respond true to ->isa(UNIVERSAL).
1579 - added tests and docs for this
1580 - subtyping just in name now works correctly by making the
1581 default for where be { 1 }
1582 - added test for this
1584 * Moose::Meta::Method::Accessor
1585 - coerce and lazy now work together correctly, thanks to
1586 merlyn for finding this bug
1587 - tests added for this
1588 - fix reader presedence bug in Moose::Meta::Attribute + tests
1591 - Foo->new(undef) now gets ignored, it is assumed you meant to pass
1592 a HASH-ref and missed. This produces better error messages then
1593 having it die cause undef is not a HASH.
1594 - added tests for this
1596 0.21 Thursday, May 2nd, 2007
1598 - added SUPER_SLOT and INNER_SLOT class hashes to support unimport
1599 - modified unimport to remove super and inner along with the rest
1600 - altered unimport tests to handle this
1603 - altered super export to populate SUPER_SLOT
1605 * Moose::Meta::Class
1606 - altered augment and override modifier application to use *_SLOT
1607 - modified tests for these to unimport one test class each to test
1610 - fixed issue where custom attribute metaclasses
1611 where not handled correctly in roles
1612 - added tests for this
1614 * Moose::Meta::Class
1615 - fixed issue where extending metaclasses with
1616 roles would blow up. Thanks to Aankhen`` for
1617 finding this insidious error, and it's solution.
1619 ~~ lots of spelling and grammer fixes in the docs,
1620 many many thanks to rlb3 and Aankhen for these :)
1622 0.20 Friday, April 6th, 2007
1623 >> I messed up the SKIP logic in one test
1624 so this release is just to fix that.
1627 - 'has' now also accepts an ARRAY ref
1628 to create multiple attrs (see docs)
1629 (thanks to konobi for this)
1630 - added tests and docs
1632 0.19 Thurs. April 5th, 2007
1633 ~~ More documentation updates ~~
1635 * Moose::Util::TypeConstraints
1636 - 'type' now supports messages as well
1637 thanks to phaylon for finding this
1638 - added tests for this
1639 - added &list_all_type_constraints and
1640 &list_all_builtin_type_constraints
1641 functions to facilitate introspection.
1643 * Moose::Meta::Attribute
1644 - fixed regexp 'handles' declarations
1645 to build the list of delegated methods
1646 correctly (and not override important
1647 things like &new) thanks to ashleyb
1649 - added tests and docs for this
1650 - added the 'documentation' attributes
1651 so that you can actually document your
1652 attributes and inspect them through the
1654 - added tests and docs for this
1656 * Moose::Meta::Class
1657 - when loading custom attribute metaclasses
1658 it will first look in for the class in the
1659 Moose::Meta::Attribute::Custom::$name, and
1660 then default to just loading $name.
1661 - added tests and docs for this
1663 * Moose::Meta::TypeConstraint
1664 - type constraints now stringify to their names.
1665 - added test for this
1668 - added tests to assure we work with Module::Refresh
1669 - added stricter test skip logic in the Moose POOP
1670 test, ask Rob Kinyon why.
1671 - *cough* DBM::Deep 1.0 backwards compatibility sucks *cough* ;)
1673 0.18 Sat. March 10, 2007
1674 ~~ Many, many documentation updates ~~
1677 - We now use Class::MOP::load_class to
1679 - added tests to show types and subtypes
1680 working with Declare::Constraints::Simple
1681 and Test::Deep as constraint engines.
1684 !! You must have Class::MOP 0.37_001 !!
1685 !! for this developer release to work !!
1687 This release was primarily adding the immutable
1688 feature to Moose. An immutable class is one which
1689 you promise not to alter. When you set the class
1690 as immutable it will perform various bits of
1691 memoization and inline certain part of the code
1692 (constructors, destructors and accessors). This
1693 minimizes (and in some cases totally eliminates)
1694 one of Moose's biggest performance hits. This
1695 feature is not on by default, and is 100% optional.
1696 It has several configurable bits as well, so you
1697 can pick and choose to your specific needs.
1699 The changes involved in this were fairly wide and
1700 highly specific, but 100% backwards compatible, so
1701 I am not going to enumerate them here. If you are
1702 truely interested in what was changed, please do
1705 0.17 Tues. Nov. 14, 2006
1706 * Moose::Meta::Method::Accessor
1707 - bugfix for read-only accessors which
1708 are have a type constraint and lazy.
1709 Thanks to chansen for finding it.
1711 0.16 Tues. Nov. 14, 2006
1713 There are some speed improvements in this release,
1714 but they are only the begining, so stay tuned.
1717 - BUILDALL and DEMOLISHALL no longer get
1718 called unless they actually need to be.
1719 This gave us a signifigant speed boost
1720 for the cases when there is no BUILD or
1721 DEMOLISH method present.
1723 * Moose::Util::TypeConstraints
1724 * Moose::Meta::TypeConstraint
1725 - added an 'optimize_as' option to the
1726 type constraint, which allows for a
1727 hand optimized version of the type
1728 constraint to be used when possible.
1729 - Any internally created type constraints
1730 now provide an optimized version as well.
1732 0.15 Sun. Nov. 5, 2006
1734 This version of Moose *must* have Class::MOP 0.36 in order
1735 to work correctly. A number of small internal tweaks have
1736 been made in order to be compatible with that release.
1738 * Moose::Util::TypeConstraints
1739 - added &unimport so that you can clean out
1740 your class namespace of these exported
1743 * Moose::Meta::Class
1744 - fixed minor issue which occasionally
1745 comes up during global destruction
1747 - moved Moose::Meta::Method::Overriden into
1751 - moved Moose::Meta::Role::Method into
1754 * Moose::Meta::Attribute
1755 - changed how we do type checks so that
1756 we reduce the overall cost, but still
1759 - moved accessor generation methods to
1760 Moose::Meta::Method::Accessor to
1761 conform to the API changes from
1764 * Moose::Meta::TypeConstraint
1765 - changed how constraints are compiled
1766 so that we do less recursion and more
1767 iteration. This makes the type check
1769 - moved Moose::Meta::TypeConstraint::Union
1772 * Moose::Meta::Method::Accessor
1773 - created this from methods formerly found in
1774 Moose::Meta::Attribute
1776 * Moose::Meta::Role::Method
1777 - moved this from Moose::Meta::Role
1779 * Moose::Meta::Method::Overriden
1780 - moved this from Moose::Meta::Class
1782 * Moose::Meta::TypeConstraint::Union
1783 - moved this from Moose::Meta::TypeConstraint
1785 0.14 Mon. Oct. 9, 2006
1787 * Moose::Meta::Attribute
1788 - fixed lazy attributes which were not getting
1789 checked with the type constraint (thanks ashley)
1790 - added tests for this
1791 - removed the over-enthusiastic DWIMery of the
1792 automatic ArrayRef and HashRef defaults, it
1793 broke predicates in an ugly way.
1794 - removed tests for this
1796 0.13 Sat. Sept. 30, 2006
1798 This version of Moose *must* have Class::MOP 0.35 in order
1799 to work correctly. A number of small internal tweaks have
1800 been made in order to be compatible with that release.
1803 - Removed the use of UNIVERSAL::require to be a better
1804 symbol table citizen and remove a dependency
1805 (thanks Adam Kennedy)
1807 **~~ removed experimental & undocumented feature ~~**
1808 - commented out the 'method' and 'self' keywords, see the
1809 comments for more info.
1812 - added a FAQ and WTF files to document frequently
1813 asked questions and common problems
1815 * Moose::Util::TypeConstraints
1816 - added GlobRef and FileHandle type constraint
1817 - added tests for this
1819 * Moose::Meta::Attribute
1820 - if your attribute 'isa' ArrayRef of HashRef, and you have
1821 not explicitly set a default, then make the default DWIM.
1822 This will also work for subtypes of ArrayRef and HashRef
1824 - you can now auto-deref subtypes of ArrayRef or HashRef too.
1825 - new test added for this (thanks to ashley)
1828 - added basic support for runtime role composition
1829 but this is still *highly experimental*, so feedback
1830 is much appreciated :)
1831 - added tests for this
1833 * Moose::Meta::TypeConstraint
1834 - the type constraint now handles the coercion process
1835 through delegation, this is to support the coercion
1838 * Moose::Meta::TypeConstraint::Union
1839 - it is now possible for coercions to be performed
1841 - added tests for this (thanks to konobi)
1843 * Moose::Meta::TypeCoercion
1844 - properly capturing error when type constraint
1848 - Scalar::Util 1.18 is bad on Win32, so temporarily
1849 only require version 1.17 for Win32 and cygwin.
1850 (thanks Adam Kennedy)
1852 0.12 Sat. Sept. 1, 2006
1854 - Recipe5 (subtypes & coercion) has been written
1857 - fixed "bad meta" error message to be more descriptive
1858 - fixed &unimport to not remove the &inner and &super
1859 keywords because we need to localize them.
1860 - fixed number of spelling/grammer issues, thanks Theory :)
1862 **~~ experimental & undocumented feature ~~**
1863 - added the method and self keywords, they are basically
1864 just sugar, and they may not stay around.
1867 - added &dump method to easily Data::Dumper
1870 * Moose::Meta::TypeConstraint
1871 - added the &is_a_type_of method to check both the current
1872 and the subtype of a method (similar to &isa with classes)
1875 - this is now a subclass of Class::MOP::Module, and no longer
1876 creates the _role_meta ugliness of before.
1877 - fixed tests to reflect this change
1879 0.11 Wed. July 12, 2006
1881 - added an &unimport method to remove all the keywords
1882 that Moose will import, simply add 'no Moose' to the
1883 bottom of your class file.
1886 - fixed some test failures caused by a forgotten test
1889 0.10 Thurs. July 6, 2006
1891 - improved error message when loading modules so
1892 it is less confusing when you load a role.
1893 - added &calculate_all_roles method to
1894 Moose::Meta::Class and Moose::Meta::Role
1897 This module has been tested against Class::MOP 0.30
1898 but it does not yet utilize the optimizations
1899 it makes available. Stay tuned for that ;)
1901 0.09_03 Fri. June 23, 2006
1902 ++ DEVELOPER RELEASE ++
1904 - 'use strict' and 'use warnings' are no longer
1905 needed in Moose classes, Moose itself will
1906 turn them on for you.
1907 - added tests for this
1908 - moved code from exported subs to private methods
1909 in Moose::Meta::Class
1912 - as with Moose, strict and warnings are
1913 automatically turned on for you.
1914 - added tests for this
1917 - now handles an edge case for override errors
1918 - added tests for this
1919 - added some more edge case tests
1921 0.09_02 Tues. May 16, 2006
1922 ++ DEVELOPER RELEASE ++
1924 - added prototypes to the exported subs
1928 - added prototypes to the exported subs
1931 * Moose::Util::TypeConstraints
1932 - cleaned up prototypes for the subs
1935 0.09_01 Fri. May 12, 2006
1936 ++ DEVELOPER RELEASE ++
1937 - This release works in combination with
1938 Class::MOP 0.29_01, it is a developer
1939 release because it uses the a new
1940 instance sub-protocol and a fairly
1941 complete Role implementation. It has
1942 not yet been optimized, so it slower
1943 the the previous CPAN version. This
1944 release also lacks good updated docs,
1945 the official release will have updated docs.
1948 - refactored the keyword exports
1949 - 'with' now checks Role validaity and
1950 accepts more than one Role at a time
1951 - 'extends' makes metaclass adjustments as
1952 needed to ensure metaclass compatibility
1955 - refactored the keyword exports
1956 - 'with' now checks Role validaity and
1957 accepts more than one Role at a time
1959 * Moose::Util::TypeConstraints
1960 - added the 'enum' keyword for simple
1961 string enumerations which can be used as
1963 - see example of usage in t/202_example.t
1966 - more careful checking of params to new()
1969 - much work done on the role composition
1970 - many new tests for conflict detection
1971 and composition edge cases
1972 - not enough documentation, I suggest
1973 looking at the tests
1975 * Moose::Meta::Instance
1976 - added new Instance metaclass to support
1977 the new Class::MOP instance protocol
1979 * Moose::Meta::Class
1980 - some small changes to support the new
1982 - some small additions to support Roles
1984 * Moose::Meta::Attribute
1985 - some improvements to the accessor generation code
1987 - some small changes to support the new
1989 - (still somewhat) experimental delegation support
1990 with the 'handles' option
1991 - added several tests for this
1992 - no docs for this yet
1994 0.05 Thurs. April 27, 2006
1996 - keywords are now exported with Sub::Exporter
1997 thanks to chansen for this commit
1998 - has keyword now takes a 'metaclass' option
1999 to support custom attribute meta-classes
2000 on a per-attribute basis
2001 - added tests for this
2002 - the 'has' keyword not accepts inherited slot
2003 specifications (has '+foo'). This is still an
2004 experimental feature and probably not finished
2005 see t/038_attribute_inherited_slot_specs.t for
2006 more details, or ask about it on #moose
2007 - added tests for this
2010 - keywords are now exported with Sub::Exporter
2012 * Moose::Utils::TypeConstraints
2013 - reorganized the type constraint hierarchy, thanks
2014 to nothingmuch and chansen for his help and advice
2016 - added some tests for this
2017 - keywords are now exported with Sub::Exporter
2018 thanks to chansen for this commit
2020 * Moose::Meta::Class
2021 - due to changes in Class::MOP, we had to change
2022 construct_instance (for the better)
2024 * Moose::Meta::Attribute
2025 - due to changes in Class::MOP, we had to add the
2026 initialize_instance_slot method (it's a good thing)
2028 * Moose::Meta::TypeConstraint
2029 - added type constraint unions
2030 - added tests for this
2031 - added the is_subtype_of predicate method
2032 - added tests for this
2034 0.04 Sun. April 16th, 2006
2036 - Roles can now consume other roles
2037 - added tests for this
2038 - Roles can specify required methods now with
2039 the requires() keyword
2040 - added tests for this
2043 - ripped out much of it's guts ,.. much cleaner now
2044 - added required methods and correct handling of
2045 them in apply() for both classes and roles
2046 - added tests for this
2047 - no longer adds a does() method to consuming classes
2048 it relys on the one in Moose::Object
2049 - added roles attribute and some methods to support
2050 roles consuming roles
2052 * Moose::Meta::Attribute
2053 - added support for triggers on attributes
2054 - added tests for this
2055 - added support for does option on an attribute
2056 - added tests for this
2058 * Moose::Meta::Class
2059 - added support for attribute triggers in the
2061 - added tests for this
2064 - Moose no longer creates a subtype for your class
2065 if a subtype of the same name already exists, this
2066 should DWIM in 99.9999% of all cases
2068 * Moose::Util::TypeConstraints
2069 - fixed bug where incorrect subtype conflicts were
2071 - added test for this
2074 - this class can now be extended with 'use base' if
2075 you need it, it properly loads the metaclass class now
2076 - added test for this
2078 0.03_02 Wed. April 12, 2006
2080 - you must now explictly use Moose::Util::TypeConstraints
2081 it no longer gets exported for you automatically
2084 - new() now accepts hash-refs as well as key/value lists
2085 - added does() method to check for Roles
2086 - added tests for this
2088 * Moose::Meta::Class
2089 - added roles attribute along with the add_role() and
2091 - added tests for this
2094 - now adds a does() method to consuming classes
2095 which tests the class's hierarchy for roles
2096 - added tests for this
2098 0.03_01 Mon. April 10, 2006
2100 - added new Role recipe (no content yet, only code)
2103 - added 'with' keyword for Role support
2104 - added test and docs for this
2105 - fixed subtype quoting bug
2106 - added test for this
2110 - added test and docs
2112 * Moose::Util::TypeConstraints
2113 - added the message keyword to add custom
2114 error messages to type constraints
2117 - the meta role to support Moose::Role
2118 - added tests and docs
2120 * Moose::Meta::Class
2121 - moved a number of things from Moose.pm
2122 to here, they should have been here
2125 * Moose::Meta::Attribute
2126 - moved the attribute option macros here
2127 instead of putting them in Moose.pm
2129 * Moose::Meta::TypeConstraint
2130 - added the message attributes and the
2132 - added tests and docs for this
2134 0.03 Thurs. March 30, 2006
2136 - added the Moose::Cookbook with 5 recipes,
2137 describing all the stuff Moose can do.
2140 - fixed an issue with &extends super class loading
2141 it now captures errors and deals with inline
2142 packages correctly (bug found by mst, solution
2144 - added super/override & inner/augment features
2145 - added tests and docs for these
2148 - BUILDALL now takes a reference of the %params
2149 that are passed to &new, and passes that to
2152 * Moose::Util::TypeConstraints
2153 - Type constraints now survive runtime reloading
2154 - added test for this
2156 * Moose::Meta::Class
2157 - fixed the way attribute defaults are handled
2158 during instance construction (bug found by chansen)
2160 * Moose::Meta::Attribute
2161 - read-only attributes now actually enforce their
2162 read-only-ness (this corrected in Class::MOP as
2165 0.02 Tues. March 21, 2006
2167 - many more tests, fixing some bugs and
2169 - &extends now loads the base module with
2171 - added UNIVERSAL::require to the
2174 - each new Moose class will also create
2175 and register a subtype of Object which
2176 correspond to the new Moose class.
2177 - the 'isa' option in &has now only
2178 accepts strings, and will DWIM in
2181 * Moose::Util::TypeConstraints
2182 - added type coercion features
2183 - added tests for this
2184 - added support for this in attributes
2185 and instance construction
2187 - type construction no longer creates a
2188 function, it registers the type instead.
2189 - added several functions to get the
2193 - BUILDALL and DEMOLISHALL were broken
2194 because of a mis-named hash key, Whoops :)
2196 * Moose::Meta::Attribute
2197 - adding support for coercion in the
2198 autogenerated accessors
2200 * Moose::Meta::Class
2201 - adding support for coercion in the
2202 instance construction
2204 * Moose::Meta::TypeConstraint
2205 * Moose::Meta::TypeCoercion
2206 - type constraints and coercions are now
2207 full fledges meta-objects
2209 0.01 Wed. March 15, 2006
2210 - Moooooooooooooooooose!!!